source: main/trunk/greenstone2/build-src/configure@ 26663

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

Support for cross-compilation added -- the CrossOS check

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