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