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

Last change on this file since 25169 was 25169, checked in by jmt12, 12 years ago

Propagating ARCH_DEP_FLAGS. It appears that you need to at least reissue the AC_SUBST command even for variables that have been exported in 'higher' configures

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