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

Last change on this file was 35578, checked in by davidb, 3 years ago

No longer want JAVACFLAGS set to default vals if not already set

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