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

Last change on this file since 26706 was 26706, checked in by davidb, 9 years ago

Companion 'configure' script generated from latest version of configure.in

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 145.0 KB
Line 
1#! /bin/sh
2# From configure.in Revision: 26705 .
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/include || test -d $JAVA_HOME/../Headers)
3702then
3703
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $JAVA_HOME" >&5
3705$as_echo "found in $JAVA_HOME" >&6; }
3706else
3707 as_fn_error $? "not found in \$JAVA_HOME" "$LINENO" 5
3708fi
3709
3710# TODO: Check for specific header files in the JDK, or
3711# functions/definitions within those headers?
3712
3713# TODO: guess which include directory to use under the JDK
3714
3715# Extract the first word of "javah", so it can be a program name with args.
3716set dummy javah; ac_word=$2
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3718$as_echo_n "checking for $ac_word... " >&6; }
3719if ${ac_cv_path_javagdbm_cv_path_javah+:} false; then :
3720 $as_echo_n "(cached) " >&6
3721else
3722 case $javagdbm_cv_path_javah in
3723 [\\/]* | ?:[\\/]*)
3724 ac_cv_path_javagdbm_cv_path_javah="$javagdbm_cv_path_javah" # Let the user override the test with a path.
3725 ;;
3726 *)
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728for as_dir in $PATH
3729do
3730 IFS=$as_save_IFS
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3734 ac_cv_path_javagdbm_cv_path_javah="$as_dir/$ac_word$ac_exec_ext"
3735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3736 break 2
3737 fi
3738done
3739 done
3740IFS=$as_save_IFS
3741
3742 test -z "$ac_cv_path_javagdbm_cv_path_javah" && ac_cv_path_javagdbm_cv_path_javah="missing_javah"
3743 ;;
3744esac
3745fi
3746javagdbm_cv_path_javah=$ac_cv_path_javagdbm_cv_path_javah
3747if test -n "$javagdbm_cv_path_javah"; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $javagdbm_cv_path_javah" >&5
3749$as_echo "$javagdbm_cv_path_javah" >&6; }
3750else
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752$as_echo "no" >&6; }
3753fi
3754
3755
3756if test "$javagdbm_cv_path_javah" = missing_javah; then
3757 as_fn_error $? "javah not found." "$LINENO" 5
3758fi
3759
3760# Extract the first word of "java", so it can be a program name with args.
3761set dummy java; ac_word=$2
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763$as_echo_n "checking for $ac_word... " >&6; }
3764if ${ac_cv_path_javagdbm_cv_path_java+:} false; then :
3765 $as_echo_n "(cached) " >&6
3766else
3767 case $javagdbm_cv_path_java in
3768 [\\/]* | ?:[\\/]*)
3769 ac_cv_path_javagdbm_cv_path_java="$javagdbm_cv_path_java" # Let the user override the test with a path.
3770 ;;
3771 *)
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773for as_dir in $PATH
3774do
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3779 ac_cv_path_javagdbm_cv_path_java="$as_dir/$ac_word$ac_exec_ext"
3780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 break 2
3782 fi
3783done
3784 done
3785IFS=$as_save_IFS
3786
3787 test -z "$ac_cv_path_javagdbm_cv_path_java" && ac_cv_path_javagdbm_cv_path_java="missing"
3788 ;;
3789esac
3790fi
3791javagdbm_cv_path_java=$ac_cv_path_javagdbm_cv_path_java
3792if test -n "$javagdbm_cv_path_java"; then
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $javagdbm_cv_path_java" >&5
3794$as_echo "$javagdbm_cv_path_java" >&6; }
3795else
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3797$as_echo "no" >&6; }
3798fi
3799
3800
3801if test "$javagdbm_cv_path_java" = missing; then
3802 as_fn_error $? "java not found." "$LINENO" 5
3803fi
3804
3805# check for gdbm library
3806#AC_CHECK_LIB(gdbm, gdbm_open, [javagdbm_cv_lib_gdbm="-lgdbm"],
3807# [javagdbm_cv_lib_gdbm=no])
3808#if test "$javagdbm_cv_lib_gdbm" = "no"; then
3809# AC_MSG_ERROR([no native gdbm library found.])
3810#fi
3811#LIBS="$javagdbm_cv_lib_gdbm"
3812
3813# gdbm stuff copied from gsdl [kjdon]
3814
3815
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that the GDBM library is available" >&5
3817$as_echo_n "checking that the GDBM library is available... " >&6; }
3818if test ! -z "$gdbmdir" ; then
3819 # look in given directory for header file
3820 if test -r $gdbmdir/include/gdbm.h ; then
3821 GDBM_INCLUDE="-I$gdbmdir/include" ;
3822 elif test -r $gdbmdir/gdbm.h ; then
3823 GDBM_INCLUDE="-I$gdbmdir" ;
3824 fi
3825
3826 # look in given directory for library
3827 if test -r $gdbmdir/libgdbm.a ; then
3828 GDBM_LIBPATH="-L$gdbmdir" ;
3829 elif test -r $gdbmdir/lib/libgdbm.a ; then
3830 GDBM_LIBPATH="-L$gdbmdir/lib" ;
3831 elif test -r $gdbmdir/.libs/libgdbm.a ; then
3832 GDBM_LIBPATH="-L$gdbmdir/.libs" ;
3833 fi
3834
3835 if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbmdir" >&5
3837$as_echo "$gdbmdir" >&6; } ;
3838 else
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&5
3840$as_echo "can't find gdbm.h and libgdbm.a in $gdbmdir" >&6; };
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking looking for GDBM library in default locations" >&5
3842$as_echo_n "checking looking for GDBM library in default locations... " >&6; }
3843 fi
3844fi
3845
3846# look in default path and in /usr/local
3847if test -z "$GDBM_INCLUDE" ; then
3848 # try in system directory
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850/* end confdefs.h. */
3851#include <gdbm.h>
3852
3853int
3854main ()
3855{
3856
3857 ;
3858 return 0;
3859}
3860_ACEOF
3861if ac_fn_c_try_compile "$LINENO"; then :
3862 success=yes
3863else
3864 success=no
3865
3866fi
3867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868
3869 if test $success = "no"; then
3870# last chance - look in /usr/local (eg FreeBSD)
3871 GDBM_LIBPATH=-L/usr/local/lib
3872 GDBM_INCLUDE=-I/usr/local/include
3873 ac_save_CXXFLAGS="$CXXFLAGS"
3874 ac_save_LIBS="$LIBS"
3875 CXXFLAGS="$CXXFLAGS -I/usr/local/include"
3876 LIBS="$LIBS -L/usr/local/lib -lgdbm"
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878/* end confdefs.h. */
3879#include <gdbm.h>
3880#include <stdio.h>
3881
3882int
3883main ()
3884{
3885printf("%s",gdbm_version);
3886 ;
3887 return 0;
3888}
3889_ACEOF
3890if ac_fn_c_try_link "$LINENO"; then :
3891 success=/usr/local
3892else
3893 success=no
3894
3895fi
3896rm -f core conftest.err conftest.$ac_objext \
3897 conftest$ac_exeext conftest.$ac_ext
3898 CXXFLAGS=$ac_save_CXXFLAGS
3899 LIBS=$ac_save_LIBS
3900 fi
3901
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $success" >&5
3903$as_echo "$success" >&6; }
3904 if test $success = "no"; then
3905 as_fn_error $? "GDBM Library not available - cannot install" "$LINENO" 5
3906 fi
3907fi
3908$as_echo "#define HAVE_LIBGDBM 1" >>confdefs.h
3909
3910
3911
3912
3913
3914########## set compiler options
3915# TODO: is there a more appropriate way to guess which switches to use
3916# with which systems/compilers?
3917CFLAGS="-Wall -O2 -fpic"
3918PKG="au.com.pharos.gdbm"
3919
3920
3921
3922
3923# we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
3924# a non-standard Path
3925# is there a better way to do this??
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS to set JNI options" >&5
3927$as_echo_n "checking for OS to set JNI options... " >&6; }
3928# set defaults
3929JNIINC=""
3930JNIPREFIX="lib"
3931JNISUFFIX="so"
3932JNICFLAGS=""
3933JNILDFLAGS="-shared"
3934
3935if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
3937$as_echo "Darwin" >&6; }
3938 JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
3939 JNISUFFIX="jnilib"
3940 JNILDFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
3941fi
3942if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
3944$as_echo "Solaris" >&6; }
3945 JNIINC="-I\$(JAVA_HOME)/include/solaris "
3946fi
3947if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
3949$as_echo "Linux" >&6; }
3950 JNIINC="-I\$(JAVA_HOME)/include/linux -I\$(JAVA_HOME)/include "
3951fi
3952
3953if test "x$crossOS" != "x" ; then
3954 if test "$crossOS" = "windows" ; then
3955 JNIINC="-I../java-windows-include/win32 -I../java-windows-include "
3956 JNICFLAGS="-Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at"
3957 JNIPREFIX=""
3958 JNISUFFIX="dll"
3959 fi
3960fi
3961
3962
3963
3964
3965
3966
3967
3968# write the output
3969ac_config_files="$ac_config_files Makefile jni/Makefile java/Makefile"
3970
3971cat >confcache <<\_ACEOF
3972# This file is a shell script that caches the results of configure
3973# tests run on this system so they can be shared between configure
3974# scripts and configure runs, see configure's option --config-cache.
3975# It is not useful on other systems. If it contains results you don't
3976# want to keep, you may remove or edit it.
3977#
3978# config.status only pays attention to the cache file if you give it
3979# the --recheck option to rerun configure.
3980#
3981# `ac_cv_env_foo' variables (set or unset) will be overridden when
3982# loading this file, other *unset* `ac_cv_foo' will be assigned the
3983# following values.
3984
3985_ACEOF
3986
3987# The following way of writing the cache mishandles newlines in values,
3988# but we know of no workaround that is simple, portable, and efficient.
3989# So, we kill variables containing newlines.
3990# Ultrix sh set writes to stderr and can't be redirected directly,
3991# and sets the high bit in the cache file unless we assign to the vars.
3992(
3993 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3994 eval ac_val=\$$ac_var
3995 case $ac_val in #(
3996 *${as_nl}*)
3997 case $ac_var in #(
3998 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3999$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4000 esac
4001 case $ac_var in #(
4002 _ | IFS | as_nl) ;; #(
4003 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4004 *) { eval $ac_var=; unset $ac_var;} ;;
4005 esac ;;
4006 esac
4007 done
4008
4009 (set) 2>&1 |
4010 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4011 *${as_nl}ac_space=\ *)
4012 # `set' does not quote correctly, so add quotes: double-quote
4013 # substitution turns \\\\ into \\, and sed turns \\ into \.
4014 sed -n \
4015 "s/'/'\\\\''/g;
4016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4017 ;; #(
4018 *)
4019 # `set' quotes correctly as required by POSIX, so do not add quotes.
4020 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4021 ;;
4022 esac |
4023 sort
4024) |
4025 sed '
4026 /^ac_cv_env_/b end
4027 t clear
4028 :clear
4029 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4030 t end
4031 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4032 :end' >>confcache
4033if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4034 if test -w "$cache_file"; then
4035 if test "x$cache_file" != "x/dev/null"; then
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4037$as_echo "$as_me: updating cache $cache_file" >&6;}
4038 if test ! -f "$cache_file" || test -h "$cache_file"; then
4039 cat confcache >"$cache_file"
4040 else
4041 case $cache_file in #(
4042 */* | ?:*)
4043 mv -f confcache "$cache_file"$$ &&
4044 mv -f "$cache_file"$$ "$cache_file" ;; #(
4045 *)
4046 mv -f confcache "$cache_file" ;;
4047 esac
4048 fi
4049 fi
4050 else
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4052$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4053 fi
4054fi
4055rm -f confcache
4056
4057test "x$prefix" = xNONE && prefix=$ac_default_prefix
4058# Let make expand exec_prefix.
4059test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4060
4061# Transform confdefs.h into DEFS.
4062# Protect against shell expansion while executing Makefile rules.
4063# Protect against Makefile macro expansion.
4064#
4065# If the first sed substitution is executed (which looks for macros that
4066# take arguments), then branch to the quote section. Otherwise,
4067# look for a macro that doesn't take arguments.
4068ac_script='
4069:mline
4070/\\$/{
4071 N
4072 s,\\\n,,
4073 b mline
4074}
4075t clear
4076:clear
4077s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4078t quote
4079s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4080t quote
4081b any
4082:quote
4083s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4084s/\[/\\&/g
4085s/\]/\\&/g
4086s/\$/$$/g
4087H
4088:any
4089${
4090 g
4091 s/^\n//
4092 s/\n/ /g
4093 p
4094}
4095'
4096DEFS=`sed -n "$ac_script" confdefs.h`
4097
4098
4099ac_libobjs=
4100ac_ltlibobjs=
4101U=
4102for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4103 # 1. Remove the extension, and $U if already installed.
4104 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4105 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4106 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4107 # will be set to the directory where LIBOBJS objects are built.
4108 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4109 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4110done
4111LIBOBJS=$ac_libobjs
4112
4113LTLIBOBJS=$ac_ltlibobjs
4114
4115
4116
4117: "${CONFIG_STATUS=./config.status}"
4118ac_write_fail=0
4119ac_clean_files_save=$ac_clean_files
4120ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4122$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4123as_write_fail=0
4124cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4125#! $SHELL
4126# Generated by $as_me.
4127# Run this file to recreate the current configuration.
4128# Compiler output produced by configure, useful for debugging
4129# configure, is in config.log if it exists.
4130
4131debug=false
4132ac_cs_recheck=false
4133ac_cs_silent=false
4134
4135SHELL=\${CONFIG_SHELL-$SHELL}
4136export SHELL
4137_ASEOF
4138cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4139## -------------------- ##
4140## M4sh Initialization. ##
4141## -------------------- ##
4142
4143# Be more Bourne compatible
4144DUALCASE=1; export DUALCASE # for MKS sh
4145if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4146 emulate sh
4147 NULLCMD=:
4148 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4149 # is contrary to our usage. Disable this feature.
4150 alias -g '${1+"$@"}'='"$@"'
4151 setopt NO_GLOB_SUBST
4152else
4153 case `(set -o) 2>/dev/null` in #(
4154 *posix*) :
4155 set -o posix ;; #(
4156 *) :
4157 ;;
4158esac
4159fi
4160
4161
4162as_nl='
4163'
4164export as_nl
4165# Printing a long string crashes Solaris 7 /usr/bin/printf.
4166as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4167as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4168as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4169# Prefer a ksh shell builtin over an external printf program on Solaris,
4170# but without wasting forks for bash or zsh.
4171if test -z "$BASH_VERSION$ZSH_VERSION" \
4172 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4173 as_echo='print -r --'
4174 as_echo_n='print -rn --'
4175elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4176 as_echo='printf %s\n'
4177 as_echo_n='printf %s'
4178else
4179 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4180 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4181 as_echo_n='/usr/ucb/echo -n'
4182 else
4183 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4184 as_echo_n_body='eval
4185 arg=$1;
4186 case $arg in #(
4187 *"$as_nl"*)
4188 expr "X$arg" : "X\\(.*\\)$as_nl";
4189 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4190 esac;
4191 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4192 '
4193 export as_echo_n_body
4194 as_echo_n='sh -c $as_echo_n_body as_echo'
4195 fi
4196 export as_echo_body
4197 as_echo='sh -c $as_echo_body as_echo'
4198fi
4199
4200# The user is always right.
4201if test "${PATH_SEPARATOR+set}" != set; then
4202 PATH_SEPARATOR=:
4203 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4204 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4205 PATH_SEPARATOR=';'
4206 }
4207fi
4208
4209
4210# IFS
4211# We need space, tab and new line, in precisely that order. Quoting is
4212# there to prevent editors from complaining about space-tab.
4213# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4214# splitting by setting IFS to empty value.)
4215IFS=" "" $as_nl"
4216
4217# Find who we are. Look in the path if we contain no directory separator.
4218as_myself=
4219case $0 in #((
4220 *[\\/]* ) as_myself=$0 ;;
4221 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222for as_dir in $PATH
4223do
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4227 done
4228IFS=$as_save_IFS
4229
4230 ;;
4231esac
4232# We did not find ourselves, most probably we were run as `sh COMMAND'
4233# in which case we are not to be found in the path.
4234if test "x$as_myself" = x; then
4235 as_myself=$0
4236fi
4237if test ! -f "$as_myself"; then
4238 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4239 exit 1
4240fi
4241
4242# Unset variables that we do not need and which cause bugs (e.g. in
4243# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4244# suppresses any "Segmentation fault" message there. '((' could
4245# trigger a bug in pdksh 5.2.14.
4246for as_var in BASH_ENV ENV MAIL MAILPATH
4247do eval test x\${$as_var+set} = xset \
4248 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4249done
4250PS1='$ '
4251PS2='> '
4252PS4='+ '
4253
4254# NLS nuisances.
4255LC_ALL=C
4256export LC_ALL
4257LANGUAGE=C
4258export LANGUAGE
4259
4260# CDPATH.
4261(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4262
4263
4264# as_fn_error STATUS ERROR [LINENO LOG_FD]
4265# ----------------------------------------
4266# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4267# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4268# script with STATUS, using 1 if that was 0.
4269as_fn_error ()
4270{
4271 as_status=$1; test $as_status -eq 0 && as_status=1
4272 if test "$4"; then
4273 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4274 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4275 fi
4276 $as_echo "$as_me: error: $2" >&2
4277 as_fn_exit $as_status
4278} # as_fn_error
4279
4280
4281# as_fn_set_status STATUS
4282# -----------------------
4283# Set $? to STATUS, without forking.
4284as_fn_set_status ()
4285{
4286 return $1
4287} # as_fn_set_status
4288
4289# as_fn_exit STATUS
4290# -----------------
4291# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4292as_fn_exit ()
4293{
4294 set +e
4295 as_fn_set_status $1
4296 exit $1
4297} # as_fn_exit
4298
4299# as_fn_unset VAR
4300# ---------------
4301# Portably unset VAR.
4302as_fn_unset ()
4303{
4304 { eval $1=; unset $1;}
4305}
4306as_unset=as_fn_unset
4307# as_fn_append VAR VALUE
4308# ----------------------
4309# Append the text in VALUE to the end of the definition contained in VAR. Take
4310# advantage of any shell optimizations that allow amortized linear growth over
4311# repeated appends, instead of the typical quadratic growth present in naive
4312# implementations.
4313if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4314 eval 'as_fn_append ()
4315 {
4316 eval $1+=\$2
4317 }'
4318else
4319 as_fn_append ()
4320 {
4321 eval $1=\$$1\$2
4322 }
4323fi # as_fn_append
4324
4325# as_fn_arith ARG...
4326# ------------------
4327# Perform arithmetic evaluation on the ARGs, and store the result in the
4328# global $as_val. Take advantage of shells that can avoid forks. The arguments
4329# must be portable across $(()) and expr.
4330if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4331 eval 'as_fn_arith ()
4332 {
4333 as_val=$(( $* ))
4334 }'
4335else
4336 as_fn_arith ()
4337 {
4338 as_val=`expr "$@" || test $? -eq 1`
4339 }
4340fi # as_fn_arith
4341
4342
4343if expr a : '\(a\)' >/dev/null 2>&1 &&
4344 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4345 as_expr=expr
4346else
4347 as_expr=false
4348fi
4349
4350if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4351 as_basename=basename
4352else
4353 as_basename=false
4354fi
4355
4356if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4357 as_dirname=dirname
4358else
4359 as_dirname=false
4360fi
4361
4362as_me=`$as_basename -- "$0" ||
4363$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4364 X"$0" : 'X\(//\)$' \| \
4365 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4366$as_echo X/"$0" |
4367 sed '/^.*\/\([^/][^/]*\)\/*$/{
4368 s//\1/
4369 q
4370 }
4371 /^X\/\(\/\/\)$/{
4372 s//\1/
4373 q
4374 }
4375 /^X\/\(\/\).*/{
4376 s//\1/
4377 q
4378 }
4379 s/.*/./; q'`
4380
4381# Avoid depending upon Character Ranges.
4382as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4383as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4384as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4385as_cr_digits='0123456789'
4386as_cr_alnum=$as_cr_Letters$as_cr_digits
4387
4388ECHO_C= ECHO_N= ECHO_T=
4389case `echo -n x` in #(((((
4390-n*)
4391 case `echo 'xy\c'` in
4392 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4393 xy) ECHO_C='\c';;
4394 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4395 ECHO_T=' ';;
4396 esac;;
4397*)
4398 ECHO_N='-n';;
4399esac
4400
4401rm -f conf$$ conf$$.exe conf$$.file
4402if test -d conf$$.dir; then
4403 rm -f conf$$.dir/conf$$.file
4404else
4405 rm -f conf$$.dir
4406 mkdir conf$$.dir 2>/dev/null
4407fi
4408if (echo >conf$$.file) 2>/dev/null; then
4409 if ln -s conf$$.file conf$$ 2>/dev/null; then
4410 as_ln_s='ln -s'
4411 # ... but there are two gotchas:
4412 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4413 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4414 # In both cases, we have to default to `cp -p'.
4415 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4416 as_ln_s='cp -p'
4417 elif ln conf$$.file conf$$ 2>/dev/null; then
4418 as_ln_s=ln
4419 else
4420 as_ln_s='cp -p'
4421 fi
4422else
4423 as_ln_s='cp -p'
4424fi
4425rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4426rmdir conf$$.dir 2>/dev/null
4427
4428
4429# as_fn_mkdir_p
4430# -------------
4431# Create "$as_dir" as a directory, including parents if necessary.
4432as_fn_mkdir_p ()
4433{
4434
4435 case $as_dir in #(
4436 -*) as_dir=./$as_dir;;
4437 esac
4438 test -d "$as_dir" || eval $as_mkdir_p || {
4439 as_dirs=
4440 while :; do
4441 case $as_dir in #(
4442 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4443 *) as_qdir=$as_dir;;
4444 esac
4445 as_dirs="'$as_qdir' $as_dirs"
4446 as_dir=`$as_dirname -- "$as_dir" ||
4447$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4448 X"$as_dir" : 'X\(//\)[^/]' \| \
4449 X"$as_dir" : 'X\(//\)$' \| \
4450 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4451$as_echo X"$as_dir" |
4452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4453 s//\1/
4454 q
4455 }
4456 /^X\(\/\/\)[^/].*/{
4457 s//\1/
4458 q
4459 }
4460 /^X\(\/\/\)$/{
4461 s//\1/
4462 q
4463 }
4464 /^X\(\/\).*/{
4465 s//\1/
4466 q
4467 }
4468 s/.*/./; q'`
4469 test -d "$as_dir" && break
4470 done
4471 test -z "$as_dirs" || eval "mkdir $as_dirs"
4472 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4473
4474
4475} # as_fn_mkdir_p
4476if mkdir -p . 2>/dev/null; then
4477 as_mkdir_p='mkdir -p "$as_dir"'
4478else
4479 test -d ./-p && rmdir ./-p
4480 as_mkdir_p=false
4481fi
4482
4483if test -x / >/dev/null 2>&1; then
4484 as_test_x='test -x'
4485else
4486 if ls -dL / >/dev/null 2>&1; then
4487 as_ls_L_option=L
4488 else
4489 as_ls_L_option=
4490 fi
4491 as_test_x='
4492 eval sh -c '\''
4493 if test -d "$1"; then
4494 test -d "$1/.";
4495 else
4496 case $1 in #(
4497 -*)set "./$1";;
4498 esac;
4499 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4500 ???[sx]*):;;*)false;;esac;fi
4501 '\'' sh
4502 '
4503fi
4504as_executable_p=$as_test_x
4505
4506# Sed expression to map a string onto a valid CPP name.
4507as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4508
4509# Sed expression to map a string onto a valid variable name.
4510as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4511
4512
4513exec 6>&1
4514## ----------------------------------- ##
4515## Main body of $CONFIG_STATUS script. ##
4516## ----------------------------------- ##
4517_ASEOF
4518test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4519
4520cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4521# Save the log message, to keep $0 and so on meaningful, and to
4522# report actual input values of CONFIG_FILES etc. instead of their
4523# values after options handling.
4524ac_log="
4525This file was extended by $as_me, which was
4526generated by GNU Autoconf 2.68. Invocation command line was
4527
4528 CONFIG_FILES = $CONFIG_FILES
4529 CONFIG_HEADERS = $CONFIG_HEADERS
4530 CONFIG_LINKS = $CONFIG_LINKS
4531 CONFIG_COMMANDS = $CONFIG_COMMANDS
4532 $ $0 $@
4533
4534on `(hostname || uname -n) 2>/dev/null | sed 1q`
4535"
4536
4537_ACEOF
4538
4539case $ac_config_files in *"
4540"*) set x $ac_config_files; shift; ac_config_files=$*;;
4541esac
4542
4543
4544
4545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4546# Files that config.status was made for.
4547config_files="$ac_config_files"
4548
4549_ACEOF
4550
4551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4552ac_cs_usage="\
4553\`$as_me' instantiates files and other configuration actions
4554from templates according to the current configuration. Unless the files
4555and actions are specified as TAGs, all are instantiated by default.
4556
4557Usage: $0 [OPTION]... [TAG]...
4558
4559 -h, --help print this help, then exit
4560 -V, --version print version number and configuration settings, then exit
4561 --config print configuration, then exit
4562 -q, --quiet, --silent
4563 do not print progress messages
4564 -d, --debug don't remove temporary files
4565 --recheck update $as_me by reconfiguring in the same conditions
4566 --file=FILE[:TEMPLATE]
4567 instantiate the configuration file FILE
4568
4569Configuration files:
4570$config_files
4571
4572Report bugs to the package provider."
4573
4574_ACEOF
4575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4576ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4577ac_cs_version="\\
4578config.status
4579configured by $0, generated by GNU Autoconf 2.68,
4580 with options \\"\$ac_cs_config\\"
4581
4582Copyright (C) 2010 Free Software Foundation, Inc.
4583This config.status script is free software; the Free Software Foundation
4584gives unlimited permission to copy, distribute and modify it."
4585
4586ac_pwd='$ac_pwd'
4587srcdir='$srcdir'
4588INSTALL='$INSTALL'
4589test -n "\$AWK" || AWK=awk
4590_ACEOF
4591
4592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4593# The default lists apply if the user does not specify any file.
4594ac_need_defaults=:
4595while test $# != 0
4596do
4597 case $1 in
4598 --*=?*)
4599 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4600 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4601 ac_shift=:
4602 ;;
4603 --*=)
4604 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4605 ac_optarg=
4606 ac_shift=:
4607 ;;
4608 *)
4609 ac_option=$1
4610 ac_optarg=$2
4611 ac_shift=shift
4612 ;;
4613 esac
4614
4615 case $ac_option in
4616 # Handling of the options.
4617 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4618 ac_cs_recheck=: ;;
4619 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4620 $as_echo "$ac_cs_version"; exit ;;
4621 --config | --confi | --conf | --con | --co | --c )
4622 $as_echo "$ac_cs_config"; exit ;;
4623 --debug | --debu | --deb | --de | --d | -d )
4624 debug=: ;;
4625 --file | --fil | --fi | --f )
4626 $ac_shift
4627 case $ac_optarg in
4628 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4629 '') as_fn_error $? "missing file argument" ;;
4630 esac
4631 as_fn_append CONFIG_FILES " '$ac_optarg'"
4632 ac_need_defaults=false;;
4633 --he | --h | --help | --hel | -h )
4634 $as_echo "$ac_cs_usage"; exit ;;
4635 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4636 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4637 ac_cs_silent=: ;;
4638
4639 # This is an error.
4640 -*) as_fn_error $? "unrecognized option: \`$1'
4641Try \`$0 --help' for more information." ;;
4642
4643 *) as_fn_append ac_config_targets " $1"
4644 ac_need_defaults=false ;;
4645
4646 esac
4647 shift
4648done
4649
4650ac_configure_extra_args=
4651
4652if $ac_cs_silent; then
4653 exec 6>/dev/null
4654 ac_configure_extra_args="$ac_configure_extra_args --silent"
4655fi
4656
4657_ACEOF
4658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4659if \$ac_cs_recheck; then
4660 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4661 shift
4662 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4663 CONFIG_SHELL='$SHELL'
4664 export CONFIG_SHELL
4665 exec "\$@"
4666fi
4667
4668_ACEOF
4669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4670exec 5>>config.log
4671{
4672 echo
4673 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4674## Running $as_me. ##
4675_ASBOX
4676 $as_echo "$ac_log"
4677} >&5
4678
4679_ACEOF
4680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4681_ACEOF
4682
4683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4684
4685# Handling of arguments.
4686for ac_config_target in $ac_config_targets
4687do
4688 case $ac_config_target in
4689 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4690 "jni/Makefile") CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
4691 "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
4692
4693 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
4694 esac
4695done
4696
4697
4698# If the user did not use the arguments to specify the items to instantiate,
4699# then the envvar interface is used. Set only those that are not.
4700# We use the long form for the default assignment because of an extremely
4701# bizarre bug on SunOS 4.1.3.
4702if $ac_need_defaults; then
4703 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4704fi
4705
4706# Have a temporary directory for convenience. Make it in the build tree
4707# simply because there is no reason against having it here, and in addition,
4708# creating and moving files from /tmp can sometimes cause problems.
4709# Hook for its removal unless debugging.
4710# Note that there is a small window in which the directory will not be cleaned:
4711# after its creation but before its name has been assigned to `$tmp'.
4712$debug ||
4713{
4714 tmp= ac_tmp=
4715 trap 'exit_status=$?
4716 : "${ac_tmp:=$tmp}"
4717 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4718' 0
4719 trap 'as_fn_exit 1' 1 2 13 15
4720}
4721# Create a (secure) tmp directory for tmp files.
4722
4723{
4724 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4725 test -d "$tmp"
4726} ||
4727{
4728 tmp=./conf$$-$RANDOM
4729 (umask 077 && mkdir "$tmp")
4730} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4731ac_tmp=$tmp
4732
4733# Set up the scripts for CONFIG_FILES section.
4734# No need to generate them if there are no CONFIG_FILES.
4735# This happens for instance with `./config.status config.h'.
4736if test -n "$CONFIG_FILES"; then
4737
4738
4739ac_cr=`echo X | tr X '\015'`
4740# On cygwin, bash can eat \r inside `` if the user requested igncr.
4741# But we know of no other shell where ac_cr would be empty at this
4742# point, so we can use a bashism as a fallback.
4743if test "x$ac_cr" = x; then
4744 eval ac_cr=\$\'\\r\'
4745fi
4746ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4747if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4748 ac_cs_awk_cr='\\r'
4749else
4750 ac_cs_awk_cr=$ac_cr
4751fi
4752
4753echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4754_ACEOF
4755
4756
4757{
4758 echo "cat >conf$$subs.awk <<_ACEOF" &&
4759 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4760 echo "_ACEOF"
4761} >conf$$subs.sh ||
4762 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4763ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4764ac_delim='%!_!# '
4765for ac_last_try in false false false false false :; do
4766 . ./conf$$subs.sh ||
4767 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4768
4769 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4770 if test $ac_delim_n = $ac_delim_num; then
4771 break
4772 elif $ac_last_try; then
4773 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4774 else
4775 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4776 fi
4777done
4778rm -f conf$$subs.sh
4779
4780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4781cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4782_ACEOF
4783sed -n '
4784h
4785s/^/S["/; s/!.*/"]=/
4786p
4787g
4788s/^[^!]*!//
4789:repl
4790t repl
4791s/'"$ac_delim"'$//
4792t delim
4793:nl
4794h
4795s/\(.\{148\}\)..*/\1/
4796t more1
4797s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4798p
4799n
4800b repl
4801:more1
4802s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4803p
4804g
4805s/.\{148\}//
4806t nl
4807:delim
4808h
4809s/\(.\{148\}\)..*/\1/
4810t more2
4811s/["\\]/\\&/g; s/^/"/; s/$/"/
4812p
4813b
4814:more2
4815s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4816p
4817g
4818s/.\{148\}//
4819t delim
4820' <conf$$subs.awk | sed '
4821/^[^""]/{
4822 N
4823 s/\n//
4824}
4825' >>$CONFIG_STATUS || ac_write_fail=1
4826rm -f conf$$subs.awk
4827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4828_ACAWK
4829cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4830 for (key in S) S_is_set[key] = 1
4831 FS = ""
4832
4833}
4834{
4835 line = $ 0
4836 nfields = split(line, field, "@")
4837 substed = 0
4838 len = length(field[1])
4839 for (i = 2; i < nfields; i++) {
4840 key = field[i]
4841 keylen = length(key)
4842 if (S_is_set[key]) {
4843 value = S[key]
4844 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4845 len += length(value) + length(field[++i])
4846 substed = 1
4847 } else
4848 len += 1 + keylen
4849 }
4850
4851 print line
4852}
4853
4854_ACAWK
4855_ACEOF
4856cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4857if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4858 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4859else
4860 cat
4861fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4862 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4863_ACEOF
4864
4865# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4866# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4867# trailing colons and then remove the whole line if VPATH becomes empty
4868# (actually we leave an empty line to preserve line numbers).
4869if test "x$srcdir" = x.; then
4870 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4871h
4872s///
4873s/^/:/
4874s/[ ]*$/:/
4875s/:\$(srcdir):/:/g
4876s/:\${srcdir}:/:/g
4877s/:@srcdir@:/:/g
4878s/^:*//
4879s/:*$//
4880x
4881s/\(=[ ]*\).*/\1/
4882G
4883s/\n//
4884s/^[^=]*=[ ]*$//
4885}'
4886fi
4887
4888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4889fi # test -n "$CONFIG_FILES"
4890
4891
4892eval set X " :F $CONFIG_FILES "
4893shift
4894for ac_tag
4895do
4896 case $ac_tag in
4897 :[FHLC]) ac_mode=$ac_tag; continue;;
4898 esac
4899 case $ac_mode$ac_tag in
4900 :[FHL]*:*);;
4901 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
4902 :[FH]-) ac_tag=-:-;;
4903 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4904 esac
4905 ac_save_IFS=$IFS
4906 IFS=:
4907 set x $ac_tag
4908 IFS=$ac_save_IFS
4909 shift
4910 ac_file=$1
4911 shift
4912
4913 case $ac_mode in
4914 :L) ac_source=$1;;
4915 :[FH])
4916 ac_file_inputs=
4917 for ac_f
4918 do
4919 case $ac_f in
4920 -) ac_f="$ac_tmp/stdin";;
4921 *) # Look for the file first in the build tree, then in the source tree
4922 # (if the path is not absolute). The absolute path cannot be DOS-style,
4923 # because $ac_f cannot contain `:'.
4924 test -f "$ac_f" ||
4925 case $ac_f in
4926 [\\/$]*) false;;
4927 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4928 esac ||
4929 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
4930 esac
4931 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4932 as_fn_append ac_file_inputs " '$ac_f'"
4933 done
4934
4935 # Let's still pretend it is `configure' which instantiates (i.e., don't
4936 # use $as_me), people would be surprised to read:
4937 # /* config.h. Generated by config.status. */
4938 configure_input='Generated from '`
4939 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4940 `' by configure.'
4941 if test x"$ac_file" != x-; then
4942 configure_input="$ac_file. $configure_input"
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4944$as_echo "$as_me: creating $ac_file" >&6;}
4945 fi
4946 # Neutralize special characters interpreted by sed in replacement strings.
4947 case $configure_input in #(
4948 *\&* | *\|* | *\\* )
4949 ac_sed_conf_input=`$as_echo "$configure_input" |
4950 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4951 *) ac_sed_conf_input=$configure_input;;
4952 esac
4953
4954 case $ac_tag in
4955 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4956 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4957 esac
4958 ;;
4959 esac
4960
4961 ac_dir=`$as_dirname -- "$ac_file" ||
4962$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4963 X"$ac_file" : 'X\(//\)[^/]' \| \
4964 X"$ac_file" : 'X\(//\)$' \| \
4965 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4966$as_echo X"$ac_file" |
4967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4968 s//\1/
4969 q
4970 }
4971 /^X\(\/\/\)[^/].*/{
4972 s//\1/
4973 q
4974 }
4975 /^X\(\/\/\)$/{
4976 s//\1/
4977 q
4978 }
4979 /^X\(\/\).*/{
4980 s//\1/
4981 q
4982 }
4983 s/.*/./; q'`
4984 as_dir="$ac_dir"; as_fn_mkdir_p
4985 ac_builddir=.
4986
4987case "$ac_dir" in
4988.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4989*)
4990 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4991 # A ".." for each directory in $ac_dir_suffix.
4992 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4993 case $ac_top_builddir_sub in
4994 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4995 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4996 esac ;;
4997esac
4998ac_abs_top_builddir=$ac_pwd
4999ac_abs_builddir=$ac_pwd$ac_dir_suffix
5000# for backward compatibility:
5001ac_top_builddir=$ac_top_build_prefix
5002
5003case $srcdir in
5004 .) # We are building in place.
5005 ac_srcdir=.
5006 ac_top_srcdir=$ac_top_builddir_sub
5007 ac_abs_top_srcdir=$ac_pwd ;;
5008 [\\/]* | ?:[\\/]* ) # Absolute name.
5009 ac_srcdir=$srcdir$ac_dir_suffix;
5010 ac_top_srcdir=$srcdir
5011 ac_abs_top_srcdir=$srcdir ;;
5012 *) # Relative name.
5013 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5014 ac_top_srcdir=$ac_top_build_prefix$srcdir
5015 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5016esac
5017ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5018
5019
5020 case $ac_mode in
5021 :F)
5022 #
5023 # CONFIG_FILE
5024 #
5025
5026 case $INSTALL in
5027 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5028 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5029 esac
5030_ACEOF
5031
5032cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5033# If the template does not know about datarootdir, expand it.
5034# FIXME: This hack should be removed a few years after 2.60.
5035ac_datarootdir_hack=; ac_datarootdir_seen=
5036ac_sed_dataroot='
5037/datarootdir/ {
5038 p
5039 q
5040}
5041/@datadir@/p
5042/@docdir@/p
5043/@infodir@/p
5044/@localedir@/p
5045/@mandir@/p'
5046case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5047*datarootdir*) ac_datarootdir_seen=yes;;
5048*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5050$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5051_ACEOF
5052cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5053 ac_datarootdir_hack='
5054 s&@datadir@&$datadir&g
5055 s&@docdir@&$docdir&g
5056 s&@infodir@&$infodir&g
5057 s&@localedir@&$localedir&g
5058 s&@mandir@&$mandir&g
5059 s&\\\${datarootdir}&$datarootdir&g' ;;
5060esac
5061_ACEOF
5062
5063# Neutralize VPATH when `$srcdir' = `.'.
5064# Shell code in configure.ac might set extrasub.
5065# FIXME: do we really want to maintain this feature?
5066cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5067ac_sed_extra="$ac_vpsub
5068$extrasub
5069_ACEOF
5070cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5071:t
5072/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5073s|@configure_input@|$ac_sed_conf_input|;t t
5074s&@top_builddir@&$ac_top_builddir_sub&;t t
5075s&@top_build_prefix@&$ac_top_build_prefix&;t t
5076s&@srcdir@&$ac_srcdir&;t t
5077s&@abs_srcdir@&$ac_abs_srcdir&;t t
5078s&@top_srcdir@&$ac_top_srcdir&;t t
5079s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5080s&@builddir@&$ac_builddir&;t t
5081s&@abs_builddir@&$ac_abs_builddir&;t t
5082s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5083s&@INSTALL@&$ac_INSTALL&;t t
5084$ac_datarootdir_hack
5085"
5086eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5087 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5088
5089test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5090 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5091 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5092 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5094which seems to be undefined. Please make sure it is defined" >&5
5095$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5096which seems to be undefined. Please make sure it is defined" >&2;}
5097
5098 rm -f "$ac_tmp/stdin"
5099 case $ac_file in
5100 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5101 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5102 esac \
5103 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5104 ;;
5105
5106
5107
5108 esac
5109
5110done # for ac_tag
5111
5112
5113as_fn_exit 0
5114_ACEOF
5115ac_clean_files=$ac_clean_files_save
5116
5117test $ac_write_fail = 0 ||
5118 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5119
5120
5121# configure is writing to config.log, and then calls config.status.
5122# config.status does its own redirection, appending to config.log.
5123# Unfortunately, on DOS this fails, as config.log is still kept open
5124# by configure, so config.status won't be able to write to it; its
5125# output is simply discarded. So we exec the FD to /dev/null,
5126# effectively closing config.log, so it can be properly (re)opened and
5127# appended to by config.status. When coming back to configure, we
5128# need to make the FD available again.
5129if test "$no_create" != yes; then
5130 ac_cs_success=:
5131 ac_config_status_args=
5132 test "$silent" = yes &&
5133 ac_config_status_args="$ac_config_status_args --quiet"
5134 exec 5>/dev/null
5135 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5136 exec 5>>config.log
5137 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5138 # would make configure fail if this is the last instruction.
5139 $ac_cs_success || as_fn_exit 1
5140fi
5141if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5143$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5144fi
5145
Note: See TracBrowser for help on using the repository browser.