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

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

Strip test added

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