root/main/trunk/greenstone2/common-src/configure @ 26565

Revision 26565, 219.0 KB (checked in by ak19, 7 years ago)

Trying to get the mac release binary to install correctly again. It was generating a darwin32 subfolder inside the cgi-bin folder, but expecting a darwin subfolder instead. The svn version works and just generates darwin as a subfolder. Therefore, changed the test in common-src's configure.in to determine what the folder name should be based more literally on the comments. It used to find out whether the gsdlarch bit-value was to be used in naming gsdlos folders by testing whether a gsdlos subfolder existed in toplevel's bin. Now it performs the test by checking whether a gsdlos-gsdlarch subfolder exists in bin, and if not, just not using the gsdlarch variable in the naming scheme. Need to test it on release-kit after commit.

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