source: main/trunk/greenstone2/common-src/configure@ 26808

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

Strip test added

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