source: indexers/trunk/mgpp/configure@ 20844

Last change on this file since 20844 was 20844, checked in by oranfry, 15 years ago

removing another check for iconv casing problems

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 248.4 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell [email protected] about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552exec 7<&0 </dev/null 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="text/MGQuery.cpp"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594# include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599# include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_subst_vars='SHELL
617PATH_SEPARATOR
618PACKAGE_NAME
619PACKAGE_TARNAME
620PACKAGE_VERSION
621PACKAGE_STRING
622PACKAGE_BUGREPORT
623exec_prefix
624prefix
625program_transform_name
626bindir
627sbindir
628libexecdir
629datarootdir
630datadir
631sysconfdir
632sharedstatedir
633localstatedir
634includedir
635oldincludedir
636docdir
637infodir
638htmldir
639dvidir
640pdfdir
641psdir
642libdir
643localedir
644mandir
645DEFS
646ECHO_C
647ECHO_N
648ECHO_T
649LIBS
650build_alias
651host_alias
652target_alias
653build
654build_cpu
655build_vendor
656build_os
657host
658host_cpu
659host_vendor
660host_os
661target
662target_cpu
663target_vendor
664target_os
665PACKAGE
666VERSION
667COMPAT32BITFLAGS
668ENABLE_ACCENTFOLD
669CXX
670CXXFLAGS
671LDFLAGS
672CPPFLAGS
673ac_ct_CXX
674EXEEXT
675OBJEXT
676AWK
677YACC
678YFLAGS
679CC
680CFLAGS
681ac_ct_CC
682INSTALL_PROGRAM
683INSTALL_SCRIPT
684INSTALL_DATA
685LN_S
686SET_MAKE
687RANLIB
688CPP
689GREP
690EGREP
691U
692ANSI2KNR
693UNAC_DIR
694ALLOCA
695LIBOBJS
696JNIINC
697JNISUFFIX
698JNIFLAGS
699LTLIBOBJS'
700ac_subst_files=''
701 ac_precious_vars='build_alias
702host_alias
703target_alias
704CXX
705CXXFLAGS
706LDFLAGS
707LIBS
708CPPFLAGS
709CCC
710YACC
711YFLAGS
712CC
713CFLAGS
714CPP'
715
716
717# Initialize some variables set by options.
718ac_init_help=
719ac_init_version=false
720# The variables have the same names as the options, with
721# dashes changed to underlines.
722cache_file=/dev/null
723exec_prefix=NONE
724no_create=
725no_recursion=
726prefix=NONE
727program_prefix=NONE
728program_suffix=NONE
729program_transform_name=s,x,x,
730silent=
731site=
732srcdir=
733verbose=
734x_includes=NONE
735x_libraries=NONE
736
737# Installation directory options.
738# These are left unexpanded so users can "make install exec_prefix=/foo"
739# and all the variables that are supposed to be based on exec_prefix
740# by default will actually change.
741# Use braces instead of parens because sh, perl, etc. also accept them.
742# (The list follows the same order as the GNU Coding Standards.)
743bindir='${exec_prefix}/bin'
744sbindir='${exec_prefix}/sbin'
745libexecdir='${exec_prefix}/libexec'
746datarootdir='${prefix}/share'
747datadir='${datarootdir}'
748sysconfdir='${prefix}/etc'
749sharedstatedir='${prefix}/com'
750localstatedir='${prefix}/var'
751includedir='${prefix}/include'
752oldincludedir='/usr/include'
753docdir='${datarootdir}/doc/${PACKAGE}'
754infodir='${datarootdir}/info'
755htmldir='${docdir}'
756dvidir='${docdir}'
757pdfdir='${docdir}'
758psdir='${docdir}'
759libdir='${exec_prefix}/lib'
760localedir='${datarootdir}/locale'
761mandir='${datarootdir}/man'
762
763ac_prev=
764ac_dashdash=
765for ac_option
766do
767 # If the previous option needs an argument, assign it.
768 if test -n "$ac_prev"; then
769 eval $ac_prev=\$ac_option
770 ac_prev=
771 continue
772 fi
773
774 case $ac_option in
775 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
776 *) ac_optarg=yes ;;
777 esac
778
779 # Accept the important Cygnus configure options, so we can diagnose typos.
780
781 case $ac_dashdash$ac_option in
782 --)
783 ac_dashdash=yes ;;
784
785 -bindir | --bindir | --bindi | --bind | --bin | --bi)
786 ac_prev=bindir ;;
787 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
788 bindir=$ac_optarg ;;
789
790 -build | --build | --buil | --bui | --bu)
791 ac_prev=build_alias ;;
792 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
793 build_alias=$ac_optarg ;;
794
795 -cache-file | --cache-file | --cache-fil | --cache-fi \
796 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
797 ac_prev=cache_file ;;
798 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
799 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
800 cache_file=$ac_optarg ;;
801
802 --config-cache | -C)
803 cache_file=config.cache ;;
804
805 -datadir | --datadir | --datadi | --datad)
806 ac_prev=datadir ;;
807 -datadir=* | --datadir=* | --datadi=* | --datad=*)
808 datadir=$ac_optarg ;;
809
810 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
811 | --dataroo | --dataro | --datar)
812 ac_prev=datarootdir ;;
813 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
814 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
815 datarootdir=$ac_optarg ;;
816
817 -disable-* | --disable-*)
818 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
819 # Reject names that are not valid shell variable names.
820 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
821 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
822 { (exit 1); exit 1; }; }
823 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
824 eval enable_$ac_feature=no ;;
825
826 -docdir | --docdir | --docdi | --doc | --do)
827 ac_prev=docdir ;;
828 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
829 docdir=$ac_optarg ;;
830
831 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
832 ac_prev=dvidir ;;
833 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
834 dvidir=$ac_optarg ;;
835
836 -enable-* | --enable-*)
837 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
838 # Reject names that are not valid shell variable names.
839 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
840 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
841 { (exit 1); exit 1; }; }
842 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
843 eval enable_$ac_feature=\$ac_optarg ;;
844
845 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
846 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
847 | --exec | --exe | --ex)
848 ac_prev=exec_prefix ;;
849 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
850 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
851 | --exec=* | --exe=* | --ex=*)
852 exec_prefix=$ac_optarg ;;
853
854 -gas | --gas | --ga | --g)
855 # Obsolete; use --with-gas.
856 with_gas=yes ;;
857
858 -help | --help | --hel | --he | -h)
859 ac_init_help=long ;;
860 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
861 ac_init_help=recursive ;;
862 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
863 ac_init_help=short ;;
864
865 -host | --host | --hos | --ho)
866 ac_prev=host_alias ;;
867 -host=* | --host=* | --hos=* | --ho=*)
868 host_alias=$ac_optarg ;;
869
870 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
871 ac_prev=htmldir ;;
872 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
873 | --ht=*)
874 htmldir=$ac_optarg ;;
875
876 -includedir | --includedir | --includedi | --included | --include \
877 | --includ | --inclu | --incl | --inc)
878 ac_prev=includedir ;;
879 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
880 | --includ=* | --inclu=* | --incl=* | --inc=*)
881 includedir=$ac_optarg ;;
882
883 -infodir | --infodir | --infodi | --infod | --info | --inf)
884 ac_prev=infodir ;;
885 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
886 infodir=$ac_optarg ;;
887
888 -libdir | --libdir | --libdi | --libd)
889 ac_prev=libdir ;;
890 -libdir=* | --libdir=* | --libdi=* | --libd=*)
891 libdir=$ac_optarg ;;
892
893 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
894 | --libexe | --libex | --libe)
895 ac_prev=libexecdir ;;
896 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
897 | --libexe=* | --libex=* | --libe=*)
898 libexecdir=$ac_optarg ;;
899
900 -localedir | --localedir | --localedi | --localed | --locale)
901 ac_prev=localedir ;;
902 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
903 localedir=$ac_optarg ;;
904
905 -localstatedir | --localstatedir | --localstatedi | --localstated \
906 | --localstate | --localstat | --localsta | --localst | --locals)
907 ac_prev=localstatedir ;;
908 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
909 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
910 localstatedir=$ac_optarg ;;
911
912 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
913 ac_prev=mandir ;;
914 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
915 mandir=$ac_optarg ;;
916
917 -nfp | --nfp | --nf)
918 # Obsolete; use --without-fp.
919 with_fp=no ;;
920
921 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
922 | --no-cr | --no-c | -n)
923 no_create=yes ;;
924
925 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
926 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
927 no_recursion=yes ;;
928
929 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
930 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
931 | --oldin | --oldi | --old | --ol | --o)
932 ac_prev=oldincludedir ;;
933 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
934 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
935 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
936 oldincludedir=$ac_optarg ;;
937
938 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
939 ac_prev=prefix ;;
940 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
941 prefix=$ac_optarg ;;
942
943 -program-prefix | --program-prefix | --program-prefi | --program-pref \
944 | --program-pre | --program-pr | --program-p)
945 ac_prev=program_prefix ;;
946 -program-prefix=* | --program-prefix=* | --program-prefi=* \
947 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
948 program_prefix=$ac_optarg ;;
949
950 -program-suffix | --program-suffix | --program-suffi | --program-suff \
951 | --program-suf | --program-su | --program-s)
952 ac_prev=program_suffix ;;
953 -program-suffix=* | --program-suffix=* | --program-suffi=* \
954 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
955 program_suffix=$ac_optarg ;;
956
957 -program-transform-name | --program-transform-name \
958 | --program-transform-nam | --program-transform-na \
959 | --program-transform-n | --program-transform- \
960 | --program-transform | --program-transfor \
961 | --program-transfo | --program-transf \
962 | --program-trans | --program-tran \
963 | --progr-tra | --program-tr | --program-t)
964 ac_prev=program_transform_name ;;
965 -program-transform-name=* | --program-transform-name=* \
966 | --program-transform-nam=* | --program-transform-na=* \
967 | --program-transform-n=* | --program-transform-=* \
968 | --program-transform=* | --program-transfor=* \
969 | --program-transfo=* | --program-transf=* \
970 | --program-trans=* | --program-tran=* \
971 | --progr-tra=* | --program-tr=* | --program-t=*)
972 program_transform_name=$ac_optarg ;;
973
974 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
975 ac_prev=pdfdir ;;
976 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
977 pdfdir=$ac_optarg ;;
978
979 -psdir | --psdir | --psdi | --psd | --ps)
980 ac_prev=psdir ;;
981 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
982 psdir=$ac_optarg ;;
983
984 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
985 | -silent | --silent | --silen | --sile | --sil)
986 silent=yes ;;
987
988 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
989 ac_prev=sbindir ;;
990 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
991 | --sbi=* | --sb=*)
992 sbindir=$ac_optarg ;;
993
994 -sharedstatedir | --sharedstatedir | --sharedstatedi \
995 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
996 | --sharedst | --shareds | --shared | --share | --shar \
997 | --sha | --sh)
998 ac_prev=sharedstatedir ;;
999 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1000 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1001 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1002 | --sha=* | --sh=*)
1003 sharedstatedir=$ac_optarg ;;
1004
1005 -site | --site | --sit)
1006 ac_prev=site ;;
1007 -site=* | --site=* | --sit=*)
1008 site=$ac_optarg ;;
1009
1010 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1011 ac_prev=srcdir ;;
1012 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1013 srcdir=$ac_optarg ;;
1014
1015 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1016 | --syscon | --sysco | --sysc | --sys | --sy)
1017 ac_prev=sysconfdir ;;
1018 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1019 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1020 sysconfdir=$ac_optarg ;;
1021
1022 -target | --target | --targe | --targ | --tar | --ta | --t)
1023 ac_prev=target_alias ;;
1024 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1025 target_alias=$ac_optarg ;;
1026
1027 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1028 verbose=yes ;;
1029
1030 -version | --version | --versio | --versi | --vers | -V)
1031 ac_init_version=: ;;
1032
1033 -with-* | --with-*)
1034 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1037 { echo "$as_me: error: invalid package name: $ac_package" >&2
1038 { (exit 1); exit 1; }; }
1039 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1040 eval with_$ac_package=\$ac_optarg ;;
1041
1042 -without-* | --without-*)
1043 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1046 { echo "$as_me: error: invalid package name: $ac_package" >&2
1047 { (exit 1); exit 1; }; }
1048 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1049 eval with_$ac_package=no ;;
1050
1051 --x)
1052 # Obsolete; use --with-x.
1053 with_x=yes ;;
1054
1055 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1056 | --x-incl | --x-inc | --x-in | --x-i)
1057 ac_prev=x_includes ;;
1058 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1059 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1060 x_includes=$ac_optarg ;;
1061
1062 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1063 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1064 ac_prev=x_libraries ;;
1065 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1066 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1067 x_libraries=$ac_optarg ;;
1068
1069 -*) { echo "$as_me: error: unrecognized option: $ac_option
1070Try \`$0 --help' for more information." >&2
1071 { (exit 1); exit 1; }; }
1072 ;;
1073
1074 *=*)
1075 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1078 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1079 { (exit 1); exit 1; }; }
1080 eval $ac_envvar=\$ac_optarg
1081 export $ac_envvar ;;
1082
1083 *)
1084 # FIXME: should be removed in autoconf 3.0.
1085 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1086 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1087 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1088 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1089 ;;
1090
1091 esac
1092done
1093
1094if test -n "$ac_prev"; then
1095 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1096 { echo "$as_me: error: missing argument to $ac_option" >&2
1097 { (exit 1); exit 1; }; }
1098fi
1099
1100# Be sure to have absolute directory names.
1101for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1102 datadir sysconfdir sharedstatedir localstatedir includedir \
1103 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1104 libdir localedir mandir
1105do
1106 eval ac_val=\$$ac_var
1107 case $ac_val in
1108 [\\/$]* | ?:[\\/]* ) continue;;
1109 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1110 esac
1111 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1112 { (exit 1); exit 1; }; }
1113done
1114
1115# There might be people who depend on the old broken behavior: `$host'
1116# used to hold the argument of --host etc.
1117# FIXME: To remove some day.
1118build=$build_alias
1119host=$host_alias
1120target=$target_alias
1121
1122# FIXME: To remove some day.
1123if test "x$host_alias" != x; then
1124 if test "x$build_alias" = x; then
1125 cross_compiling=maybe
1126 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1127 If a cross compiler is detected then cross compile mode will be used." >&2
1128 elif test "x$build_alias" != "x$host_alias"; then
1129 cross_compiling=yes
1130 fi
1131fi
1132
1133ac_tool_prefix=
1134test -n "$host_alias" && ac_tool_prefix=$host_alias-
1135
1136test "$silent" = yes && exec 6>/dev/null
1137
1138
1139ac_pwd=`pwd` && test -n "$ac_pwd" &&
1140ac_ls_di=`ls -di .` &&
1141ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1142 { echo "$as_me: error: Working directory cannot be determined" >&2
1143 { (exit 1); exit 1; }; }
1144test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1145 { echo "$as_me: error: pwd does not report name of working directory" >&2
1146 { (exit 1); exit 1; }; }
1147
1148
1149# Find the source files, if location was not specified.
1150if test -z "$srcdir"; then
1151 ac_srcdir_defaulted=yes
1152 # Try the directory containing this script, then the parent directory.
1153 ac_confdir=`$as_dirname -- "$0" ||
1154$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1155 X"$0" : 'X\(//\)[^/]' \| \
1156 X"$0" : 'X\(//\)$' \| \
1157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1158echo X"$0" |
1159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1160 s//\1/
1161 q
1162 }
1163 /^X\(\/\/\)[^/].*/{
1164 s//\1/
1165 q
1166 }
1167 /^X\(\/\/\)$/{
1168 s//\1/
1169 q
1170 }
1171 /^X\(\/\).*/{
1172 s//\1/
1173 q
1174 }
1175 s/.*/./; q'`
1176 srcdir=$ac_confdir
1177 if test ! -r "$srcdir/$ac_unique_file"; then
1178 srcdir=..
1179 fi
1180else
1181 ac_srcdir_defaulted=no
1182fi
1183if test ! -r "$srcdir/$ac_unique_file"; then
1184 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1185 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1186 { (exit 1); exit 1; }; }
1187fi
1188ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1189ac_abs_confdir=`(
1190 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1191 { (exit 1); exit 1; }; }
1192 pwd)`
1193# When building in place, set srcdir=.
1194if test "$ac_abs_confdir" = "$ac_pwd"; then
1195 srcdir=.
1196fi
1197# Remove unnecessary trailing slashes from srcdir.
1198# Double slashes in file names in object file debugging info
1199# mess up M-x gdb in Emacs.
1200case $srcdir in
1201*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1202esac
1203for ac_var in $ac_precious_vars; do
1204 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1205 eval ac_env_${ac_var}_value=\$${ac_var}
1206 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1207 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1208done
1209
1210#
1211# Report the --help message.
1212#
1213if test "$ac_init_help" = "long"; then
1214 # Omit some internal or obsolete options to make the list less imposing.
1215 # This message is too long to be a string in the A/UX 3.1 sh.
1216 cat <<_ACEOF
1217\`configure' configures this package to adapt to many kinds of systems.
1218
1219Usage: $0 [OPTION]... [VAR=VALUE]...
1220
1221To assign environment variables (e.g., CC, CFLAGS...), specify them as
1222VAR=VALUE. See below for descriptions of some of the useful variables.
1223
1224Defaults for the options are specified in brackets.
1225
1226Configuration:
1227 -h, --help display this help and exit
1228 --help=short display options specific to this package
1229 --help=recursive display the short help of all the included packages
1230 -V, --version display version information and exit
1231 -q, --quiet, --silent do not print \`checking...' messages
1232 --cache-file=FILE cache test results in FILE [disabled]
1233 -C, --config-cache alias for \`--cache-file=config.cache'
1234 -n, --no-create do not create output files
1235 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1236
1237Installation directories:
1238 --prefix=PREFIX install architecture-independent files in PREFIX
1239 [$ac_default_prefix]
1240 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1241 [PREFIX]
1242
1243By default, \`make install' will install all the files in
1244\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1245an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1246for instance \`--prefix=\$HOME'.
1247
1248For better control, use the options below.
1249
1250Fine tuning of the installation directories:
1251 --bindir=DIR user executables [EPREFIX/bin]
1252 --sbindir=DIR system admin executables [EPREFIX/sbin]
1253 --libexecdir=DIR program executables [EPREFIX/libexec]
1254 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1255 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1256 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1257 --libdir=DIR object code libraries [EPREFIX/lib]
1258 --includedir=DIR C header files [PREFIX/include]
1259 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1260 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1261 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1262 --infodir=DIR info documentation [DATAROOTDIR/info]
1263 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1264 --mandir=DIR man documentation [DATAROOTDIR/man]
1265 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1266 --htmldir=DIR html documentation [DOCDIR]
1267 --dvidir=DIR dvi documentation [DOCDIR]
1268 --pdfdir=DIR pdf documentation [DOCDIR]
1269 --psdir=DIR ps documentation [DOCDIR]
1270_ACEOF
1271
1272 cat <<\_ACEOF
1273
1274Program names:
1275 --program-prefix=PREFIX prepend PREFIX to installed program names
1276 --program-suffix=SUFFIX append SUFFIX to installed program names
1277 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1278
1279System types:
1280 --build=BUILD configure for building on BUILD [guessed]
1281 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1282 --target=TARGET configure for building compilers for TARGET [HOST]
1283_ACEOF
1284fi
1285
1286if test -n "$ac_init_help"; then
1287
1288 cat <<\_ACEOF
1289
1290Optional Features:
1291 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1292 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1293 --disable-accentfold Disable Accent Folding for MGPP
1294 --enable-override-longlong
1295 overide use of long long with GCC
1296
1297Optional Packages:
1298 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1299 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1300 --with-unac=dir Use local unac library and headers
1301 --with-dmalloc use dmalloc, as in
1302 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
1303 --with-regex use older regex in lieu of GNU rx for matching
1304 --with-gnu-readline compile with GNU readline support
1305
1306Some influential environment variables:
1307 CXX C++ compiler command
1308 CXXFLAGS C++ compiler flags
1309 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1310 nonstandard directory <lib dir>
1311 LIBS libraries to pass to the linker, e.g. -l<library>
1312 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1313 you have headers in a nonstandard directory <include dir>
1314 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1315 the first program found out of: `bison -y', `byacc', `yacc'.
1316 YFLAGS The list of arguments that will be passed by default to $YACC.
1317 This script will default YFLAGS to the empty string to avoid a
1318 default value of `-d' given by some make applications.
1319 CC C compiler command
1320 CFLAGS C compiler flags
1321 CPP C preprocessor
1322
1323Use these variables to override the choices made by `configure' or to help
1324it to find libraries and programs with nonstandard names/locations.
1325
1326_ACEOF
1327ac_status=$?
1328fi
1329
1330if test "$ac_init_help" = "recursive"; then
1331 # If there are subdirs, report their specific --help.
1332 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1333 test -d "$ac_dir" || continue
1334 ac_builddir=.
1335
1336case "$ac_dir" in
1337.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1338*)
1339 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1340 # A ".." for each directory in $ac_dir_suffix.
1341 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1342 case $ac_top_builddir_sub in
1343 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1344 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1345 esac ;;
1346esac
1347ac_abs_top_builddir=$ac_pwd
1348ac_abs_builddir=$ac_pwd$ac_dir_suffix
1349# for backward compatibility:
1350ac_top_builddir=$ac_top_build_prefix
1351
1352case $srcdir in
1353 .) # We are building in place.
1354 ac_srcdir=.
1355 ac_top_srcdir=$ac_top_builddir_sub
1356 ac_abs_top_srcdir=$ac_pwd ;;
1357 [\\/]* | ?:[\\/]* ) # Absolute name.
1358 ac_srcdir=$srcdir$ac_dir_suffix;
1359 ac_top_srcdir=$srcdir
1360 ac_abs_top_srcdir=$srcdir ;;
1361 *) # Relative name.
1362 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1363 ac_top_srcdir=$ac_top_build_prefix$srcdir
1364 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1365esac
1366ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1367
1368 cd "$ac_dir" || { ac_status=$?; continue; }
1369 # Check for guested configure.
1370 if test -f "$ac_srcdir/configure.gnu"; then
1371 echo &&
1372 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1373 elif test -f "$ac_srcdir/configure"; then
1374 echo &&
1375 $SHELL "$ac_srcdir/configure" --help=recursive
1376 else
1377 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1378 fi || ac_status=$?
1379 cd "$ac_pwd" || { ac_status=$?; break; }
1380 done
1381fi
1382
1383test -n "$ac_init_help" && exit $ac_status
1384if $ac_init_version; then
1385 cat <<\_ACEOF
1386configure
1387generated by GNU Autoconf 2.61
1388
1389Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13902002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1391This configure script is free software; the Free Software Foundation
1392gives unlimited permission to copy, distribute and modify it.
1393_ACEOF
1394 exit
1395fi
1396cat >config.log <<_ACEOF
1397This file contains any messages produced by compilers while
1398running configure, to aid debugging if configure makes a mistake.
1399
1400It was created by $as_me, which was
1401generated by GNU Autoconf 2.61. Invocation command line was
1402
1403 $ $0 $@
1404
1405_ACEOF
1406exec 5>>config.log
1407{
1408cat <<_ASUNAME
1409## --------- ##
1410## Platform. ##
1411## --------- ##
1412
1413hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1414uname -m = `(uname -m) 2>/dev/null || echo unknown`
1415uname -r = `(uname -r) 2>/dev/null || echo unknown`
1416uname -s = `(uname -s) 2>/dev/null || echo unknown`
1417uname -v = `(uname -v) 2>/dev/null || echo unknown`
1418
1419/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1420/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1421
1422/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1423/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1424/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1425/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1426/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1427/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1428/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1429
1430_ASUNAME
1431
1432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1433for as_dir in $PATH
1434do
1435 IFS=$as_save_IFS
1436 test -z "$as_dir" && as_dir=.
1437 echo "PATH: $as_dir"
1438done
1439IFS=$as_save_IFS
1440
1441} >&5
1442
1443cat >&5 <<_ACEOF
1444
1445
1446## ----------- ##
1447## Core tests. ##
1448## ----------- ##
1449
1450_ACEOF
1451
1452
1453# Keep a trace of the command line.
1454# Strip out --no-create and --no-recursion so they do not pile up.
1455# Strip out --silent because we don't want to record it for future runs.
1456# Also quote any args containing shell meta-characters.
1457# Make two passes to allow for proper duplicate-argument suppression.
1458ac_configure_args=
1459ac_configure_args0=
1460ac_configure_args1=
1461ac_must_keep_next=false
1462for ac_pass in 1 2
1463do
1464 for ac_arg
1465 do
1466 case $ac_arg in
1467 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1468 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1469 | -silent | --silent | --silen | --sile | --sil)
1470 continue ;;
1471 *\'*)
1472 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1473 esac
1474 case $ac_pass in
1475 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1476 2)
1477 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1478 if test $ac_must_keep_next = true; then
1479 ac_must_keep_next=false # Got value, back to normal.
1480 else
1481 case $ac_arg in
1482 *=* | --config-cache | -C | -disable-* | --disable-* \
1483 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1484 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1485 | -with-* | --with-* | -without-* | --without-* | --x)
1486 case "$ac_configure_args0 " in
1487 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1488 esac
1489 ;;
1490 -* ) ac_must_keep_next=true ;;
1491 esac
1492 fi
1493 ac_configure_args="$ac_configure_args '$ac_arg'"
1494 ;;
1495 esac
1496 done
1497done
1498$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1499$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1500
1501# When interrupted or exit'd, cleanup temporary files, and complete
1502# config.log. We remove comments because anyway the quotes in there
1503# would cause problems or look ugly.
1504# WARNING: Use '\'' to represent an apostrophe within the trap.
1505# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1506trap 'exit_status=$?
1507 # Save into config.log some information that might help in debugging.
1508 {
1509 echo
1510
1511 cat <<\_ASBOX
1512## ---------------- ##
1513## Cache variables. ##
1514## ---------------- ##
1515_ASBOX
1516 echo
1517 # The following way of writing the cache mishandles newlines in values,
1518(
1519 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1520 eval ac_val=\$$ac_var
1521 case $ac_val in #(
1522 *${as_nl}*)
1523 case $ac_var in #(
1524 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1525echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1526 esac
1527 case $ac_var in #(
1528 _ | IFS | as_nl) ;; #(
1529 *) $as_unset $ac_var ;;
1530 esac ;;
1531 esac
1532 done
1533 (set) 2>&1 |
1534 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1535 *${as_nl}ac_space=\ *)
1536 sed -n \
1537 "s/'\''/'\''\\\\'\'''\''/g;
1538 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1539 ;; #(
1540 *)
1541 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1542 ;;
1543 esac |
1544 sort
1545)
1546 echo
1547
1548 cat <<\_ASBOX
1549## ----------------- ##
1550## Output variables. ##
1551## ----------------- ##
1552_ASBOX
1553 echo
1554 for ac_var in $ac_subst_vars
1555 do
1556 eval ac_val=\$$ac_var
1557 case $ac_val in
1558 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1559 esac
1560 echo "$ac_var='\''$ac_val'\''"
1561 done | sort
1562 echo
1563
1564 if test -n "$ac_subst_files"; then
1565 cat <<\_ASBOX
1566## ------------------- ##
1567## File substitutions. ##
1568## ------------------- ##
1569_ASBOX
1570 echo
1571 for ac_var in $ac_subst_files
1572 do
1573 eval ac_val=\$$ac_var
1574 case $ac_val in
1575 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1576 esac
1577 echo "$ac_var='\''$ac_val'\''"
1578 done | sort
1579 echo
1580 fi
1581
1582 if test -s confdefs.h; then
1583 cat <<\_ASBOX
1584## ----------- ##
1585## confdefs.h. ##
1586## ----------- ##
1587_ASBOX
1588 echo
1589 cat confdefs.h
1590 echo
1591 fi
1592 test "$ac_signal" != 0 &&
1593 echo "$as_me: caught signal $ac_signal"
1594 echo "$as_me: exit $exit_status"
1595 } >&5
1596 rm -f core *.core core.conftest.* &&
1597 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1598 exit $exit_status
1599' 0
1600for ac_signal in 1 2 13 15; do
1601 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1602done
1603ac_signal=0
1604
1605# confdefs.h avoids OS command line length limits that DEFS can exceed.
1606rm -f -r conftest* confdefs.h
1607
1608# Predefined preprocessor variables.
1609
1610cat >>confdefs.h <<_ACEOF
1611#define PACKAGE_NAME "$PACKAGE_NAME"
1612_ACEOF
1613
1614
1615cat >>confdefs.h <<_ACEOF
1616#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1617_ACEOF
1618
1619
1620cat >>confdefs.h <<_ACEOF
1621#define PACKAGE_VERSION "$PACKAGE_VERSION"
1622_ACEOF
1623
1624
1625cat >>confdefs.h <<_ACEOF
1626#define PACKAGE_STRING "$PACKAGE_STRING"
1627_ACEOF
1628
1629
1630cat >>confdefs.h <<_ACEOF
1631#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1632_ACEOF
1633
1634
1635# Let the site file select an alternate cache file if it wants to.
1636# Prefer explicitly selected file to automatically selected ones.
1637if test -n "$CONFIG_SITE"; then
1638 set x "$CONFIG_SITE"
1639elif test "x$prefix" != xNONE; then
1640 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1641else
1642 set x "$ac_default_prefix/share/config.site" \
1643 "$ac_default_prefix/etc/config.site"
1644fi
1645shift
1646for ac_site_file
1647do
1648 if test -r "$ac_site_file"; then
1649 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1650echo "$as_me: loading site script $ac_site_file" >&6;}
1651 sed 's/^/| /' "$ac_site_file" >&5
1652 . "$ac_site_file"
1653 fi
1654done
1655
1656if test -r "$cache_file"; then
1657 # Some versions of bash will fail to source /dev/null (special
1658 # files actually), so we avoid doing that.
1659 if test -f "$cache_file"; then
1660 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1661echo "$as_me: loading cache $cache_file" >&6;}
1662 case $cache_file in
1663 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1664 *) . "./$cache_file";;
1665 esac
1666 fi
1667else
1668 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1669echo "$as_me: creating cache $cache_file" >&6;}
1670 >$cache_file
1671fi
1672
1673# Check that the precious variables saved in the cache have kept the same
1674# value.
1675ac_cache_corrupted=false
1676for ac_var in $ac_precious_vars; do
1677 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1678 eval ac_new_set=\$ac_env_${ac_var}_set
1679 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1680 eval ac_new_val=\$ac_env_${ac_var}_value
1681 case $ac_old_set,$ac_new_set in
1682 set,)
1683 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1684echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1685 ac_cache_corrupted=: ;;
1686 ,set)
1687 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1688echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1689 ac_cache_corrupted=: ;;
1690 ,);;
1691 *)
1692 if test "x$ac_old_val" != "x$ac_new_val"; then
1693 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1694echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1695 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1696echo "$as_me: former value: $ac_old_val" >&2;}
1697 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1698echo "$as_me: current value: $ac_new_val" >&2;}
1699 ac_cache_corrupted=:
1700 fi;;
1701 esac
1702 # Pass precious variables to config.status.
1703 if test "$ac_new_set" = set; then
1704 case $ac_new_val in
1705 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1706 *) ac_arg=$ac_var=$ac_new_val ;;
1707 esac
1708 case " $ac_configure_args " in
1709 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1710 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1711 esac
1712 fi
1713done
1714if $ac_cache_corrupted; then
1715 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1716echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1717 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1718echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1719 { (exit 1); exit 1; }; }
1720fi
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738ac_ext=c
1739ac_cpp='$CPP $CPPFLAGS'
1740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1742ac_compiler_gnu=$ac_cv_c_compiler_gnu
1743
1744
1745ac_config_headers="$ac_config_headers config.h"
1746
1747
1748ac_aux_dir=
1749for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1750 if test -f "$ac_dir/install-sh"; then
1751 ac_aux_dir=$ac_dir
1752 ac_install_sh="$ac_aux_dir/install-sh -c"
1753 break
1754 elif test -f "$ac_dir/install.sh"; then
1755 ac_aux_dir=$ac_dir
1756 ac_install_sh="$ac_aux_dir/install.sh -c"
1757 break
1758 elif test -f "$ac_dir/shtool"; then
1759 ac_aux_dir=$ac_dir
1760 ac_install_sh="$ac_aux_dir/shtool install -c"
1761 break
1762 fi
1763done
1764if test -z "$ac_aux_dir"; then
1765 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1766echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1767 { (exit 1); exit 1; }; }
1768fi
1769
1770# These three variables are undocumented and unsupported,
1771# and are intended to be withdrawn in a future Autoconf release.
1772# They can cause serious problems if a builder's source tree is in a directory
1773# whose full name contains unusual characters.
1774ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1775ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1776ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1777
1778
1779# Make sure we can run config.sub.
1780$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1781 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1782echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1783 { (exit 1); exit 1; }; }
1784
1785{ echo "$as_me:$LINENO: checking build system type" >&5
1786echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1787if test "${ac_cv_build+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1789else
1790 ac_build_alias=$build_alias
1791test "x$ac_build_alias" = x &&
1792 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1793test "x$ac_build_alias" = x &&
1794 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1795echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1796 { (exit 1); exit 1; }; }
1797ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1798 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1799echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1800 { (exit 1); exit 1; }; }
1801
1802fi
1803{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1804echo "${ECHO_T}$ac_cv_build" >&6; }
1805case $ac_cv_build in
1806*-*-*) ;;
1807*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1808echo "$as_me: error: invalid value of canonical build" >&2;}
1809 { (exit 1); exit 1; }; };;
1810esac
1811build=$ac_cv_build
1812ac_save_IFS=$IFS; IFS='-'
1813set x $ac_cv_build
1814shift
1815build_cpu=$1
1816build_vendor=$2
1817shift; shift
1818# Remember, the first character of IFS is used to create $*,
1819# except with old shells:
1820build_os=$*
1821IFS=$ac_save_IFS
1822case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1823
1824
1825{ echo "$as_me:$LINENO: checking host system type" >&5
1826echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1827if test "${ac_cv_host+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1829else
1830 if test "x$host_alias" = x; then
1831 ac_cv_host=$ac_cv_build
1832else
1833 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1834 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1835echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1836 { (exit 1); exit 1; }; }
1837fi
1838
1839fi
1840{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1841echo "${ECHO_T}$ac_cv_host" >&6; }
1842case $ac_cv_host in
1843*-*-*) ;;
1844*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1845echo "$as_me: error: invalid value of canonical host" >&2;}
1846 { (exit 1); exit 1; }; };;
1847esac
1848host=$ac_cv_host
1849ac_save_IFS=$IFS; IFS='-'
1850set x $ac_cv_host
1851shift
1852host_cpu=$1
1853host_vendor=$2
1854shift; shift
1855# Remember, the first character of IFS is used to create $*,
1856# except with old shells:
1857host_os=$*
1858IFS=$ac_save_IFS
1859case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1860
1861
1862{ echo "$as_me:$LINENO: checking target system type" >&5
1863echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1864if test "${ac_cv_target+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1866else
1867 if test "x$target_alias" = x; then
1868 ac_cv_target=$ac_cv_host
1869else
1870 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1871 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1872echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1873 { (exit 1); exit 1; }; }
1874fi
1875
1876fi
1877{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1878echo "${ECHO_T}$ac_cv_target" >&6; }
1879case $ac_cv_target in
1880*-*-*) ;;
1881*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1882echo "$as_me: error: invalid value of canonical target" >&2;}
1883 { (exit 1); exit 1; }; };;
1884esac
1885target=$ac_cv_target
1886ac_save_IFS=$IFS; IFS='-'
1887set x $ac_cv_target
1888shift
1889target_cpu=$1
1890target_vendor=$2
1891shift; shift
1892# Remember, the first character of IFS is used to create $*,
1893# except with old shells:
1894target_os=$*
1895IFS=$ac_save_IFS
1896case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1897
1898
1899# The aliases save the names the user supplied, while $host etc.
1900# will get canonicalized.
1901test -n "$target_alias" &&
1902 test "$program_prefix$program_suffix$program_transform_name" = \
1903 NONENONEs,x,x, &&
1904 program_prefix=${target_alias}-
1905test "$program_prefix" != NONE &&
1906 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1907# Use a double $ so make ignores it.
1908test "$program_suffix" != NONE &&
1909 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1910# Double any \ or $. echo might interpret backslashes.
1911# By default was `s,x,x', remove it if useless.
1912cat <<\_ACEOF >conftest.sed
1913s/[\\$]/&&/g;s/;s,x,x,$//
1914_ACEOF
1915program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1916rm -f conftest.sed
1917
1918
1919PACKAGE=mgpp
1920VERSION=1.3
1921
1922cat >>confdefs.h <<_ACEOF
1923#define PACKAGE "$PACKAGE"
1924_ACEOF
1925
1926cat >>confdefs.h <<_ACEOF
1927#define VERSION "$VERSION"
1928_ACEOF
1929
1930
1931
1932
1933
1934{ echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
1935echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6; }
1936arch_64bit=no
1937case "$host_cpu" in
1938x86_64) arch_64bit=yes ;;
1939esac
1940
1941if test "$arch_64bit" = yes; then
1942 { echo "$as_me:$LINENO: result: yes" >&5
1943echo "${ECHO_T}yes" >&6; }
1944 if test -z "$COMPAT32BITFLAGS" ; then
1945 COMPAT32BITFLAGS="-m32"
1946 fi
1947else
1948 { echo "$as_me:$LINENO: result: no" >&5
1949echo "${ECHO_T}no" >&6; }
1950 if test -z "$COMPAT32BITFLAGS" ; then
1951 COMPAT32BITFLAGS=
1952 fi
1953fi
1954
1955
1956# Check whether --enable-accentfold was given.
1957if test "${enable_accentfold+set}" = set; then
1958 enableval=$enable_accentfold; ENABLE_ACCENTFOLD=0
1959else
1960 ENABLE_ACCENTFOLD=1
1961fi
1962
1963cat >>confdefs.h <<\_ACEOF
1964#define ENABLE_ACCENTFOLD $ENABLE_ACCENTFOLD
1965_ACEOF
1966
1967
1968
1969ac_ext=cpp
1970ac_cpp='$CXXCPP $CPPFLAGS'
1971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1974if test -z "$CXX"; then
1975 if test -n "$CCC"; then
1976 CXX=$CCC
1977 else
1978 if test -n "$ac_tool_prefix"; then
1979 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1980 do
1981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1982set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1985if test "${ac_cv_prog_CXX+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1987else
1988 if test -n "$CXX"; then
1989 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1990else
1991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992for as_dir in $PATH
1993do
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1998 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000 break 2
2001 fi
2002done
2003done
2004IFS=$as_save_IFS
2005
2006fi
2007fi
2008CXX=$ac_cv_prog_CXX
2009if test -n "$CXX"; then
2010 { echo "$as_me:$LINENO: result: $CXX" >&5
2011echo "${ECHO_T}$CXX" >&6; }
2012else
2013 { echo "$as_me:$LINENO: result: no" >&5
2014echo "${ECHO_T}no" >&6; }
2015fi
2016
2017
2018 test -n "$CXX" && break
2019 done
2020fi
2021if test -z "$CXX"; then
2022 ac_ct_CXX=$CXX
2023 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2024do
2025 # Extract the first word of "$ac_prog", so it can be a program name with args.
2026set dummy $ac_prog; ac_word=$2
2027{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2029if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031else
2032 if test -n "$ac_ct_CXX"; then
2033 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2034else
2035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036for as_dir in $PATH
2037do
2038 IFS=$as_save_IFS
2039 test -z "$as_dir" && as_dir=.
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2042 ac_cv_prog_ac_ct_CXX="$ac_prog"
2043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044 break 2
2045 fi
2046done
2047done
2048IFS=$as_save_IFS
2049
2050fi
2051fi
2052ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2053if test -n "$ac_ct_CXX"; then
2054 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2055echo "${ECHO_T}$ac_ct_CXX" >&6; }
2056else
2057 { echo "$as_me:$LINENO: result: no" >&5
2058echo "${ECHO_T}no" >&6; }
2059fi
2060
2061
2062 test -n "$ac_ct_CXX" && break
2063done
2064
2065 if test "x$ac_ct_CXX" = x; then
2066 CXX="g++"
2067 else
2068 case $cross_compiling:$ac_tool_warned in
2069yes:)
2070{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2071whose name does not start with the host triplet. If you think this
2072configuration is useful to you, please write to [email protected]." >&5
2073echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2074whose name does not start with the host triplet. If you think this
2075configuration is useful to you, please write to [email protected]." >&2;}
2076ac_tool_warned=yes ;;
2077esac
2078 CXX=$ac_ct_CXX
2079 fi
2080fi
2081
2082 fi
2083fi
2084# Provide some information about the compiler.
2085echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2086ac_compiler=`set X $ac_compile; echo $2`
2087{ (ac_try="$ac_compiler --version >&5"
2088case "(($ac_try" in
2089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2090 *) ac_try_echo=$ac_try;;
2091esac
2092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2093 (eval "$ac_compiler --version >&5") 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }
2097{ (ac_try="$ac_compiler -v >&5"
2098case "(($ac_try" in
2099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2100 *) ac_try_echo=$ac_try;;
2101esac
2102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2103 (eval "$ac_compiler -v >&5") 2>&5
2104 ac_status=$?
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }
2107{ (ac_try="$ac_compiler -V >&5"
2108case "(($ac_try" in
2109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2110 *) ac_try_echo=$ac_try;;
2111esac
2112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2113 (eval "$ac_compiler -V >&5") 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }
2117
2118cat >conftest.$ac_ext <<_ACEOF
2119/* confdefs.h. */
2120_ACEOF
2121cat confdefs.h >>conftest.$ac_ext
2122cat >>conftest.$ac_ext <<_ACEOF
2123/* end confdefs.h. */
2124
2125int
2126main ()
2127{
2128
2129 ;
2130 return 0;
2131}
2132_ACEOF
2133ac_clean_files_save=$ac_clean_files
2134ac_clean_files="$ac_clean_files a.out a.exe b.out"
2135# Try to create an executable without -o first, disregard a.out.
2136# It will help us diagnose broken compilers, and finding out an intuition
2137# of exeext.
2138{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2139echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2140ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2141#
2142# List of possible output files, starting from the most likely.
2143# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2144# only as a last resort. b.out is created by i960 compilers.
2145ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2146#
2147# The IRIX 6 linker writes into existing files which may not be
2148# executable, retaining their permissions. Remove them first so a
2149# subsequent execution test works.
2150ac_rmfiles=
2151for ac_file in $ac_files
2152do
2153 case $ac_file in
2154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2155 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2156 esac
2157done
2158rm -f $ac_rmfiles
2159
2160if { (ac_try="$ac_link_default"
2161case "(($ac_try" in
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2164esac
2165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2166 (eval "$ac_link_default") 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; then
2170 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2171# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2172# in a Makefile. We should not override ac_cv_exeext if it was cached,
2173# so that the user can short-circuit this test for compilers unknown to
2174# Autoconf.
2175for ac_file in $ac_files ''
2176do
2177 test -f "$ac_file" || continue
2178 case $ac_file in
2179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2180 ;;
2181 [ab].out )
2182 # We found the default executable, but exeext='' is most
2183 # certainly right.
2184 break;;
2185 *.* )
2186 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2187 then :; else
2188 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2189 fi
2190 # We set ac_cv_exeext here because the later test for it is not
2191 # safe: cross compilers may not add the suffix if given an `-o'
2192 # argument, so we may need to know it at that point already.
2193 # Even if this section looks crufty: it has the advantage of
2194 # actually working.
2195 break;;
2196 * )
2197 break;;
2198 esac
2199done
2200test "$ac_cv_exeext" = no && ac_cv_exeext=
2201
2202else
2203 ac_file=''
2204fi
2205
2206{ echo "$as_me:$LINENO: result: $ac_file" >&5
2207echo "${ECHO_T}$ac_file" >&6; }
2208if test -z "$ac_file"; then
2209 echo "$as_me: failed program was:" >&5
2210sed 's/^/| /' conftest.$ac_ext >&5
2211
2212{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2213See \`config.log' for more details." >&5
2214echo "$as_me: error: C++ compiler cannot create executables
2215See \`config.log' for more details." >&2;}
2216 { (exit 77); exit 77; }; }
2217fi
2218
2219ac_exeext=$ac_cv_exeext
2220
2221# Check that the compiler produces executables we can run. If not, either
2222# the compiler is broken, or we cross compile.
2223{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2224echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2225# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2226# If not cross compiling, check that we can run a simple program.
2227if test "$cross_compiling" != yes; then
2228 if { ac_try='./$ac_file'
2229 { (case "(($ac_try" in
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2232esac
2233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2234 (eval "$ac_try") 2>&5
2235 ac_status=$?
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; }; then
2238 cross_compiling=no
2239 else
2240 if test "$cross_compiling" = maybe; then
2241 cross_compiling=yes
2242 else
2243 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2244If you meant to cross compile, use \`--host'.
2245See \`config.log' for more details." >&5
2246echo "$as_me: error: cannot run C++ compiled programs.
2247If you meant to cross compile, use \`--host'.
2248See \`config.log' for more details." >&2;}
2249 { (exit 1); exit 1; }; }
2250 fi
2251 fi
2252fi
2253{ echo "$as_me:$LINENO: result: yes" >&5
2254echo "${ECHO_T}yes" >&6; }
2255
2256rm -f a.out a.exe conftest$ac_cv_exeext b.out
2257ac_clean_files=$ac_clean_files_save
2258# Check that the compiler produces executables we can run. If not, either
2259# the compiler is broken, or we cross compile.
2260{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2261echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2262{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2263echo "${ECHO_T}$cross_compiling" >&6; }
2264
2265{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2266echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2267if { (ac_try="$ac_link"
2268case "(($ac_try" in
2269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270 *) ac_try_echo=$ac_try;;
2271esac
2272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2273 (eval "$ac_link") 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; then
2277 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2278# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2279# work properly (i.e., refer to `conftest.exe'), while it won't with
2280# `rm'.
2281for ac_file in conftest.exe conftest conftest.*; do
2282 test -f "$ac_file" || continue
2283 case $ac_file in
2284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2285 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2286 break;;
2287 * ) break;;
2288 esac
2289done
2290else
2291 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2292See \`config.log' for more details." >&5
2293echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2294See \`config.log' for more details." >&2;}
2295 { (exit 1); exit 1; }; }
2296fi
2297
2298rm -f conftest$ac_cv_exeext
2299{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2300echo "${ECHO_T}$ac_cv_exeext" >&6; }
2301
2302rm -f conftest.$ac_ext
2303EXEEXT=$ac_cv_exeext
2304ac_exeext=$EXEEXT
2305{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2306echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2307if test "${ac_cv_objext+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2309else
2310 cat >conftest.$ac_ext <<_ACEOF
2311/* confdefs.h. */
2312_ACEOF
2313cat confdefs.h >>conftest.$ac_ext
2314cat >>conftest.$ac_ext <<_ACEOF
2315/* end confdefs.h. */
2316
2317int
2318main ()
2319{
2320
2321 ;
2322 return 0;
2323}
2324_ACEOF
2325rm -f conftest.o conftest.obj
2326if { (ac_try="$ac_compile"
2327case "(($ac_try" in
2328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2329 *) ac_try_echo=$ac_try;;
2330esac
2331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2332 (eval "$ac_compile") 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; then
2336 for ac_file in conftest.o conftest.obj conftest.*; do
2337 test -f "$ac_file" || continue;
2338 case $ac_file in
2339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2340 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2341 break;;
2342 esac
2343done
2344else
2345 echo "$as_me: failed program was:" >&5
2346sed 's/^/| /' conftest.$ac_ext >&5
2347
2348{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2349See \`config.log' for more details." >&5
2350echo "$as_me: error: cannot compute suffix of object files: cannot compile
2351See \`config.log' for more details." >&2;}
2352 { (exit 1); exit 1; }; }
2353fi
2354
2355rm -f conftest.$ac_cv_objext conftest.$ac_ext
2356fi
2357{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2358echo "${ECHO_T}$ac_cv_objext" >&6; }
2359OBJEXT=$ac_cv_objext
2360ac_objext=$OBJEXT
2361{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2362echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2363if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365else
2366 cat >conftest.$ac_ext <<_ACEOF
2367/* confdefs.h. */
2368_ACEOF
2369cat confdefs.h >>conftest.$ac_ext
2370cat >>conftest.$ac_ext <<_ACEOF
2371/* end confdefs.h. */
2372
2373int
2374main ()
2375{
2376#ifndef __GNUC__
2377 choke me
2378#endif
2379
2380 ;
2381 return 0;
2382}
2383_ACEOF
2384rm -f conftest.$ac_objext
2385if { (ac_try="$ac_compile"
2386case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2389esac
2390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2391 (eval "$ac_compile") 2>conftest.er1
2392 ac_status=$?
2393 grep -v '^ *+' conftest.er1 >conftest.err
2394 rm -f conftest.er1
2395 cat conftest.err >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } && {
2398 test -z "$ac_cxx_werror_flag" ||
2399 test ! -s conftest.err
2400 } && test -s conftest.$ac_objext; then
2401 ac_compiler_gnu=yes
2402else
2403 echo "$as_me: failed program was:" >&5
2404sed 's/^/| /' conftest.$ac_ext >&5
2405
2406 ac_compiler_gnu=no
2407fi
2408
2409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2411
2412fi
2413{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2414echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2415GXX=`test $ac_compiler_gnu = yes && echo yes`
2416ac_test_CXXFLAGS=${CXXFLAGS+set}
2417ac_save_CXXFLAGS=$CXXFLAGS
2418{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2419echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2420if test "${ac_cv_prog_cxx_g+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2422else
2423 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2424 ac_cxx_werror_flag=yes
2425 ac_cv_prog_cxx_g=no
2426 CXXFLAGS="-g"
2427 cat >conftest.$ac_ext <<_ACEOF
2428/* confdefs.h. */
2429_ACEOF
2430cat confdefs.h >>conftest.$ac_ext
2431cat >>conftest.$ac_ext <<_ACEOF
2432/* end confdefs.h. */
2433
2434int
2435main ()
2436{
2437
2438 ;
2439 return 0;
2440}
2441_ACEOF
2442rm -f conftest.$ac_objext
2443if { (ac_try="$ac_compile"
2444case "(($ac_try" in
2445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446 *) ac_try_echo=$ac_try;;
2447esac
2448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2449 (eval "$ac_compile") 2>conftest.er1
2450 ac_status=$?
2451 grep -v '^ *+' conftest.er1 >conftest.err
2452 rm -f conftest.er1
2453 cat conftest.err >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); } && {
2456 test -z "$ac_cxx_werror_flag" ||
2457 test ! -s conftest.err
2458 } && test -s conftest.$ac_objext; then
2459 ac_cv_prog_cxx_g=yes
2460else
2461 echo "$as_me: failed program was:" >&5
2462sed 's/^/| /' conftest.$ac_ext >&5
2463
2464 CXXFLAGS=""
2465 cat >conftest.$ac_ext <<_ACEOF
2466/* confdefs.h. */
2467_ACEOF
2468cat confdefs.h >>conftest.$ac_ext
2469cat >>conftest.$ac_ext <<_ACEOF
2470/* end confdefs.h. */
2471
2472int
2473main ()
2474{
2475
2476 ;
2477 return 0;
2478}
2479_ACEOF
2480rm -f conftest.$ac_objext
2481if { (ac_try="$ac_compile"
2482case "(($ac_try" in
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2485esac
2486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487 (eval "$ac_compile") 2>conftest.er1
2488 ac_status=$?
2489 grep -v '^ *+' conftest.er1 >conftest.err
2490 rm -f conftest.er1
2491 cat conftest.err >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); } && {
2494 test -z "$ac_cxx_werror_flag" ||
2495 test ! -s conftest.err
2496 } && test -s conftest.$ac_objext; then
2497 :
2498else
2499 echo "$as_me: failed program was:" >&5
2500sed 's/^/| /' conftest.$ac_ext >&5
2501
2502 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2503 CXXFLAGS="-g"
2504 cat >conftest.$ac_ext <<_ACEOF
2505/* confdefs.h. */
2506_ACEOF
2507cat confdefs.h >>conftest.$ac_ext
2508cat >>conftest.$ac_ext <<_ACEOF
2509/* end confdefs.h. */
2510
2511int
2512main ()
2513{
2514
2515 ;
2516 return 0;
2517}
2518_ACEOF
2519rm -f conftest.$ac_objext
2520if { (ac_try="$ac_compile"
2521case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524esac
2525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_compile") 2>conftest.er1
2527 ac_status=$?
2528 grep -v '^ *+' conftest.er1 >conftest.err
2529 rm -f conftest.er1
2530 cat conftest.err >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } && {
2533 test -z "$ac_cxx_werror_flag" ||
2534 test ! -s conftest.err
2535 } && test -s conftest.$ac_objext; then
2536 ac_cv_prog_cxx_g=yes
2537else
2538 echo "$as_me: failed program was:" >&5
2539sed 's/^/| /' conftest.$ac_ext >&5
2540
2541
2542fi
2543
2544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2545fi
2546
2547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2548fi
2549
2550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2551 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2552fi
2553{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2554echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2555if test "$ac_test_CXXFLAGS" = set; then
2556 CXXFLAGS=$ac_save_CXXFLAGS
2557elif test $ac_cv_prog_cxx_g = yes; then
2558 if test "$GXX" = yes; then
2559 CXXFLAGS="-g -O2"
2560 else
2561 CXXFLAGS="-g"
2562 fi
2563else
2564 if test "$GXX" = yes; then
2565 CXXFLAGS="-O2"
2566 else
2567 CXXFLAGS=
2568 fi
2569fi
2570ac_ext=c
2571ac_cpp='$CPP $CPPFLAGS'
2572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574ac_compiler_gnu=$ac_cv_c_compiler_gnu
2575
2576for ac_prog in gawk mawk nawk awk
2577do
2578 # Extract the first word of "$ac_prog", so it can be a program name with args.
2579set dummy $ac_prog; ac_word=$2
2580{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2582if test "${ac_cv_prog_AWK+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2584else
2585 if test -n "$AWK"; then
2586 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2587else
2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589for as_dir in $PATH
2590do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2595 ac_cv_prog_AWK="$ac_prog"
2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2598 fi
2599done
2600done
2601IFS=$as_save_IFS
2602
2603fi
2604fi
2605AWK=$ac_cv_prog_AWK
2606if test -n "$AWK"; then
2607 { echo "$as_me:$LINENO: result: $AWK" >&5
2608echo "${ECHO_T}$AWK" >&6; }
2609else
2610 { echo "$as_me:$LINENO: result: no" >&5
2611echo "${ECHO_T}no" >&6; }
2612fi
2613
2614
2615 test -n "$AWK" && break
2616done
2617
2618for ac_prog in 'bison -y' byacc
2619do
2620 # Extract the first word of "$ac_prog", so it can be a program name with args.
2621set dummy $ac_prog; ac_word=$2
2622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2624if test "${ac_cv_prog_YACC+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2626else
2627 if test -n "$YACC"; then
2628 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2629else
2630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631for as_dir in $PATH
2632do
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2637 ac_cv_prog_YACC="$ac_prog"
2638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 break 2
2640 fi
2641done
2642done
2643IFS=$as_save_IFS
2644
2645fi
2646fi
2647YACC=$ac_cv_prog_YACC
2648if test -n "$YACC"; then
2649 { echo "$as_me:$LINENO: result: $YACC" >&5
2650echo "${ECHO_T}$YACC" >&6; }
2651else
2652 { echo "$as_me:$LINENO: result: no" >&5
2653echo "${ECHO_T}no" >&6; }
2654fi
2655
2656
2657 test -n "$YACC" && break
2658done
2659test -n "$YACC" || YACC="yacc"
2660
2661ac_ext=c
2662ac_cpp='$CPP $CPPFLAGS'
2663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665ac_compiler_gnu=$ac_cv_c_compiler_gnu
2666if test -n "$ac_tool_prefix"; then
2667 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2668set dummy ${ac_tool_prefix}gcc; ac_word=$2
2669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2671if test "${ac_cv_prog_CC+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2673else
2674 if test -n "$CC"; then
2675 ac_cv_prog_CC="$CC" # Let the user override the test.
2676else
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2687 fi
2688done
2689done
2690IFS=$as_save_IFS
2691
2692fi
2693fi
2694CC=$ac_cv_prog_CC
2695if test -n "$CC"; then
2696 { echo "$as_me:$LINENO: result: $CC" >&5
2697echo "${ECHO_T}$CC" >&6; }
2698else
2699 { echo "$as_me:$LINENO: result: no" >&5
2700echo "${ECHO_T}no" >&6; }
2701fi
2702
2703
2704fi
2705if test -z "$ac_cv_prog_CC"; then
2706 ac_ct_CC=$CC
2707 # Extract the first word of "gcc", so it can be a program name with args.
2708set dummy gcc; ac_word=$2
2709{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2711if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2713else
2714 if test -n "$ac_ct_CC"; then
2715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2716else
2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH
2719do
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_ac_ct_CC="gcc"
2725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 break 2
2727 fi
2728done
2729done
2730IFS=$as_save_IFS
2731
2732fi
2733fi
2734ac_ct_CC=$ac_cv_prog_ac_ct_CC
2735if test -n "$ac_ct_CC"; then
2736 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2737echo "${ECHO_T}$ac_ct_CC" >&6; }
2738else
2739 { echo "$as_me:$LINENO: result: no" >&5
2740echo "${ECHO_T}no" >&6; }
2741fi
2742
2743 if test "x$ac_ct_CC" = x; then
2744 CC=""
2745 else
2746 case $cross_compiling:$ac_tool_warned in
2747yes:)
2748{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2749whose name does not start with the host triplet. If you think this
2750configuration is useful to you, please write to [email protected]." >&5
2751echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2752whose name does not start with the host triplet. If you think this
2753configuration is useful to you, please write to [email protected]." >&2;}
2754ac_tool_warned=yes ;;
2755esac
2756 CC=$ac_ct_CC
2757 fi
2758else
2759 CC="$ac_cv_prog_CC"
2760fi
2761
2762if test -z "$CC"; then
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2765set dummy ${ac_tool_prefix}cc; ac_word=$2
2766{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2768if test "${ac_cv_prog_CC+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2770else
2771 if test -n "$CC"; then
2772 ac_cv_prog_CC="$CC" # Let the user override the test.
2773else
2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775for as_dir in $PATH
2776do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2781 ac_cv_prog_CC="${ac_tool_prefix}cc"
2782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785done
2786done
2787IFS=$as_save_IFS
2788
2789fi
2790fi
2791CC=$ac_cv_prog_CC
2792if test -n "$CC"; then
2793 { echo "$as_me:$LINENO: result: $CC" >&5
2794echo "${ECHO_T}$CC" >&6; }
2795else
2796 { echo "$as_me:$LINENO: result: no" >&5
2797echo "${ECHO_T}no" >&6; }
2798fi
2799
2800
2801 fi
2802fi
2803if test -z "$CC"; then
2804 # Extract the first word of "cc", so it can be a program name with args.
2805set dummy cc; ac_word=$2
2806{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2808if test "${ac_cv_prog_CC+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2810else
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC="$CC" # Let the user override the test.
2813else
2814 ac_prog_rejected=no
2815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816for as_dir in $PATH
2817do
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2823 ac_prog_rejected=yes
2824 continue
2825 fi
2826 ac_cv_prog_CC="cc"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830done
2831done
2832IFS=$as_save_IFS
2833
2834if test $ac_prog_rejected = yes; then
2835 # We found a bogon in the path, so make sure we never use it.
2836 set dummy $ac_cv_prog_CC
2837 shift
2838 if test $# != 0; then
2839 # We chose a different compiler from the bogus one.
2840 # However, it has the same basename, so the bogon will be chosen
2841 # first if we set CC to just the basename; use the full file name.
2842 shift
2843 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2844 fi
2845fi
2846fi
2847fi
2848CC=$ac_cv_prog_CC
2849if test -n "$CC"; then
2850 { echo "$as_me:$LINENO: result: $CC" >&5
2851echo "${ECHO_T}$CC" >&6; }
2852else
2853 { echo "$as_me:$LINENO: result: no" >&5
2854echo "${ECHO_T}no" >&6; }
2855fi
2856
2857
2858fi
2859if test -z "$CC"; then
2860 if test -n "$ac_tool_prefix"; then
2861 for ac_prog in cl.exe
2862 do
2863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2864set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2867if test "${ac_cv_prog_CC+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2869else
2870 if test -n "$CC"; then
2871 ac_cv_prog_CC="$CC" # Let the user override the test.
2872else
2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH
2875do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2883 fi
2884done
2885done
2886IFS=$as_save_IFS
2887
2888fi
2889fi
2890CC=$ac_cv_prog_CC
2891if test -n "$CC"; then
2892 { echo "$as_me:$LINENO: result: $CC" >&5
2893echo "${ECHO_T}$CC" >&6; }
2894else
2895 { echo "$as_me:$LINENO: result: no" >&5
2896echo "${ECHO_T}no" >&6; }
2897fi
2898
2899
2900 test -n "$CC" && break
2901 done
2902fi
2903if test -z "$CC"; then
2904 ac_ct_CC=$CC
2905 for ac_prog in cl.exe
2906do
2907 # Extract the first word of "$ac_prog", so it can be a program name with args.
2908set dummy $ac_prog; ac_word=$2
2909{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2911if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2913else
2914 if test -n "$ac_ct_CC"; then
2915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2916else
2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918for as_dir in $PATH
2919do
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924 ac_cv_prog_ac_ct_CC="$ac_prog"
2925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2927 fi
2928done
2929done
2930IFS=$as_save_IFS
2931
2932fi
2933fi
2934ac_ct_CC=$ac_cv_prog_ac_ct_CC
2935if test -n "$ac_ct_CC"; then
2936 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2937echo "${ECHO_T}$ac_ct_CC" >&6; }
2938else
2939 { echo "$as_me:$LINENO: result: no" >&5
2940echo "${ECHO_T}no" >&6; }
2941fi
2942
2943
2944 test -n "$ac_ct_CC" && break
2945done
2946
2947 if test "x$ac_ct_CC" = x; then
2948 CC=""
2949 else
2950 case $cross_compiling:$ac_tool_warned in
2951yes:)
2952{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2953whose name does not start with the host triplet. If you think this
2954configuration is useful to you, please write to [email protected]." >&5
2955echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2956whose name does not start with the host triplet. If you think this
2957configuration is useful to you, please write to [email protected]." >&2;}
2958ac_tool_warned=yes ;;
2959esac
2960 CC=$ac_ct_CC
2961 fi
2962fi
2963
2964fi
2965
2966
2967test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2968See \`config.log' for more details." >&5
2969echo "$as_me: error: no acceptable C compiler found in \$PATH
2970See \`config.log' for more details." >&2;}
2971 { (exit 1); exit 1; }; }
2972
2973# Provide some information about the compiler.
2974echo "$as_me:$LINENO: checking for C compiler version" >&5
2975ac_compiler=`set X $ac_compile; echo $2`
2976{ (ac_try="$ac_compiler --version >&5"
2977case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980esac
2981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_compiler --version >&5") 2>&5
2983 ac_status=$?
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }
2986{ (ac_try="$ac_compiler -v >&5"
2987case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990esac
2991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_compiler -v >&5") 2>&5
2993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }
2996{ (ac_try="$ac_compiler -V >&5"
2997case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000esac
3001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compiler -V >&5") 2>&5
3003 ac_status=$?
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }
3006
3007{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3008echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3009if test "${ac_cv_c_compiler_gnu+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3011else
3012 cat >conftest.$ac_ext <<_ACEOF
3013/* confdefs.h. */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
3017/* end confdefs.h. */
3018
3019int
3020main ()
3021{
3022#ifndef __GNUC__
3023 choke me
3024#endif
3025
3026 ;
3027 return 0;
3028}
3029_ACEOF
3030rm -f conftest.$ac_objext
3031if { (ac_try="$ac_compile"
3032case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035esac
3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_compile") 2>conftest.er1
3038 ac_status=$?
3039 grep -v '^ *+' conftest.er1 >conftest.err
3040 rm -f conftest.er1
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } && {
3044 test -z "$ac_c_werror_flag" ||
3045 test ! -s conftest.err
3046 } && test -s conftest.$ac_objext; then
3047 ac_compiler_gnu=yes
3048else
3049 echo "$as_me: failed program was:" >&5
3050sed 's/^/| /' conftest.$ac_ext >&5
3051
3052 ac_compiler_gnu=no
3053fi
3054
3055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056ac_cv_c_compiler_gnu=$ac_compiler_gnu
3057
3058fi
3059{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3060echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3061GCC=`test $ac_compiler_gnu = yes && echo yes`
3062ac_test_CFLAGS=${CFLAGS+set}
3063ac_save_CFLAGS=$CFLAGS
3064{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3065echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3066if test "${ac_cv_prog_cc_g+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3068else
3069 ac_save_c_werror_flag=$ac_c_werror_flag
3070 ac_c_werror_flag=yes
3071 ac_cv_prog_cc_g=no
3072 CFLAGS="-g"
3073 cat >conftest.$ac_ext <<_ACEOF
3074/* confdefs.h. */
3075_ACEOF
3076cat confdefs.h >>conftest.$ac_ext
3077cat >>conftest.$ac_ext <<_ACEOF
3078/* end confdefs.h. */
3079
3080int
3081main ()
3082{
3083
3084 ;
3085 return 0;
3086}
3087_ACEOF
3088rm -f conftest.$ac_objext
3089if { (ac_try="$ac_compile"
3090case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093esac
3094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_compile") 2>conftest.er1
3096 ac_status=$?
3097 grep -v '^ *+' conftest.er1 >conftest.err
3098 rm -f conftest.er1
3099 cat conftest.err >&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } && {
3102 test -z "$ac_c_werror_flag" ||
3103 test ! -s conftest.err
3104 } && test -s conftest.$ac_objext; then
3105 ac_cv_prog_cc_g=yes
3106else
3107 echo "$as_me: failed program was:" >&5
3108sed 's/^/| /' conftest.$ac_ext >&5
3109
3110 CFLAGS=""
3111 cat >conftest.$ac_ext <<_ACEOF
3112/* confdefs.h. */
3113_ACEOF
3114cat confdefs.h >>conftest.$ac_ext
3115cat >>conftest.$ac_ext <<_ACEOF
3116/* end confdefs.h. */
3117
3118int
3119main ()
3120{
3121
3122 ;
3123 return 0;
3124}
3125_ACEOF
3126rm -f conftest.$ac_objext
3127if { (ac_try="$ac_compile"
3128case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131esac
3132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_compile") 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } && {
3140 test -z "$ac_c_werror_flag" ||
3141 test ! -s conftest.err
3142 } && test -s conftest.$ac_objext; then
3143 :
3144else
3145 echo "$as_me: failed program was:" >&5
3146sed 's/^/| /' conftest.$ac_ext >&5
3147
3148 ac_c_werror_flag=$ac_save_c_werror_flag
3149 CFLAGS="-g"
3150 cat >conftest.$ac_ext <<_ACEOF
3151/* confdefs.h. */
3152_ACEOF
3153cat confdefs.h >>conftest.$ac_ext
3154cat >>conftest.$ac_ext <<_ACEOF
3155/* end confdefs.h. */
3156
3157int
3158main ()
3159{
3160
3161 ;
3162 return 0;
3163}
3164_ACEOF
3165rm -f conftest.$ac_objext
3166if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
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
3178 (exit $ac_status); } && {
3179 test -z "$ac_c_werror_flag" ||
3180 test ! -s conftest.err
3181 } && test -s conftest.$ac_objext; then
3182 ac_cv_prog_cc_g=yes
3183else
3184 echo "$as_me: failed program was:" >&5
3185sed 's/^/| /' conftest.$ac_ext >&5
3186
3187
3188fi
3189
3190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191fi
3192
3193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194fi
3195
3196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 ac_c_werror_flag=$ac_save_c_werror_flag
3198fi
3199{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3200echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3201if test "$ac_test_CFLAGS" = set; then
3202 CFLAGS=$ac_save_CFLAGS
3203elif test $ac_cv_prog_cc_g = yes; then
3204 if test "$GCC" = yes; then
3205 CFLAGS="-g -O2"
3206 else
3207 CFLAGS="-g"
3208 fi
3209else
3210 if test "$GCC" = yes; then
3211 CFLAGS="-O2"
3212 else
3213 CFLAGS=
3214 fi
3215fi
3216{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3217echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3218if test "${ac_cv_prog_cc_c89+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220else
3221 ac_cv_prog_cc_c89=no
3222ac_save_CC=$CC
3223cat >conftest.$ac_ext <<_ACEOF
3224/* confdefs.h. */
3225_ACEOF
3226cat confdefs.h >>conftest.$ac_ext
3227cat >>conftest.$ac_ext <<_ACEOF
3228/* end confdefs.h. */
3229#include <stdarg.h>
3230#include <stdio.h>
3231#include <sys/types.h>
3232#include <sys/stat.h>
3233/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3234struct buf { int x; };
3235FILE * (*rcsopen) (struct buf *, struct stat *, int);
3236static char *e (p, i)
3237 char **p;
3238 int i;
3239{
3240 return p[i];
3241}
3242static char *f (char * (*g) (char **, int), char **p, ...)
3243{
3244 char *s;
3245 va_list v;
3246 va_start (v,p);
3247 s = g (p, va_arg (v,int));
3248 va_end (v);
3249 return s;
3250}
3251
3252/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3253 function prototypes and stuff, but not '\xHH' hex character constants.
3254 These don't provoke an error unfortunately, instead are silently treated
3255 as 'x'. The following induces an error, until -std is added to get
3256 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3257 array size at least. It's necessary to write '\x00'==0 to get something
3258 that's true only with -std. */
3259int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3260
3261/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3262 inside strings and character constants. */
3263#define FOO(x) 'x'
3264int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3265
3266int test (int i, double x);
3267struct s1 {int (*f) (int a);};
3268struct s2 {int (*f) (double a);};
3269int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3270int argc;
3271char **argv;
3272int
3273main ()
3274{
3275return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3276 ;
3277 return 0;
3278}
3279_ACEOF
3280for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3281 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3282do
3283 CC="$ac_save_CC $ac_arg"
3284 rm -f conftest.$ac_objext
3285if { (ac_try="$ac_compile"
3286case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3289esac
3290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_compile") 2>conftest.er1
3292 ac_status=$?
3293 grep -v '^ *+' conftest.er1 >conftest.err
3294 rm -f conftest.er1
3295 cat conftest.err >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } && {
3298 test -z "$ac_c_werror_flag" ||
3299 test ! -s conftest.err
3300 } && test -s conftest.$ac_objext; then
3301 ac_cv_prog_cc_c89=$ac_arg
3302else
3303 echo "$as_me: failed program was:" >&5
3304sed 's/^/| /' conftest.$ac_ext >&5
3305
3306
3307fi
3308
3309rm -f core conftest.err conftest.$ac_objext
3310 test "x$ac_cv_prog_cc_c89" != "xno" && break
3311done
3312rm -f conftest.$ac_ext
3313CC=$ac_save_CC
3314
3315fi
3316# AC_CACHE_VAL
3317case "x$ac_cv_prog_cc_c89" in
3318 x)
3319 { echo "$as_me:$LINENO: result: none needed" >&5
3320echo "${ECHO_T}none needed" >&6; } ;;
3321 xno)
3322 { echo "$as_me:$LINENO: result: unsupported" >&5
3323echo "${ECHO_T}unsupported" >&6; } ;;
3324 *)
3325 CC="$CC $ac_cv_prog_cc_c89"
3326 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3327echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3328esac
3329
3330
3331ac_ext=c
3332ac_cpp='$CPP $CPPFLAGS'
3333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3335ac_compiler_gnu=$ac_cv_c_compiler_gnu
3336
3337# Find a good install program. We prefer a C program (faster),
3338# so one script is as good as another. But avoid the broken or
3339# incompatible versions:
3340# SysV /etc/install, /usr/sbin/install
3341# SunOS /usr/etc/install
3342# IRIX /sbin/install
3343# AIX /bin/install
3344# AmigaOS /C/install, which installs bootblocks on floppy discs
3345# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3346# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3347# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3348# OS/2's system install, which has a completely different semantic
3349# ./install, which can be erroneously created by make from ./install.sh.
3350{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3351echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3352if test -z "$INSTALL"; then
3353if test "${ac_cv_path_install+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3355else
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357for as_dir in $PATH
3358do
3359 IFS=$as_save_IFS
3360 test -z "$as_dir" && as_dir=.
3361 # Account for people who put trailing slashes in PATH elements.
3362case $as_dir/ in
3363 ./ | .// | /cC/* | \
3364 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3365 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3366 /usr/ucb/* ) ;;
3367 *)
3368 # OSF1 and SCO ODT 3.0 have their own names for install.
3369 # Don't use installbsd from OSF since it installs stuff as root
3370 # by default.
3371 for ac_prog in ginstall scoinst install; do
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3374 if test $ac_prog = install &&
3375 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3376 # AIX install. It has an incompatible calling convention.
3377 :
3378 elif test $ac_prog = install &&
3379 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3380 # program-specific install script used by HP pwplus--don't use.
3381 :
3382 else
3383 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3384 break 3
3385 fi
3386 fi
3387 done
3388 done
3389 ;;
3390esac
3391done
3392IFS=$as_save_IFS
3393
3394
3395fi
3396 if test "${ac_cv_path_install+set}" = set; then
3397 INSTALL=$ac_cv_path_install
3398 else
3399 # As a last resort, use the slow shell script. Don't cache a
3400 # value for INSTALL within a source directory, because that will
3401 # break other packages using the cache if that directory is
3402 # removed, or if the value is a relative name.
3403 INSTALL=$ac_install_sh
3404 fi
3405fi
3406{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3407echo "${ECHO_T}$INSTALL" >&6; }
3408
3409# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3410# It thinks the first close brace ends the variable substitution.
3411test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3412
3413test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3414
3415test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3416
3417{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3418echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3419LN_S=$as_ln_s
3420if test "$LN_S" = "ln -s"; then
3421 { echo "$as_me:$LINENO: result: yes" >&5
3422echo "${ECHO_T}yes" >&6; }
3423else
3424 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3425echo "${ECHO_T}no, using $LN_S" >&6; }
3426fi
3427
3428{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3429echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3430set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3431if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3433else
3434 cat >conftest.make <<\_ACEOF
3435SHELL = /bin/sh
3436all:
3437 @echo '@@@%%%=$(MAKE)=@@@%%%'
3438_ACEOF
3439# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3440case `${MAKE-make} -f conftest.make 2>/dev/null` in
3441 *@@@%%%=?*=@@@%%%*)
3442 eval ac_cv_prog_make_${ac_make}_set=yes;;
3443 *)
3444 eval ac_cv_prog_make_${ac_make}_set=no;;
3445esac
3446rm -f conftest.make
3447fi
3448if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3449 { echo "$as_me:$LINENO: result: yes" >&5
3450echo "${ECHO_T}yes" >&6; }
3451 SET_MAKE=
3452else
3453 { echo "$as_me:$LINENO: result: no" >&5
3454echo "${ECHO_T}no" >&6; }
3455 SET_MAKE="MAKE=${MAKE-make}"
3456fi
3457
3458if test -n "$ac_tool_prefix"; then
3459 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3460set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3463if test "${ac_cv_prog_RANLIB+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3465else
3466 if test -n "$RANLIB"; then
3467 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3468else
3469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470for as_dir in $PATH
3471do
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3476 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 break 2
3479 fi
3480done
3481done
3482IFS=$as_save_IFS
3483
3484fi
3485fi
3486RANLIB=$ac_cv_prog_RANLIB
3487if test -n "$RANLIB"; then
3488 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3489echo "${ECHO_T}$RANLIB" >&6; }
3490else
3491 { echo "$as_me:$LINENO: result: no" >&5
3492echo "${ECHO_T}no" >&6; }
3493fi
3494
3495
3496fi
3497if test -z "$ac_cv_prog_RANLIB"; then
3498 ac_ct_RANLIB=$RANLIB
3499 # Extract the first word of "ranlib", so it can be a program name with args.
3500set dummy ranlib; ac_word=$2
3501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3503if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3505else
3506 if test -n "$ac_ct_RANLIB"; then
3507 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3508else
3509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510for as_dir in $PATH
3511do
3512 IFS=$as_save_IFS
3513 test -z "$as_dir" && as_dir=.
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3516 ac_cv_prog_ac_ct_RANLIB="ranlib"
3517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 break 2
3519 fi
3520done
3521done
3522IFS=$as_save_IFS
3523
3524fi
3525fi
3526ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3527if test -n "$ac_ct_RANLIB"; then
3528 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3529echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3530else
3531 { echo "$as_me:$LINENO: result: no" >&5
3532echo "${ECHO_T}no" >&6; }
3533fi
3534
3535 if test "x$ac_ct_RANLIB" = x; then
3536 RANLIB=":"
3537 else
3538 case $cross_compiling:$ac_tool_warned in
3539yes:)
3540{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3541whose name does not start with the host triplet. If you think this
3542configuration is useful to you, please write to [email protected]." >&5
3543echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3544whose name does not start with the host triplet. If you think this
3545configuration is useful to you, please write to [email protected]." >&2;}
3546ac_tool_warned=yes ;;
3547esac
3548 RANLIB=$ac_ct_RANLIB
3549 fi
3550else
3551 RANLIB="$ac_cv_prog_RANLIB"
3552fi
3553
3554
3555
3556ac_ext=c
3557ac_cpp='$CPP $CPPFLAGS'
3558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3560ac_compiler_gnu=$ac_cv_c_compiler_gnu
3561{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3562echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3563# On Suns, sometimes $CPP names a directory.
3564if test -n "$CPP" && test -d "$CPP"; then
3565 CPP=
3566fi
3567if test -z "$CPP"; then
3568 if test "${ac_cv_prog_CPP+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3570else
3571 # Double quotes because CPP needs to be expanded
3572 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3573 do
3574 ac_preproc_ok=false
3575for ac_c_preproc_warn_flag in '' yes
3576do
3577 # Use a header file that comes with gcc, so configuring glibc
3578 # with a fresh cross-compiler works.
3579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3580 # <limits.h> exists even on freestanding compilers.
3581 # On the NeXT, cc -E runs the code through the compiler's parser,
3582 # not just through cpp. "Syntax error" is here to catch this case.
3583 cat >conftest.$ac_ext <<_ACEOF
3584/* confdefs.h. */
3585_ACEOF
3586cat confdefs.h >>conftest.$ac_ext
3587cat >>conftest.$ac_ext <<_ACEOF
3588/* end confdefs.h. */
3589#ifdef __STDC__
3590# include <limits.h>
3591#else
3592# include <assert.h>
3593#endif
3594 Syntax error
3595_ACEOF
3596if { (ac_try="$ac_cpp conftest.$ac_ext"
3597case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600esac
3601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3603 ac_status=$?
3604 grep -v '^ *+' conftest.er1 >conftest.err
3605 rm -f conftest.er1
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } >/dev/null && {
3609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3610 test ! -s conftest.err
3611 }; then
3612 :
3613else
3614 echo "$as_me: failed program was:" >&5
3615sed 's/^/| /' conftest.$ac_ext >&5
3616
3617 # Broken: fails on valid input.
3618continue
3619fi
3620
3621rm -f conftest.err conftest.$ac_ext
3622
3623 # OK, works on sane cases. Now check whether nonexistent headers
3624 # can be detected and how.
3625 cat >conftest.$ac_ext <<_ACEOF
3626/* confdefs.h. */
3627_ACEOF
3628cat confdefs.h >>conftest.$ac_ext
3629cat >>conftest.$ac_ext <<_ACEOF
3630/* end confdefs.h. */
3631#include <ac_nonexistent.h>
3632_ACEOF
3633if { (ac_try="$ac_cpp conftest.$ac_ext"
3634case "(($ac_try" in
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3637esac
3638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3640 ac_status=$?
3641 grep -v '^ *+' conftest.er1 >conftest.err
3642 rm -f conftest.er1
3643 cat conftest.err >&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } >/dev/null && {
3646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3647 test ! -s conftest.err
3648 }; then
3649 # Broken: success on invalid input.
3650continue
3651else
3652 echo "$as_me: failed program was:" >&5
3653sed 's/^/| /' conftest.$ac_ext >&5
3654
3655 # Passes both tests.
3656ac_preproc_ok=:
3657break
3658fi
3659
3660rm -f conftest.err conftest.$ac_ext
3661
3662done
3663# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3664rm -f conftest.err conftest.$ac_ext
3665if $ac_preproc_ok; then
3666 break
3667fi
3668
3669 done
3670 ac_cv_prog_CPP=$CPP
3671
3672fi
3673 CPP=$ac_cv_prog_CPP
3674else
3675 ac_cv_prog_CPP=$CPP
3676fi
3677{ echo "$as_me:$LINENO: result: $CPP" >&5
3678echo "${ECHO_T}$CPP" >&6; }
3679ac_preproc_ok=false
3680for ac_c_preproc_warn_flag in '' yes
3681do
3682 # Use a header file that comes with gcc, so configuring glibc
3683 # with a fresh cross-compiler works.
3684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3685 # <limits.h> exists even on freestanding compilers.
3686 # On the NeXT, cc -E runs the code through the compiler's parser,
3687 # not just through cpp. "Syntax error" is here to catch this case.
3688 cat >conftest.$ac_ext <<_ACEOF
3689/* confdefs.h. */
3690_ACEOF
3691cat confdefs.h >>conftest.$ac_ext
3692cat >>conftest.$ac_ext <<_ACEOF
3693/* end confdefs.h. */
3694#ifdef __STDC__
3695# include <limits.h>
3696#else
3697# include <assert.h>
3698#endif
3699 Syntax error
3700_ACEOF
3701if { (ac_try="$ac_cpp conftest.$ac_ext"
3702case "(($ac_try" in
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3705esac
3706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3708 ac_status=$?
3709 grep -v '^ *+' conftest.er1 >conftest.err
3710 rm -f conftest.er1
3711 cat conftest.err >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } >/dev/null && {
3714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3715 test ! -s conftest.err
3716 }; then
3717 :
3718else
3719 echo "$as_me: failed program was:" >&5
3720sed 's/^/| /' conftest.$ac_ext >&5
3721
3722 # Broken: fails on valid input.
3723continue
3724fi
3725
3726rm -f conftest.err conftest.$ac_ext
3727
3728 # OK, works on sane cases. Now check whether nonexistent headers
3729 # can be detected and how.
3730 cat >conftest.$ac_ext <<_ACEOF
3731/* confdefs.h. */
3732_ACEOF
3733cat confdefs.h >>conftest.$ac_ext
3734cat >>conftest.$ac_ext <<_ACEOF
3735/* end confdefs.h. */
3736#include <ac_nonexistent.h>
3737_ACEOF
3738if { (ac_try="$ac_cpp conftest.$ac_ext"
3739case "(($ac_try" in
3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741 *) ac_try_echo=$ac_try;;
3742esac
3743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3745 ac_status=$?
3746 grep -v '^ *+' conftest.er1 >conftest.err
3747 rm -f conftest.er1
3748 cat conftest.err >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); } >/dev/null && {
3751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3752 test ! -s conftest.err
3753 }; then
3754 # Broken: success on invalid input.
3755continue
3756else
3757 echo "$as_me: failed program was:" >&5
3758sed 's/^/| /' conftest.$ac_ext >&5
3759
3760 # Passes both tests.
3761ac_preproc_ok=:
3762break
3763fi
3764
3765rm -f conftest.err conftest.$ac_ext
3766
3767done
3768# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3769rm -f conftest.err conftest.$ac_ext
3770if $ac_preproc_ok; then
3771 :
3772else
3773 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3774See \`config.log' for more details." >&5
3775echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3776See \`config.log' for more details." >&2;}
3777 { (exit 1); exit 1; }; }
3778fi
3779
3780ac_ext=c
3781ac_cpp='$CPP $CPPFLAGS'
3782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785
3786
3787{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3788echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3789if test "${ac_cv_path_GREP+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3791else
3792 # Extract the first word of "grep ggrep" to use in msg output
3793if test -z "$GREP"; then
3794set dummy grep ggrep; ac_prog_name=$2
3795if test "${ac_cv_path_GREP+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797else
3798 ac_path_GREP_found=false
3799# Loop through the user's path and test for each of PROGNAME-LIST
3800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3802do
3803 IFS=$as_save_IFS
3804 test -z "$as_dir" && as_dir=.
3805 for ac_prog in grep ggrep; do
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3808 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3809 # Check for GNU ac_path_GREP and select it if it is found.
3810 # Check for GNU $ac_path_GREP
3811case `"$ac_path_GREP" --version 2>&1` in
3812*GNU*)
3813 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3814*)
3815 ac_count=0
3816 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3817 while :
3818 do
3819 cat "conftest.in" "conftest.in" >"conftest.tmp"
3820 mv "conftest.tmp" "conftest.in"
3821 cp "conftest.in" "conftest.nl"
3822 echo 'GREP' >> "conftest.nl"
3823 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3824 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3825 ac_count=`expr $ac_count + 1`
3826 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3827 # Best one so far, save it but keep looking for a better one
3828 ac_cv_path_GREP="$ac_path_GREP"
3829 ac_path_GREP_max=$ac_count
3830 fi
3831 # 10*(2^10) chars as input seems more than enough
3832 test $ac_count -gt 10 && break
3833 done
3834 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3835esac
3836
3837
3838 $ac_path_GREP_found && break 3
3839 done
3840done
3841
3842done
3843IFS=$as_save_IFS
3844
3845
3846fi
3847
3848GREP="$ac_cv_path_GREP"
3849if test -z "$GREP"; then
3850 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3851echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3852 { (exit 1); exit 1; }; }
3853fi
3854
3855else
3856 ac_cv_path_GREP=$GREP
3857fi
3858
3859
3860fi
3861{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3862echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3863 GREP="$ac_cv_path_GREP"
3864
3865
3866{ echo "$as_me:$LINENO: checking for egrep" >&5
3867echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3868if test "${ac_cv_path_EGREP+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870else
3871 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3872 then ac_cv_path_EGREP="$GREP -E"
3873 else
3874 # Extract the first word of "egrep" to use in msg output
3875if test -z "$EGREP"; then
3876set dummy egrep; ac_prog_name=$2
3877if test "${ac_cv_path_EGREP+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3879else
3880 ac_path_EGREP_found=false
3881# Loop through the user's path and test for each of PROGNAME-LIST
3882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3884do
3885 IFS=$as_save_IFS
3886 test -z "$as_dir" && as_dir=.
3887 for ac_prog in egrep; do
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3890 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3891 # Check for GNU ac_path_EGREP and select it if it is found.
3892 # Check for GNU $ac_path_EGREP
3893case `"$ac_path_EGREP" --version 2>&1` in
3894*GNU*)
3895 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3896*)
3897 ac_count=0
3898 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3899 while :
3900 do
3901 cat "conftest.in" "conftest.in" >"conftest.tmp"
3902 mv "conftest.tmp" "conftest.in"
3903 cp "conftest.in" "conftest.nl"
3904 echo 'EGREP' >> "conftest.nl"
3905 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3906 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3907 ac_count=`expr $ac_count + 1`
3908 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3909 # Best one so far, save it but keep looking for a better one
3910 ac_cv_path_EGREP="$ac_path_EGREP"
3911 ac_path_EGREP_max=$ac_count
3912 fi
3913 # 10*(2^10) chars as input seems more than enough
3914 test $ac_count -gt 10 && break
3915 done
3916 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3917esac
3918
3919
3920 $ac_path_EGREP_found && break 3
3921 done
3922done
3923
3924done
3925IFS=$as_save_IFS
3926
3927
3928fi
3929
3930EGREP="$ac_cv_path_EGREP"
3931if test -z "$EGREP"; then
3932 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3933echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3934 { (exit 1); exit 1; }; }
3935fi
3936
3937else
3938 ac_cv_path_EGREP=$EGREP
3939fi
3940
3941
3942 fi
3943fi
3944{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3945echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3946 EGREP="$ac_cv_path_EGREP"
3947
3948
3949
3950{ echo "$as_me:$LINENO: checking for AIX" >&5
3951echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3952cat >conftest.$ac_ext <<_ACEOF
3953/* confdefs.h. */
3954_ACEOF
3955cat confdefs.h >>conftest.$ac_ext
3956cat >>conftest.$ac_ext <<_ACEOF
3957/* end confdefs.h. */
3958#ifdef _AIX
3959 yes
3960#endif
3961
3962_ACEOF
3963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3964 $EGREP "yes" >/dev/null 2>&1; then
3965 { echo "$as_me:$LINENO: result: yes" >&5
3966echo "${ECHO_T}yes" >&6; }
3967cat >>confdefs.h <<\_ACEOF
3968#define _ALL_SOURCE 1
3969_ACEOF
3970
3971else
3972 { echo "$as_me:$LINENO: result: no" >&5
3973echo "${ECHO_T}no" >&6; }
3974fi
3975rm -f conftest*
3976
3977
3978{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3979echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3980if test "${ac_cv_search_strerror+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982else
3983 ac_func_search_save_LIBS=$LIBS
3984cat >conftest.$ac_ext <<_ACEOF
3985/* confdefs.h. */
3986_ACEOF
3987cat confdefs.h >>conftest.$ac_ext
3988cat >>conftest.$ac_ext <<_ACEOF
3989/* end confdefs.h. */
3990
3991/* Override any GCC internal prototype to avoid an error.
3992 Use char because int might match the return type of a GCC
3993 builtin and then its argument prototype would still apply. */
3994#ifdef __cplusplus
3995extern "C"
3996#endif
3997char strerror ();
3998int
3999main ()
4000{
4001return strerror ();
4002 ;
4003 return 0;
4004}
4005_ACEOF
4006for ac_lib in '' cposix; do
4007 if test -z "$ac_lib"; then
4008 ac_res="none required"
4009 else
4010 ac_res=-l$ac_lib
4011 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4012 fi
4013 rm -f conftest.$ac_objext conftest$ac_exeext
4014if { (ac_try="$ac_link"
4015case "(($ac_try" in
4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017 *) ac_try_echo=$ac_try;;
4018esac
4019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4020 (eval "$ac_link") 2>conftest.er1
4021 ac_status=$?
4022 grep -v '^ *+' conftest.er1 >conftest.err
4023 rm -f conftest.er1
4024 cat conftest.err >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } && {
4027 test -z "$ac_c_werror_flag" ||
4028 test ! -s conftest.err
4029 } && test -s conftest$ac_exeext &&
4030 $as_test_x conftest$ac_exeext; then
4031 ac_cv_search_strerror=$ac_res
4032else
4033 echo "$as_me: failed program was:" >&5
4034sed 's/^/| /' conftest.$ac_ext >&5
4035
4036
4037fi
4038
4039rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4040 conftest$ac_exeext
4041 if test "${ac_cv_search_strerror+set}" = set; then
4042 break
4043fi
4044done
4045if test "${ac_cv_search_strerror+set}" = set; then
4046 :
4047else
4048 ac_cv_search_strerror=no
4049fi
4050rm conftest.$ac_ext
4051LIBS=$ac_func_search_save_LIBS
4052fi
4053{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4054echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4055ac_res=$ac_cv_search_strerror
4056if test "$ac_res" != no; then
4057 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4058
4059fi
4060
4061{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4062echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4063if test "${ac_cv_header_stdc+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065else
4066 cat >conftest.$ac_ext <<_ACEOF
4067/* confdefs.h. */
4068_ACEOF
4069cat confdefs.h >>conftest.$ac_ext
4070cat >>conftest.$ac_ext <<_ACEOF
4071/* end confdefs.h. */
4072#include <stdlib.h>
4073#include <stdarg.h>
4074#include <string.h>
4075#include <float.h>
4076
4077int
4078main ()
4079{
4080
4081 ;
4082 return 0;
4083}
4084_ACEOF
4085rm -f conftest.$ac_objext
4086if { (ac_try="$ac_compile"
4087case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090esac
4091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_compile") 2>conftest.er1
4093 ac_status=$?
4094 grep -v '^ *+' conftest.er1 >conftest.err
4095 rm -f conftest.er1
4096 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } && {
4099 test -z "$ac_c_werror_flag" ||
4100 test ! -s conftest.err
4101 } && test -s conftest.$ac_objext; then
4102 ac_cv_header_stdc=yes
4103else
4104 echo "$as_me: failed program was:" >&5
4105sed 's/^/| /' conftest.$ac_ext >&5
4106
4107 ac_cv_header_stdc=no
4108fi
4109
4110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111
4112if test $ac_cv_header_stdc = yes; then
4113 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4114 cat >conftest.$ac_ext <<_ACEOF
4115/* confdefs.h. */
4116_ACEOF
4117cat confdefs.h >>conftest.$ac_ext
4118cat >>conftest.$ac_ext <<_ACEOF
4119/* end confdefs.h. */
4120#include <string.h>
4121
4122_ACEOF
4123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4124 $EGREP "memchr" >/dev/null 2>&1; then
4125 :
4126else
4127 ac_cv_header_stdc=no
4128fi
4129rm -f conftest*
4130
4131fi
4132
4133if test $ac_cv_header_stdc = yes; then
4134 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4135 cat >conftest.$ac_ext <<_ACEOF
4136/* confdefs.h. */
4137_ACEOF
4138cat confdefs.h >>conftest.$ac_ext
4139cat >>conftest.$ac_ext <<_ACEOF
4140/* end confdefs.h. */
4141#include <stdlib.h>
4142
4143_ACEOF
4144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4145 $EGREP "free" >/dev/null 2>&1; then
4146 :
4147else
4148 ac_cv_header_stdc=no
4149fi
4150rm -f conftest*
4151
4152fi
4153
4154if test $ac_cv_header_stdc = yes; then
4155 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4156 if test "$cross_compiling" = yes; then
4157 :
4158else
4159 cat >conftest.$ac_ext <<_ACEOF
4160/* confdefs.h. */
4161_ACEOF
4162cat confdefs.h >>conftest.$ac_ext
4163cat >>conftest.$ac_ext <<_ACEOF
4164/* end confdefs.h. */
4165#include <ctype.h>
4166#include <stdlib.h>
4167#if ((' ' & 0x0FF) == 0x020)
4168# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4169# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4170#else
4171# define ISLOWER(c) \
4172 (('a' <= (c) && (c) <= 'i') \
4173 || ('j' <= (c) && (c) <= 'r') \
4174 || ('s' <= (c) && (c) <= 'z'))
4175# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4176#endif
4177
4178#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4179int
4180main ()
4181{
4182 int i;
4183 for (i = 0; i < 256; i++)
4184 if (XOR (islower (i), ISLOWER (i))
4185 || toupper (i) != TOUPPER (i))
4186 return 2;
4187 return 0;
4188}
4189_ACEOF
4190rm -f conftest$ac_exeext
4191if { (ac_try="$ac_link"
4192case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195esac
4196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_link") 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4201 { (case "(($ac_try" in
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4204esac
4205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4206 (eval "$ac_try") 2>&5
4207 ac_status=$?
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 :
4211else
4212 echo "$as_me: program exited with status $ac_status" >&5
4213echo "$as_me: failed program was:" >&5
4214sed 's/^/| /' conftest.$ac_ext >&5
4215
4216( exit $ac_status )
4217ac_cv_header_stdc=no
4218fi
4219rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4220fi
4221
4222
4223fi
4224fi
4225{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4226echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4227if test $ac_cv_header_stdc = yes; then
4228
4229cat >>confdefs.h <<\_ACEOF
4230#define STDC_HEADERS 1
4231_ACEOF
4232
4233fi
4234
4235# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4246 inttypes.h stdint.h unistd.h
4247do
4248as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4249{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4250echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4251if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4253else
4254 cat >conftest.$ac_ext <<_ACEOF
4255/* confdefs.h. */
4256_ACEOF
4257cat confdefs.h >>conftest.$ac_ext
4258cat >>conftest.$ac_ext <<_ACEOF
4259/* end confdefs.h. */
4260$ac_includes_default
4261
4262#include <$ac_header>
4263_ACEOF
4264rm -f conftest.$ac_objext
4265if { (ac_try="$ac_compile"
4266case "(($ac_try" in
4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268 *) ac_try_echo=$ac_try;;
4269esac
4270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4271 (eval "$ac_compile") 2>conftest.er1
4272 ac_status=$?
4273 grep -v '^ *+' conftest.er1 >conftest.err
4274 rm -f conftest.er1
4275 cat conftest.err >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); } && {
4278 test -z "$ac_c_werror_flag" ||
4279 test ! -s conftest.err
4280 } && test -s conftest.$ac_objext; then
4281 eval "$as_ac_Header=yes"
4282else
4283 echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
4285
4286 eval "$as_ac_Header=no"
4287fi
4288
4289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290fi
4291ac_res=`eval echo '${'$as_ac_Header'}'`
4292 { echo "$as_me:$LINENO: result: $ac_res" >&5
4293echo "${ECHO_T}$ac_res" >&6; }
4294if test `eval echo '${'$as_ac_Header'}'` = yes; then
4295 cat >>confdefs.h <<_ACEOF
4296#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4297_ACEOF
4298
4299fi
4300
4301done
4302
4303
4304if test "${ac_cv_header_minix_config_h+set}" = set; then
4305 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4306echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4307if test "${ac_cv_header_minix_config_h+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309fi
4310{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4311echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4312else
4313 # Is the header compilable?
4314{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4315echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4316cat >conftest.$ac_ext <<_ACEOF
4317/* confdefs.h. */
4318_ACEOF
4319cat confdefs.h >>conftest.$ac_ext
4320cat >>conftest.$ac_ext <<_ACEOF
4321/* end confdefs.h. */
4322$ac_includes_default
4323#include <minix/config.h>
4324_ACEOF
4325rm -f conftest.$ac_objext
4326if { (ac_try="$ac_compile"
4327case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330esac
4331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_compile") 2>conftest.er1
4333 ac_status=$?
4334 grep -v '^ *+' conftest.er1 >conftest.err
4335 rm -f conftest.er1
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } && {
4339 test -z "$ac_c_werror_flag" ||
4340 test ! -s conftest.err
4341 } && test -s conftest.$ac_objext; then
4342 ac_header_compiler=yes
4343else
4344 echo "$as_me: failed program was:" >&5
4345sed 's/^/| /' conftest.$ac_ext >&5
4346
4347 ac_header_compiler=no
4348fi
4349
4350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4352echo "${ECHO_T}$ac_header_compiler" >&6; }
4353
4354# Is the header present?
4355{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4356echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4357cat >conftest.$ac_ext <<_ACEOF
4358/* confdefs.h. */
4359_ACEOF
4360cat confdefs.h >>conftest.$ac_ext
4361cat >>conftest.$ac_ext <<_ACEOF
4362/* end confdefs.h. */
4363#include <minix/config.h>
4364_ACEOF
4365if { (ac_try="$ac_cpp conftest.$ac_ext"
4366case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369esac
4370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4372 ac_status=$?
4373 grep -v '^ *+' conftest.er1 >conftest.err
4374 rm -f conftest.er1
4375 cat conftest.err >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } >/dev/null && {
4378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4379 test ! -s conftest.err
4380 }; then
4381 ac_header_preproc=yes
4382else
4383 echo "$as_me: failed program was:" >&5
4384sed 's/^/| /' conftest.$ac_ext >&5
4385
4386 ac_header_preproc=no
4387fi
4388
4389rm -f conftest.err conftest.$ac_ext
4390{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4391echo "${ECHO_T}$ac_header_preproc" >&6; }
4392
4393# So? What about this header?
4394case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4395 yes:no: )
4396 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4397echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4398 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4399echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4400 ac_header_preproc=yes
4401 ;;
4402 no:yes:* )
4403 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4404echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4405 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4406echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4407 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4408echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4409 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4410echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4411 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4412echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4413 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4414echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4415
4416 ;;
4417esac
4418{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
4419echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4420if test "${ac_cv_header_minix_config_h+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4422else
4423 ac_cv_header_minix_config_h=$ac_header_preproc
4424fi
4425{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4426echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4427
4428fi
4429if test $ac_cv_header_minix_config_h = yes; then
4430 MINIX=yes
4431else
4432 MINIX=
4433fi
4434
4435
4436if test "$MINIX" = yes; then
4437
4438cat >>confdefs.h <<\_ACEOF
4439#define _POSIX_SOURCE 1
4440_ACEOF
4441
4442
4443cat >>confdefs.h <<\_ACEOF
4444#define _POSIX_1_SOURCE 2
4445_ACEOF
4446
4447
4448cat >>confdefs.h <<\_ACEOF
4449#define _MINIX 1
4450_ACEOF
4451
4452fi
4453
4454{ echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4455echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
4456if test "${ac_cv_prog_cc_stdc+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458else
4459 ac_cv_prog_cc_stdc=no
4460ac_save_CFLAGS="$CFLAGS"
4461# Don't try gcc -ansi; that turns off useful extensions and
4462# breaks some systems' header files.
4463# AIX -qlanglvl=ansi
4464# Ultrix and OSF/1 -std1
4465# HP-UX -Aa -D_HPUX_SOURCE
4466# SVR4 -Xc
4467for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
4468do
4469 CFLAGS="$ac_save_CFLAGS $ac_arg"
4470 cat >conftest.$ac_ext <<_ACEOF
4471/* confdefs.h. */
4472_ACEOF
4473cat confdefs.h >>conftest.$ac_ext
4474cat >>conftest.$ac_ext <<_ACEOF
4475/* end confdefs.h. */
4476#if !defined(__STDC__) || __STDC__ != 1
4477choke me
4478#endif
4479
4480int
4481main ()
4482{
4483int test (int i, double x);
4484struct s1 {int (*f) (int a);};
4485struct s2 {int (*f) (double a);};
4486 ;
4487 return 0;
4488}
4489_ACEOF
4490rm -f conftest.$ac_objext
4491if { (ac_try="$ac_compile"
4492case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4495esac
4496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497 (eval "$ac_compile") 2>conftest.er1
4498 ac_status=$?
4499 grep -v '^ *+' conftest.er1 >conftest.err
4500 rm -f conftest.er1
4501 cat conftest.err >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } && {
4504 test -z "$ac_c_werror_flag" ||
4505 test ! -s conftest.err
4506 } && test -s conftest.$ac_objext; then
4507 ac_cv_prog_cc_stdc="$ac_arg"; break
4508else
4509 echo "$as_me: failed program was:" >&5
4510sed 's/^/| /' conftest.$ac_ext >&5
4511
4512
4513fi
4514
4515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516done
4517CFLAGS="$ac_save_CFLAGS"
4518
4519fi
4520
4521{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4522echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; }
4523case "x$ac_cv_prog_cc_stdc" in
4524 x|xno) ;;
4525 *) CC="$CC $ac_cv_prog_cc_stdc" ;;
4526esac
4527
4528
4529{ echo "$as_me:$LINENO: checking for function prototypes" >&5
4530echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
4531if test "$ac_cv_prog_cc_stdc" != no; then
4532 { echo "$as_me:$LINENO: result: yes" >&5
4533echo "${ECHO_T}yes" >&6; }
4534 cat >>confdefs.h <<\_ACEOF
4535#define PROTOTYPES 1
4536_ACEOF
4537
4538 U= ANSI2KNR=
4539else
4540 { echo "$as_me:$LINENO: result: no" >&5
4541echo "${ECHO_T}no" >&6; }
4542 U=_ ANSI2KNR=ansi2knr
4543fi
4544
4545{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4546echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4547if test "${ac_cv_c_const+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4549else
4550 cat >conftest.$ac_ext <<_ACEOF
4551/* confdefs.h. */
4552_ACEOF
4553cat confdefs.h >>conftest.$ac_ext
4554cat >>conftest.$ac_ext <<_ACEOF
4555/* end confdefs.h. */
4556
4557int
4558main ()
4559{
4560/* FIXME: Include the comments suggested by Paul. */
4561#ifndef __cplusplus
4562 /* Ultrix mips cc rejects this. */
4563 typedef int charset[2];
4564 const charset cs;
4565 /* SunOS 4.1.1 cc rejects this. */
4566 char const *const *pcpcc;
4567 char **ppc;
4568 /* NEC SVR4.0.2 mips cc rejects this. */
4569 struct point {int x, y;};
4570 static struct point const zero = {0,0};
4571 /* AIX XL C 1.02.0.0 rejects this.
4572 It does not let you subtract one const X* pointer from another in
4573 an arm of an if-expression whose if-part is not a constant
4574 expression */
4575 const char *g = "string";
4576 pcpcc = &g + (g ? g-g : 0);
4577 /* HPUX 7.0 cc rejects these. */
4578 ++pcpcc;
4579 ppc = (char**) pcpcc;
4580 pcpcc = (char const *const *) ppc;
4581 { /* SCO 3.2v4 cc rejects this. */
4582 char *t;
4583 char const *s = 0 ? (char *) 0 : (char const *) 0;
4584
4585 *t++ = 0;
4586 if (s) return 0;
4587 }
4588 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4589 int x[] = {25, 17};
4590 const int *foo = &x[0];
4591 ++foo;
4592 }
4593 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4594 typedef const int *iptr;
4595 iptr p = 0;
4596 ++p;
4597 }
4598 { /* AIX XL C 1.02.0.0 rejects this saying
4599 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4600 struct s { int j; const int *ap[3]; };
4601 struct s *b; b->j = 5;
4602 }
4603 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4604 const int foo = 10;
4605 if (!foo) return 0;
4606 }
4607 return !cs[0] && !zero.x;
4608#endif
4609
4610 ;
4611 return 0;
4612}
4613_ACEOF
4614rm -f conftest.$ac_objext
4615if { (ac_try="$ac_compile"
4616case "(($ac_try" in
4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618 *) ac_try_echo=$ac_try;;
4619esac
4620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4621 (eval "$ac_compile") 2>conftest.er1
4622 ac_status=$?
4623 grep -v '^ *+' conftest.er1 >conftest.err
4624 rm -f conftest.er1
4625 cat conftest.err >&5
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); } && {
4628 test -z "$ac_c_werror_flag" ||
4629 test ! -s conftest.err
4630 } && test -s conftest.$ac_objext; then
4631 ac_cv_c_const=yes
4632else
4633 echo "$as_me: failed program was:" >&5
4634sed 's/^/| /' conftest.$ac_ext >&5
4635
4636 ac_cv_c_const=no
4637fi
4638
4639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640fi
4641{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4642echo "${ECHO_T}$ac_cv_c_const" >&6; }
4643if test $ac_cv_c_const = no; then
4644
4645cat >>confdefs.h <<\_ACEOF
4646#define const
4647_ACEOF
4648
4649fi
4650
4651{ echo "$as_me:$LINENO: checking for off_t" >&5
4652echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
4653if test "${ac_cv_type_off_t+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655else
4656 cat >conftest.$ac_ext <<_ACEOF
4657/* confdefs.h. */
4658_ACEOF
4659cat confdefs.h >>conftest.$ac_ext
4660cat >>conftest.$ac_ext <<_ACEOF
4661/* end confdefs.h. */
4662$ac_includes_default
4663typedef off_t ac__type_new_;
4664int
4665main ()
4666{
4667if ((ac__type_new_ *) 0)
4668 return 0;
4669if (sizeof (ac__type_new_))
4670 return 0;
4671 ;
4672 return 0;
4673}
4674_ACEOF
4675rm -f conftest.$ac_objext
4676if { (ac_try="$ac_compile"
4677case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680esac
4681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_compile") 2>conftest.er1
4683 ac_status=$?
4684 grep -v '^ *+' conftest.er1 >conftest.err
4685 rm -f conftest.er1
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } && {
4689 test -z "$ac_c_werror_flag" ||
4690 test ! -s conftest.err
4691 } && test -s conftest.$ac_objext; then
4692 ac_cv_type_off_t=yes
4693else
4694 echo "$as_me: failed program was:" >&5
4695sed 's/^/| /' conftest.$ac_ext >&5
4696
4697 ac_cv_type_off_t=no
4698fi
4699
4700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701fi
4702{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4703echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
4704if test $ac_cv_type_off_t = yes; then
4705 :
4706else
4707
4708cat >>confdefs.h <<_ACEOF
4709#define off_t long int
4710_ACEOF
4711
4712fi
4713
4714{ echo "$as_me:$LINENO: checking for size_t" >&5
4715echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4716if test "${ac_cv_type_size_t+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4718else
4719 cat >conftest.$ac_ext <<_ACEOF
4720/* confdefs.h. */
4721_ACEOF
4722cat confdefs.h >>conftest.$ac_ext
4723cat >>conftest.$ac_ext <<_ACEOF
4724/* end confdefs.h. */
4725$ac_includes_default
4726typedef size_t ac__type_new_;
4727int
4728main ()
4729{
4730if ((ac__type_new_ *) 0)
4731 return 0;
4732if (sizeof (ac__type_new_))
4733 return 0;
4734 ;
4735 return 0;
4736}
4737_ACEOF
4738rm -f conftest.$ac_objext
4739if { (ac_try="$ac_compile"
4740case "(($ac_try" in
4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4743esac
4744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4745 (eval "$ac_compile") 2>conftest.er1
4746 ac_status=$?
4747 grep -v '^ *+' conftest.er1 >conftest.err
4748 rm -f conftest.er1
4749 cat conftest.err >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } && {
4752 test -z "$ac_c_werror_flag" ||
4753 test ! -s conftest.err
4754 } && test -s conftest.$ac_objext; then
4755 ac_cv_type_size_t=yes
4756else
4757 echo "$as_me: failed program was:" >&5
4758sed 's/^/| /' conftest.$ac_ext >&5
4759
4760 ac_cv_type_size_t=no
4761fi
4762
4763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764fi
4765{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4766echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4767if test $ac_cv_type_size_t = yes; then
4768 :
4769else
4770
4771cat >>confdefs.h <<_ACEOF
4772#define size_t unsigned int
4773_ACEOF
4774
4775fi
4776
4777{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4778echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4779if test "${ac_cv_header_time+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4781else
4782 cat >conftest.$ac_ext <<_ACEOF
4783/* confdefs.h. */
4784_ACEOF
4785cat confdefs.h >>conftest.$ac_ext
4786cat >>conftest.$ac_ext <<_ACEOF
4787/* end confdefs.h. */
4788#include <sys/types.h>
4789#include <sys/time.h>
4790#include <time.h>
4791
4792int
4793main ()
4794{
4795if ((struct tm *) 0)
4796return 0;
4797 ;
4798 return 0;
4799}
4800_ACEOF
4801rm -f conftest.$ac_objext
4802if { (ac_try="$ac_compile"
4803case "(($ac_try" in
4804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805 *) ac_try_echo=$ac_try;;
4806esac
4807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4808 (eval "$ac_compile") 2>conftest.er1
4809 ac_status=$?
4810 grep -v '^ *+' conftest.er1 >conftest.err
4811 rm -f conftest.er1
4812 cat conftest.err >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } && {
4815 test -z "$ac_c_werror_flag" ||
4816 test ! -s conftest.err
4817 } && test -s conftest.$ac_objext; then
4818 ac_cv_header_time=yes
4819else
4820 echo "$as_me: failed program was:" >&5
4821sed 's/^/| /' conftest.$ac_ext >&5
4822
4823 ac_cv_header_time=no
4824fi
4825
4826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827fi
4828{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4829echo "${ECHO_T}$ac_cv_header_time" >&6; }
4830if test $ac_cv_header_time = yes; then
4831
4832cat >>confdefs.h <<\_ACEOF
4833#define TIME_WITH_SYS_TIME 1
4834_ACEOF
4835
4836fi
4837
4838{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4839echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
4840if test "${ac_cv_struct_tm+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4842else
4843 cat >conftest.$ac_ext <<_ACEOF
4844/* confdefs.h. */
4845_ACEOF
4846cat confdefs.h >>conftest.$ac_ext
4847cat >>conftest.$ac_ext <<_ACEOF
4848/* end confdefs.h. */
4849#include <sys/types.h>
4850#include <time.h>
4851
4852int
4853main ()
4854{
4855struct tm tm;
4856 int *p = &tm.tm_sec;
4857 return !p;
4858 ;
4859 return 0;
4860}
4861_ACEOF
4862rm -f conftest.$ac_objext
4863if { (ac_try="$ac_compile"
4864case "(($ac_try" in
4865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866 *) ac_try_echo=$ac_try;;
4867esac
4868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4869 (eval "$ac_compile") 2>conftest.er1
4870 ac_status=$?
4871 grep -v '^ *+' conftest.er1 >conftest.err
4872 rm -f conftest.er1
4873 cat conftest.err >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } && {
4876 test -z "$ac_c_werror_flag" ||
4877 test ! -s conftest.err
4878 } && test -s conftest.$ac_objext; then
4879 ac_cv_struct_tm=time.h
4880else
4881 echo "$as_me: failed program was:" >&5
4882sed 's/^/| /' conftest.$ac_ext >&5
4883
4884 ac_cv_struct_tm=sys/time.h
4885fi
4886
4887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888fi
4889{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4890echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
4891if test $ac_cv_struct_tm = sys/time.h; then
4892
4893cat >>confdefs.h <<\_ACEOF
4894#define TM_IN_SYS_TIME 1
4895_ACEOF
4896
4897fi
4898
4899
4900
4901# Check whether --with-unac was given.
4902if test "${with_unac+set}" = set; then
4903 withval=$with_unac; UNAC_DIR=$withval
4904else
4905 UNAC_DIR="`pwd`/../packages/unac"
4906fi
4907
4908cat >>confdefs.h <<_ACEOF
4909#define UNAC_DIR "$UNAC_DIR"
4910_ACEOF
4911
4912
4913
4914#AC_ARG_WITH(unac, [ --with-libiconv-prefix=dir Use local libiconv library], LIBICONV_DIR=$withval)
4915#AC_DEFINE_UNQUOTED(LIBICONV_DIR, "$LIBICONV_DIR")
4916#AC_SUBST(LIBICONV_DIR)
4917
4918
4919if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
4920cat >conftest.$ac_ext <<_ACEOF
4921/* confdefs.h. */
4922_ACEOF
4923cat confdefs.h >>conftest.$ac_ext
4924cat >>conftest.$ac_ext <<_ACEOF
4925/* end confdefs.h. */
4926#include <stdio.h>
4927
4928int
4929main ()
4930{
4931 FILE *rubbish = popen("yes", "r");
4932 ;
4933 return 0;
4934}
4935_ACEOF
4936rm -f conftest.$ac_objext
4937if { (ac_try="$ac_compile"
4938case "(($ac_try" in
4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4941esac
4942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4943 (eval "$ac_compile") 2>conftest.er1
4944 ac_status=$?
4945 grep -v '^ *+' conftest.er1 >conftest.err
4946 rm -f conftest.er1
4947 cat conftest.err >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } && {
4950 test -z "$ac_c_werror_flag" ||
4951 test ! -s conftest.err
4952 } && test -s conftest.$ac_objext; then
4953 :
4954else
4955 echo "$as_me: failed program was:" >&5
4956sed 's/^/| /' conftest.$ac_ext >&5
4957
4958 CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
4959fi
4960
4961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962fi
4963
4964
4965
4966{ echo "$as_me:$LINENO: checking for main in -lg" >&5
4967echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6; }
4968if test "${ac_cv_lib_g_main+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4970else
4971 ac_check_lib_save_LIBS=$LIBS
4972LIBS="-lg $LIBS"
4973cat >conftest.$ac_ext <<_ACEOF
4974/* confdefs.h. */
4975_ACEOF
4976cat confdefs.h >>conftest.$ac_ext
4977cat >>conftest.$ac_ext <<_ACEOF
4978/* end confdefs.h. */
4979
4980
4981int
4982main ()
4983{
4984return main ();
4985 ;
4986 return 0;
4987}
4988_ACEOF
4989rm -f conftest.$ac_objext conftest$ac_exeext
4990if { (ac_try="$ac_link"
4991case "(($ac_try" in
4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4994esac
4995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4996 (eval "$ac_link") 2>conftest.er1
4997 ac_status=$?
4998 grep -v '^ *+' conftest.er1 >conftest.err
4999 rm -f conftest.er1
5000 cat conftest.err >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); } && {
5003 test -z "$ac_c_werror_flag" ||
5004 test ! -s conftest.err
5005 } && test -s conftest$ac_exeext &&
5006 $as_test_x conftest$ac_exeext; then
5007 ac_cv_lib_g_main=yes
5008else
5009 echo "$as_me: failed program was:" >&5
5010sed 's/^/| /' conftest.$ac_ext >&5
5011
5012 ac_cv_lib_g_main=no
5013fi
5014
5015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5016 conftest$ac_exeext conftest.$ac_ext
5017LIBS=$ac_check_lib_save_LIBS
5018fi
5019{ echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
5020echo "${ECHO_T}$ac_cv_lib_g_main" >&6; }
5021if test $ac_cv_lib_g_main = yes; then
5022 cat >>confdefs.h <<_ACEOF
5023#define HAVE_LIBG 1
5024_ACEOF
5025
5026 LIBS="-lg $LIBS"
5027
5028fi
5029
5030
5031{ echo "$as_me:$LINENO: checking for main in -lm" >&5
5032echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
5033if test "${ac_cv_lib_m_main+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5035else
5036 ac_check_lib_save_LIBS=$LIBS
5037LIBS="-lm $LIBS"
5038cat >conftest.$ac_ext <<_ACEOF
5039/* confdefs.h. */
5040_ACEOF
5041cat confdefs.h >>conftest.$ac_ext
5042cat >>conftest.$ac_ext <<_ACEOF
5043/* end confdefs.h. */
5044
5045
5046int
5047main ()
5048{
5049return main ();
5050 ;
5051 return 0;
5052}
5053_ACEOF
5054rm -f conftest.$ac_objext conftest$ac_exeext
5055if { (ac_try="$ac_link"
5056case "(($ac_try" in
5057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058 *) ac_try_echo=$ac_try;;
5059esac
5060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5061 (eval "$ac_link") 2>conftest.er1
5062 ac_status=$?
5063 grep -v '^ *+' conftest.er1 >conftest.err
5064 rm -f conftest.er1
5065 cat conftest.err >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } && {
5068 test -z "$ac_c_werror_flag" ||
5069 test ! -s conftest.err
5070 } && test -s conftest$ac_exeext &&
5071 $as_test_x conftest$ac_exeext; then
5072 ac_cv_lib_m_main=yes
5073else
5074 echo "$as_me: failed program was:" >&5
5075sed 's/^/| /' conftest.$ac_ext >&5
5076
5077 ac_cv_lib_m_main=no
5078fi
5079
5080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5081 conftest$ac_exeext conftest.$ac_ext
5082LIBS=$ac_check_lib_save_LIBS
5083fi
5084{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5085echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
5086if test $ac_cv_lib_m_main = yes; then
5087 cat >>confdefs.h <<_ACEOF
5088#define HAVE_LIBM 1
5089_ACEOF
5090
5091 LIBS="-lm $LIBS"
5092
5093fi
5094
5095
5096{ echo "$as_me:$LINENO: checking for main in -lstdc++" >&5
5097echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6; }
5098if test "${ac_cv_lib_stdcpp_main+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5100else
5101 ac_check_lib_save_LIBS=$LIBS
5102LIBS="-lstdc++ $LIBS"
5103cat >conftest.$ac_ext <<_ACEOF
5104/* confdefs.h. */
5105_ACEOF
5106cat confdefs.h >>conftest.$ac_ext
5107cat >>conftest.$ac_ext <<_ACEOF
5108/* end confdefs.h. */
5109
5110
5111int
5112main ()
5113{
5114return main ();
5115 ;
5116 return 0;
5117}
5118_ACEOF
5119rm -f conftest.$ac_objext conftest$ac_exeext
5120if { (ac_try="$ac_link"
5121case "(($ac_try" in
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5124esac
5125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_link") 2>conftest.er1
5127 ac_status=$?
5128 grep -v '^ *+' conftest.er1 >conftest.err
5129 rm -f conftest.er1
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } && {
5133 test -z "$ac_c_werror_flag" ||
5134 test ! -s conftest.err
5135 } && test -s conftest$ac_exeext &&
5136 $as_test_x conftest$ac_exeext; then
5137 ac_cv_lib_stdcpp_main=yes
5138else
5139 echo "$as_me: failed program was:" >&5
5140sed 's/^/| /' conftest.$ac_ext >&5
5141
5142 ac_cv_lib_stdcpp_main=no
5143fi
5144
5145rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5146 conftest$ac_exeext conftest.$ac_ext
5147LIBS=$ac_check_lib_save_LIBS
5148fi
5149{ echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5
5150echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6; }
5151if test $ac_cv_lib_stdcpp_main = yes; then
5152 cat >>confdefs.h <<_ACEOF
5153#define HAVE_LIBSTDC__ 1
5154_ACEOF
5155
5156 LIBS="-lstdc++ $LIBS"
5157
5158fi
5159
5160
5161{ echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
5162echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6; }
5163if test "${ac_cv_lib_crypt_main+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165else
5166 ac_check_lib_save_LIBS=$LIBS
5167LIBS="-lcrypt $LIBS"
5168cat >conftest.$ac_ext <<_ACEOF
5169/* confdefs.h. */
5170_ACEOF
5171cat confdefs.h >>conftest.$ac_ext
5172cat >>conftest.$ac_ext <<_ACEOF
5173/* end confdefs.h. */
5174
5175
5176int
5177main ()
5178{
5179return main ();
5180 ;
5181 return 0;
5182}
5183_ACEOF
5184rm -f conftest.$ac_objext conftest$ac_exeext
5185if { (ac_try="$ac_link"
5186case "(($ac_try" in
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5189esac
5190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_link") 2>conftest.er1
5192 ac_status=$?
5193 grep -v '^ *+' conftest.er1 >conftest.err
5194 rm -f conftest.er1
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } && {
5198 test -z "$ac_c_werror_flag" ||
5199 test ! -s conftest.err
5200 } && test -s conftest$ac_exeext &&
5201 $as_test_x conftest$ac_exeext; then
5202 ac_cv_lib_crypt_main=yes
5203else
5204 echo "$as_me: failed program was:" >&5
5205sed 's/^/| /' conftest.$ac_ext >&5
5206
5207 ac_cv_lib_crypt_main=no
5208fi
5209
5210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5211 conftest$ac_exeext conftest.$ac_ext
5212LIBS=$ac_check_lib_save_LIBS
5213fi
5214{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
5215echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6; }
5216if test $ac_cv_lib_crypt_main = yes; then
5217 cat >>confdefs.h <<_ACEOF
5218#define HAVE_LIBCRYPT 1
5219_ACEOF
5220
5221 LIBS="-lcrypt $LIBS"
5222
5223fi
5224
5225if test $ENABLE_ACCENTFOLD = 1; then
5226
5227{ echo "$as_me:$LINENO: checking for main in -liconv" >&5
5228echo $ECHO_N "checking for main in -liconv... $ECHO_C" >&6; }
5229if test "${ac_cv_lib_iconv_main+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5231else
5232 ac_check_lib_save_LIBS=$LIBS
5233LIBS="-liconv $LIBS"
5234cat >conftest.$ac_ext <<_ACEOF
5235/* confdefs.h. */
5236_ACEOF
5237cat confdefs.h >>conftest.$ac_ext
5238cat >>conftest.$ac_ext <<_ACEOF
5239/* end confdefs.h. */
5240
5241
5242int
5243main ()
5244{
5245return main ();
5246 ;
5247 return 0;
5248}
5249_ACEOF
5250rm -f conftest.$ac_objext conftest$ac_exeext
5251if { (ac_try="$ac_link"
5252case "(($ac_try" in
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5255esac
5256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_link") 2>conftest.er1
5258 ac_status=$?
5259 grep -v '^ *+' conftest.er1 >conftest.err
5260 rm -f conftest.er1
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } && {
5264 test -z "$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5266 } && test -s conftest$ac_exeext &&
5267 $as_test_x conftest$ac_exeext; then
5268 ac_cv_lib_iconv_main=yes
5269else
5270 echo "$as_me: failed program was:" >&5
5271sed 's/^/| /' conftest.$ac_ext >&5
5272
5273 ac_cv_lib_iconv_main=no
5274fi
5275
5276rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5277 conftest$ac_exeext conftest.$ac_ext
5278LIBS=$ac_check_lib_save_LIBS
5279fi
5280{ echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_main" >&5
5281echo "${ECHO_T}$ac_cv_lib_iconv_main" >&6; }
5282if test $ac_cv_lib_iconv_main = yes; then
5283 cat >>confdefs.h <<_ACEOF
5284#define HAVE_LIBICONV 1
5285_ACEOF
5286
5287 LIBS="-liconv $LIBS"
5288
5289fi
5290ac_cv_lib_iconv=ac_cv_lib_iconv_main
5291
5292fi
5293
5294
5295
5296
5297
5298
5299
5300ac_header_dirent=no
5301for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5302 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5303{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5304echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5307else
5308 cat >conftest.$ac_ext <<_ACEOF
5309/* confdefs.h. */
5310_ACEOF
5311cat confdefs.h >>conftest.$ac_ext
5312cat >>conftest.$ac_ext <<_ACEOF
5313/* end confdefs.h. */
5314#include <sys/types.h>
5315#include <$ac_hdr>
5316
5317int
5318main ()
5319{
5320if ((DIR *) 0)
5321return 0;
5322 ;
5323 return 0;
5324}
5325_ACEOF
5326rm -f conftest.$ac_objext
5327if { (ac_try="$ac_compile"
5328case "(($ac_try" in
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5331esac
5332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333 (eval "$ac_compile") 2>conftest.er1
5334 ac_status=$?
5335 grep -v '^ *+' conftest.er1 >conftest.err
5336 rm -f conftest.er1
5337 cat conftest.err >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } && {
5340 test -z "$ac_c_werror_flag" ||
5341 test ! -s conftest.err
5342 } && test -s conftest.$ac_objext; then
5343 eval "$as_ac_Header=yes"
5344else
5345 echo "$as_me: failed program was:" >&5
5346sed 's/^/| /' conftest.$ac_ext >&5
5347
5348 eval "$as_ac_Header=no"
5349fi
5350
5351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352fi
5353ac_res=`eval echo '${'$as_ac_Header'}'`
5354 { echo "$as_me:$LINENO: result: $ac_res" >&5
5355echo "${ECHO_T}$ac_res" >&6; }
5356if test `eval echo '${'$as_ac_Header'}'` = yes; then
5357 cat >>confdefs.h <<_ACEOF
5358#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5359_ACEOF
5360
5361ac_header_dirent=$ac_hdr; break
5362fi
5363
5364done
5365# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5366if test $ac_header_dirent = dirent.h; then
5367 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5368echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5369if test "${ac_cv_search_opendir+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5371else
5372 ac_func_search_save_LIBS=$LIBS
5373cat >conftest.$ac_ext <<_ACEOF
5374/* confdefs.h. */
5375_ACEOF
5376cat confdefs.h >>conftest.$ac_ext
5377cat >>conftest.$ac_ext <<_ACEOF
5378/* end confdefs.h. */
5379
5380/* Override any GCC internal prototype to avoid an error.
5381 Use char because int might match the return type of a GCC
5382 builtin and then its argument prototype would still apply. */
5383#ifdef __cplusplus
5384extern "C"
5385#endif
5386char opendir ();
5387int
5388main ()
5389{
5390return opendir ();
5391 ;
5392 return 0;
5393}
5394_ACEOF
5395for ac_lib in '' dir; do
5396 if test -z "$ac_lib"; then
5397 ac_res="none required"
5398 else
5399 ac_res=-l$ac_lib
5400 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5401 fi
5402 rm -f conftest.$ac_objext conftest$ac_exeext
5403if { (ac_try="$ac_link"
5404case "(($ac_try" in
5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406 *) ac_try_echo=$ac_try;;
5407esac
5408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5409 (eval "$ac_link") 2>conftest.er1
5410 ac_status=$?
5411 grep -v '^ *+' conftest.er1 >conftest.err
5412 rm -f conftest.er1
5413 cat conftest.err >&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); } && {
5416 test -z "$ac_c_werror_flag" ||
5417 test ! -s conftest.err
5418 } && test -s conftest$ac_exeext &&
5419 $as_test_x conftest$ac_exeext; then
5420 ac_cv_search_opendir=$ac_res
5421else
5422 echo "$as_me: failed program was:" >&5
5423sed 's/^/| /' conftest.$ac_ext >&5
5424
5425
5426fi
5427
5428rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5429 conftest$ac_exeext
5430 if test "${ac_cv_search_opendir+set}" = set; then
5431 break
5432fi
5433done
5434if test "${ac_cv_search_opendir+set}" = set; then
5435 :
5436else
5437 ac_cv_search_opendir=no
5438fi
5439rm conftest.$ac_ext
5440LIBS=$ac_func_search_save_LIBS
5441fi
5442{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5443echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5444ac_res=$ac_cv_search_opendir
5445if test "$ac_res" != no; then
5446 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5447
5448fi
5449
5450else
5451 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5452echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5453if test "${ac_cv_search_opendir+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5455else
5456 ac_func_search_save_LIBS=$LIBS
5457cat >conftest.$ac_ext <<_ACEOF
5458/* confdefs.h. */
5459_ACEOF
5460cat confdefs.h >>conftest.$ac_ext
5461cat >>conftest.$ac_ext <<_ACEOF
5462/* end confdefs.h. */
5463
5464/* Override any GCC internal prototype to avoid an error.
5465 Use char because int might match the return type of a GCC
5466 builtin and then its argument prototype would still apply. */
5467#ifdef __cplusplus
5468extern "C"
5469#endif
5470char opendir ();
5471int
5472main ()
5473{
5474return opendir ();
5475 ;
5476 return 0;
5477}
5478_ACEOF
5479for ac_lib in '' x; do
5480 if test -z "$ac_lib"; then
5481 ac_res="none required"
5482 else
5483 ac_res=-l$ac_lib
5484 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5485 fi
5486 rm -f conftest.$ac_objext conftest$ac_exeext
5487if { (ac_try="$ac_link"
5488case "(($ac_try" in
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5491esac
5492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493 (eval "$ac_link") 2>conftest.er1
5494 ac_status=$?
5495 grep -v '^ *+' conftest.er1 >conftest.err
5496 rm -f conftest.er1
5497 cat conftest.err >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } && {
5500 test -z "$ac_c_werror_flag" ||
5501 test ! -s conftest.err
5502 } && test -s conftest$ac_exeext &&
5503 $as_test_x conftest$ac_exeext; then
5504 ac_cv_search_opendir=$ac_res
5505else
5506 echo "$as_me: failed program was:" >&5
5507sed 's/^/| /' conftest.$ac_ext >&5
5508
5509
5510fi
5511
5512rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5513 conftest$ac_exeext
5514 if test "${ac_cv_search_opendir+set}" = set; then
5515 break
5516fi
5517done
5518if test "${ac_cv_search_opendir+set}" = set; then
5519 :
5520else
5521 ac_cv_search_opendir=no
5522fi
5523rm conftest.$ac_ext
5524LIBS=$ac_func_search_save_LIBS
5525fi
5526{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5527echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5528ac_res=$ac_cv_search_opendir
5529if test "$ac_res" != no; then
5530 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5531
5532fi
5533
5534fi
5535
5536{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5537echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5538if test "${ac_cv_header_stdc+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540else
5541 cat >conftest.$ac_ext <<_ACEOF
5542/* confdefs.h. */
5543_ACEOF
5544cat confdefs.h >>conftest.$ac_ext
5545cat >>conftest.$ac_ext <<_ACEOF
5546/* end confdefs.h. */
5547#include <stdlib.h>
5548#include <stdarg.h>
5549#include <string.h>
5550#include <float.h>
5551
5552int
5553main ()
5554{
5555
5556 ;
5557 return 0;
5558}
5559_ACEOF
5560rm -f conftest.$ac_objext
5561if { (ac_try="$ac_compile"
5562case "(($ac_try" in
5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5565esac
5566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567 (eval "$ac_compile") 2>conftest.er1
5568 ac_status=$?
5569 grep -v '^ *+' conftest.er1 >conftest.err
5570 rm -f conftest.er1
5571 cat conftest.err >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } && {
5574 test -z "$ac_c_werror_flag" ||
5575 test ! -s conftest.err
5576 } && test -s conftest.$ac_objext; then
5577 ac_cv_header_stdc=yes
5578else
5579 echo "$as_me: failed program was:" >&5
5580sed 's/^/| /' conftest.$ac_ext >&5
5581
5582 ac_cv_header_stdc=no
5583fi
5584
5585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586
5587if test $ac_cv_header_stdc = yes; then
5588 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5589 cat >conftest.$ac_ext <<_ACEOF
5590/* confdefs.h. */
5591_ACEOF
5592cat confdefs.h >>conftest.$ac_ext
5593cat >>conftest.$ac_ext <<_ACEOF
5594/* end confdefs.h. */
5595#include <string.h>
5596
5597_ACEOF
5598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5599 $EGREP "memchr" >/dev/null 2>&1; then
5600 :
5601else
5602 ac_cv_header_stdc=no
5603fi
5604rm -f conftest*
5605
5606fi
5607
5608if test $ac_cv_header_stdc = yes; then
5609 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5610 cat >conftest.$ac_ext <<_ACEOF
5611/* confdefs.h. */
5612_ACEOF
5613cat confdefs.h >>conftest.$ac_ext
5614cat >>conftest.$ac_ext <<_ACEOF
5615/* end confdefs.h. */
5616#include <stdlib.h>
5617
5618_ACEOF
5619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5620 $EGREP "free" >/dev/null 2>&1; then
5621 :
5622else
5623 ac_cv_header_stdc=no
5624fi
5625rm -f conftest*
5626
5627fi
5628
5629if test $ac_cv_header_stdc = yes; then
5630 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5631 if test "$cross_compiling" = yes; then
5632 :
5633else
5634 cat >conftest.$ac_ext <<_ACEOF
5635/* confdefs.h. */
5636_ACEOF
5637cat confdefs.h >>conftest.$ac_ext
5638cat >>conftest.$ac_ext <<_ACEOF
5639/* end confdefs.h. */
5640#include <ctype.h>
5641#include <stdlib.h>
5642#if ((' ' & 0x0FF) == 0x020)
5643# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5644# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5645#else
5646# define ISLOWER(c) \
5647 (('a' <= (c) && (c) <= 'i') \
5648 || ('j' <= (c) && (c) <= 'r') \
5649 || ('s' <= (c) && (c) <= 'z'))
5650# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5651#endif
5652
5653#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5654int
5655main ()
5656{
5657 int i;
5658 for (i = 0; i < 256; i++)
5659 if (XOR (islower (i), ISLOWER (i))
5660 || toupper (i) != TOUPPER (i))
5661 return 2;
5662 return 0;
5663}
5664_ACEOF
5665rm -f conftest$ac_exeext
5666if { (ac_try="$ac_link"
5667case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670esac
5671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_link") 2>&5
5673 ac_status=$?
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5676 { (case "(($ac_try" in
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5679esac
5680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_try") 2>&5
5682 ac_status=$?
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; }; then
5685 :
5686else
5687 echo "$as_me: program exited with status $ac_status" >&5
5688echo "$as_me: failed program was:" >&5
5689sed 's/^/| /' conftest.$ac_ext >&5
5690
5691( exit $ac_status )
5692ac_cv_header_stdc=no
5693fi
5694rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5695fi
5696
5697
5698fi
5699fi
5700{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5701echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5702if test $ac_cv_header_stdc = yes; then
5703
5704cat >>confdefs.h <<\_ACEOF
5705#define STDC_HEADERS 1
5706_ACEOF
5707
5708fi
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
5719do
5720as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5721if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5723echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5724if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5726fi
5727ac_res=`eval echo '${'$as_ac_Header'}'`
5728 { echo "$as_me:$LINENO: result: $ac_res" >&5
5729echo "${ECHO_T}$ac_res" >&6; }
5730else
5731 # Is the header compilable?
5732{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5733echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5734cat >conftest.$ac_ext <<_ACEOF
5735/* confdefs.h. */
5736_ACEOF
5737cat confdefs.h >>conftest.$ac_ext
5738cat >>conftest.$ac_ext <<_ACEOF
5739/* end confdefs.h. */
5740$ac_includes_default
5741#include <$ac_header>
5742_ACEOF
5743rm -f conftest.$ac_objext
5744if { (ac_try="$ac_compile"
5745case "(($ac_try" in
5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747 *) ac_try_echo=$ac_try;;
5748esac
5749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750 (eval "$ac_compile") 2>conftest.er1
5751 ac_status=$?
5752 grep -v '^ *+' conftest.er1 >conftest.err
5753 rm -f conftest.er1
5754 cat conftest.err >&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); } && {
5757 test -z "$ac_c_werror_flag" ||
5758 test ! -s conftest.err
5759 } && test -s conftest.$ac_objext; then
5760 ac_header_compiler=yes
5761else
5762 echo "$as_me: failed program was:" >&5
5763sed 's/^/| /' conftest.$ac_ext >&5
5764
5765 ac_header_compiler=no
5766fi
5767
5768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5770echo "${ECHO_T}$ac_header_compiler" >&6; }
5771
5772# Is the header present?
5773{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5774echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5775cat >conftest.$ac_ext <<_ACEOF
5776/* confdefs.h. */
5777_ACEOF
5778cat confdefs.h >>conftest.$ac_ext
5779cat >>conftest.$ac_ext <<_ACEOF
5780/* end confdefs.h. */
5781#include <$ac_header>
5782_ACEOF
5783if { (ac_try="$ac_cpp conftest.$ac_ext"
5784case "(($ac_try" in
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5787esac
5788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5790 ac_status=$?
5791 grep -v '^ *+' conftest.er1 >conftest.err
5792 rm -f conftest.er1
5793 cat conftest.err >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } >/dev/null && {
5796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5797 test ! -s conftest.err
5798 }; then
5799 ac_header_preproc=yes
5800else
5801 echo "$as_me: failed program was:" >&5
5802sed 's/^/| /' conftest.$ac_ext >&5
5803
5804 ac_header_preproc=no
5805fi
5806
5807rm -f conftest.err conftest.$ac_ext
5808{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5809echo "${ECHO_T}$ac_header_preproc" >&6; }
5810
5811# So? What about this header?
5812case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5813 yes:no: )
5814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5815echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5817echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5818 ac_header_preproc=yes
5819 ;;
5820 no:yes:* )
5821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5822echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5824echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5826echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5828echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5830echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5832echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5833
5834 ;;
5835esac
5836{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5838if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5840else
5841 eval "$as_ac_Header=\$ac_header_preproc"
5842fi
5843ac_res=`eval echo '${'$as_ac_Header'}'`
5844 { echo "$as_me:$LINENO: result: $ac_res" >&5
5845echo "${ECHO_T}$ac_res" >&6; }
5846
5847fi
5848if test `eval echo '${'$as_ac_Header'}'` = yes; then
5849 cat >>confdefs.h <<_ACEOF
5850#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5851_ACEOF
5852
5853fi
5854
5855done
5856
5857cat >conftest.$ac_ext <<_ACEOF
5858/* confdefs.h. */
5859_ACEOF
5860cat confdefs.h >>conftest.$ac_ext
5861cat >>conftest.$ac_ext <<_ACEOF
5862/* end confdefs.h. */
5863#include <stdio.h>
5864
5865_ACEOF
5866if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5867 $EGREP "fread" >/dev/null 2>&1; then
5868 cat >>confdefs.h <<\_ACEOF
5869#define HAVE_FREAD_DECL 1
5870_ACEOF
5871
5872fi
5873rm -f conftest*
5874
5875cat >conftest.$ac_ext <<_ACEOF
5876/* confdefs.h. */
5877_ACEOF
5878cat confdefs.h >>conftest.$ac_ext
5879cat >>conftest.$ac_ext <<_ACEOF
5880/* end confdefs.h. */
5881#include <stdio.h>
5882
5883_ACEOF
5884if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5885 $EGREP "fgetc" >/dev/null 2>&1; then
5886 cat >>confdefs.h <<\_ACEOF
5887#define HAVE_FGETC_DECL 1
5888_ACEOF
5889
5890fi
5891rm -f conftest*
5892
5893cat >conftest.$ac_ext <<_ACEOF
5894/* confdefs.h. */
5895_ACEOF
5896cat confdefs.h >>conftest.$ac_ext
5897cat >>conftest.$ac_ext <<_ACEOF
5898/* end confdefs.h. */
5899#include <sys/procfs.h>
5900
5901_ACEOF
5902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5903 $EGREP "pr_brksize" >/dev/null 2>&1; then
5904 cat >>confdefs.h <<\_ACEOF
5905#define HAVE_PR_BRKSIZE 1
5906_ACEOF
5907
5908fi
5909rm -f conftest*
5910
5911
5912# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5913# for constant arguments. Useless!
5914{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5915echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5916if test "${ac_cv_working_alloca_h+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5918else
5919 cat >conftest.$ac_ext <<_ACEOF
5920/* confdefs.h. */
5921_ACEOF
5922cat confdefs.h >>conftest.$ac_ext
5923cat >>conftest.$ac_ext <<_ACEOF
5924/* end confdefs.h. */
5925#include <alloca.h>
5926int
5927main ()
5928{
5929char *p = (char *) alloca (2 * sizeof (int));
5930 if (p) return 0;
5931 ;
5932 return 0;
5933}
5934_ACEOF
5935rm -f conftest.$ac_objext conftest$ac_exeext
5936if { (ac_try="$ac_link"
5937case "(($ac_try" in
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5940esac
5941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942 (eval "$ac_link") 2>conftest.er1
5943 ac_status=$?
5944 grep -v '^ *+' conftest.er1 >conftest.err
5945 rm -f conftest.er1
5946 cat conftest.err >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } && {
5949 test -z "$ac_c_werror_flag" ||
5950 test ! -s conftest.err
5951 } && test -s conftest$ac_exeext &&
5952 $as_test_x conftest$ac_exeext; then
5953 ac_cv_working_alloca_h=yes
5954else
5955 echo "$as_me: failed program was:" >&5
5956sed 's/^/| /' conftest.$ac_ext >&5
5957
5958 ac_cv_working_alloca_h=no
5959fi
5960
5961rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5962 conftest$ac_exeext conftest.$ac_ext
5963fi
5964{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5965echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
5966if test $ac_cv_working_alloca_h = yes; then
5967
5968cat >>confdefs.h <<\_ACEOF
5969#define HAVE_ALLOCA_H 1
5970_ACEOF
5971
5972fi
5973
5974{ echo "$as_me:$LINENO: checking for alloca" >&5
5975echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
5976if test "${ac_cv_func_alloca_works+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5978else
5979 cat >conftest.$ac_ext <<_ACEOF
5980/* confdefs.h. */
5981_ACEOF
5982cat confdefs.h >>conftest.$ac_ext
5983cat >>conftest.$ac_ext <<_ACEOF
5984/* end confdefs.h. */
5985#ifdef __GNUC__
5986# define alloca __builtin_alloca
5987#else
5988# ifdef _MSC_VER
5989# include <malloc.h>
5990# define alloca _alloca
5991# else
5992# ifdef HAVE_ALLOCA_H
5993# include <alloca.h>
5994# else
5995# ifdef _AIX
5996 #pragma alloca
5997# else
5998# ifndef alloca /* predefined by HP cc +Olibcalls */
5999char *alloca ();
6000# endif
6001# endif
6002# endif
6003# endif
6004#endif
6005
6006int
6007main ()
6008{
6009char *p = (char *) alloca (1);
6010 if (p) return 0;
6011 ;
6012 return 0;
6013}
6014_ACEOF
6015rm -f conftest.$ac_objext conftest$ac_exeext
6016if { (ac_try="$ac_link"
6017case "(($ac_try" in
6018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019 *) ac_try_echo=$ac_try;;
6020esac
6021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022 (eval "$ac_link") 2>conftest.er1
6023 ac_status=$?
6024 grep -v '^ *+' conftest.er1 >conftest.err
6025 rm -f conftest.er1
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } && {
6029 test -z "$ac_c_werror_flag" ||
6030 test ! -s conftest.err
6031 } && test -s conftest$ac_exeext &&
6032 $as_test_x conftest$ac_exeext; then
6033 ac_cv_func_alloca_works=yes
6034else
6035 echo "$as_me: failed program was:" >&5
6036sed 's/^/| /' conftest.$ac_ext >&5
6037
6038 ac_cv_func_alloca_works=no
6039fi
6040
6041rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6042 conftest$ac_exeext conftest.$ac_ext
6043fi
6044{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6045echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6046
6047if test $ac_cv_func_alloca_works = yes; then
6048
6049cat >>confdefs.h <<\_ACEOF
6050#define HAVE_ALLOCA 1
6051_ACEOF
6052
6053else
6054 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6055# that cause trouble. Some versions do not even contain alloca or
6056# contain a buggy version. If you still want to use their alloca,
6057# use ar to extract alloca.o from them instead of compiling alloca.c.
6058
6059ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6060
6061cat >>confdefs.h <<\_ACEOF
6062#define C_ALLOCA 1
6063_ACEOF
6064
6065
6066{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6067echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6068if test "${ac_cv_os_cray+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6070else
6071 cat >conftest.$ac_ext <<_ACEOF
6072/* confdefs.h. */
6073_ACEOF
6074cat confdefs.h >>conftest.$ac_ext
6075cat >>conftest.$ac_ext <<_ACEOF
6076/* end confdefs.h. */
6077#if defined CRAY && ! defined CRAY2
6078webecray
6079#else
6080wenotbecray
6081#endif
6082
6083_ACEOF
6084if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6085 $EGREP "webecray" >/dev/null 2>&1; then
6086 ac_cv_os_cray=yes
6087else
6088 ac_cv_os_cray=no
6089fi
6090rm -f conftest*
6091
6092fi
6093{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6094echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6095if test $ac_cv_os_cray = yes; then
6096 for ac_func in _getb67 GETB67 getb67; do
6097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6098{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6100if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6102else
6103 cat >conftest.$ac_ext <<_ACEOF
6104/* confdefs.h. */
6105_ACEOF
6106cat confdefs.h >>conftest.$ac_ext
6107cat >>conftest.$ac_ext <<_ACEOF
6108/* end confdefs.h. */
6109/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6111#define $ac_func innocuous_$ac_func
6112
6113/* System header to define __stub macros and hopefully few prototypes,
6114 which can conflict with char $ac_func (); below.
6115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6116 <limits.h> exists even on freestanding compilers. */
6117
6118#ifdef __STDC__
6119# include <limits.h>
6120#else
6121# include <assert.h>
6122#endif
6123
6124#undef $ac_func
6125
6126/* Override any GCC internal prototype to avoid an error.
6127 Use char because int might match the return type of a GCC
6128 builtin and then its argument prototype would still apply. */
6129#ifdef __cplusplus
6130extern "C"
6131#endif
6132char $ac_func ();
6133/* The GNU C library defines this for functions which it implements
6134 to always fail with ENOSYS. Some functions are actually named
6135 something starting with __ and the normal name is an alias. */
6136#if defined __stub_$ac_func || defined __stub___$ac_func
6137choke me
6138#endif
6139
6140int
6141main ()
6142{
6143return $ac_func ();
6144 ;
6145 return 0;
6146}
6147_ACEOF
6148rm -f conftest.$ac_objext conftest$ac_exeext
6149if { (ac_try="$ac_link"
6150case "(($ac_try" in
6151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6152 *) ac_try_echo=$ac_try;;
6153esac
6154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6155 (eval "$ac_link") 2>conftest.er1
6156 ac_status=$?
6157 grep -v '^ *+' conftest.er1 >conftest.err
6158 rm -f conftest.er1
6159 cat conftest.err >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } && {
6162 test -z "$ac_c_werror_flag" ||
6163 test ! -s conftest.err
6164 } && test -s conftest$ac_exeext &&
6165 $as_test_x conftest$ac_exeext; then
6166 eval "$as_ac_var=yes"
6167else
6168 echo "$as_me: failed program was:" >&5
6169sed 's/^/| /' conftest.$ac_ext >&5
6170
6171 eval "$as_ac_var=no"
6172fi
6173
6174rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6175 conftest$ac_exeext conftest.$ac_ext
6176fi
6177ac_res=`eval echo '${'$as_ac_var'}'`
6178 { echo "$as_me:$LINENO: result: $ac_res" >&5
6179echo "${ECHO_T}$ac_res" >&6; }
6180if test `eval echo '${'$as_ac_var'}'` = yes; then
6181
6182cat >>confdefs.h <<_ACEOF
6183#define CRAY_STACKSEG_END $ac_func
6184_ACEOF
6185
6186 break
6187fi
6188
6189 done
6190fi
6191
6192{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6193echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6194if test "${ac_cv_c_stack_direction+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6196else
6197 if test "$cross_compiling" = yes; then
6198 ac_cv_c_stack_direction=0
6199else
6200 cat >conftest.$ac_ext <<_ACEOF
6201/* confdefs.h. */
6202_ACEOF
6203cat confdefs.h >>conftest.$ac_ext
6204cat >>conftest.$ac_ext <<_ACEOF
6205/* end confdefs.h. */
6206$ac_includes_default
6207int
6208find_stack_direction ()
6209{
6210 static char *addr = 0;
6211 auto char dummy;
6212 if (addr == 0)
6213 {
6214 addr = &dummy;
6215 return find_stack_direction ();
6216 }
6217 else
6218 return (&dummy > addr) ? 1 : -1;
6219}
6220
6221int
6222main ()
6223{
6224 return find_stack_direction () < 0;
6225}
6226_ACEOF
6227rm -f conftest$ac_exeext
6228if { (ac_try="$ac_link"
6229case "(($ac_try" in
6230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6231 *) ac_try_echo=$ac_try;;
6232esac
6233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6234 (eval "$ac_link") 2>&5
6235 ac_status=$?
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6238 { (case "(($ac_try" in
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6241esac
6242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243 (eval "$ac_try") 2>&5
6244 ac_status=$?
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; }; then
6247 ac_cv_c_stack_direction=1
6248else
6249 echo "$as_me: program exited with status $ac_status" >&5
6250echo "$as_me: failed program was:" >&5
6251sed 's/^/| /' conftest.$ac_ext >&5
6252
6253( exit $ac_status )
6254ac_cv_c_stack_direction=-1
6255fi
6256rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6257fi
6258
6259
6260fi
6261{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6262echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6263
6264cat >>confdefs.h <<_ACEOF
6265#define STACK_DIRECTION $ac_cv_c_stack_direction
6266_ACEOF
6267
6268
6269fi
6270
6271if test $ac_cv_c_compiler_gnu = yes; then
6272 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
6273echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
6274if test "${ac_cv_prog_gcc_traditional+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6276else
6277 ac_pattern="Autoconf.*'x'"
6278 cat >conftest.$ac_ext <<_ACEOF
6279/* confdefs.h. */
6280_ACEOF
6281cat confdefs.h >>conftest.$ac_ext
6282cat >>conftest.$ac_ext <<_ACEOF
6283/* end confdefs.h. */
6284#include <sgtty.h>
6285Autoconf TIOCGETP
6286_ACEOF
6287if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6288 $EGREP "$ac_pattern" >/dev/null 2>&1; then
6289 ac_cv_prog_gcc_traditional=yes
6290else
6291 ac_cv_prog_gcc_traditional=no
6292fi
6293rm -f conftest*
6294
6295
6296 if test $ac_cv_prog_gcc_traditional = no; then
6297 cat >conftest.$ac_ext <<_ACEOF
6298/* confdefs.h. */
6299_ACEOF
6300cat confdefs.h >>conftest.$ac_ext
6301cat >>conftest.$ac_ext <<_ACEOF
6302/* end confdefs.h. */
6303#include <termio.h>
6304Autoconf TCGETA
6305_ACEOF
6306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6307 $EGREP "$ac_pattern" >/dev/null 2>&1; then
6308 ac_cv_prog_gcc_traditional=yes
6309fi
6310rm -f conftest*
6311
6312 fi
6313fi
6314{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
6315echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
6316 if test $ac_cv_prog_gcc_traditional = yes; then
6317 CC="$CC -traditional"
6318 fi
6319fi
6320
6321{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6322echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6323if test "${ac_cv_type_signal+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6325else
6326 cat >conftest.$ac_ext <<_ACEOF
6327/* confdefs.h. */
6328_ACEOF
6329cat confdefs.h >>conftest.$ac_ext
6330cat >>conftest.$ac_ext <<_ACEOF
6331/* end confdefs.h. */
6332#include <sys/types.h>
6333#include <signal.h>
6334
6335int
6336main ()
6337{
6338return *(signal (0, 0)) (0) == 1;
6339 ;
6340 return 0;
6341}
6342_ACEOF
6343rm -f conftest.$ac_objext
6344if { (ac_try="$ac_compile"
6345case "(($ac_try" in
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6348esac
6349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_compile") 2>conftest.er1
6351 ac_status=$?
6352 grep -v '^ *+' conftest.er1 >conftest.err
6353 rm -f conftest.er1
6354 cat conftest.err >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } && {
6357 test -z "$ac_c_werror_flag" ||
6358 test ! -s conftest.err
6359 } && test -s conftest.$ac_objext; then
6360 ac_cv_type_signal=int
6361else
6362 echo "$as_me: failed program was:" >&5
6363sed 's/^/| /' conftest.$ac_ext >&5
6364
6365 ac_cv_type_signal=void
6366fi
6367
6368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6369fi
6370{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6371echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6372
6373cat >>confdefs.h <<_ACEOF
6374#define RETSIGTYPE $ac_cv_type_signal
6375_ACEOF
6376
6377
6378
6379for ac_func in vprintf
6380do
6381as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6382{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6383echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6384if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6386else
6387 cat >conftest.$ac_ext <<_ACEOF
6388/* confdefs.h. */
6389_ACEOF
6390cat confdefs.h >>conftest.$ac_ext
6391cat >>conftest.$ac_ext <<_ACEOF
6392/* end confdefs.h. */
6393/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6395#define $ac_func innocuous_$ac_func
6396
6397/* System header to define __stub macros and hopefully few prototypes,
6398 which can conflict with char $ac_func (); below.
6399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6400 <limits.h> exists even on freestanding compilers. */
6401
6402#ifdef __STDC__
6403# include <limits.h>
6404#else
6405# include <assert.h>
6406#endif
6407
6408#undef $ac_func
6409
6410/* Override any GCC internal prototype to avoid an error.
6411 Use char because int might match the return type of a GCC
6412 builtin and then its argument prototype would still apply. */
6413#ifdef __cplusplus
6414extern "C"
6415#endif
6416char $ac_func ();
6417/* The GNU C library defines this for functions which it implements
6418 to always fail with ENOSYS. Some functions are actually named
6419 something starting with __ and the normal name is an alias. */
6420#if defined __stub_$ac_func || defined __stub___$ac_func
6421choke me
6422#endif
6423
6424int
6425main ()
6426{
6427return $ac_func ();
6428 ;
6429 return 0;
6430}
6431_ACEOF
6432rm -f conftest.$ac_objext conftest$ac_exeext
6433if { (ac_try="$ac_link"
6434case "(($ac_try" in
6435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6436 *) ac_try_echo=$ac_try;;
6437esac
6438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6439 (eval "$ac_link") 2>conftest.er1
6440 ac_status=$?
6441 grep -v '^ *+' conftest.er1 >conftest.err
6442 rm -f conftest.er1
6443 cat conftest.err >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } && {
6446 test -z "$ac_c_werror_flag" ||
6447 test ! -s conftest.err
6448 } && test -s conftest$ac_exeext &&
6449 $as_test_x conftest$ac_exeext; then
6450 eval "$as_ac_var=yes"
6451else
6452 echo "$as_me: failed program was:" >&5
6453sed 's/^/| /' conftest.$ac_ext >&5
6454
6455 eval "$as_ac_var=no"
6456fi
6457
6458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6459 conftest$ac_exeext conftest.$ac_ext
6460fi
6461ac_res=`eval echo '${'$as_ac_var'}'`
6462 { echo "$as_me:$LINENO: result: $ac_res" >&5
6463echo "${ECHO_T}$ac_res" >&6; }
6464if test `eval echo '${'$as_ac_var'}'` = yes; then
6465 cat >>confdefs.h <<_ACEOF
6466#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6467_ACEOF
6468
6469{ echo "$as_me:$LINENO: checking for _doprnt" >&5
6470echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
6471if test "${ac_cv_func__doprnt+set}" = set; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6473else
6474 cat >conftest.$ac_ext <<_ACEOF
6475/* confdefs.h. */
6476_ACEOF
6477cat confdefs.h >>conftest.$ac_ext
6478cat >>conftest.$ac_ext <<_ACEOF
6479/* end confdefs.h. */
6480/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
6481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6482#define _doprnt innocuous__doprnt
6483
6484/* System header to define __stub macros and hopefully few prototypes,
6485 which can conflict with char _doprnt (); below.
6486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6487 <limits.h> exists even on freestanding compilers. */
6488
6489#ifdef __STDC__
6490# include <limits.h>
6491#else
6492# include <assert.h>
6493#endif
6494
6495#undef _doprnt
6496
6497/* Override any GCC internal prototype to avoid an error.
6498 Use char because int might match the return type of a GCC
6499 builtin and then its argument prototype would still apply. */
6500#ifdef __cplusplus
6501extern "C"
6502#endif
6503char _doprnt ();
6504/* The GNU C library defines this for functions which it implements
6505 to always fail with ENOSYS. Some functions are actually named
6506 something starting with __ and the normal name is an alias. */
6507#if defined __stub__doprnt || defined __stub____doprnt
6508choke me
6509#endif
6510
6511int
6512main ()
6513{
6514return _doprnt ();
6515 ;
6516 return 0;
6517}
6518_ACEOF
6519rm -f conftest.$ac_objext conftest$ac_exeext
6520if { (ac_try="$ac_link"
6521case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6524esac
6525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_link") 2>conftest.er1
6527 ac_status=$?
6528 grep -v '^ *+' conftest.er1 >conftest.err
6529 rm -f conftest.er1
6530 cat conftest.err >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } && {
6533 test -z "$ac_c_werror_flag" ||
6534 test ! -s conftest.err
6535 } && test -s conftest$ac_exeext &&
6536 $as_test_x conftest$ac_exeext; then
6537 ac_cv_func__doprnt=yes
6538else
6539 echo "$as_me: failed program was:" >&5
6540sed 's/^/| /' conftest.$ac_ext >&5
6541
6542 ac_cv_func__doprnt=no
6543fi
6544
6545rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6546 conftest$ac_exeext conftest.$ac_ext
6547fi
6548{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
6549echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
6550if test $ac_cv_func__doprnt = yes; then
6551
6552cat >>confdefs.h <<\_ACEOF
6553#define HAVE_DOPRNT 1
6554_ACEOF
6555
6556fi
6557
6558fi
6559done
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
6573do
6574as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6575{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6576echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6577if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6579else
6580 cat >conftest.$ac_ext <<_ACEOF
6581/* confdefs.h. */
6582_ACEOF
6583cat confdefs.h >>conftest.$ac_ext
6584cat >>conftest.$ac_ext <<_ACEOF
6585/* end confdefs.h. */
6586/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6588#define $ac_func innocuous_$ac_func
6589
6590/* System header to define __stub macros and hopefully few prototypes,
6591 which can conflict with char $ac_func (); below.
6592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6593 <limits.h> exists even on freestanding compilers. */
6594
6595#ifdef __STDC__
6596# include <limits.h>
6597#else
6598# include <assert.h>
6599#endif
6600
6601#undef $ac_func
6602
6603/* Override any GCC internal prototype to avoid an error.
6604 Use char because int might match the return type of a GCC
6605 builtin and then its argument prototype would still apply. */
6606#ifdef __cplusplus
6607extern "C"
6608#endif
6609char $ac_func ();
6610/* The GNU C library defines this for functions which it implements
6611 to always fail with ENOSYS. Some functions are actually named
6612 something starting with __ and the normal name is an alias. */
6613#if defined __stub_$ac_func || defined __stub___$ac_func
6614choke me
6615#endif
6616
6617int
6618main ()
6619{
6620return $ac_func ();
6621 ;
6622 return 0;
6623}
6624_ACEOF
6625rm -f conftest.$ac_objext conftest$ac_exeext
6626if { (ac_try="$ac_link"
6627case "(($ac_try" in
6628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6629 *) ac_try_echo=$ac_try;;
6630esac
6631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6632 (eval "$ac_link") 2>conftest.er1
6633 ac_status=$?
6634 grep -v '^ *+' conftest.er1 >conftest.err
6635 rm -f conftest.er1
6636 cat conftest.err >&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } && {
6639 test -z "$ac_c_werror_flag" ||
6640 test ! -s conftest.err
6641 } && test -s conftest$ac_exeext &&
6642 $as_test_x conftest$ac_exeext; then
6643 eval "$as_ac_var=yes"
6644else
6645 echo "$as_me: failed program was:" >&5
6646sed 's/^/| /' conftest.$ac_ext >&5
6647
6648 eval "$as_ac_var=no"
6649fi
6650
6651rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6652 conftest$ac_exeext conftest.$ac_ext
6653fi
6654ac_res=`eval echo '${'$as_ac_var'}'`
6655 { echo "$as_me:$LINENO: result: $ac_res" >&5
6656echo "${ECHO_T}$ac_res" >&6; }
6657if test `eval echo '${'$as_ac_var'}'` = yes; then
6658 cat >>confdefs.h <<_ACEOF
6659#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6660_ACEOF
6661
6662fi
6663done
6664
6665
6666
6667
6668for ac_func in ftruncate strstr strcasecmp
6669do
6670as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6671{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6672echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6673if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6675else
6676 cat >conftest.$ac_ext <<_ACEOF
6677/* confdefs.h. */
6678_ACEOF
6679cat confdefs.h >>conftest.$ac_ext
6680cat >>conftest.$ac_ext <<_ACEOF
6681/* end confdefs.h. */
6682/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6684#define $ac_func innocuous_$ac_func
6685
6686/* System header to define __stub macros and hopefully few prototypes,
6687 which can conflict with char $ac_func (); below.
6688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6689 <limits.h> exists even on freestanding compilers. */
6690
6691#ifdef __STDC__
6692# include <limits.h>
6693#else
6694# include <assert.h>
6695#endif
6696
6697#undef $ac_func
6698
6699/* Override any GCC internal prototype to avoid an error.
6700 Use char because int might match the return type of a GCC
6701 builtin and then its argument prototype would still apply. */
6702#ifdef __cplusplus
6703extern "C"
6704#endif
6705char $ac_func ();
6706/* The GNU C library defines this for functions which it implements
6707 to always fail with ENOSYS. Some functions are actually named
6708 something starting with __ and the normal name is an alias. */
6709#if defined __stub_$ac_func || defined __stub___$ac_func
6710choke me
6711#endif
6712
6713int
6714main ()
6715{
6716return $ac_func ();
6717 ;
6718 return 0;
6719}
6720_ACEOF
6721rm -f conftest.$ac_objext conftest$ac_exeext
6722if { (ac_try="$ac_link"
6723case "(($ac_try" in
6724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6725 *) ac_try_echo=$ac_try;;
6726esac
6727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6728 (eval "$ac_link") 2>conftest.er1
6729 ac_status=$?
6730 grep -v '^ *+' conftest.er1 >conftest.err
6731 rm -f conftest.er1
6732 cat conftest.err >&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); } && {
6735 test -z "$ac_c_werror_flag" ||
6736 test ! -s conftest.err
6737 } && test -s conftest$ac_exeext &&
6738 $as_test_x conftest$ac_exeext; then
6739 eval "$as_ac_var=yes"
6740else
6741 echo "$as_me: failed program was:" >&5
6742sed 's/^/| /' conftest.$ac_ext >&5
6743
6744 eval "$as_ac_var=no"
6745fi
6746
6747rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6748 conftest$ac_exeext conftest.$ac_ext
6749fi
6750ac_res=`eval echo '${'$as_ac_var'}'`
6751 { echo "$as_me:$LINENO: result: $ac_res" >&5
6752echo "${ECHO_T}$ac_res" >&6; }
6753if test `eval echo '${'$as_ac_var'}'` = yes; then
6754 cat >>confdefs.h <<_ACEOF
6755#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6756_ACEOF
6757
6758else
6759 case " $LIBOBJS " in
6760 *" $ac_func.$ac_objext "* ) ;;
6761 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6762 ;;
6763esac
6764
6765fi
6766done
6767
6768
6769
6770
6771{ echo "$as_me:$LINENO: checking for textdomain" >&5
6772echo $ECHO_N "checking for textdomain... $ECHO_C" >&6; }
6773if test "${ac_cv_func_textdomain+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6775else
6776 cat >conftest.$ac_ext <<_ACEOF
6777/* confdefs.h. */
6778_ACEOF
6779cat confdefs.h >>conftest.$ac_ext
6780cat >>conftest.$ac_ext <<_ACEOF
6781/* end confdefs.h. */
6782/* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
6783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6784#define textdomain innocuous_textdomain
6785
6786/* System header to define __stub macros and hopefully few prototypes,
6787 which can conflict with char textdomain (); below.
6788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6789 <limits.h> exists even on freestanding compilers. */
6790
6791#ifdef __STDC__
6792# include <limits.h>
6793#else
6794# include <assert.h>
6795#endif
6796
6797#undef textdomain
6798
6799/* Override any GCC internal prototype to avoid an error.
6800 Use char because int might match the return type of a GCC
6801 builtin and then its argument prototype would still apply. */
6802#ifdef __cplusplus
6803extern "C"
6804#endif
6805char textdomain ();
6806/* The GNU C library defines this for functions which it implements
6807 to always fail with ENOSYS. Some functions are actually named
6808 something starting with __ and the normal name is an alias. */
6809#if defined __stub_textdomain || defined __stub___textdomain
6810choke me
6811#endif
6812
6813int
6814main ()
6815{
6816return textdomain ();
6817 ;
6818 return 0;
6819}
6820_ACEOF
6821rm -f conftest.$ac_objext conftest$ac_exeext
6822if { (ac_try="$ac_link"
6823case "(($ac_try" in
6824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6825 *) ac_try_echo=$ac_try;;
6826esac
6827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6828 (eval "$ac_link") 2>conftest.er1
6829 ac_status=$?
6830 grep -v '^ *+' conftest.er1 >conftest.err
6831 rm -f conftest.er1
6832 cat conftest.err >&5
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); } && {
6835 test -z "$ac_c_werror_flag" ||
6836 test ! -s conftest.err
6837 } && test -s conftest$ac_exeext &&
6838 $as_test_x conftest$ac_exeext; then
6839 ac_cv_func_textdomain=yes
6840else
6841 echo "$as_me: failed program was:" >&5
6842sed 's/^/| /' conftest.$ac_ext >&5
6843
6844 ac_cv_func_textdomain=no
6845fi
6846
6847rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6848 conftest$ac_exeext conftest.$ac_ext
6849fi
6850{ echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
6851echo "${ECHO_T}$ac_cv_func_textdomain" >&6; }
6852if test $ac_cv_func_textdomain = yes; then
6853 cat >>confdefs.h <<\_ACEOF
6854#define ENABLE_NLS 1
6855_ACEOF
6856
6857fi
6858
6859
6860# we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
6861# a non-standard Path
6862# is there a better way to do this??
6863{ echo "$as_me:$LINENO: checking for OS to set JNI options" >&5
6864echo $ECHO_N "checking for OS to set JNI options... $ECHO_C" >&6; }
6865# set defaults
6866JNIINC=""
6867JNISUFFIX="so"
6868JNIFLAGS="-shared"
6869
6870if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
6871 { echo "$as_me:$LINENO: result: Darwin" >&5
6872echo "${ECHO_T}Darwin" >&6; }
6873 JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
6874 JNISUFFIX="jnilib"
6875 JNIFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
6876fi
6877if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
6878 { echo "$as_me:$LINENO: result: Solaris" >&5
6879echo "${ECHO_T}Solaris" >&6; }
6880 JNIINC="-I\$(JAVA_HOME)/include/solaris "
6881fi
6882if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
6883 { echo "$as_me:$LINENO: result: Linux" >&5
6884echo "${ECHO_T}Linux" >&6; }
6885 JNIINC="-I\$(JAVA_HOME)/include/linux -I\$(JAVA_HOME)/include "
6886fi
6887
6888
6889
6890
6891
6892# *** Custom checking (based on GNU tar configure.in) ***
6893# ---------------------------------------------------------------------------
6894{ echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
6895echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6; }
6896if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
6897 { echo "$as_me:$LINENO: result: yes" >&5
6898echo "${ECHO_T}yes" >&6; }
6899 case " $LIBOBJS " in
6900 *" gmalloc.$ac_objext "* ) ;;
6901 *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
6902 ;;
6903esac
6904
6905 cat >>confdefs.h <<\_ACEOF
6906#define HAVE_VALLOC 1
6907_ACEOF
6908
6909else
6910 { echo "$as_me:$LINENO: result: no" >&5
6911echo "${ECHO_T}no" >&6; }
6912
6913for ac_func in valloc
6914do
6915as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6916{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6917echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6918if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6920else
6921 cat >conftest.$ac_ext <<_ACEOF
6922/* confdefs.h. */
6923_ACEOF
6924cat confdefs.h >>conftest.$ac_ext
6925cat >>conftest.$ac_ext <<_ACEOF
6926/* end confdefs.h. */
6927/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6929#define $ac_func innocuous_$ac_func
6930
6931/* System header to define __stub macros and hopefully few prototypes,
6932 which can conflict with char $ac_func (); below.
6933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6934 <limits.h> exists even on freestanding compilers. */
6935
6936#ifdef __STDC__
6937# include <limits.h>
6938#else
6939# include <assert.h>
6940#endif
6941
6942#undef $ac_func
6943
6944/* Override any GCC internal prototype to avoid an error.
6945 Use char because int might match the return type of a GCC
6946 builtin and then its argument prototype would still apply. */
6947#ifdef __cplusplus
6948extern "C"
6949#endif
6950char $ac_func ();
6951/* The GNU C library defines this for functions which it implements
6952 to always fail with ENOSYS. Some functions are actually named
6953 something starting with __ and the normal name is an alias. */
6954#if defined __stub_$ac_func || defined __stub___$ac_func
6955choke me
6956#endif
6957
6958int
6959main ()
6960{
6961return $ac_func ();
6962 ;
6963 return 0;
6964}
6965_ACEOF
6966rm -f conftest.$ac_objext conftest$ac_exeext
6967if { (ac_try="$ac_link"
6968case "(($ac_try" in
6969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6970 *) ac_try_echo=$ac_try;;
6971esac
6972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6973 (eval "$ac_link") 2>conftest.er1
6974 ac_status=$?
6975 grep -v '^ *+' conftest.er1 >conftest.err
6976 rm -f conftest.er1
6977 cat conftest.err >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); } && {
6980 test -z "$ac_c_werror_flag" ||
6981 test ! -s conftest.err
6982 } && test -s conftest$ac_exeext &&
6983 $as_test_x conftest$ac_exeext; then
6984 eval "$as_ac_var=yes"
6985else
6986 echo "$as_me: failed program was:" >&5
6987sed 's/^/| /' conftest.$ac_ext >&5
6988
6989 eval "$as_ac_var=no"
6990fi
6991
6992rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6993 conftest$ac_exeext conftest.$ac_ext
6994fi
6995ac_res=`eval echo '${'$as_ac_var'}'`
6996 { echo "$as_me:$LINENO: result: $ac_res" >&5
6997echo "${ECHO_T}$ac_res" >&6; }
6998if test `eval echo '${'$as_ac_var'}'` = yes; then
6999 cat >>confdefs.h <<_ACEOF
7000#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7001_ACEOF
7002
7003fi
7004done
7005
7006fi
7007
7008{ echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
7009echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6; }
7010
7011# Check whether --with-dmalloc was given.
7012if test "${with_dmalloc+set}" = set; then
7013 withval=$with_dmalloc; if test "$withval" = yes; then
7014 { echo "$as_me:$LINENO: result: yes" >&5
7015echo "${ECHO_T}yes" >&6; }
7016 cat >>confdefs.h <<\_ACEOF
7017#define WITH_DMALLOC 1
7018_ACEOF
7019
7020 LIBS="$LIBS -ldmalloc"
7021 LDFLAGS="$LDFLAGS -g"
7022else
7023 { echo "$as_me:$LINENO: result: no" >&5
7024echo "${ECHO_T}no" >&6; }
7025fi
7026else
7027 { echo "$as_me:$LINENO: result: no" >&5
7028echo "${ECHO_T}no" >&6; }
7029fi
7030
7031
7032{ echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
7033echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6; }
7034
7035# Check whether --with-regex was given.
7036if test "${with_regex+set}" = set; then
7037 withval=$with_regex; if test "$withval" = yes; then
7038 ac_with_regex=1
7039 { echo "$as_me:$LINENO: result: regex" >&5
7040echo "${ECHO_T}regex" >&6; }
7041 cat >>confdefs.h <<\_ACEOF
7042#define WITH_REGEX 1
7043_ACEOF
7044
7045 case " $LIBOBJS " in
7046 *" regex.$ac_objext "* ) ;;
7047 *) LIBOBJS="$LIBOBJS regex.$ac_objext"
7048 ;;
7049esac
7050
7051fi
7052fi
7053
7054if test -z "$ac_with_regex"; then
7055 { echo "$as_me:$LINENO: result: rx" >&5
7056echo "${ECHO_T}rx" >&6; }
7057 { echo "$as_me:$LINENO: checking for re_rx_search" >&5
7058echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6; }
7059if test "${ac_cv_func_re_rx_search+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7061else
7062 cat >conftest.$ac_ext <<_ACEOF
7063/* confdefs.h. */
7064_ACEOF
7065cat confdefs.h >>conftest.$ac_ext
7066cat >>conftest.$ac_ext <<_ACEOF
7067/* end confdefs.h. */
7068/* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
7069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7070#define re_rx_search innocuous_re_rx_search
7071
7072/* System header to define __stub macros and hopefully few prototypes,
7073 which can conflict with char re_rx_search (); below.
7074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7075 <limits.h> exists even on freestanding compilers. */
7076
7077#ifdef __STDC__
7078# include <limits.h>
7079#else
7080# include <assert.h>
7081#endif
7082
7083#undef re_rx_search
7084
7085/* Override any GCC internal prototype to avoid an error.
7086 Use char because int might match the return type of a GCC
7087 builtin and then its argument prototype would still apply. */
7088#ifdef __cplusplus
7089extern "C"
7090#endif
7091char re_rx_search ();
7092/* The GNU C library defines this for functions which it implements
7093 to always fail with ENOSYS. Some functions are actually named
7094 something starting with __ and the normal name is an alias. */
7095#if defined __stub_re_rx_search || defined __stub___re_rx_search
7096choke me
7097#endif
7098
7099int
7100main ()
7101{
7102return re_rx_search ();
7103 ;
7104 return 0;
7105}
7106_ACEOF
7107rm -f conftest.$ac_objext conftest$ac_exeext
7108if { (ac_try="$ac_link"
7109case "(($ac_try" in
7110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7111 *) ac_try_echo=$ac_try;;
7112esac
7113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7114 (eval "$ac_link") 2>conftest.er1
7115 ac_status=$?
7116 grep -v '^ *+' conftest.er1 >conftest.err
7117 rm -f conftest.er1
7118 cat conftest.err >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } && {
7121 test -z "$ac_c_werror_flag" ||
7122 test ! -s conftest.err
7123 } && test -s conftest$ac_exeext &&
7124 $as_test_x conftest$ac_exeext; then
7125 ac_cv_func_re_rx_search=yes
7126else
7127 echo "$as_me: failed program was:" >&5
7128sed 's/^/| /' conftest.$ac_ext >&5
7129
7130 ac_cv_func_re_rx_search=no
7131fi
7132
7133rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7134 conftest$ac_exeext conftest.$ac_ext
7135fi
7136{ echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
7137echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6; }
7138if test $ac_cv_func_re_rx_search = yes; then
7139 :
7140else
7141 { echo "$as_me:$LINENO: checking for unsigned char *" >&5
7142echo $ECHO_N "checking for unsigned char *... $ECHO_C" >&6; }
7143if test "${ac_cv_type_unsigned_char_p+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7145else
7146 cat >conftest.$ac_ext <<_ACEOF
7147/* confdefs.h. */
7148_ACEOF
7149cat confdefs.h >>conftest.$ac_ext
7150cat >>conftest.$ac_ext <<_ACEOF
7151/* end confdefs.h. */
7152$ac_includes_default
7153typedef unsigned char * ac__type_new_;
7154int
7155main ()
7156{
7157if ((ac__type_new_ *) 0)
7158 return 0;
7159if (sizeof (ac__type_new_))
7160 return 0;
7161 ;
7162 return 0;
7163}
7164_ACEOF
7165rm -f conftest.$ac_objext
7166if { (ac_try="$ac_compile"
7167case "(($ac_try" in
7168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7169 *) ac_try_echo=$ac_try;;
7170esac
7171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7172 (eval "$ac_compile") 2>conftest.er1
7173 ac_status=$?
7174 grep -v '^ *+' conftest.er1 >conftest.err
7175 rm -f conftest.er1
7176 cat conftest.err >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } && {
7179 test -z "$ac_c_werror_flag" ||
7180 test ! -s conftest.err
7181 } && test -s conftest.$ac_objext; then
7182 ac_cv_type_unsigned_char_p=yes
7183else
7184 echo "$as_me: failed program was:" >&5
7185sed 's/^/| /' conftest.$ac_ext >&5
7186
7187 ac_cv_type_unsigned_char_p=no
7188fi
7189
7190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7191fi
7192{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char_p" >&5
7193echo "${ECHO_T}$ac_cv_type_unsigned_char_p" >&6; }
7194
7195# The cast to long int works around a bug in the HP C Compiler
7196# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7197# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7198# This bug is HP SR number 8606223364.
7199{ echo "$as_me:$LINENO: checking size of unsigned char *" >&5
7200echo $ECHO_N "checking size of unsigned char *... $ECHO_C" >&6; }
7201if test "${ac_cv_sizeof_unsigned_char_p+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7203else
7204 if test "$cross_compiling" = yes; then
7205 # Depending upon the size, compute the lo and hi bounds.
7206cat >conftest.$ac_ext <<_ACEOF
7207/* confdefs.h. */
7208_ACEOF
7209cat confdefs.h >>conftest.$ac_ext
7210cat >>conftest.$ac_ext <<_ACEOF
7211/* end confdefs.h. */
7212$ac_includes_default
7213 typedef unsigned char * ac__type_sizeof_;
7214int
7215main ()
7216{
7217static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7218test_array [0] = 0
7219
7220 ;
7221 return 0;
7222}
7223_ACEOF
7224rm -f conftest.$ac_objext
7225if { (ac_try="$ac_compile"
7226case "(($ac_try" in
7227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7228 *) ac_try_echo=$ac_try;;
7229esac
7230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7231 (eval "$ac_compile") 2>conftest.er1
7232 ac_status=$?
7233 grep -v '^ *+' conftest.er1 >conftest.err
7234 rm -f conftest.er1
7235 cat conftest.err >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } && {
7238 test -z "$ac_c_werror_flag" ||
7239 test ! -s conftest.err
7240 } && test -s conftest.$ac_objext; then
7241 ac_lo=0 ac_mid=0
7242 while :; do
7243 cat >conftest.$ac_ext <<_ACEOF
7244/* confdefs.h. */
7245_ACEOF
7246cat confdefs.h >>conftest.$ac_ext
7247cat >>conftest.$ac_ext <<_ACEOF
7248/* end confdefs.h. */
7249$ac_includes_default
7250 typedef unsigned char * ac__type_sizeof_;
7251int
7252main ()
7253{
7254static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7255test_array [0] = 0
7256
7257 ;
7258 return 0;
7259}
7260_ACEOF
7261rm -f conftest.$ac_objext
7262if { (ac_try="$ac_compile"
7263case "(($ac_try" in
7264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7265 *) ac_try_echo=$ac_try;;
7266esac
7267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268 (eval "$ac_compile") 2>conftest.er1
7269 ac_status=$?
7270 grep -v '^ *+' conftest.er1 >conftest.err
7271 rm -f conftest.er1
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } && {
7275 test -z "$ac_c_werror_flag" ||
7276 test ! -s conftest.err
7277 } && test -s conftest.$ac_objext; then
7278 ac_hi=$ac_mid; break
7279else
7280 echo "$as_me: failed program was:" >&5
7281sed 's/^/| /' conftest.$ac_ext >&5
7282
7283 ac_lo=`expr $ac_mid + 1`
7284 if test $ac_lo -le $ac_mid; then
7285 ac_lo= ac_hi=
7286 break
7287 fi
7288 ac_mid=`expr 2 '*' $ac_mid + 1`
7289fi
7290
7291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7292 done
7293else
7294 echo "$as_me: failed program was:" >&5
7295sed 's/^/| /' conftest.$ac_ext >&5
7296
7297 cat >conftest.$ac_ext <<_ACEOF
7298/* confdefs.h. */
7299_ACEOF
7300cat confdefs.h >>conftest.$ac_ext
7301cat >>conftest.$ac_ext <<_ACEOF
7302/* end confdefs.h. */
7303$ac_includes_default
7304 typedef unsigned char * ac__type_sizeof_;
7305int
7306main ()
7307{
7308static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7309test_array [0] = 0
7310
7311 ;
7312 return 0;
7313}
7314_ACEOF
7315rm -f conftest.$ac_objext
7316if { (ac_try="$ac_compile"
7317case "(($ac_try" in
7318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7319 *) ac_try_echo=$ac_try;;
7320esac
7321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7322 (eval "$ac_compile") 2>conftest.er1
7323 ac_status=$?
7324 grep -v '^ *+' conftest.er1 >conftest.err
7325 rm -f conftest.er1
7326 cat conftest.err >&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); } && {
7329 test -z "$ac_c_werror_flag" ||
7330 test ! -s conftest.err
7331 } && test -s conftest.$ac_objext; then
7332 ac_hi=-1 ac_mid=-1
7333 while :; do
7334 cat >conftest.$ac_ext <<_ACEOF
7335/* confdefs.h. */
7336_ACEOF
7337cat confdefs.h >>conftest.$ac_ext
7338cat >>conftest.$ac_ext <<_ACEOF
7339/* end confdefs.h. */
7340$ac_includes_default
7341 typedef unsigned char * ac__type_sizeof_;
7342int
7343main ()
7344{
7345static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7346test_array [0] = 0
7347
7348 ;
7349 return 0;
7350}
7351_ACEOF
7352rm -f conftest.$ac_objext
7353if { (ac_try="$ac_compile"
7354case "(($ac_try" in
7355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7357esac
7358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7359 (eval "$ac_compile") 2>conftest.er1
7360 ac_status=$?
7361 grep -v '^ *+' conftest.er1 >conftest.err
7362 rm -f conftest.er1
7363 cat conftest.err >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } && {
7366 test -z "$ac_c_werror_flag" ||
7367 test ! -s conftest.err
7368 } && test -s conftest.$ac_objext; then
7369 ac_lo=$ac_mid; break
7370else
7371 echo "$as_me: failed program was:" >&5
7372sed 's/^/| /' conftest.$ac_ext >&5
7373
7374 ac_hi=`expr '(' $ac_mid ')' - 1`
7375 if test $ac_mid -le $ac_hi; then
7376 ac_lo= ac_hi=
7377 break
7378 fi
7379 ac_mid=`expr 2 '*' $ac_mid`
7380fi
7381
7382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7383 done
7384else
7385 echo "$as_me: failed program was:" >&5
7386sed 's/^/| /' conftest.$ac_ext >&5
7387
7388 ac_lo= ac_hi=
7389fi
7390
7391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7392fi
7393
7394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7395# Binary search between lo and hi bounds.
7396while test "x$ac_lo" != "x$ac_hi"; do
7397 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7398 cat >conftest.$ac_ext <<_ACEOF
7399/* confdefs.h. */
7400_ACEOF
7401cat confdefs.h >>conftest.$ac_ext
7402cat >>conftest.$ac_ext <<_ACEOF
7403/* end confdefs.h. */
7404$ac_includes_default
7405 typedef unsigned char * ac__type_sizeof_;
7406int
7407main ()
7408{
7409static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7410test_array [0] = 0
7411
7412 ;
7413 return 0;
7414}
7415_ACEOF
7416rm -f conftest.$ac_objext
7417if { (ac_try="$ac_compile"
7418case "(($ac_try" in
7419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7420 *) ac_try_echo=$ac_try;;
7421esac
7422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7423 (eval "$ac_compile") 2>conftest.er1
7424 ac_status=$?
7425 grep -v '^ *+' conftest.er1 >conftest.err
7426 rm -f conftest.er1
7427 cat conftest.err >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } && {
7430 test -z "$ac_c_werror_flag" ||
7431 test ! -s conftest.err
7432 } && test -s conftest.$ac_objext; then
7433 ac_hi=$ac_mid
7434else
7435 echo "$as_me: failed program was:" >&5
7436sed 's/^/| /' conftest.$ac_ext >&5
7437
7438 ac_lo=`expr '(' $ac_mid ')' + 1`
7439fi
7440
7441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442done
7443case $ac_lo in
7444?*) ac_cv_sizeof_unsigned_char_p=$ac_lo;;
7445'') if test "$ac_cv_type_unsigned_char_p" = yes; then
7446 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char *)
7447See \`config.log' for more details." >&5
7448echo "$as_me: error: cannot compute sizeof (unsigned char *)
7449See \`config.log' for more details." >&2;}
7450 { (exit 77); exit 77; }; }
7451 else
7452 ac_cv_sizeof_unsigned_char_p=0
7453 fi ;;
7454esac
7455else
7456 cat >conftest.$ac_ext <<_ACEOF
7457/* confdefs.h. */
7458_ACEOF
7459cat confdefs.h >>conftest.$ac_ext
7460cat >>conftest.$ac_ext <<_ACEOF
7461/* end confdefs.h. */
7462$ac_includes_default
7463 typedef unsigned char * ac__type_sizeof_;
7464static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7465static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7466#include <stdio.h>
7467#include <stdlib.h>
7468int
7469main ()
7470{
7471
7472 FILE *f = fopen ("conftest.val", "w");
7473 if (! f)
7474 return 1;
7475 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7476 {
7477 long int i = longval ();
7478 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7479 return 1;
7480 fprintf (f, "%ld\n", i);
7481 }
7482 else
7483 {
7484 unsigned long int i = ulongval ();
7485 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7486 return 1;
7487 fprintf (f, "%lu\n", i);
7488 }
7489 return ferror (f) || fclose (f) != 0;
7490
7491 ;
7492 return 0;
7493}
7494_ACEOF
7495rm -f conftest$ac_exeext
7496if { (ac_try="$ac_link"
7497case "(($ac_try" in
7498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7499 *) ac_try_echo=$ac_try;;
7500esac
7501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7502 (eval "$ac_link") 2>&5
7503 ac_status=$?
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7506 { (case "(($ac_try" in
7507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7508 *) ac_try_echo=$ac_try;;
7509esac
7510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7511 (eval "$ac_try") 2>&5
7512 ac_status=$?
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; }; then
7515 ac_cv_sizeof_unsigned_char_p=`cat conftest.val`
7516else
7517 echo "$as_me: program exited with status $ac_status" >&5
7518echo "$as_me: failed program was:" >&5
7519sed 's/^/| /' conftest.$ac_ext >&5
7520
7521( exit $ac_status )
7522if test "$ac_cv_type_unsigned_char_p" = yes; then
7523 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char *)
7524See \`config.log' for more details." >&5
7525echo "$as_me: error: cannot compute sizeof (unsigned char *)
7526See \`config.log' for more details." >&2;}
7527 { (exit 77); exit 77; }; }
7528 else
7529 ac_cv_sizeof_unsigned_char_p=0
7530 fi
7531fi
7532rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7533fi
7534rm -f conftest.val
7535fi
7536{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char_p" >&5
7537echo "${ECHO_T}$ac_cv_sizeof_unsigned_char_p" >&6; }
7538
7539
7540
7541cat >>confdefs.h <<_ACEOF
7542#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
7543_ACEOF
7544
7545
7546 if test "$ac_cv_sizeof_unsigned_char_p" = 8
7547 then
7548 { echo "$as_me:$LINENO: WARNING: I'm forcing you to use regex because I can't
7549 find a local rx library and the one included with this
7550 distribution doesn't work on 64-bit machines like yours" >&5
7551echo "$as_me: WARNING: I'm forcing you to use regex because I can't
7552 find a local rx library and the one included with this
7553 distribution doesn't work on 64-bit machines like yours" >&2;}
7554 case " $LIBOBJS " in
7555 *" regex.$ac_objext "* ) ;;
7556 *) LIBOBJS="$LIBOBJS regex.$ac_objext"
7557 ;;
7558esac
7559
7560 else
7561 case " $LIBOBJS " in
7562 *" rx.$ac_objext "* ) ;;
7563 *) LIBOBJS="$LIBOBJS rx.$ac_objext"
7564 ;;
7565esac
7566
7567 fi
7568
7569fi
7570
7571fi
7572
7573{ echo "$as_me:$LINENO: checking whether GNU readline requested" >&5
7574echo $ECHO_N "checking whether GNU readline requested... $ECHO_C" >&6; }
7575
7576# Check whether --with-gnu_readline was given.
7577if test "${with_gnu_readline+set}" = set; then
7578 withval=$with_gnu_readline; if test "$withval" = yes; then
7579 { echo "$as_me:$LINENO: result: yes" >&5
7580echo "${ECHO_T}yes" >&6; }
7581 ac_with_gnu_readline=1
7582 else
7583 { echo "$as_me:$LINENO: result: no" >&5
7584echo "${ECHO_T}no" >&6; }
7585 fi
7586else
7587 { echo "$as_me:$LINENO: result: no" >&5
7588echo "${ECHO_T}no" >&6; }
7589fi
7590
7591
7592 if test -n "$ac_with_gnu_readline"; then
7593 if test "${ac_cv_header_readline_readline_h+set}" = set; then
7594 { echo "$as_me:$LINENO: checking for readline/readline.h" >&5
7595echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6; }
7596if test "${ac_cv_header_readline_readline_h+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7598fi
7599{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
7600echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6; }
7601else
7602 # Is the header compilable?
7603{ echo "$as_me:$LINENO: checking readline/readline.h usability" >&5
7604echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6; }
7605cat >conftest.$ac_ext <<_ACEOF
7606/* confdefs.h. */
7607_ACEOF
7608cat confdefs.h >>conftest.$ac_ext
7609cat >>conftest.$ac_ext <<_ACEOF
7610/* end confdefs.h. */
7611$ac_includes_default
7612#include <readline/readline.h>
7613_ACEOF
7614rm -f conftest.$ac_objext
7615if { (ac_try="$ac_compile"
7616case "(($ac_try" in
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7619esac
7620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7621 (eval "$ac_compile") 2>conftest.er1
7622 ac_status=$?
7623 grep -v '^ *+' conftest.er1 >conftest.err
7624 rm -f conftest.er1
7625 cat conftest.err >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); } && {
7628 test -z "$ac_c_werror_flag" ||
7629 test ! -s conftest.err
7630 } && test -s conftest.$ac_objext; then
7631 ac_header_compiler=yes
7632else
7633 echo "$as_me: failed program was:" >&5
7634sed 's/^/| /' conftest.$ac_ext >&5
7635
7636 ac_header_compiler=no
7637fi
7638
7639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7640{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7641echo "${ECHO_T}$ac_header_compiler" >&6; }
7642
7643# Is the header present?
7644{ echo "$as_me:$LINENO: checking readline/readline.h presence" >&5
7645echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6; }
7646cat >conftest.$ac_ext <<_ACEOF
7647/* confdefs.h. */
7648_ACEOF
7649cat confdefs.h >>conftest.$ac_ext
7650cat >>conftest.$ac_ext <<_ACEOF
7651/* end confdefs.h. */
7652#include <readline/readline.h>
7653_ACEOF
7654if { (ac_try="$ac_cpp conftest.$ac_ext"
7655case "(($ac_try" in
7656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7657 *) ac_try_echo=$ac_try;;
7658esac
7659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7661 ac_status=$?
7662 grep -v '^ *+' conftest.er1 >conftest.err
7663 rm -f conftest.er1
7664 cat conftest.err >&5
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } >/dev/null && {
7667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7668 test ! -s conftest.err
7669 }; then
7670 ac_header_preproc=yes
7671else
7672 echo "$as_me: failed program was:" >&5
7673sed 's/^/| /' conftest.$ac_ext >&5
7674
7675 ac_header_preproc=no
7676fi
7677
7678rm -f conftest.err conftest.$ac_ext
7679{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7680echo "${ECHO_T}$ac_header_preproc" >&6; }
7681
7682# So? What about this header?
7683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7684 yes:no: )
7685 { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
7686echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7687 { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the compiler's result" >&5
7688echo "$as_me: WARNING: readline/readline.h: proceeding with the compiler's result" >&2;}
7689 ac_header_preproc=yes
7690 ;;
7691 no:yes:* )
7692 { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5
7693echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;}
7694 { echo "$as_me:$LINENO: WARNING: readline/readline.h: check for missing prerequisite headers?" >&5
7695echo "$as_me: WARNING: readline/readline.h: check for missing prerequisite headers?" >&2;}
7696 { echo "$as_me:$LINENO: WARNING: readline/readline.h: see the Autoconf documentation" >&5
7697echo "$as_me: WARNING: readline/readline.h: see the Autoconf documentation" >&2;}
7698 { echo "$as_me:$LINENO: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
7699echo "$as_me: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
7700 { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
7701echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;}
7702 { echo "$as_me:$LINENO: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&5
7703echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;}
7704
7705 ;;
7706esac
7707{ echo "$as_me:$LINENO: checking for readline/readline.h" >&5
7708echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6; }
7709if test "${ac_cv_header_readline_readline_h+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7711else
7712 ac_cv_header_readline_readline_h=$ac_header_preproc
7713fi
7714{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
7715echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6; }
7716
7717fi
7718if test $ac_cv_header_readline_readline_h = yes; then
7719 ac_mg_readline_header_found=1
7720else
7721 { echo "$as_me:$LINENO: WARNING: Can't find GNU readline headers; configuring without \
7722GNU readline support" >&5
7723echo "$as_me: WARNING: Can't find GNU readline headers; configuring without \
7724GNU readline support" >&2;}
7725fi
7726
7727
7728 if test -n "$ac_mg_readline_header_found"; then
7729 # first check whether we can find the readline library itself
7730 { echo "$as_me:$LINENO: checking for main in -lreadline" >&5
7731echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6; }
7732if test "${ac_cv_lib_readline_main+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7734else
7735 ac_check_lib_save_LIBS=$LIBS
7736LIBS="-lreadline $LIBS"
7737cat >conftest.$ac_ext <<_ACEOF
7738/* confdefs.h. */
7739_ACEOF
7740cat confdefs.h >>conftest.$ac_ext
7741cat >>conftest.$ac_ext <<_ACEOF
7742/* end confdefs.h. */
7743
7744
7745int
7746main ()
7747{
7748return main ();
7749 ;
7750 return 0;
7751}
7752_ACEOF
7753rm -f conftest.$ac_objext conftest$ac_exeext
7754if { (ac_try="$ac_link"
7755case "(($ac_try" in
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7758esac
7759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760 (eval "$ac_link") 2>conftest.er1
7761 ac_status=$?
7762 grep -v '^ *+' conftest.er1 >conftest.err
7763 rm -f conftest.er1
7764 cat conftest.err >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } && {
7767 test -z "$ac_c_werror_flag" ||
7768 test ! -s conftest.err
7769 } && test -s conftest$ac_exeext &&
7770 $as_test_x conftest$ac_exeext; then
7771 ac_cv_lib_readline_main=yes
7772else
7773 echo "$as_me: failed program was:" >&5
7774sed 's/^/| /' conftest.$ac_ext >&5
7775
7776 ac_cv_lib_readline_main=no
7777fi
7778
7779rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7780 conftest$ac_exeext conftest.$ac_ext
7781LIBS=$ac_check_lib_save_LIBS
7782fi
7783{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
7784echo "${ECHO_T}$ac_cv_lib_readline_main" >&6; }
7785if test $ac_cv_lib_readline_main = yes; then
7786 ac_mg_readline_lib_found=1
7787 cat >>confdefs.h <<\_ACEOF
7788#define WITH_GNU_READLINE 1
7789_ACEOF
7790
7791 LIBS="$LIBS -lreadline"
7792else
7793 { echo "$as_me:$LINENO: WARNING: Can't find GNU readline library; configuring without \
7794GNU readline support" >&5
7795echo "$as_me: WARNING: Can't find GNU readline library; configuring without \
7796GNU readline support" >&2;}
7797fi
7798
7799 if test -n "$ac_mg_readline_lib_found"; then
7800 # on some systems, readline needs curses. It is difficult to
7801 # determine whether this is necessary on the current system,
7802 # since other undefined symbols can be turned up by an
7803 # AC_CHECK_LIB(readline, readline) test that are actually defined
7804 # by mg itself (e.g. xmalloc, xrealloc). So, if we find libcurses,
7805 # we just bung it on and hope for the best.
7806 { echo "$as_me:$LINENO: checking for main in -lcurses" >&5
7807echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6; }
7808if test "${ac_cv_lib_curses_main+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7810else
7811 ac_check_lib_save_LIBS=$LIBS
7812LIBS="-lcurses $LIBS"
7813cat >conftest.$ac_ext <<_ACEOF
7814/* confdefs.h. */
7815_ACEOF
7816cat confdefs.h >>conftest.$ac_ext
7817cat >>conftest.$ac_ext <<_ACEOF
7818/* end confdefs.h. */
7819
7820
7821int
7822main ()
7823{
7824return main ();
7825 ;
7826 return 0;
7827}
7828_ACEOF
7829rm -f conftest.$ac_objext conftest$ac_exeext
7830if { (ac_try="$ac_link"
7831case "(($ac_try" in
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7834esac
7835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836 (eval "$ac_link") 2>conftest.er1
7837 ac_status=$?
7838 grep -v '^ *+' conftest.er1 >conftest.err
7839 rm -f conftest.er1
7840 cat conftest.err >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } && {
7843 test -z "$ac_c_werror_flag" ||
7844 test ! -s conftest.err
7845 } && test -s conftest$ac_exeext &&
7846 $as_test_x conftest$ac_exeext; then
7847 ac_cv_lib_curses_main=yes
7848else
7849 echo "$as_me: failed program was:" >&5
7850sed 's/^/| /' conftest.$ac_ext >&5
7851
7852 ac_cv_lib_curses_main=no
7853fi
7854
7855rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7856 conftest$ac_exeext conftest.$ac_ext
7857LIBS=$ac_check_lib_save_LIBS
7858fi
7859{ echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
7860echo "${ECHO_T}$ac_cv_lib_curses_main" >&6; }
7861if test $ac_cv_lib_curses_main = yes; then
7862 LIBS="$LIBS -lcurses"
7863fi
7864
7865 fi
7866 fi
7867 fi
7868
7869
7870# text for endianness
7871{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7872echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
7873if test "${ac_cv_c_bigendian+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7875else
7876 # See if sys/param.h defines the BYTE_ORDER macro.
7877cat >conftest.$ac_ext <<_ACEOF
7878/* confdefs.h. */
7879_ACEOF
7880cat confdefs.h >>conftest.$ac_ext
7881cat >>conftest.$ac_ext <<_ACEOF
7882/* end confdefs.h. */
7883#include <sys/types.h>
7884#include <sys/param.h>
7885
7886int
7887main ()
7888{
7889#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
7890 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
7891 bogus endian macros
7892#endif
7893
7894 ;
7895 return 0;
7896}
7897_ACEOF
7898rm -f conftest.$ac_objext
7899if { (ac_try="$ac_compile"
7900case "(($ac_try" in
7901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7902 *) ac_try_echo=$ac_try;;
7903esac
7904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7905 (eval "$ac_compile") 2>conftest.er1
7906 ac_status=$?
7907 grep -v '^ *+' conftest.er1 >conftest.err
7908 rm -f conftest.er1
7909 cat conftest.err >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } && {
7912 test -z "$ac_c_werror_flag" ||
7913 test ! -s conftest.err
7914 } && test -s conftest.$ac_objext; then
7915 # It does; now see whether it defined to BIG_ENDIAN or not.
7916cat >conftest.$ac_ext <<_ACEOF
7917/* confdefs.h. */
7918_ACEOF
7919cat confdefs.h >>conftest.$ac_ext
7920cat >>conftest.$ac_ext <<_ACEOF
7921/* end confdefs.h. */
7922#include <sys/types.h>
7923#include <sys/param.h>
7924
7925int
7926main ()
7927{
7928#if BYTE_ORDER != BIG_ENDIAN
7929 not big endian
7930#endif
7931
7932 ;
7933 return 0;
7934}
7935_ACEOF
7936rm -f conftest.$ac_objext
7937if { (ac_try="$ac_compile"
7938case "(($ac_try" in
7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940 *) ac_try_echo=$ac_try;;
7941esac
7942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943 (eval "$ac_compile") 2>conftest.er1
7944 ac_status=$?
7945 grep -v '^ *+' conftest.er1 >conftest.err
7946 rm -f conftest.er1
7947 cat conftest.err >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } && {
7950 test -z "$ac_c_werror_flag" ||
7951 test ! -s conftest.err
7952 } && test -s conftest.$ac_objext; then
7953 ac_cv_c_bigendian=yes
7954else
7955 echo "$as_me: failed program was:" >&5
7956sed 's/^/| /' conftest.$ac_ext >&5
7957
7958 ac_cv_c_bigendian=no
7959fi
7960
7961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962else
7963 echo "$as_me: failed program was:" >&5
7964sed 's/^/| /' conftest.$ac_ext >&5
7965
7966 # It does not; compile a test program.
7967if test "$cross_compiling" = yes; then
7968 # try to guess the endianness by grepping values into an object file
7969 ac_cv_c_bigendian=unknown
7970 cat >conftest.$ac_ext <<_ACEOF
7971/* confdefs.h. */
7972_ACEOF
7973cat confdefs.h >>conftest.$ac_ext
7974cat >>conftest.$ac_ext <<_ACEOF
7975/* end confdefs.h. */
7976short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7977short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7978void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7979short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7980short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7981void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7982int
7983main ()
7984{
7985 _ascii (); _ebcdic ();
7986 ;
7987 return 0;
7988}
7989_ACEOF
7990rm -f conftest.$ac_objext
7991if { (ac_try="$ac_compile"
7992case "(($ac_try" in
7993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7994 *) ac_try_echo=$ac_try;;
7995esac
7996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7997 (eval "$ac_compile") 2>conftest.er1
7998 ac_status=$?
7999 grep -v '^ *+' conftest.er1 >conftest.err
8000 rm -f conftest.er1
8001 cat conftest.err >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); } && {
8004 test -z "$ac_c_werror_flag" ||
8005 test ! -s conftest.err
8006 } && test -s conftest.$ac_objext; then
8007 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8008 ac_cv_c_bigendian=yes
8009fi
8010if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8011 if test "$ac_cv_c_bigendian" = unknown; then
8012 ac_cv_c_bigendian=no
8013 else
8014 # finding both strings is unlikely to happen, but who knows?
8015 ac_cv_c_bigendian=unknown
8016 fi
8017fi
8018else
8019 echo "$as_me: failed program was:" >&5
8020sed 's/^/| /' conftest.$ac_ext >&5
8021
8022
8023fi
8024
8025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8026else
8027 cat >conftest.$ac_ext <<_ACEOF
8028/* confdefs.h. */
8029_ACEOF
8030cat confdefs.h >>conftest.$ac_ext
8031cat >>conftest.$ac_ext <<_ACEOF
8032/* end confdefs.h. */
8033$ac_includes_default
8034int
8035main ()
8036{
8037
8038 /* Are we little or big endian? From Harbison&Steele. */
8039 union
8040 {
8041 long int l;
8042 char c[sizeof (long int)];
8043 } u;
8044 u.l = 1;
8045 return u.c[sizeof (long int) - 1] == 1;
8046
8047 ;
8048 return 0;
8049}
8050_ACEOF
8051rm -f conftest$ac_exeext
8052if { (ac_try="$ac_link"
8053case "(($ac_try" in
8054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055 *) ac_try_echo=$ac_try;;
8056esac
8057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058 (eval "$ac_link") 2>&5
8059 ac_status=$?
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8062 { (case "(($ac_try" in
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8065esac
8066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067 (eval "$ac_try") 2>&5
8068 ac_status=$?
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; }; then
8071 ac_cv_c_bigendian=no
8072else
8073 echo "$as_me: program exited with status $ac_status" >&5
8074echo "$as_me: failed program was:" >&5
8075sed 's/^/| /' conftest.$ac_ext >&5
8076
8077( exit $ac_status )
8078ac_cv_c_bigendian=yes
8079fi
8080rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8081fi
8082
8083
8084fi
8085
8086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8087fi
8088{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8089echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
8090case $ac_cv_c_bigendian in
8091 yes)
8092
8093cat >>confdefs.h <<\_ACEOF
8094#define WORDS_BIGENDIAN 1
8095_ACEOF
8096 ;;
8097 no)
8098 ;;
8099 *)
8100 { { echo "$as_me:$LINENO: error: unknown endianness
8101presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8102echo "$as_me: error: unknown endianness
8103presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8104 { (exit 1); exit 1; }; } ;;
8105esac
8106
8107
8108# ---------------------------------------------------------------------------
8109if test "$ac_cv_func_alloca" = 'no'; then
8110 case " $LIBOBJS " in
8111 *" xmalloc.$ac_objext "* ) ;;
8112 *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
8113 ;;
8114esac
8115
8116 case " $LIBOBJS " in
8117 *" error.$ac_objext "* ) ;;
8118 *) LIBOBJS="$LIBOBJS error.$ac_objext"
8119 ;;
8120esac
8121
8122fi
8123
8124
8125# ---------------------------------------------------------------------------
8126# see if the user wants to override use of long long
8127# Check whether --enable-override-longlong was given.
8128if test "${enable_override_longlong+set}" = set; then
8129 enableval=$enable_override_longlong; cat >>confdefs.h <<\_ACEOF
8130#define DISABLE_LONG_LONG 1
8131_ACEOF
8132
8133fi
8134
8135
8136
8137# ---------------------------------------------------------------------------
8138
8139ac_config_files="$ac_config_files Makefile text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mgpp/Makefile"
8140
8141ac_config_commands="$ac_config_commands default"
8142
8143cat >confcache <<\_ACEOF
8144# This file is a shell script that caches the results of configure
8145# tests run on this system so they can be shared between configure
8146# scripts and configure runs, see configure's option --config-cache.
8147# It is not useful on other systems. If it contains results you don't
8148# want to keep, you may remove or edit it.
8149#
8150# config.status only pays attention to the cache file if you give it
8151# the --recheck option to rerun configure.
8152#
8153# `ac_cv_env_foo' variables (set or unset) will be overridden when
8154# loading this file, other *unset* `ac_cv_foo' will be assigned the
8155# following values.
8156
8157_ACEOF
8158
8159# The following way of writing the cache mishandles newlines in values,
8160# but we know of no workaround that is simple, portable, and efficient.
8161# So, we kill variables containing newlines.
8162# Ultrix sh set writes to stderr and can't be redirected directly,
8163# and sets the high bit in the cache file unless we assign to the vars.
8164(
8165 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8166 eval ac_val=\$$ac_var
8167 case $ac_val in #(
8168 *${as_nl}*)
8169 case $ac_var in #(
8170 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8171echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8172 esac
8173 case $ac_var in #(
8174 _ | IFS | as_nl) ;; #(
8175 *) $as_unset $ac_var ;;
8176 esac ;;
8177 esac
8178 done
8179
8180 (set) 2>&1 |
8181 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8182 *${as_nl}ac_space=\ *)
8183 # `set' does not quote correctly, so add quotes (double-quote
8184 # substitution turns \\\\ into \\, and sed turns \\ into \).
8185 sed -n \
8186 "s/'/'\\\\''/g;
8187 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8188 ;; #(
8189 *)
8190 # `set' quotes correctly as required by POSIX, so do not add quotes.
8191 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8192 ;;
8193 esac |
8194 sort
8195) |
8196 sed '
8197 /^ac_cv_env_/b end
8198 t clear
8199 :clear
8200 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8201 t end
8202 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8203 :end' >>confcache
8204if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8205 if test -w "$cache_file"; then
8206 test "x$cache_file" != "x/dev/null" &&
8207 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8208echo "$as_me: updating cache $cache_file" >&6;}
8209 cat confcache >$cache_file
8210 else
8211 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8212echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8213 fi
8214fi
8215rm -f confcache
8216
8217test "x$prefix" = xNONE && prefix=$ac_default_prefix
8218# Let make expand exec_prefix.
8219test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8220
8221DEFS=-DHAVE_CONFIG_H
8222
8223ac_libobjs=
8224ac_ltlibobjs=
8225for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8226 # 1. Remove the extension, and $U if already installed.
8227 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8228 ac_i=`echo "$ac_i" | sed "$ac_script"`
8229 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8230 # will be set to the directory where LIBOBJS objects are built.
8231 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8232 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8233done
8234LIBOBJS=$ac_libobjs
8235
8236LTLIBOBJS=$ac_ltlibobjs
8237
8238
8239
8240: ${CONFIG_STATUS=./config.status}
8241ac_clean_files_save=$ac_clean_files
8242ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8243{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8244echo "$as_me: creating $CONFIG_STATUS" >&6;}
8245cat >$CONFIG_STATUS <<_ACEOF
8246#! $SHELL
8247# Generated by $as_me.
8248# Run this file to recreate the current configuration.
8249# Compiler output produced by configure, useful for debugging
8250# configure, is in config.log if it exists.
8251
8252debug=false
8253ac_cs_recheck=false
8254ac_cs_silent=false
8255SHELL=\${CONFIG_SHELL-$SHELL}
8256_ACEOF
8257
8258cat >>$CONFIG_STATUS <<\_ACEOF
8259## --------------------- ##
8260## M4sh Initialization. ##
8261## --------------------- ##
8262
8263# Be more Bourne compatible
8264DUALCASE=1; export DUALCASE # for MKS sh
8265if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8266 emulate sh
8267 NULLCMD=:
8268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8269 # is contrary to our usage. Disable this feature.
8270 alias -g '${1+"$@"}'='"$@"'
8271 setopt NO_GLOB_SUBST
8272else
8273 case `(set -o) 2>/dev/null` in
8274 *posix*) set -o posix ;;
8275esac
8276
8277fi
8278
8279
8280
8281
8282# PATH needs CR
8283# Avoid depending upon Character Ranges.
8284as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8285as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8286as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8287as_cr_digits='0123456789'
8288as_cr_alnum=$as_cr_Letters$as_cr_digits
8289
8290# The user is always right.
8291if test "${PATH_SEPARATOR+set}" != set; then
8292 echo "#! /bin/sh" >conf$$.sh
8293 echo "exit 0" >>conf$$.sh
8294 chmod +x conf$$.sh
8295 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8296 PATH_SEPARATOR=';'
8297 else
8298 PATH_SEPARATOR=:
8299 fi
8300 rm -f conf$$.sh
8301fi
8302
8303# Support unset when possible.
8304if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8305 as_unset=unset
8306else
8307 as_unset=false
8308fi
8309
8310
8311# IFS
8312# We need space, tab and new line, in precisely that order. Quoting is
8313# there to prevent editors from complaining about space-tab.
8314# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8315# splitting by setting IFS to empty value.)
8316as_nl='
8317'
8318IFS=" "" $as_nl"
8319
8320# Find who we are. Look in the path if we contain no directory separator.
8321case $0 in
8322 *[\\/]* ) as_myself=$0 ;;
8323 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324for as_dir in $PATH
8325do
8326 IFS=$as_save_IFS
8327 test -z "$as_dir" && as_dir=.
8328 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8329done
8330IFS=$as_save_IFS
8331
8332 ;;
8333esac
8334# We did not find ourselves, most probably we were run as `sh COMMAND'
8335# in which case we are not to be found in the path.
8336if test "x$as_myself" = x; then
8337 as_myself=$0
8338fi
8339if test ! -f "$as_myself"; then
8340 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8341 { (exit 1); exit 1; }
8342fi
8343
8344# Work around bugs in pre-3.0 UWIN ksh.
8345for as_var in ENV MAIL MAILPATH
8346do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8347done
8348PS1='$ '
8349PS2='> '
8350PS4='+ '
8351
8352# NLS nuisances.
8353for as_var in \
8354 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8355 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8356 LC_TELEPHONE LC_TIME
8357do
8358 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8359 eval $as_var=C; export $as_var
8360 else
8361 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8362 fi
8363done
8364
8365# Required to use basename.
8366if expr a : '\(a\)' >/dev/null 2>&1 &&
8367 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8368 as_expr=expr
8369else
8370 as_expr=false
8371fi
8372
8373if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8374 as_basename=basename
8375else
8376 as_basename=false
8377fi
8378
8379
8380# Name of the executable.
8381as_me=`$as_basename -- "$0" ||
8382$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8383 X"$0" : 'X\(//\)$' \| \
8384 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8385echo X/"$0" |
8386 sed '/^.*\/\([^/][^/]*\)\/*$/{
8387 s//\1/
8388 q
8389 }
8390 /^X\/\(\/\/\)$/{
8391 s//\1/
8392 q
8393 }
8394 /^X\/\(\/\).*/{
8395 s//\1/
8396 q
8397 }
8398 s/.*/./; q'`
8399
8400# CDPATH.
8401$as_unset CDPATH
8402
8403
8404
8405 as_lineno_1=$LINENO
8406 as_lineno_2=$LINENO
8407 test "x$as_lineno_1" != "x$as_lineno_2" &&
8408 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8409
8410 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8411 # uniformly replaced by the line number. The first 'sed' inserts a
8412 # line-number line after each line using $LINENO; the second 'sed'
8413 # does the real work. The second script uses 'N' to pair each
8414 # line-number line with the line containing $LINENO, and appends
8415 # trailing '-' during substitution so that $LINENO is not a special
8416 # case at line end.
8417 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8418 # scripts with optimization help from Paolo Bonzini. Blame Lee
8419 # E. McMahon (1931-1989) for sed's syntax. :-)
8420 sed -n '
8421 p
8422 /[$]LINENO/=
8423 ' <$as_myself |
8424 sed '
8425 s/[$]LINENO.*/&-/
8426 t lineno
8427 b
8428 :lineno
8429 N
8430 :loop
8431 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8432 t loop
8433 s/-\n.*//
8434 ' >$as_me.lineno &&
8435 chmod +x "$as_me.lineno" ||
8436 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8437 { (exit 1); exit 1; }; }
8438
8439 # Don't try to exec as it changes $[0], causing all sort of problems
8440 # (the dirname of $[0] is not the place where we might find the
8441 # original and so on. Autoconf is especially sensitive to this).
8442 . "./$as_me.lineno"
8443 # Exit status is that of the last command.
8444 exit
8445}
8446
8447
8448if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8449 as_dirname=dirname
8450else
8451 as_dirname=false
8452fi
8453
8454ECHO_C= ECHO_N= ECHO_T=
8455case `echo -n x` in
8456-n*)
8457 case `echo 'x\c'` in
8458 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8459 *) ECHO_C='\c';;
8460 esac;;
8461*)
8462 ECHO_N='-n';;
8463esac
8464
8465if expr a : '\(a\)' >/dev/null 2>&1 &&
8466 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8467 as_expr=expr
8468else
8469 as_expr=false
8470fi
8471
8472rm -f conf$$ conf$$.exe conf$$.file
8473if test -d conf$$.dir; then
8474 rm -f conf$$.dir/conf$$.file
8475else
8476 rm -f conf$$.dir
8477 mkdir conf$$.dir
8478fi
8479echo >conf$$.file
8480if ln -s conf$$.file conf$$ 2>/dev/null; then
8481 as_ln_s='ln -s'
8482 # ... but there are two gotchas:
8483 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8484 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8485 # In both cases, we have to default to `cp -p'.
8486 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8487 as_ln_s='cp -p'
8488elif ln conf$$.file conf$$ 2>/dev/null; then
8489 as_ln_s=ln
8490else
8491 as_ln_s='cp -p'
8492fi
8493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8494rmdir conf$$.dir 2>/dev/null
8495
8496if mkdir -p . 2>/dev/null; then
8497 as_mkdir_p=:
8498else
8499 test -d ./-p && rmdir ./-p
8500 as_mkdir_p=false
8501fi
8502
8503if test -x / >/dev/null 2>&1; then
8504 as_test_x='test -x'
8505else
8506 if ls -dL / >/dev/null 2>&1; then
8507 as_ls_L_option=L
8508 else
8509 as_ls_L_option=
8510 fi
8511 as_test_x='
8512 eval sh -c '\''
8513 if test -d "$1"; then
8514 test -d "$1/.";
8515 else
8516 case $1 in
8517 -*)set "./$1";;
8518 esac;
8519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8520 ???[sx]*):;;*)false;;esac;fi
8521 '\'' sh
8522 '
8523fi
8524as_executable_p=$as_test_x
8525
8526# Sed expression to map a string onto a valid CPP name.
8527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8528
8529# Sed expression to map a string onto a valid variable name.
8530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8531
8532
8533exec 6>&1
8534
8535# Save the log message, to keep $[0] and so on meaningful, and to
8536# report actual input values of CONFIG_FILES etc. instead of their
8537# values after options handling.
8538ac_log="
8539This file was extended by $as_me, which was
8540generated by GNU Autoconf 2.61. Invocation command line was
8541
8542 CONFIG_FILES = $CONFIG_FILES
8543 CONFIG_HEADERS = $CONFIG_HEADERS
8544 CONFIG_LINKS = $CONFIG_LINKS
8545 CONFIG_COMMANDS = $CONFIG_COMMANDS
8546 $ $0 $@
8547
8548on `(hostname || uname -n) 2>/dev/null | sed 1q`
8549"
8550
8551_ACEOF
8552
8553cat >>$CONFIG_STATUS <<_ACEOF
8554# Files that config.status was made for.
8555config_files="$ac_config_files"
8556config_headers="$ac_config_headers"
8557config_commands="$ac_config_commands"
8558
8559_ACEOF
8560
8561cat >>$CONFIG_STATUS <<\_ACEOF
8562ac_cs_usage="\
8563\`$as_me' instantiates files from templates according to the
8564current configuration.
8565
8566Usage: $0 [OPTIONS] [FILE]...
8567
8568 -h, --help print this help, then exit
8569 -V, --version print version number and configuration settings, then exit
8570 -q, --quiet do not print progress messages
8571 -d, --debug don't remove temporary files
8572 --recheck update $as_me by reconfiguring in the same conditions
8573 --file=FILE[:TEMPLATE]
8574 instantiate the configuration file FILE
8575 --header=FILE[:TEMPLATE]
8576 instantiate the configuration header FILE
8577
8578Configuration files:
8579$config_files
8580
8581Configuration headers:
8582$config_headers
8583
8584Configuration commands:
8585$config_commands
8586
8587Report bugs to <[email protected]>."
8588
8589_ACEOF
8590cat >>$CONFIG_STATUS <<_ACEOF
8591ac_cs_version="\\
8592config.status
8593configured by $0, generated by GNU Autoconf 2.61,
8594 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8595
8596Copyright (C) 2006 Free Software Foundation, Inc.
8597This config.status script is free software; the Free Software Foundation
8598gives unlimited permission to copy, distribute and modify it."
8599
8600ac_pwd='$ac_pwd'
8601srcdir='$srcdir'
8602INSTALL='$INSTALL'
8603_ACEOF
8604
8605cat >>$CONFIG_STATUS <<\_ACEOF
8606# If no file are specified by the user, then we need to provide default
8607# value. By we need to know if files were specified by the user.
8608ac_need_defaults=:
8609while test $# != 0
8610do
8611 case $1 in
8612 --*=*)
8613 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8614 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8615 ac_shift=:
8616 ;;
8617 *)
8618 ac_option=$1
8619 ac_optarg=$2
8620 ac_shift=shift
8621 ;;
8622 esac
8623
8624 case $ac_option in
8625 # Handling of the options.
8626 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8627 ac_cs_recheck=: ;;
8628 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8629 echo "$ac_cs_version"; exit ;;
8630 --debug | --debu | --deb | --de | --d | -d )
8631 debug=: ;;
8632 --file | --fil | --fi | --f )
8633 $ac_shift
8634 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8635 ac_need_defaults=false;;
8636 --header | --heade | --head | --hea )
8637 $ac_shift
8638 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8639 ac_need_defaults=false;;
8640 --he | --h)
8641 # Conflict between --help and --header
8642 { echo "$as_me: error: ambiguous option: $1
8643Try \`$0 --help' for more information." >&2
8644 { (exit 1); exit 1; }; };;
8645 --help | --hel | -h )
8646 echo "$ac_cs_usage"; exit ;;
8647 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8648 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8649 ac_cs_silent=: ;;
8650
8651 # This is an error.
8652 -*) { echo "$as_me: error: unrecognized option: $1
8653Try \`$0 --help' for more information." >&2
8654 { (exit 1); exit 1; }; } ;;
8655
8656 *) ac_config_targets="$ac_config_targets $1"
8657 ac_need_defaults=false ;;
8658
8659 esac
8660 shift
8661done
8662
8663ac_configure_extra_args=
8664
8665if $ac_cs_silent; then
8666 exec 6>/dev/null
8667 ac_configure_extra_args="$ac_configure_extra_args --silent"
8668fi
8669
8670_ACEOF
8671cat >>$CONFIG_STATUS <<_ACEOF
8672if \$ac_cs_recheck; then
8673 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8674 CONFIG_SHELL=$SHELL
8675 export CONFIG_SHELL
8676 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8677fi
8678
8679_ACEOF
8680cat >>$CONFIG_STATUS <<\_ACEOF
8681exec 5>>config.log
8682{
8683 echo
8684 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8685## Running $as_me. ##
8686_ASBOX
8687 echo "$ac_log"
8688} >&5
8689
8690_ACEOF
8691cat >>$CONFIG_STATUS <<_ACEOF
8692_ACEOF
8693
8694cat >>$CONFIG_STATUS <<\_ACEOF
8695
8696# Handling of arguments.
8697for ac_config_target in $ac_config_targets
8698do
8699 case $ac_config_target in
8700 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8701 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8702 "text/Makefile") CONFIG_FILES="$CONFIG_FILES text/Makefile" ;;
8703 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
8704 "jni/Makefile") CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
8705 "java/org/greenstone/mgpp/Makefile") CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mgpp/Makefile" ;;
8706 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8707
8708 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8709echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8710 { (exit 1); exit 1; }; };;
8711 esac
8712done
8713
8714
8715# If the user did not use the arguments to specify the items to instantiate,
8716# then the envvar interface is used. Set only those that are not.
8717# We use the long form for the default assignment because of an extremely
8718# bizarre bug on SunOS 4.1.3.
8719if $ac_need_defaults; then
8720 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8721 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8722 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8723fi
8724
8725# Have a temporary directory for convenience. Make it in the build tree
8726# simply because there is no reason against having it here, and in addition,
8727# creating and moving files from /tmp can sometimes cause problems.
8728# Hook for its removal unless debugging.
8729# Note that there is a small window in which the directory will not be cleaned:
8730# after its creation but before its name has been assigned to `$tmp'.
8731$debug ||
8732{
8733 tmp=
8734 trap 'exit_status=$?
8735 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8736' 0
8737 trap '{ (exit 1); exit 1; }' 1 2 13 15
8738}
8739# Create a (secure) tmp directory for tmp files.
8740
8741{
8742 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8743 test -n "$tmp" && test -d "$tmp"
8744} ||
8745{
8746 tmp=./conf$$-$RANDOM
8747 (umask 077 && mkdir "$tmp")
8748} ||
8749{
8750 echo "$me: cannot create a temporary directory in ." >&2
8751 { (exit 1); exit 1; }
8752}
8753
8754#
8755# Set up the sed scripts for CONFIG_FILES section.
8756#
8757
8758# No need to generate the scripts if there are no CONFIG_FILES.
8759# This happens for instance when ./config.status config.h
8760if test -n "$CONFIG_FILES"; then
8761
8762_ACEOF
8763
8764
8765
8766ac_delim='%!_!# '
8767for ac_last_try in false false false false false :; do
8768 cat >conf$$subs.sed <<_ACEOF
8769SHELL!$SHELL$ac_delim
8770PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8771PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8772PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8773PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8774PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8775PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8776exec_prefix!$exec_prefix$ac_delim
8777prefix!$prefix$ac_delim
8778program_transform_name!$program_transform_name$ac_delim
8779bindir!$bindir$ac_delim
8780sbindir!$sbindir$ac_delim
8781libexecdir!$libexecdir$ac_delim
8782datarootdir!$datarootdir$ac_delim
8783datadir!$datadir$ac_delim
8784sysconfdir!$sysconfdir$ac_delim
8785sharedstatedir!$sharedstatedir$ac_delim
8786localstatedir!$localstatedir$ac_delim
8787includedir!$includedir$ac_delim
8788oldincludedir!$oldincludedir$ac_delim
8789docdir!$docdir$ac_delim
8790infodir!$infodir$ac_delim
8791htmldir!$htmldir$ac_delim
8792dvidir!$dvidir$ac_delim
8793pdfdir!$pdfdir$ac_delim
8794psdir!$psdir$ac_delim
8795libdir!$libdir$ac_delim
8796localedir!$localedir$ac_delim
8797mandir!$mandir$ac_delim
8798DEFS!$DEFS$ac_delim
8799ECHO_C!$ECHO_C$ac_delim
8800ECHO_N!$ECHO_N$ac_delim
8801ECHO_T!$ECHO_T$ac_delim
8802LIBS!$LIBS$ac_delim
8803build_alias!$build_alias$ac_delim
8804host_alias!$host_alias$ac_delim
8805target_alias!$target_alias$ac_delim
8806build!$build$ac_delim
8807build_cpu!$build_cpu$ac_delim
8808build_vendor!$build_vendor$ac_delim
8809build_os!$build_os$ac_delim
8810host!$host$ac_delim
8811host_cpu!$host_cpu$ac_delim
8812host_vendor!$host_vendor$ac_delim
8813host_os!$host_os$ac_delim
8814target!$target$ac_delim
8815target_cpu!$target_cpu$ac_delim
8816target_vendor!$target_vendor$ac_delim
8817target_os!$target_os$ac_delim
8818PACKAGE!$PACKAGE$ac_delim
8819VERSION!$VERSION$ac_delim
8820COMPAT32BITFLAGS!$COMPAT32BITFLAGS$ac_delim
8821ENABLE_ACCENTFOLD!$ENABLE_ACCENTFOLD$ac_delim
8822CXX!$CXX$ac_delim
8823CXXFLAGS!$CXXFLAGS$ac_delim
8824LDFLAGS!$LDFLAGS$ac_delim
8825CPPFLAGS!$CPPFLAGS$ac_delim
8826ac_ct_CXX!$ac_ct_CXX$ac_delim
8827EXEEXT!$EXEEXT$ac_delim
8828OBJEXT!$OBJEXT$ac_delim
8829AWK!$AWK$ac_delim
8830YACC!$YACC$ac_delim
8831YFLAGS!$YFLAGS$ac_delim
8832CC!$CC$ac_delim
8833CFLAGS!$CFLAGS$ac_delim
8834ac_ct_CC!$ac_ct_CC$ac_delim
8835INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8836INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8837INSTALL_DATA!$INSTALL_DATA$ac_delim
8838LN_S!$LN_S$ac_delim
8839SET_MAKE!$SET_MAKE$ac_delim
8840RANLIB!$RANLIB$ac_delim
8841CPP!$CPP$ac_delim
8842GREP!$GREP$ac_delim
8843EGREP!$EGREP$ac_delim
8844U!$U$ac_delim
8845ANSI2KNR!$ANSI2KNR$ac_delim
8846UNAC_DIR!$UNAC_DIR$ac_delim
8847ALLOCA!$ALLOCA$ac_delim
8848LIBOBJS!$LIBOBJS$ac_delim
8849JNIINC!$JNIINC$ac_delim
8850JNISUFFIX!$JNISUFFIX$ac_delim
8851JNIFLAGS!$JNIFLAGS$ac_delim
8852LTLIBOBJS!$LTLIBOBJS$ac_delim
8853_ACEOF
8854
8855 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
8856 break
8857 elif $ac_last_try; then
8858 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8859echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8860 { (exit 1); exit 1; }; }
8861 else
8862 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8863 fi
8864done
8865
8866ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8867if test -n "$ac_eof"; then
8868 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8869 ac_eof=`expr $ac_eof + 1`
8870fi
8871
8872cat >>$CONFIG_STATUS <<_ACEOF
8873cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8874/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8875_ACEOF
8876sed '
8877s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8878s/^/s,@/; s/!/@,|#_!!_#|/
8879:n
8880t n
8881s/'"$ac_delim"'$/,g/; t
8882s/$/\\/; p
8883N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8884' >>$CONFIG_STATUS <conf$$subs.sed
8885rm -f conf$$subs.sed
8886cat >>$CONFIG_STATUS <<_ACEOF
8887:end
8888s/|#_!!_#|//g
8889CEOF$ac_eof
8890_ACEOF
8891
8892
8893# VPATH may cause trouble with some makes, so we remove $(srcdir),
8894# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8895# trailing colons and then remove the whole line if VPATH becomes empty
8896# (actually we leave an empty line to preserve line numbers).
8897if test "x$srcdir" = x.; then
8898 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8899s/:*\$(srcdir):*/:/
8900s/:*\${srcdir}:*/:/
8901s/:*@srcdir@:*/:/
8902s/^\([^=]*=[ ]*\):*/\1/
8903s/:*$//
8904s/^[^=]*=[ ]*$//
8905}'
8906fi
8907
8908cat >>$CONFIG_STATUS <<\_ACEOF
8909fi # test -n "$CONFIG_FILES"
8910
8911
8912for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
8913do
8914 case $ac_tag in
8915 :[FHLC]) ac_mode=$ac_tag; continue;;
8916 esac
8917 case $ac_mode$ac_tag in
8918 :[FHL]*:*);;
8919 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8920echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8921 { (exit 1); exit 1; }; };;
8922 :[FH]-) ac_tag=-:-;;
8923 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8924 esac
8925 ac_save_IFS=$IFS
8926 IFS=:
8927 set x $ac_tag
8928 IFS=$ac_save_IFS
8929 shift
8930 ac_file=$1
8931 shift
8932
8933 case $ac_mode in
8934 :L) ac_source=$1;;
8935 :[FH])
8936 ac_file_inputs=
8937 for ac_f
8938 do
8939 case $ac_f in
8940 -) ac_f="$tmp/stdin";;
8941 *) # Look for the file first in the build tree, then in the source tree
8942 # (if the path is not absolute). The absolute path cannot be DOS-style,
8943 # because $ac_f cannot contain `:'.
8944 test -f "$ac_f" ||
8945 case $ac_f in
8946 [\\/$]*) false;;
8947 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8948 esac ||
8949 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8950echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8951 { (exit 1); exit 1; }; };;
8952 esac
8953 ac_file_inputs="$ac_file_inputs $ac_f"
8954 done
8955
8956 # Let's still pretend it is `configure' which instantiates (i.e., don't
8957 # use $as_me), people would be surprised to read:
8958 # /* config.h. Generated by config.status. */
8959 configure_input="Generated from "`IFS=:
8960 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8961 if test x"$ac_file" != x-; then
8962 configure_input="$ac_file. $configure_input"
8963 { echo "$as_me:$LINENO: creating $ac_file" >&5
8964echo "$as_me: creating $ac_file" >&6;}
8965 fi
8966
8967 case $ac_tag in
8968 *:-:* | *:-) cat >"$tmp/stdin";;
8969 esac
8970 ;;
8971 esac
8972
8973 ac_dir=`$as_dirname -- "$ac_file" ||
8974$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8975 X"$ac_file" : 'X\(//\)[^/]' \| \
8976 X"$ac_file" : 'X\(//\)$' \| \
8977 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8978echo X"$ac_file" |
8979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8980 s//\1/
8981 q
8982 }
8983 /^X\(\/\/\)[^/].*/{
8984 s//\1/
8985 q
8986 }
8987 /^X\(\/\/\)$/{
8988 s//\1/
8989 q
8990 }
8991 /^X\(\/\).*/{
8992 s//\1/
8993 q
8994 }
8995 s/.*/./; q'`
8996 { as_dir="$ac_dir"
8997 case $as_dir in #(
8998 -*) as_dir=./$as_dir;;
8999 esac
9000 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9001 as_dirs=
9002 while :; do
9003 case $as_dir in #(
9004 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9005 *) as_qdir=$as_dir;;
9006 esac
9007 as_dirs="'$as_qdir' $as_dirs"
9008 as_dir=`$as_dirname -- "$as_dir" ||
9009$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9010 X"$as_dir" : 'X\(//\)[^/]' \| \
9011 X"$as_dir" : 'X\(//\)$' \| \
9012 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9013echo X"$as_dir" |
9014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9015 s//\1/
9016 q
9017 }
9018 /^X\(\/\/\)[^/].*/{
9019 s//\1/
9020 q
9021 }
9022 /^X\(\/\/\)$/{
9023 s//\1/
9024 q
9025 }
9026 /^X\(\/\).*/{
9027 s//\1/
9028 q
9029 }
9030 s/.*/./; q'`
9031 test -d "$as_dir" && break
9032 done
9033 test -z "$as_dirs" || eval "mkdir $as_dirs"
9034 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9035echo "$as_me: error: cannot create directory $as_dir" >&2;}
9036 { (exit 1); exit 1; }; }; }
9037 ac_builddir=.
9038
9039case "$ac_dir" in
9040.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9041*)
9042 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9043 # A ".." for each directory in $ac_dir_suffix.
9044 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9045 case $ac_top_builddir_sub in
9046 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9047 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9048 esac ;;
9049esac
9050ac_abs_top_builddir=$ac_pwd
9051ac_abs_builddir=$ac_pwd$ac_dir_suffix
9052# for backward compatibility:
9053ac_top_builddir=$ac_top_build_prefix
9054
9055case $srcdir in
9056 .) # We are building in place.
9057 ac_srcdir=.
9058 ac_top_srcdir=$ac_top_builddir_sub
9059 ac_abs_top_srcdir=$ac_pwd ;;
9060 [\\/]* | ?:[\\/]* ) # Absolute name.
9061 ac_srcdir=$srcdir$ac_dir_suffix;
9062 ac_top_srcdir=$srcdir
9063 ac_abs_top_srcdir=$srcdir ;;
9064 *) # Relative name.
9065 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9066 ac_top_srcdir=$ac_top_build_prefix$srcdir
9067 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9068esac
9069ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9070
9071
9072 case $ac_mode in
9073 :F)
9074 #
9075 # CONFIG_FILE
9076 #
9077
9078 case $INSTALL in
9079 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9080 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9081 esac
9082_ACEOF
9083
9084cat >>$CONFIG_STATUS <<\_ACEOF
9085# If the template does not know about datarootdir, expand it.
9086# FIXME: This hack should be removed a few years after 2.60.
9087ac_datarootdir_hack=; ac_datarootdir_seen=
9088
9089case `sed -n '/datarootdir/ {
9090 p
9091 q
9092}
9093/@datadir@/p
9094/@docdir@/p
9095/@infodir@/p
9096/@localedir@/p
9097/@mandir@/p
9098' $ac_file_inputs` in
9099*datarootdir*) ac_datarootdir_seen=yes;;
9100*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9101 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9102echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9103_ACEOF
9104cat >>$CONFIG_STATUS <<_ACEOF
9105 ac_datarootdir_hack='
9106 s&@datadir@&$datadir&g
9107 s&@docdir@&$docdir&g
9108 s&@infodir@&$infodir&g
9109 s&@localedir@&$localedir&g
9110 s&@mandir@&$mandir&g
9111 s&\\\${datarootdir}&$datarootdir&g' ;;
9112esac
9113_ACEOF
9114
9115# Neutralize VPATH when `$srcdir' = `.'.
9116# Shell code in configure.ac might set extrasub.
9117# FIXME: do we really want to maintain this feature?
9118cat >>$CONFIG_STATUS <<_ACEOF
9119 sed "$ac_vpsub
9120$extrasub
9121_ACEOF
9122cat >>$CONFIG_STATUS <<\_ACEOF
9123:t
9124/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9125s&@configure_input@&$configure_input&;t t
9126s&@top_builddir@&$ac_top_builddir_sub&;t t
9127s&@srcdir@&$ac_srcdir&;t t
9128s&@abs_srcdir@&$ac_abs_srcdir&;t t
9129s&@top_srcdir@&$ac_top_srcdir&;t t
9130s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9131s&@builddir@&$ac_builddir&;t t
9132s&@abs_builddir@&$ac_abs_builddir&;t t
9133s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9134s&@INSTALL@&$ac_INSTALL&;t t
9135$ac_datarootdir_hack
9136" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
9137
9138test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9139 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9140 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9141 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9142which seems to be undefined. Please make sure it is defined." >&5
9143echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9144which seems to be undefined. Please make sure it is defined." >&2;}
9145
9146 rm -f "$tmp/stdin"
9147 case $ac_file in
9148 -) cat "$tmp/out"; rm -f "$tmp/out";;
9149 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9150 esac
9151 ;;
9152 :H)
9153 #
9154 # CONFIG_HEADER
9155 #
9156_ACEOF
9157
9158# Transform confdefs.h into a sed script `conftest.defines', that
9159# substitutes the proper values into config.h.in to produce config.h.
9160rm -f conftest.defines conftest.tail
9161# First, append a space to every undef/define line, to ease matching.
9162echo 's/$/ /' >conftest.defines
9163# Then, protect against being on the right side of a sed subst, or in
9164# an unquoted here document, in config.status. If some macros were
9165# called several times there might be several #defines for the same
9166# symbol, which is useless. But do not sort them, since the last
9167# AC_DEFINE must be honored.
9168ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9169# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9170# NAME is the cpp macro being defined, VALUE is the value it is being given.
9171# PARAMS is the parameter list in the macro definition--in most cases, it's
9172# just an empty string.
9173ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9174ac_dB='\\)[ (].*,\\1define\\2'
9175ac_dC=' '
9176ac_dD=' ,'
9177
9178uniq confdefs.h |
9179 sed -n '
9180 t rset
9181 :rset
9182 s/^[ ]*#[ ]*define[ ][ ]*//
9183 t ok
9184 d
9185 :ok
9186 s/[\\&,]/\\&/g
9187 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9188 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9189 ' >>conftest.defines
9190
9191# Remove the space that was appended to ease matching.
9192# Then replace #undef with comments. This is necessary, for
9193# example, in the case of _POSIX_SOURCE, which is predefined and required
9194# on some systems where configure will not decide to define it.
9195# (The regexp can be short, since the line contains either #define or #undef.)
9196echo 's/ $//
9197s,^[ #]*u.*,/* & */,' >>conftest.defines
9198
9199# Break up conftest.defines:
9200ac_max_sed_lines=50
9201
9202# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9203# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9204# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9205# et cetera.
9206ac_in='$ac_file_inputs'
9207ac_out='"$tmp/out1"'
9208ac_nxt='"$tmp/out2"'
9209
9210while :
9211do
9212 # Write a here document:
9213 cat >>$CONFIG_STATUS <<_ACEOF
9214 # First, check the format of the line:
9215 cat >"\$tmp/defines.sed" <<\\CEOF
9216/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9217/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9218b
9219:def
9220_ACEOF
9221 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9222 echo 'CEOF
9223 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9224 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9225 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9226 grep . conftest.tail >/dev/null || break
9227 rm -f conftest.defines
9228 mv conftest.tail conftest.defines
9229done
9230rm -f conftest.defines conftest.tail
9231
9232echo "ac_result=$ac_in" >>$CONFIG_STATUS
9233cat >>$CONFIG_STATUS <<\_ACEOF
9234 if test x"$ac_file" != x-; then
9235 echo "/* $configure_input */" >"$tmp/config.h"
9236 cat "$ac_result" >>"$tmp/config.h"
9237 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9238 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9239echo "$as_me: $ac_file is unchanged" >&6;}
9240 else
9241 rm -f $ac_file
9242 mv "$tmp/config.h" $ac_file
9243 fi
9244 else
9245 echo "/* $configure_input */"
9246 cat "$ac_result"
9247 fi
9248 rm -f "$tmp/out12"
9249 ;;
9250
9251 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
9252echo "$as_me: executing $ac_file commands" >&6;}
9253 ;;
9254 esac
9255
9256
9257 case $ac_file$ac_mode in
9258 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
9259
9260 esac
9261done # for ac_tag
9262
9263
9264{ (exit 0); exit 0; }
9265_ACEOF
9266chmod +x $CONFIG_STATUS
9267ac_clean_files=$ac_clean_files_save
9268
9269
9270# configure is writing to config.log, and then calls config.status.
9271# config.status does its own redirection, appending to config.log.
9272# Unfortunately, on DOS this fails, as config.log is still kept open
9273# by configure, so config.status won't be able to write to it; its
9274# output is simply discarded. So we exec the FD to /dev/null,
9275# effectively closing config.log, so it can be properly (re)opened and
9276# appended to by config.status. When coming back to configure, we
9277# need to make the FD available again.
9278if test "$no_create" != yes; then
9279 ac_cs_success=:
9280 ac_config_status_args=
9281 test "$silent" = yes &&
9282 ac_config_status_args="$ac_config_status_args --quiet"
9283 exec 5>/dev/null
9284 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9285 exec 5>>config.log
9286 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9287 # would make configure fail if this is the last instruction.
9288 $ac_cs_success || { (exit 1); exit 1; }
9289fi
9290
Note: See TracBrowser for help on using the repository browser.