source: main/branches/64_bit_Greenstone/greenstone2/common-src/indexers/mg/configure@ 23508

Last change on this file since 23508 was 23508, checked in by sjm84, 14 years ago

Committing 64 bit changes into the branch

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