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

Last change on this file since 24873 was 23356, checked in by sjm84, 13 years ago

Updated several configure scripts and Makefiles to make use of the JAVA, JAVAC and JAVACFLAGS environment variables, also added a --disable-java option to several of the configure scripts

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