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