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

Last change on this file since 30751 was 30751, checked in by davidb, 7 years ago

Another attempt to get javagdbm compiled on el capitan Mac 10.11. So far, the jni_md is still not found because the C/CXX/JNICFLAGS set are not propagated. The JNICFLAGS are explicity cleared in this configure file, so trying to set it correctly at this level.

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