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

Last change on this file since 37389 was 37389, checked in by anupama, 14 months ago

Make configure script for mg/mgpp choose between which Java framework to set as part of the JNILDFlAGS variable on a Mac, depending on version of xcode compile tools installed. Tested in separate bash script. Committing now in order to test with release-kit.

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