source: main/trunk/greenstone3/src/packages/javagdbm/configure@ 34522

Last change on this file since 34522 was 34522, checked in by ak19, 3 years ago

Reinstating the crucial change that Dr Bainbridge had introduced into the configure file in commit 30751 (prior to redoing autoconf 33928) that allowed compilation on Mac to proceed because the JNICLAGS could be preserved due to the change. See envi/etc/tasks's snapshots/environment.pl for Macs, where JNIFLAGS need to be set along with and are stated to work in tandem with http://trac.greenstone.org/changeset/30751 for compiling jni on ElCapitan to succeed

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 147.3 KB
Line 
1#! /bin/sh
2# From configure.in Revision: 26707 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.69.
5#
6#
7# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
8#
9#
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## -------------------- ##
13## M4sh Initialization. ##
14## -------------------- ##
15
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25else
26 case `(set -o) 2>/dev/null` in #(
27 *posix*) :
28 set -o posix ;; #(
29 *) :
30 ;;
31esac
32fi
33
34
35as_nl='
36'
37export as_nl
38# Printing a long string crashes Solaris 7 /usr/bin/printf.
39as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42# Prefer a ksh shell builtin over an external printf program on Solaris,
43# but without wasting forks for bash or zsh.
44if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71fi
72
73# The user is always right.
74if test "${PATH_SEPARATOR+set}" != set; then
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
80fi
81
82
83# IFS
84# We need space, tab and new line, in precisely that order. Quoting is
85# there to prevent editors from complaining about space-tab.
86# (If _AS_PATH_WALK were called with IFS unset, it would disable word
87# splitting by setting IFS to empty value.)
88IFS=" "" $as_nl"
89
90# Find who we are. Look in the path if we contain no directory separator.
91as_myself=
92case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101IFS=$as_save_IFS
102
103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136# Use a proper internal environment variable to ensure we don't fall
137 # into an infinite loop, continuously re-executing ourselves.
138 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139 _as_can_reexec=no; export _as_can_reexec;
140 # We cannot yet assume a decent shell, so we have to provide a
141# neutralization value for shells without unset; and this also
142# works around shells that cannot unset nonexistent variables.
143# Preserve -v and -x to the replacement shell.
144BASH_ENV=/dev/null
145ENV=/dev/null
146(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147case $- in # ((((
148 *v*x* | *x*v* ) as_opts=-vx ;;
149 *v* ) as_opts=-v ;;
150 *x* ) as_opts=-x ;;
151 * ) as_opts= ;;
152esac
153exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154# Admittedly, this is quite paranoid, since all the known shells bail
155# out after a failed `exec'.
156$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157as_fn_exit 255
158 fi
159 # We don't want this to propagate to other subprocesses.
160 { _as_can_reexec=; unset _as_can_reexec;}
161if test "x$CONFIG_SHELL" = x; then
162 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
163 emulate sh
164 NULLCMD=:
165 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166 # is contrary to our usage. Disable this feature.
167 alias -g '\${1+\"\$@\"}'='\"\$@\"'
168 setopt NO_GLOB_SUBST
169else
170 case \`(set -o) 2>/dev/null\` in #(
171 *posix*) :
172 set -o posix ;; #(
173 *) :
174 ;;
175esac
176fi
177"
178 as_required="as_fn_return () { (exit \$1); }
179as_fn_success () { as_fn_return 0; }
180as_fn_failure () { as_fn_return 1; }
181as_fn_ret_success () { return 0; }
182as_fn_ret_failure () { return 1; }
183
184exitcode=0
185as_fn_success || { exitcode=1; echo as_fn_success failed.; }
186as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190
191else
192 exitcode=1; echo positional parameters were not saved.
193fi
194test x\$exitcode = x0 || exit 1
195test -x / || exit 1"
196 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
197 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
198 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200test \$(( 1 + 1 )) = 2 || exit 1"
201 if (eval "$as_required") 2>/dev/null; then :
202 as_have_required=yes
203else
204 as_have_required=no
205fi
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
208else
209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210as_found=false
211for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212do
213 IFS=$as_save_IFS
214 test -z "$as_dir" && as_dir=.
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir/$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 CONFIG_SHELL=$as_shell as_have_required=yes
224 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 break 2
226fi
227fi
228 done;;
229 esac
230 as_found=false
231done
232$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235fi; }
236IFS=$as_save_IFS
237
238
239 if test "x$CONFIG_SHELL" != x; then :
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242# neutralization value for shells without unset; and this also
243# works around shells that cannot unset nonexistent variables.
244# Preserve -v and -x to the replacement shell.
245BASH_ENV=/dev/null
246ENV=/dev/null
247(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253esac
254exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255# Admittedly, this is quite paranoid, since all the known shells bail
256# out after a failed `exec'.
257$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258exit 255
259fi
260
261 if test x$as_have_required = xno; then :
262 $as_echo "$0: This script requires a shell more modern than all"
263 $as_echo "$0: the shells that I found on your system."
264 if test x${ZSH_VERSION+set} = xset ; then
265 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 $as_echo "$0: Please tell [email protected] about your system,
269$0: including any error possibly output before this
270$0: message. Then install a modern shell, or manually run
271$0: the script under such a shell if you do have one."
272 fi
273 exit 1
274fi
275fi
276fi
277SHELL=${CONFIG_SHELL-/bin/sh}
278export SHELL
279# Unset more variables known to interfere with behavior of common tools.
280CLICOLOR_FORCE= GREP_OPTIONS=
281unset CLICOLOR_FORCE GREP_OPTIONS
282
283## --------------------- ##
284## M4sh Shell Functions. ##
285## --------------------- ##
286# as_fn_unset VAR
287# ---------------
288# Portably unset VAR.
289as_fn_unset ()
290{
291 { eval $1=; unset $1;}
292}
293as_unset=as_fn_unset
294
295# as_fn_set_status STATUS
296# -----------------------
297# Set $? to STATUS, without forking.
298as_fn_set_status ()
299{
300 return $1
301} # as_fn_set_status
302
303# as_fn_exit STATUS
304# -----------------
305# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
306as_fn_exit ()
307{
308 set +e
309 as_fn_set_status $1
310 exit $1
311} # as_fn_exit
312
313# as_fn_mkdir_p
314# -------------
315# Create "$as_dir" as a directory, including parents if necessary.
316as_fn_mkdir_p ()
317{
318
319 case $as_dir in #(
320 -*) as_dir=./$as_dir;;
321 esac
322 test -d "$as_dir" || eval $as_mkdir_p || {
323 as_dirs=
324 while :; do
325 case $as_dir in #(
326 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
327 *) as_qdir=$as_dir;;
328 esac
329 as_dirs="'$as_qdir' $as_dirs"
330 as_dir=`$as_dirname -- "$as_dir" ||
331$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
332 X"$as_dir" : 'X\(//\)[^/]' \| \
333 X"$as_dir" : 'X\(//\)$' \| \
334 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
335$as_echo X"$as_dir" |
336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
337 s//\1/
338 q
339 }
340 /^X\(\/\/\)[^/].*/{
341 s//\1/
342 q
343 }
344 /^X\(\/\/\)$/{
345 s//\1/
346 q
347 }
348 /^X\(\/\).*/{
349 s//\1/
350 q
351 }
352 s/.*/./; q'`
353 test -d "$as_dir" && break
354 done
355 test -z "$as_dirs" || eval "mkdir $as_dirs"
356 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
357
358
359} # as_fn_mkdir_p
360
361# as_fn_executable_p FILE
362# -----------------------
363# Test if FILE is an executable regular file.
364as_fn_executable_p ()
365{
366 test -f "$1" && test -x "$1"
367} # as_fn_executable_p
368# as_fn_append VAR VALUE
369# ----------------------
370# Append the text in VALUE to the end of the definition contained in VAR. Take
371# advantage of any shell optimizations that allow amortized linear growth over
372# repeated appends, instead of the typical quadratic growth present in naive
373# implementations.
374if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
375 eval 'as_fn_append ()
376 {
377 eval $1+=\$2
378 }'
379else
380 as_fn_append ()
381 {
382 eval $1=\$$1\$2
383 }
384fi # as_fn_append
385
386# as_fn_arith ARG...
387# ------------------
388# Perform arithmetic evaluation on the ARGs, and store the result in the
389# global $as_val. Take advantage of shells that can avoid forks. The arguments
390# must be portable across $(()) and expr.
391if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
392 eval 'as_fn_arith ()
393 {
394 as_val=$(( $* ))
395 }'
396else
397 as_fn_arith ()
398 {
399 as_val=`expr "$@" || test $? -eq 1`
400 }
401fi # as_fn_arith
402
403
404# as_fn_error STATUS ERROR [LINENO LOG_FD]
405# ----------------------------------------
406# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
407# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
408# script with STATUS, using 1 if that was 0.
409as_fn_error ()
410{
411 as_status=$1; test $as_status -eq 0 && as_status=1
412 if test "$4"; then
413 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
414 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 fi
416 $as_echo "$as_me: error: $2" >&2
417 as_fn_exit $as_status
418} # as_fn_error
419
420if expr a : '\(a\)' >/dev/null 2>&1 &&
421 test "X`expr 00001 : '.*\(...\)'`" = X001; then
422 as_expr=expr
423else
424 as_expr=false
425fi
426
427if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
428 as_basename=basename
429else
430 as_basename=false
431fi
432
433if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
434 as_dirname=dirname
435else
436 as_dirname=false
437fi
438
439as_me=`$as_basename -- "$0" ||
440$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
441 X"$0" : 'X\(//\)$' \| \
442 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443$as_echo X/"$0" |
444 sed '/^.*\/\([^/][^/]*\)\/*$/{
445 s//\1/
446 q
447 }
448 /^X\/\(\/\/\)$/{
449 s//\1/
450 q
451 }
452 /^X\/\(\/\).*/{
453 s//\1/
454 q
455 }
456 s/.*/./; q'`
457
458# Avoid depending upon Character Ranges.
459as_cr_letters='abcdefghijklmnopqrstuvwxyz'
460as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
461as_cr_Letters=$as_cr_letters$as_cr_LETTERS
462as_cr_digits='0123456789'
463as_cr_alnum=$as_cr_Letters$as_cr_digits
464
465
466 as_lineno_1=$LINENO as_lineno_1a=$LINENO
467 as_lineno_2=$LINENO as_lineno_2a=$LINENO
468 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
469 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
470 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
471 sed -n '
472 p
473 /[$]LINENO/=
474 ' <$as_myself |
475 sed '
476 s/[$]LINENO.*/&-/
477 t lineno
478 b
479 :lineno
480 N
481 :loop
482 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
483 t loop
484 s/-\n.*//
485 ' >$as_me.lineno &&
486 chmod +x "$as_me.lineno" ||
487 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488
489 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
490 # already done that, so ensure we don't try to do so again and fall
491 # in an infinite loop. This has already happened in practice.
492 _as_can_reexec=no; export _as_can_reexec
493 # Don't try to exec as it changes $[0], causing all sort of problems
494 # (the dirname of $[0] is not the place where we might find the
495 # original and so on. Autoconf is especially sensitive to this).
496 . "./$as_me.lineno"
497 # Exit status is that of the last command.
498 exit
499}
500
501ECHO_C= ECHO_N= ECHO_T=
502case `echo -n x` in #(((((
503-n*)
504 case `echo 'xy\c'` in
505 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 xy) ECHO_C='\c';;
507 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
508 ECHO_T=' ';;
509 esac;;
510*)
511 ECHO_N='-n';;
512esac
513
514rm -f conf$$ conf$$.exe conf$$.file
515if test -d conf$$.dir; then
516 rm -f conf$$.dir/conf$$.file
517else
518 rm -f conf$$.dir
519 mkdir conf$$.dir 2>/dev/null
520fi
521if (echo >conf$$.file) 2>/dev/null; then
522 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 as_ln_s='ln -s'
524 # ... but there are two gotchas:
525 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
526 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
527 # In both cases, we have to default to `cp -pR'.
528 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 as_ln_s='cp -pR'
530 elif ln conf$$.file conf$$ 2>/dev/null; then
531 as_ln_s=ln
532 else
533 as_ln_s='cp -pR'
534 fi
535else
536 as_ln_s='cp -pR'
537fi
538rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
539rmdir conf$$.dir 2>/dev/null
540
541if mkdir -p . 2>/dev/null; then
542 as_mkdir_p='mkdir -p "$as_dir"'
543else
544 test -d ./-p && rmdir ./-p
545 as_mkdir_p=false
546fi
547
548as_test_x='test -x'
549as_executable_p=as_fn_executable_p
550
551# Sed expression to map a string onto a valid CPP name.
552as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553
554# Sed expression to map a string onto a valid variable name.
555as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556
557
558test -n "$DJDIR" || exec 7<&0 </dev/null
559exec 6>&1
560
561# Name of the host.
562# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
563# so uname gets run too.
564ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
565
566#
567# Initializations.
568#
569ac_default_prefix=/usr/local
570ac_clean_files=
571ac_config_libobj_dir=.
572LIBOBJS=
573cross_compiling=no
574subdirs=
575MFLAGS=
576MAKEFLAGS=
577
578# Identity of this package.
579PACKAGE_NAME=
580PACKAGE_TARNAME=
581PACKAGE_VERSION=
582PACKAGE_STRING=
583PACKAGE_BUGREPORT=
584PACKAGE_URL=
585
586ac_unique_file="jni/gdbmjava.c"
587# Factoring default headers for most tests.
588ac_includes_default="\
589#include <stdio.h>
590#ifdef HAVE_SYS_TYPES_H
591# include <sys/types.h>
592#endif
593#ifdef HAVE_SYS_STAT_H
594# include <sys/stat.h>
595#endif
596#ifdef STDC_HEADERS
597# include <stdlib.h>
598# include <stddef.h>
599#else
600# ifdef HAVE_STDLIB_H
601# include <stdlib.h>
602# endif
603#endif
604#ifdef HAVE_STRING_H
605# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606# include <memory.h>
607# endif
608# include <string.h>
609#endif
610#ifdef HAVE_STRINGS_H
611# include <strings.h>
612#endif
613#ifdef HAVE_INTTYPES_H
614# include <inttypes.h>
615#endif
616#ifdef HAVE_STDINT_H
617# include <stdint.h>
618#endif
619#ifdef HAVE_UNISTD_H
620# include <unistd.h>
621#endif"
622
623ac_subst_vars='LTLIBOBJS
624LIBOBJS
625JNILDFLAGS
626JNICFLAGS
627JNISUFFIX
628JNIPREFIX
629JNIINC
630PKG
631GDBM_INCLUDE
632GDBM_LIBPATH
633JAVACFLAGS
634JAVAC
635EGREP
636GREP
637CPP
638ARCH_DEP_FLAGS
639LN_S
640INSTALL_DATA
641INSTALL_SCRIPT
642INSTALL_PROGRAM
643OBJEXT
644EXEEXT
645ac_ct_CC
646CPPFLAGS
647LDFLAGS
648CFLAGS
649CC
650target_os
651target_vendor
652target_cpu
653target
654host_os
655host_vendor
656host_cpu
657host
658build_os
659build_vendor
660build_cpu
661build
662target_alias
663host_alias
664build_alias
665LIBS
666ECHO_T
667ECHO_N
668ECHO_C
669DEFS
670mandir
671localedir
672libdir
673psdir
674pdfdir
675dvidir
676htmldir
677infodir
678docdir
679oldincludedir
680includedir
681runstatedir
682localstatedir
683sharedstatedir
684sysconfdir
685datadir
686datarootdir
687libexecdir
688sbindir
689bindir
690program_transform_name
691prefix
692exec_prefix
693PACKAGE_URL
694PACKAGE_BUGREPORT
695PACKAGE_STRING
696PACKAGE_VERSION
697PACKAGE_TARNAME
698PACKAGE_NAME
699PATH_SEPARATOR
700SHELL'
701ac_subst_files=''
702ac_user_opts='
703enable_option_checking
704with_gdbm
705'
706 ac_precious_vars='build_alias
707host_alias
708target_alias
709CC
710CFLAGS
711LDFLAGS
712LIBS
713CPPFLAGS
714CPP'
715
716
717# Initialize some variables set by options.
718ac_init_help=
719ac_init_version=false
720ac_unrecognized_opts=
721ac_unrecognized_sep=
722# The variables have the same names as the options, with
723# dashes changed to underlines.
724cache_file=/dev/null
725exec_prefix=NONE
726no_create=
727no_recursion=
728prefix=NONE
729program_prefix=NONE
730program_suffix=NONE
731program_transform_name=s,x,x,
732silent=
733site=
734srcdir=
735verbose=
736x_includes=NONE
737x_libraries=NONE
738
739# Installation directory options.
740# These are left unexpanded so users can "make install exec_prefix=/foo"
741# and all the variables that are supposed to be based on exec_prefix
742# by default will actually change.
743# Use braces instead of parens because sh, perl, etc. also accept them.
744# (The list follows the same order as the GNU Coding Standards.)
745bindir='${exec_prefix}/bin'
746sbindir='${exec_prefix}/sbin'
747libexecdir='${exec_prefix}/libexec'
748datarootdir='${prefix}/share'
749datadir='${datarootdir}'
750sysconfdir='${prefix}/etc'
751sharedstatedir='${prefix}/com'
752localstatedir='${prefix}/var'
753runstatedir='${localstatedir}/run'
754includedir='${prefix}/include'
755oldincludedir='/usr/include'
756docdir='${datarootdir}/doc/${PACKAGE}'
757infodir='${datarootdir}/info'
758htmldir='${docdir}'
759dvidir='${docdir}'
760pdfdir='${docdir}'
761psdir='${docdir}'
762libdir='${exec_prefix}/lib'
763localedir='${datarootdir}/locale'
764mandir='${datarootdir}/man'
765
766ac_prev=
767ac_dashdash=
768for ac_option
769do
770 # If the previous option needs an argument, assign it.
771 if test -n "$ac_prev"; then
772 eval $ac_prev=\$ac_option
773 ac_prev=
774 continue
775 fi
776
777 case $ac_option in
778 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
779 *=) ac_optarg= ;;
780 *) ac_optarg=yes ;;
781 esac
782
783 # Accept the important Cygnus configure options, so we can diagnose typos.
784
785 case $ac_dashdash$ac_option in
786 --)
787 ac_dashdash=yes ;;
788
789 -bindir | --bindir | --bindi | --bind | --bin | --bi)
790 ac_prev=bindir ;;
791 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
792 bindir=$ac_optarg ;;
793
794 -build | --build | --buil | --bui | --bu)
795 ac_prev=build_alias ;;
796 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
797 build_alias=$ac_optarg ;;
798
799 -cache-file | --cache-file | --cache-fil | --cache-fi \
800 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
801 ac_prev=cache_file ;;
802 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
803 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
804 cache_file=$ac_optarg ;;
805
806 --config-cache | -C)
807 cache_file=config.cache ;;
808
809 -datadir | --datadir | --datadi | --datad)
810 ac_prev=datadir ;;
811 -datadir=* | --datadir=* | --datadi=* | --datad=*)
812 datadir=$ac_optarg ;;
813
814 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
815 | --dataroo | --dataro | --datar)
816 ac_prev=datarootdir ;;
817 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
818 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
819 datarootdir=$ac_optarg ;;
820
821 -disable-* | --disable-*)
822 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
823 # Reject names that are not valid shell variable names.
824 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
825 as_fn_error $? "invalid feature name: $ac_useropt"
826 ac_useropt_orig=$ac_useropt
827 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
828 case $ac_user_opts in
829 *"
830"enable_$ac_useropt"
831"*) ;;
832 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
833 ac_unrecognized_sep=', ';;
834 esac
835 eval enable_$ac_useropt=no ;;
836
837 -docdir | --docdir | --docdi | --doc | --do)
838 ac_prev=docdir ;;
839 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
840 docdir=$ac_optarg ;;
841
842 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
843 ac_prev=dvidir ;;
844 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
845 dvidir=$ac_optarg ;;
846
847 -enable-* | --enable-*)
848 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
851 as_fn_error $? "invalid feature name: $ac_useropt"
852 ac_useropt_orig=$ac_useropt
853 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
854 case $ac_user_opts in
855 *"
856"enable_$ac_useropt"
857"*) ;;
858 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
859 ac_unrecognized_sep=', ';;
860 esac
861 eval enable_$ac_useropt=\$ac_optarg ;;
862
863 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
864 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
865 | --exec | --exe | --ex)
866 ac_prev=exec_prefix ;;
867 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
868 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
869 | --exec=* | --exe=* | --ex=*)
870 exec_prefix=$ac_optarg ;;
871
872 -gas | --gas | --ga | --g)
873 # Obsolete; use --with-gas.
874 with_gas=yes ;;
875
876 -help | --help | --hel | --he | -h)
877 ac_init_help=long ;;
878 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
879 ac_init_help=recursive ;;
880 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
881 ac_init_help=short ;;
882
883 -host | --host | --hos | --ho)
884 ac_prev=host_alias ;;
885 -host=* | --host=* | --hos=* | --ho=*)
886 host_alias=$ac_optarg ;;
887
888 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
889 ac_prev=htmldir ;;
890 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
891 | --ht=*)
892 htmldir=$ac_optarg ;;
893
894 -includedir | --includedir | --includedi | --included | --include \
895 | --includ | --inclu | --incl | --inc)
896 ac_prev=includedir ;;
897 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
898 | --includ=* | --inclu=* | --incl=* | --inc=*)
899 includedir=$ac_optarg ;;
900
901 -infodir | --infodir | --infodi | --infod | --info | --inf)
902 ac_prev=infodir ;;
903 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
904 infodir=$ac_optarg ;;
905
906 -libdir | --libdir | --libdi | --libd)
907 ac_prev=libdir ;;
908 -libdir=* | --libdir=* | --libdi=* | --libd=*)
909 libdir=$ac_optarg ;;
910
911 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
912 | --libexe | --libex | --libe)
913 ac_prev=libexecdir ;;
914 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
915 | --libexe=* | --libex=* | --libe=*)
916 libexecdir=$ac_optarg ;;
917
918 -localedir | --localedir | --localedi | --localed | --locale)
919 ac_prev=localedir ;;
920 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
921 localedir=$ac_optarg ;;
922
923 -localstatedir | --localstatedir | --localstatedi | --localstated \
924 | --localstate | --localstat | --localsta | --localst | --locals)
925 ac_prev=localstatedir ;;
926 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
927 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
928 localstatedir=$ac_optarg ;;
929
930 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
931 ac_prev=mandir ;;
932 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
933 mandir=$ac_optarg ;;
934
935 -nfp | --nfp | --nf)
936 # Obsolete; use --without-fp.
937 with_fp=no ;;
938
939 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
940 | --no-cr | --no-c | -n)
941 no_create=yes ;;
942
943 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
944 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
945 no_recursion=yes ;;
946
947 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
948 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
949 | --oldin | --oldi | --old | --ol | --o)
950 ac_prev=oldincludedir ;;
951 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
952 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
953 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
954 oldincludedir=$ac_optarg ;;
955
956 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
957 ac_prev=prefix ;;
958 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
959 prefix=$ac_optarg ;;
960
961 -program-prefix | --program-prefix | --program-prefi | --program-pref \
962 | --program-pre | --program-pr | --program-p)
963 ac_prev=program_prefix ;;
964 -program-prefix=* | --program-prefix=* | --program-prefi=* \
965 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
966 program_prefix=$ac_optarg ;;
967
968 -program-suffix | --program-suffix | --program-suffi | --program-suff \
969 | --program-suf | --program-su | --program-s)
970 ac_prev=program_suffix ;;
971 -program-suffix=* | --program-suffix=* | --program-suffi=* \
972 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
973 program_suffix=$ac_optarg ;;
974
975 -program-transform-name | --program-transform-name \
976 | --program-transform-nam | --program-transform-na \
977 | --program-transform-n | --program-transform- \
978 | --program-transform | --program-transfor \
979 | --program-transfo | --program-transf \
980 | --program-trans | --program-tran \
981 | --progr-tra | --program-tr | --program-t)
982 ac_prev=program_transform_name ;;
983 -program-transform-name=* | --program-transform-name=* \
984 | --program-transform-nam=* | --program-transform-na=* \
985 | --program-transform-n=* | --program-transform-=* \
986 | --program-transform=* | --program-transfor=* \
987 | --program-transfo=* | --program-transf=* \
988 | --program-trans=* | --program-tran=* \
989 | --progr-tra=* | --program-tr=* | --program-t=*)
990 program_transform_name=$ac_optarg ;;
991
992 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
993 ac_prev=pdfdir ;;
994 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
995 pdfdir=$ac_optarg ;;
996
997 -psdir | --psdir | --psdi | --psd | --ps)
998 ac_prev=psdir ;;
999 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1000 psdir=$ac_optarg ;;
1001
1002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1003 | -silent | --silent | --silen | --sile | --sil)
1004 silent=yes ;;
1005
1006 -runstatedir | --runstatedir | --runstatedi | --runstated \
1007 | --runstate | --runstat | --runsta | --runst | --runs \
1008 | --run | --ru | --r)
1009 ac_prev=runstatedir ;;
1010 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1011 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1012 | --run=* | --ru=* | --r=*)
1013 runstatedir=$ac_optarg ;;
1014
1015 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1016 ac_prev=sbindir ;;
1017 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1018 | --sbi=* | --sb=*)
1019 sbindir=$ac_optarg ;;
1020
1021 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1022 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1023 | --sharedst | --shareds | --shared | --share | --shar \
1024 | --sha | --sh)
1025 ac_prev=sharedstatedir ;;
1026 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1027 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1028 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1029 | --sha=* | --sh=*)
1030 sharedstatedir=$ac_optarg ;;
1031
1032 -site | --site | --sit)
1033 ac_prev=site ;;
1034 -site=* | --site=* | --sit=*)
1035 site=$ac_optarg ;;
1036
1037 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1038 ac_prev=srcdir ;;
1039 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1040 srcdir=$ac_optarg ;;
1041
1042 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1043 | --syscon | --sysco | --sysc | --sys | --sy)
1044 ac_prev=sysconfdir ;;
1045 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1046 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1047 sysconfdir=$ac_optarg ;;
1048
1049 -target | --target | --targe | --targ | --tar | --ta | --t)
1050 ac_prev=target_alias ;;
1051 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1052 target_alias=$ac_optarg ;;
1053
1054 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1055 verbose=yes ;;
1056
1057 -version | --version | --versio | --versi | --vers | -V)
1058 ac_init_version=: ;;
1059
1060 -with-* | --with-*)
1061 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064 as_fn_error $? "invalid package name: $ac_useropt"
1065 ac_useropt_orig=$ac_useropt
1066 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067 case $ac_user_opts in
1068 *"
1069"with_$ac_useropt"
1070"*) ;;
1071 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1072 ac_unrecognized_sep=', ';;
1073 esac
1074 eval with_$ac_useropt=\$ac_optarg ;;
1075
1076 -without-* | --without-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error $? "invalid package name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1084 *"
1085"with_$ac_useropt"
1086"*) ;;
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1089 esac
1090 eval with_$ac_useropt=no ;;
1091
1092 --x)
1093 # Obsolete; use --with-x.
1094 with_x=yes ;;
1095
1096 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1097 | --x-incl | --x-inc | --x-in | --x-i)
1098 ac_prev=x_includes ;;
1099 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1100 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1101 x_includes=$ac_optarg ;;
1102
1103 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1104 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1105 ac_prev=x_libraries ;;
1106 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1107 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1108 x_libraries=$ac_optarg ;;
1109
1110 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1111Try \`$0 --help' for more information"
1112 ;;
1113
1114 *=*)
1115 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1116 # Reject names that are not valid shell variable names.
1117 case $ac_envvar in #(
1118 '' | [0-9]* | *[!_$as_cr_alnum]* )
1119 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1120 esac
1121 eval $ac_envvar=\$ac_optarg
1122 export $ac_envvar ;;
1123
1124 *)
1125 # FIXME: should be removed in autoconf 3.0.
1126 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1127 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1128 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1129 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1130 ;;
1131
1132 esac
1133done
1134
1135if test -n "$ac_prev"; then
1136 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1137 as_fn_error $? "missing argument to $ac_option"
1138fi
1139
1140if test -n "$ac_unrecognized_opts"; then
1141 case $enable_option_checking in
1142 no) ;;
1143 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1144 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1145 esac
1146fi
1147
1148# Check all directory arguments for consistency.
1149for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1150 datadir sysconfdir sharedstatedir localstatedir includedir \
1151 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1152 libdir localedir mandir runstatedir
1153do
1154 eval ac_val=\$$ac_var
1155 # Remove trailing slashes.
1156 case $ac_val in
1157 */ )
1158 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1159 eval $ac_var=\$ac_val;;
1160 esac
1161 # Be sure to have absolute directory names.
1162 case $ac_val in
1163 [\\/$]* | ?:[\\/]* ) continue;;
1164 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1165 esac
1166 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1167done
1168
1169# There might be people who depend on the old broken behavior: `$host'
1170# used to hold the argument of --host etc.
1171# FIXME: To remove some day.
1172build=$build_alias
1173host=$host_alias
1174target=$target_alias
1175
1176# FIXME: To remove some day.
1177if test "x$host_alias" != x; then
1178 if test "x$build_alias" = x; then
1179 cross_compiling=maybe
1180 elif test "x$build_alias" != "x$host_alias"; then
1181 cross_compiling=yes
1182 fi
1183fi
1184
1185ac_tool_prefix=
1186test -n "$host_alias" && ac_tool_prefix=$host_alias-
1187
1188test "$silent" = yes && exec 6>/dev/null
1189
1190
1191ac_pwd=`pwd` && test -n "$ac_pwd" &&
1192ac_ls_di=`ls -di .` &&
1193ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1194 as_fn_error $? "working directory cannot be determined"
1195test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1196 as_fn_error $? "pwd does not report name of working directory"
1197
1198
1199# Find the source files, if location was not specified.
1200if test -z "$srcdir"; then
1201 ac_srcdir_defaulted=yes
1202 # Try the directory containing this script, then the parent directory.
1203 ac_confdir=`$as_dirname -- "$as_myself" ||
1204$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1205 X"$as_myself" : 'X\(//\)[^/]' \| \
1206 X"$as_myself" : 'X\(//\)$' \| \
1207 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1208$as_echo X"$as_myself" |
1209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1210 s//\1/
1211 q
1212 }
1213 /^X\(\/\/\)[^/].*/{
1214 s//\1/
1215 q
1216 }
1217 /^X\(\/\/\)$/{
1218 s//\1/
1219 q
1220 }
1221 /^X\(\/\).*/{
1222 s//\1/
1223 q
1224 }
1225 s/.*/./; q'`
1226 srcdir=$ac_confdir
1227 if test ! -r "$srcdir/$ac_unique_file"; then
1228 srcdir=..
1229 fi
1230else
1231 ac_srcdir_defaulted=no
1232fi
1233if test ! -r "$srcdir/$ac_unique_file"; then
1234 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1235 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1236fi
1237ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1238ac_abs_confdir=`(
1239 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1240 pwd)`
1241# When building in place, set srcdir=.
1242if test "$ac_abs_confdir" = "$ac_pwd"; then
1243 srcdir=.
1244fi
1245# Remove unnecessary trailing slashes from srcdir.
1246# Double slashes in file names in object file debugging info
1247# mess up M-x gdb in Emacs.
1248case $srcdir in
1249*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1250esac
1251for ac_var in $ac_precious_vars; do
1252 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1253 eval ac_env_${ac_var}_value=\$${ac_var}
1254 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1255 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1256done
1257
1258#
1259# Report the --help message.
1260#
1261if test "$ac_init_help" = "long"; then
1262 # Omit some internal or obsolete options to make the list less imposing.
1263 # This message is too long to be a string in the A/UX 3.1 sh.
1264 cat <<_ACEOF
1265\`configure' configures this package to adapt to many kinds of systems.
1266
1267Usage: $0 [OPTION]... [VAR=VALUE]...
1268
1269To assign environment variables (e.g., CC, CFLAGS...), specify them as
1270VAR=VALUE. See below for descriptions of some of the useful variables.
1271
1272Defaults for the options are specified in brackets.
1273
1274Configuration:
1275 -h, --help display this help and exit
1276 --help=short display options specific to this package
1277 --help=recursive display the short help of all the included packages
1278 -V, --version display version information and exit
1279 -q, --quiet, --silent do not print \`checking ...' messages
1280 --cache-file=FILE cache test results in FILE [disabled]
1281 -C, --config-cache alias for \`--cache-file=config.cache'
1282 -n, --no-create do not create output files
1283 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1284
1285Installation directories:
1286 --prefix=PREFIX install architecture-independent files in PREFIX
1287 [$ac_default_prefix]
1288 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1289 [PREFIX]
1290
1291By default, \`make install' will install all the files in
1292\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1293an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1294for instance \`--prefix=\$HOME'.
1295
1296For better control, use the options below.
1297
1298Fine tuning of the installation directories:
1299 --bindir=DIR user executables [EPREFIX/bin]
1300 --sbindir=DIR system admin executables [EPREFIX/sbin]
1301 --libexecdir=DIR program executables [EPREFIX/libexec]
1302 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1303 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1304 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1305 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1306 --libdir=DIR object code libraries [EPREFIX/lib]
1307 --includedir=DIR C header files [PREFIX/include]
1308 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1309 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1310 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1311 --infodir=DIR info documentation [DATAROOTDIR/info]
1312 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1313 --mandir=DIR man documentation [DATAROOTDIR/man]
1314 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1315 --htmldir=DIR html documentation [DOCDIR]
1316 --dvidir=DIR dvi documentation [DOCDIR]
1317 --pdfdir=DIR pdf documentation [DOCDIR]
1318 --psdir=DIR ps documentation [DOCDIR]
1319_ACEOF
1320
1321 cat <<\_ACEOF
1322
1323System types:
1324 --build=BUILD configure for building on BUILD [guessed]
1325 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1326 --target=TARGET configure for building compilers for TARGET [HOST]
1327_ACEOF
1328fi
1329
1330if test -n "$ac_init_help"; then
1331
1332 cat <<\_ACEOF
1333
1334Optional Packages:
1335 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1336 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1337 --with-gdbm=dir Use local gdbm library and headers
1338
1339Some influential environment variables:
1340 CC C compiler command
1341 CFLAGS C compiler flags
1342 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1343 nonstandard directory <lib dir>
1344 LIBS libraries to pass to the linker, e.g. -l<library>
1345 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1346 you have headers in a nonstandard directory <include dir>
1347 CPP C preprocessor
1348
1349Use these variables to override the choices made by `configure' or to help
1350it to find libraries and programs with nonstandard names/locations.
1351
1352Report bugs to the package provider.
1353_ACEOF
1354ac_status=$?
1355fi
1356
1357if test "$ac_init_help" = "recursive"; then
1358 # If there are subdirs, report their specific --help.
1359 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1360 test -d "$ac_dir" ||
1361 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1362 continue
1363 ac_builddir=.
1364
1365case "$ac_dir" in
1366.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1367*)
1368 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1369 # A ".." for each directory in $ac_dir_suffix.
1370 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1371 case $ac_top_builddir_sub in
1372 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1373 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1374 esac ;;
1375esac
1376ac_abs_top_builddir=$ac_pwd
1377ac_abs_builddir=$ac_pwd$ac_dir_suffix
1378# for backward compatibility:
1379ac_top_builddir=$ac_top_build_prefix
1380
1381case $srcdir in
1382 .) # We are building in place.
1383 ac_srcdir=.
1384 ac_top_srcdir=$ac_top_builddir_sub
1385 ac_abs_top_srcdir=$ac_pwd ;;
1386 [\\/]* | ?:[\\/]* ) # Absolute name.
1387 ac_srcdir=$srcdir$ac_dir_suffix;
1388 ac_top_srcdir=$srcdir
1389 ac_abs_top_srcdir=$srcdir ;;
1390 *) # Relative name.
1391 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1392 ac_top_srcdir=$ac_top_build_prefix$srcdir
1393 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1394esac
1395ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1396
1397 cd "$ac_dir" || { ac_status=$?; continue; }
1398 # Check for guested configure.
1399 if test -f "$ac_srcdir/configure.gnu"; then
1400 echo &&
1401 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1402 elif test -f "$ac_srcdir/configure"; then
1403 echo &&
1404 $SHELL "$ac_srcdir/configure" --help=recursive
1405 else
1406 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1407 fi || ac_status=$?
1408 cd "$ac_pwd" || { ac_status=$?; break; }
1409 done
1410fi
1411
1412test -n "$ac_init_help" && exit $ac_status
1413if $ac_init_version; then
1414 cat <<\_ACEOF
1415configure
1416generated by GNU Autoconf 2.69
1417
1418Copyright (C) 2012 Free Software Foundation, Inc.
1419This configure script is free software; the Free Software Foundation
1420gives unlimited permission to copy, distribute and modify it.
1421_ACEOF
1422 exit
1423fi
1424
1425## ------------------------ ##
1426## Autoconf initialization. ##
1427## ------------------------ ##
1428
1429# ac_fn_c_try_compile LINENO
1430# --------------------------
1431# Try to compile conftest.$ac_ext, and return whether this succeeded.
1432ac_fn_c_try_compile ()
1433{
1434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1435 rm -f conftest.$ac_objext
1436 if { { ac_try="$ac_compile"
1437case "(($ac_try" in
1438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1439 *) ac_try_echo=$ac_try;;
1440esac
1441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1442$as_echo "$ac_try_echo"; } >&5
1443 (eval "$ac_compile") 2>conftest.err
1444 ac_status=$?
1445 if test -s conftest.err; then
1446 grep -v '^ *+' conftest.err >conftest.er1
1447 cat conftest.er1 >&5
1448 mv -f conftest.er1 conftest.err
1449 fi
1450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1451 test $ac_status = 0; } && {
1452 test -z "$ac_c_werror_flag" ||
1453 test ! -s conftest.err
1454 } && test -s conftest.$ac_objext; then :
1455 ac_retval=0
1456else
1457 $as_echo "$as_me: failed program was:" >&5
1458sed 's/^/| /' conftest.$ac_ext >&5
1459
1460 ac_retval=1
1461fi
1462 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1463 as_fn_set_status $ac_retval
1464
1465} # ac_fn_c_try_compile
1466
1467# ac_fn_c_try_run LINENO
1468# ----------------------
1469# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1470# that executables *can* be run.
1471ac_fn_c_try_run ()
1472{
1473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1474 if { { ac_try="$ac_link"
1475case "(($ac_try" in
1476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1477 *) ac_try_echo=$ac_try;;
1478esac
1479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1480$as_echo "$ac_try_echo"; } >&5
1481 (eval "$ac_link") 2>&5
1482 ac_status=$?
1483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1484 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1485 { { case "(($ac_try" in
1486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1487 *) ac_try_echo=$ac_try;;
1488esac
1489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1490$as_echo "$ac_try_echo"; } >&5
1491 (eval "$ac_try") 2>&5
1492 ac_status=$?
1493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1494 test $ac_status = 0; }; }; then :
1495 ac_retval=0
1496else
1497 $as_echo "$as_me: program exited with status $ac_status" >&5
1498 $as_echo "$as_me: failed program was:" >&5
1499sed 's/^/| /' conftest.$ac_ext >&5
1500
1501 ac_retval=$ac_status
1502fi
1503 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1504 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1505 as_fn_set_status $ac_retval
1506
1507} # ac_fn_c_try_run
1508
1509# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1510# --------------------------------------------
1511# Tries to find the compile-time value of EXPR in a program that includes
1512# INCLUDES, setting VAR accordingly. Returns whether the value could be
1513# computed
1514ac_fn_c_compute_int ()
1515{
1516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517 if test "$cross_compiling" = yes; then
1518 # Depending upon the size, compute the lo and hi bounds.
1519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1520/* end confdefs.h. */
1521$4
1522int
1523main ()
1524{
1525static int test_array [1 - 2 * !(($2) >= 0)];
1526test_array [0] = 0;
1527return test_array [0];
1528
1529 ;
1530 return 0;
1531}
1532_ACEOF
1533if ac_fn_c_try_compile "$LINENO"; then :
1534 ac_lo=0 ac_mid=0
1535 while :; do
1536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1537/* end confdefs.h. */
1538$4
1539int
1540main ()
1541{
1542static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1543test_array [0] = 0;
1544return test_array [0];
1545
1546 ;
1547 return 0;
1548}
1549_ACEOF
1550if ac_fn_c_try_compile "$LINENO"; then :
1551 ac_hi=$ac_mid; break
1552else
1553 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1554 if test $ac_lo -le $ac_mid; then
1555 ac_lo= ac_hi=
1556 break
1557 fi
1558 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1559fi
1560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1561 done
1562else
1563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1564/* end confdefs.h. */
1565$4
1566int
1567main ()
1568{
1569static int test_array [1 - 2 * !(($2) < 0)];
1570test_array [0] = 0;
1571return test_array [0];
1572
1573 ;
1574 return 0;
1575}
1576_ACEOF
1577if ac_fn_c_try_compile "$LINENO"; then :
1578 ac_hi=-1 ac_mid=-1
1579 while :; do
1580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1581/* end confdefs.h. */
1582$4
1583int
1584main ()
1585{
1586static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1587test_array [0] = 0;
1588return test_array [0];
1589
1590 ;
1591 return 0;
1592}
1593_ACEOF
1594if ac_fn_c_try_compile "$LINENO"; then :
1595 ac_lo=$ac_mid; break
1596else
1597 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1598 if test $ac_mid -le $ac_hi; then
1599 ac_lo= ac_hi=
1600 break
1601 fi
1602 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1603fi
1604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1605 done
1606else
1607 ac_lo= ac_hi=
1608fi
1609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1610fi
1611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1612# Binary search between lo and hi bounds.
1613while test "x$ac_lo" != "x$ac_hi"; do
1614 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616/* end confdefs.h. */
1617$4
1618int
1619main ()
1620{
1621static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1622test_array [0] = 0;
1623return test_array [0];
1624
1625 ;
1626 return 0;
1627}
1628_ACEOF
1629if ac_fn_c_try_compile "$LINENO"; then :
1630 ac_hi=$ac_mid
1631else
1632 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1633fi
1634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1635done
1636case $ac_lo in #((
1637?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1638'') ac_retval=1 ;;
1639esac
1640 else
1641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642/* end confdefs.h. */
1643$4
1644static long int longval () { return $2; }
1645static unsigned long int ulongval () { return $2; }
1646#include <stdio.h>
1647#include <stdlib.h>
1648int
1649main ()
1650{
1651
1652 FILE *f = fopen ("conftest.val", "w");
1653 if (! f)
1654 return 1;
1655 if (($2) < 0)
1656 {
1657 long int i = longval ();
1658 if (i != ($2))
1659 return 1;
1660 fprintf (f, "%ld", i);
1661 }
1662 else
1663 {
1664 unsigned long int i = ulongval ();
1665 if (i != ($2))
1666 return 1;
1667 fprintf (f, "%lu", i);
1668 }
1669 /* Do not output a trailing newline, as this causes \r\n confusion
1670 on some platforms. */
1671 return ferror (f) || fclose (f) != 0;
1672
1673 ;
1674 return 0;
1675}
1676_ACEOF
1677if ac_fn_c_try_run "$LINENO"; then :
1678 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1679else
1680 ac_retval=1
1681fi
1682rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1683 conftest.$ac_objext conftest.beam conftest.$ac_ext
1684rm -f conftest.val
1685
1686 fi
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 as_fn_set_status $ac_retval
1689
1690} # ac_fn_c_compute_int
1691
1692# ac_fn_c_try_cpp LINENO
1693# ----------------------
1694# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1695ac_fn_c_try_cpp ()
1696{
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_cpp conftest.$ac_ext"
1699case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1711 fi
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } > conftest.i && {
1714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 }; then :
1717 ac_retval=0
1718else
1719 $as_echo "$as_me: failed program was:" >&5
1720sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=1
1723fi
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1726
1727} # ac_fn_c_try_cpp
1728
1729# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1730# -------------------------------------------------------
1731# Tests whether HEADER exists and can be compiled using the include files in
1732# INCLUDES, setting the cache variable VAR accordingly.
1733ac_fn_c_check_header_compile ()
1734{
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737$as_echo_n "checking for $2... " >&6; }
1738if eval \${$3+:} false; then :
1739 $as_echo_n "(cached) " >&6
1740else
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742/* end confdefs.h. */
1743$4
1744#include <$2>
1745_ACEOF
1746if ac_fn_c_try_compile "$LINENO"; then :
1747 eval "$3=yes"
1748else
1749 eval "$3=no"
1750fi
1751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752fi
1753eval ac_res=\$$3
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755$as_echo "$ac_res" >&6; }
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757
1758} # ac_fn_c_check_header_compile
1759
1760# ac_fn_c_try_link LINENO
1761# -----------------------
1762# Try to link conftest.$ac_ext, and return whether this succeeded.
1763ac_fn_c_try_link ()
1764{
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 rm -f conftest.$ac_objext conftest$ac_exeext
1767 if { { ac_try="$ac_link"
1768case "(($ac_try" in
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1771esac
1772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773$as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_link") 2>conftest.err
1775 ac_status=$?
1776 if test -s conftest.err; then
1777 grep -v '^ *+' conftest.err >conftest.er1
1778 cat conftest.er1 >&5
1779 mv -f conftest.er1 conftest.err
1780 fi
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } && {
1783 test -z "$ac_c_werror_flag" ||
1784 test ! -s conftest.err
1785 } && test -s conftest$ac_exeext && {
1786 test "$cross_compiling" = yes ||
1787 test -x conftest$ac_exeext
1788 }; then :
1789 ac_retval=0
1790else
1791 $as_echo "$as_me: failed program was:" >&5
1792sed 's/^/| /' conftest.$ac_ext >&5
1793
1794 ac_retval=1
1795fi
1796 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1797 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1798 # interfere with the next link command; also delete a directory that is
1799 # left behind by Apple's compiler. We do this before executing the actions.
1800 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 as_fn_set_status $ac_retval
1803
1804} # ac_fn_c_try_link
1805cat >config.log <<_ACEOF
1806This file contains any messages produced by compilers while
1807running configure, to aid debugging if configure makes a mistake.
1808
1809It was created by $as_me, which was
1810generated by GNU Autoconf 2.69. Invocation command line was
1811
1812 $ $0 $@
1813
1814_ACEOF
1815exec 5>>config.log
1816{
1817cat <<_ASUNAME
1818## --------- ##
1819## Platform. ##
1820## --------- ##
1821
1822hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1823uname -m = `(uname -m) 2>/dev/null || echo unknown`
1824uname -r = `(uname -r) 2>/dev/null || echo unknown`
1825uname -s = `(uname -s) 2>/dev/null || echo unknown`
1826uname -v = `(uname -v) 2>/dev/null || echo unknown`
1827
1828/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1829/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1830
1831/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1832/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1833/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1834/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1835/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1836/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1837/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1838
1839_ASUNAME
1840
1841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842for as_dir in $PATH
1843do
1844 IFS=$as_save_IFS
1845 test -z "$as_dir" && as_dir=.
1846 $as_echo "PATH: $as_dir"
1847 done
1848IFS=$as_save_IFS
1849
1850} >&5
1851
1852cat >&5 <<_ACEOF
1853
1854
1855## ----------- ##
1856## Core tests. ##
1857## ----------- ##
1858
1859_ACEOF
1860
1861
1862# Keep a trace of the command line.
1863# Strip out --no-create and --no-recursion so they do not pile up.
1864# Strip out --silent because we don't want to record it for future runs.
1865# Also quote any args containing shell meta-characters.
1866# Make two passes to allow for proper duplicate-argument suppression.
1867ac_configure_args=
1868ac_configure_args0=
1869ac_configure_args1=
1870ac_must_keep_next=false
1871for ac_pass in 1 2
1872do
1873 for ac_arg
1874 do
1875 case $ac_arg in
1876 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1878 | -silent | --silent | --silen | --sile | --sil)
1879 continue ;;
1880 *\'*)
1881 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1882 esac
1883 case $ac_pass in
1884 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1885 2)
1886 as_fn_append ac_configure_args1 " '$ac_arg'"
1887 if test $ac_must_keep_next = true; then
1888 ac_must_keep_next=false # Got value, back to normal.
1889 else
1890 case $ac_arg in
1891 *=* | --config-cache | -C | -disable-* | --disable-* \
1892 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1893 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1894 | -with-* | --with-* | -without-* | --without-* | --x)
1895 case "$ac_configure_args0 " in
1896 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1897 esac
1898 ;;
1899 -* ) ac_must_keep_next=true ;;
1900 esac
1901 fi
1902 as_fn_append ac_configure_args " '$ac_arg'"
1903 ;;
1904 esac
1905 done
1906done
1907{ ac_configure_args0=; unset ac_configure_args0;}
1908{ ac_configure_args1=; unset ac_configure_args1;}
1909
1910# When interrupted or exit'd, cleanup temporary files, and complete
1911# config.log. We remove comments because anyway the quotes in there
1912# would cause problems or look ugly.
1913# WARNING: Use '\'' to represent an apostrophe within the trap.
1914# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1915trap 'exit_status=$?
1916 # Save into config.log some information that might help in debugging.
1917 {
1918 echo
1919
1920 $as_echo "## ---------------- ##
1921## Cache variables. ##
1922## ---------------- ##"
1923 echo
1924 # The following way of writing the cache mishandles newlines in values,
1925(
1926 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1927 eval ac_val=\$$ac_var
1928 case $ac_val in #(
1929 *${as_nl}*)
1930 case $ac_var in #(
1931 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1932$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1933 esac
1934 case $ac_var in #(
1935 _ | IFS | as_nl) ;; #(
1936 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1937 *) { eval $ac_var=; unset $ac_var;} ;;
1938 esac ;;
1939 esac
1940 done
1941 (set) 2>&1 |
1942 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1943 *${as_nl}ac_space=\ *)
1944 sed -n \
1945 "s/'\''/'\''\\\\'\'''\''/g;
1946 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1947 ;; #(
1948 *)
1949 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1950 ;;
1951 esac |
1952 sort
1953)
1954 echo
1955
1956 $as_echo "## ----------------- ##
1957## Output variables. ##
1958## ----------------- ##"
1959 echo
1960 for ac_var in $ac_subst_vars
1961 do
1962 eval ac_val=\$$ac_var
1963 case $ac_val in
1964 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1965 esac
1966 $as_echo "$ac_var='\''$ac_val'\''"
1967 done | sort
1968 echo
1969
1970 if test -n "$ac_subst_files"; then
1971 $as_echo "## ------------------- ##
1972## File substitutions. ##
1973## ------------------- ##"
1974 echo
1975 for ac_var in $ac_subst_files
1976 do
1977 eval ac_val=\$$ac_var
1978 case $ac_val in
1979 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1980 esac
1981 $as_echo "$ac_var='\''$ac_val'\''"
1982 done | sort
1983 echo
1984 fi
1985
1986 if test -s confdefs.h; then
1987 $as_echo "## ----------- ##
1988## confdefs.h. ##
1989## ----------- ##"
1990 echo
1991 cat confdefs.h
1992 echo
1993 fi
1994 test "$ac_signal" != 0 &&
1995 $as_echo "$as_me: caught signal $ac_signal"
1996 $as_echo "$as_me: exit $exit_status"
1997 } >&5
1998 rm -f core *.core core.conftest.* &&
1999 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2000 exit $exit_status
2001' 0
2002for ac_signal in 1 2 13 15; do
2003 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2004done
2005ac_signal=0
2006
2007# confdefs.h avoids OS command line length limits that DEFS can exceed.
2008rm -f -r conftest* confdefs.h
2009
2010$as_echo "/* confdefs.h */" > confdefs.h
2011
2012# Predefined preprocessor variables.
2013
2014cat >>confdefs.h <<_ACEOF
2015#define PACKAGE_NAME "$PACKAGE_NAME"
2016_ACEOF
2017
2018cat >>confdefs.h <<_ACEOF
2019#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2020_ACEOF
2021
2022cat >>confdefs.h <<_ACEOF
2023#define PACKAGE_VERSION "$PACKAGE_VERSION"
2024_ACEOF
2025
2026cat >>confdefs.h <<_ACEOF
2027#define PACKAGE_STRING "$PACKAGE_STRING"
2028_ACEOF
2029
2030cat >>confdefs.h <<_ACEOF
2031#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2032_ACEOF
2033
2034cat >>confdefs.h <<_ACEOF
2035#define PACKAGE_URL "$PACKAGE_URL"
2036_ACEOF
2037
2038
2039# Let the site file select an alternate cache file if it wants to.
2040# Prefer an explicitly selected file to automatically selected ones.
2041ac_site_file1=NONE
2042ac_site_file2=NONE
2043if test -n "$CONFIG_SITE"; then
2044 # We do not want a PATH search for config.site.
2045 case $CONFIG_SITE in #((
2046 -*) ac_site_file1=./$CONFIG_SITE;;
2047 */*) ac_site_file1=$CONFIG_SITE;;
2048 *) ac_site_file1=./$CONFIG_SITE;;
2049 esac
2050elif test "x$prefix" != xNONE; then
2051 ac_site_file1=$prefix/share/config.site
2052 ac_site_file2=$prefix/etc/config.site
2053else
2054 ac_site_file1=$ac_default_prefix/share/config.site
2055 ac_site_file2=$ac_default_prefix/etc/config.site
2056fi
2057for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2058do
2059 test "x$ac_site_file" = xNONE && continue
2060 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2062$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2063 sed 's/^/| /' "$ac_site_file" >&5
2064 . "$ac_site_file" \
2065 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2067as_fn_error $? "failed to load site script $ac_site_file
2068See \`config.log' for more details" "$LINENO" 5; }
2069 fi
2070done
2071
2072if test -r "$cache_file"; then
2073 # Some versions of bash will fail to source /dev/null (special files
2074 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2075 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2077$as_echo "$as_me: loading cache $cache_file" >&6;}
2078 case $cache_file in
2079 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2080 *) . "./$cache_file";;
2081 esac
2082 fi
2083else
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2085$as_echo "$as_me: creating cache $cache_file" >&6;}
2086 >$cache_file
2087fi
2088
2089# Check that the precious variables saved in the cache have kept the same
2090# value.
2091ac_cache_corrupted=false
2092for ac_var in $ac_precious_vars; do
2093 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2094 eval ac_new_set=\$ac_env_${ac_var}_set
2095 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2096 eval ac_new_val=\$ac_env_${ac_var}_value
2097 case $ac_old_set,$ac_new_set in
2098 set,)
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2100$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2101 ac_cache_corrupted=: ;;
2102 ,set)
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2104$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2105 ac_cache_corrupted=: ;;
2106 ,);;
2107 *)
2108 if test "x$ac_old_val" != "x$ac_new_val"; then
2109 # differences in whitespace do not lead to failure.
2110 ac_old_val_w=`echo x $ac_old_val`
2111 ac_new_val_w=`echo x $ac_new_val`
2112 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2114$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2115 ac_cache_corrupted=:
2116 else
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2118$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2119 eval $ac_var=\$ac_old_val
2120 fi
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2122$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2124$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2125 fi;;
2126 esac
2127 # Pass precious variables to config.status.
2128 if test "$ac_new_set" = set; then
2129 case $ac_new_val in
2130 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2131 *) ac_arg=$ac_var=$ac_new_val ;;
2132 esac
2133 case " $ac_configure_args " in
2134 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2135 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2136 esac
2137 fi
2138done
2139if $ac_cache_corrupted; then
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2143$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2144 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2145fi
2146## -------------------- ##
2147## Main body of script. ##
2148## -------------------- ##
2149
2150ac_ext=c
2151ac_cpp='$CPP $CPPFLAGS'
2152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2154ac_compiler_gnu=$ac_cv_c_compiler_gnu
2155
2156
2157
2158
2159# Check whether --with-gdbm was given.
2160if test "${with_gdbm+set}" = set; then :
2161 withval=$with_gdbm; gdbmdir=$withval
2162fi
2163
2164
2165ac_aux_dir=
2166for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2167 if test -f "$ac_dir/install-sh"; then
2168 ac_aux_dir=$ac_dir
2169 ac_install_sh="$ac_aux_dir/install-sh -c"
2170 break
2171 elif test -f "$ac_dir/install.sh"; then
2172 ac_aux_dir=$ac_dir
2173 ac_install_sh="$ac_aux_dir/install.sh -c"
2174 break
2175 elif test -f "$ac_dir/shtool"; then
2176 ac_aux_dir=$ac_dir
2177 ac_install_sh="$ac_aux_dir/shtool install -c"
2178 break
2179 fi
2180done
2181if test -z "$ac_aux_dir"; then
2182 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2183fi
2184
2185# These three variables are undocumented and unsupported,
2186# and are intended to be withdrawn in a future Autoconf release.
2187# They can cause serious problems if a builder's source tree is in a directory
2188# whose full name contains unusual characters.
2189ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2190ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2191ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2192
2193
2194# Make sure we can run config.sub.
2195$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2196 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2197
2198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2199$as_echo_n "checking build system type... " >&6; }
2200if ${ac_cv_build+:} false; then :
2201 $as_echo_n "(cached) " >&6
2202else
2203 ac_build_alias=$build_alias
2204test "x$ac_build_alias" = x &&
2205 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2206test "x$ac_build_alias" = x &&
2207 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2208ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2209 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2210
2211fi
2212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2213$as_echo "$ac_cv_build" >&6; }
2214case $ac_cv_build in
2215*-*-*) ;;
2216*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2217esac
2218build=$ac_cv_build
2219ac_save_IFS=$IFS; IFS='-'
2220set x $ac_cv_build
2221shift
2222build_cpu=$1
2223build_vendor=$2
2224shift; shift
2225# Remember, the first character of IFS is used to create $*,
2226# except with old shells:
2227build_os=$*
2228IFS=$ac_save_IFS
2229case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2230
2231
2232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2233$as_echo_n "checking host system type... " >&6; }
2234if ${ac_cv_host+:} false; then :
2235 $as_echo_n "(cached) " >&6
2236else
2237 if test "x$host_alias" = x; then
2238 ac_cv_host=$ac_cv_build
2239else
2240 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2241 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2242fi
2243
2244fi
2245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2246$as_echo "$ac_cv_host" >&6; }
2247case $ac_cv_host in
2248*-*-*) ;;
2249*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2250esac
2251host=$ac_cv_host
2252ac_save_IFS=$IFS; IFS='-'
2253set x $ac_cv_host
2254shift
2255host_cpu=$1
2256host_vendor=$2
2257shift; shift
2258# Remember, the first character of IFS is used to create $*,
2259# except with old shells:
2260host_os=$*
2261IFS=$ac_save_IFS
2262case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2263
2264
2265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2266$as_echo_n "checking target system type... " >&6; }
2267if ${ac_cv_target+:} false; then :
2268 $as_echo_n "(cached) " >&6
2269else
2270 if test "x$target_alias" = x; then
2271 ac_cv_target=$ac_cv_host
2272else
2273 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2274 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2275fi
2276
2277fi
2278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2279$as_echo "$ac_cv_target" >&6; }
2280case $ac_cv_target in
2281*-*-*) ;;
2282*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2283esac
2284target=$ac_cv_target
2285ac_save_IFS=$IFS; IFS='-'
2286set x $ac_cv_target
2287shift
2288target_cpu=$1
2289target_vendor=$2
2290shift; shift
2291# Remember, the first character of IFS is used to create $*,
2292# except with old shells:
2293target_os=$*
2294IFS=$ac_save_IFS
2295case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2296
2297
2298# The aliases save the names the user supplied, while $host etc.
2299# will get canonicalized.
2300test -n "$target_alias" &&
2301 test "$program_prefix$program_suffix$program_transform_name" = \
2302 NONENONEs,x,x, &&
2303 program_prefix=${target_alias}-
2304
2305
2306# TODO: allow the user to specify whether they want a debugging
2307# library or not?
2308
2309# check for compilers and other tools
2310ac_ext=c
2311ac_cpp='$CPP $CPPFLAGS'
2312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2314ac_compiler_gnu=$ac_cv_c_compiler_gnu
2315if test -n "$ac_tool_prefix"; then
2316 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2317set dummy ${ac_tool_prefix}gcc; ac_word=$2
2318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2319$as_echo_n "checking for $ac_word... " >&6; }
2320if ${ac_cv_prog_CC+:} false; then :
2321 $as_echo_n "(cached) " >&6
2322else
2323 if test -n "$CC"; then
2324 ac_cv_prog_CC="$CC" # Let the user override the test.
2325else
2326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327for as_dir in $PATH
2328do
2329 IFS=$as_save_IFS
2330 test -z "$as_dir" && as_dir=.
2331 for ac_exec_ext in '' $ac_executable_extensions; do
2332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2333 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 break 2
2336 fi
2337done
2338 done
2339IFS=$as_save_IFS
2340
2341fi
2342fi
2343CC=$ac_cv_prog_CC
2344if test -n "$CC"; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2346$as_echo "$CC" >&6; }
2347else
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2349$as_echo "no" >&6; }
2350fi
2351
2352
2353fi
2354if test -z "$ac_cv_prog_CC"; then
2355 ac_ct_CC=$CC
2356 # Extract the first word of "gcc", so it can be a program name with args.
2357set dummy gcc; ac_word=$2
2358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2359$as_echo_n "checking for $ac_word... " >&6; }
2360if ${ac_cv_prog_ac_ct_CC+:} false; then :
2361 $as_echo_n "(cached) " >&6
2362else
2363 if test -n "$ac_ct_CC"; then
2364 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2365else
2366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367for as_dir in $PATH
2368do
2369 IFS=$as_save_IFS
2370 test -z "$as_dir" && as_dir=.
2371 for ac_exec_ext in '' $ac_executable_extensions; do
2372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2373 ac_cv_prog_ac_ct_CC="gcc"
2374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2375 break 2
2376 fi
2377done
2378 done
2379IFS=$as_save_IFS
2380
2381fi
2382fi
2383ac_ct_CC=$ac_cv_prog_ac_ct_CC
2384if test -n "$ac_ct_CC"; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2386$as_echo "$ac_ct_CC" >&6; }
2387else
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2389$as_echo "no" >&6; }
2390fi
2391
2392 if test "x$ac_ct_CC" = x; then
2393 CC=""
2394 else
2395 case $cross_compiling:$ac_tool_warned in
2396yes:)
2397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2399ac_tool_warned=yes ;;
2400esac
2401 CC=$ac_ct_CC
2402 fi
2403else
2404 CC="$ac_cv_prog_CC"
2405fi
2406
2407if test -z "$CC"; then
2408 if test -n "$ac_tool_prefix"; then
2409 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2410set dummy ${ac_tool_prefix}cc; ac_word=$2
2411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2412$as_echo_n "checking for $ac_word... " >&6; }
2413if ${ac_cv_prog_CC+:} false; then :
2414 $as_echo_n "(cached) " >&6
2415else
2416 if test -n "$CC"; then
2417 ac_cv_prog_CC="$CC" # Let the user override the test.
2418else
2419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420for as_dir in $PATH
2421do
2422 IFS=$as_save_IFS
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2426 ac_cv_prog_CC="${ac_tool_prefix}cc"
2427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2428 break 2
2429 fi
2430done
2431 done
2432IFS=$as_save_IFS
2433
2434fi
2435fi
2436CC=$ac_cv_prog_CC
2437if test -n "$CC"; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2439$as_echo "$CC" >&6; }
2440else
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2442$as_echo "no" >&6; }
2443fi
2444
2445
2446 fi
2447fi
2448if test -z "$CC"; then
2449 # Extract the first word of "cc", so it can be a program name with args.
2450set dummy cc; ac_word=$2
2451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2452$as_echo_n "checking for $ac_word... " >&6; }
2453if ${ac_cv_prog_CC+:} false; then :
2454 $as_echo_n "(cached) " >&6
2455else
2456 if test -n "$CC"; then
2457 ac_cv_prog_CC="$CC" # Let the user override the test.
2458else
2459 ac_prog_rejected=no
2460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461for as_dir in $PATH
2462do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2467 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2468 ac_prog_rejected=yes
2469 continue
2470 fi
2471 ac_cv_prog_CC="cc"
2472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2473 break 2
2474 fi
2475done
2476 done
2477IFS=$as_save_IFS
2478
2479if test $ac_prog_rejected = yes; then
2480 # We found a bogon in the path, so make sure we never use it.
2481 set dummy $ac_cv_prog_CC
2482 shift
2483 if test $# != 0; then
2484 # We chose a different compiler from the bogus one.
2485 # However, it has the same basename, so the bogon will be chosen
2486 # first if we set CC to just the basename; use the full file name.
2487 shift
2488 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2489 fi
2490fi
2491fi
2492fi
2493CC=$ac_cv_prog_CC
2494if test -n "$CC"; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2496$as_echo "$CC" >&6; }
2497else
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2499$as_echo "no" >&6; }
2500fi
2501
2502
2503fi
2504if test -z "$CC"; then
2505 if test -n "$ac_tool_prefix"; then
2506 for ac_prog in cl.exe
2507 do
2508 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2509set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2511$as_echo_n "checking for $ac_word... " >&6; }
2512if ${ac_cv_prog_CC+:} false; then :
2513 $as_echo_n "(cached) " >&6
2514else
2515 if test -n "$CC"; then
2516 ac_cv_prog_CC="$CC" # Let the user override the test.
2517else
2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519for as_dir in $PATH
2520do
2521 IFS=$as_save_IFS
2522 test -z "$as_dir" && as_dir=.
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2525 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 break 2
2528 fi
2529done
2530 done
2531IFS=$as_save_IFS
2532
2533fi
2534fi
2535CC=$ac_cv_prog_CC
2536if test -n "$CC"; then
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2538$as_echo "$CC" >&6; }
2539else
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2541$as_echo "no" >&6; }
2542fi
2543
2544
2545 test -n "$CC" && break
2546 done
2547fi
2548if test -z "$CC"; then
2549 ac_ct_CC=$CC
2550 for ac_prog in cl.exe
2551do
2552 # Extract the first word of "$ac_prog", so it can be a program name with args.
2553set dummy $ac_prog; ac_word=$2
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555$as_echo_n "checking for $ac_word... " >&6; }
2556if ${ac_cv_prog_ac_ct_CC+:} false; then :
2557 $as_echo_n "(cached) " >&6
2558else
2559 if test -n "$ac_ct_CC"; then
2560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2561else
2562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563for as_dir in $PATH
2564do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569 ac_cv_prog_ac_ct_CC="$ac_prog"
2570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 break 2
2572 fi
2573done
2574 done
2575IFS=$as_save_IFS
2576
2577fi
2578fi
2579ac_ct_CC=$ac_cv_prog_ac_ct_CC
2580if test -n "$ac_ct_CC"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2582$as_echo "$ac_ct_CC" >&6; }
2583else
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585$as_echo "no" >&6; }
2586fi
2587
2588
2589 test -n "$ac_ct_CC" && break
2590done
2591
2592 if test "x$ac_ct_CC" = x; then
2593 CC=""
2594 else
2595 case $cross_compiling:$ac_tool_warned in
2596yes:)
2597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2599ac_tool_warned=yes ;;
2600esac
2601 CC=$ac_ct_CC
2602 fi
2603fi
2604
2605fi
2606
2607
2608test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2610as_fn_error $? "no acceptable C compiler found in \$PATH
2611See \`config.log' for more details" "$LINENO" 5; }
2612
2613# Provide some information about the compiler.
2614$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2615set X $ac_compile
2616ac_compiler=$2
2617for ac_option in --version -v -V -qversion; do
2618 { { ac_try="$ac_compiler $ac_option >&5"
2619case "(($ac_try" in
2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621 *) ac_try_echo=$ac_try;;
2622esac
2623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2624$as_echo "$ac_try_echo"; } >&5
2625 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2626 ac_status=$?
2627 if test -s conftest.err; then
2628 sed '10a\
2629... rest of stderr output deleted ...
2630 10q' conftest.err >conftest.er1
2631 cat conftest.er1 >&5
2632 fi
2633 rm -f conftest.er1 conftest.err
2634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2635 test $ac_status = 0; }
2636done
2637
2638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639/* end confdefs.h. */
2640
2641int
2642main ()
2643{
2644
2645 ;
2646 return 0;
2647}
2648_ACEOF
2649ac_clean_files_save=$ac_clean_files
2650ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2651# Try to create an executable without -o first, disregard a.out.
2652# It will help us diagnose broken compilers, and finding out an intuition
2653# of exeext.
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2655$as_echo_n "checking whether the C compiler works... " >&6; }
2656ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2657
2658# The possible output files:
2659ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2660
2661ac_rmfiles=
2662for ac_file in $ac_files
2663do
2664 case $ac_file in
2665 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2666 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2667 esac
2668done
2669rm -f $ac_rmfiles
2670
2671if { { ac_try="$ac_link_default"
2672case "(($ac_try" in
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2675esac
2676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2677$as_echo "$ac_try_echo"; } >&5
2678 (eval "$ac_link_default") 2>&5
2679 ac_status=$?
2680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2681 test $ac_status = 0; }; then :
2682 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2683# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2684# in a Makefile. We should not override ac_cv_exeext if it was cached,
2685# so that the user can short-circuit this test for compilers unknown to
2686# Autoconf.
2687for ac_file in $ac_files ''
2688do
2689 test -f "$ac_file" || continue
2690 case $ac_file in
2691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2692 ;;
2693 [ab].out )
2694 # We found the default executable, but exeext='' is most
2695 # certainly right.
2696 break;;
2697 *.* )
2698 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2699 then :; else
2700 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2701 fi
2702 # We set ac_cv_exeext here because the later test for it is not
2703 # safe: cross compilers may not add the suffix if given an `-o'
2704 # argument, so we may need to know it at that point already.
2705 # Even if this section looks crufty: it has the advantage of
2706 # actually working.
2707 break;;
2708 * )
2709 break;;
2710 esac
2711done
2712test "$ac_cv_exeext" = no && ac_cv_exeext=
2713
2714else
2715 ac_file=''
2716fi
2717if test -z "$ac_file"; then :
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719$as_echo "no" >&6; }
2720$as_echo "$as_me: failed program was:" >&5
2721sed 's/^/| /' conftest.$ac_ext >&5
2722
2723{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2725as_fn_error 77 "C compiler cannot create executables
2726See \`config.log' for more details" "$LINENO" 5; }
2727else
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2729$as_echo "yes" >&6; }
2730fi
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2732$as_echo_n "checking for C compiler default output file name... " >&6; }
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2734$as_echo "$ac_file" >&6; }
2735ac_exeext=$ac_cv_exeext
2736
2737rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2738ac_clean_files=$ac_clean_files_save
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2740$as_echo_n "checking for suffix of executables... " >&6; }
2741if { { ac_try="$ac_link"
2742case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2745esac
2746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2747$as_echo "$ac_try_echo"; } >&5
2748 (eval "$ac_link") 2>&5
2749 ac_status=$?
2750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2751 test $ac_status = 0; }; then :
2752 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2753# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2754# work properly (i.e., refer to `conftest.exe'), while it won't with
2755# `rm'.
2756for ac_file in conftest.exe conftest conftest.*; do
2757 test -f "$ac_file" || continue
2758 case $ac_file in
2759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2760 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2761 break;;
2762 * ) break;;
2763 esac
2764done
2765else
2766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2768as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2769See \`config.log' for more details" "$LINENO" 5; }
2770fi
2771rm -f conftest conftest$ac_cv_exeext
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2773$as_echo "$ac_cv_exeext" >&6; }
2774
2775rm -f conftest.$ac_ext
2776EXEEXT=$ac_cv_exeext
2777ac_exeext=$EXEEXT
2778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779/* end confdefs.h. */
2780#include <stdio.h>
2781int
2782main ()
2783{
2784FILE *f = fopen ("conftest.out", "w");
2785 return ferror (f) || fclose (f) != 0;
2786
2787 ;
2788 return 0;
2789}
2790_ACEOF
2791ac_clean_files="$ac_clean_files conftest.out"
2792# Check that the compiler produces executables we can run. If not, either
2793# the compiler is broken, or we cross compile.
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2795$as_echo_n "checking whether we are cross compiling... " >&6; }
2796if test "$cross_compiling" != yes; then
2797 { { ac_try="$ac_link"
2798case "(($ac_try" in
2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800 *) ac_try_echo=$ac_try;;
2801esac
2802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2803$as_echo "$ac_try_echo"; } >&5
2804 (eval "$ac_link") 2>&5
2805 ac_status=$?
2806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2807 test $ac_status = 0; }
2808 if { ac_try='./conftest$ac_cv_exeext'
2809 { { case "(($ac_try" in
2810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811 *) ac_try_echo=$ac_try;;
2812esac
2813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2814$as_echo "$ac_try_echo"; } >&5
2815 (eval "$ac_try") 2>&5
2816 ac_status=$?
2817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2818 test $ac_status = 0; }; }; then
2819 cross_compiling=no
2820 else
2821 if test "$cross_compiling" = maybe; then
2822 cross_compiling=yes
2823 else
2824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2825$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2826as_fn_error $? "cannot run C compiled programs.
2827If you meant to cross compile, use \`--host'.
2828See \`config.log' for more details" "$LINENO" 5; }
2829 fi
2830 fi
2831fi
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2833$as_echo "$cross_compiling" >&6; }
2834
2835rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2836ac_clean_files=$ac_clean_files_save
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2838$as_echo_n "checking for suffix of object files... " >&6; }
2839if ${ac_cv_objext+:} false; then :
2840 $as_echo_n "(cached) " >&6
2841else
2842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843/* end confdefs.h. */
2844
2845int
2846main ()
2847{
2848
2849 ;
2850 return 0;
2851}
2852_ACEOF
2853rm -f conftest.o conftest.obj
2854if { { ac_try="$ac_compile"
2855case "(($ac_try" in
2856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2857 *) ac_try_echo=$ac_try;;
2858esac
2859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2860$as_echo "$ac_try_echo"; } >&5
2861 (eval "$ac_compile") 2>&5
2862 ac_status=$?
2863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2864 test $ac_status = 0; }; then :
2865 for ac_file in conftest.o conftest.obj conftest.*; do
2866 test -f "$ac_file" || continue;
2867 case $ac_file in
2868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2869 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2870 break;;
2871 esac
2872done
2873else
2874 $as_echo "$as_me: failed program was:" >&5
2875sed 's/^/| /' conftest.$ac_ext >&5
2876
2877{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2879as_fn_error $? "cannot compute suffix of object files: cannot compile
2880See \`config.log' for more details" "$LINENO" 5; }
2881fi
2882rm -f conftest.$ac_cv_objext conftest.$ac_ext
2883fi
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2885$as_echo "$ac_cv_objext" >&6; }
2886OBJEXT=$ac_cv_objext
2887ac_objext=$OBJEXT
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2889$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2890if ${ac_cv_c_compiler_gnu+:} false; then :
2891 $as_echo_n "(cached) " >&6
2892else
2893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2894/* end confdefs.h. */
2895
2896int
2897main ()
2898{
2899#ifndef __GNUC__
2900 choke me
2901#endif
2902
2903 ;
2904 return 0;
2905}
2906_ACEOF
2907if ac_fn_c_try_compile "$LINENO"; then :
2908 ac_compiler_gnu=yes
2909else
2910 ac_compiler_gnu=no
2911fi
2912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913ac_cv_c_compiler_gnu=$ac_compiler_gnu
2914
2915fi
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2917$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2918if test $ac_compiler_gnu = yes; then
2919 GCC=yes
2920else
2921 GCC=
2922fi
2923ac_test_CFLAGS=${CFLAGS+set}
2924ac_save_CFLAGS=$CFLAGS
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2926$as_echo_n "checking whether $CC accepts -g... " >&6; }
2927if ${ac_cv_prog_cc_g+:} false; then :
2928 $as_echo_n "(cached) " >&6
2929else
2930 ac_save_c_werror_flag=$ac_c_werror_flag
2931 ac_c_werror_flag=yes
2932 ac_cv_prog_cc_g=no
2933 CFLAGS="-g"
2934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2935/* end confdefs.h. */
2936
2937int
2938main ()
2939{
2940
2941 ;
2942 return 0;
2943}
2944_ACEOF
2945if ac_fn_c_try_compile "$LINENO"; then :
2946 ac_cv_prog_cc_g=yes
2947else
2948 CFLAGS=""
2949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2950/* end confdefs.h. */
2951
2952int
2953main ()
2954{
2955
2956 ;
2957 return 0;
2958}
2959_ACEOF
2960if ac_fn_c_try_compile "$LINENO"; then :
2961
2962else
2963 ac_c_werror_flag=$ac_save_c_werror_flag
2964 CFLAGS="-g"
2965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2966/* end confdefs.h. */
2967
2968int
2969main ()
2970{
2971
2972 ;
2973 return 0;
2974}
2975_ACEOF
2976if ac_fn_c_try_compile "$LINENO"; then :
2977 ac_cv_prog_cc_g=yes
2978fi
2979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2980fi
2981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2982fi
2983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984 ac_c_werror_flag=$ac_save_c_werror_flag
2985fi
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2987$as_echo "$ac_cv_prog_cc_g" >&6; }
2988if test "$ac_test_CFLAGS" = set; then
2989 CFLAGS=$ac_save_CFLAGS
2990elif test $ac_cv_prog_cc_g = yes; then
2991 if test "$GCC" = yes; then
2992 CFLAGS="-g -O2"
2993 else
2994 CFLAGS="-g"
2995 fi
2996else
2997 if test "$GCC" = yes; then
2998 CFLAGS="-O2"
2999 else
3000 CFLAGS=
3001 fi
3002fi
3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3004$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3005if ${ac_cv_prog_cc_c89+:} false; then :
3006 $as_echo_n "(cached) " >&6
3007else
3008 ac_cv_prog_cc_c89=no
3009ac_save_CC=$CC
3010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011/* end confdefs.h. */
3012#include <stdarg.h>
3013#include <stdio.h>
3014struct stat;
3015/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3016struct buf { int x; };
3017FILE * (*rcsopen) (struct buf *, struct stat *, int);
3018static char *e (p, i)
3019 char **p;
3020 int i;
3021{
3022 return p[i];
3023}
3024static char *f (char * (*g) (char **, int), char **p, ...)
3025{
3026 char *s;
3027 va_list v;
3028 va_start (v,p);
3029 s = g (p, va_arg (v,int));
3030 va_end (v);
3031 return s;
3032}
3033
3034/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3035 function prototypes and stuff, but not '\xHH' hex character constants.
3036 These don't provoke an error unfortunately, instead are silently treated
3037 as 'x'. The following induces an error, until -std is added to get
3038 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3039 array size at least. It's necessary to write '\x00'==0 to get something
3040 that's true only with -std. */
3041int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3042
3043/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3044 inside strings and character constants. */
3045#define FOO(x) 'x'
3046int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3047
3048int test (int i, double x);
3049struct s1 {int (*f) (int a);};
3050struct s2 {int (*f) (double a);};
3051int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3052int argc;
3053char **argv;
3054int
3055main ()
3056{
3057return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3058 ;
3059 return 0;
3060}
3061_ACEOF
3062for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3063 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3064do
3065 CC="$ac_save_CC $ac_arg"
3066 if ac_fn_c_try_compile "$LINENO"; then :
3067 ac_cv_prog_cc_c89=$ac_arg
3068fi
3069rm -f core conftest.err conftest.$ac_objext
3070 test "x$ac_cv_prog_cc_c89" != "xno" && break
3071done
3072rm -f conftest.$ac_ext
3073CC=$ac_save_CC
3074
3075fi
3076# AC_CACHE_VAL
3077case "x$ac_cv_prog_cc_c89" in
3078 x)
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3080$as_echo "none needed" >&6; } ;;
3081 xno)
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3083$as_echo "unsupported" >&6; } ;;
3084 *)
3085 CC="$CC $ac_cv_prog_cc_c89"
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3087$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3088esac
3089if test "x$ac_cv_prog_cc_c89" != xno; then :
3090
3091fi
3092
3093ac_ext=c
3094ac_cpp='$CPP $CPPFLAGS'
3095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097ac_compiler_gnu=$ac_cv_c_compiler_gnu
3098
3099# Find a good install program. We prefer a C program (faster),
3100# so one script is as good as another. But avoid the broken or
3101# incompatible versions:
3102# SysV /etc/install, /usr/sbin/install
3103# SunOS /usr/etc/install
3104# IRIX /sbin/install
3105# AIX /bin/install
3106# AmigaOS /C/install, which installs bootblocks on floppy discs
3107# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3108# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3109# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3110# OS/2's system install, which has a completely different semantic
3111# ./install, which can be erroneously created by make from ./install.sh.
3112# Reject install programs that cannot install multiple files.
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3114$as_echo_n "checking for a BSD-compatible install... " >&6; }
3115if test -z "$INSTALL"; then
3116if ${ac_cv_path_install+:} false; then :
3117 $as_echo_n "(cached) " >&6
3118else
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120for as_dir in $PATH
3121do
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 # Account for people who put trailing slashes in PATH elements.
3125case $as_dir/ in #((
3126 ./ | .// | /[cC]/* | \
3127 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3128 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3129 /usr/ucb/* ) ;;
3130 *)
3131 # OSF1 and SCO ODT 3.0 have their own names for install.
3132 # Don't use installbsd from OSF since it installs stuff as root
3133 # by default.
3134 for ac_prog in ginstall scoinst install; do
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3137 if test $ac_prog = install &&
3138 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3139 # AIX install. It has an incompatible calling convention.
3140 :
3141 elif test $ac_prog = install &&
3142 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3143 # program-specific install script used by HP pwplus--don't use.
3144 :
3145 else
3146 rm -rf conftest.one conftest.two conftest.dir
3147 echo one > conftest.one
3148 echo two > conftest.two
3149 mkdir conftest.dir
3150 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3151 test -s conftest.one && test -s conftest.two &&
3152 test -s conftest.dir/conftest.one &&
3153 test -s conftest.dir/conftest.two
3154 then
3155 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3156 break 3
3157 fi
3158 fi
3159 fi
3160 done
3161 done
3162 ;;
3163esac
3164
3165 done
3166IFS=$as_save_IFS
3167
3168rm -rf conftest.one conftest.two conftest.dir
3169
3170fi
3171 if test "${ac_cv_path_install+set}" = set; then
3172 INSTALL=$ac_cv_path_install
3173 else
3174 # As a last resort, use the slow shell script. Don't cache a
3175 # value for INSTALL within a source directory, because that will
3176 # break other packages using the cache if that directory is
3177 # removed, or if the value is a relative name.
3178 INSTALL=$ac_install_sh
3179 fi
3180fi
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3182$as_echo "$INSTALL" >&6; }
3183
3184# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3185# It thinks the first close brace ends the variable substitution.
3186test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3187
3188test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3189
3190test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3191
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3193$as_echo_n "checking whether ln -s works... " >&6; }
3194LN_S=$as_ln_s
3195if test "$LN_S" = "ln -s"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3197$as_echo "yes" >&6; }
3198else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3200$as_echo "no, using $LN_S" >&6; }
3201fi
3202
3203
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if architecture is 64-bit" >&5
3205$as_echo_n "checking to see if architecture is 64-bit... " >&6; }
3206arch_64bit=no
3207case "$host_cpu" in
3208x86_64) arch_64bit=yes ;;
3209esac
3210
3211if test "$arch_64bit" = yes; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3213$as_echo "yes" >&6; }
3214 if test -z "$ARCH_DEP_FLAGS" ; then
3215 ARCH_DEP_FLAGS="-fPIC"
3216 gsdlarch='64'
3217 fi
3218else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220$as_echo "no" >&6; }
3221 if test -z "$ARCH_DEP_FLAGS" ; then
3222 ARCH_DEP_FLAGS=
3223 gsdlarch='32'
3224 fi
3225fi
3226
3227export ARCH_DEP_FLAGS
3228
3229
3230
3231ac_ext=c
3232ac_cpp='$CPP $CPPFLAGS'
3233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3237$as_echo_n "checking how to run the C preprocessor... " >&6; }
3238# On Suns, sometimes $CPP names a directory.
3239if test -n "$CPP" && test -d "$CPP"; then
3240 CPP=
3241fi
3242if test -z "$CPP"; then
3243 if ${ac_cv_prog_CPP+:} false; then :
3244 $as_echo_n "(cached) " >&6
3245else
3246 # Double quotes because CPP needs to be expanded
3247 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3248 do
3249 ac_preproc_ok=false
3250for ac_c_preproc_warn_flag in '' yes
3251do
3252 # Use a header file that comes with gcc, so configuring glibc
3253 # with a fresh cross-compiler works.
3254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3255 # <limits.h> exists even on freestanding compilers.
3256 # On the NeXT, cc -E runs the code through the compiler's parser,
3257 # not just through cpp. "Syntax error" is here to catch this case.
3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259/* end confdefs.h. */
3260#ifdef __STDC__
3261# include <limits.h>
3262#else
3263# include <assert.h>
3264#endif
3265 Syntax error
3266_ACEOF
3267if ac_fn_c_try_cpp "$LINENO"; then :
3268
3269else
3270 # Broken: fails on valid input.
3271continue
3272fi
3273rm -f conftest.err conftest.i conftest.$ac_ext
3274
3275 # OK, works on sane cases. Now check whether nonexistent headers
3276 # can be detected and how.
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278/* end confdefs.h. */
3279#include <ac_nonexistent.h>
3280_ACEOF
3281if ac_fn_c_try_cpp "$LINENO"; then :
3282 # Broken: success on invalid input.
3283continue
3284else
3285 # Passes both tests.
3286ac_preproc_ok=:
3287break
3288fi
3289rm -f conftest.err conftest.i conftest.$ac_ext
3290
3291done
3292# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3293rm -f conftest.i conftest.err conftest.$ac_ext
3294if $ac_preproc_ok; then :
3295 break
3296fi
3297
3298 done
3299 ac_cv_prog_CPP=$CPP
3300
3301fi
3302 CPP=$ac_cv_prog_CPP
3303else
3304 ac_cv_prog_CPP=$CPP
3305fi
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3307$as_echo "$CPP" >&6; }
3308ac_preproc_ok=false
3309for ac_c_preproc_warn_flag in '' yes
3310do
3311 # Use a header file that comes with gcc, so configuring glibc
3312 # with a fresh cross-compiler works.
3313 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3314 # <limits.h> exists even on freestanding compilers.
3315 # On the NeXT, cc -E runs the code through the compiler's parser,
3316 # not just through cpp. "Syntax error" is here to catch this case.
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318/* end confdefs.h. */
3319#ifdef __STDC__
3320# include <limits.h>
3321#else
3322# include <assert.h>
3323#endif
3324 Syntax error
3325_ACEOF
3326if ac_fn_c_try_cpp "$LINENO"; then :
3327
3328else
3329 # Broken: fails on valid input.
3330continue
3331fi
3332rm -f conftest.err conftest.i conftest.$ac_ext
3333
3334 # OK, works on sane cases. Now check whether nonexistent headers
3335 # can be detected and how.
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337/* end confdefs.h. */
3338#include <ac_nonexistent.h>
3339_ACEOF
3340if ac_fn_c_try_cpp "$LINENO"; then :
3341 # Broken: success on invalid input.
3342continue
3343else
3344 # Passes both tests.
3345ac_preproc_ok=:
3346break
3347fi
3348rm -f conftest.err conftest.i conftest.$ac_ext
3349
3350done
3351# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3352rm -f conftest.i conftest.err conftest.$ac_ext
3353if $ac_preproc_ok; then :
3354
3355else
3356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3359See \`config.log' for more details" "$LINENO" 5; }
3360fi
3361
3362ac_ext=c
3363ac_cpp='$CPP $CPPFLAGS'
3364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3366ac_compiler_gnu=$ac_cv_c_compiler_gnu
3367
3368
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3370$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3371if ${ac_cv_path_GREP+:} false; then :
3372 $as_echo_n "(cached) " >&6
3373else
3374 if test -z "$GREP"; then
3375 ac_path_GREP_found=false
3376 # Loop through the user's path and test for each of PROGNAME-LIST
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3379do
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 for ac_prog in grep ggrep; do
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3385 as_fn_executable_p "$ac_path_GREP" || continue
3386# Check for GNU ac_path_GREP and select it if it is found.
3387 # Check for GNU $ac_path_GREP
3388case `"$ac_path_GREP" --version 2>&1` in
3389*GNU*)
3390 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3391*)
3392 ac_count=0
3393 $as_echo_n 0123456789 >"conftest.in"
3394 while :
3395 do
3396 cat "conftest.in" "conftest.in" >"conftest.tmp"
3397 mv "conftest.tmp" "conftest.in"
3398 cp "conftest.in" "conftest.nl"
3399 $as_echo 'GREP' >> "conftest.nl"
3400 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3402 as_fn_arith $ac_count + 1 && ac_count=$as_val
3403 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3404 # Best one so far, save it but keep looking for a better one
3405 ac_cv_path_GREP="$ac_path_GREP"
3406 ac_path_GREP_max=$ac_count
3407 fi
3408 # 10*(2^10) chars as input seems more than enough
3409 test $ac_count -gt 10 && break
3410 done
3411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3412esac
3413
3414 $ac_path_GREP_found && break 3
3415 done
3416 done
3417 done
3418IFS=$as_save_IFS
3419 if test -z "$ac_cv_path_GREP"; then
3420 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3421 fi
3422else
3423 ac_cv_path_GREP=$GREP
3424fi
3425
3426fi
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3428$as_echo "$ac_cv_path_GREP" >&6; }
3429 GREP="$ac_cv_path_GREP"
3430
3431
3432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3433$as_echo_n "checking for egrep... " >&6; }
3434if ${ac_cv_path_EGREP+:} false; then :
3435 $as_echo_n "(cached) " >&6
3436else
3437 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3438 then ac_cv_path_EGREP="$GREP -E"
3439 else
3440 if test -z "$EGREP"; then
3441 ac_path_EGREP_found=false
3442 # Loop through the user's path and test for each of PROGNAME-LIST
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3445do
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_prog in egrep; do
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3451 as_fn_executable_p "$ac_path_EGREP" || continue
3452# Check for GNU ac_path_EGREP and select it if it is found.
3453 # Check for GNU $ac_path_EGREP
3454case `"$ac_path_EGREP" --version 2>&1` in
3455*GNU*)
3456 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3457*)
3458 ac_count=0
3459 $as_echo_n 0123456789 >"conftest.in"
3460 while :
3461 do
3462 cat "conftest.in" "conftest.in" >"conftest.tmp"
3463 mv "conftest.tmp" "conftest.in"
3464 cp "conftest.in" "conftest.nl"
3465 $as_echo 'EGREP' >> "conftest.nl"
3466 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3467 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3468 as_fn_arith $ac_count + 1 && ac_count=$as_val
3469 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3470 # Best one so far, save it but keep looking for a better one
3471 ac_cv_path_EGREP="$ac_path_EGREP"
3472 ac_path_EGREP_max=$ac_count
3473 fi
3474 # 10*(2^10) chars as input seems more than enough
3475 test $ac_count -gt 10 && break
3476 done
3477 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3478esac
3479
3480 $ac_path_EGREP_found && break 3
3481 done
3482 done
3483 done
3484IFS=$as_save_IFS
3485 if test -z "$ac_cv_path_EGREP"; then
3486 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3487 fi
3488else
3489 ac_cv_path_EGREP=$EGREP
3490fi
3491
3492 fi
3493fi
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3495$as_echo "$ac_cv_path_EGREP" >&6; }
3496 EGREP="$ac_cv_path_EGREP"
3497
3498
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3500$as_echo_n "checking for ANSI C header files... " >&6; }
3501if ${ac_cv_header_stdc+:} false; then :
3502 $as_echo_n "(cached) " >&6
3503else
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505/* end confdefs.h. */
3506#include <stdlib.h>
3507#include <stdarg.h>
3508#include <string.h>
3509#include <float.h>
3510
3511int
3512main ()
3513{
3514
3515 ;
3516 return 0;
3517}
3518_ACEOF
3519if ac_fn_c_try_compile "$LINENO"; then :
3520 ac_cv_header_stdc=yes
3521else
3522 ac_cv_header_stdc=no
3523fi
3524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525
3526if test $ac_cv_header_stdc = yes; then
3527 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529/* end confdefs.h. */
3530#include <string.h>
3531
3532_ACEOF
3533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3534 $EGREP "memchr" >/dev/null 2>&1; then :
3535
3536else
3537 ac_cv_header_stdc=no
3538fi
3539rm -f conftest*
3540
3541fi
3542
3543if test $ac_cv_header_stdc = yes; then
3544 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546/* end confdefs.h. */
3547#include <stdlib.h>
3548
3549_ACEOF
3550if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3551 $EGREP "free" >/dev/null 2>&1; then :
3552
3553else
3554 ac_cv_header_stdc=no
3555fi
3556rm -f conftest*
3557
3558fi
3559
3560if test $ac_cv_header_stdc = yes; then
3561 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3562 if test "$cross_compiling" = yes; then :
3563 :
3564else
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566/* end confdefs.h. */
3567#include <ctype.h>
3568#include <stdlib.h>
3569#if ((' ' & 0x0FF) == 0x020)
3570# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3571# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3572#else
3573# define ISLOWER(c) \
3574 (('a' <= (c) && (c) <= 'i') \
3575 || ('j' <= (c) && (c) <= 'r') \
3576 || ('s' <= (c) && (c) <= 'z'))
3577# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3578#endif
3579
3580#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3581int
3582main ()
3583{
3584 int i;
3585 for (i = 0; i < 256; i++)
3586 if (XOR (islower (i), ISLOWER (i))
3587 || toupper (i) != TOUPPER (i))
3588 return 2;
3589 return 0;
3590}
3591_ACEOF
3592if ac_fn_c_try_run "$LINENO"; then :
3593
3594else
3595 ac_cv_header_stdc=no
3596fi
3597rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3598 conftest.$ac_objext conftest.beam conftest.$ac_ext
3599fi
3600
3601fi
3602fi
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3604$as_echo "$ac_cv_header_stdc" >&6; }
3605if test $ac_cv_header_stdc = yes; then
3606
3607$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3608
3609fi
3610
3611# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3612for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3613 inttypes.h stdint.h unistd.h
3614do :
3615 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3616ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3617"
3618if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3619 cat >>confdefs.h <<_ACEOF
3620#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3621_ACEOF
3622
3623fi
3624
3625done
3626
3627
3628# The cast to long int works around a bug in the HP C Compiler
3629# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3630# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3631# This bug is HP SR number 8606223364.
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
3633$as_echo_n "checking size of void *... " >&6; }
3634if ${ac_cv_sizeof_void_p+:} false; then :
3635 $as_echo_n "(cached) " >&6
3636else
3637 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
3638
3639else
3640 if test "$ac_cv_type_void_p" = yes; then
3641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3643as_fn_error 77 "cannot compute sizeof (void *)
3644See \`config.log' for more details" "$LINENO" 5; }
3645 else
3646 ac_cv_sizeof_void_p=0
3647 fi
3648fi
3649
3650fi
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
3652$as_echo "$ac_cv_sizeof_void_p" >&6; }
3653
3654
3655
3656cat >>confdefs.h <<_ACEOF
3657#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3658_ACEOF
3659
3660
3661# The cast to long int works around a bug in the HP C Compiler
3662# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3663# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3664# This bug is HP SR number 8606223364.
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
3666$as_echo_n "checking size of int... " >&6; }
3667if ${ac_cv_sizeof_int+:} false; then :
3668 $as_echo_n "(cached) " >&6
3669else
3670 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
3671
3672else
3673 if test "$ac_cv_type_int" = yes; then
3674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3675$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3676as_fn_error 77 "cannot compute sizeof (int)
3677See \`config.log' for more details" "$LINENO" 5; }
3678 else
3679 ac_cv_sizeof_int=0
3680 fi
3681fi
3682
3683fi
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
3685$as_echo "$ac_cv_sizeof_int" >&6; }
3686
3687
3688
3689cat >>confdefs.h <<_ACEOF
3690#define SIZEOF_INT $ac_cv_sizeof_int
3691_ACEOF
3692
3693
3694# The cast to long int works around a bug in the HP C Compiler
3695# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3696# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3697# This bug is HP SR number 8606223364.
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
3699$as_echo_n "checking size of long... " >&6; }
3700if ${ac_cv_sizeof_long+:} false; then :
3701 $as_echo_n "(cached) " >&6
3702else
3703 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
3704
3705else
3706 if test "$ac_cv_type_long" = yes; then
3707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709as_fn_error 77 "cannot compute sizeof (long)
3710See \`config.log' for more details" "$LINENO" 5; }
3711 else
3712 ac_cv_sizeof_long=0
3713 fi
3714fi
3715
3716fi
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
3718$as_echo "$ac_cv_sizeof_long" >&6; }
3719
3720
3721
3722cat >>confdefs.h <<_ACEOF
3723#define SIZEOF_LONG $ac_cv_sizeof_long
3724_ACEOF
3725
3726
3727
3728######## check for the JDK and tools within the JDK
3729######## look in the JAVA_HOME environment variable at configure-time
3730#AC_MSG_CHECKING([for the JDK])
3731#if test "z$JAVA_HOME" != z &&
3732# test -d $JAVA_HOME &&
3733# (test -d $JAVA_HOME/bin)
3734## The following used to be the test, but failed on newer versions of MacOS
3735## Cut back to something simpler, and rely on the later tests for JNIINC to confirm
3736## files like 'jni.h' can be found
3737## test -d $JAVA_HOME &&
3738## (test -d $JAVA_HOME/include || test -d $JAVA_HOME/../Headers)
3739#then
3740# AC_SUBST(JAVA_HOME)
3741# AC_MSG_RESULT([found in $JAVA_HOME])
3742#else
3743# AC_MSG_ERROR([not found in \$JAVA_HOME])
3744#fi
3745
3746## TODO: Check for specific header files in the JDK, or
3747## functions/definitions within those headers?
3748
3749## TODO: guess which include directory to use under the JDK
3750
3751#AC_PATH_PROG(javagdbm_cv_path_javah, javah, missing_javah)
3752#if test "$javagdbm_cv_path_javah" = missing_javah; then
3753# AC_MSG_ERROR([javah not found.])
3754#fi
3755
3756#AC_PATH_PROG(javagdbm_cv_path_java, java, missing)
3757#if test "$javagdbm_cv_path_java" = missing; then
3758# AC_MSG_ERROR([java not found.])
3759#fi
3760
3761# Replacing the above with a more streamlined test for 'javac'
3762# This should have the advantage of meaning its not mandated
3763# that JAVA_HOME must be set for it to locate a javac
3764
3765
3766if test "x$JAVAC" = x ; then
3767 if test "x$JAVAPREFIX" = x; then
3768 test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
3769do
3770 # Extract the first word of "$ac_prog", so it can be a program name with args.
3771set dummy $ac_prog; ac_word=$2
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3773$as_echo_n "checking for $ac_word... " >&6; }
3774if ${ac_cv_prog_JAVAC+:} false; then :
3775 $as_echo_n "(cached) " >&6
3776else
3777 if test -n "$JAVAC"; then
3778 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
3779else
3780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781for as_dir in $PATH
3782do
3783 IFS=$as_save_IFS
3784 test -z "$as_dir" && as_dir=.
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3787 ac_cv_prog_JAVAC="$ac_prog"
3788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3789 break 2
3790 fi
3791done
3792 done
3793IFS=$as_save_IFS
3794
3795fi
3796fi
3797JAVAC=$ac_cv_prog_JAVAC
3798if test -n "$JAVAC"; then
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
3800$as_echo "$JAVAC" >&6; }
3801else
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803$as_echo "no" >&6; }
3804fi
3805
3806
3807 test -n "$JAVAC" && break
3808done
3809
3810 else
3811 test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
3812do
3813 # Extract the first word of "$ac_prog", so it can be a program name with args.
3814set dummy $ac_prog; ac_word=$2
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3816$as_echo_n "checking for $ac_word... " >&6; }
3817if ${ac_cv_prog_JAVAC+:} false; then :
3818 $as_echo_n "(cached) " >&6
3819else
3820 if test -n "$JAVAC"; then
3821 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
3822else
3823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824for as_dir in $PATH
3825do
3826 IFS=$as_save_IFS
3827 test -z "$as_dir" && as_dir=.
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3830 ac_cv_prog_JAVAC="$ac_prog"
3831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3832 break 2
3833 fi
3834done
3835 done
3836IFS=$as_save_IFS
3837
3838fi
3839fi
3840JAVAC=$ac_cv_prog_JAVAC
3841if test -n "$JAVAC"; then
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
3843$as_echo "$JAVAC" >&6; }
3844else
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846$as_echo "no" >&6; }
3847fi
3848
3849
3850 test -n "$JAVAC" && break
3851done
3852test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
3853
3854 fi
3855 test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
3856else
3857 echo "Checking for javac... $JAVAC"
3858fi
3859
3860
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
3862$as_echo_n "checking if $JAVAC works... " >&6; }
3863if ${ac_cv_prog_javac_works+:} false; then :
3864 $as_echo_n "(cached) " >&6
3865else
3866
3867JAVA_TEST=Test.java
3868CLASS_TEST=Test.class
3869cat << \EOF > $JAVA_TEST
3870/* #line 3870 "configure" */
3871public class Test {
3872}
3873EOF
3874if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
3875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
3876 (eval $ac_try) 2>&5
3877 ac_status=$?
3878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3879 test $ac_status = 0; }; } >/dev/null 2>&1; then
3880 ac_cv_prog_javac_works=yes
3881else
3882 as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
3883 echo "configure: failed program was:" >&5
3884 cat $JAVA_TEST >&5
3885fi
3886rm -f $JAVA_TEST $CLASS_TEST
3887
3888fi
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
3890$as_echo "$ac_cv_prog_javac_works" >&6; }
3891if test "x$JAVACFLAGS" = x ; then
3892 JAVACFLAGS="-source 1.4 -target 1.4"
3893fi
3894
3895
3896
3897
3898# check for gdbm library
3899#AC_CHECK_LIB(gdbm, gdbm_open, [javagdbm_cv_lib_gdbm="-lgdbm"],
3900# [javagdbm_cv_lib_gdbm=no])
3901#if test "$javagdbm_cv_lib_gdbm" = "no"; then
3902# AC_MSG_ERROR([no native gdbm library found.])
3903#fi
3904#LIBS="$javagdbm_cv_lib_gdbm"
3905
3906# gdbm stuff copied from gsdl [kjdon]
3907
3908
3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that the GDBM library is available" >&5
3910$as_echo_n "checking that the GDBM library is available... " >&6; }
3911if test ! -z "$gdbmdir" ; then
3912 # look in given directory for header file
3913 if test -r $gdbmdir/include/gdbm.h ; then
3914 GDBM_INCLUDE="-I$gdbmdir/include" ;
3915 elif test -r $gdbmdir/gdbm.h ; then
3916 GDBM_INCLUDE="-I$gdbmdir" ;
3917 fi
3918
3919 # look in given directory for library
3920 if test -r $gdbmdir/libgdbm.a ; then
3921 GDBM_LIBPATH="-L$gdbmdir" ;
3922 elif test -r $gdbmdir/lib/libgdbm.a ; then
3923 GDBM_LIBPATH="-L$gdbmdir/lib" ;
3924 elif test -r $gdbmdir/.libs/libgdbm.a ; then
3925 GDBM_LIBPATH="-L$gdbmdir/.libs" ;
3926 fi
3927
3928 if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbmdir" >&5
3930$as_echo "$gdbmdir" >&6; } ;
3931 else
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&5
3933$as_echo "can't find gdbm.h and libgdbm.a in $gdbmdir" >&6; };
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking looking for GDBM library in default locations" >&5
3935$as_echo_n "checking looking for GDBM library in default locations... " >&6; }
3936 fi
3937fi
3938
3939# look in default path and in /usr/local
3940if test -z "$GDBM_INCLUDE" ; then
3941 # try in system directory
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943/* end confdefs.h. */
3944#include <gdbm.h>
3945
3946int
3947main ()
3948{
3949
3950 ;
3951 return 0;
3952}
3953_ACEOF
3954if ac_fn_c_try_compile "$LINENO"; then :
3955 success=yes
3956else
3957 success=no
3958
3959fi
3960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961
3962 if test $success = "no"; then
3963# last chance - look in /usr/local (eg FreeBSD)
3964 GDBM_LIBPATH=-L/usr/local/lib
3965 GDBM_INCLUDE=-I/usr/local/include
3966 ac_save_CXXFLAGS="$CXXFLAGS"
3967 ac_save_LIBS="$LIBS"
3968 CXXFLAGS="$CXXFLAGS -I/usr/local/include"
3969 LIBS="$LIBS -L/usr/local/lib -lgdbm"
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971/* end confdefs.h. */
3972#include <gdbm.h>
3973#include <stdio.h>
3974
3975int
3976main ()
3977{
3978printf("%s",gdbm_version);
3979 ;
3980 return 0;
3981}
3982_ACEOF
3983if ac_fn_c_try_link "$LINENO"; then :
3984 success=/usr/local
3985else
3986 success=no
3987
3988fi
3989rm -f core conftest.err conftest.$ac_objext \
3990 conftest$ac_exeext conftest.$ac_ext
3991 CXXFLAGS=$ac_save_CXXFLAGS
3992 LIBS=$ac_save_LIBS
3993 fi
3994
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $success" >&5
3996$as_echo "$success" >&6; }
3997 if test $success = "no"; then
3998 as_fn_error $? "GDBM Library not available - cannot install" "$LINENO" 5
3999 fi
4000fi
4001$as_echo "#define HAVE_LIBGDBM 1" >>confdefs.h
4002
4003
4004
4005
4006
4007########## set compiler options
4008# TODO: is there a more appropriate way to guess which switches to use
4009# with which systems/compilers?
4010CFLAGS="-Wall -O2 -fpic"
4011PKG="au.com.pharos.gdbm"
4012
4013
4014
4015
4016# we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
4017# a non-standard Path
4018# is there a better way to do this??
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS to set JNI options" >&5
4020$as_echo_n "checking for OS to set JNI options... " >&6; }
4021# set defaults
4022JNIINC=""
4023JNIPREFIX="lib"
4024JNISUFFIX="so"
4025JNICFLAGS=""
4026JNILDFLAGS="-shared"
4027
4028if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
4030$as_echo "Darwin" >&6; }
4031 JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
4032 JNISUFFIX="jnilib"
4033 JNILDFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
4034 if test -d "$JAVA_HOME/include/darwin"; then
4035 JNICFLAGS="-I$JAVA_HOME/include -I$JAVA_HOME/include/darwin"
4036 fi
4037fi
4038if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
4040$as_echo "Solaris" >&6; }
4041 JNIINC="-I\$(JAVA_HOME)/include/solaris "
4042fi
4043if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
4045$as_echo "Linux" >&6; }
4046 JNIINC="-I\$(JAVA_HOME)/include/linux -I\$(JAVA_HOME)/include "
4047fi
4048
4049if test "x$crossOS" != "x" ; then
4050 if test "$crossOS" = "windows" ; then
4051 JNIINC="-I../java-windows-include/win32 -I../java-windows-include "
4052 JNICFLAGS="-Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at"
4053 JNIPREFIX=""
4054 JNISUFFIX="dll"
4055 fi
4056fi
4057
4058
4059
4060
4061
4062
4063
4064# write the output
4065ac_config_files="$ac_config_files Makefile jni/Makefile java/Makefile"
4066
4067cat >confcache <<\_ACEOF
4068# This file is a shell script that caches the results of configure
4069# tests run on this system so they can be shared between configure
4070# scripts and configure runs, see configure's option --config-cache.
4071# It is not useful on other systems. If it contains results you don't
4072# want to keep, you may remove or edit it.
4073#
4074# config.status only pays attention to the cache file if you give it
4075# the --recheck option to rerun configure.
4076#
4077# `ac_cv_env_foo' variables (set or unset) will be overridden when
4078# loading this file, other *unset* `ac_cv_foo' will be assigned the
4079# following values.
4080
4081_ACEOF
4082
4083# The following way of writing the cache mishandles newlines in values,
4084# but we know of no workaround that is simple, portable, and efficient.
4085# So, we kill variables containing newlines.
4086# Ultrix sh set writes to stderr and can't be redirected directly,
4087# and sets the high bit in the cache file unless we assign to the vars.
4088(
4089 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4090 eval ac_val=\$$ac_var
4091 case $ac_val in #(
4092 *${as_nl}*)
4093 case $ac_var in #(
4094 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4095$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4096 esac
4097 case $ac_var in #(
4098 _ | IFS | as_nl) ;; #(
4099 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4100 *) { eval $ac_var=; unset $ac_var;} ;;
4101 esac ;;
4102 esac
4103 done
4104
4105 (set) 2>&1 |
4106 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4107 *${as_nl}ac_space=\ *)
4108 # `set' does not quote correctly, so add quotes: double-quote
4109 # substitution turns \\\\ into \\, and sed turns \\ into \.
4110 sed -n \
4111 "s/'/'\\\\''/g;
4112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4113 ;; #(
4114 *)
4115 # `set' quotes correctly as required by POSIX, so do not add quotes.
4116 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4117 ;;
4118 esac |
4119 sort
4120) |
4121 sed '
4122 /^ac_cv_env_/b end
4123 t clear
4124 :clear
4125 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4126 t end
4127 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4128 :end' >>confcache
4129if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4130 if test -w "$cache_file"; then
4131 if test "x$cache_file" != "x/dev/null"; then
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4133$as_echo "$as_me: updating cache $cache_file" >&6;}
4134 if test ! -f "$cache_file" || test -h "$cache_file"; then
4135 cat confcache >"$cache_file"
4136 else
4137 case $cache_file in #(
4138 */* | ?:*)
4139 mv -f confcache "$cache_file"$$ &&
4140 mv -f "$cache_file"$$ "$cache_file" ;; #(
4141 *)
4142 mv -f confcache "$cache_file" ;;
4143 esac
4144 fi
4145 fi
4146 else
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4148$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4149 fi
4150fi
4151rm -f confcache
4152
4153test "x$prefix" = xNONE && prefix=$ac_default_prefix
4154# Let make expand exec_prefix.
4155test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4156
4157# Transform confdefs.h into DEFS.
4158# Protect against shell expansion while executing Makefile rules.
4159# Protect against Makefile macro expansion.
4160#
4161# If the first sed substitution is executed (which looks for macros that
4162# take arguments), then branch to the quote section. Otherwise,
4163# look for a macro that doesn't take arguments.
4164ac_script='
4165:mline
4166/\\$/{
4167 N
4168 s,\\\n,,
4169 b mline
4170}
4171t clear
4172:clear
4173s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4174t quote
4175s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4176t quote
4177b any
4178:quote
4179s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4180s/\[/\\&/g
4181s/\]/\\&/g
4182s/\$/$$/g
4183H
4184:any
4185${
4186 g
4187 s/^\n//
4188 s/\n/ /g
4189 p
4190}
4191'
4192DEFS=`sed -n "$ac_script" confdefs.h`
4193
4194
4195ac_libobjs=
4196ac_ltlibobjs=
4197U=
4198for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4199 # 1. Remove the extension, and $U if already installed.
4200 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4201 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4202 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4203 # will be set to the directory where LIBOBJS objects are built.
4204 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4205 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4206done
4207LIBOBJS=$ac_libobjs
4208
4209LTLIBOBJS=$ac_ltlibobjs
4210
4211
4212
4213: "${CONFIG_STATUS=./config.status}"
4214ac_write_fail=0
4215ac_clean_files_save=$ac_clean_files
4216ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4218$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4219as_write_fail=0
4220cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4221#! $SHELL
4222# Generated by $as_me.
4223# Run this file to recreate the current configuration.
4224# Compiler output produced by configure, useful for debugging
4225# configure, is in config.log if it exists.
4226
4227debug=false
4228ac_cs_recheck=false
4229ac_cs_silent=false
4230
4231SHELL=\${CONFIG_SHELL-$SHELL}
4232export SHELL
4233_ASEOF
4234cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4235## -------------------- ##
4236## M4sh Initialization. ##
4237## -------------------- ##
4238
4239# Be more Bourne compatible
4240DUALCASE=1; export DUALCASE # for MKS sh
4241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4242 emulate sh
4243 NULLCMD=:
4244 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4245 # is contrary to our usage. Disable this feature.
4246 alias -g '${1+"$@"}'='"$@"'
4247 setopt NO_GLOB_SUBST
4248else
4249 case `(set -o) 2>/dev/null` in #(
4250 *posix*) :
4251 set -o posix ;; #(
4252 *) :
4253 ;;
4254esac
4255fi
4256
4257
4258as_nl='
4259'
4260export as_nl
4261# Printing a long string crashes Solaris 7 /usr/bin/printf.
4262as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4263as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4264as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4265# Prefer a ksh shell builtin over an external printf program on Solaris,
4266# but without wasting forks for bash or zsh.
4267if test -z "$BASH_VERSION$ZSH_VERSION" \
4268 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4269 as_echo='print -r --'
4270 as_echo_n='print -rn --'
4271elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4272 as_echo='printf %s\n'
4273 as_echo_n='printf %s'
4274else
4275 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4276 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4277 as_echo_n='/usr/ucb/echo -n'
4278 else
4279 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4280 as_echo_n_body='eval
4281 arg=$1;
4282 case $arg in #(
4283 *"$as_nl"*)
4284 expr "X$arg" : "X\\(.*\\)$as_nl";
4285 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4286 esac;
4287 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4288 '
4289 export as_echo_n_body
4290 as_echo_n='sh -c $as_echo_n_body as_echo'
4291 fi
4292 export as_echo_body
4293 as_echo='sh -c $as_echo_body as_echo'
4294fi
4295
4296# The user is always right.
4297if test "${PATH_SEPARATOR+set}" != set; then
4298 PATH_SEPARATOR=:
4299 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4300 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4301 PATH_SEPARATOR=';'
4302 }
4303fi
4304
4305
4306# IFS
4307# We need space, tab and new line, in precisely that order. Quoting is
4308# there to prevent editors from complaining about space-tab.
4309# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4310# splitting by setting IFS to empty value.)
4311IFS=" "" $as_nl"
4312
4313# Find who we are. Look in the path if we contain no directory separator.
4314as_myself=
4315case $0 in #((
4316 *[\\/]* ) as_myself=$0 ;;
4317 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318for as_dir in $PATH
4319do
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4323 done
4324IFS=$as_save_IFS
4325
4326 ;;
4327esac
4328# We did not find ourselves, most probably we were run as `sh COMMAND'
4329# in which case we are not to be found in the path.
4330if test "x$as_myself" = x; then
4331 as_myself=$0
4332fi
4333if test ! -f "$as_myself"; then
4334 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4335 exit 1
4336fi
4337
4338# Unset variables that we do not need and which cause bugs (e.g. in
4339# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4340# suppresses any "Segmentation fault" message there. '((' could
4341# trigger a bug in pdksh 5.2.14.
4342for as_var in BASH_ENV ENV MAIL MAILPATH
4343do eval test x\${$as_var+set} = xset \
4344 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4345done
4346PS1='$ '
4347PS2='> '
4348PS4='+ '
4349
4350# NLS nuisances.
4351LC_ALL=C
4352export LC_ALL
4353LANGUAGE=C
4354export LANGUAGE
4355
4356# CDPATH.
4357(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4358
4359
4360# as_fn_error STATUS ERROR [LINENO LOG_FD]
4361# ----------------------------------------
4362# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4363# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4364# script with STATUS, using 1 if that was 0.
4365as_fn_error ()
4366{
4367 as_status=$1; test $as_status -eq 0 && as_status=1
4368 if test "$4"; then
4369 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4371 fi
4372 $as_echo "$as_me: error: $2" >&2
4373 as_fn_exit $as_status
4374} # as_fn_error
4375
4376
4377# as_fn_set_status STATUS
4378# -----------------------
4379# Set $? to STATUS, without forking.
4380as_fn_set_status ()
4381{
4382 return $1
4383} # as_fn_set_status
4384
4385# as_fn_exit STATUS
4386# -----------------
4387# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4388as_fn_exit ()
4389{
4390 set +e
4391 as_fn_set_status $1
4392 exit $1
4393} # as_fn_exit
4394
4395# as_fn_unset VAR
4396# ---------------
4397# Portably unset VAR.
4398as_fn_unset ()
4399{
4400 { eval $1=; unset $1;}
4401}
4402as_unset=as_fn_unset
4403# as_fn_append VAR VALUE
4404# ----------------------
4405# Append the text in VALUE to the end of the definition contained in VAR. Take
4406# advantage of any shell optimizations that allow amortized linear growth over
4407# repeated appends, instead of the typical quadratic growth present in naive
4408# implementations.
4409if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4410 eval 'as_fn_append ()
4411 {
4412 eval $1+=\$2
4413 }'
4414else
4415 as_fn_append ()
4416 {
4417 eval $1=\$$1\$2
4418 }
4419fi # as_fn_append
4420
4421# as_fn_arith ARG...
4422# ------------------
4423# Perform arithmetic evaluation on the ARGs, and store the result in the
4424# global $as_val. Take advantage of shells that can avoid forks. The arguments
4425# must be portable across $(()) and expr.
4426if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4427 eval 'as_fn_arith ()
4428 {
4429 as_val=$(( $* ))
4430 }'
4431else
4432 as_fn_arith ()
4433 {
4434 as_val=`expr "$@" || test $? -eq 1`
4435 }
4436fi # as_fn_arith
4437
4438
4439if expr a : '\(a\)' >/dev/null 2>&1 &&
4440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4441 as_expr=expr
4442else
4443 as_expr=false
4444fi
4445
4446if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4447 as_basename=basename
4448else
4449 as_basename=false
4450fi
4451
4452if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4453 as_dirname=dirname
4454else
4455 as_dirname=false
4456fi
4457
4458as_me=`$as_basename -- "$0" ||
4459$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4460 X"$0" : 'X\(//\)$' \| \
4461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4462$as_echo X/"$0" |
4463 sed '/^.*\/\([^/][^/]*\)\/*$/{
4464 s//\1/
4465 q
4466 }
4467 /^X\/\(\/\/\)$/{
4468 s//\1/
4469 q
4470 }
4471 /^X\/\(\/\).*/{
4472 s//\1/
4473 q
4474 }
4475 s/.*/./; q'`
4476
4477# Avoid depending upon Character Ranges.
4478as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4479as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4480as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4481as_cr_digits='0123456789'
4482as_cr_alnum=$as_cr_Letters$as_cr_digits
4483
4484ECHO_C= ECHO_N= ECHO_T=
4485case `echo -n x` in #(((((
4486-n*)
4487 case `echo 'xy\c'` in
4488 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4489 xy) ECHO_C='\c';;
4490 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4491 ECHO_T=' ';;
4492 esac;;
4493*)
4494 ECHO_N='-n';;
4495esac
4496
4497rm -f conf$$ conf$$.exe conf$$.file
4498if test -d conf$$.dir; then
4499 rm -f conf$$.dir/conf$$.file
4500else
4501 rm -f conf$$.dir
4502 mkdir conf$$.dir 2>/dev/null
4503fi
4504if (echo >conf$$.file) 2>/dev/null; then
4505 if ln -s conf$$.file conf$$ 2>/dev/null; then
4506 as_ln_s='ln -s'
4507 # ... but there are two gotchas:
4508 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4509 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4510 # In both cases, we have to default to `cp -pR'.
4511 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4512 as_ln_s='cp -pR'
4513 elif ln conf$$.file conf$$ 2>/dev/null; then
4514 as_ln_s=ln
4515 else
4516 as_ln_s='cp -pR'
4517 fi
4518else
4519 as_ln_s='cp -pR'
4520fi
4521rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4522rmdir conf$$.dir 2>/dev/null
4523
4524
4525# as_fn_mkdir_p
4526# -------------
4527# Create "$as_dir" as a directory, including parents if necessary.
4528as_fn_mkdir_p ()
4529{
4530
4531 case $as_dir in #(
4532 -*) as_dir=./$as_dir;;
4533 esac
4534 test -d "$as_dir" || eval $as_mkdir_p || {
4535 as_dirs=
4536 while :; do
4537 case $as_dir in #(
4538 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4539 *) as_qdir=$as_dir;;
4540 esac
4541 as_dirs="'$as_qdir' $as_dirs"
4542 as_dir=`$as_dirname -- "$as_dir" ||
4543$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4544 X"$as_dir" : 'X\(//\)[^/]' \| \
4545 X"$as_dir" : 'X\(//\)$' \| \
4546 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4547$as_echo X"$as_dir" |
4548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4549 s//\1/
4550 q
4551 }
4552 /^X\(\/\/\)[^/].*/{
4553 s//\1/
4554 q
4555 }
4556 /^X\(\/\/\)$/{
4557 s//\1/
4558 q
4559 }
4560 /^X\(\/\).*/{
4561 s//\1/
4562 q
4563 }
4564 s/.*/./; q'`
4565 test -d "$as_dir" && break
4566 done
4567 test -z "$as_dirs" || eval "mkdir $as_dirs"
4568 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4569
4570
4571} # as_fn_mkdir_p
4572if mkdir -p . 2>/dev/null; then
4573 as_mkdir_p='mkdir -p "$as_dir"'
4574else
4575 test -d ./-p && rmdir ./-p
4576 as_mkdir_p=false
4577fi
4578
4579
4580# as_fn_executable_p FILE
4581# -----------------------
4582# Test if FILE is an executable regular file.
4583as_fn_executable_p ()
4584{
4585 test -f "$1" && test -x "$1"
4586} # as_fn_executable_p
4587as_test_x='test -x'
4588as_executable_p=as_fn_executable_p
4589
4590# Sed expression to map a string onto a valid CPP name.
4591as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4592
4593# Sed expression to map a string onto a valid variable name.
4594as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4595
4596
4597exec 6>&1
4598## ----------------------------------- ##
4599## Main body of $CONFIG_STATUS script. ##
4600## ----------------------------------- ##
4601_ASEOF
4602test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4603
4604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4605# Save the log message, to keep $0 and so on meaningful, and to
4606# report actual input values of CONFIG_FILES etc. instead of their
4607# values after options handling.
4608ac_log="
4609This file was extended by $as_me, which was
4610generated by GNU Autoconf 2.69. Invocation command line was
4611
4612 CONFIG_FILES = $CONFIG_FILES
4613 CONFIG_HEADERS = $CONFIG_HEADERS
4614 CONFIG_LINKS = $CONFIG_LINKS
4615 CONFIG_COMMANDS = $CONFIG_COMMANDS
4616 $ $0 $@
4617
4618on `(hostname || uname -n) 2>/dev/null | sed 1q`
4619"
4620
4621_ACEOF
4622
4623case $ac_config_files in *"
4624"*) set x $ac_config_files; shift; ac_config_files=$*;;
4625esac
4626
4627
4628
4629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4630# Files that config.status was made for.
4631config_files="$ac_config_files"
4632
4633_ACEOF
4634
4635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4636ac_cs_usage="\
4637\`$as_me' instantiates files and other configuration actions
4638from templates according to the current configuration. Unless the files
4639and actions are specified as TAGs, all are instantiated by default.
4640
4641Usage: $0 [OPTION]... [TAG]...
4642
4643 -h, --help print this help, then exit
4644 -V, --version print version number and configuration settings, then exit
4645 --config print configuration, then exit
4646 -q, --quiet, --silent
4647 do not print progress messages
4648 -d, --debug don't remove temporary files
4649 --recheck update $as_me by reconfiguring in the same conditions
4650 --file=FILE[:TEMPLATE]
4651 instantiate the configuration file FILE
4652
4653Configuration files:
4654$config_files
4655
4656Report bugs to the package provider."
4657
4658_ACEOF
4659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4660ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4661ac_cs_version="\\
4662config.status
4663configured by $0, generated by GNU Autoconf 2.69,
4664 with options \\"\$ac_cs_config\\"
4665
4666Copyright (C) 2012 Free Software Foundation, Inc.
4667This config.status script is free software; the Free Software Foundation
4668gives unlimited permission to copy, distribute and modify it."
4669
4670ac_pwd='$ac_pwd'
4671srcdir='$srcdir'
4672INSTALL='$INSTALL'
4673test -n "\$AWK" || AWK=awk
4674_ACEOF
4675
4676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4677# The default lists apply if the user does not specify any file.
4678ac_need_defaults=:
4679while test $# != 0
4680do
4681 case $1 in
4682 --*=?*)
4683 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4684 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4685 ac_shift=:
4686 ;;
4687 --*=)
4688 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4689 ac_optarg=
4690 ac_shift=:
4691 ;;
4692 *)
4693 ac_option=$1
4694 ac_optarg=$2
4695 ac_shift=shift
4696 ;;
4697 esac
4698
4699 case $ac_option in
4700 # Handling of the options.
4701 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4702 ac_cs_recheck=: ;;
4703 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4704 $as_echo "$ac_cs_version"; exit ;;
4705 --config | --confi | --conf | --con | --co | --c )
4706 $as_echo "$ac_cs_config"; exit ;;
4707 --debug | --debu | --deb | --de | --d | -d )
4708 debug=: ;;
4709 --file | --fil | --fi | --f )
4710 $ac_shift
4711 case $ac_optarg in
4712 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4713 '') as_fn_error $? "missing file argument" ;;
4714 esac
4715 as_fn_append CONFIG_FILES " '$ac_optarg'"
4716 ac_need_defaults=false;;
4717 --he | --h | --help | --hel | -h )
4718 $as_echo "$ac_cs_usage"; exit ;;
4719 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4720 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4721 ac_cs_silent=: ;;
4722
4723 # This is an error.
4724 -*) as_fn_error $? "unrecognized option: \`$1'
4725Try \`$0 --help' for more information." ;;
4726
4727 *) as_fn_append ac_config_targets " $1"
4728 ac_need_defaults=false ;;
4729
4730 esac
4731 shift
4732done
4733
4734ac_configure_extra_args=
4735
4736if $ac_cs_silent; then
4737 exec 6>/dev/null
4738 ac_configure_extra_args="$ac_configure_extra_args --silent"
4739fi
4740
4741_ACEOF
4742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4743if \$ac_cs_recheck; then
4744 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4745 shift
4746 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4747 CONFIG_SHELL='$SHELL'
4748 export CONFIG_SHELL
4749 exec "\$@"
4750fi
4751
4752_ACEOF
4753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4754exec 5>>config.log
4755{
4756 echo
4757 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4758## Running $as_me. ##
4759_ASBOX
4760 $as_echo "$ac_log"
4761} >&5
4762
4763_ACEOF
4764cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4765_ACEOF
4766
4767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4768
4769# Handling of arguments.
4770for ac_config_target in $ac_config_targets
4771do
4772 case $ac_config_target in
4773 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4774 "jni/Makefile") CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
4775 "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
4776
4777 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4778 esac
4779done
4780
4781
4782# If the user did not use the arguments to specify the items to instantiate,
4783# then the envvar interface is used. Set only those that are not.
4784# We use the long form for the default assignment because of an extremely
4785# bizarre bug on SunOS 4.1.3.
4786if $ac_need_defaults; then
4787 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4788fi
4789
4790# Have a temporary directory for convenience. Make it in the build tree
4791# simply because there is no reason against having it here, and in addition,
4792# creating and moving files from /tmp can sometimes cause problems.
4793# Hook for its removal unless debugging.
4794# Note that there is a small window in which the directory will not be cleaned:
4795# after its creation but before its name has been assigned to `$tmp'.
4796$debug ||
4797{
4798 tmp= ac_tmp=
4799 trap 'exit_status=$?
4800 : "${ac_tmp:=$tmp}"
4801 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4802' 0
4803 trap 'as_fn_exit 1' 1 2 13 15
4804}
4805# Create a (secure) tmp directory for tmp files.
4806
4807{
4808 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4809 test -d "$tmp"
4810} ||
4811{
4812 tmp=./conf$$-$RANDOM
4813 (umask 077 && mkdir "$tmp")
4814} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4815ac_tmp=$tmp
4816
4817# Set up the scripts for CONFIG_FILES section.
4818# No need to generate them if there are no CONFIG_FILES.
4819# This happens for instance with `./config.status config.h'.
4820if test -n "$CONFIG_FILES"; then
4821
4822
4823ac_cr=`echo X | tr X '\015'`
4824# On cygwin, bash can eat \r inside `` if the user requested igncr.
4825# But we know of no other shell where ac_cr would be empty at this
4826# point, so we can use a bashism as a fallback.
4827if test "x$ac_cr" = x; then
4828 eval ac_cr=\$\'\\r\'
4829fi
4830ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4831if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4832 ac_cs_awk_cr='\\r'
4833else
4834 ac_cs_awk_cr=$ac_cr
4835fi
4836
4837echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4838_ACEOF
4839
4840
4841{
4842 echo "cat >conf$$subs.awk <<_ACEOF" &&
4843 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4844 echo "_ACEOF"
4845} >conf$$subs.sh ||
4846 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4847ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4848ac_delim='%!_!# '
4849for ac_last_try in false false false false false :; do
4850 . ./conf$$subs.sh ||
4851 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4852
4853 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4854 if test $ac_delim_n = $ac_delim_num; then
4855 break
4856 elif $ac_last_try; then
4857 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4858 else
4859 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4860 fi
4861done
4862rm -f conf$$subs.sh
4863
4864cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4865cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4866_ACEOF
4867sed -n '
4868h
4869s/^/S["/; s/!.*/"]=/
4870p
4871g
4872s/^[^!]*!//
4873:repl
4874t repl
4875s/'"$ac_delim"'$//
4876t delim
4877:nl
4878h
4879s/\(.\{148\}\)..*/\1/
4880t more1
4881s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4882p
4883n
4884b repl
4885:more1
4886s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4887p
4888g
4889s/.\{148\}//
4890t nl
4891:delim
4892h
4893s/\(.\{148\}\)..*/\1/
4894t more2
4895s/["\\]/\\&/g; s/^/"/; s/$/"/
4896p
4897b
4898:more2
4899s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4900p
4901g
4902s/.\{148\}//
4903t delim
4904' <conf$$subs.awk | sed '
4905/^[^""]/{
4906 N
4907 s/\n//
4908}
4909' >>$CONFIG_STATUS || ac_write_fail=1
4910rm -f conf$$subs.awk
4911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4912_ACAWK
4913cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4914 for (key in S) S_is_set[key] = 1
4915 FS = ""
4916
4917}
4918{
4919 line = $ 0
4920 nfields = split(line, field, "@")
4921 substed = 0
4922 len = length(field[1])
4923 for (i = 2; i < nfields; i++) {
4924 key = field[i]
4925 keylen = length(key)
4926 if (S_is_set[key]) {
4927 value = S[key]
4928 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4929 len += length(value) + length(field[++i])
4930 substed = 1
4931 } else
4932 len += 1 + keylen
4933 }
4934
4935 print line
4936}
4937
4938_ACAWK
4939_ACEOF
4940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4941if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4942 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4943else
4944 cat
4945fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4946 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4947_ACEOF
4948
4949# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4950# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4951# trailing colons and then remove the whole line if VPATH becomes empty
4952# (actually we leave an empty line to preserve line numbers).
4953if test "x$srcdir" = x.; then
4954 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4955h
4956s///
4957s/^/:/
4958s/[ ]*$/:/
4959s/:\$(srcdir):/:/g
4960s/:\${srcdir}:/:/g
4961s/:@srcdir@:/:/g
4962s/^:*//
4963s/:*$//
4964x
4965s/\(=[ ]*\).*/\1/
4966G
4967s/\n//
4968s/^[^=]*=[ ]*$//
4969}'
4970fi
4971
4972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4973fi # test -n "$CONFIG_FILES"
4974
4975
4976eval set X " :F $CONFIG_FILES "
4977shift
4978for ac_tag
4979do
4980 case $ac_tag in
4981 :[FHLC]) ac_mode=$ac_tag; continue;;
4982 esac
4983 case $ac_mode$ac_tag in
4984 :[FHL]*:*);;
4985 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4986 :[FH]-) ac_tag=-:-;;
4987 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4988 esac
4989 ac_save_IFS=$IFS
4990 IFS=:
4991 set x $ac_tag
4992 IFS=$ac_save_IFS
4993 shift
4994 ac_file=$1
4995 shift
4996
4997 case $ac_mode in
4998 :L) ac_source=$1;;
4999 :[FH])
5000 ac_file_inputs=
5001 for ac_f
5002 do
5003 case $ac_f in
5004 -) ac_f="$ac_tmp/stdin";;
5005 *) # Look for the file first in the build tree, then in the source tree
5006 # (if the path is not absolute). The absolute path cannot be DOS-style,
5007 # because $ac_f cannot contain `:'.
5008 test -f "$ac_f" ||
5009 case $ac_f in
5010 [\\/$]*) false;;
5011 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5012 esac ||
5013 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5014 esac
5015 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5016 as_fn_append ac_file_inputs " '$ac_f'"
5017 done
5018
5019 # Let's still pretend it is `configure' which instantiates (i.e., don't
5020 # use $as_me), people would be surprised to read:
5021 # /* config.h. Generated by config.status. */
5022 configure_input='Generated from '`
5023 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5024 `' by configure.'
5025 if test x"$ac_file" != x-; then
5026 configure_input="$ac_file. $configure_input"
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5028$as_echo "$as_me: creating $ac_file" >&6;}
5029 fi
5030 # Neutralize special characters interpreted by sed in replacement strings.
5031 case $configure_input in #(
5032 *\&* | *\|* | *\\* )
5033 ac_sed_conf_input=`$as_echo "$configure_input" |
5034 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5035 *) ac_sed_conf_input=$configure_input;;
5036 esac
5037
5038 case $ac_tag in
5039 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5040 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5041 esac
5042 ;;
5043 esac
5044
5045 ac_dir=`$as_dirname -- "$ac_file" ||
5046$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5047 X"$ac_file" : 'X\(//\)[^/]' \| \
5048 X"$ac_file" : 'X\(//\)$' \| \
5049 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5050$as_echo X"$ac_file" |
5051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5052 s//\1/
5053 q
5054 }
5055 /^X\(\/\/\)[^/].*/{
5056 s//\1/
5057 q
5058 }
5059 /^X\(\/\/\)$/{
5060 s//\1/
5061 q
5062 }
5063 /^X\(\/\).*/{
5064 s//\1/
5065 q
5066 }
5067 s/.*/./; q'`
5068 as_dir="$ac_dir"; as_fn_mkdir_p
5069 ac_builddir=.
5070
5071case "$ac_dir" in
5072.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5073*)
5074 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5075 # A ".." for each directory in $ac_dir_suffix.
5076 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5077 case $ac_top_builddir_sub in
5078 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5079 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5080 esac ;;
5081esac
5082ac_abs_top_builddir=$ac_pwd
5083ac_abs_builddir=$ac_pwd$ac_dir_suffix
5084# for backward compatibility:
5085ac_top_builddir=$ac_top_build_prefix
5086
5087case $srcdir in
5088 .) # We are building in place.
5089 ac_srcdir=.
5090 ac_top_srcdir=$ac_top_builddir_sub
5091 ac_abs_top_srcdir=$ac_pwd ;;
5092 [\\/]* | ?:[\\/]* ) # Absolute name.
5093 ac_srcdir=$srcdir$ac_dir_suffix;
5094 ac_top_srcdir=$srcdir
5095 ac_abs_top_srcdir=$srcdir ;;
5096 *) # Relative name.
5097 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5098 ac_top_srcdir=$ac_top_build_prefix$srcdir
5099 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5100esac
5101ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5102
5103
5104 case $ac_mode in
5105 :F)
5106 #
5107 # CONFIG_FILE
5108 #
5109
5110 case $INSTALL in
5111 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5112 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5113 esac
5114_ACEOF
5115
5116cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5117# If the template does not know about datarootdir, expand it.
5118# FIXME: This hack should be removed a few years after 2.60.
5119ac_datarootdir_hack=; ac_datarootdir_seen=
5120ac_sed_dataroot='
5121/datarootdir/ {
5122 p
5123 q
5124}
5125/@datadir@/p
5126/@docdir@/p
5127/@infodir@/p
5128/@localedir@/p
5129/@mandir@/p'
5130case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5131*datarootdir*) ac_datarootdir_seen=yes;;
5132*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5134$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5135_ACEOF
5136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5137 ac_datarootdir_hack='
5138 s&@datadir@&$datadir&g
5139 s&@docdir@&$docdir&g
5140 s&@infodir@&$infodir&g
5141 s&@localedir@&$localedir&g
5142 s&@mandir@&$mandir&g
5143 s&\\\${datarootdir}&$datarootdir&g' ;;
5144esac
5145_ACEOF
5146
5147# Neutralize VPATH when `$srcdir' = `.'.
5148# Shell code in configure.ac might set extrasub.
5149# FIXME: do we really want to maintain this feature?
5150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5151ac_sed_extra="$ac_vpsub
5152$extrasub
5153_ACEOF
5154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5155:t
5156/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5157s|@configure_input@|$ac_sed_conf_input|;t t
5158s&@top_builddir@&$ac_top_builddir_sub&;t t
5159s&@top_build_prefix@&$ac_top_build_prefix&;t t
5160s&@srcdir@&$ac_srcdir&;t t
5161s&@abs_srcdir@&$ac_abs_srcdir&;t t
5162s&@top_srcdir@&$ac_top_srcdir&;t t
5163s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5164s&@builddir@&$ac_builddir&;t t
5165s&@abs_builddir@&$ac_abs_builddir&;t t
5166s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5167s&@INSTALL@&$ac_INSTALL&;t t
5168$ac_datarootdir_hack
5169"
5170eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5171 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5172
5173test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5174 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5175 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5176 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5178which seems to be undefined. Please make sure it is defined" >&5
5179$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5180which seems to be undefined. Please make sure it is defined" >&2;}
5181
5182 rm -f "$ac_tmp/stdin"
5183 case $ac_file in
5184 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5185 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5186 esac \
5187 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5188 ;;
5189
5190
5191
5192 esac
5193
5194done # for ac_tag
5195
5196
5197as_fn_exit 0
5198_ACEOF
5199ac_clean_files=$ac_clean_files_save
5200
5201test $ac_write_fail = 0 ||
5202 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5203
5204
5205# configure is writing to config.log, and then calls config.status.
5206# config.status does its own redirection, appending to config.log.
5207# Unfortunately, on DOS this fails, as config.log is still kept open
5208# by configure, so config.status won't be able to write to it; its
5209# output is simply discarded. So we exec the FD to /dev/null,
5210# effectively closing config.log, so it can be properly (re)opened and
5211# appended to by config.status. When coming back to configure, we
5212# need to make the FD available again.
5213if test "$no_create" != yes; then
5214 ac_cs_success=:
5215 ac_config_status_args=
5216 test "$silent" = yes &&
5217 ac_config_status_args="$ac_config_status_args --quiet"
5218 exec 5>/dev/null
5219 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5220 exec 5>>config.log
5221 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5222 # would make configure fail if this is the last instruction.
5223 $ac_cs_success || as_fn_exit 1
5224fi
5225if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5227$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5228fi
5229
Note: See TracBrowser for help on using the repository browser.