source: main/trunk/greenstone2/common-src/configure

Last change on this file was 35577, checked in by davidb, 3 years ago

No longer want JAVACFLAGS set to default vals if not already set

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