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

Last change on this file since 30867 was 30867, checked in by ak19, 8 years ago

Used a linux machine to run autoconf on the modified configure.in just committed, in order to generate the configure file from it. Committing this configure file.

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