source: main/branches/64_bit_Greenstone/greenstone2/common-src/configure@ 23508

Last change on this file since 23508 was 23508, checked in by sjm84, 14 years ago

Committing 64 bit changes into the branch

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