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

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

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

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