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

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

Strip test added

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