source: gsdl/trunk/common-src/configure@ 20846

Last change on this file since 20846 was 20846, checked in by oranfry, 13 years ago

removing another check for iconv causing problems

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