root/main/trunk/greenstone2/runtime-src/configure @ 23976

Revision 23356, 219.3 KB (checked in by sjm84, 9 years ago)

Updated several configure scripts and Makefiles to make use of the JAVA, JAVAC and JAVACFLAGS environment variables, also added a --disable-java option to several of the configure scripts

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