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

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

Committing 64 bit changes into the branch

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