source: main/trunk/greenstone2/common-src/indexers/mg/configure@ 26656

Last change on this file since 26656 was 26656, checked in by davidb, 11 years ago

Support for cross-compilation added. In addition to the CrossOS check, this particular set of changes focus on flags that assist cross-compilation with JNI

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