source: main/branches/64_bit_Greenstone/greenstone2/build-src/configure@ 23508

Last change on this file since 23508 was 23508, checked in by sjm84, 14 years ago

Committing 64 bit changes into the branch

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