1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
199  if (eval "$as_required") 2>/dev/null; then :
200  as_have_required=yes
201else
202  as_have_required=no
203fi
204  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
205
206else
207  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208as_found=false
209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210do
211  IFS=$as_save_IFS
212  test -z "$as_dir" && as_dir=.
213  as_found=:
214  case $as_dir in #(
215	 /*)
216	   for as_base in sh bash ksh sh5; do
217	     # Try only shells that exist, to save several forks.
218	     as_shell=$as_dir/$as_base
219	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
221  CONFIG_SHELL=$as_shell as_have_required=yes
222		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
223  break 2
224fi
225fi
226	   done;;
227       esac
228  as_found=false
229done
230$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
232  CONFIG_SHELL=$SHELL as_have_required=yes
233fi; }
234IFS=$as_save_IFS
235
236
237      if test "x$CONFIG_SHELL" != x; then :
238  export CONFIG_SHELL
239             # We cannot yet assume a decent shell, so we have to provide a
240# neutralization value for shells without unset; and this also
241# works around shells that cannot unset nonexistent variables.
242# Preserve -v and -x to the replacement shell.
243BASH_ENV=/dev/null
244ENV=/dev/null
245(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
246case $- in # ((((
247  *v*x* | *x*v* ) as_opts=-vx ;;
248  *v* ) as_opts=-v ;;
249  *x* ) as_opts=-x ;;
250  * ) as_opts= ;;
251esac
252exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253# Admittedly, this is quite paranoid, since all the known shells bail
254# out after a failed `exec'.
255$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
256exit 255
257fi
258
259    if test x$as_have_required = xno; then :
260  $as_echo "$0: This script requires a shell more modern than all"
261  $as_echo "$0: the shells that I found on your system."
262  if test x${ZSH_VERSION+set} = xset ; then
263    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
264    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
265  else
266    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
267$0: including any error possibly output before this
268$0: message. Then install a modern shell, or manually run
269$0: the script under such a shell if you do have one."
270  fi
271  exit 1
272fi
273fi
274fi
275SHELL=${CONFIG_SHELL-/bin/sh}
276export SHELL
277# Unset more variables known to interfere with behavior of common tools.
278CLICOLOR_FORCE= GREP_OPTIONS=
279unset CLICOLOR_FORCE GREP_OPTIONS
280
281## --------------------- ##
282## M4sh Shell Functions. ##
283## --------------------- ##
284# as_fn_unset VAR
285# ---------------
286# Portably unset VAR.
287as_fn_unset ()
288{
289  { eval $1=; unset $1;}
290}
291as_unset=as_fn_unset
292
293# as_fn_set_status STATUS
294# -----------------------
295# Set $? to STATUS, without forking.
296as_fn_set_status ()
297{
298  return $1
299} # as_fn_set_status
300
301# as_fn_exit STATUS
302# -----------------
303# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
304as_fn_exit ()
305{
306  set +e
307  as_fn_set_status $1
308  exit $1
309} # as_fn_exit
310
311# as_fn_mkdir_p
312# -------------
313# Create "$as_dir" as a directory, including parents if necessary.
314as_fn_mkdir_p ()
315{
316
317  case $as_dir in #(
318  -*) as_dir=./$as_dir;;
319  esac
320  test -d "$as_dir" || eval $as_mkdir_p || {
321    as_dirs=
322    while :; do
323      case $as_dir in #(
324      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
325      *) as_qdir=$as_dir;;
326      esac
327      as_dirs="'$as_qdir' $as_dirs"
328      as_dir=`$as_dirname -- "$as_dir" ||
329$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
330	 X"$as_dir" : 'X\(//\)[^/]' \| \
331	 X"$as_dir" : 'X\(//\)$' \| \
332	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
333$as_echo X"$as_dir" |
334    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335	    s//\1/
336	    q
337	  }
338	  /^X\(\/\/\)[^/].*/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)$/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\).*/{
347	    s//\1/
348	    q
349	  }
350	  s/.*/./; q'`
351      test -d "$as_dir" && break
352    done
353    test -z "$as_dirs" || eval "mkdir $as_dirs"
354  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
355
356
357} # as_fn_mkdir_p
358
359# as_fn_executable_p FILE
360# -----------------------
361# Test if FILE is an executable regular file.
362as_fn_executable_p ()
363{
364  test -f "$1" && test -x "$1"
365} # as_fn_executable_p
366# as_fn_append VAR VALUE
367# ----------------------
368# Append the text in VALUE to the end of the definition contained in VAR. Take
369# advantage of any shell optimizations that allow amortized linear growth over
370# repeated appends, instead of the typical quadratic growth present in naive
371# implementations.
372if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
373  eval 'as_fn_append ()
374  {
375    eval $1+=\$2
376  }'
377else
378  as_fn_append ()
379  {
380    eval $1=\$$1\$2
381  }
382fi # as_fn_append
383
384# as_fn_arith ARG...
385# ------------------
386# Perform arithmetic evaluation on the ARGs, and store the result in the
387# global $as_val. Take advantage of shells that can avoid forks. The arguments
388# must be portable across $(()) and expr.
389if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
390  eval 'as_fn_arith ()
391  {
392    as_val=$(( $* ))
393  }'
394else
395  as_fn_arith ()
396  {
397    as_val=`expr "$@" || test $? -eq 1`
398  }
399fi # as_fn_arith
400
401
402# as_fn_error STATUS ERROR [LINENO LOG_FD]
403# ----------------------------------------
404# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
405# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
406# script with STATUS, using 1 if that was 0.
407as_fn_error ()
408{
409  as_status=$1; test $as_status -eq 0 && as_status=1
410  if test "$4"; then
411    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
412    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
413  fi
414  $as_echo "$as_me: error: $2" >&2
415  as_fn_exit $as_status
416} # as_fn_error
417
418if expr a : '\(a\)' >/dev/null 2>&1 &&
419   test "X`expr 00001 : '.*\(...\)'`" = X001; then
420  as_expr=expr
421else
422  as_expr=false
423fi
424
425if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
426  as_basename=basename
427else
428  as_basename=false
429fi
430
431if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
432  as_dirname=dirname
433else
434  as_dirname=false
435fi
436
437as_me=`$as_basename -- "$0" ||
438$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
439	 X"$0" : 'X\(//\)$' \| \
440	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
441$as_echo X/"$0" |
442    sed '/^.*\/\([^/][^/]*\)\/*$/{
443	    s//\1/
444	    q
445	  }
446	  /^X\/\(\/\/\)$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\).*/{
451	    s//\1/
452	    q
453	  }
454	  s/.*/./; q'`
455
456# Avoid depending upon Character Ranges.
457as_cr_letters='abcdefghijklmnopqrstuvwxyz'
458as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
459as_cr_Letters=$as_cr_letters$as_cr_LETTERS
460as_cr_digits='0123456789'
461as_cr_alnum=$as_cr_Letters$as_cr_digits
462
463
464  as_lineno_1=$LINENO as_lineno_1a=$LINENO
465  as_lineno_2=$LINENO as_lineno_2a=$LINENO
466  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
467  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
468  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
469  sed -n '
470    p
471    /[$]LINENO/=
472  ' <$as_myself |
473    sed '
474      s/[$]LINENO.*/&-/
475      t lineno
476      b
477      :lineno
478      N
479      :loop
480      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
481      t loop
482      s/-\n.*//
483    ' >$as_me.lineno &&
484  chmod +x "$as_me.lineno" ||
485    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
486
487  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
488  # already done that, so ensure we don't try to do so again and fall
489  # in an infinite loop.  This has already happened in practice.
490  _as_can_reexec=no; export _as_can_reexec
491  # Don't try to exec as it changes $[0], causing all sort of problems
492  # (the dirname of $[0] is not the place where we might find the
493  # original and so on.  Autoconf is especially sensitive to this).
494  . "./$as_me.lineno"
495  # Exit status is that of the last command.
496  exit
497}
498
499ECHO_C= ECHO_N= ECHO_T=
500case `echo -n x` in #(((((
501-n*)
502  case `echo 'xy\c'` in
503  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
504  xy)  ECHO_C='\c';;
505  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
506       ECHO_T='	';;
507  esac;;
508*)
509  ECHO_N='-n';;
510esac
511
512rm -f conf$$ conf$$.exe conf$$.file
513if test -d conf$$.dir; then
514  rm -f conf$$.dir/conf$$.file
515else
516  rm -f conf$$.dir
517  mkdir conf$$.dir 2>/dev/null
518fi
519if (echo >conf$$.file) 2>/dev/null; then
520  if ln -s conf$$.file conf$$ 2>/dev/null; then
521    as_ln_s='ln -s'
522    # ... but there are two gotchas:
523    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525    # In both cases, we have to default to `cp -pR'.
526    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527      as_ln_s='cp -pR'
528  elif ln conf$$.file conf$$ 2>/dev/null; then
529    as_ln_s=ln
530  else
531    as_ln_s='cp -pR'
532  fi
533else
534  as_ln_s='cp -pR'
535fi
536rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537rmdir conf$$.dir 2>/dev/null
538
539if mkdir -p . 2>/dev/null; then
540  as_mkdir_p='mkdir -p "$as_dir"'
541else
542  test -d ./-p && rmdir ./-p
543  as_mkdir_p=false
544fi
545
546as_test_x='test -x'
547as_executable_p=as_fn_executable_p
548
549# Sed expression to map a string onto a valid CPP name.
550as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551
552# Sed expression to map a string onto a valid variable name.
553as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554
555
556test -n "$DJDIR" || exec 7<&0 </dev/null
557exec 6>&1
558
559# Name of the host.
560# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
561# so uname gets run too.
562ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563
564#
565# Initializations.
566#
567ac_default_prefix=/usr/local
568ac_clean_files=
569ac_config_libobj_dir=.
570LIBOBJS=
571cross_compiling=no
572subdirs=
573MFLAGS=
574MAKEFLAGS=
575
576# Identity of this package.
577PACKAGE_NAME=
578PACKAGE_TARNAME=
579PACKAGE_VERSION=
580PACKAGE_STRING=
581PACKAGE_BUGREPORT=
582PACKAGE_URL=
583
584ac_unique_file="src/rsqlite.h"
585ac_subst_vars='LTLIBOBJS
586LIBOBJS
587PKG_LIBS
588PKG_CPPFLAGS
589CPP
590OBJEXT
591EXEEXT
592ac_ct_CC
593CPPFLAGS
594LDFLAGS
595CFLAGS
596CC
597target_alias
598host_alias
599build_alias
600LIBS
601ECHO_T
602ECHO_N
603ECHO_C
604DEFS
605mandir
606localedir
607libdir
608psdir
609pdfdir
610dvidir
611htmldir
612infodir
613docdir
614oldincludedir
615includedir
616localstatedir
617sharedstatedir
618sysconfdir
619datadir
620datarootdir
621libexecdir
622sbindir
623bindir
624program_transform_name
625prefix
626exec_prefix
627PACKAGE_URL
628PACKAGE_BUGREPORT
629PACKAGE_STRING
630PACKAGE_VERSION
631PACKAGE_TARNAME
632PACKAGE_NAME
633PATH_SEPARATOR
634SHELL'
635ac_subst_files=''
636ac_user_opts='
637enable_option_checking
638with_sqlite_dir
639with_sqlite_lib
640with_sqlite_inc
641'
642      ac_precious_vars='build_alias
643host_alias
644target_alias
645CC
646CFLAGS
647LDFLAGS
648LIBS
649CPPFLAGS
650CPP'
651
652
653# Initialize some variables set by options.
654ac_init_help=
655ac_init_version=false
656ac_unrecognized_opts=
657ac_unrecognized_sep=
658# The variables have the same names as the options, with
659# dashes changed to underlines.
660cache_file=/dev/null
661exec_prefix=NONE
662no_create=
663no_recursion=
664prefix=NONE
665program_prefix=NONE
666program_suffix=NONE
667program_transform_name=s,x,x,
668silent=
669site=
670srcdir=
671verbose=
672x_includes=NONE
673x_libraries=NONE
674
675# Installation directory options.
676# These are left unexpanded so users can "make install exec_prefix=/foo"
677# and all the variables that are supposed to be based on exec_prefix
678# by default will actually change.
679# Use braces instead of parens because sh, perl, etc. also accept them.
680# (The list follows the same order as the GNU Coding Standards.)
681bindir='${exec_prefix}/bin'
682sbindir='${exec_prefix}/sbin'
683libexecdir='${exec_prefix}/libexec'
684datarootdir='${prefix}/share'
685datadir='${datarootdir}'
686sysconfdir='${prefix}/etc'
687sharedstatedir='${prefix}/com'
688localstatedir='${prefix}/var'
689includedir='${prefix}/include'
690oldincludedir='/usr/include'
691docdir='${datarootdir}/doc/${PACKAGE}'
692infodir='${datarootdir}/info'
693htmldir='${docdir}'
694dvidir='${docdir}'
695pdfdir='${docdir}'
696psdir='${docdir}'
697libdir='${exec_prefix}/lib'
698localedir='${datarootdir}/locale'
699mandir='${datarootdir}/man'
700
701ac_prev=
702ac_dashdash=
703for ac_option
704do
705  # If the previous option needs an argument, assign it.
706  if test -n "$ac_prev"; then
707    eval $ac_prev=\$ac_option
708    ac_prev=
709    continue
710  fi
711
712  case $ac_option in
713  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
714  *=)   ac_optarg= ;;
715  *)    ac_optarg=yes ;;
716  esac
717
718  # Accept the important Cygnus configure options, so we can diagnose typos.
719
720  case $ac_dashdash$ac_option in
721  --)
722    ac_dashdash=yes ;;
723
724  -bindir | --bindir | --bindi | --bind | --bin | --bi)
725    ac_prev=bindir ;;
726  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
727    bindir=$ac_optarg ;;
728
729  -build | --build | --buil | --bui | --bu)
730    ac_prev=build_alias ;;
731  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
732    build_alias=$ac_optarg ;;
733
734  -cache-file | --cache-file | --cache-fil | --cache-fi \
735  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
736    ac_prev=cache_file ;;
737  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
738  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
739    cache_file=$ac_optarg ;;
740
741  --config-cache | -C)
742    cache_file=config.cache ;;
743
744  -datadir | --datadir | --datadi | --datad)
745    ac_prev=datadir ;;
746  -datadir=* | --datadir=* | --datadi=* | --datad=*)
747    datadir=$ac_optarg ;;
748
749  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
750  | --dataroo | --dataro | --datar)
751    ac_prev=datarootdir ;;
752  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
753  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
754    datarootdir=$ac_optarg ;;
755
756  -disable-* | --disable-*)
757    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
758    # Reject names that are not valid shell variable names.
759    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
760      as_fn_error $? "invalid feature name: $ac_useropt"
761    ac_useropt_orig=$ac_useropt
762    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
763    case $ac_user_opts in
764      *"
765"enable_$ac_useropt"
766"*) ;;
767      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
768	 ac_unrecognized_sep=', ';;
769    esac
770    eval enable_$ac_useropt=no ;;
771
772  -docdir | --docdir | --docdi | --doc | --do)
773    ac_prev=docdir ;;
774  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
775    docdir=$ac_optarg ;;
776
777  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
778    ac_prev=dvidir ;;
779  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
780    dvidir=$ac_optarg ;;
781
782  -enable-* | --enable-*)
783    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
784    # Reject names that are not valid shell variable names.
785    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
786      as_fn_error $? "invalid feature name: $ac_useropt"
787    ac_useropt_orig=$ac_useropt
788    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
789    case $ac_user_opts in
790      *"
791"enable_$ac_useropt"
792"*) ;;
793      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
794	 ac_unrecognized_sep=', ';;
795    esac
796    eval enable_$ac_useropt=\$ac_optarg ;;
797
798  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
799  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
800  | --exec | --exe | --ex)
801    ac_prev=exec_prefix ;;
802  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
803  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
804  | --exec=* | --exe=* | --ex=*)
805    exec_prefix=$ac_optarg ;;
806
807  -gas | --gas | --ga | --g)
808    # Obsolete; use --with-gas.
809    with_gas=yes ;;
810
811  -help | --help | --hel | --he | -h)
812    ac_init_help=long ;;
813  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
814    ac_init_help=recursive ;;
815  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
816    ac_init_help=short ;;
817
818  -host | --host | --hos | --ho)
819    ac_prev=host_alias ;;
820  -host=* | --host=* | --hos=* | --ho=*)
821    host_alias=$ac_optarg ;;
822
823  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
824    ac_prev=htmldir ;;
825  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
826  | --ht=*)
827    htmldir=$ac_optarg ;;
828
829  -includedir | --includedir | --includedi | --included | --include \
830  | --includ | --inclu | --incl | --inc)
831    ac_prev=includedir ;;
832  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
833  | --includ=* | --inclu=* | --incl=* | --inc=*)
834    includedir=$ac_optarg ;;
835
836  -infodir | --infodir | --infodi | --infod | --info | --inf)
837    ac_prev=infodir ;;
838  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
839    infodir=$ac_optarg ;;
840
841  -libdir | --libdir | --libdi | --libd)
842    ac_prev=libdir ;;
843  -libdir=* | --libdir=* | --libdi=* | --libd=*)
844    libdir=$ac_optarg ;;
845
846  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
847  | --libexe | --libex | --libe)
848    ac_prev=libexecdir ;;
849  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
850  | --libexe=* | --libex=* | --libe=*)
851    libexecdir=$ac_optarg ;;
852
853  -localedir | --localedir | --localedi | --localed | --locale)
854    ac_prev=localedir ;;
855  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
856    localedir=$ac_optarg ;;
857
858  -localstatedir | --localstatedir | --localstatedi | --localstated \
859  | --localstate | --localstat | --localsta | --localst | --locals)
860    ac_prev=localstatedir ;;
861  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
862  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
863    localstatedir=$ac_optarg ;;
864
865  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
866    ac_prev=mandir ;;
867  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
868    mandir=$ac_optarg ;;
869
870  -nfp | --nfp | --nf)
871    # Obsolete; use --without-fp.
872    with_fp=no ;;
873
874  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
875  | --no-cr | --no-c | -n)
876    no_create=yes ;;
877
878  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
879  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
880    no_recursion=yes ;;
881
882  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
883  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
884  | --oldin | --oldi | --old | --ol | --o)
885    ac_prev=oldincludedir ;;
886  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
887  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
888  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
889    oldincludedir=$ac_optarg ;;
890
891  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
892    ac_prev=prefix ;;
893  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
894    prefix=$ac_optarg ;;
895
896  -program-prefix | --program-prefix | --program-prefi | --program-pref \
897  | --program-pre | --program-pr | --program-p)
898    ac_prev=program_prefix ;;
899  -program-prefix=* | --program-prefix=* | --program-prefi=* \
900  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
901    program_prefix=$ac_optarg ;;
902
903  -program-suffix | --program-suffix | --program-suffi | --program-suff \
904  | --program-suf | --program-su | --program-s)
905    ac_prev=program_suffix ;;
906  -program-suffix=* | --program-suffix=* | --program-suffi=* \
907  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
908    program_suffix=$ac_optarg ;;
909
910  -program-transform-name | --program-transform-name \
911  | --program-transform-nam | --program-transform-na \
912  | --program-transform-n | --program-transform- \
913  | --program-transform | --program-transfor \
914  | --program-transfo | --program-transf \
915  | --program-trans | --program-tran \
916  | --progr-tra | --program-tr | --program-t)
917    ac_prev=program_transform_name ;;
918  -program-transform-name=* | --program-transform-name=* \
919  | --program-transform-nam=* | --program-transform-na=* \
920  | --program-transform-n=* | --program-transform-=* \
921  | --program-transform=* | --program-transfor=* \
922  | --program-transfo=* | --program-transf=* \
923  | --program-trans=* | --program-tran=* \
924  | --progr-tra=* | --program-tr=* | --program-t=*)
925    program_transform_name=$ac_optarg ;;
926
927  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
928    ac_prev=pdfdir ;;
929  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
930    pdfdir=$ac_optarg ;;
931
932  -psdir | --psdir | --psdi | --psd | --ps)
933    ac_prev=psdir ;;
934  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
935    psdir=$ac_optarg ;;
936
937  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
938  | -silent | --silent | --silen | --sile | --sil)
939    silent=yes ;;
940
941  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
942    ac_prev=sbindir ;;
943  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
944  | --sbi=* | --sb=*)
945    sbindir=$ac_optarg ;;
946
947  -sharedstatedir | --sharedstatedir | --sharedstatedi \
948  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
949  | --sharedst | --shareds | --shared | --share | --shar \
950  | --sha | --sh)
951    ac_prev=sharedstatedir ;;
952  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
953  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
954  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
955  | --sha=* | --sh=*)
956    sharedstatedir=$ac_optarg ;;
957
958  -site | --site | --sit)
959    ac_prev=site ;;
960  -site=* | --site=* | --sit=*)
961    site=$ac_optarg ;;
962
963  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
964    ac_prev=srcdir ;;
965  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
966    srcdir=$ac_optarg ;;
967
968  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
969  | --syscon | --sysco | --sysc | --sys | --sy)
970    ac_prev=sysconfdir ;;
971  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
972  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
973    sysconfdir=$ac_optarg ;;
974
975  -target | --target | --targe | --targ | --tar | --ta | --t)
976    ac_prev=target_alias ;;
977  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
978    target_alias=$ac_optarg ;;
979
980  -v | -verbose | --verbose | --verbos | --verbo | --verb)
981    verbose=yes ;;
982
983  -version | --version | --versio | --versi | --vers | -V)
984    ac_init_version=: ;;
985
986  -with-* | --with-*)
987    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
988    # Reject names that are not valid shell variable names.
989    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990      as_fn_error $? "invalid package name: $ac_useropt"
991    ac_useropt_orig=$ac_useropt
992    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993    case $ac_user_opts in
994      *"
995"with_$ac_useropt"
996"*) ;;
997      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
998	 ac_unrecognized_sep=', ';;
999    esac
1000    eval with_$ac_useropt=\$ac_optarg ;;
1001
1002  -without-* | --without-*)
1003    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1004    # Reject names that are not valid shell variable names.
1005    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006      as_fn_error $? "invalid package name: $ac_useropt"
1007    ac_useropt_orig=$ac_useropt
1008    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009    case $ac_user_opts in
1010      *"
1011"with_$ac_useropt"
1012"*) ;;
1013      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1014	 ac_unrecognized_sep=', ';;
1015    esac
1016    eval with_$ac_useropt=no ;;
1017
1018  --x)
1019    # Obsolete; use --with-x.
1020    with_x=yes ;;
1021
1022  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1023  | --x-incl | --x-inc | --x-in | --x-i)
1024    ac_prev=x_includes ;;
1025  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1026  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1027    x_includes=$ac_optarg ;;
1028
1029  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1030  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1031    ac_prev=x_libraries ;;
1032  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1033  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1034    x_libraries=$ac_optarg ;;
1035
1036  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1037Try \`$0 --help' for more information"
1038    ;;
1039
1040  *=*)
1041    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1042    # Reject names that are not valid shell variable names.
1043    case $ac_envvar in #(
1044      '' | [0-9]* | *[!_$as_cr_alnum]* )
1045      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1046    esac
1047    eval $ac_envvar=\$ac_optarg
1048    export $ac_envvar ;;
1049
1050  *)
1051    # FIXME: should be removed in autoconf 3.0.
1052    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1053    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1054      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1055    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1056    ;;
1057
1058  esac
1059done
1060
1061if test -n "$ac_prev"; then
1062  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1063  as_fn_error $? "missing argument to $ac_option"
1064fi
1065
1066if test -n "$ac_unrecognized_opts"; then
1067  case $enable_option_checking in
1068    no) ;;
1069    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1070    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1071  esac
1072fi
1073
1074# Check all directory arguments for consistency.
1075for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1076		datadir sysconfdir sharedstatedir localstatedir includedir \
1077		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1078		libdir localedir mandir
1079do
1080  eval ac_val=\$$ac_var
1081  # Remove trailing slashes.
1082  case $ac_val in
1083    */ )
1084      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1085      eval $ac_var=\$ac_val;;
1086  esac
1087  # Be sure to have absolute directory names.
1088  case $ac_val in
1089    [\\/$]* | ?:[\\/]* )  continue;;
1090    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1091  esac
1092  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1093done
1094
1095# There might be people who depend on the old broken behavior: `$host'
1096# used to hold the argument of --host etc.
1097# FIXME: To remove some day.
1098build=$build_alias
1099host=$host_alias
1100target=$target_alias
1101
1102# FIXME: To remove some day.
1103if test "x$host_alias" != x; then
1104  if test "x$build_alias" = x; then
1105    cross_compiling=maybe
1106  elif test "x$build_alias" != "x$host_alias"; then
1107    cross_compiling=yes
1108  fi
1109fi
1110
1111ac_tool_prefix=
1112test -n "$host_alias" && ac_tool_prefix=$host_alias-
1113
1114test "$silent" = yes && exec 6>/dev/null
1115
1116
1117ac_pwd=`pwd` && test -n "$ac_pwd" &&
1118ac_ls_di=`ls -di .` &&
1119ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1120  as_fn_error $? "working directory cannot be determined"
1121test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1122  as_fn_error $? "pwd does not report name of working directory"
1123
1124
1125# Find the source files, if location was not specified.
1126if test -z "$srcdir"; then
1127  ac_srcdir_defaulted=yes
1128  # Try the directory containing this script, then the parent directory.
1129  ac_confdir=`$as_dirname -- "$as_myself" ||
1130$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1131	 X"$as_myself" : 'X\(//\)[^/]' \| \
1132	 X"$as_myself" : 'X\(//\)$' \| \
1133	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1134$as_echo X"$as_myself" |
1135    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1136	    s//\1/
1137	    q
1138	  }
1139	  /^X\(\/\/\)[^/].*/{
1140	    s//\1/
1141	    q
1142	  }
1143	  /^X\(\/\/\)$/{
1144	    s//\1/
1145	    q
1146	  }
1147	  /^X\(\/\).*/{
1148	    s//\1/
1149	    q
1150	  }
1151	  s/.*/./; q'`
1152  srcdir=$ac_confdir
1153  if test ! -r "$srcdir/$ac_unique_file"; then
1154    srcdir=..
1155  fi
1156else
1157  ac_srcdir_defaulted=no
1158fi
1159if test ! -r "$srcdir/$ac_unique_file"; then
1160  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1161  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1162fi
1163ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1164ac_abs_confdir=`(
1165	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1166	pwd)`
1167# When building in place, set srcdir=.
1168if test "$ac_abs_confdir" = "$ac_pwd"; then
1169  srcdir=.
1170fi
1171# Remove unnecessary trailing slashes from srcdir.
1172# Double slashes in file names in object file debugging info
1173# mess up M-x gdb in Emacs.
1174case $srcdir in
1175*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1176esac
1177for ac_var in $ac_precious_vars; do
1178  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1179  eval ac_env_${ac_var}_value=\$${ac_var}
1180  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1181  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1182done
1183
1184#
1185# Report the --help message.
1186#
1187if test "$ac_init_help" = "long"; then
1188  # Omit some internal or obsolete options to make the list less imposing.
1189  # This message is too long to be a string in the A/UX 3.1 sh.
1190  cat <<_ACEOF
1191\`configure' configures this package to adapt to many kinds of systems.
1192
1193Usage: $0 [OPTION]... [VAR=VALUE]...
1194
1195To assign environment variables (e.g., CC, CFLAGS...), specify them as
1196VAR=VALUE.  See below for descriptions of some of the useful variables.
1197
1198Defaults for the options are specified in brackets.
1199
1200Configuration:
1201  -h, --help              display this help and exit
1202      --help=short        display options specific to this package
1203      --help=recursive    display the short help of all the included packages
1204  -V, --version           display version information and exit
1205  -q, --quiet, --silent   do not print \`checking ...' messages
1206      --cache-file=FILE   cache test results in FILE [disabled]
1207  -C, --config-cache      alias for \`--cache-file=config.cache'
1208  -n, --no-create         do not create output files
1209      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1210
1211Installation directories:
1212  --prefix=PREFIX         install architecture-independent files in PREFIX
1213                          [$ac_default_prefix]
1214  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1215                          [PREFIX]
1216
1217By default, \`make install' will install all the files in
1218\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1219an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1220for instance \`--prefix=\$HOME'.
1221
1222For better control, use the options below.
1223
1224Fine tuning of the installation directories:
1225  --bindir=DIR            user executables [EPREFIX/bin]
1226  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1227  --libexecdir=DIR        program executables [EPREFIX/libexec]
1228  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1229  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1230  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1231  --libdir=DIR            object code libraries [EPREFIX/lib]
1232  --includedir=DIR        C header files [PREFIX/include]
1233  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1234  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1235  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1236  --infodir=DIR           info documentation [DATAROOTDIR/info]
1237  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1238  --mandir=DIR            man documentation [DATAROOTDIR/man]
1239  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1240  --htmldir=DIR           html documentation [DOCDIR]
1241  --dvidir=DIR            dvi documentation [DOCDIR]
1242  --pdfdir=DIR            pdf documentation [DOCDIR]
1243  --psdir=DIR             ps documentation [DOCDIR]
1244_ACEOF
1245
1246  cat <<\_ACEOF
1247_ACEOF
1248fi
1249
1250if test -n "$ac_init_help"; then
1251
1252  cat <<\_ACEOF
1253
1254Optional Packages:
1255  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1256  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1257--with-sqlite-dir=DIR    specifies an existing SQLite base dir
1258--with-sqlite-lib=DIR    specifies an existing SQLite lib dir
1259--with-sqlite-inc=DIR    specifies an existing SQLite include dir
1260
1261Some influential environment variables:
1262  CC          C compiler command
1263  CFLAGS      C compiler flags
1264  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1265              nonstandard directory <lib dir>
1266  LIBS        libraries to pass to the linker, e.g. -l<library>
1267  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1268              you have headers in a nonstandard directory <include dir>
1269  CPP         C preprocessor
1270
1271Use these variables to override the choices made by `configure' or to help
1272it to find libraries and programs with nonstandard names/locations.
1273
1274Report bugs to the package provider.
1275_ACEOF
1276ac_status=$?
1277fi
1278
1279if test "$ac_init_help" = "recursive"; then
1280  # If there are subdirs, report their specific --help.
1281  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1282    test -d "$ac_dir" ||
1283      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1284      continue
1285    ac_builddir=.
1286
1287case "$ac_dir" in
1288.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1289*)
1290  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1291  # A ".." for each directory in $ac_dir_suffix.
1292  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1293  case $ac_top_builddir_sub in
1294  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1295  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1296  esac ;;
1297esac
1298ac_abs_top_builddir=$ac_pwd
1299ac_abs_builddir=$ac_pwd$ac_dir_suffix
1300# for backward compatibility:
1301ac_top_builddir=$ac_top_build_prefix
1302
1303case $srcdir in
1304  .)  # We are building in place.
1305    ac_srcdir=.
1306    ac_top_srcdir=$ac_top_builddir_sub
1307    ac_abs_top_srcdir=$ac_pwd ;;
1308  [\\/]* | ?:[\\/]* )  # Absolute name.
1309    ac_srcdir=$srcdir$ac_dir_suffix;
1310    ac_top_srcdir=$srcdir
1311    ac_abs_top_srcdir=$srcdir ;;
1312  *) # Relative name.
1313    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1314    ac_top_srcdir=$ac_top_build_prefix$srcdir
1315    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1316esac
1317ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1318
1319    cd "$ac_dir" || { ac_status=$?; continue; }
1320    # Check for guested configure.
1321    if test -f "$ac_srcdir/configure.gnu"; then
1322      echo &&
1323      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1324    elif test -f "$ac_srcdir/configure"; then
1325      echo &&
1326      $SHELL "$ac_srcdir/configure" --help=recursive
1327    else
1328      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1329    fi || ac_status=$?
1330    cd "$ac_pwd" || { ac_status=$?; break; }
1331  done
1332fi
1333
1334test -n "$ac_init_help" && exit $ac_status
1335if $ac_init_version; then
1336  cat <<\_ACEOF
1337configure
1338generated by GNU Autoconf 2.69
1339
1340Copyright (C) 2012 Free Software Foundation, Inc.
1341This configure script is free software; the Free Software Foundation
1342gives unlimited permission to copy, distribute and modify it.
1343_ACEOF
1344  exit
1345fi
1346
1347## ------------------------ ##
1348## Autoconf initialization. ##
1349## ------------------------ ##
1350
1351# ac_fn_c_try_compile LINENO
1352# --------------------------
1353# Try to compile conftest.$ac_ext, and return whether this succeeded.
1354ac_fn_c_try_compile ()
1355{
1356  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1357  rm -f conftest.$ac_objext
1358  if { { ac_try="$ac_compile"
1359case "(($ac_try" in
1360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1361  *) ac_try_echo=$ac_try;;
1362esac
1363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1364$as_echo "$ac_try_echo"; } >&5
1365  (eval "$ac_compile") 2>conftest.err
1366  ac_status=$?
1367  if test -s conftest.err; then
1368    grep -v '^ *+' conftest.err >conftest.er1
1369    cat conftest.er1 >&5
1370    mv -f conftest.er1 conftest.err
1371  fi
1372  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1373  test $ac_status = 0; } && {
1374	 test -z "$ac_c_werror_flag" ||
1375	 test ! -s conftest.err
1376       } && test -s conftest.$ac_objext; then :
1377  ac_retval=0
1378else
1379  $as_echo "$as_me: failed program was:" >&5
1380sed 's/^/| /' conftest.$ac_ext >&5
1381
1382	ac_retval=1
1383fi
1384  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1385  as_fn_set_status $ac_retval
1386
1387} # ac_fn_c_try_compile
1388
1389# ac_fn_c_try_cpp LINENO
1390# ----------------------
1391# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1392ac_fn_c_try_cpp ()
1393{
1394  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1395  if { { ac_try="$ac_cpp conftest.$ac_ext"
1396case "(($ac_try" in
1397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1398  *) ac_try_echo=$ac_try;;
1399esac
1400eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1401$as_echo "$ac_try_echo"; } >&5
1402  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1403  ac_status=$?
1404  if test -s conftest.err; then
1405    grep -v '^ *+' conftest.err >conftest.er1
1406    cat conftest.er1 >&5
1407    mv -f conftest.er1 conftest.err
1408  fi
1409  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1410  test $ac_status = 0; } > conftest.i && {
1411	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1412	 test ! -s conftest.err
1413       }; then :
1414  ac_retval=0
1415else
1416  $as_echo "$as_me: failed program was:" >&5
1417sed 's/^/| /' conftest.$ac_ext >&5
1418
1419    ac_retval=1
1420fi
1421  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1422  as_fn_set_status $ac_retval
1423
1424} # ac_fn_c_try_cpp
1425
1426# ac_fn_c_try_link LINENO
1427# -----------------------
1428# Try to link conftest.$ac_ext, and return whether this succeeded.
1429ac_fn_c_try_link ()
1430{
1431  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1432  rm -f conftest.$ac_objext conftest$ac_exeext
1433  if { { ac_try="$ac_link"
1434case "(($ac_try" in
1435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1436  *) ac_try_echo=$ac_try;;
1437esac
1438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1439$as_echo "$ac_try_echo"; } >&5
1440  (eval "$ac_link") 2>conftest.err
1441  ac_status=$?
1442  if test -s conftest.err; then
1443    grep -v '^ *+' conftest.err >conftest.er1
1444    cat conftest.er1 >&5
1445    mv -f conftest.er1 conftest.err
1446  fi
1447  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1448  test $ac_status = 0; } && {
1449	 test -z "$ac_c_werror_flag" ||
1450	 test ! -s conftest.err
1451       } && test -s conftest$ac_exeext && {
1452	 test "$cross_compiling" = yes ||
1453	 test -x conftest$ac_exeext
1454       }; then :
1455  ac_retval=0
1456else
1457  $as_echo "$as_me: failed program was:" >&5
1458sed 's/^/| /' conftest.$ac_ext >&5
1459
1460	ac_retval=1
1461fi
1462  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1463  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1464  # interfere with the next link command; also delete a directory that is
1465  # left behind by Apple's compiler.  We do this before executing the actions.
1466  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1467  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1468  as_fn_set_status $ac_retval
1469
1470} # ac_fn_c_try_link
1471cat >config.log <<_ACEOF
1472This file contains any messages produced by compilers while
1473running configure, to aid debugging if configure makes a mistake.
1474
1475It was created by $as_me, which was
1476generated by GNU Autoconf 2.69.  Invocation command line was
1477
1478  $ $0 $@
1479
1480_ACEOF
1481exec 5>>config.log
1482{
1483cat <<_ASUNAME
1484## --------- ##
1485## Platform. ##
1486## --------- ##
1487
1488hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1489uname -m = `(uname -m) 2>/dev/null || echo unknown`
1490uname -r = `(uname -r) 2>/dev/null || echo unknown`
1491uname -s = `(uname -s) 2>/dev/null || echo unknown`
1492uname -v = `(uname -v) 2>/dev/null || echo unknown`
1493
1494/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1495/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1496
1497/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1498/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1499/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1500/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1501/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1502/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1503/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1504
1505_ASUNAME
1506
1507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508for as_dir in $PATH
1509do
1510  IFS=$as_save_IFS
1511  test -z "$as_dir" && as_dir=.
1512    $as_echo "PATH: $as_dir"
1513  done
1514IFS=$as_save_IFS
1515
1516} >&5
1517
1518cat >&5 <<_ACEOF
1519
1520
1521## ----------- ##
1522## Core tests. ##
1523## ----------- ##
1524
1525_ACEOF
1526
1527
1528# Keep a trace of the command line.
1529# Strip out --no-create and --no-recursion so they do not pile up.
1530# Strip out --silent because we don't want to record it for future runs.
1531# Also quote any args containing shell meta-characters.
1532# Make two passes to allow for proper duplicate-argument suppression.
1533ac_configure_args=
1534ac_configure_args0=
1535ac_configure_args1=
1536ac_must_keep_next=false
1537for ac_pass in 1 2
1538do
1539  for ac_arg
1540  do
1541    case $ac_arg in
1542    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1543    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1544    | -silent | --silent | --silen | --sile | --sil)
1545      continue ;;
1546    *\'*)
1547      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1548    esac
1549    case $ac_pass in
1550    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1551    2)
1552      as_fn_append ac_configure_args1 " '$ac_arg'"
1553      if test $ac_must_keep_next = true; then
1554	ac_must_keep_next=false # Got value, back to normal.
1555      else
1556	case $ac_arg in
1557	  *=* | --config-cache | -C | -disable-* | --disable-* \
1558	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1559	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1560	  | -with-* | --with-* | -without-* | --without-* | --x)
1561	    case "$ac_configure_args0 " in
1562	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1563	    esac
1564	    ;;
1565	  -* ) ac_must_keep_next=true ;;
1566	esac
1567      fi
1568      as_fn_append ac_configure_args " '$ac_arg'"
1569      ;;
1570    esac
1571  done
1572done
1573{ ac_configure_args0=; unset ac_configure_args0;}
1574{ ac_configure_args1=; unset ac_configure_args1;}
1575
1576# When interrupted or exit'd, cleanup temporary files, and complete
1577# config.log.  We remove comments because anyway the quotes in there
1578# would cause problems or look ugly.
1579# WARNING: Use '\'' to represent an apostrophe within the trap.
1580# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1581trap 'exit_status=$?
1582  # Save into config.log some information that might help in debugging.
1583  {
1584    echo
1585
1586    $as_echo "## ---------------- ##
1587## Cache variables. ##
1588## ---------------- ##"
1589    echo
1590    # The following way of writing the cache mishandles newlines in values,
1591(
1592  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1593    eval ac_val=\$$ac_var
1594    case $ac_val in #(
1595    *${as_nl}*)
1596      case $ac_var in #(
1597      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1598$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1599      esac
1600      case $ac_var in #(
1601      _ | IFS | as_nl) ;; #(
1602      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1603      *) { eval $ac_var=; unset $ac_var;} ;;
1604      esac ;;
1605    esac
1606  done
1607  (set) 2>&1 |
1608    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1609    *${as_nl}ac_space=\ *)
1610      sed -n \
1611	"s/'\''/'\''\\\\'\'''\''/g;
1612	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1613      ;; #(
1614    *)
1615      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1616      ;;
1617    esac |
1618    sort
1619)
1620    echo
1621
1622    $as_echo "## ----------------- ##
1623## Output variables. ##
1624## ----------------- ##"
1625    echo
1626    for ac_var in $ac_subst_vars
1627    do
1628      eval ac_val=\$$ac_var
1629      case $ac_val in
1630      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1631      esac
1632      $as_echo "$ac_var='\''$ac_val'\''"
1633    done | sort
1634    echo
1635
1636    if test -n "$ac_subst_files"; then
1637      $as_echo "## ------------------- ##
1638## File substitutions. ##
1639## ------------------- ##"
1640      echo
1641      for ac_var in $ac_subst_files
1642      do
1643	eval ac_val=\$$ac_var
1644	case $ac_val in
1645	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1646	esac
1647	$as_echo "$ac_var='\''$ac_val'\''"
1648      done | sort
1649      echo
1650    fi
1651
1652    if test -s confdefs.h; then
1653      $as_echo "## ----------- ##
1654## confdefs.h. ##
1655## ----------- ##"
1656      echo
1657      cat confdefs.h
1658      echo
1659    fi
1660    test "$ac_signal" != 0 &&
1661      $as_echo "$as_me: caught signal $ac_signal"
1662    $as_echo "$as_me: exit $exit_status"
1663  } >&5
1664  rm -f core *.core core.conftest.* &&
1665    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1666    exit $exit_status
1667' 0
1668for ac_signal in 1 2 13 15; do
1669  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1670done
1671ac_signal=0
1672
1673# confdefs.h avoids OS command line length limits that DEFS can exceed.
1674rm -f -r conftest* confdefs.h
1675
1676$as_echo "/* confdefs.h */" > confdefs.h
1677
1678# Predefined preprocessor variables.
1679
1680cat >>confdefs.h <<_ACEOF
1681#define PACKAGE_NAME "$PACKAGE_NAME"
1682_ACEOF
1683
1684cat >>confdefs.h <<_ACEOF
1685#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1686_ACEOF
1687
1688cat >>confdefs.h <<_ACEOF
1689#define PACKAGE_VERSION "$PACKAGE_VERSION"
1690_ACEOF
1691
1692cat >>confdefs.h <<_ACEOF
1693#define PACKAGE_STRING "$PACKAGE_STRING"
1694_ACEOF
1695
1696cat >>confdefs.h <<_ACEOF
1697#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1698_ACEOF
1699
1700cat >>confdefs.h <<_ACEOF
1701#define PACKAGE_URL "$PACKAGE_URL"
1702_ACEOF
1703
1704
1705# Let the site file select an alternate cache file if it wants to.
1706# Prefer an explicitly selected file to automatically selected ones.
1707ac_site_file1=NONE
1708ac_site_file2=NONE
1709if test -n "$CONFIG_SITE"; then
1710  # We do not want a PATH search for config.site.
1711  case $CONFIG_SITE in #((
1712    -*)  ac_site_file1=./$CONFIG_SITE;;
1713    */*) ac_site_file1=$CONFIG_SITE;;
1714    *)   ac_site_file1=./$CONFIG_SITE;;
1715  esac
1716elif test "x$prefix" != xNONE; then
1717  ac_site_file1=$prefix/share/config.site
1718  ac_site_file2=$prefix/etc/config.site
1719else
1720  ac_site_file1=$ac_default_prefix/share/config.site
1721  ac_site_file2=$ac_default_prefix/etc/config.site
1722fi
1723for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1724do
1725  test "x$ac_site_file" = xNONE && continue
1726  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1727    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1728$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1729    sed 's/^/| /' "$ac_site_file" >&5
1730    . "$ac_site_file" \
1731      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1733as_fn_error $? "failed to load site script $ac_site_file
1734See \`config.log' for more details" "$LINENO" 5; }
1735  fi
1736done
1737
1738if test -r "$cache_file"; then
1739  # Some versions of bash will fail to source /dev/null (special files
1740  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1741  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1742    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1743$as_echo "$as_me: loading cache $cache_file" >&6;}
1744    case $cache_file in
1745      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1746      *)                      . "./$cache_file";;
1747    esac
1748  fi
1749else
1750  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1751$as_echo "$as_me: creating cache $cache_file" >&6;}
1752  >$cache_file
1753fi
1754
1755# Check that the precious variables saved in the cache have kept the same
1756# value.
1757ac_cache_corrupted=false
1758for ac_var in $ac_precious_vars; do
1759  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1760  eval ac_new_set=\$ac_env_${ac_var}_set
1761  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1762  eval ac_new_val=\$ac_env_${ac_var}_value
1763  case $ac_old_set,$ac_new_set in
1764    set,)
1765      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1766$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1767      ac_cache_corrupted=: ;;
1768    ,set)
1769      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1770$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1771      ac_cache_corrupted=: ;;
1772    ,);;
1773    *)
1774      if test "x$ac_old_val" != "x$ac_new_val"; then
1775	# differences in whitespace do not lead to failure.
1776	ac_old_val_w=`echo x $ac_old_val`
1777	ac_new_val_w=`echo x $ac_new_val`
1778	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1779	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1780$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1781	  ac_cache_corrupted=:
1782	else
1783	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1784$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1785	  eval $ac_var=\$ac_old_val
1786	fi
1787	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1788$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1789	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1790$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1791      fi;;
1792  esac
1793  # Pass precious variables to config.status.
1794  if test "$ac_new_set" = set; then
1795    case $ac_new_val in
1796    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1797    *) ac_arg=$ac_var=$ac_new_val ;;
1798    esac
1799    case " $ac_configure_args " in
1800      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1801      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1802    esac
1803  fi
1804done
1805if $ac_cache_corrupted; then
1806  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1807$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1808  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1809$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1810  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1811fi
1812## -------------------- ##
1813## Main body of script. ##
1814## -------------------- ##
1815
1816ac_ext=c
1817ac_cpp='$CPP $CPPFLAGS'
1818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820ac_compiler_gnu=$ac_cv_c_compiler_gnu
1821
1822
1823
1824# As suggested by BDR, I may need to use CFLAGS to compile under 64-bit
1825# (I can't test this), but see "Writing R Extensions"
1826: ${R_HOME=`R RHOME`}
1827if test -z "${R_HOME}"; then
1828   echo "could not determine R_HOME"
1829   exit 1
1830fi
1831CC=`"${R_HOME}/bin/R" CMD config CC`
1832CFLAGS=`"${R_HOME}/bin/R" CMD config CFLAGS`
1833ac_ext=c
1834ac_cpp='$CPP $CPPFLAGS'
1835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1837ac_compiler_gnu=$ac_cv_c_compiler_gnu
1838if test -n "$ac_tool_prefix"; then
1839  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1840set dummy ${ac_tool_prefix}gcc; ac_word=$2
1841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1842$as_echo_n "checking for $ac_word... " >&6; }
1843if ${ac_cv_prog_CC+:} false; then :
1844  $as_echo_n "(cached) " >&6
1845else
1846  if test -n "$CC"; then
1847  ac_cv_prog_CC="$CC" # Let the user override the test.
1848else
1849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1850for as_dir in $PATH
1851do
1852  IFS=$as_save_IFS
1853  test -z "$as_dir" && as_dir=.
1854    for ac_exec_ext in '' $ac_executable_extensions; do
1855  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1856    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1857    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1858    break 2
1859  fi
1860done
1861  done
1862IFS=$as_save_IFS
1863
1864fi
1865fi
1866CC=$ac_cv_prog_CC
1867if test -n "$CC"; then
1868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1869$as_echo "$CC" >&6; }
1870else
1871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1872$as_echo "no" >&6; }
1873fi
1874
1875
1876fi
1877if test -z "$ac_cv_prog_CC"; then
1878  ac_ct_CC=$CC
1879  # Extract the first word of "gcc", so it can be a program name with args.
1880set dummy gcc; ac_word=$2
1881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1882$as_echo_n "checking for $ac_word... " >&6; }
1883if ${ac_cv_prog_ac_ct_CC+:} false; then :
1884  $as_echo_n "(cached) " >&6
1885else
1886  if test -n "$ac_ct_CC"; then
1887  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1888else
1889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890for as_dir in $PATH
1891do
1892  IFS=$as_save_IFS
1893  test -z "$as_dir" && as_dir=.
1894    for ac_exec_ext in '' $ac_executable_extensions; do
1895  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896    ac_cv_prog_ac_ct_CC="gcc"
1897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1898    break 2
1899  fi
1900done
1901  done
1902IFS=$as_save_IFS
1903
1904fi
1905fi
1906ac_ct_CC=$ac_cv_prog_ac_ct_CC
1907if test -n "$ac_ct_CC"; then
1908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1909$as_echo "$ac_ct_CC" >&6; }
1910else
1911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1912$as_echo "no" >&6; }
1913fi
1914
1915  if test "x$ac_ct_CC" = x; then
1916    CC=""
1917  else
1918    case $cross_compiling:$ac_tool_warned in
1919yes:)
1920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1922ac_tool_warned=yes ;;
1923esac
1924    CC=$ac_ct_CC
1925  fi
1926else
1927  CC="$ac_cv_prog_CC"
1928fi
1929
1930if test -z "$CC"; then
1931          if test -n "$ac_tool_prefix"; then
1932    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1933set dummy ${ac_tool_prefix}cc; ac_word=$2
1934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1935$as_echo_n "checking for $ac_word... " >&6; }
1936if ${ac_cv_prog_CC+:} false; then :
1937  $as_echo_n "(cached) " >&6
1938else
1939  if test -n "$CC"; then
1940  ac_cv_prog_CC="$CC" # Let the user override the test.
1941else
1942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943for as_dir in $PATH
1944do
1945  IFS=$as_save_IFS
1946  test -z "$as_dir" && as_dir=.
1947    for ac_exec_ext in '' $ac_executable_extensions; do
1948  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949    ac_cv_prog_CC="${ac_tool_prefix}cc"
1950    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1951    break 2
1952  fi
1953done
1954  done
1955IFS=$as_save_IFS
1956
1957fi
1958fi
1959CC=$ac_cv_prog_CC
1960if test -n "$CC"; then
1961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1962$as_echo "$CC" >&6; }
1963else
1964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1965$as_echo "no" >&6; }
1966fi
1967
1968
1969  fi
1970fi
1971if test -z "$CC"; then
1972  # Extract the first word of "cc", so it can be a program name with args.
1973set dummy cc; ac_word=$2
1974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1975$as_echo_n "checking for $ac_word... " >&6; }
1976if ${ac_cv_prog_CC+:} false; then :
1977  $as_echo_n "(cached) " >&6
1978else
1979  if test -n "$CC"; then
1980  ac_cv_prog_CC="$CC" # Let the user override the test.
1981else
1982  ac_prog_rejected=no
1983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984for as_dir in $PATH
1985do
1986  IFS=$as_save_IFS
1987  test -z "$as_dir" && as_dir=.
1988    for ac_exec_ext in '' $ac_executable_extensions; do
1989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1990    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1991       ac_prog_rejected=yes
1992       continue
1993     fi
1994    ac_cv_prog_CC="cc"
1995    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1996    break 2
1997  fi
1998done
1999  done
2000IFS=$as_save_IFS
2001
2002if test $ac_prog_rejected = yes; then
2003  # We found a bogon in the path, so make sure we never use it.
2004  set dummy $ac_cv_prog_CC
2005  shift
2006  if test $# != 0; then
2007    # We chose a different compiler from the bogus one.
2008    # However, it has the same basename, so the bogon will be chosen
2009    # first if we set CC to just the basename; use the full file name.
2010    shift
2011    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2012  fi
2013fi
2014fi
2015fi
2016CC=$ac_cv_prog_CC
2017if test -n "$CC"; then
2018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2019$as_echo "$CC" >&6; }
2020else
2021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2022$as_echo "no" >&6; }
2023fi
2024
2025
2026fi
2027if test -z "$CC"; then
2028  if test -n "$ac_tool_prefix"; then
2029  for ac_prog in cl.exe
2030  do
2031    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2032set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2034$as_echo_n "checking for $ac_word... " >&6; }
2035if ${ac_cv_prog_CC+:} false; then :
2036  $as_echo_n "(cached) " >&6
2037else
2038  if test -n "$CC"; then
2039  ac_cv_prog_CC="$CC" # Let the user override the test.
2040else
2041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042for as_dir in $PATH
2043do
2044  IFS=$as_save_IFS
2045  test -z "$as_dir" && as_dir=.
2046    for ac_exec_ext in '' $ac_executable_extensions; do
2047  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2048    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2050    break 2
2051  fi
2052done
2053  done
2054IFS=$as_save_IFS
2055
2056fi
2057fi
2058CC=$ac_cv_prog_CC
2059if test -n "$CC"; then
2060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2061$as_echo "$CC" >&6; }
2062else
2063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2064$as_echo "no" >&6; }
2065fi
2066
2067
2068    test -n "$CC" && break
2069  done
2070fi
2071if test -z "$CC"; then
2072  ac_ct_CC=$CC
2073  for ac_prog in cl.exe
2074do
2075  # Extract the first word of "$ac_prog", so it can be a program name with args.
2076set dummy $ac_prog; ac_word=$2
2077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2078$as_echo_n "checking for $ac_word... " >&6; }
2079if ${ac_cv_prog_ac_ct_CC+:} false; then :
2080  $as_echo_n "(cached) " >&6
2081else
2082  if test -n "$ac_ct_CC"; then
2083  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2084else
2085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086for as_dir in $PATH
2087do
2088  IFS=$as_save_IFS
2089  test -z "$as_dir" && as_dir=.
2090    for ac_exec_ext in '' $ac_executable_extensions; do
2091  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092    ac_cv_prog_ac_ct_CC="$ac_prog"
2093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2094    break 2
2095  fi
2096done
2097  done
2098IFS=$as_save_IFS
2099
2100fi
2101fi
2102ac_ct_CC=$ac_cv_prog_ac_ct_CC
2103if test -n "$ac_ct_CC"; then
2104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2105$as_echo "$ac_ct_CC" >&6; }
2106else
2107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2108$as_echo "no" >&6; }
2109fi
2110
2111
2112  test -n "$ac_ct_CC" && break
2113done
2114
2115  if test "x$ac_ct_CC" = x; then
2116    CC=""
2117  else
2118    case $cross_compiling:$ac_tool_warned in
2119yes:)
2120{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2121$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2122ac_tool_warned=yes ;;
2123esac
2124    CC=$ac_ct_CC
2125  fi
2126fi
2127
2128fi
2129
2130
2131test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2133as_fn_error $? "no acceptable C compiler found in \$PATH
2134See \`config.log' for more details" "$LINENO" 5; }
2135
2136# Provide some information about the compiler.
2137$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2138set X $ac_compile
2139ac_compiler=$2
2140for ac_option in --version -v -V -qversion; do
2141  { { ac_try="$ac_compiler $ac_option >&5"
2142case "(($ac_try" in
2143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144  *) ac_try_echo=$ac_try;;
2145esac
2146eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2147$as_echo "$ac_try_echo"; } >&5
2148  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2149  ac_status=$?
2150  if test -s conftest.err; then
2151    sed '10a\
2152... rest of stderr output deleted ...
2153         10q' conftest.err >conftest.er1
2154    cat conftest.er1 >&5
2155  fi
2156  rm -f conftest.er1 conftest.err
2157  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2158  test $ac_status = 0; }
2159done
2160
2161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162/* end confdefs.h.  */
2163
2164int
2165main ()
2166{
2167
2168  ;
2169  return 0;
2170}
2171_ACEOF
2172ac_clean_files_save=$ac_clean_files
2173ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2174# Try to create an executable without -o first, disregard a.out.
2175# It will help us diagnose broken compilers, and finding out an intuition
2176# of exeext.
2177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2178$as_echo_n "checking whether the C compiler works... " >&6; }
2179ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2180
2181# The possible output files:
2182ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2183
2184ac_rmfiles=
2185for ac_file in $ac_files
2186do
2187  case $ac_file in
2188    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2189    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2190  esac
2191done
2192rm -f $ac_rmfiles
2193
2194if { { ac_try="$ac_link_default"
2195case "(($ac_try" in
2196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2197  *) ac_try_echo=$ac_try;;
2198esac
2199eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2200$as_echo "$ac_try_echo"; } >&5
2201  (eval "$ac_link_default") 2>&5
2202  ac_status=$?
2203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2204  test $ac_status = 0; }; then :
2205  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2206# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2207# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2208# so that the user can short-circuit this test for compilers unknown to
2209# Autoconf.
2210for ac_file in $ac_files ''
2211do
2212  test -f "$ac_file" || continue
2213  case $ac_file in
2214    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2215	;;
2216    [ab].out )
2217	# We found the default executable, but exeext='' is most
2218	# certainly right.
2219	break;;
2220    *.* )
2221	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2222	then :; else
2223	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2224	fi
2225	# We set ac_cv_exeext here because the later test for it is not
2226	# safe: cross compilers may not add the suffix if given an `-o'
2227	# argument, so we may need to know it at that point already.
2228	# Even if this section looks crufty: it has the advantage of
2229	# actually working.
2230	break;;
2231    * )
2232	break;;
2233  esac
2234done
2235test "$ac_cv_exeext" = no && ac_cv_exeext=
2236
2237else
2238  ac_file=''
2239fi
2240if test -z "$ac_file"; then :
2241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2242$as_echo "no" >&6; }
2243$as_echo "$as_me: failed program was:" >&5
2244sed 's/^/| /' conftest.$ac_ext >&5
2245
2246{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2248as_fn_error 77 "C compiler cannot create executables
2249See \`config.log' for more details" "$LINENO" 5; }
2250else
2251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2252$as_echo "yes" >&6; }
2253fi
2254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2255$as_echo_n "checking for C compiler default output file name... " >&6; }
2256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2257$as_echo "$ac_file" >&6; }
2258ac_exeext=$ac_cv_exeext
2259
2260rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2261ac_clean_files=$ac_clean_files_save
2262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2263$as_echo_n "checking for suffix of executables... " >&6; }
2264if { { ac_try="$ac_link"
2265case "(($ac_try" in
2266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267  *) ac_try_echo=$ac_try;;
2268esac
2269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270$as_echo "$ac_try_echo"; } >&5
2271  (eval "$ac_link") 2>&5
2272  ac_status=$?
2273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2274  test $ac_status = 0; }; then :
2275  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2277# work properly (i.e., refer to `conftest.exe'), while it won't with
2278# `rm'.
2279for ac_file in conftest.exe conftest conftest.*; do
2280  test -f "$ac_file" || continue
2281  case $ac_file in
2282    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2283    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284	  break;;
2285    * ) break;;
2286  esac
2287done
2288else
2289  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2291as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2292See \`config.log' for more details" "$LINENO" 5; }
2293fi
2294rm -f conftest conftest$ac_cv_exeext
2295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2296$as_echo "$ac_cv_exeext" >&6; }
2297
2298rm -f conftest.$ac_ext
2299EXEEXT=$ac_cv_exeext
2300ac_exeext=$EXEEXT
2301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302/* end confdefs.h.  */
2303#include <stdio.h>
2304int
2305main ()
2306{
2307FILE *f = fopen ("conftest.out", "w");
2308 return ferror (f) || fclose (f) != 0;
2309
2310  ;
2311  return 0;
2312}
2313_ACEOF
2314ac_clean_files="$ac_clean_files conftest.out"
2315# Check that the compiler produces executables we can run.  If not, either
2316# the compiler is broken, or we cross compile.
2317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2318$as_echo_n "checking whether we are cross compiling... " >&6; }
2319if test "$cross_compiling" != yes; then
2320  { { ac_try="$ac_link"
2321case "(($ac_try" in
2322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323  *) ac_try_echo=$ac_try;;
2324esac
2325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2326$as_echo "$ac_try_echo"; } >&5
2327  (eval "$ac_link") 2>&5
2328  ac_status=$?
2329  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2330  test $ac_status = 0; }
2331  if { ac_try='./conftest$ac_cv_exeext'
2332  { { case "(($ac_try" in
2333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334  *) ac_try_echo=$ac_try;;
2335esac
2336eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2337$as_echo "$ac_try_echo"; } >&5
2338  (eval "$ac_try") 2>&5
2339  ac_status=$?
2340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2341  test $ac_status = 0; }; }; then
2342    cross_compiling=no
2343  else
2344    if test "$cross_compiling" = maybe; then
2345	cross_compiling=yes
2346    else
2347	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2349as_fn_error $? "cannot run C compiled programs.
2350If you meant to cross compile, use \`--host'.
2351See \`config.log' for more details" "$LINENO" 5; }
2352    fi
2353  fi
2354fi
2355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2356$as_echo "$cross_compiling" >&6; }
2357
2358rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2359ac_clean_files=$ac_clean_files_save
2360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2361$as_echo_n "checking for suffix of object files... " >&6; }
2362if ${ac_cv_objext+:} false; then :
2363  $as_echo_n "(cached) " >&6
2364else
2365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366/* end confdefs.h.  */
2367
2368int
2369main ()
2370{
2371
2372  ;
2373  return 0;
2374}
2375_ACEOF
2376rm -f conftest.o conftest.obj
2377if { { ac_try="$ac_compile"
2378case "(($ac_try" in
2379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380  *) ac_try_echo=$ac_try;;
2381esac
2382eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2383$as_echo "$ac_try_echo"; } >&5
2384  (eval "$ac_compile") 2>&5
2385  ac_status=$?
2386  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2387  test $ac_status = 0; }; then :
2388  for ac_file in conftest.o conftest.obj conftest.*; do
2389  test -f "$ac_file" || continue;
2390  case $ac_file in
2391    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2392    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2393       break;;
2394  esac
2395done
2396else
2397  $as_echo "$as_me: failed program was:" >&5
2398sed 's/^/| /' conftest.$ac_ext >&5
2399
2400{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2402as_fn_error $? "cannot compute suffix of object files: cannot compile
2403See \`config.log' for more details" "$LINENO" 5; }
2404fi
2405rm -f conftest.$ac_cv_objext conftest.$ac_ext
2406fi
2407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2408$as_echo "$ac_cv_objext" >&6; }
2409OBJEXT=$ac_cv_objext
2410ac_objext=$OBJEXT
2411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2412$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2413if ${ac_cv_c_compiler_gnu+:} false; then :
2414  $as_echo_n "(cached) " >&6
2415else
2416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417/* end confdefs.h.  */
2418
2419int
2420main ()
2421{
2422#ifndef __GNUC__
2423       choke me
2424#endif
2425
2426  ;
2427  return 0;
2428}
2429_ACEOF
2430if ac_fn_c_try_compile "$LINENO"; then :
2431  ac_compiler_gnu=yes
2432else
2433  ac_compiler_gnu=no
2434fi
2435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436ac_cv_c_compiler_gnu=$ac_compiler_gnu
2437
2438fi
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2440$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2441if test $ac_compiler_gnu = yes; then
2442  GCC=yes
2443else
2444  GCC=
2445fi
2446ac_test_CFLAGS=${CFLAGS+set}
2447ac_save_CFLAGS=$CFLAGS
2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2449$as_echo_n "checking whether $CC accepts -g... " >&6; }
2450if ${ac_cv_prog_cc_g+:} false; then :
2451  $as_echo_n "(cached) " >&6
2452else
2453  ac_save_c_werror_flag=$ac_c_werror_flag
2454   ac_c_werror_flag=yes
2455   ac_cv_prog_cc_g=no
2456   CFLAGS="-g"
2457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458/* end confdefs.h.  */
2459
2460int
2461main ()
2462{
2463
2464  ;
2465  return 0;
2466}
2467_ACEOF
2468if ac_fn_c_try_compile "$LINENO"; then :
2469  ac_cv_prog_cc_g=yes
2470else
2471  CFLAGS=""
2472      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473/* end confdefs.h.  */
2474
2475int
2476main ()
2477{
2478
2479  ;
2480  return 0;
2481}
2482_ACEOF
2483if ac_fn_c_try_compile "$LINENO"; then :
2484
2485else
2486  ac_c_werror_flag=$ac_save_c_werror_flag
2487	 CFLAGS="-g"
2488	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2489/* end confdefs.h.  */
2490
2491int
2492main ()
2493{
2494
2495  ;
2496  return 0;
2497}
2498_ACEOF
2499if ac_fn_c_try_compile "$LINENO"; then :
2500  ac_cv_prog_cc_g=yes
2501fi
2502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2503fi
2504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2505fi
2506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2507   ac_c_werror_flag=$ac_save_c_werror_flag
2508fi
2509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2510$as_echo "$ac_cv_prog_cc_g" >&6; }
2511if test "$ac_test_CFLAGS" = set; then
2512  CFLAGS=$ac_save_CFLAGS
2513elif test $ac_cv_prog_cc_g = yes; then
2514  if test "$GCC" = yes; then
2515    CFLAGS="-g -O2"
2516  else
2517    CFLAGS="-g"
2518  fi
2519else
2520  if test "$GCC" = yes; then
2521    CFLAGS="-O2"
2522  else
2523    CFLAGS=
2524  fi
2525fi
2526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2527$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2528if ${ac_cv_prog_cc_c89+:} false; then :
2529  $as_echo_n "(cached) " >&6
2530else
2531  ac_cv_prog_cc_c89=no
2532ac_save_CC=$CC
2533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534/* end confdefs.h.  */
2535#include <stdarg.h>
2536#include <stdio.h>
2537struct stat;
2538/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2539struct buf { int x; };
2540FILE * (*rcsopen) (struct buf *, struct stat *, int);
2541static char *e (p, i)
2542     char **p;
2543     int i;
2544{
2545  return p[i];
2546}
2547static char *f (char * (*g) (char **, int), char **p, ...)
2548{
2549  char *s;
2550  va_list v;
2551  va_start (v,p);
2552  s = g (p, va_arg (v,int));
2553  va_end (v);
2554  return s;
2555}
2556
2557/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2558   function prototypes and stuff, but not '\xHH' hex character constants.
2559   These don't provoke an error unfortunately, instead are silently treated
2560   as 'x'.  The following induces an error, until -std is added to get
2561   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2562   array size at least.  It's necessary to write '\x00'==0 to get something
2563   that's true only with -std.  */
2564int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2565
2566/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2567   inside strings and character constants.  */
2568#define FOO(x) 'x'
2569int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2570
2571int test (int i, double x);
2572struct s1 {int (*f) (int a);};
2573struct s2 {int (*f) (double a);};
2574int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2575int argc;
2576char **argv;
2577int
2578main ()
2579{
2580return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2581  ;
2582  return 0;
2583}
2584_ACEOF
2585for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2586	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2587do
2588  CC="$ac_save_CC $ac_arg"
2589  if ac_fn_c_try_compile "$LINENO"; then :
2590  ac_cv_prog_cc_c89=$ac_arg
2591fi
2592rm -f core conftest.err conftest.$ac_objext
2593  test "x$ac_cv_prog_cc_c89" != "xno" && break
2594done
2595rm -f conftest.$ac_ext
2596CC=$ac_save_CC
2597
2598fi
2599# AC_CACHE_VAL
2600case "x$ac_cv_prog_cc_c89" in
2601  x)
2602    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2603$as_echo "none needed" >&6; } ;;
2604  xno)
2605    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2606$as_echo "unsupported" >&6; } ;;
2607  *)
2608    CC="$CC $ac_cv_prog_cc_c89"
2609    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2610$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2611esac
2612if test "x$ac_cv_prog_cc_c89" != xno; then :
2613
2614fi
2615
2616ac_ext=c
2617ac_cpp='$CPP $CPPFLAGS'
2618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2620ac_compiler_gnu=$ac_cv_c_compiler_gnu
2621
2622ac_ext=c
2623ac_cpp='$CPP $CPPFLAGS'
2624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2626ac_compiler_gnu=$ac_cv_c_compiler_gnu
2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2628$as_echo_n "checking how to run the C preprocessor... " >&6; }
2629# On Suns, sometimes $CPP names a directory.
2630if test -n "$CPP" && test -d "$CPP"; then
2631  CPP=
2632fi
2633if test -z "$CPP"; then
2634  if ${ac_cv_prog_CPP+:} false; then :
2635  $as_echo_n "(cached) " >&6
2636else
2637      # Double quotes because CPP needs to be expanded
2638    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2639    do
2640      ac_preproc_ok=false
2641for ac_c_preproc_warn_flag in '' yes
2642do
2643  # Use a header file that comes with gcc, so configuring glibc
2644  # with a fresh cross-compiler works.
2645  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2646  # <limits.h> exists even on freestanding compilers.
2647  # On the NeXT, cc -E runs the code through the compiler's parser,
2648  # not just through cpp. "Syntax error" is here to catch this case.
2649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650/* end confdefs.h.  */
2651#ifdef __STDC__
2652# include <limits.h>
2653#else
2654# include <assert.h>
2655#endif
2656		     Syntax error
2657_ACEOF
2658if ac_fn_c_try_cpp "$LINENO"; then :
2659
2660else
2661  # Broken: fails on valid input.
2662continue
2663fi
2664rm -f conftest.err conftest.i conftest.$ac_ext
2665
2666  # OK, works on sane cases.  Now check whether nonexistent headers
2667  # can be detected and how.
2668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669/* end confdefs.h.  */
2670#include <ac_nonexistent.h>
2671_ACEOF
2672if ac_fn_c_try_cpp "$LINENO"; then :
2673  # Broken: success on invalid input.
2674continue
2675else
2676  # Passes both tests.
2677ac_preproc_ok=:
2678break
2679fi
2680rm -f conftest.err conftest.i conftest.$ac_ext
2681
2682done
2683# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2684rm -f conftest.i conftest.err conftest.$ac_ext
2685if $ac_preproc_ok; then :
2686  break
2687fi
2688
2689    done
2690    ac_cv_prog_CPP=$CPP
2691
2692fi
2693  CPP=$ac_cv_prog_CPP
2694else
2695  ac_cv_prog_CPP=$CPP
2696fi
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
2698$as_echo "$CPP" >&6; }
2699ac_preproc_ok=false
2700for ac_c_preproc_warn_flag in '' yes
2701do
2702  # Use a header file that comes with gcc, so configuring glibc
2703  # with a fresh cross-compiler works.
2704  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2705  # <limits.h> exists even on freestanding compilers.
2706  # On the NeXT, cc -E runs the code through the compiler's parser,
2707  # not just through cpp. "Syntax error" is here to catch this case.
2708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709/* end confdefs.h.  */
2710#ifdef __STDC__
2711# include <limits.h>
2712#else
2713# include <assert.h>
2714#endif
2715		     Syntax error
2716_ACEOF
2717if ac_fn_c_try_cpp "$LINENO"; then :
2718
2719else
2720  # Broken: fails on valid input.
2721continue
2722fi
2723rm -f conftest.err conftest.i conftest.$ac_ext
2724
2725  # OK, works on sane cases.  Now check whether nonexistent headers
2726  # can be detected and how.
2727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2728/* end confdefs.h.  */
2729#include <ac_nonexistent.h>
2730_ACEOF
2731if ac_fn_c_try_cpp "$LINENO"; then :
2732  # Broken: success on invalid input.
2733continue
2734else
2735  # Passes both tests.
2736ac_preproc_ok=:
2737break
2738fi
2739rm -f conftest.err conftest.i conftest.$ac_ext
2740
2741done
2742# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2743rm -f conftest.i conftest.err conftest.$ac_ext
2744if $ac_preproc_ok; then :
2745
2746else
2747  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2749as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
2750See \`config.log' for more details" "$LINENO" 5; }
2751fi
2752
2753ac_ext=c
2754ac_cpp='$CPP $CPPFLAGS'
2755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758
2759ac_ext=c
2760ac_cpp='$CPP $CPPFLAGS'
2761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763ac_compiler_gnu=$ac_cv_c_compiler_gnu
2764if test -n "$ac_tool_prefix"; then
2765  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2766set dummy ${ac_tool_prefix}gcc; ac_word=$2
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768$as_echo_n "checking for $ac_word... " >&6; }
2769if ${ac_cv_prog_CC+:} false; then :
2770  $as_echo_n "(cached) " >&6
2771else
2772  if test -n "$CC"; then
2773  ac_cv_prog_CC="$CC" # Let the user override the test.
2774else
2775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776for as_dir in $PATH
2777do
2778  IFS=$as_save_IFS
2779  test -z "$as_dir" && as_dir=.
2780    for ac_exec_ext in '' $ac_executable_extensions; do
2781  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2782    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784    break 2
2785  fi
2786done
2787  done
2788IFS=$as_save_IFS
2789
2790fi
2791fi
2792CC=$ac_cv_prog_CC
2793if test -n "$CC"; then
2794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2795$as_echo "$CC" >&6; }
2796else
2797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798$as_echo "no" >&6; }
2799fi
2800
2801
2802fi
2803if test -z "$ac_cv_prog_CC"; then
2804  ac_ct_CC=$CC
2805  # Extract the first word of "gcc", so it can be a program name with args.
2806set dummy gcc; ac_word=$2
2807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808$as_echo_n "checking for $ac_word... " >&6; }
2809if ${ac_cv_prog_ac_ct_CC+:} false; then :
2810  $as_echo_n "(cached) " >&6
2811else
2812  if test -n "$ac_ct_CC"; then
2813  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2814else
2815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816for as_dir in $PATH
2817do
2818  IFS=$as_save_IFS
2819  test -z "$as_dir" && as_dir=.
2820    for ac_exec_ext in '' $ac_executable_extensions; do
2821  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822    ac_cv_prog_ac_ct_CC="gcc"
2823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2824    break 2
2825  fi
2826done
2827  done
2828IFS=$as_save_IFS
2829
2830fi
2831fi
2832ac_ct_CC=$ac_cv_prog_ac_ct_CC
2833if test -n "$ac_ct_CC"; then
2834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2835$as_echo "$ac_ct_CC" >&6; }
2836else
2837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838$as_echo "no" >&6; }
2839fi
2840
2841  if test "x$ac_ct_CC" = x; then
2842    CC=""
2843  else
2844    case $cross_compiling:$ac_tool_warned in
2845yes:)
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2848ac_tool_warned=yes ;;
2849esac
2850    CC=$ac_ct_CC
2851  fi
2852else
2853  CC="$ac_cv_prog_CC"
2854fi
2855
2856if test -z "$CC"; then
2857          if test -n "$ac_tool_prefix"; then
2858    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2859set dummy ${ac_tool_prefix}cc; ac_word=$2
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861$as_echo_n "checking for $ac_word... " >&6; }
2862if ${ac_cv_prog_CC+:} false; then :
2863  $as_echo_n "(cached) " >&6
2864else
2865  if test -n "$CC"; then
2866  ac_cv_prog_CC="$CC" # Let the user override the test.
2867else
2868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869for as_dir in $PATH
2870do
2871  IFS=$as_save_IFS
2872  test -z "$as_dir" && as_dir=.
2873    for ac_exec_ext in '' $ac_executable_extensions; do
2874  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875    ac_cv_prog_CC="${ac_tool_prefix}cc"
2876    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877    break 2
2878  fi
2879done
2880  done
2881IFS=$as_save_IFS
2882
2883fi
2884fi
2885CC=$ac_cv_prog_CC
2886if test -n "$CC"; then
2887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2888$as_echo "$CC" >&6; }
2889else
2890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891$as_echo "no" >&6; }
2892fi
2893
2894
2895  fi
2896fi
2897if test -z "$CC"; then
2898  # Extract the first word of "cc", so it can be a program name with args.
2899set dummy cc; ac_word=$2
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901$as_echo_n "checking for $ac_word... " >&6; }
2902if ${ac_cv_prog_CC+:} false; then :
2903  $as_echo_n "(cached) " >&6
2904else
2905  if test -n "$CC"; then
2906  ac_cv_prog_CC="$CC" # Let the user override the test.
2907else
2908  ac_prog_rejected=no
2909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910for as_dir in $PATH
2911do
2912  IFS=$as_save_IFS
2913  test -z "$as_dir" && as_dir=.
2914    for ac_exec_ext in '' $ac_executable_extensions; do
2915  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2916    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2917       ac_prog_rejected=yes
2918       continue
2919     fi
2920    ac_cv_prog_CC="cc"
2921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922    break 2
2923  fi
2924done
2925  done
2926IFS=$as_save_IFS
2927
2928if test $ac_prog_rejected = yes; then
2929  # We found a bogon in the path, so make sure we never use it.
2930  set dummy $ac_cv_prog_CC
2931  shift
2932  if test $# != 0; then
2933    # We chose a different compiler from the bogus one.
2934    # However, it has the same basename, so the bogon will be chosen
2935    # first if we set CC to just the basename; use the full file name.
2936    shift
2937    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2938  fi
2939fi
2940fi
2941fi
2942CC=$ac_cv_prog_CC
2943if test -n "$CC"; then
2944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2945$as_echo "$CC" >&6; }
2946else
2947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948$as_echo "no" >&6; }
2949fi
2950
2951
2952fi
2953if test -z "$CC"; then
2954  if test -n "$ac_tool_prefix"; then
2955  for ac_prog in cl.exe
2956  do
2957    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2958set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960$as_echo_n "checking for $ac_word... " >&6; }
2961if ${ac_cv_prog_CC+:} false; then :
2962  $as_echo_n "(cached) " >&6
2963else
2964  if test -n "$CC"; then
2965  ac_cv_prog_CC="$CC" # Let the user override the test.
2966else
2967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968for as_dir in $PATH
2969do
2970  IFS=$as_save_IFS
2971  test -z "$as_dir" && as_dir=.
2972    for ac_exec_ext in '' $ac_executable_extensions; do
2973  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2974    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2975    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976    break 2
2977  fi
2978done
2979  done
2980IFS=$as_save_IFS
2981
2982fi
2983fi
2984CC=$ac_cv_prog_CC
2985if test -n "$CC"; then
2986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2987$as_echo "$CC" >&6; }
2988else
2989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990$as_echo "no" >&6; }
2991fi
2992
2993
2994    test -n "$CC" && break
2995  done
2996fi
2997if test -z "$CC"; then
2998  ac_ct_CC=$CC
2999  for ac_prog in cl.exe
3000do
3001  # Extract the first word of "$ac_prog", so it can be a program name with args.
3002set dummy $ac_prog; ac_word=$2
3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004$as_echo_n "checking for $ac_word... " >&6; }
3005if ${ac_cv_prog_ac_ct_CC+:} false; then :
3006  $as_echo_n "(cached) " >&6
3007else
3008  if test -n "$ac_ct_CC"; then
3009  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3010else
3011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012for as_dir in $PATH
3013do
3014  IFS=$as_save_IFS
3015  test -z "$as_dir" && as_dir=.
3016    for ac_exec_ext in '' $ac_executable_extensions; do
3017  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018    ac_cv_prog_ac_ct_CC="$ac_prog"
3019    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020    break 2
3021  fi
3022done
3023  done
3024IFS=$as_save_IFS
3025
3026fi
3027fi
3028ac_ct_CC=$ac_cv_prog_ac_ct_CC
3029if test -n "$ac_ct_CC"; then
3030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3031$as_echo "$ac_ct_CC" >&6; }
3032else
3033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034$as_echo "no" >&6; }
3035fi
3036
3037
3038  test -n "$ac_ct_CC" && break
3039done
3040
3041  if test "x$ac_ct_CC" = x; then
3042    CC=""
3043  else
3044    case $cross_compiling:$ac_tool_warned in
3045yes:)
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3048ac_tool_warned=yes ;;
3049esac
3050    CC=$ac_ct_CC
3051  fi
3052fi
3053
3054fi
3055
3056
3057test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3059as_fn_error $? "no acceptable C compiler found in \$PATH
3060See \`config.log' for more details" "$LINENO" 5; }
3061
3062# Provide some information about the compiler.
3063$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3064set X $ac_compile
3065ac_compiler=$2
3066for ac_option in --version -v -V -qversion; do
3067  { { ac_try="$ac_compiler $ac_option >&5"
3068case "(($ac_try" in
3069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070  *) ac_try_echo=$ac_try;;
3071esac
3072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3073$as_echo "$ac_try_echo"; } >&5
3074  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3075  ac_status=$?
3076  if test -s conftest.err; then
3077    sed '10a\
3078... rest of stderr output deleted ...
3079         10q' conftest.err >conftest.er1
3080    cat conftest.er1 >&5
3081  fi
3082  rm -f conftest.er1 conftest.err
3083  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084  test $ac_status = 0; }
3085done
3086
3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3088$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3089if ${ac_cv_c_compiler_gnu+:} false; then :
3090  $as_echo_n "(cached) " >&6
3091else
3092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3093/* end confdefs.h.  */
3094
3095int
3096main ()
3097{
3098#ifndef __GNUC__
3099       choke me
3100#endif
3101
3102  ;
3103  return 0;
3104}
3105_ACEOF
3106if ac_fn_c_try_compile "$LINENO"; then :
3107  ac_compiler_gnu=yes
3108else
3109  ac_compiler_gnu=no
3110fi
3111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112ac_cv_c_compiler_gnu=$ac_compiler_gnu
3113
3114fi
3115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3116$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3117if test $ac_compiler_gnu = yes; then
3118  GCC=yes
3119else
3120  GCC=
3121fi
3122ac_test_CFLAGS=${CFLAGS+set}
3123ac_save_CFLAGS=$CFLAGS
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3125$as_echo_n "checking whether $CC accepts -g... " >&6; }
3126if ${ac_cv_prog_cc_g+:} false; then :
3127  $as_echo_n "(cached) " >&6
3128else
3129  ac_save_c_werror_flag=$ac_c_werror_flag
3130   ac_c_werror_flag=yes
3131   ac_cv_prog_cc_g=no
3132   CFLAGS="-g"
3133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134/* end confdefs.h.  */
3135
3136int
3137main ()
3138{
3139
3140  ;
3141  return 0;
3142}
3143_ACEOF
3144if ac_fn_c_try_compile "$LINENO"; then :
3145  ac_cv_prog_cc_g=yes
3146else
3147  CFLAGS=""
3148      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3149/* end confdefs.h.  */
3150
3151int
3152main ()
3153{
3154
3155  ;
3156  return 0;
3157}
3158_ACEOF
3159if ac_fn_c_try_compile "$LINENO"; then :
3160
3161else
3162  ac_c_werror_flag=$ac_save_c_werror_flag
3163	 CFLAGS="-g"
3164	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165/* end confdefs.h.  */
3166
3167int
3168main ()
3169{
3170
3171  ;
3172  return 0;
3173}
3174_ACEOF
3175if ac_fn_c_try_compile "$LINENO"; then :
3176  ac_cv_prog_cc_g=yes
3177fi
3178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179fi
3180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181fi
3182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3183   ac_c_werror_flag=$ac_save_c_werror_flag
3184fi
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3186$as_echo "$ac_cv_prog_cc_g" >&6; }
3187if test "$ac_test_CFLAGS" = set; then
3188  CFLAGS=$ac_save_CFLAGS
3189elif test $ac_cv_prog_cc_g = yes; then
3190  if test "$GCC" = yes; then
3191    CFLAGS="-g -O2"
3192  else
3193    CFLAGS="-g"
3194  fi
3195else
3196  if test "$GCC" = yes; then
3197    CFLAGS="-O2"
3198  else
3199    CFLAGS=
3200  fi
3201fi
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3203$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3204if ${ac_cv_prog_cc_c89+:} false; then :
3205  $as_echo_n "(cached) " >&6
3206else
3207  ac_cv_prog_cc_c89=no
3208ac_save_CC=$CC
3209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210/* end confdefs.h.  */
3211#include <stdarg.h>
3212#include <stdio.h>
3213struct stat;
3214/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3215struct buf { int x; };
3216FILE * (*rcsopen) (struct buf *, struct stat *, int);
3217static char *e (p, i)
3218     char **p;
3219     int i;
3220{
3221  return p[i];
3222}
3223static char *f (char * (*g) (char **, int), char **p, ...)
3224{
3225  char *s;
3226  va_list v;
3227  va_start (v,p);
3228  s = g (p, va_arg (v,int));
3229  va_end (v);
3230  return s;
3231}
3232
3233/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3234   function prototypes and stuff, but not '\xHH' hex character constants.
3235   These don't provoke an error unfortunately, instead are silently treated
3236   as 'x'.  The following induces an error, until -std is added to get
3237   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3238   array size at least.  It's necessary to write '\x00'==0 to get something
3239   that's true only with -std.  */
3240int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3241
3242/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3243   inside strings and character constants.  */
3244#define FOO(x) 'x'
3245int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3246
3247int test (int i, double x);
3248struct s1 {int (*f) (int a);};
3249struct s2 {int (*f) (double a);};
3250int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3251int argc;
3252char **argv;
3253int
3254main ()
3255{
3256return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3257  ;
3258  return 0;
3259}
3260_ACEOF
3261for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3262	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3263do
3264  CC="$ac_save_CC $ac_arg"
3265  if ac_fn_c_try_compile "$LINENO"; then :
3266  ac_cv_prog_cc_c89=$ac_arg
3267fi
3268rm -f core conftest.err conftest.$ac_objext
3269  test "x$ac_cv_prog_cc_c89" != "xno" && break
3270done
3271rm -f conftest.$ac_ext
3272CC=$ac_save_CC
3273
3274fi
3275# AC_CACHE_VAL
3276case "x$ac_cv_prog_cc_c89" in
3277  x)
3278    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3279$as_echo "none needed" >&6; } ;;
3280  xno)
3281    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3282$as_echo "unsupported" >&6; } ;;
3283  *)
3284    CC="$CC $ac_cv_prog_cc_c89"
3285    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3286$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3287esac
3288if test "x$ac_cv_prog_cc_c89" != xno; then :
3289
3290fi
3291
3292ac_ext=c
3293ac_cpp='$CPP $CPPFLAGS'
3294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297
3298
3299FOUND_ALL="no"
3300
3301#
3302# if users provide both PKG_CPPFLAGS *and* PKG_LIBS, then we're done!
3303#
3304test -n "${PKG_CPPFLAGS}" -a -n "${PKG_LIBS}" && FOUND_ALL="yes"
3305
3306#
3307# does user want a particular SQLite installation/version (possibly
3308# overriding system directories)?
3309#
3310
3311# Check whether --with-sqlite-dir was given.
3312if test "${with_sqlite_dir+set}" = set; then :
3313  withval=$with_sqlite_dir; SQLITE_DIR="${with_sqlite_dir}"
3314else
3315  SQLITE_DIR=""
3316fi
3317
3318
3319# Check whether --with-sqlite-lib was given.
3320if test "${with_sqlite_lib+set}" = set; then :
3321  withval=$with_sqlite_lib; SQLITE_LIB="${with_sqlite_lib}"
3322else
3323  SQLITE_LIB=""
3324fi
3325
3326
3327# Check whether --with-sqlite-inc was given.
3328if test "${with_sqlite_inc+set}" = set; then :
3329  withval=$with_sqlite_inc; SQLITE_INC="${with_sqlite_inc}"
3330else
3331  SQLITE_INC=""
3332fi
3333
3334#
3335# Use SQLITE_DIR (if specified) to initialize SQLITE_{INC,LIB}
3336# (handle the uniformative cases --with-no-sqlite or w.o. DIR values,
3337# and make sure the various directories actually exist).  Ignore
3338# with-sqlite-inc and with-sqlite-lib if with-sqlite-dir is present,
3339# but issue a warning.
3340#
3341if test "${FOUND_ALL}" = "no"; then
3342    if test -n "${SQLITE_DIR}" ; then
3343       test ! -d "${SQLITE_DIR}" && \
3344                  as_fn_error $? "dir ${SQLITE_DIR} does not exist" "$LINENO" 5
3345       test -n "${SQLITE_INC}" && \
3346                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using sqlite-dir and ignoring sqlite-inc" >&5
3347$as_echo "$as_me: WARNING: Using sqlite-dir and ignoring sqlite-inc" >&2;}
3348       test -n "${SQLITE_LIB}" && \
3349                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using sqlite-dir and ignoring sqlite-lib" >&5
3350$as_echo "$as_me: WARNING: Using sqlite-dir and ignoring sqlite-lib" >&2;}
3351       SQLITE_INC="${SQLITE_DIR}/include"
3352       SQLITE_LIB="${SQLITE_DIR}/lib"
3353       test ! -d "${SQLITE_INC}" && \
3354                  as_fn_error $? "dir ${SQLITE_INC} does not exist" "$LINENO" 5
3355       test ! -d "${SQLITE_LIB}" && \
3356                  as_fn_error $? "dir ${SQLITE_LIB} does not exist" "$LINENO" 5
3357       PKG_LIBS="-L${SQLITE_LIB} -lsqlite3"
3358       PKG_CPPFLAGS="-I${SQLITE_INC}"
3359       FOUND_ALL="yes"
3360    else
3361       if test -n "${SQLITE_INC}" || test -n "${SQLITE_LIB}"; then
3362          ## must have both
3363          test -n "${SQLITE_INC}" && test -n "${SQLITE_LIB}" || \
3364               as_fn_error $? "must specify sqlite-inc and sqlite-lib" "$LINENO" 5
3365          ## must be dirs
3366          test ! -d "${SQLITE_INC}" && \
3367               as_fn_error $? "sqlite-inc dir ${SQLITE_INC} does not exist" "$LINENO" 5
3368          test ! -d "${SQLITE_LIB}" && \
3369               as_fn_error $? "sqlite-lib dir ${SQLITE_LIB} does not exist" "$LINENO" 5
3370          PKG_LIBS="-L${SQLITE_LIB} -lsqlite3"
3371          PKG_CPPFLAGS="-I${SQLITE_INC}"
3372          FOUND_ALL="yes"
3373       fi
3374    fi
3375fi
3376
3377
3378if test "${FOUND_ALL}" = "no" ; then
3379   # Since we installed successfully, now we set PKG_* vars and exit
3380   SQLITE_OPTS="-DSQLITE_ENABLE_RTREE"
3381   SQLITE_OPTS="${SQLITE_OPTS} -DSQLITE_ENABLE_FTS3"
3382   SQLITE_OPTS="${SQLITE_OPTS} -DSQLITE_ENABLE_FTS3_PARENTHESIS"
3383   SQLITE_OPTS="${SQLITE_OPTS} -DSQLITE_SOUNDEX"
3384   SQLITE_OPTS="${SQLITE_OPTS} -DSQLITE_MAX_VARIABLE_NUMBER=40000"
3385   SQLITE_OPTS="${SQLITE_OPTS} -DSQLITE_MAX_COLUMN=30000"
3386
3387   PKG_CPPFLAGS="-DRSQLITE_USE_BUNDLED_SQLITE $SQLITE_OPTS"
3388   PKG_LIBS=""
3389
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
3391$as_echo_n "checking for library containing fdatasync... " >&6; }
3392if ${ac_cv_search_fdatasync+:} false; then :
3393  $as_echo_n "(cached) " >&6
3394else
3395  ac_func_search_save_LIBS=$LIBS
3396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397/* end confdefs.h.  */
3398
3399/* Override any GCC internal prototype to avoid an error.
3400   Use char because int might match the return type of a GCC
3401   builtin and then its argument prototype would still apply.  */
3402#ifdef __cplusplus
3403extern "C"
3404#endif
3405char fdatasync ();
3406int
3407main ()
3408{
3409return fdatasync ();
3410  ;
3411  return 0;
3412}
3413_ACEOF
3414for ac_lib in '' rt; do
3415  if test -z "$ac_lib"; then
3416    ac_res="none required"
3417  else
3418    ac_res=-l$ac_lib
3419    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3420  fi
3421  if ac_fn_c_try_link "$LINENO"; then :
3422  ac_cv_search_fdatasync=$ac_res
3423fi
3424rm -f core conftest.err conftest.$ac_objext \
3425    conftest$ac_exeext
3426  if ${ac_cv_search_fdatasync+:} false; then :
3427  break
3428fi
3429done
3430if ${ac_cv_search_fdatasync+:} false; then :
3431
3432else
3433  ac_cv_search_fdatasync=no
3434fi
3435rm conftest.$ac_ext
3436LIBS=$ac_func_search_save_LIBS
3437fi
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
3439$as_echo "$ac_cv_search_fdatasync" >&6; }
3440ac_res=$ac_cv_search_fdatasync
3441if test "$ac_res" != no; then :
3442  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3443
3444fi
3445
3446   PKG_LIBS="${PKG_LIBS} $LIBS"
3447   FOUND_ALL="yes"
3448fi
3449
3450
3451
3452
3453ac_config_files="$ac_config_files src/Makevars"
3454
3455cat >confcache <<\_ACEOF
3456# This file is a shell script that caches the results of configure
3457# tests run on this system so they can be shared between configure
3458# scripts and configure runs, see configure's option --config-cache.
3459# It is not useful on other systems.  If it contains results you don't
3460# want to keep, you may remove or edit it.
3461#
3462# config.status only pays attention to the cache file if you give it
3463# the --recheck option to rerun configure.
3464#
3465# `ac_cv_env_foo' variables (set or unset) will be overridden when
3466# loading this file, other *unset* `ac_cv_foo' will be assigned the
3467# following values.
3468
3469_ACEOF
3470
3471# The following way of writing the cache mishandles newlines in values,
3472# but we know of no workaround that is simple, portable, and efficient.
3473# So, we kill variables containing newlines.
3474# Ultrix sh set writes to stderr and can't be redirected directly,
3475# and sets the high bit in the cache file unless we assign to the vars.
3476(
3477  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3478    eval ac_val=\$$ac_var
3479    case $ac_val in #(
3480    *${as_nl}*)
3481      case $ac_var in #(
3482      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3483$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3484      esac
3485      case $ac_var in #(
3486      _ | IFS | as_nl) ;; #(
3487      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3488      *) { eval $ac_var=; unset $ac_var;} ;;
3489      esac ;;
3490    esac
3491  done
3492
3493  (set) 2>&1 |
3494    case $as_nl`(ac_space=' '; set) 2>&1` in #(
3495    *${as_nl}ac_space=\ *)
3496      # `set' does not quote correctly, so add quotes: double-quote
3497      # substitution turns \\\\ into \\, and sed turns \\ into \.
3498      sed -n \
3499	"s/'/'\\\\''/g;
3500	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3501      ;; #(
3502    *)
3503      # `set' quotes correctly as required by POSIX, so do not add quotes.
3504      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3505      ;;
3506    esac |
3507    sort
3508) |
3509  sed '
3510     /^ac_cv_env_/b end
3511     t clear
3512     :clear
3513     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3514     t end
3515     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3516     :end' >>confcache
3517if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3518  if test -w "$cache_file"; then
3519    if test "x$cache_file" != "x/dev/null"; then
3520      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3521$as_echo "$as_me: updating cache $cache_file" >&6;}
3522      if test ! -f "$cache_file" || test -h "$cache_file"; then
3523	cat confcache >"$cache_file"
3524      else
3525        case $cache_file in #(
3526        */* | ?:*)
3527	  mv -f confcache "$cache_file"$$ &&
3528	  mv -f "$cache_file"$$ "$cache_file" ;; #(
3529        *)
3530	  mv -f confcache "$cache_file" ;;
3531	esac
3532      fi
3533    fi
3534  else
3535    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3536$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3537  fi
3538fi
3539rm -f confcache
3540
3541test "x$prefix" = xNONE && prefix=$ac_default_prefix
3542# Let make expand exec_prefix.
3543test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3544
3545# Transform confdefs.h into DEFS.
3546# Protect against shell expansion while executing Makefile rules.
3547# Protect against Makefile macro expansion.
3548#
3549# If the first sed substitution is executed (which looks for macros that
3550# take arguments), then branch to the quote section.  Otherwise,
3551# look for a macro that doesn't take arguments.
3552ac_script='
3553:mline
3554/\\$/{
3555 N
3556 s,\\\n,,
3557 b mline
3558}
3559t clear
3560:clear
3561s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
3562t quote
3563s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
3564t quote
3565b any
3566:quote
3567s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3568s/\[/\\&/g
3569s/\]/\\&/g
3570s/\$/$$/g
3571H
3572:any
3573${
3574	g
3575	s/^\n//
3576	s/\n/ /g
3577	p
3578}
3579'
3580DEFS=`sed -n "$ac_script" confdefs.h`
3581
3582
3583ac_libobjs=
3584ac_ltlibobjs=
3585U=
3586for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3587  # 1. Remove the extension, and $U if already installed.
3588  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3589  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3590  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
3591  #    will be set to the directory where LIBOBJS objects are built.
3592  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3593  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3594done
3595LIBOBJS=$ac_libobjs
3596
3597LTLIBOBJS=$ac_ltlibobjs
3598
3599
3600
3601: "${CONFIG_STATUS=./config.status}"
3602ac_write_fail=0
3603ac_clean_files_save=$ac_clean_files
3604ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3606$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3607as_write_fail=0
3608cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3609#! $SHELL
3610# Generated by $as_me.
3611# Run this file to recreate the current configuration.
3612# Compiler output produced by configure, useful for debugging
3613# configure, is in config.log if it exists.
3614
3615debug=false
3616ac_cs_recheck=false
3617ac_cs_silent=false
3618
3619SHELL=\${CONFIG_SHELL-$SHELL}
3620export SHELL
3621_ASEOF
3622cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3623## -------------------- ##
3624## M4sh Initialization. ##
3625## -------------------- ##
3626
3627# Be more Bourne compatible
3628DUALCASE=1; export DUALCASE # for MKS sh
3629if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3630  emulate sh
3631  NULLCMD=:
3632  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3633  # is contrary to our usage.  Disable this feature.
3634  alias -g '${1+"$@"}'='"$@"'
3635  setopt NO_GLOB_SUBST
3636else
3637  case `(set -o) 2>/dev/null` in #(
3638  *posix*) :
3639    set -o posix ;; #(
3640  *) :
3641     ;;
3642esac
3643fi
3644
3645
3646as_nl='
3647'
3648export as_nl
3649# Printing a long string crashes Solaris 7 /usr/bin/printf.
3650as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3651as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3652as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3653# Prefer a ksh shell builtin over an external printf program on Solaris,
3654# but without wasting forks for bash or zsh.
3655if test -z "$BASH_VERSION$ZSH_VERSION" \
3656    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3657  as_echo='print -r --'
3658  as_echo_n='print -rn --'
3659elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3660  as_echo='printf %s\n'
3661  as_echo_n='printf %s'
3662else
3663  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3664    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3665    as_echo_n='/usr/ucb/echo -n'
3666  else
3667    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3668    as_echo_n_body='eval
3669      arg=$1;
3670      case $arg in #(
3671      *"$as_nl"*)
3672	expr "X$arg" : "X\\(.*\\)$as_nl";
3673	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3674      esac;
3675      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3676    '
3677    export as_echo_n_body
3678    as_echo_n='sh -c $as_echo_n_body as_echo'
3679  fi
3680  export as_echo_body
3681  as_echo='sh -c $as_echo_body as_echo'
3682fi
3683
3684# The user is always right.
3685if test "${PATH_SEPARATOR+set}" != set; then
3686  PATH_SEPARATOR=:
3687  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3688    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3689      PATH_SEPARATOR=';'
3690  }
3691fi
3692
3693
3694# IFS
3695# We need space, tab and new line, in precisely that order.  Quoting is
3696# there to prevent editors from complaining about space-tab.
3697# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3698# splitting by setting IFS to empty value.)
3699IFS=" ""	$as_nl"
3700
3701# Find who we are.  Look in the path if we contain no directory separator.
3702as_myself=
3703case $0 in #((
3704  *[\\/]* ) as_myself=$0 ;;
3705  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706for as_dir in $PATH
3707do
3708  IFS=$as_save_IFS
3709  test -z "$as_dir" && as_dir=.
3710    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3711  done
3712IFS=$as_save_IFS
3713
3714     ;;
3715esac
3716# We did not find ourselves, most probably we were run as `sh COMMAND'
3717# in which case we are not to be found in the path.
3718if test "x$as_myself" = x; then
3719  as_myself=$0
3720fi
3721if test ! -f "$as_myself"; then
3722  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3723  exit 1
3724fi
3725
3726# Unset variables that we do not need and which cause bugs (e.g. in
3727# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
3728# suppresses any "Segmentation fault" message there.  '((' could
3729# trigger a bug in pdksh 5.2.14.
3730for as_var in BASH_ENV ENV MAIL MAILPATH
3731do eval test x\${$as_var+set} = xset \
3732  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3733done
3734PS1='$ '
3735PS2='> '
3736PS4='+ '
3737
3738# NLS nuisances.
3739LC_ALL=C
3740export LC_ALL
3741LANGUAGE=C
3742export LANGUAGE
3743
3744# CDPATH.
3745(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3746
3747
3748# as_fn_error STATUS ERROR [LINENO LOG_FD]
3749# ----------------------------------------
3750# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3751# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3752# script with STATUS, using 1 if that was 0.
3753as_fn_error ()
3754{
3755  as_status=$1; test $as_status -eq 0 && as_status=1
3756  if test "$4"; then
3757    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3758    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3759  fi
3760  $as_echo "$as_me: error: $2" >&2
3761  as_fn_exit $as_status
3762} # as_fn_error
3763
3764
3765# as_fn_set_status STATUS
3766# -----------------------
3767# Set $? to STATUS, without forking.
3768as_fn_set_status ()
3769{
3770  return $1
3771} # as_fn_set_status
3772
3773# as_fn_exit STATUS
3774# -----------------
3775# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3776as_fn_exit ()
3777{
3778  set +e
3779  as_fn_set_status $1
3780  exit $1
3781} # as_fn_exit
3782
3783# as_fn_unset VAR
3784# ---------------
3785# Portably unset VAR.
3786as_fn_unset ()
3787{
3788  { eval $1=; unset $1;}
3789}
3790as_unset=as_fn_unset
3791# as_fn_append VAR VALUE
3792# ----------------------
3793# Append the text in VALUE to the end of the definition contained in VAR. Take
3794# advantage of any shell optimizations that allow amortized linear growth over
3795# repeated appends, instead of the typical quadratic growth present in naive
3796# implementations.
3797if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3798  eval 'as_fn_append ()
3799  {
3800    eval $1+=\$2
3801  }'
3802else
3803  as_fn_append ()
3804  {
3805    eval $1=\$$1\$2
3806  }
3807fi # as_fn_append
3808
3809# as_fn_arith ARG...
3810# ------------------
3811# Perform arithmetic evaluation on the ARGs, and store the result in the
3812# global $as_val. Take advantage of shells that can avoid forks. The arguments
3813# must be portable across $(()) and expr.
3814if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3815  eval 'as_fn_arith ()
3816  {
3817    as_val=$(( $* ))
3818  }'
3819else
3820  as_fn_arith ()
3821  {
3822    as_val=`expr "$@" || test $? -eq 1`
3823  }
3824fi # as_fn_arith
3825
3826
3827if expr a : '\(a\)' >/dev/null 2>&1 &&
3828   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3829  as_expr=expr
3830else
3831  as_expr=false
3832fi
3833
3834if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3835  as_basename=basename
3836else
3837  as_basename=false
3838fi
3839
3840if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3841  as_dirname=dirname
3842else
3843  as_dirname=false
3844fi
3845
3846as_me=`$as_basename -- "$0" ||
3847$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3848	 X"$0" : 'X\(//\)$' \| \
3849	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3850$as_echo X/"$0" |
3851    sed '/^.*\/\([^/][^/]*\)\/*$/{
3852	    s//\1/
3853	    q
3854	  }
3855	  /^X\/\(\/\/\)$/{
3856	    s//\1/
3857	    q
3858	  }
3859	  /^X\/\(\/\).*/{
3860	    s//\1/
3861	    q
3862	  }
3863	  s/.*/./; q'`
3864
3865# Avoid depending upon Character Ranges.
3866as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3867as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3868as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3869as_cr_digits='0123456789'
3870as_cr_alnum=$as_cr_Letters$as_cr_digits
3871
3872ECHO_C= ECHO_N= ECHO_T=
3873case `echo -n x` in #(((((
3874-n*)
3875  case `echo 'xy\c'` in
3876  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
3877  xy)  ECHO_C='\c';;
3878  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
3879       ECHO_T='	';;
3880  esac;;
3881*)
3882  ECHO_N='-n';;
3883esac
3884
3885rm -f conf$$ conf$$.exe conf$$.file
3886if test -d conf$$.dir; then
3887  rm -f conf$$.dir/conf$$.file
3888else
3889  rm -f conf$$.dir
3890  mkdir conf$$.dir 2>/dev/null
3891fi
3892if (echo >conf$$.file) 2>/dev/null; then
3893  if ln -s conf$$.file conf$$ 2>/dev/null; then
3894    as_ln_s='ln -s'
3895    # ... but there are two gotchas:
3896    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3897    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3898    # In both cases, we have to default to `cp -pR'.
3899    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3900      as_ln_s='cp -pR'
3901  elif ln conf$$.file conf$$ 2>/dev/null; then
3902    as_ln_s=ln
3903  else
3904    as_ln_s='cp -pR'
3905  fi
3906else
3907  as_ln_s='cp -pR'
3908fi
3909rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3910rmdir conf$$.dir 2>/dev/null
3911
3912
3913# as_fn_mkdir_p
3914# -------------
3915# Create "$as_dir" as a directory, including parents if necessary.
3916as_fn_mkdir_p ()
3917{
3918
3919  case $as_dir in #(
3920  -*) as_dir=./$as_dir;;
3921  esac
3922  test -d "$as_dir" || eval $as_mkdir_p || {
3923    as_dirs=
3924    while :; do
3925      case $as_dir in #(
3926      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3927      *) as_qdir=$as_dir;;
3928      esac
3929      as_dirs="'$as_qdir' $as_dirs"
3930      as_dir=`$as_dirname -- "$as_dir" ||
3931$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3932	 X"$as_dir" : 'X\(//\)[^/]' \| \
3933	 X"$as_dir" : 'X\(//\)$' \| \
3934	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3935$as_echo X"$as_dir" |
3936    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3937	    s//\1/
3938	    q
3939	  }
3940	  /^X\(\/\/\)[^/].*/{
3941	    s//\1/
3942	    q
3943	  }
3944	  /^X\(\/\/\)$/{
3945	    s//\1/
3946	    q
3947	  }
3948	  /^X\(\/\).*/{
3949	    s//\1/
3950	    q
3951	  }
3952	  s/.*/./; q'`
3953      test -d "$as_dir" && break
3954    done
3955    test -z "$as_dirs" || eval "mkdir $as_dirs"
3956  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3957
3958
3959} # as_fn_mkdir_p
3960if mkdir -p . 2>/dev/null; then
3961  as_mkdir_p='mkdir -p "$as_dir"'
3962else
3963  test -d ./-p && rmdir ./-p
3964  as_mkdir_p=false
3965fi
3966
3967
3968# as_fn_executable_p FILE
3969# -----------------------
3970# Test if FILE is an executable regular file.
3971as_fn_executable_p ()
3972{
3973  test -f "$1" && test -x "$1"
3974} # as_fn_executable_p
3975as_test_x='test -x'
3976as_executable_p=as_fn_executable_p
3977
3978# Sed expression to map a string onto a valid CPP name.
3979as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3980
3981# Sed expression to map a string onto a valid variable name.
3982as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3983
3984
3985exec 6>&1
3986## ----------------------------------- ##
3987## Main body of $CONFIG_STATUS script. ##
3988## ----------------------------------- ##
3989_ASEOF
3990test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3991
3992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3993# Save the log message, to keep $0 and so on meaningful, and to
3994# report actual input values of CONFIG_FILES etc. instead of their
3995# values after options handling.
3996ac_log="
3997This file was extended by $as_me, which was
3998generated by GNU Autoconf 2.69.  Invocation command line was
3999
4000  CONFIG_FILES    = $CONFIG_FILES
4001  CONFIG_HEADERS  = $CONFIG_HEADERS
4002  CONFIG_LINKS    = $CONFIG_LINKS
4003  CONFIG_COMMANDS = $CONFIG_COMMANDS
4004  $ $0 $@
4005
4006on `(hostname || uname -n) 2>/dev/null | sed 1q`
4007"
4008
4009_ACEOF
4010
4011case $ac_config_files in *"
4012"*) set x $ac_config_files; shift; ac_config_files=$*;;
4013esac
4014
4015
4016
4017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4018# Files that config.status was made for.
4019config_files="$ac_config_files"
4020
4021_ACEOF
4022
4023cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4024ac_cs_usage="\
4025\`$as_me' instantiates files and other configuration actions
4026from templates according to the current configuration.  Unless the files
4027and actions are specified as TAGs, all are instantiated by default.
4028
4029Usage: $0 [OPTION]... [TAG]...
4030
4031  -h, --help       print this help, then exit
4032  -V, --version    print version number and configuration settings, then exit
4033      --config     print configuration, then exit
4034  -q, --quiet, --silent
4035                   do not print progress messages
4036  -d, --debug      don't remove temporary files
4037      --recheck    update $as_me by reconfiguring in the same conditions
4038      --file=FILE[:TEMPLATE]
4039                   instantiate the configuration file FILE
4040
4041Configuration files:
4042$config_files
4043
4044Report bugs to the package provider."
4045
4046_ACEOF
4047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4048ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4049ac_cs_version="\\
4050config.status
4051configured by $0, generated by GNU Autoconf 2.69,
4052  with options \\"\$ac_cs_config\\"
4053
4054Copyright (C) 2012 Free Software Foundation, Inc.
4055This config.status script is free software; the Free Software Foundation
4056gives unlimited permission to copy, distribute and modify it."
4057
4058ac_pwd='$ac_pwd'
4059srcdir='$srcdir'
4060test -n "\$AWK" || AWK=awk
4061_ACEOF
4062
4063cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4064# The default lists apply if the user does not specify any file.
4065ac_need_defaults=:
4066while test $# != 0
4067do
4068  case $1 in
4069  --*=?*)
4070    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4071    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4072    ac_shift=:
4073    ;;
4074  --*=)
4075    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4076    ac_optarg=
4077    ac_shift=:
4078    ;;
4079  *)
4080    ac_option=$1
4081    ac_optarg=$2
4082    ac_shift=shift
4083    ;;
4084  esac
4085
4086  case $ac_option in
4087  # Handling of the options.
4088  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4089    ac_cs_recheck=: ;;
4090  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4091    $as_echo "$ac_cs_version"; exit ;;
4092  --config | --confi | --conf | --con | --co | --c )
4093    $as_echo "$ac_cs_config"; exit ;;
4094  --debug | --debu | --deb | --de | --d | -d )
4095    debug=: ;;
4096  --file | --fil | --fi | --f )
4097    $ac_shift
4098    case $ac_optarg in
4099    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4100    '') as_fn_error $? "missing file argument" ;;
4101    esac
4102    as_fn_append CONFIG_FILES " '$ac_optarg'"
4103    ac_need_defaults=false;;
4104  --he | --h |  --help | --hel | -h )
4105    $as_echo "$ac_cs_usage"; exit ;;
4106  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4107  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4108    ac_cs_silent=: ;;
4109
4110  # This is an error.
4111  -*) as_fn_error $? "unrecognized option: \`$1'
4112Try \`$0 --help' for more information." ;;
4113
4114  *) as_fn_append ac_config_targets " $1"
4115     ac_need_defaults=false ;;
4116
4117  esac
4118  shift
4119done
4120
4121ac_configure_extra_args=
4122
4123if $ac_cs_silent; then
4124  exec 6>/dev/null
4125  ac_configure_extra_args="$ac_configure_extra_args --silent"
4126fi
4127
4128_ACEOF
4129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4130if \$ac_cs_recheck; then
4131  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4132  shift
4133  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4134  CONFIG_SHELL='$SHELL'
4135  export CONFIG_SHELL
4136  exec "\$@"
4137fi
4138
4139_ACEOF
4140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4141exec 5>>config.log
4142{
4143  echo
4144  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4145## Running $as_me. ##
4146_ASBOX
4147  $as_echo "$ac_log"
4148} >&5
4149
4150_ACEOF
4151cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4152_ACEOF
4153
4154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4155
4156# Handling of arguments.
4157for ac_config_target in $ac_config_targets
4158do
4159  case $ac_config_target in
4160    "src/Makevars") CONFIG_FILES="$CONFIG_FILES src/Makevars" ;;
4161
4162  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4163  esac
4164done
4165
4166
4167# If the user did not use the arguments to specify the items to instantiate,
4168# then the envvar interface is used.  Set only those that are not.
4169# We use the long form for the default assignment because of an extremely
4170# bizarre bug on SunOS 4.1.3.
4171if $ac_need_defaults; then
4172  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4173fi
4174
4175# Have a temporary directory for convenience.  Make it in the build tree
4176# simply because there is no reason against having it here, and in addition,
4177# creating and moving files from /tmp can sometimes cause problems.
4178# Hook for its removal unless debugging.
4179# Note that there is a small window in which the directory will not be cleaned:
4180# after its creation but before its name has been assigned to `$tmp'.
4181$debug ||
4182{
4183  tmp= ac_tmp=
4184  trap 'exit_status=$?
4185  : "${ac_tmp:=$tmp}"
4186  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4187' 0
4188  trap 'as_fn_exit 1' 1 2 13 15
4189}
4190# Create a (secure) tmp directory for tmp files.
4191
4192{
4193  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4194  test -d "$tmp"
4195}  ||
4196{
4197  tmp=./conf$$-$RANDOM
4198  (umask 077 && mkdir "$tmp")
4199} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4200ac_tmp=$tmp
4201
4202# Set up the scripts for CONFIG_FILES section.
4203# No need to generate them if there are no CONFIG_FILES.
4204# This happens for instance with `./config.status config.h'.
4205if test -n "$CONFIG_FILES"; then
4206
4207
4208ac_cr=`echo X | tr X '\015'`
4209# On cygwin, bash can eat \r inside `` if the user requested igncr.
4210# But we know of no other shell where ac_cr would be empty at this
4211# point, so we can use a bashism as a fallback.
4212if test "x$ac_cr" = x; then
4213  eval ac_cr=\$\'\\r\'
4214fi
4215ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4216if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4217  ac_cs_awk_cr='\\r'
4218else
4219  ac_cs_awk_cr=$ac_cr
4220fi
4221
4222echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4223_ACEOF
4224
4225
4226{
4227  echo "cat >conf$$subs.awk <<_ACEOF" &&
4228  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4229  echo "_ACEOF"
4230} >conf$$subs.sh ||
4231  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4232ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4233ac_delim='%!_!# '
4234for ac_last_try in false false false false false :; do
4235  . ./conf$$subs.sh ||
4236    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4237
4238  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4239  if test $ac_delim_n = $ac_delim_num; then
4240    break
4241  elif $ac_last_try; then
4242    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4243  else
4244    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4245  fi
4246done
4247rm -f conf$$subs.sh
4248
4249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4250cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4251_ACEOF
4252sed -n '
4253h
4254s/^/S["/; s/!.*/"]=/
4255p
4256g
4257s/^[^!]*!//
4258:repl
4259t repl
4260s/'"$ac_delim"'$//
4261t delim
4262:nl
4263h
4264s/\(.\{148\}\)..*/\1/
4265t more1
4266s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4267p
4268n
4269b repl
4270:more1
4271s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4272p
4273g
4274s/.\{148\}//
4275t nl
4276:delim
4277h
4278s/\(.\{148\}\)..*/\1/
4279t more2
4280s/["\\]/\\&/g; s/^/"/; s/$/"/
4281p
4282b
4283:more2
4284s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4285p
4286g
4287s/.\{148\}//
4288t delim
4289' <conf$$subs.awk | sed '
4290/^[^""]/{
4291  N
4292  s/\n//
4293}
4294' >>$CONFIG_STATUS || ac_write_fail=1
4295rm -f conf$$subs.awk
4296cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4297_ACAWK
4298cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4299  for (key in S) S_is_set[key] = 1
4300  FS = ""
4301
4302}
4303{
4304  line = $ 0
4305  nfields = split(line, field, "@")
4306  substed = 0
4307  len = length(field[1])
4308  for (i = 2; i < nfields; i++) {
4309    key = field[i]
4310    keylen = length(key)
4311    if (S_is_set[key]) {
4312      value = S[key]
4313      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4314      len += length(value) + length(field[++i])
4315      substed = 1
4316    } else
4317      len += 1 + keylen
4318  }
4319
4320  print line
4321}
4322
4323_ACAWK
4324_ACEOF
4325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4326if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4327  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4328else
4329  cat
4330fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4331  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4332_ACEOF
4333
4334# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4335# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4336# trailing colons and then remove the whole line if VPATH becomes empty
4337# (actually we leave an empty line to preserve line numbers).
4338if test "x$srcdir" = x.; then
4339  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
4340h
4341s///
4342s/^/:/
4343s/[	 ]*$/:/
4344s/:\$(srcdir):/:/g
4345s/:\${srcdir}:/:/g
4346s/:@srcdir@:/:/g
4347s/^:*//
4348s/:*$//
4349x
4350s/\(=[	 ]*\).*/\1/
4351G
4352s/\n//
4353s/^[^=]*=[	 ]*$//
4354}'
4355fi
4356
4357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4358fi # test -n "$CONFIG_FILES"
4359
4360
4361eval set X "  :F $CONFIG_FILES      "
4362shift
4363for ac_tag
4364do
4365  case $ac_tag in
4366  :[FHLC]) ac_mode=$ac_tag; continue;;
4367  esac
4368  case $ac_mode$ac_tag in
4369  :[FHL]*:*);;
4370  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4371  :[FH]-) ac_tag=-:-;;
4372  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4373  esac
4374  ac_save_IFS=$IFS
4375  IFS=:
4376  set x $ac_tag
4377  IFS=$ac_save_IFS
4378  shift
4379  ac_file=$1
4380  shift
4381
4382  case $ac_mode in
4383  :L) ac_source=$1;;
4384  :[FH])
4385    ac_file_inputs=
4386    for ac_f
4387    do
4388      case $ac_f in
4389      -) ac_f="$ac_tmp/stdin";;
4390      *) # Look for the file first in the build tree, then in the source tree
4391	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
4392	 # because $ac_f cannot contain `:'.
4393	 test -f "$ac_f" ||
4394	   case $ac_f in
4395	   [\\/$]*) false;;
4396	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4397	   esac ||
4398	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4399      esac
4400      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4401      as_fn_append ac_file_inputs " '$ac_f'"
4402    done
4403
4404    # Let's still pretend it is `configure' which instantiates (i.e., don't
4405    # use $as_me), people would be surprised to read:
4406    #    /* config.h.  Generated by config.status.  */
4407    configure_input='Generated from '`
4408	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4409	`' by configure.'
4410    if test x"$ac_file" != x-; then
4411      configure_input="$ac_file.  $configure_input"
4412      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4413$as_echo "$as_me: creating $ac_file" >&6;}
4414    fi
4415    # Neutralize special characters interpreted by sed in replacement strings.
4416    case $configure_input in #(
4417    *\&* | *\|* | *\\* )
4418       ac_sed_conf_input=`$as_echo "$configure_input" |
4419       sed 's/[\\\\&|]/\\\\&/g'`;; #(
4420    *) ac_sed_conf_input=$configure_input;;
4421    esac
4422
4423    case $ac_tag in
4424    *:-:* | *:-) cat >"$ac_tmp/stdin" \
4425      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4426    esac
4427    ;;
4428  esac
4429
4430  ac_dir=`$as_dirname -- "$ac_file" ||
4431$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4432	 X"$ac_file" : 'X\(//\)[^/]' \| \
4433	 X"$ac_file" : 'X\(//\)$' \| \
4434	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4435$as_echo X"$ac_file" |
4436    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4437	    s//\1/
4438	    q
4439	  }
4440	  /^X\(\/\/\)[^/].*/{
4441	    s//\1/
4442	    q
4443	  }
4444	  /^X\(\/\/\)$/{
4445	    s//\1/
4446	    q
4447	  }
4448	  /^X\(\/\).*/{
4449	    s//\1/
4450	    q
4451	  }
4452	  s/.*/./; q'`
4453  as_dir="$ac_dir"; as_fn_mkdir_p
4454  ac_builddir=.
4455
4456case "$ac_dir" in
4457.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4458*)
4459  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4460  # A ".." for each directory in $ac_dir_suffix.
4461  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4462  case $ac_top_builddir_sub in
4463  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4464  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4465  esac ;;
4466esac
4467ac_abs_top_builddir=$ac_pwd
4468ac_abs_builddir=$ac_pwd$ac_dir_suffix
4469# for backward compatibility:
4470ac_top_builddir=$ac_top_build_prefix
4471
4472case $srcdir in
4473  .)  # We are building in place.
4474    ac_srcdir=.
4475    ac_top_srcdir=$ac_top_builddir_sub
4476    ac_abs_top_srcdir=$ac_pwd ;;
4477  [\\/]* | ?:[\\/]* )  # Absolute name.
4478    ac_srcdir=$srcdir$ac_dir_suffix;
4479    ac_top_srcdir=$srcdir
4480    ac_abs_top_srcdir=$srcdir ;;
4481  *) # Relative name.
4482    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4483    ac_top_srcdir=$ac_top_build_prefix$srcdir
4484    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4485esac
4486ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4487
4488
4489  case $ac_mode in
4490  :F)
4491  #
4492  # CONFIG_FILE
4493  #
4494
4495_ACEOF
4496
4497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4498# If the template does not know about datarootdir, expand it.
4499# FIXME: This hack should be removed a few years after 2.60.
4500ac_datarootdir_hack=; ac_datarootdir_seen=
4501ac_sed_dataroot='
4502/datarootdir/ {
4503  p
4504  q
4505}
4506/@datadir@/p
4507/@docdir@/p
4508/@infodir@/p
4509/@localedir@/p
4510/@mandir@/p'
4511case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4512*datarootdir*) ac_datarootdir_seen=yes;;
4513*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4514  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4515$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4516_ACEOF
4517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4518  ac_datarootdir_hack='
4519  s&@datadir@&$datadir&g
4520  s&@docdir@&$docdir&g
4521  s&@infodir@&$infodir&g
4522  s&@localedir@&$localedir&g
4523  s&@mandir@&$mandir&g
4524  s&\\\${datarootdir}&$datarootdir&g' ;;
4525esac
4526_ACEOF
4527
4528# Neutralize VPATH when `$srcdir' = `.'.
4529# Shell code in configure.ac might set extrasub.
4530# FIXME: do we really want to maintain this feature?
4531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4532ac_sed_extra="$ac_vpsub
4533$extrasub
4534_ACEOF
4535cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4536:t
4537/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4538s|@configure_input@|$ac_sed_conf_input|;t t
4539s&@top_builddir@&$ac_top_builddir_sub&;t t
4540s&@top_build_prefix@&$ac_top_build_prefix&;t t
4541s&@srcdir@&$ac_srcdir&;t t
4542s&@abs_srcdir@&$ac_abs_srcdir&;t t
4543s&@top_srcdir@&$ac_top_srcdir&;t t
4544s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4545s&@builddir@&$ac_builddir&;t t
4546s&@abs_builddir@&$ac_abs_builddir&;t t
4547s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4548$ac_datarootdir_hack
4549"
4550eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4551  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4552
4553test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4554  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4555  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
4556      "$ac_tmp/out"`; test -z "$ac_out"; } &&
4557  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4558which seems to be undefined.  Please make sure it is defined" >&5
4559$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4560which seems to be undefined.  Please make sure it is defined" >&2;}
4561
4562  rm -f "$ac_tmp/stdin"
4563  case $ac_file in
4564  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4565  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4566  esac \
4567  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4568 ;;
4569
4570
4571
4572  esac
4573
4574done # for ac_tag
4575
4576
4577as_fn_exit 0
4578_ACEOF
4579ac_clean_files=$ac_clean_files_save
4580
4581test $ac_write_fail = 0 ||
4582  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4583
4584
4585# configure is writing to config.log, and then calls config.status.
4586# config.status does its own redirection, appending to config.log.
4587# Unfortunately, on DOS this fails, as config.log is still kept open
4588# by configure, so config.status won't be able to write to it; its
4589# output is simply discarded.  So we exec the FD to /dev/null,
4590# effectively closing config.log, so it can be properly (re)opened and
4591# appended to by config.status.  When coming back to configure, we
4592# need to make the FD available again.
4593if test "$no_create" != yes; then
4594  ac_cs_success=:
4595  ac_config_status_args=
4596  test "$silent" = yes &&
4597    ac_config_status_args="$ac_config_status_args --quiet"
4598  exec 5>/dev/null
4599  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4600  exec 5>>config.log
4601  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4602  # would make configure fail if this is the last instruction.
4603  $ac_cs_success || as_fn_exit 1
4604fi
4605if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4606  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4607$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4608fi
4609
4610
4611exit 0
4612