source: gsdl/trunk/configure@ 20842

Last change on this file since 20842 was 20842, checked in by oranfry, 14 years ago

took out the dependency check for iconv as it is bundled, and the 'check' it is causing problems

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