source: main/branches/64_bit_Greenstone/greenstone2/configure@ 23575

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

Committing 64 bit changes into the branch

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