Initial commit to Gerrit
[profile/ivi/quota.git] / autom4te.cache / output.1
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.61.
4 @%:@ 
5 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 @%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 @%:@ This configure script is free software; the Free Software Foundation
8 @%:@ gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359     
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIB@&t@OBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="quota.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 CC
654 CFLAGS
655 LDFLAGS
656 CPPFLAGS
657 ac_ct_CC
658 EXEEXT
659 OBJEXT
660 CPP
661 GREP
662 EGREP
663 INSTALL_PROGRAM
664 INSTALL_SCRIPT
665 INSTALL_DATA
666 LDAPLIBS
667 EXT2_DIRECT
668 EXT2LIBS
669 PKG_CONFIG
670 DBUS_CFLAGS
671 DBUS_LIBS
672 QUOTA_NETLINK_PROG
673 NETLINKLIBS
674 HOSTS_ACCESS
675 COMPILE_OPTS
676 LIBMALLOC
677 INSTMO
678 ROOTSBIN
679 LIB@&t@OBJS
680 LTLIBOBJS'
681 ac_subst_files=''
682       ac_precious_vars='build_alias
683 host_alias
684 target_alias
685 CC
686 CFLAGS
687 LDFLAGS
688 LIBS
689 CPPFLAGS
690 CPP
691 PKG_CONFIG
692 DBUS_CFLAGS
693 DBUS_LIBS'
694
695
696 # Initialize some variables set by options.
697 ac_init_help=
698 ac_init_version=false
699 # The variables have the same names as the options, with
700 # dashes changed to underlines.
701 cache_file=/dev/null
702 exec_prefix=NONE
703 no_create=
704 no_recursion=
705 prefix=NONE
706 program_prefix=NONE
707 program_suffix=NONE
708 program_transform_name=s,x,x,
709 silent=
710 site=
711 srcdir=
712 verbose=
713 x_includes=NONE
714 x_libraries=NONE
715
716 # Installation directory options.
717 # These are left unexpanded so users can "make install exec_prefix=/foo"
718 # and all the variables that are supposed to be based on exec_prefix
719 # by default will actually change.
720 # Use braces instead of parens because sh, perl, etc. also accept them.
721 # (The list follows the same order as the GNU Coding Standards.)
722 bindir='${exec_prefix}/bin'
723 sbindir='${exec_prefix}/sbin'
724 libexecdir='${exec_prefix}/libexec'
725 datarootdir='${prefix}/share'
726 datadir='${datarootdir}'
727 sysconfdir='${prefix}/etc'
728 sharedstatedir='${prefix}/com'
729 localstatedir='${prefix}/var'
730 includedir='${prefix}/include'
731 oldincludedir='/usr/include'
732 docdir='${datarootdir}/doc/${PACKAGE}'
733 infodir='${datarootdir}/info'
734 htmldir='${docdir}'
735 dvidir='${docdir}'
736 pdfdir='${docdir}'
737 psdir='${docdir}'
738 libdir='${exec_prefix}/lib'
739 localedir='${datarootdir}/locale'
740 mandir='${datarootdir}/man'
741
742 ac_prev=
743 ac_dashdash=
744 for ac_option
745 do
746   # If the previous option needs an argument, assign it.
747   if test -n "$ac_prev"; then
748     eval $ac_prev=\$ac_option
749     ac_prev=
750     continue
751   fi
752
753   case $ac_option in
754   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
755   *)    ac_optarg=yes ;;
756   esac
757
758   # Accept the important Cygnus configure options, so we can diagnose typos.
759
760   case $ac_dashdash$ac_option in
761   --)
762     ac_dashdash=yes ;;
763
764   -bindir | --bindir | --bindi | --bind | --bin | --bi)
765     ac_prev=bindir ;;
766   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
767     bindir=$ac_optarg ;;
768
769   -build | --build | --buil | --bui | --bu)
770     ac_prev=build_alias ;;
771   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
772     build_alias=$ac_optarg ;;
773
774   -cache-file | --cache-file | --cache-fil | --cache-fi \
775   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
776     ac_prev=cache_file ;;
777   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
778   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
779     cache_file=$ac_optarg ;;
780
781   --config-cache | -C)
782     cache_file=config.cache ;;
783
784   -datadir | --datadir | --datadi | --datad)
785     ac_prev=datadir ;;
786   -datadir=* | --datadir=* | --datadi=* | --datad=*)
787     datadir=$ac_optarg ;;
788
789   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
790   | --dataroo | --dataro | --datar)
791     ac_prev=datarootdir ;;
792   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
793   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
794     datarootdir=$ac_optarg ;;
795
796   -disable-* | --disable-*)
797     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
798     # Reject names that are not valid shell variable names.
799     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
801    { (exit 1); exit 1; }; }
802     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
803     eval enable_$ac_feature=no ;;
804
805   -docdir | --docdir | --docdi | --doc | --do)
806     ac_prev=docdir ;;
807   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
808     docdir=$ac_optarg ;;
809
810   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
811     ac_prev=dvidir ;;
812   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
813     dvidir=$ac_optarg ;;
814
815   -enable-* | --enable-*)
816     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
817     # Reject names that are not valid shell variable names.
818     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
819       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
820    { (exit 1); exit 1; }; }
821     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
822     eval enable_$ac_feature=\$ac_optarg ;;
823
824   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
825   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
826   | --exec | --exe | --ex)
827     ac_prev=exec_prefix ;;
828   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
829   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
830   | --exec=* | --exe=* | --ex=*)
831     exec_prefix=$ac_optarg ;;
832
833   -gas | --gas | --ga | --g)
834     # Obsolete; use --with-gas.
835     with_gas=yes ;;
836
837   -help | --help | --hel | --he | -h)
838     ac_init_help=long ;;
839   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
840     ac_init_help=recursive ;;
841   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
842     ac_init_help=short ;;
843
844   -host | --host | --hos | --ho)
845     ac_prev=host_alias ;;
846   -host=* | --host=* | --hos=* | --ho=*)
847     host_alias=$ac_optarg ;;
848
849   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
850     ac_prev=htmldir ;;
851   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
852   | --ht=*)
853     htmldir=$ac_optarg ;;
854
855   -includedir | --includedir | --includedi | --included | --include \
856   | --includ | --inclu | --incl | --inc)
857     ac_prev=includedir ;;
858   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
859   | --includ=* | --inclu=* | --incl=* | --inc=*)
860     includedir=$ac_optarg ;;
861
862   -infodir | --infodir | --infodi | --infod | --info | --inf)
863     ac_prev=infodir ;;
864   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
865     infodir=$ac_optarg ;;
866
867   -libdir | --libdir | --libdi | --libd)
868     ac_prev=libdir ;;
869   -libdir=* | --libdir=* | --libdi=* | --libd=*)
870     libdir=$ac_optarg ;;
871
872   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
873   | --libexe | --libex | --libe)
874     ac_prev=libexecdir ;;
875   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
876   | --libexe=* | --libex=* | --libe=*)
877     libexecdir=$ac_optarg ;;
878
879   -localedir | --localedir | --localedi | --localed | --locale)
880     ac_prev=localedir ;;
881   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
882     localedir=$ac_optarg ;;
883
884   -localstatedir | --localstatedir | --localstatedi | --localstated \
885   | --localstate | --localstat | --localsta | --localst | --locals)
886     ac_prev=localstatedir ;;
887   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
888   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
889     localstatedir=$ac_optarg ;;
890
891   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
892     ac_prev=mandir ;;
893   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
894     mandir=$ac_optarg ;;
895
896   -nfp | --nfp | --nf)
897     # Obsolete; use --without-fp.
898     with_fp=no ;;
899
900   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
901   | --no-cr | --no-c | -n)
902     no_create=yes ;;
903
904   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
905   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
906     no_recursion=yes ;;
907
908   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
909   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
910   | --oldin | --oldi | --old | --ol | --o)
911     ac_prev=oldincludedir ;;
912   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
913   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
914   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
915     oldincludedir=$ac_optarg ;;
916
917   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
918     ac_prev=prefix ;;
919   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
920     prefix=$ac_optarg ;;
921
922   -program-prefix | --program-prefix | --program-prefi | --program-pref \
923   | --program-pre | --program-pr | --program-p)
924     ac_prev=program_prefix ;;
925   -program-prefix=* | --program-prefix=* | --program-prefi=* \
926   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
927     program_prefix=$ac_optarg ;;
928
929   -program-suffix | --program-suffix | --program-suffi | --program-suff \
930   | --program-suf | --program-su | --program-s)
931     ac_prev=program_suffix ;;
932   -program-suffix=* | --program-suffix=* | --program-suffi=* \
933   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
934     program_suffix=$ac_optarg ;;
935
936   -program-transform-name | --program-transform-name \
937   | --program-transform-nam | --program-transform-na \
938   | --program-transform-n | --program-transform- \
939   | --program-transform | --program-transfor \
940   | --program-transfo | --program-transf \
941   | --program-trans | --program-tran \
942   | --progr-tra | --program-tr | --program-t)
943     ac_prev=program_transform_name ;;
944   -program-transform-name=* | --program-transform-name=* \
945   | --program-transform-nam=* | --program-transform-na=* \
946   | --program-transform-n=* | --program-transform-=* \
947   | --program-transform=* | --program-transfor=* \
948   | --program-transfo=* | --program-transf=* \
949   | --program-trans=* | --program-tran=* \
950   | --progr-tra=* | --program-tr=* | --program-t=*)
951     program_transform_name=$ac_optarg ;;
952
953   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
954     ac_prev=pdfdir ;;
955   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
956     pdfdir=$ac_optarg ;;
957
958   -psdir | --psdir | --psdi | --psd | --ps)
959     ac_prev=psdir ;;
960   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
961     psdir=$ac_optarg ;;
962
963   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
964   | -silent | --silent | --silen | --sile | --sil)
965     silent=yes ;;
966
967   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
968     ac_prev=sbindir ;;
969   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
970   | --sbi=* | --sb=*)
971     sbindir=$ac_optarg ;;
972
973   -sharedstatedir | --sharedstatedir | --sharedstatedi \
974   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
975   | --sharedst | --shareds | --shared | --share | --shar \
976   | --sha | --sh)
977     ac_prev=sharedstatedir ;;
978   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
979   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
980   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
981   | --sha=* | --sh=*)
982     sharedstatedir=$ac_optarg ;;
983
984   -site | --site | --sit)
985     ac_prev=site ;;
986   -site=* | --site=* | --sit=*)
987     site=$ac_optarg ;;
988
989   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
990     ac_prev=srcdir ;;
991   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
992     srcdir=$ac_optarg ;;
993
994   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
995   | --syscon | --sysco | --sysc | --sys | --sy)
996     ac_prev=sysconfdir ;;
997   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
998   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
999     sysconfdir=$ac_optarg ;;
1000
1001   -target | --target | --targe | --targ | --tar | --ta | --t)
1002     ac_prev=target_alias ;;
1003   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1004     target_alias=$ac_optarg ;;
1005
1006   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1007     verbose=yes ;;
1008
1009   -version | --version | --versio | --versi | --vers | -V)
1010     ac_init_version=: ;;
1011
1012   -with-* | --with-*)
1013     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1014     # Reject names that are not valid shell variable names.
1015     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1016       { echo "$as_me: error: invalid package name: $ac_package" >&2
1017    { (exit 1); exit 1; }; }
1018     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1019     eval with_$ac_package=\$ac_optarg ;;
1020
1021   -without-* | --without-*)
1022     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1023     # Reject names that are not valid shell variable names.
1024     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025       { echo "$as_me: error: invalid package name: $ac_package" >&2
1026    { (exit 1); exit 1; }; }
1027     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1028     eval with_$ac_package=no ;;
1029
1030   --x)
1031     # Obsolete; use --with-x.
1032     with_x=yes ;;
1033
1034   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1035   | --x-incl | --x-inc | --x-in | --x-i)
1036     ac_prev=x_includes ;;
1037   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1038   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1039     x_includes=$ac_optarg ;;
1040
1041   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1042   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1043     ac_prev=x_libraries ;;
1044   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1045   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1046     x_libraries=$ac_optarg ;;
1047
1048   -*) { echo "$as_me: error: unrecognized option: $ac_option
1049 Try \`$0 --help' for more information." >&2
1050    { (exit 1); exit 1; }; }
1051     ;;
1052
1053   *=*)
1054     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1055     # Reject names that are not valid shell variable names.
1056     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1057       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1058    { (exit 1); exit 1; }; }
1059     eval $ac_envvar=\$ac_optarg
1060     export $ac_envvar ;;
1061
1062   *)
1063     # FIXME: should be removed in autoconf 3.0.
1064     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1065     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1066       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1067     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1068     ;;
1069
1070   esac
1071 done
1072
1073 if test -n "$ac_prev"; then
1074   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1075   { echo "$as_me: error: missing argument to $ac_option" >&2
1076    { (exit 1); exit 1; }; }
1077 fi
1078
1079 # Be sure to have absolute directory names.
1080 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1081                 datadir sysconfdir sharedstatedir localstatedir includedir \
1082                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1083                 libdir localedir mandir
1084 do
1085   eval ac_val=\$$ac_var
1086   case $ac_val in
1087     [\\/$]* | ?:[\\/]* )  continue;;
1088     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1089   esac
1090   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1091    { (exit 1); exit 1; }; }
1092 done
1093
1094 # There might be people who depend on the old broken behavior: `$host'
1095 # used to hold the argument of --host etc.
1096 # FIXME: To remove some day.
1097 build=$build_alias
1098 host=$host_alias
1099 target=$target_alias
1100
1101 # FIXME: To remove some day.
1102 if test "x$host_alias" != x; then
1103   if test "x$build_alias" = x; then
1104     cross_compiling=maybe
1105     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1106     If a cross compiler is detected then cross compile mode will be used." >&2
1107   elif test "x$build_alias" != "x$host_alias"; then
1108     cross_compiling=yes
1109   fi
1110 fi
1111
1112 ac_tool_prefix=
1113 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1114
1115 test "$silent" = yes && exec 6>/dev/null
1116
1117
1118 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1119 ac_ls_di=`ls -di .` &&
1120 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1121   { echo "$as_me: error: Working directory cannot be determined" >&2
1122    { (exit 1); exit 1; }; }
1123 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1124   { echo "$as_me: error: pwd does not report name of working directory" >&2
1125    { (exit 1); exit 1; }; }
1126
1127
1128 # Find the source files, if location was not specified.
1129 if test -z "$srcdir"; then
1130   ac_srcdir_defaulted=yes
1131   # Try the directory containing this script, then the parent directory.
1132   ac_confdir=`$as_dirname -- "$0" ||
1133 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1134          X"$0" : 'X\(//\)[^/]' \| \
1135          X"$0" : 'X\(//\)$' \| \
1136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1137 echo X"$0" |
1138     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1139             s//\1/
1140             q
1141           }
1142           /^X\(\/\/\)[^/].*/{
1143             s//\1/
1144             q
1145           }
1146           /^X\(\/\/\)$/{
1147             s//\1/
1148             q
1149           }
1150           /^X\(\/\).*/{
1151             s//\1/
1152             q
1153           }
1154           s/.*/./; q'`
1155   srcdir=$ac_confdir
1156   if test ! -r "$srcdir/$ac_unique_file"; then
1157     srcdir=..
1158   fi
1159 else
1160   ac_srcdir_defaulted=no
1161 fi
1162 if test ! -r "$srcdir/$ac_unique_file"; then
1163   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1164   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1165    { (exit 1); exit 1; }; }
1166 fi
1167 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1168 ac_abs_confdir=`(
1169         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1170    { (exit 1); exit 1; }; }
1171         pwd)`
1172 # When building in place, set srcdir=.
1173 if test "$ac_abs_confdir" = "$ac_pwd"; then
1174   srcdir=.
1175 fi
1176 # Remove unnecessary trailing slashes from srcdir.
1177 # Double slashes in file names in object file debugging info
1178 # mess up M-x gdb in Emacs.
1179 case $srcdir in
1180 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1181 esac
1182 for ac_var in $ac_precious_vars; do
1183   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1184   eval ac_env_${ac_var}_value=\$${ac_var}
1185   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1186   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1187 done
1188
1189 #
1190 # Report the --help message.
1191 #
1192 if test "$ac_init_help" = "long"; then
1193   # Omit some internal or obsolete options to make the list less imposing.
1194   # This message is too long to be a string in the A/UX 3.1 sh.
1195   cat <<_ACEOF
1196 \`configure' configures this package to adapt to many kinds of systems.
1197
1198 Usage: $0 [OPTION]... [VAR=VALUE]...
1199
1200 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1201 VAR=VALUE.  See below for descriptions of some of the useful variables.
1202
1203 Defaults for the options are specified in brackets.
1204
1205 Configuration:
1206   -h, --help              display this help and exit
1207       --help=short        display options specific to this package
1208       --help=recursive    display the short help of all the included packages
1209   -V, --version           display version information and exit
1210   -q, --quiet, --silent   do not print \`checking...' messages
1211       --cache-file=FILE   cache test results in FILE [disabled]
1212   -C, --config-cache      alias for \`--cache-file=config.cache'
1213   -n, --no-create         do not create output files
1214       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1215
1216 Installation directories:
1217   --prefix=PREFIX         install architecture-independent files in PREFIX
1218                           [$ac_default_prefix]
1219   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1220                           [PREFIX]
1221
1222 By default, \`make install' will install all the files in
1223 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1224 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1225 for instance \`--prefix=\$HOME'.
1226
1227 For better control, use the options below.
1228
1229 Fine tuning of the installation directories:
1230   --bindir=DIR           user executables [EPREFIX/bin]
1231   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1232   --libexecdir=DIR       program executables [EPREFIX/libexec]
1233   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1234   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1235   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1236   --libdir=DIR           object code libraries [EPREFIX/lib]
1237   --includedir=DIR       C header files [PREFIX/include]
1238   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1239   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1240   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1241   --infodir=DIR          info documentation [DATAROOTDIR/info]
1242   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1243   --mandir=DIR           man documentation [DATAROOTDIR/man]
1244   --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1245   --htmldir=DIR          html documentation [DOCDIR]
1246   --dvidir=DIR           dvi documentation [DOCDIR]
1247   --pdfdir=DIR           pdf documentation [DOCDIR]
1248   --psdir=DIR            ps documentation [DOCDIR]
1249 _ACEOF
1250
1251   cat <<\_ACEOF
1252 _ACEOF
1253 fi
1254
1255 if test -n "$ac_init_help"; then
1256
1257   cat <<\_ACEOF
1258
1259 Optional Features:
1260   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1261   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1262   --enable-ldapmail=yes/no/try       Enable ldap mail address lookups default=no.
1263   --enable-ext2direct=yes/no/try     Enable scanning of EXT2/EXT3 filesystem using e2fslib default=try.
1264   --enable-netlink=yes/no/try   Compile daemon receiving quota messages via netlink default=no.
1265   --enable-altformat=yes/no     Enable alternative format used by edquota default=yes.
1266   --enable-rpc=yes/no           Enable RPC support default=yes.
1267   --enable-rpcsetquota=yes/no   Use RPC for setting quotas default=no.
1268   --enable-xfs_roothack=yes/no  Support old XFS root filesystems default=no.
1269   --enable-bsd_behaviour=yes/no Mimic BSD behaviour default=yes.
1270   --enable-libefence=yes/no     Use Electric Fence memory checks default=no.
1271   --enable-nls=yes/no           Enable gettext dafault=yes.
1272   --enable-rootsbin=yes/no      Use /sbin for some important binaries regardless $prefix default=no.
1273
1274 Some influential environment variables:
1275   CC          C compiler command
1276   CFLAGS      C compiler flags
1277   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1278               nonstandard directory <lib dir>
1279   LIBS        libraries to pass to the linker, e.g. -l<library>
1280   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1281               you have headers in a nonstandard directory <include dir>
1282   CPP         C preprocessor
1283   PKG_CONFIG  path to pkg-config utility
1284   DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1285   DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1286
1287 Use these variables to override the choices made by `configure' or to help
1288 it to find libraries and programs with nonstandard names/locations.
1289
1290 _ACEOF
1291 ac_status=$?
1292 fi
1293
1294 if test "$ac_init_help" = "recursive"; then
1295   # If there are subdirs, report their specific --help.
1296   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1297     test -d "$ac_dir" || continue
1298     ac_builddir=.
1299
1300 case "$ac_dir" in
1301 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1302 *)
1303   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1304   # A ".." for each directory in $ac_dir_suffix.
1305   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1306   case $ac_top_builddir_sub in
1307   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1308   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1309   esac ;;
1310 esac
1311 ac_abs_top_builddir=$ac_pwd
1312 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1313 # for backward compatibility:
1314 ac_top_builddir=$ac_top_build_prefix
1315
1316 case $srcdir in
1317   .)  # We are building in place.
1318     ac_srcdir=.
1319     ac_top_srcdir=$ac_top_builddir_sub
1320     ac_abs_top_srcdir=$ac_pwd ;;
1321   [\\/]* | ?:[\\/]* )  # Absolute name.
1322     ac_srcdir=$srcdir$ac_dir_suffix;
1323     ac_top_srcdir=$srcdir
1324     ac_abs_top_srcdir=$srcdir ;;
1325   *) # Relative name.
1326     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1327     ac_top_srcdir=$ac_top_build_prefix$srcdir
1328     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1329 esac
1330 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1331
1332     cd "$ac_dir" || { ac_status=$?; continue; }
1333     # Check for guested configure.
1334     if test -f "$ac_srcdir/configure.gnu"; then
1335       echo &&
1336       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1337     elif test -f "$ac_srcdir/configure"; then
1338       echo &&
1339       $SHELL "$ac_srcdir/configure" --help=recursive
1340     else
1341       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1342     fi || ac_status=$?
1343     cd "$ac_pwd" || { ac_status=$?; break; }
1344   done
1345 fi
1346
1347 test -n "$ac_init_help" && exit $ac_status
1348 if $ac_init_version; then
1349   cat <<\_ACEOF
1350 configure
1351 generated by GNU Autoconf 2.61
1352
1353 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1354 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1355 This configure script is free software; the Free Software Foundation
1356 gives unlimited permission to copy, distribute and modify it.
1357 _ACEOF
1358   exit
1359 fi
1360 cat >config.log <<_ACEOF
1361 This file contains any messages produced by compilers while
1362 running configure, to aid debugging if configure makes a mistake.
1363
1364 It was created by $as_me, which was
1365 generated by GNU Autoconf 2.61.  Invocation command line was
1366
1367   $ $0 $@
1368
1369 _ACEOF
1370 exec 5>>config.log
1371 {
1372 cat <<_ASUNAME
1373 @%:@@%:@ --------- @%:@@%:@
1374 @%:@@%:@ Platform. @%:@@%:@
1375 @%:@@%:@ --------- @%:@@%:@
1376
1377 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1378 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1379 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1380 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1381 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1382
1383 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1384 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1385
1386 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1387 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1388 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1389 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1390 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1391 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1392 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1393
1394 _ASUNAME
1395
1396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1397 for as_dir in $PATH
1398 do
1399   IFS=$as_save_IFS
1400   test -z "$as_dir" && as_dir=.
1401   echo "PATH: $as_dir"
1402 done
1403 IFS=$as_save_IFS
1404
1405 } >&5
1406
1407 cat >&5 <<_ACEOF
1408
1409
1410 @%:@@%:@ ----------- @%:@@%:@
1411 @%:@@%:@ Core tests. @%:@@%:@
1412 @%:@@%:@ ----------- @%:@@%:@
1413
1414 _ACEOF
1415
1416
1417 # Keep a trace of the command line.
1418 # Strip out --no-create and --no-recursion so they do not pile up.
1419 # Strip out --silent because we don't want to record it for future runs.
1420 # Also quote any args containing shell meta-characters.
1421 # Make two passes to allow for proper duplicate-argument suppression.
1422 ac_configure_args=
1423 ac_configure_args0=
1424 ac_configure_args1=
1425 ac_must_keep_next=false
1426 for ac_pass in 1 2
1427 do
1428   for ac_arg
1429   do
1430     case $ac_arg in
1431     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1432     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1433     | -silent | --silent | --silen | --sile | --sil)
1434       continue ;;
1435     *\'*)
1436       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1437     esac
1438     case $ac_pass in
1439     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1440     2)
1441       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1442       if test $ac_must_keep_next = true; then
1443         ac_must_keep_next=false # Got value, back to normal.
1444       else
1445         case $ac_arg in
1446           *=* | --config-cache | -C | -disable-* | --disable-* \
1447           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1448           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1449           | -with-* | --with-* | -without-* | --without-* | --x)
1450             case "$ac_configure_args0 " in
1451               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1452             esac
1453             ;;
1454           -* ) ac_must_keep_next=true ;;
1455         esac
1456       fi
1457       ac_configure_args="$ac_configure_args '$ac_arg'"
1458       ;;
1459     esac
1460   done
1461 done
1462 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1463 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1464
1465 # When interrupted or exit'd, cleanup temporary files, and complete
1466 # config.log.  We remove comments because anyway the quotes in there
1467 # would cause problems or look ugly.
1468 # WARNING: Use '\'' to represent an apostrophe within the trap.
1469 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1470 trap 'exit_status=$?
1471   # Save into config.log some information that might help in debugging.
1472   {
1473     echo
1474
1475     cat <<\_ASBOX
1476 @%:@@%:@ ---------------- @%:@@%:@
1477 @%:@@%:@ Cache variables. @%:@@%:@
1478 @%:@@%:@ ---------------- @%:@@%:@
1479 _ASBOX
1480     echo
1481     # The following way of writing the cache mishandles newlines in values,
1482 (
1483   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1484     eval ac_val=\$$ac_var
1485     case $ac_val in #(
1486     *${as_nl}*)
1487       case $ac_var in #(
1488       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1489 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1490       esac
1491       case $ac_var in #(
1492       _ | IFS | as_nl) ;; #(
1493       *) $as_unset $ac_var ;;
1494       esac ;;
1495     esac
1496   done
1497   (set) 2>&1 |
1498     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1499     *${as_nl}ac_space=\ *)
1500       sed -n \
1501         "s/'\''/'\''\\\\'\'''\''/g;
1502           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1503       ;; #(
1504     *)
1505       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1506       ;;
1507     esac |
1508     sort
1509 )
1510     echo
1511
1512     cat <<\_ASBOX
1513 @%:@@%:@ ----------------- @%:@@%:@
1514 @%:@@%:@ Output variables. @%:@@%:@
1515 @%:@@%:@ ----------------- @%:@@%:@
1516 _ASBOX
1517     echo
1518     for ac_var in $ac_subst_vars
1519     do
1520       eval ac_val=\$$ac_var
1521       case $ac_val in
1522       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1523       esac
1524       echo "$ac_var='\''$ac_val'\''"
1525     done | sort
1526     echo
1527
1528     if test -n "$ac_subst_files"; then
1529       cat <<\_ASBOX
1530 @%:@@%:@ ------------------- @%:@@%:@
1531 @%:@@%:@ File substitutions. @%:@@%:@
1532 @%:@@%:@ ------------------- @%:@@%:@
1533 _ASBOX
1534       echo
1535       for ac_var in $ac_subst_files
1536       do
1537         eval ac_val=\$$ac_var
1538         case $ac_val in
1539         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1540         esac
1541         echo "$ac_var='\''$ac_val'\''"
1542       done | sort
1543       echo
1544     fi
1545
1546     if test -s confdefs.h; then
1547       cat <<\_ASBOX
1548 @%:@@%:@ ----------- @%:@@%:@
1549 @%:@@%:@ confdefs.h. @%:@@%:@
1550 @%:@@%:@ ----------- @%:@@%:@
1551 _ASBOX
1552       echo
1553       cat confdefs.h
1554       echo
1555     fi
1556     test "$ac_signal" != 0 &&
1557       echo "$as_me: caught signal $ac_signal"
1558     echo "$as_me: exit $exit_status"
1559   } >&5
1560   rm -f core *.core core.conftest.* &&
1561     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1562     exit $exit_status
1563 ' 0
1564 for ac_signal in 1 2 13 15; do
1565   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1566 done
1567 ac_signal=0
1568
1569 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1570 rm -f -r conftest* confdefs.h
1571
1572 # Predefined preprocessor variables.
1573
1574 cat >>confdefs.h <<_ACEOF
1575 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1576 _ACEOF
1577
1578
1579 cat >>confdefs.h <<_ACEOF
1580 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1581 _ACEOF
1582
1583
1584 cat >>confdefs.h <<_ACEOF
1585 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1586 _ACEOF
1587
1588
1589 cat >>confdefs.h <<_ACEOF
1590 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1591 _ACEOF
1592
1593
1594 cat >>confdefs.h <<_ACEOF
1595 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1596 _ACEOF
1597
1598
1599 # Let the site file select an alternate cache file if it wants to.
1600 # Prefer explicitly selected file to automatically selected ones.
1601 if test -n "$CONFIG_SITE"; then
1602   set x "$CONFIG_SITE"
1603 elif test "x$prefix" != xNONE; then
1604   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1605 else
1606   set x "$ac_default_prefix/share/config.site" \
1607         "$ac_default_prefix/etc/config.site"
1608 fi
1609 shift
1610 for ac_site_file
1611 do
1612   if test -r "$ac_site_file"; then
1613     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1614 echo "$as_me: loading site script $ac_site_file" >&6;}
1615     sed 's/^/| /' "$ac_site_file" >&5
1616     . "$ac_site_file"
1617   fi
1618 done
1619
1620 if test -r "$cache_file"; then
1621   # Some versions of bash will fail to source /dev/null (special
1622   # files actually), so we avoid doing that.
1623   if test -f "$cache_file"; then
1624     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1625 echo "$as_me: loading cache $cache_file" >&6;}
1626     case $cache_file in
1627       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1628       *)                      . "./$cache_file";;
1629     esac
1630   fi
1631 else
1632   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1633 echo "$as_me: creating cache $cache_file" >&6;}
1634   >$cache_file
1635 fi
1636
1637 # Check that the precious variables saved in the cache have kept the same
1638 # value.
1639 ac_cache_corrupted=false
1640 for ac_var in $ac_precious_vars; do
1641   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1642   eval ac_new_set=\$ac_env_${ac_var}_set
1643   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1644   eval ac_new_val=\$ac_env_${ac_var}_value
1645   case $ac_old_set,$ac_new_set in
1646     set,)
1647       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1648 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1649       ac_cache_corrupted=: ;;
1650     ,set)
1651       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1652 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1653       ac_cache_corrupted=: ;;
1654     ,);;
1655     *)
1656       if test "x$ac_old_val" != "x$ac_new_val"; then
1657         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1658 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1659         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1660 echo "$as_me:   former value:  $ac_old_val" >&2;}
1661         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1662 echo "$as_me:   current value: $ac_new_val" >&2;}
1663         ac_cache_corrupted=:
1664       fi;;
1665   esac
1666   # Pass precious variables to config.status.
1667   if test "$ac_new_set" = set; then
1668     case $ac_new_val in
1669     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1670     *) ac_arg=$ac_var=$ac_new_val ;;
1671     esac
1672     case " $ac_configure_args " in
1673       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1674       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1675     esac
1676   fi
1677 done
1678 if $ac_cache_corrupted; then
1679   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1680 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1681   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1682 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1683    { (exit 1); exit 1; }; }
1684 fi
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702 ac_ext=c
1703 ac_cpp='$CPP $CPPFLAGS'
1704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1707
1708
1709
1710 ac_ext=c
1711 ac_cpp='$CPP $CPPFLAGS'
1712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1715 if test -n "$ac_tool_prefix"; then
1716   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1717 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1720 if test "${ac_cv_prog_CC+set}" = set; then
1721   echo $ECHO_N "(cached) $ECHO_C" >&6
1722 else
1723   if test -n "$CC"; then
1724   ac_cv_prog_CC="$CC" # Let the user override the test.
1725 else
1726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727 for as_dir in $PATH
1728 do
1729   IFS=$as_save_IFS
1730   test -z "$as_dir" && as_dir=.
1731   for ac_exec_ext in '' $ac_executable_extensions; do
1732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1733     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735     break 2
1736   fi
1737 done
1738 done
1739 IFS=$as_save_IFS
1740
1741 fi
1742 fi
1743 CC=$ac_cv_prog_CC
1744 if test -n "$CC"; then
1745   { echo "$as_me:$LINENO: result: $CC" >&5
1746 echo "${ECHO_T}$CC" >&6; }
1747 else
1748   { echo "$as_me:$LINENO: result: no" >&5
1749 echo "${ECHO_T}no" >&6; }
1750 fi
1751
1752
1753 fi
1754 if test -z "$ac_cv_prog_CC"; then
1755   ac_ct_CC=$CC
1756   # Extract the first word of "gcc", so it can be a program name with args.
1757 set dummy gcc; ac_word=$2
1758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1760 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1761   echo $ECHO_N "(cached) $ECHO_C" >&6
1762 else
1763   if test -n "$ac_ct_CC"; then
1764   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1765 else
1766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 for as_dir in $PATH
1768 do
1769   IFS=$as_save_IFS
1770   test -z "$as_dir" && as_dir=.
1771   for ac_exec_ext in '' $ac_executable_extensions; do
1772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1773     ac_cv_prog_ac_ct_CC="gcc"
1774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775     break 2
1776   fi
1777 done
1778 done
1779 IFS=$as_save_IFS
1780
1781 fi
1782 fi
1783 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1784 if test -n "$ac_ct_CC"; then
1785   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1786 echo "${ECHO_T}$ac_ct_CC" >&6; }
1787 else
1788   { echo "$as_me:$LINENO: result: no" >&5
1789 echo "${ECHO_T}no" >&6; }
1790 fi
1791
1792   if test "x$ac_ct_CC" = x; then
1793     CC=""
1794   else
1795     case $cross_compiling:$ac_tool_warned in
1796 yes:)
1797 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1798 whose name does not start with the host triplet.  If you think this
1799 configuration is useful to you, please write to autoconf@gnu.org." >&5
1800 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1801 whose name does not start with the host triplet.  If you think this
1802 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1803 ac_tool_warned=yes ;;
1804 esac
1805     CC=$ac_ct_CC
1806   fi
1807 else
1808   CC="$ac_cv_prog_CC"
1809 fi
1810
1811 if test -z "$CC"; then
1812           if test -n "$ac_tool_prefix"; then
1813     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1814 set dummy ${ac_tool_prefix}cc; ac_word=$2
1815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1817 if test "${ac_cv_prog_CC+set}" = set; then
1818   echo $ECHO_N "(cached) $ECHO_C" >&6
1819 else
1820   if test -n "$CC"; then
1821   ac_cv_prog_CC="$CC" # Let the user override the test.
1822 else
1823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824 for as_dir in $PATH
1825 do
1826   IFS=$as_save_IFS
1827   test -z "$as_dir" && as_dir=.
1828   for ac_exec_ext in '' $ac_executable_extensions; do
1829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1830     ac_cv_prog_CC="${ac_tool_prefix}cc"
1831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1832     break 2
1833   fi
1834 done
1835 done
1836 IFS=$as_save_IFS
1837
1838 fi
1839 fi
1840 CC=$ac_cv_prog_CC
1841 if test -n "$CC"; then
1842   { echo "$as_me:$LINENO: result: $CC" >&5
1843 echo "${ECHO_T}$CC" >&6; }
1844 else
1845   { echo "$as_me:$LINENO: result: no" >&5
1846 echo "${ECHO_T}no" >&6; }
1847 fi
1848
1849
1850   fi
1851 fi
1852 if test -z "$CC"; then
1853   # Extract the first word of "cc", so it can be a program name with args.
1854 set dummy cc; ac_word=$2
1855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1857 if test "${ac_cv_prog_CC+set}" = set; then
1858   echo $ECHO_N "(cached) $ECHO_C" >&6
1859 else
1860   if test -n "$CC"; then
1861   ac_cv_prog_CC="$CC" # Let the user override the test.
1862 else
1863   ac_prog_rejected=no
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 for as_dir in $PATH
1866 do
1867   IFS=$as_save_IFS
1868   test -z "$as_dir" && as_dir=.
1869   for ac_exec_ext in '' $ac_executable_extensions; do
1870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1871     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1872        ac_prog_rejected=yes
1873        continue
1874      fi
1875     ac_cv_prog_CC="cc"
1876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877     break 2
1878   fi
1879 done
1880 done
1881 IFS=$as_save_IFS
1882
1883 if test $ac_prog_rejected = yes; then
1884   # We found a bogon in the path, so make sure we never use it.
1885   set dummy $ac_cv_prog_CC
1886   shift
1887   if test $@%:@ != 0; then
1888     # We chose a different compiler from the bogus one.
1889     # However, it has the same basename, so the bogon will be chosen
1890     # first if we set CC to just the basename; use the full file name.
1891     shift
1892     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1893   fi
1894 fi
1895 fi
1896 fi
1897 CC=$ac_cv_prog_CC
1898 if test -n "$CC"; then
1899   { echo "$as_me:$LINENO: result: $CC" >&5
1900 echo "${ECHO_T}$CC" >&6; }
1901 else
1902   { echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6; }
1904 fi
1905
1906
1907 fi
1908 if test -z "$CC"; then
1909   if test -n "$ac_tool_prefix"; then
1910   for ac_prog in cl.exe
1911   do
1912     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1916 if test "${ac_cv_prog_CC+set}" = set; then
1917   echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919   if test -n "$CC"; then
1920   ac_cv_prog_CC="$CC" # Let the user override the test.
1921 else
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 for as_dir in $PATH
1924 do
1925   IFS=$as_save_IFS
1926   test -z "$as_dir" && as_dir=.
1927   for ac_exec_ext in '' $ac_executable_extensions; do
1928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1929     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931     break 2
1932   fi
1933 done
1934 done
1935 IFS=$as_save_IFS
1936
1937 fi
1938 fi
1939 CC=$ac_cv_prog_CC
1940 if test -n "$CC"; then
1941   { echo "$as_me:$LINENO: result: $CC" >&5
1942 echo "${ECHO_T}$CC" >&6; }
1943 else
1944   { echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6; }
1946 fi
1947
1948
1949     test -n "$CC" && break
1950   done
1951 fi
1952 if test -z "$CC"; then
1953   ac_ct_CC=$CC
1954   for ac_prog in cl.exe
1955 do
1956   # Extract the first word of "$ac_prog", so it can be a program name with args.
1957 set dummy $ac_prog; ac_word=$2
1958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1960 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1961   echo $ECHO_N "(cached) $ECHO_C" >&6
1962 else
1963   if test -n "$ac_ct_CC"; then
1964   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1965 else
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 for as_dir in $PATH
1968 do
1969   IFS=$as_save_IFS
1970   test -z "$as_dir" && as_dir=.
1971   for ac_exec_ext in '' $ac_executable_extensions; do
1972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1973     ac_cv_prog_ac_ct_CC="$ac_prog"
1974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975     break 2
1976   fi
1977 done
1978 done
1979 IFS=$as_save_IFS
1980
1981 fi
1982 fi
1983 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1984 if test -n "$ac_ct_CC"; then
1985   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1986 echo "${ECHO_T}$ac_ct_CC" >&6; }
1987 else
1988   { echo "$as_me:$LINENO: result: no" >&5
1989 echo "${ECHO_T}no" >&6; }
1990 fi
1991
1992
1993   test -n "$ac_ct_CC" && break
1994 done
1995
1996   if test "x$ac_ct_CC" = x; then
1997     CC=""
1998   else
1999     case $cross_compiling:$ac_tool_warned in
2000 yes:)
2001 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2002 whose name does not start with the host triplet.  If you think this
2003 configuration is useful to you, please write to autoconf@gnu.org." >&5
2004 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2005 whose name does not start with the host triplet.  If you think this
2006 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2007 ac_tool_warned=yes ;;
2008 esac
2009     CC=$ac_ct_CC
2010   fi
2011 fi
2012
2013 fi
2014
2015
2016 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2017 See \`config.log' for more details." >&5
2018 echo "$as_me: error: no acceptable C compiler found in \$PATH
2019 See \`config.log' for more details." >&2;}
2020    { (exit 1); exit 1; }; }
2021
2022 # Provide some information about the compiler.
2023 echo "$as_me:$LINENO: checking for C compiler version" >&5
2024 ac_compiler=`set X $ac_compile; echo $2`
2025 { (ac_try="$ac_compiler --version >&5"
2026 case "(($ac_try" in
2027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2028   *) ac_try_echo=$ac_try;;
2029 esac
2030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2031   (eval "$ac_compiler --version >&5") 2>&5
2032   ac_status=$?
2033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034   (exit $ac_status); }
2035 { (ac_try="$ac_compiler -v >&5"
2036 case "(($ac_try" in
2037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2038   *) ac_try_echo=$ac_try;;
2039 esac
2040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2041   (eval "$ac_compiler -v >&5") 2>&5
2042   ac_status=$?
2043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044   (exit $ac_status); }
2045 { (ac_try="$ac_compiler -V >&5"
2046 case "(($ac_try" in
2047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048   *) ac_try_echo=$ac_try;;
2049 esac
2050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2051   (eval "$ac_compiler -V >&5") 2>&5
2052   ac_status=$?
2053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054   (exit $ac_status); }
2055
2056 cat >conftest.$ac_ext <<_ACEOF
2057 /* confdefs.h.  */
2058 _ACEOF
2059 cat confdefs.h >>conftest.$ac_ext
2060 cat >>conftest.$ac_ext <<_ACEOF
2061 /* end confdefs.h.  */
2062
2063 int
2064 main ()
2065 {
2066
2067   ;
2068   return 0;
2069 }
2070 _ACEOF
2071 ac_clean_files_save=$ac_clean_files
2072 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2073 # Try to create an executable without -o first, disregard a.out.
2074 # It will help us diagnose broken compilers, and finding out an intuition
2075 # of exeext.
2076 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2077 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2078 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2079 #
2080 # List of possible output files, starting from the most likely.
2081 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2082 # only as a last resort.  b.out is created by i960 compilers.
2083 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2084 #
2085 # The IRIX 6 linker writes into existing files which may not be
2086 # executable, retaining their permissions.  Remove them first so a
2087 # subsequent execution test works.
2088 ac_rmfiles=
2089 for ac_file in $ac_files
2090 do
2091   case $ac_file in
2092     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2093     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2094   esac
2095 done
2096 rm -f $ac_rmfiles
2097
2098 if { (ac_try="$ac_link_default"
2099 case "(($ac_try" in
2100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101   *) ac_try_echo=$ac_try;;
2102 esac
2103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104   (eval "$ac_link_default") 2>&5
2105   ac_status=$?
2106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107   (exit $ac_status); }; then
2108   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2109 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2110 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2111 # so that the user can short-circuit this test for compilers unknown to
2112 # Autoconf.
2113 for ac_file in $ac_files ''
2114 do
2115   test -f "$ac_file" || continue
2116   case $ac_file in
2117     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2118         ;;
2119     [ab].out )
2120         # We found the default executable, but exeext='' is most
2121         # certainly right.
2122         break;;
2123     *.* )
2124         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2125         then :; else
2126            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2127         fi
2128         # We set ac_cv_exeext here because the later test for it is not
2129         # safe: cross compilers may not add the suffix if given an `-o'
2130         # argument, so we may need to know it at that point already.
2131         # Even if this section looks crufty: it has the advantage of
2132         # actually working.
2133         break;;
2134     * )
2135         break;;
2136   esac
2137 done
2138 test "$ac_cv_exeext" = no && ac_cv_exeext=
2139
2140 else
2141   ac_file=''
2142 fi
2143
2144 { echo "$as_me:$LINENO: result: $ac_file" >&5
2145 echo "${ECHO_T}$ac_file" >&6; }
2146 if test -z "$ac_file"; then
2147   echo "$as_me: failed program was:" >&5
2148 sed 's/^/| /' conftest.$ac_ext >&5
2149
2150 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2151 See \`config.log' for more details." >&5
2152 echo "$as_me: error: C compiler cannot create executables
2153 See \`config.log' for more details." >&2;}
2154    { (exit 77); exit 77; }; }
2155 fi
2156
2157 ac_exeext=$ac_cv_exeext
2158
2159 # Check that the compiler produces executables we can run.  If not, either
2160 # the compiler is broken, or we cross compile.
2161 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2162 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2163 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2164 # If not cross compiling, check that we can run a simple program.
2165 if test "$cross_compiling" != yes; then
2166   if { ac_try='./$ac_file'
2167   { (case "(($ac_try" in
2168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169   *) ac_try_echo=$ac_try;;
2170 esac
2171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2172   (eval "$ac_try") 2>&5
2173   ac_status=$?
2174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175   (exit $ac_status); }; }; then
2176     cross_compiling=no
2177   else
2178     if test "$cross_compiling" = maybe; then
2179         cross_compiling=yes
2180     else
2181         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2182 If you meant to cross compile, use \`--host'.
2183 See \`config.log' for more details." >&5
2184 echo "$as_me: error: cannot run C compiled programs.
2185 If you meant to cross compile, use \`--host'.
2186 See \`config.log' for more details." >&2;}
2187    { (exit 1); exit 1; }; }
2188     fi
2189   fi
2190 fi
2191 { echo "$as_me:$LINENO: result: yes" >&5
2192 echo "${ECHO_T}yes" >&6; }
2193
2194 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2195 ac_clean_files=$ac_clean_files_save
2196 # Check that the compiler produces executables we can run.  If not, either
2197 # the compiler is broken, or we cross compile.
2198 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2199 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2200 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2201 echo "${ECHO_T}$cross_compiling" >&6; }
2202
2203 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2204 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2205 if { (ac_try="$ac_link"
2206 case "(($ac_try" in
2207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2208   *) ac_try_echo=$ac_try;;
2209 esac
2210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2211   (eval "$ac_link") 2>&5
2212   ac_status=$?
2213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214   (exit $ac_status); }; then
2215   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2216 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2217 # work properly (i.e., refer to `conftest.exe'), while it won't with
2218 # `rm'.
2219 for ac_file in conftest.exe conftest conftest.*; do
2220   test -f "$ac_file" || continue
2221   case $ac_file in
2222     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2223     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2224           break;;
2225     * ) break;;
2226   esac
2227 done
2228 else
2229   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2230 See \`config.log' for more details." >&5
2231 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2232 See \`config.log' for more details." >&2;}
2233    { (exit 1); exit 1; }; }
2234 fi
2235
2236 rm -f conftest$ac_cv_exeext
2237 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2238 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2239
2240 rm -f conftest.$ac_ext
2241 EXEEXT=$ac_cv_exeext
2242 ac_exeext=$EXEEXT
2243 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2244 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2245 if test "${ac_cv_objext+set}" = set; then
2246   echo $ECHO_N "(cached) $ECHO_C" >&6
2247 else
2248   cat >conftest.$ac_ext <<_ACEOF
2249 /* confdefs.h.  */
2250 _ACEOF
2251 cat confdefs.h >>conftest.$ac_ext
2252 cat >>conftest.$ac_ext <<_ACEOF
2253 /* end confdefs.h.  */
2254
2255 int
2256 main ()
2257 {
2258
2259   ;
2260   return 0;
2261 }
2262 _ACEOF
2263 rm -f conftest.o conftest.obj
2264 if { (ac_try="$ac_compile"
2265 case "(($ac_try" in
2266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267   *) ac_try_echo=$ac_try;;
2268 esac
2269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2270   (eval "$ac_compile") 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }; then
2274   for ac_file in conftest.o conftest.obj conftest.*; do
2275   test -f "$ac_file" || continue;
2276   case $ac_file in
2277     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2278     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2279        break;;
2280   esac
2281 done
2282 else
2283   echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2285
2286 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2289 See \`config.log' for more details." >&2;}
2290    { (exit 1); exit 1; }; }
2291 fi
2292
2293 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2294 fi
2295 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2296 echo "${ECHO_T}$ac_cv_objext" >&6; }
2297 OBJEXT=$ac_cv_objext
2298 ac_objext=$OBJEXT
2299 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2300 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2301 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2302   echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304   cat >conftest.$ac_ext <<_ACEOF
2305 /* confdefs.h.  */
2306 _ACEOF
2307 cat confdefs.h >>conftest.$ac_ext
2308 cat >>conftest.$ac_ext <<_ACEOF
2309 /* end confdefs.h.  */
2310
2311 int
2312 main ()
2313 {
2314 #ifndef __GNUC__
2315        choke me
2316 #endif
2317
2318   ;
2319   return 0;
2320 }
2321 _ACEOF
2322 rm -f conftest.$ac_objext
2323 if { (ac_try="$ac_compile"
2324 case "(($ac_try" in
2325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326   *) ac_try_echo=$ac_try;;
2327 esac
2328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2329   (eval "$ac_compile") 2>conftest.er1
2330   ac_status=$?
2331   grep -v '^ *+' conftest.er1 >conftest.err
2332   rm -f conftest.er1
2333   cat conftest.err >&5
2334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335   (exit $ac_status); } && {
2336          test -z "$ac_c_werror_flag" ||
2337          test ! -s conftest.err
2338        } && test -s conftest.$ac_objext; then
2339   ac_compiler_gnu=yes
2340 else
2341   echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2343
2344         ac_compiler_gnu=no
2345 fi
2346
2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2349
2350 fi
2351 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2352 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2353 GCC=`test $ac_compiler_gnu = yes && echo yes`
2354 ac_test_CFLAGS=${CFLAGS+set}
2355 ac_save_CFLAGS=$CFLAGS
2356 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2357 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2358 if test "${ac_cv_prog_cc_g+set}" = set; then
2359   echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361   ac_save_c_werror_flag=$ac_c_werror_flag
2362    ac_c_werror_flag=yes
2363    ac_cv_prog_cc_g=no
2364    CFLAGS="-g"
2365    cat >conftest.$ac_ext <<_ACEOF
2366 /* confdefs.h.  */
2367 _ACEOF
2368 cat confdefs.h >>conftest.$ac_ext
2369 cat >>conftest.$ac_ext <<_ACEOF
2370 /* end confdefs.h.  */
2371
2372 int
2373 main ()
2374 {
2375
2376   ;
2377   return 0;
2378 }
2379 _ACEOF
2380 rm -f conftest.$ac_objext
2381 if { (ac_try="$ac_compile"
2382 case "(($ac_try" in
2383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2384   *) ac_try_echo=$ac_try;;
2385 esac
2386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2387   (eval "$ac_compile") 2>conftest.er1
2388   ac_status=$?
2389   grep -v '^ *+' conftest.er1 >conftest.err
2390   rm -f conftest.er1
2391   cat conftest.err >&5
2392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393   (exit $ac_status); } && {
2394          test -z "$ac_c_werror_flag" ||
2395          test ! -s conftest.err
2396        } && test -s conftest.$ac_objext; then
2397   ac_cv_prog_cc_g=yes
2398 else
2399   echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402         CFLAGS=""
2403       cat >conftest.$ac_ext <<_ACEOF
2404 /* confdefs.h.  */
2405 _ACEOF
2406 cat confdefs.h >>conftest.$ac_ext
2407 cat >>conftest.$ac_ext <<_ACEOF
2408 /* end confdefs.h.  */
2409
2410 int
2411 main ()
2412 {
2413
2414   ;
2415   return 0;
2416 }
2417 _ACEOF
2418 rm -f conftest.$ac_objext
2419 if { (ac_try="$ac_compile"
2420 case "(($ac_try" in
2421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422   *) ac_try_echo=$ac_try;;
2423 esac
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425   (eval "$ac_compile") 2>conftest.er1
2426   ac_status=$?
2427   grep -v '^ *+' conftest.er1 >conftest.err
2428   rm -f conftest.er1
2429   cat conftest.err >&5
2430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431   (exit $ac_status); } && {
2432          test -z "$ac_c_werror_flag" ||
2433          test ! -s conftest.err
2434        } && test -s conftest.$ac_objext; then
2435   :
2436 else
2437   echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2439
2440         ac_c_werror_flag=$ac_save_c_werror_flag
2441          CFLAGS="-g"
2442          cat >conftest.$ac_ext <<_ACEOF
2443 /* confdefs.h.  */
2444 _ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h.  */
2448
2449 int
2450 main ()
2451 {
2452
2453   ;
2454   return 0;
2455 }
2456 _ACEOF
2457 rm -f conftest.$ac_objext
2458 if { (ac_try="$ac_compile"
2459 case "(($ac_try" in
2460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461   *) ac_try_echo=$ac_try;;
2462 esac
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464   (eval "$ac_compile") 2>conftest.er1
2465   ac_status=$?
2466   grep -v '^ *+' conftest.er1 >conftest.err
2467   rm -f conftest.er1
2468   cat conftest.err >&5
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); } && {
2471          test -z "$ac_c_werror_flag" ||
2472          test ! -s conftest.err
2473        } && test -s conftest.$ac_objext; then
2474   ac_cv_prog_cc_g=yes
2475 else
2476   echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2478
2479         
2480 fi
2481
2482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2483 fi
2484
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2486 fi
2487
2488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2489    ac_c_werror_flag=$ac_save_c_werror_flag
2490 fi
2491 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2492 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2493 if test "$ac_test_CFLAGS" = set; then
2494   CFLAGS=$ac_save_CFLAGS
2495 elif test $ac_cv_prog_cc_g = yes; then
2496   if test "$GCC" = yes; then
2497     CFLAGS="-g -O2"
2498   else
2499     CFLAGS="-g"
2500   fi
2501 else
2502   if test "$GCC" = yes; then
2503     CFLAGS="-O2"
2504   else
2505     CFLAGS=
2506   fi
2507 fi
2508 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2509 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2510 if test "${ac_cv_prog_cc_c89+set}" = set; then
2511   echo $ECHO_N "(cached) $ECHO_C" >&6
2512 else
2513   ac_cv_prog_cc_c89=no
2514 ac_save_CC=$CC
2515 cat >conftest.$ac_ext <<_ACEOF
2516 /* confdefs.h.  */
2517 _ACEOF
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h.  */
2521 #include <stdarg.h>
2522 #include <stdio.h>
2523 #include <sys/types.h>
2524 #include <sys/stat.h>
2525 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2526 struct buf { int x; };
2527 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2528 static char *e (p, i)
2529      char **p;
2530      int i;
2531 {
2532   return p[i];
2533 }
2534 static char *f (char * (*g) (char **, int), char **p, ...)
2535 {
2536   char *s;
2537   va_list v;
2538   va_start (v,p);
2539   s = g (p, va_arg (v,int));
2540   va_end (v);
2541   return s;
2542 }
2543
2544 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2545    function prototypes and stuff, but not '\xHH' hex character constants.
2546    These don't provoke an error unfortunately, instead are silently treated
2547    as 'x'.  The following induces an error, until -std is added to get
2548    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2549    array size at least.  It's necessary to write '\x00'==0 to get something
2550    that's true only with -std.  */
2551 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2552
2553 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2554    inside strings and character constants.  */
2555 #define FOO(x) 'x'
2556 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2557
2558 int test (int i, double x);
2559 struct s1 {int (*f) (int a);};
2560 struct s2 {int (*f) (double a);};
2561 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2562 int argc;
2563 char **argv;
2564 int
2565 main ()
2566 {
2567 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2568   ;
2569   return 0;
2570 }
2571 _ACEOF
2572 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2573         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2574 do
2575   CC="$ac_save_CC $ac_arg"
2576   rm -f conftest.$ac_objext
2577 if { (ac_try="$ac_compile"
2578 case "(($ac_try" in
2579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580   *) ac_try_echo=$ac_try;;
2581 esac
2582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2583   (eval "$ac_compile") 2>conftest.er1
2584   ac_status=$?
2585   grep -v '^ *+' conftest.er1 >conftest.err
2586   rm -f conftest.er1
2587   cat conftest.err >&5
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); } && {
2590          test -z "$ac_c_werror_flag" ||
2591          test ! -s conftest.err
2592        } && test -s conftest.$ac_objext; then
2593   ac_cv_prog_cc_c89=$ac_arg
2594 else
2595   echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2597
2598         
2599 fi
2600
2601 rm -f core conftest.err conftest.$ac_objext 
2602   test "x$ac_cv_prog_cc_c89" != "xno" && break
2603 done
2604 rm -f conftest.$ac_ext
2605 CC=$ac_save_CC
2606
2607 fi
2608 # AC_CACHE_VAL
2609 case "x$ac_cv_prog_cc_c89" in
2610   x)
2611     { echo "$as_me:$LINENO: result: none needed" >&5
2612 echo "${ECHO_T}none needed" >&6; } ;;
2613   xno)
2614     { echo "$as_me:$LINENO: result: unsupported" >&5
2615 echo "${ECHO_T}unsupported" >&6; } ;;
2616   *)
2617     CC="$CC $ac_cv_prog_cc_c89"
2618     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2619 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2620 esac
2621
2622
2623 ac_ext=c
2624 ac_cpp='$CPP $CPPFLAGS'
2625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2628
2629
2630 ac_ext=c
2631 ac_cpp='$CPP $CPPFLAGS'
2632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2635 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2636 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2637 # On Suns, sometimes $CPP names a directory.
2638 if test -n "$CPP" && test -d "$CPP"; then
2639   CPP=
2640 fi
2641 if test -z "$CPP"; then
2642   if test "${ac_cv_prog_CPP+set}" = set; then
2643   echo $ECHO_N "(cached) $ECHO_C" >&6
2644 else
2645       # Double quotes because CPP needs to be expanded
2646     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2647     do
2648       ac_preproc_ok=false
2649 for ac_c_preproc_warn_flag in '' yes
2650 do
2651   # Use a header file that comes with gcc, so configuring glibc
2652   # with a fresh cross-compiler works.
2653   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2654   # <limits.h> exists even on freestanding compilers.
2655   # On the NeXT, cc -E runs the code through the compiler's parser,
2656   # not just through cpp. "Syntax error" is here to catch this case.
2657   cat >conftest.$ac_ext <<_ACEOF
2658 /* confdefs.h.  */
2659 _ACEOF
2660 cat confdefs.h >>conftest.$ac_ext
2661 cat >>conftest.$ac_ext <<_ACEOF
2662 /* end confdefs.h.  */
2663 @%:@ifdef __STDC__
2664 @%:@ include <limits.h>
2665 @%:@else
2666 @%:@ include <assert.h>
2667 @%:@endif
2668                      Syntax error
2669 _ACEOF
2670 if { (ac_try="$ac_cpp conftest.$ac_ext"
2671 case "(($ac_try" in
2672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673   *) ac_try_echo=$ac_try;;
2674 esac
2675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2676   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2677   ac_status=$?
2678   grep -v '^ *+' conftest.er1 >conftest.err
2679   rm -f conftest.er1
2680   cat conftest.err >&5
2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682   (exit $ac_status); } >/dev/null && {
2683          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2684          test ! -s conftest.err
2685        }; then
2686   :
2687 else
2688   echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2690
2691   # Broken: fails on valid input.
2692 continue
2693 fi
2694
2695 rm -f conftest.err conftest.$ac_ext
2696
2697   # OK, works on sane cases.  Now check whether nonexistent headers
2698   # can be detected and how.
2699   cat >conftest.$ac_ext <<_ACEOF
2700 /* confdefs.h.  */
2701 _ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h.  */
2705 @%:@include <ac_nonexistent.h>
2706 _ACEOF
2707 if { (ac_try="$ac_cpp conftest.$ac_ext"
2708 case "(($ac_try" in
2709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710   *) ac_try_echo=$ac_try;;
2711 esac
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2714   ac_status=$?
2715   grep -v '^ *+' conftest.er1 >conftest.err
2716   rm -f conftest.er1
2717   cat conftest.err >&5
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); } >/dev/null && {
2720          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2721          test ! -s conftest.err
2722        }; then
2723   # Broken: success on invalid input.
2724 continue
2725 else
2726   echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2728
2729   # Passes both tests.
2730 ac_preproc_ok=:
2731 break
2732 fi
2733
2734 rm -f conftest.err conftest.$ac_ext
2735
2736 done
2737 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2738 rm -f conftest.err conftest.$ac_ext
2739 if $ac_preproc_ok; then
2740   break
2741 fi
2742
2743     done
2744     ac_cv_prog_CPP=$CPP
2745   
2746 fi
2747   CPP=$ac_cv_prog_CPP
2748 else
2749   ac_cv_prog_CPP=$CPP
2750 fi
2751 { echo "$as_me:$LINENO: result: $CPP" >&5
2752 echo "${ECHO_T}$CPP" >&6; }
2753 ac_preproc_ok=false
2754 for ac_c_preproc_warn_flag in '' yes
2755 do
2756   # Use a header file that comes with gcc, so configuring glibc
2757   # with a fresh cross-compiler works.
2758   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2759   # <limits.h> exists even on freestanding compilers.
2760   # On the NeXT, cc -E runs the code through the compiler's parser,
2761   # not just through cpp. "Syntax error" is here to catch this case.
2762   cat >conftest.$ac_ext <<_ACEOF
2763 /* confdefs.h.  */
2764 _ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h.  */
2768 @%:@ifdef __STDC__
2769 @%:@ include <limits.h>
2770 @%:@else
2771 @%:@ include <assert.h>
2772 @%:@endif
2773                      Syntax error
2774 _ACEOF
2775 if { (ac_try="$ac_cpp conftest.$ac_ext"
2776 case "(($ac_try" in
2777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778   *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2782   ac_status=$?
2783   grep -v '^ *+' conftest.er1 >conftest.err
2784   rm -f conftest.er1
2785   cat conftest.err >&5
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); } >/dev/null && {
2788          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2789          test ! -s conftest.err
2790        }; then
2791   :
2792 else
2793   echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2795
2796   # Broken: fails on valid input.
2797 continue
2798 fi
2799
2800 rm -f conftest.err conftest.$ac_ext
2801
2802   # OK, works on sane cases.  Now check whether nonexistent headers
2803   # can be detected and how.
2804   cat >conftest.$ac_ext <<_ACEOF
2805 /* confdefs.h.  */
2806 _ACEOF
2807 cat confdefs.h >>conftest.$ac_ext
2808 cat >>conftest.$ac_ext <<_ACEOF
2809 /* end confdefs.h.  */
2810 @%:@include <ac_nonexistent.h>
2811 _ACEOF
2812 if { (ac_try="$ac_cpp conftest.$ac_ext"
2813 case "(($ac_try" in
2814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815   *) ac_try_echo=$ac_try;;
2816 esac
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2819   ac_status=$?
2820   grep -v '^ *+' conftest.er1 >conftest.err
2821   rm -f conftest.er1
2822   cat conftest.err >&5
2823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824   (exit $ac_status); } >/dev/null && {
2825          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2826          test ! -s conftest.err
2827        }; then
2828   # Broken: success on invalid input.
2829 continue
2830 else
2831   echo "$as_me: failed program was:" >&5
2832 sed 's/^/| /' conftest.$ac_ext >&5
2833
2834   # Passes both tests.
2835 ac_preproc_ok=:
2836 break
2837 fi
2838
2839 rm -f conftest.err conftest.$ac_ext
2840
2841 done
2842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2843 rm -f conftest.err conftest.$ac_ext
2844 if $ac_preproc_ok; then
2845   :
2846 else
2847   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2848 See \`config.log' for more details." >&5
2849 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2850 See \`config.log' for more details." >&2;}
2851    { (exit 1); exit 1; }; }
2852 fi
2853
2854 ac_ext=c
2855 ac_cpp='$CPP $CPPFLAGS'
2856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2859
2860
2861 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2862 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
2863 if test "${ac_cv_path_GREP+set}" = set; then
2864   echo $ECHO_N "(cached) $ECHO_C" >&6
2865 else
2866   # Extract the first word of "grep ggrep" to use in msg output
2867 if test -z "$GREP"; then
2868 set dummy grep ggrep; ac_prog_name=$2
2869 if test "${ac_cv_path_GREP+set}" = set; then
2870   echo $ECHO_N "(cached) $ECHO_C" >&6
2871 else
2872   ac_path_GREP_found=false
2873 # Loop through the user's path and test for each of PROGNAME-LIST
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2876 do
2877   IFS=$as_save_IFS
2878   test -z "$as_dir" && as_dir=.
2879   for ac_prog in grep ggrep; do
2880   for ac_exec_ext in '' $ac_executable_extensions; do
2881     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2882     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2883     # Check for GNU ac_path_GREP and select it if it is found.
2884   # Check for GNU $ac_path_GREP
2885 case `"$ac_path_GREP" --version 2>&1` in
2886 *GNU*)
2887   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2888 *)
2889   ac_count=0
2890   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2891   while :
2892   do
2893     cat "conftest.in" "conftest.in" >"conftest.tmp"
2894     mv "conftest.tmp" "conftest.in"
2895     cp "conftest.in" "conftest.nl"
2896     echo 'GREP' >> "conftest.nl"
2897     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2898     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2899     ac_count=`expr $ac_count + 1`
2900     if test $ac_count -gt ${ac_path_GREP_max-0}; then
2901       # Best one so far, save it but keep looking for a better one
2902       ac_cv_path_GREP="$ac_path_GREP"
2903       ac_path_GREP_max=$ac_count
2904     fi
2905     # 10*(2^10) chars as input seems more than enough
2906     test $ac_count -gt 10 && break
2907   done
2908   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2909 esac
2910
2911
2912     $ac_path_GREP_found && break 3
2913   done
2914 done
2915
2916 done
2917 IFS=$as_save_IFS
2918
2919
2920 fi
2921
2922 GREP="$ac_cv_path_GREP"
2923 if test -z "$GREP"; then
2924   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2925 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2926    { (exit 1); exit 1; }; }
2927 fi
2928
2929 else
2930   ac_cv_path_GREP=$GREP
2931 fi
2932
2933
2934 fi
2935 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
2936 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
2937  GREP="$ac_cv_path_GREP"
2938  
2939
2940 { echo "$as_me:$LINENO: checking for egrep" >&5
2941 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
2942 if test "${ac_cv_path_EGREP+set}" = set; then
2943   echo $ECHO_N "(cached) $ECHO_C" >&6
2944 else
2945   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2946    then ac_cv_path_EGREP="$GREP -E"
2947    else
2948      # Extract the first word of "egrep" to use in msg output
2949 if test -z "$EGREP"; then
2950 set dummy egrep; ac_prog_name=$2
2951 if test "${ac_cv_path_EGREP+set}" = set; then
2952   echo $ECHO_N "(cached) $ECHO_C" >&6
2953 else
2954   ac_path_EGREP_found=false
2955 # Loop through the user's path and test for each of PROGNAME-LIST
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2958 do
2959   IFS=$as_save_IFS
2960   test -z "$as_dir" && as_dir=.
2961   for ac_prog in egrep; do
2962   for ac_exec_ext in '' $ac_executable_extensions; do
2963     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
2964     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
2965     # Check for GNU ac_path_EGREP and select it if it is found.
2966   # Check for GNU $ac_path_EGREP
2967 case `"$ac_path_EGREP" --version 2>&1` in
2968 *GNU*)
2969   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
2970 *)
2971   ac_count=0
2972   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2973   while :
2974   do
2975     cat "conftest.in" "conftest.in" >"conftest.tmp"
2976     mv "conftest.tmp" "conftest.in"
2977     cp "conftest.in" "conftest.nl"
2978     echo 'EGREP' >> "conftest.nl"
2979     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2980     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2981     ac_count=`expr $ac_count + 1`
2982     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
2983       # Best one so far, save it but keep looking for a better one
2984       ac_cv_path_EGREP="$ac_path_EGREP"
2985       ac_path_EGREP_max=$ac_count
2986     fi
2987     # 10*(2^10) chars as input seems more than enough
2988     test $ac_count -gt 10 && break
2989   done
2990   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2991 esac
2992
2993
2994     $ac_path_EGREP_found && break 3
2995   done
2996 done
2997
2998 done
2999 IFS=$as_save_IFS
3000
3001
3002 fi
3003
3004 EGREP="$ac_cv_path_EGREP"
3005 if test -z "$EGREP"; then
3006   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3007 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3008    { (exit 1); exit 1; }; }
3009 fi
3010
3011 else
3012   ac_cv_path_EGREP=$EGREP
3013 fi
3014
3015
3016    fi
3017 fi
3018 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3019 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3020  EGREP="$ac_cv_path_EGREP"
3021  
3022
3023 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3024 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3025 if test "${ac_cv_header_stdc+set}" = set; then
3026   echo $ECHO_N "(cached) $ECHO_C" >&6
3027 else
3028   cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h.  */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h.  */
3034 #include <stdlib.h>
3035 #include <stdarg.h>
3036 #include <string.h>
3037 #include <float.h>
3038
3039 int
3040 main ()
3041 {
3042
3043   ;
3044   return 0;
3045 }
3046 _ACEOF
3047 rm -f conftest.$ac_objext
3048 if { (ac_try="$ac_compile"
3049 case "(($ac_try" in
3050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051   *) ac_try_echo=$ac_try;;
3052 esac
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054   (eval "$ac_compile") 2>conftest.er1
3055   ac_status=$?
3056   grep -v '^ *+' conftest.er1 >conftest.err
3057   rm -f conftest.er1
3058   cat conftest.err >&5
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); } && {
3061          test -z "$ac_c_werror_flag" ||
3062          test ! -s conftest.err
3063        } && test -s conftest.$ac_objext; then
3064   ac_cv_header_stdc=yes
3065 else
3066   echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3068
3069         ac_cv_header_stdc=no
3070 fi
3071
3072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3073
3074 if test $ac_cv_header_stdc = yes; then
3075   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3076   cat >conftest.$ac_ext <<_ACEOF
3077 /* confdefs.h.  */
3078 _ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h.  */
3082 #include <string.h>
3083
3084 _ACEOF
3085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3086   $EGREP "memchr" >/dev/null 2>&1; then
3087   :
3088 else
3089   ac_cv_header_stdc=no
3090 fi
3091 rm -f conftest*
3092
3093 fi
3094
3095 if test $ac_cv_header_stdc = yes; then
3096   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3097   cat >conftest.$ac_ext <<_ACEOF
3098 /* confdefs.h.  */
3099 _ACEOF
3100 cat confdefs.h >>conftest.$ac_ext
3101 cat >>conftest.$ac_ext <<_ACEOF
3102 /* end confdefs.h.  */
3103 #include <stdlib.h>
3104
3105 _ACEOF
3106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107   $EGREP "free" >/dev/null 2>&1; then
3108   :
3109 else
3110   ac_cv_header_stdc=no
3111 fi
3112 rm -f conftest*
3113
3114 fi
3115
3116 if test $ac_cv_header_stdc = yes; then
3117   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3118   if test "$cross_compiling" = yes; then
3119   :
3120 else
3121   cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h.  */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h.  */
3127 #include <ctype.h>
3128 #include <stdlib.h>
3129 #if ((' ' & 0x0FF) == 0x020)
3130 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3131 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3132 #else
3133 # define ISLOWER(c) \
3134                    (('a' <= (c) && (c) <= 'i') \
3135                      || ('j' <= (c) && (c) <= 'r') \
3136                      || ('s' <= (c) && (c) <= 'z'))
3137 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3138 #endif
3139
3140 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3141 int
3142 main ()
3143 {
3144   int i;
3145   for (i = 0; i < 256; i++)
3146     if (XOR (islower (i), ISLOWER (i))
3147         || toupper (i) != TOUPPER (i))
3148       return 2;
3149   return 0;
3150 }
3151 _ACEOF
3152 rm -f conftest$ac_exeext
3153 if { (ac_try="$ac_link"
3154 case "(($ac_try" in
3155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156   *) ac_try_echo=$ac_try;;
3157 esac
3158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159   (eval "$ac_link") 2>&5
3160   ac_status=$?
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3163   { (case "(($ac_try" in
3164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165   *) ac_try_echo=$ac_try;;
3166 esac
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168   (eval "$ac_try") 2>&5
3169   ac_status=$?
3170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171   (exit $ac_status); }; }; then
3172   :
3173 else
3174   echo "$as_me: program exited with status $ac_status" >&5
3175 echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3177
3178 ( exit $ac_status )
3179 ac_cv_header_stdc=no
3180 fi
3181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3182 fi
3183
3184
3185 fi
3186 fi
3187 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3188 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3189 if test $ac_cv_header_stdc = yes; then
3190   
3191 cat >>confdefs.h <<\_ACEOF
3192 @%:@define STDC_HEADERS 1
3193 _ACEOF
3194
3195 fi
3196
3197 ac_aux_dir=
3198 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3199   if test -f "$ac_dir/install-sh"; then
3200     ac_aux_dir=$ac_dir
3201     ac_install_sh="$ac_aux_dir/install-sh -c"
3202     break
3203   elif test -f "$ac_dir/install.sh"; then
3204     ac_aux_dir=$ac_dir
3205     ac_install_sh="$ac_aux_dir/install.sh -c"
3206     break
3207   elif test -f "$ac_dir/shtool"; then
3208     ac_aux_dir=$ac_dir
3209     ac_install_sh="$ac_aux_dir/shtool install -c"
3210     break
3211   fi
3212 done
3213 if test -z "$ac_aux_dir"; then
3214   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3215 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3216    { (exit 1); exit 1; }; }
3217 fi
3218
3219 # These three variables are undocumented and unsupported,
3220 # and are intended to be withdrawn in a future Autoconf release.
3221 # They can cause serious problems if a builder's source tree is in a directory
3222 # whose full name contains unusual characters.
3223 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3224 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3225 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3226
3227
3228 # Find a good install program.  We prefer a C program (faster),
3229 # so one script is as good as another.  But avoid the broken or
3230 # incompatible versions:
3231 # SysV /etc/install, /usr/sbin/install
3232 # SunOS /usr/etc/install
3233 # IRIX /sbin/install
3234 # AIX /bin/install
3235 # AmigaOS /C/install, which installs bootblocks on floppy discs
3236 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3237 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3238 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3239 # OS/2's system install, which has a completely different semantic
3240 # ./install, which can be erroneously created by make from ./install.sh.
3241 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3242 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3243 if test -z "$INSTALL"; then
3244 if test "${ac_cv_path_install+set}" = set; then
3245   echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250   IFS=$as_save_IFS
3251   test -z "$as_dir" && as_dir=.
3252   # Account for people who put trailing slashes in PATH elements.
3253 case $as_dir/ in
3254   ./ | .// | /cC/* | \
3255   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3256   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3257   /usr/ucb/* ) ;;
3258   *)
3259     # OSF1 and SCO ODT 3.0 have their own names for install.
3260     # Don't use installbsd from OSF since it installs stuff as root
3261     # by default.
3262     for ac_prog in ginstall scoinst install; do
3263       for ac_exec_ext in '' $ac_executable_extensions; do
3264         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3265           if test $ac_prog = install &&
3266             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3267             # AIX install.  It has an incompatible calling convention.
3268             :
3269           elif test $ac_prog = install &&
3270             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3271             # program-specific install script used by HP pwplus--don't use.
3272             :
3273           else
3274             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3275             break 3
3276           fi
3277         fi
3278       done
3279     done
3280     ;;
3281 esac
3282 done
3283 IFS=$as_save_IFS
3284
3285
3286 fi
3287   if test "${ac_cv_path_install+set}" = set; then
3288     INSTALL=$ac_cv_path_install
3289   else
3290     # As a last resort, use the slow shell script.  Don't cache a
3291     # value for INSTALL within a source directory, because that will
3292     # break other packages using the cache if that directory is
3293     # removed, or if the value is a relative name.
3294     INSTALL=$ac_install_sh
3295   fi
3296 fi
3297 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3298 echo "${ECHO_T}$INSTALL" >&6; }
3299
3300 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3301 # It thinks the first close brace ends the variable substitution.
3302 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3303
3304 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3305
3306 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3307
3308
3309 { echo "$as_me:$LINENO: checking whether compiler supports PIE" >&5
3310 echo $ECHO_N "checking whether compiler supports PIE... $ECHO_C" >&6; }
3311 oldCFLAGS="$CFLAGS"
3312 CFLAGS="$CFLAGS -fPIE"
3313 oldLDFLAGS="$LDFLAGS"
3314 LDFLAGS="$LDFLAGS -pie"
3315 cat >conftest.$ac_ext <<_ACEOF
3316 /* confdefs.h.  */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h.  */
3321
3322 int
3323 main ()
3324 {
3325
3326   ;
3327   return 0;
3328 }
3329 _ACEOF
3330 rm -f conftest.$ac_objext conftest$ac_exeext
3331 if { (ac_try="$ac_link"
3332 case "(($ac_try" in
3333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334   *) ac_try_echo=$ac_try;;
3335 esac
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337   (eval "$ac_link") 2>conftest.er1
3338   ac_status=$?
3339   grep -v '^ *+' conftest.er1 >conftest.err
3340   rm -f conftest.er1
3341   cat conftest.err >&5
3342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343   (exit $ac_status); } && {
3344          test -z "$ac_c_werror_flag" ||
3345          test ! -s conftest.err
3346        } && test -s conftest$ac_exeext &&
3347        $as_test_x conftest$ac_exeext; then
3348   compilepie="yes"
3349 else
3350   echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3352
3353         
3354 fi
3355
3356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3357       conftest$ac_exeext conftest.$ac_ext
3358 if test "x$compilepie" != "xyes"; then
3359         CFLAGS="$oldCFLAGS"
3360         LDFLAGS="$oldLDFLAGS"
3361         { echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6; }
3363 else
3364         { echo "$as_me:$LINENO: result: yes" >&5
3365 echo "${ECHO_T}yes" >&6; }
3366 fi
3367
3368 # Check whether --enable-ldapmail was given.
3369 if test "${enable_ldapmail+set}" = set; then
3370   enableval=$enable_ldapmail; 
3371 else
3372   enable_ldapmail="no"
3373 fi
3374
3375 if test "x$enable_ldapmail" != "xno"; then
3376         have_new_ldap="no"
3377         have_old_ldap="no"
3378         { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5
3379 echo $ECHO_N "checking for ldap_initialize in -lldap... $ECHO_C" >&6; }
3380 if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then
3381   echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383   ac_check_lib_save_LIBS=$LIBS
3384 LIBS="-lldap  $LIBS"
3385 cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h.  */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h.  */
3391
3392 /* Override any GCC internal prototype to avoid an error.
3393    Use char because int might match the return type of a GCC
3394    builtin and then its argument prototype would still apply.  */
3395 #ifdef __cplusplus
3396 extern "C"
3397 #endif
3398 char ldap_initialize ();
3399 int
3400 main ()
3401 {
3402 return ldap_initialize ();
3403   ;
3404   return 0;
3405 }
3406 _ACEOF
3407 rm -f conftest.$ac_objext conftest$ac_exeext
3408 if { (ac_try="$ac_link"
3409 case "(($ac_try" in
3410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411   *) ac_try_echo=$ac_try;;
3412 esac
3413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414   (eval "$ac_link") 2>conftest.er1
3415   ac_status=$?
3416   grep -v '^ *+' conftest.er1 >conftest.err
3417   rm -f conftest.er1
3418   cat conftest.err >&5
3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420   (exit $ac_status); } && {
3421          test -z "$ac_c_werror_flag" ||
3422          test ! -s conftest.err
3423        } && test -s conftest$ac_exeext &&
3424        $as_test_x conftest$ac_exeext; then
3425   ac_cv_lib_ldap_ldap_initialize=yes
3426 else
3427   echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430         ac_cv_lib_ldap_ldap_initialize=no
3431 fi
3432
3433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3434       conftest$ac_exeext conftest.$ac_ext
3435 LIBS=$ac_check_lib_save_LIBS
3436 fi
3437 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5
3438 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_initialize" >&6; }
3439 if test $ac_cv_lib_ldap_ldap_initialize = yes; then
3440   have_new_ldap="yes"
3441 else
3442   { echo "$as_me:$LINENO: checking for ldap_init in -lldap" >&5
3443 echo $ECHO_N "checking for ldap_init in -lldap... $ECHO_C" >&6; }
3444 if test "${ac_cv_lib_ldap_ldap_init+set}" = set; then
3445   echo $ECHO_N "(cached) $ECHO_C" >&6
3446 else
3447   ac_check_lib_save_LIBS=$LIBS
3448 LIBS="-lldap  $LIBS"
3449 cat >conftest.$ac_ext <<_ACEOF
3450 /* confdefs.h.  */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h.  */
3455
3456 /* Override any GCC internal prototype to avoid an error.
3457    Use char because int might match the return type of a GCC
3458    builtin and then its argument prototype would still apply.  */
3459 #ifdef __cplusplus
3460 extern "C"
3461 #endif
3462 char ldap_init ();
3463 int
3464 main ()
3465 {
3466 return ldap_init ();
3467   ;
3468   return 0;
3469 }
3470 _ACEOF
3471 rm -f conftest.$ac_objext conftest$ac_exeext
3472 if { (ac_try="$ac_link"
3473 case "(($ac_try" in
3474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475   *) ac_try_echo=$ac_try;;
3476 esac
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478   (eval "$ac_link") 2>conftest.er1
3479   ac_status=$?
3480   grep -v '^ *+' conftest.er1 >conftest.err
3481   rm -f conftest.er1
3482   cat conftest.err >&5
3483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484   (exit $ac_status); } && {
3485          test -z "$ac_c_werror_flag" ||
3486          test ! -s conftest.err
3487        } && test -s conftest$ac_exeext &&
3488        $as_test_x conftest$ac_exeext; then
3489   ac_cv_lib_ldap_ldap_init=yes
3490 else
3491   echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494         ac_cv_lib_ldap_ldap_init=no
3495 fi
3496
3497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3498       conftest$ac_exeext conftest.$ac_ext
3499 LIBS=$ac_check_lib_save_LIBS
3500 fi
3501 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_init" >&5
3502 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_init" >&6; }
3503 if test $ac_cv_lib_ldap_ldap_init = yes; then
3504   have_old_ldap="yes"
3505 fi
3506
3507 fi
3508
3509         if test "x$have_new_ldap" != "xno" -o "x$have_old_ldap" != "xno"; then
3510                 LDAPLIBS="-L/usr/lib -lldap"
3511                 CFLAGS="$CFLAGS -DUSE_LDAP_MAIL_LOOKUP"
3512                 COMPILE_OPTS="$COMPILE_OPTS USE_LDAP_MAIL_LOOKUP"
3513                 if test "x$have_new_ldap" = "xyes"; then
3514                         CFLAGS="$CFLAGS -DUSE_LDAP_23"
3515                         { echo "$as_me:$LINENO: checking whether ldap_perror is declared" >&5
3516 echo $ECHO_N "checking whether ldap_perror is declared... $ECHO_C" >&6; }
3517 if test "${ac_cv_have_decl_ldap_perror+set}" = set; then
3518   echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520   cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h.  */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h.  */
3526 #include <ldap.h>
3527
3528 int
3529 main ()
3530 {
3531 #ifndef ldap_perror
3532   (void) ldap_perror;
3533 #endif
3534
3535   ;
3536   return 0;
3537 }
3538 _ACEOF
3539 rm -f conftest.$ac_objext
3540 if { (ac_try="$ac_compile"
3541 case "(($ac_try" in
3542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543   *) ac_try_echo=$ac_try;;
3544 esac
3545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3546   (eval "$ac_compile") 2>conftest.er1
3547   ac_status=$?
3548   grep -v '^ *+' conftest.er1 >conftest.err
3549   rm -f conftest.er1
3550   cat conftest.err >&5
3551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552   (exit $ac_status); } && {
3553          test -z "$ac_c_werror_flag" ||
3554          test ! -s conftest.err
3555        } && test -s conftest.$ac_objext; then
3556   ac_cv_have_decl_ldap_perror=yes
3557 else
3558   echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3560
3561         ac_cv_have_decl_ldap_perror=no
3562 fi
3563
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 fi
3566 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ldap_perror" >&5
3567 echo "${ECHO_T}$ac_cv_have_decl_ldap_perror" >&6; }
3568 if test $ac_cv_have_decl_ldap_perror = yes; then
3569   :
3570 else
3571   CFLAGS="$CFLAGS -DNEED_LDAP_PERROR"
3572 fi
3573
3574                 fi
3575         else
3576                 if test "x$enable_ldapmail" = "xyes"; then
3577                         { { echo "$as_me:$LINENO: error: LDAP support required but library not found." >&5
3578 echo "$as_me: error: LDAP support required but library not found." >&2;}
3579    { (exit 1); exit 1; }; };
3580                 fi
3581         fi
3582 fi
3583
3584
3585         
3586 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3597                   inttypes.h stdint.h unistd.h
3598 do
3599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3603   echo $ECHO_N "(cached) $ECHO_C" >&6
3604 else
3605   cat >conftest.$ac_ext <<_ACEOF
3606 /* confdefs.h.  */
3607 _ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h.  */
3611 $ac_includes_default
3612
3613 @%:@include <$ac_header>
3614 _ACEOF
3615 rm -f conftest.$ac_objext
3616 if { (ac_try="$ac_compile"
3617 case "(($ac_try" in
3618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619   *) ac_try_echo=$ac_try;;
3620 esac
3621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3622   (eval "$ac_compile") 2>conftest.er1
3623   ac_status=$?
3624   grep -v '^ *+' conftest.er1 >conftest.err
3625   rm -f conftest.er1
3626   cat conftest.err >&5
3627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628   (exit $ac_status); } && {
3629          test -z "$ac_c_werror_flag" ||
3630          test ! -s conftest.err
3631        } && test -s conftest.$ac_objext; then
3632   eval "$as_ac_Header=yes"
3633 else
3634   echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3636
3637         eval "$as_ac_Header=no"
3638 fi
3639
3640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641 fi
3642 ac_res=`eval echo '${'$as_ac_Header'}'`
3643                { echo "$as_me:$LINENO: result: $ac_res" >&5
3644 echo "${ECHO_T}$ac_res" >&6; }
3645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3646   cat >>confdefs.h <<_ACEOF
3647 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3648 _ACEOF
3649  
3650 fi
3651
3652 done
3653
3654
3655 if test "${ac_cv_header_ext2fs_ext2fs_h+set}" = set; then
3656   { echo "$as_me:$LINENO: checking for ext2fs/ext2fs.h" >&5
3657 echo $ECHO_N "checking for ext2fs/ext2fs.h... $ECHO_C" >&6; }
3658 if test "${ac_cv_header_ext2fs_ext2fs_h+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 fi
3661 { echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2fs_h" >&5
3662 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2fs_h" >&6; }
3663 else
3664   # Is the header compilable?
3665 { echo "$as_me:$LINENO: checking ext2fs/ext2fs.h usability" >&5
3666 echo $ECHO_N "checking ext2fs/ext2fs.h usability... $ECHO_C" >&6; }
3667 cat >conftest.$ac_ext <<_ACEOF
3668 /* confdefs.h.  */
3669 _ACEOF
3670 cat confdefs.h >>conftest.$ac_ext
3671 cat >>conftest.$ac_ext <<_ACEOF
3672 /* end confdefs.h.  */
3673 $ac_includes_default
3674 @%:@include <ext2fs/ext2fs.h>
3675 _ACEOF
3676 rm -f conftest.$ac_objext
3677 if { (ac_try="$ac_compile"
3678 case "(($ac_try" in
3679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680   *) ac_try_echo=$ac_try;;
3681 esac
3682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3683   (eval "$ac_compile") 2>conftest.er1
3684   ac_status=$?
3685   grep -v '^ *+' conftest.er1 >conftest.err
3686   rm -f conftest.er1
3687   cat conftest.err >&5
3688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689   (exit $ac_status); } && {
3690          test -z "$ac_c_werror_flag" ||
3691          test ! -s conftest.err
3692        } && test -s conftest.$ac_objext; then
3693   ac_header_compiler=yes
3694 else
3695   echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3697
3698         ac_header_compiler=no
3699 fi
3700
3701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3703 echo "${ECHO_T}$ac_header_compiler" >&6; }
3704
3705 # Is the header present?
3706 { echo "$as_me:$LINENO: checking ext2fs/ext2fs.h presence" >&5
3707 echo $ECHO_N "checking ext2fs/ext2fs.h presence... $ECHO_C" >&6; }
3708 cat >conftest.$ac_ext <<_ACEOF
3709 /* confdefs.h.  */
3710 _ACEOF
3711 cat confdefs.h >>conftest.$ac_ext
3712 cat >>conftest.$ac_ext <<_ACEOF
3713 /* end confdefs.h.  */
3714 @%:@include <ext2fs/ext2fs.h>
3715 _ACEOF
3716 if { (ac_try="$ac_cpp conftest.$ac_ext"
3717 case "(($ac_try" in
3718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719   *) ac_try_echo=$ac_try;;
3720 esac
3721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3722   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3723   ac_status=$?
3724   grep -v '^ *+' conftest.er1 >conftest.err
3725   rm -f conftest.er1
3726   cat conftest.err >&5
3727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728   (exit $ac_status); } >/dev/null && {
3729          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3730          test ! -s conftest.err
3731        }; then
3732   ac_header_preproc=yes
3733 else
3734   echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3736
3737   ac_header_preproc=no
3738 fi
3739
3740 rm -f conftest.err conftest.$ac_ext
3741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3742 echo "${ECHO_T}$ac_header_preproc" >&6; }
3743
3744 # So?  What about this header?
3745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3746   yes:no: )
3747     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3748 echo "$as_me: WARNING: ext2fs/ext2fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3749     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2fs.h: proceeding with the compiler's result" >&5
3750 echo "$as_me: WARNING: ext2fs/ext2fs.h: proceeding with the compiler's result" >&2;}
3751     ac_header_preproc=yes
3752     ;;
3753   no:yes:* )
3754     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2fs.h: present but cannot be compiled" >&5
3755 echo "$as_me: WARNING: ext2fs/ext2fs.h: present but cannot be compiled" >&2;}
3756     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2fs.h:     check for missing prerequisite headers?" >&5
3757 echo "$as_me: WARNING: ext2fs/ext2fs.h:     check for missing prerequisite headers?" >&2;}
3758     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2fs.h: see the Autoconf documentation" >&5
3759 echo "$as_me: WARNING: ext2fs/ext2fs.h: see the Autoconf documentation" >&2;}
3760     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2fs.h:     section \"Present But Cannot Be Compiled\"" >&5
3761 echo "$as_me: WARNING: ext2fs/ext2fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3762     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2fs.h: proceeding with the preprocessor's result" >&5
3763 echo "$as_me: WARNING: ext2fs/ext2fs.h: proceeding with the preprocessor's result" >&2;}
3764     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2fs.h: in the future, the compiler will take precedence" >&5
3765 echo "$as_me: WARNING: ext2fs/ext2fs.h: in the future, the compiler will take precedence" >&2;}
3766     
3767     ;;
3768 esac
3769 { echo "$as_me:$LINENO: checking for ext2fs/ext2fs.h" >&5
3770 echo $ECHO_N "checking for ext2fs/ext2fs.h... $ECHO_C" >&6; }
3771 if test "${ac_cv_header_ext2fs_ext2fs_h+set}" = set; then
3772   echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774   ac_cv_header_ext2fs_ext2fs_h=$ac_header_preproc
3775 fi
3776 { echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2fs_h" >&5
3777 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2fs_h" >&6; }
3778
3779 fi
3780 if test $ac_cv_header_ext2fs_ext2fs_h = yes; then
3781   ext2fshead="yes"
3782 fi
3783
3784
3785 if test "x$ext2fshead" = "xyes"; then
3786         CFLAGS="-DHAVE_EXT2_INCLUDE $CFLAGS"
3787         { echo "$as_me:$LINENO: checking for ext2_ino_t" >&5
3788 echo $ECHO_N "checking for ext2_ino_t... $ECHO_C" >&6; }
3789         have_ext2_ino_t="no"
3790         cat >conftest.$ac_ext <<_ACEOF
3791 /* confdefs.h.  */
3792 _ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h.  */
3796 #include <ext2fs/ext2fs.h>
3797
3798 _ACEOF
3799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3800   $EGREP "ext2_ino_t" >/dev/null 2>&1; then
3801   have_ext2_ino_t="yes"
3802 fi
3803 rm -f conftest*
3804
3805         if test "x$have_ext2_ino_t" != "xyes"; then
3806                 { echo "$as_me:$LINENO: result: not found" >&5
3807 echo "${ECHO_T}not found" >&6; }
3808         else
3809                 { echo "$as_me:$LINENO: result: found" >&5
3810 echo "${ECHO_T}found" >&6; }
3811                 CFLAGS="-DHAVE_EXT2_INO_T $CFLAGS"
3812         fi
3813 fi
3814
3815 # Check whether --enable-ext2direct was given.
3816 if test "${enable_ext2direct+set}" = set; then
3817   enableval=$enable_ext2direct; 
3818 else
3819   enable_ext2direct="try"
3820 fi
3821
3822 if test "x$enable_ext2direct" != "xno"; then
3823         { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
3824 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
3825 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
3826   echo $ECHO_N "(cached) $ECHO_C" >&6
3827 else
3828   ac_check_lib_save_LIBS=$LIBS
3829 LIBS="-lcom_err  $LIBS"
3830 cat >conftest.$ac_ext <<_ACEOF
3831 /* confdefs.h.  */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h.  */
3836
3837 /* Override any GCC internal prototype to avoid an error.
3838    Use char because int might match the return type of a GCC
3839    builtin and then its argument prototype would still apply.  */
3840 #ifdef __cplusplus
3841 extern "C"
3842 #endif
3843 char com_err ();
3844 int
3845 main ()
3846 {
3847 return com_err ();
3848   ;
3849   return 0;
3850 }
3851 _ACEOF
3852 rm -f conftest.$ac_objext conftest$ac_exeext
3853 if { (ac_try="$ac_link"
3854 case "(($ac_try" in
3855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856   *) ac_try_echo=$ac_try;;
3857 esac
3858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3859   (eval "$ac_link") 2>conftest.er1
3860   ac_status=$?
3861   grep -v '^ *+' conftest.er1 >conftest.err
3862   rm -f conftest.er1
3863   cat conftest.err >&5
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); } && {
3866          test -z "$ac_c_werror_flag" ||
3867          test ! -s conftest.err
3868        } && test -s conftest$ac_exeext &&
3869        $as_test_x conftest$ac_exeext; then
3870   ac_cv_lib_com_err_com_err=yes
3871 else
3872   echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3874
3875         ac_cv_lib_com_err_com_err=no
3876 fi
3877
3878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3879       conftest$ac_exeext conftest.$ac_ext
3880 LIBS=$ac_check_lib_save_LIBS
3881 fi
3882 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
3883 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
3884 if test $ac_cv_lib_com_err_com_err = yes; then
3885   EXT2LIBS="-lcom_err $EXT2LIBS"
3886 fi
3887
3888         { echo "$as_me:$LINENO: checking for ext2fs_initialize in -lext2fs" >&5
3889 echo $ECHO_N "checking for ext2fs_initialize in -lext2fs... $ECHO_C" >&6; }
3890 if test "${ac_cv_lib_ext2fs_ext2fs_initialize+set}" = set; then
3891   echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893   ac_check_lib_save_LIBS=$LIBS
3894 LIBS="-lext2fs "-lcom_err" $LIBS"
3895 cat >conftest.$ac_ext <<_ACEOF
3896 /* confdefs.h.  */
3897 _ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h.  */
3901
3902 /* Override any GCC internal prototype to avoid an error.
3903    Use char because int might match the return type of a GCC
3904    builtin and then its argument prototype would still apply.  */
3905 #ifdef __cplusplus
3906 extern "C"
3907 #endif
3908 char ext2fs_initialize ();
3909 int
3910 main ()
3911 {
3912 return ext2fs_initialize ();
3913   ;
3914   return 0;
3915 }
3916 _ACEOF
3917 rm -f conftest.$ac_objext conftest$ac_exeext
3918 if { (ac_try="$ac_link"
3919 case "(($ac_try" in
3920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921   *) ac_try_echo=$ac_try;;
3922 esac
3923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3924   (eval "$ac_link") 2>conftest.er1
3925   ac_status=$?
3926   grep -v '^ *+' conftest.er1 >conftest.err
3927   rm -f conftest.er1
3928   cat conftest.err >&5
3929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930   (exit $ac_status); } && {
3931          test -z "$ac_c_werror_flag" ||
3932          test ! -s conftest.err
3933        } && test -s conftest$ac_exeext &&
3934        $as_test_x conftest$ac_exeext; then
3935   ac_cv_lib_ext2fs_ext2fs_initialize=yes
3936 else
3937   echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3939
3940         ac_cv_lib_ext2fs_ext2fs_initialize=no
3941 fi
3942
3943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3944       conftest$ac_exeext conftest.$ac_ext
3945 LIBS=$ac_check_lib_save_LIBS
3946 fi
3947 { echo "$as_me:$LINENO: result: $ac_cv_lib_ext2fs_ext2fs_initialize" >&5
3948 echo "${ECHO_T}$ac_cv_lib_ext2fs_ext2fs_initialize" >&6; }
3949 if test $ac_cv_lib_ext2fs_ext2fs_initialize = yes; then
3950   EXT2LIBS="-lext2fs $EXT2LIBS"
3951 fi
3952
3953         if test "${ac_cv_lib_com_err_com_err}" != "yes" -o "${ac_cv_lib_ext2fs_ext2fs_initialize}" != "yes"; then
3954                 if test "x$enable_ext2direct" = "xyes"; then
3955                         { { echo "$as_me:$LINENO: error: Ext2 direct support required but libraries not found." >&5
3956 echo "$as_me: error: Ext2 direct support required but libraries not found." >&2;}
3957    { (exit 1); exit 1; }; }
3958                 else
3959                         { echo "$as_me:$LINENO: WARNING: Ext2 direct support won't be compiled. Libraries not found." >&5
3960 echo "$as_me: WARNING: Ext2 direct support won't be compiled. Libraries not found." >&2;}
3961                 fi
3962                 enable_ext2direct="no"
3963                 EXT2LIBS=""
3964         else
3965                 if test "x$ext2fshead" != "xyes"; then
3966                         if test "x$enable_ext2direct" = "xyes"; then
3967                                 { { echo "$as_me:$LINENO: error: Ext2 direct support required but header files not found." >&5
3968 echo "$as_me: error: Ext2 direct support required but header files not found." >&2;}
3969    { (exit 1); exit 1; }; }
3970                         else
3971                                 { echo "$as_me:$LINENO: WARNING: Ext2 direct support won't be compiled. Header files not found." >&5
3972 echo "$as_me: WARNING: Ext2 direct support won't be compiled. Header files not found." >&2;}
3973                         fi
3974                         enable_ext2direct="no"
3975                         EXT2LIBS=""
3976                 else
3977                         enable_ext2direct="yes"
3978                 fi
3979         fi
3980         if test "x$enable_ext2direct" = "xyes"; then
3981                 EXT2_DIRECT="-DEXT2_DIRECT"
3982                 COMPILE_OPTS="$COMPILE_OPTS EXT2_DIRECT"
3983                 
3984         fi
3985 fi
3986
3987
3988 #AC_ARG_WITH(dbus_include,
3989 #       [  --with-dbus_include=path        Path to directory with dbus include directory [default=/usr/include/dbus-1.0/]],
3990 #       DBUS_INCLUDE="$with_dbus_include",
3991 #       DBUS_INCLUDE="/usr/include/dbus-1.0/")
3992 #AC_ARG_WITH(dbus_arch_include,
3993 #       [  --with-dbus_arch_include=path   Path to directory with dbus arch-dependent include directory [default=/usr/lib/dbus-1.0/include/]],
3994 #       DBUS_ARCH_INCLUDE="$with_dbus_arch_include",
3995 #       DBUS_ARCH_INCLUDE="/usr/lib/dbus-1.0/include/")
3996
3997 # Check whether --enable-netlink was given.
3998 if test "${enable_netlink+set}" = set; then
3999   enableval=$enable_netlink; 
4000 else
4001   enable_netlink="no"
4002 fi
4003
4004 if test "x$enable_netlink" != "xno"; then
4005         
4006
4007 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4008         if test -n "$ac_tool_prefix"; then
4009   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4010 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4013 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4014   echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016   case $PKG_CONFIG in
4017   [\\/]* | ?:[\\/]*)
4018   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4019   ;;
4020   *)
4021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in $PATH
4023 do
4024   IFS=$as_save_IFS
4025   test -z "$as_dir" && as_dir=.
4026   for ac_exec_ext in '' $ac_executable_extensions; do
4027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4028     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4030     break 2
4031   fi
4032 done
4033 done
4034 IFS=$as_save_IFS
4035
4036   ;;
4037 esac
4038 fi
4039 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4040 if test -n "$PKG_CONFIG"; then
4041   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4042 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4043 else
4044   { echo "$as_me:$LINENO: result: no" >&5
4045 echo "${ECHO_T}no" >&6; }
4046 fi
4047
4048
4049 fi
4050 if test -z "$ac_cv_path_PKG_CONFIG"; then
4051   ac_pt_PKG_CONFIG=$PKG_CONFIG
4052   # Extract the first word of "pkg-config", so it can be a program name with args.
4053 set dummy pkg-config; ac_word=$2
4054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4056 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4057   echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059   case $ac_pt_PKG_CONFIG in
4060   [\\/]* | ?:[\\/]*)
4061   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4062   ;;
4063   *)
4064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 for as_dir in $PATH
4066 do
4067   IFS=$as_save_IFS
4068   test -z "$as_dir" && as_dir=.
4069   for ac_exec_ext in '' $ac_executable_extensions; do
4070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4071     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4073     break 2
4074   fi
4075 done
4076 done
4077 IFS=$as_save_IFS
4078
4079   ;;
4080 esac
4081 fi
4082 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4083 if test -n "$ac_pt_PKG_CONFIG"; then
4084   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4085 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4086 else
4087   { echo "$as_me:$LINENO: result: no" >&5
4088 echo "${ECHO_T}no" >&6; }
4089 fi
4090
4091   if test "x$ac_pt_PKG_CONFIG" = x; then
4092     PKG_CONFIG=""
4093   else
4094     case $cross_compiling:$ac_tool_warned in
4095 yes:)
4096 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4097 whose name does not start with the host triplet.  If you think this
4098 configuration is useful to you, please write to autoconf@gnu.org." >&5
4099 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4100 whose name does not start with the host triplet.  If you think this
4101 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4102 ac_tool_warned=yes ;;
4103 esac
4104     PKG_CONFIG=$ac_pt_PKG_CONFIG
4105   fi
4106 else
4107   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4108 fi
4109
4110 fi
4111 if test -n "$PKG_CONFIG"; then
4112         _pkg_min_version=0.9.0
4113         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4114 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4115         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4116                 { echo "$as_me:$LINENO: result: yes" >&5
4117 echo "${ECHO_T}yes" >&6; }
4118         else
4119                 { echo "$as_me:$LINENO: result: no" >&5
4120 echo "${ECHO_T}no" >&6; }
4121                 PKG_CONFIG=""
4122         fi
4123                 
4124 fi
4125
4126 pkg_failed=no
4127 { echo "$as_me:$LINENO: checking for DBUS" >&5
4128 echo $ECHO_N "checking for DBUS... $ECHO_C" >&6; }
4129
4130 if test -n "$PKG_CONFIG"; then
4131     if test -n "$DBUS_CFLAGS"; then
4132         pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
4133     else
4134         if test -n "$PKG_CONFIG" && \
4135     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1\"") >&5
4136   ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
4137   ac_status=$?
4138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139   (exit $ac_status); }; then
4140   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
4141 else
4142   pkg_failed=yes
4143 fi
4144     fi
4145 else
4146         pkg_failed=untried
4147 fi
4148 if test -n "$PKG_CONFIG"; then
4149     if test -n "$DBUS_LIBS"; then
4150         pkg_cv_DBUS_LIBS="$DBUS_LIBS"
4151     else
4152         if test -n "$PKG_CONFIG" && \
4153     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1\"") >&5
4154   ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
4155   ac_status=$?
4156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157   (exit $ac_status); }; then
4158   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
4159 else
4160   pkg_failed=yes
4161 fi
4162     fi
4163 else
4164         pkg_failed=untried
4165 fi
4166
4167
4168
4169 if test $pkg_failed = yes; then
4170         
4171 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4172         _pkg_short_errors_supported=yes
4173 else
4174         _pkg_short_errors_supported=no
4175 fi
4176         if test $_pkg_short_errors_supported = yes; then
4177                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-1"`
4178         else 
4179                 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1"`
4180         fi
4181         # Put the nasty error message in config.log where it belongs
4182         echo "$DBUS_PKG_ERRORS" >&5
4183
4184         { { echo "$as_me:$LINENO: error: Package requirements (dbus-1) were not met:
4185
4186 $DBUS_PKG_ERRORS
4187
4188 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4189 installed software in a non-standard prefix.
4190
4191 Alternatively, you may set the environment variables DBUS_CFLAGS
4192 and DBUS_LIBS to avoid the need to call pkg-config.
4193 See the pkg-config man page for more details.
4194 " >&5
4195 echo "$as_me: error: Package requirements (dbus-1) were not met:
4196
4197 $DBUS_PKG_ERRORS
4198
4199 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4200 installed software in a non-standard prefix.
4201
4202 Alternatively, you may set the environment variables DBUS_CFLAGS
4203 and DBUS_LIBS to avoid the need to call pkg-config.
4204 See the pkg-config man page for more details.
4205 " >&2;}
4206    { (exit 1); exit 1; }; }
4207 elif test $pkg_failed = untried; then
4208         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
4209 is in your PATH or set the PKG_CONFIG environment variable to the full
4210 path to pkg-config.
4211
4212 Alternatively, you may set the environment variables DBUS_CFLAGS
4213 and DBUS_LIBS to avoid the need to call pkg-config.
4214 See the pkg-config man page for more details.
4215
4216 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
4217 See \`config.log' for more details." >&5
4218 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
4219 is in your PATH or set the PKG_CONFIG environment variable to the full
4220 path to pkg-config.
4221
4222 Alternatively, you may set the environment variables DBUS_CFLAGS
4223 and DBUS_LIBS to avoid the need to call pkg-config.
4224 See the pkg-config man page for more details.
4225
4226 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
4227 See \`config.log' for more details." >&2;}
4228    { (exit 1); exit 1; }; }
4229 else
4230         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
4231         DBUS_LIBS=$pkg_cv_DBUS_LIBS
4232         { echo "$as_me:$LINENO: result: yes" >&5
4233 echo "${ECHO_T}yes" >&6; }
4234         :
4235 fi
4236         NETLINKLIBS="$DBUS_LIBS"
4237
4238         { echo "$as_me:$LINENO: checking for genl_register in -lnl" >&5
4239 echo $ECHO_N "checking for genl_register in -lnl... $ECHO_C" >&6; }
4240 if test "${ac_cv_lib_nl_genl_register+set}" = set; then
4241   echo $ECHO_N "(cached) $ECHO_C" >&6
4242 else
4243   ac_check_lib_save_LIBS=$LIBS
4244 LIBS="-lnl  $LIBS"
4245 cat >conftest.$ac_ext <<_ACEOF
4246 /* confdefs.h.  */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h.  */
4251
4252 /* Override any GCC internal prototype to avoid an error.
4253    Use char because int might match the return type of a GCC
4254    builtin and then its argument prototype would still apply.  */
4255 #ifdef __cplusplus
4256 extern "C"
4257 #endif
4258 char genl_register ();
4259 int
4260 main ()
4261 {
4262 return genl_register ();
4263   ;
4264   return 0;
4265 }
4266 _ACEOF
4267 rm -f conftest.$ac_objext conftest$ac_exeext
4268 if { (ac_try="$ac_link"
4269 case "(($ac_try" in
4270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271   *) ac_try_echo=$ac_try;;
4272 esac
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274   (eval "$ac_link") 2>conftest.er1
4275   ac_status=$?
4276   grep -v '^ *+' conftest.er1 >conftest.err
4277   rm -f conftest.er1
4278   cat conftest.err >&5
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); } && {
4281          test -z "$ac_c_werror_flag" ||
4282          test ! -s conftest.err
4283        } && test -s conftest$ac_exeext &&
4284        $as_test_x conftest$ac_exeext; then
4285   ac_cv_lib_nl_genl_register=yes
4286 else
4287   echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4289
4290         ac_cv_lib_nl_genl_register=no
4291 fi
4292
4293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4294       conftest$ac_exeext conftest.$ac_ext
4295 LIBS=$ac_check_lib_save_LIBS
4296 fi
4297 { echo "$as_me:$LINENO: result: $ac_cv_lib_nl_genl_register" >&5
4298 echo "${ECHO_T}$ac_cv_lib_nl_genl_register" >&6; }
4299 if test $ac_cv_lib_nl_genl_register = yes; then
4300   NETLINKLIBS="-lnl $NETLINKLIBS"
4301 fi
4302
4303         if test -z "$NETLINKLIBS" -o -z "$DBUS_LIBS"; then
4304                 if test "x$enable_netlink" = "xyes"; then
4305                         { { echo "$as_me:$LINENO: error: Required libraries for quota netlink daemon not found." >&5
4306 echo "$as_me: error: Required libraries for quota netlink daemon not found." >&2;}
4307    { (exit 1); exit 1; }; }
4308                 else
4309                         { echo "$as_me:$LINENO: WARNING: Quota netlink daemon won't be compiled. Required libraries not found." >&5
4310 echo "$as_me: WARNING: Quota netlink daemon won't be compiled. Required libraries not found." >&2;}
4311                 fi
4312                 enable_netlink="no"
4313                 NETLINKLIBS=""
4314         else
4315                 CPPFLAGS="$DBUS_CFLAGS $CPPFLAGS"
4316                 if test -z "$DBUS_LIBS"; then
4317                         if test "x$enable_netlink" = "xyes"; then
4318                                 { { echo "$as_me:$LINENO: error: Required headers for quota netlink daemon not found." >&5
4319 echo "$as_me: error: Required headers for quota netlink daemon not found." >&2;}
4320    { (exit 1); exit 1; }; }
4321                         else
4322                                 { echo "$as_me:$LINENO: WARNING: Quota netlink daemon won't be compiled. Required headers not found." >&5
4323 echo "$as_me: WARNING: Quota netlink daemon won't be compiled. Required headers not found." >&2;}
4324                         fi
4325                         NETLINKLIBS=""
4326                         enable_netlink="no"
4327                 else
4328                         QUOTA_NETLINK_PROG=quota_nld
4329                 fi
4330         fi
4331 fi
4332
4333
4334
4335 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
4336 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
4337 if test "${ac_cv_search_gethostbyname+set}" = set; then
4338   echo $ECHO_N "(cached) $ECHO_C" >&6
4339 else
4340   ac_func_search_save_LIBS=$LIBS
4341 cat >conftest.$ac_ext <<_ACEOF
4342 /* confdefs.h.  */
4343 _ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h.  */
4347
4348 /* Override any GCC internal prototype to avoid an error.
4349    Use char because int might match the return type of a GCC
4350    builtin and then its argument prototype would still apply.  */
4351 #ifdef __cplusplus
4352 extern "C"
4353 #endif
4354 char gethostbyname ();
4355 int
4356 main ()
4357 {
4358 return gethostbyname ();
4359   ;
4360   return 0;
4361 }
4362 _ACEOF
4363 for ac_lib in '' nsl; do
4364   if test -z "$ac_lib"; then
4365     ac_res="none required"
4366   else
4367     ac_res=-l$ac_lib
4368     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4369   fi
4370   rm -f conftest.$ac_objext conftest$ac_exeext
4371 if { (ac_try="$ac_link"
4372 case "(($ac_try" in
4373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374   *) ac_try_echo=$ac_try;;
4375 esac
4376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377   (eval "$ac_link") 2>conftest.er1
4378   ac_status=$?
4379   grep -v '^ *+' conftest.er1 >conftest.err
4380   rm -f conftest.er1
4381   cat conftest.err >&5
4382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383   (exit $ac_status); } && {
4384          test -z "$ac_c_werror_flag" ||
4385          test ! -s conftest.err
4386        } && test -s conftest$ac_exeext &&
4387        $as_test_x conftest$ac_exeext; then
4388   ac_cv_search_gethostbyname=$ac_res
4389 else
4390   echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4392
4393         
4394 fi
4395
4396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4397       conftest$ac_exeext 
4398   if test "${ac_cv_search_gethostbyname+set}" = set; then
4399   break
4400 fi
4401 done
4402 if test "${ac_cv_search_gethostbyname+set}" = set; then
4403   :
4404 else
4405   ac_cv_search_gethostbyname=no
4406 fi
4407 rm conftest.$ac_ext
4408 LIBS=$ac_func_search_save_LIBS
4409 fi
4410 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
4411 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
4412 ac_res=$ac_cv_search_gethostbyname
4413 if test "$ac_res" != no; then
4414   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4415   
4416 fi
4417
4418 { echo "$as_me:$LINENO: checking for host_access in -lwrap" >&5
4419 echo $ECHO_N "checking for host_access in -lwrap... $ECHO_C" >&6; }
4420 if test "${ac_cv_lib_wrap_main+set}" = set; then
4421   echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423   saved_LIBS="$LIBS"
4424         LIBS="$LIBS -lwrap"
4425         cat >conftest.$ac_ext <<_ACEOF
4426 /* confdefs.h.  */
4427 _ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h.  */
4431
4432         #include <stdio.h>
4433         #include <sys/types.h>
4434         #include <sys/socket.h>
4435         #include <netinet/in.h>
4436         #include <tcpd.h>
4437         struct request_info request;
4438         int deny_severity, allow_severity;
4439 int
4440 main ()
4441 {
4442 hosts_access(&request);
4443   ;
4444   return 0;
4445 }
4446 _ACEOF
4447 rm -f conftest.$ac_objext conftest$ac_exeext
4448 if { (ac_try="$ac_link"
4449 case "(($ac_try" in
4450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451   *) ac_try_echo=$ac_try;;
4452 esac
4453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454   (eval "$ac_link") 2>conftest.er1
4455   ac_status=$?
4456   grep -v '^ *+' conftest.er1 >conftest.err
4457   rm -f conftest.er1
4458   cat conftest.err >&5
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); } && {
4461          test -z "$ac_c_werror_flag" ||
4462          test ! -s conftest.err
4463        } && test -s conftest$ac_exeext &&
4464        $as_test_x conftest$ac_exeext; then
4465         ac_cv_lib_wrap_main=yes; LIBS="$saved_LIBS"; { echo "$as_me:$LINENO: result: yes" >&5
4466 echo "${ECHO_T}yes" >&6; }
4467 else
4468   echo "$as_me: failed program was:" >&5
4469 sed 's/^/| /' conftest.$ac_ext >&5
4470
4471         ac_cv_lib_wrap_main=no; LIBS="$saved_LIBS"; { echo "$as_me:$LINENO: result: no" >&5
4472 echo "${ECHO_T}no" >&6; }
4473 fi
4474
4475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4476       conftest$ac_exeext conftest.$ac_ext
4477         
4478 fi
4479
4480
4481 if test ${ac_cv_lib_wrap_main} = yes; then
4482         if test "${ac_cv_header_tcpd_h+set}" = set; then
4483   { echo "$as_me:$LINENO: checking for tcpd.h" >&5
4484 echo $ECHO_N "checking for tcpd.h... $ECHO_C" >&6; }
4485 if test "${ac_cv_header_tcpd_h+set}" = set; then
4486   echo $ECHO_N "(cached) $ECHO_C" >&6
4487 fi
4488 { echo "$as_me:$LINENO: result: $ac_cv_header_tcpd_h" >&5
4489 echo "${ECHO_T}$ac_cv_header_tcpd_h" >&6; }
4490 else
4491   # Is the header compilable?
4492 { echo "$as_me:$LINENO: checking tcpd.h usability" >&5
4493 echo $ECHO_N "checking tcpd.h usability... $ECHO_C" >&6; }
4494 cat >conftest.$ac_ext <<_ACEOF
4495 /* confdefs.h.  */
4496 _ACEOF
4497 cat confdefs.h >>conftest.$ac_ext
4498 cat >>conftest.$ac_ext <<_ACEOF
4499 /* end confdefs.h.  */
4500 $ac_includes_default
4501 @%:@include <tcpd.h>
4502 _ACEOF
4503 rm -f conftest.$ac_objext
4504 if { (ac_try="$ac_compile"
4505 case "(($ac_try" in
4506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507   *) ac_try_echo=$ac_try;;
4508 esac
4509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4510   (eval "$ac_compile") 2>conftest.er1
4511   ac_status=$?
4512   grep -v '^ *+' conftest.er1 >conftest.err
4513   rm -f conftest.er1
4514   cat conftest.err >&5
4515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516   (exit $ac_status); } && {
4517          test -z "$ac_c_werror_flag" ||
4518          test ! -s conftest.err
4519        } && test -s conftest.$ac_objext; then
4520   ac_header_compiler=yes
4521 else
4522   echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4524
4525         ac_header_compiler=no
4526 fi
4527
4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4530 echo "${ECHO_T}$ac_header_compiler" >&6; }
4531
4532 # Is the header present?
4533 { echo "$as_me:$LINENO: checking tcpd.h presence" >&5
4534 echo $ECHO_N "checking tcpd.h presence... $ECHO_C" >&6; }
4535 cat >conftest.$ac_ext <<_ACEOF
4536 /* confdefs.h.  */
4537 _ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h.  */
4541 @%:@include <tcpd.h>
4542 _ACEOF
4543 if { (ac_try="$ac_cpp conftest.$ac_ext"
4544 case "(($ac_try" in
4545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546   *) ac_try_echo=$ac_try;;
4547 esac
4548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4550   ac_status=$?
4551   grep -v '^ *+' conftest.er1 >conftest.err
4552   rm -f conftest.er1
4553   cat conftest.err >&5
4554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555   (exit $ac_status); } >/dev/null && {
4556          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4557          test ! -s conftest.err
4558        }; then
4559   ac_header_preproc=yes
4560 else
4561   echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4563
4564   ac_header_preproc=no
4565 fi
4566
4567 rm -f conftest.err conftest.$ac_ext
4568 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4569 echo "${ECHO_T}$ac_header_preproc" >&6; }
4570
4571 # So?  What about this header?
4572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4573   yes:no: )
4574     { echo "$as_me:$LINENO: WARNING: tcpd.h: accepted by the compiler, rejected by the preprocessor!" >&5
4575 echo "$as_me: WARNING: tcpd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4576     { echo "$as_me:$LINENO: WARNING: tcpd.h: proceeding with the compiler's result" >&5
4577 echo "$as_me: WARNING: tcpd.h: proceeding with the compiler's result" >&2;}
4578     ac_header_preproc=yes
4579     ;;
4580   no:yes:* )
4581     { echo "$as_me:$LINENO: WARNING: tcpd.h: present but cannot be compiled" >&5
4582 echo "$as_me: WARNING: tcpd.h: present but cannot be compiled" >&2;}
4583     { echo "$as_me:$LINENO: WARNING: tcpd.h:     check for missing prerequisite headers?" >&5
4584 echo "$as_me: WARNING: tcpd.h:     check for missing prerequisite headers?" >&2;}
4585     { echo "$as_me:$LINENO: WARNING: tcpd.h: see the Autoconf documentation" >&5
4586 echo "$as_me: WARNING: tcpd.h: see the Autoconf documentation" >&2;}
4587     { echo "$as_me:$LINENO: WARNING: tcpd.h:     section \"Present But Cannot Be Compiled\"" >&5
4588 echo "$as_me: WARNING: tcpd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4589     { echo "$as_me:$LINENO: WARNING: tcpd.h: proceeding with the preprocessor's result" >&5
4590 echo "$as_me: WARNING: tcpd.h: proceeding with the preprocessor's result" >&2;}
4591     { echo "$as_me:$LINENO: WARNING: tcpd.h: in the future, the compiler will take precedence" >&5
4592 echo "$as_me: WARNING: tcpd.h: in the future, the compiler will take precedence" >&2;}
4593     
4594     ;;
4595 esac
4596 { echo "$as_me:$LINENO: checking for tcpd.h" >&5
4597 echo $ECHO_N "checking for tcpd.h... $ECHO_C" >&6; }
4598 if test "${ac_cv_header_tcpd_h+set}" = set; then
4599   echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601   ac_cv_header_tcpd_h=$ac_header_preproc
4602 fi
4603 { echo "$as_me:$LINENO: result: $ac_cv_header_tcpd_h" >&5
4604 echo "${ECHO_T}$ac_cv_header_tcpd_h" >&6; }
4605
4606 fi
4607 if test $ac_cv_header_tcpd_h = yes; then
4608   :
4609 else
4610   
4611                 echo 'ERROR: could not find tcpd.h - missing TCP wrappers package'
4612                 exit 1
4613         
4614 fi
4615
4616
4617         LIBS="$LIBS -lwrap"
4618         HOSTS_ACCESS="-DHOSTS_ACCESS"
4619         COMPILE_OPTS="$COMPILE_OPTS HOST_ACCESS"
4620         
4621 fi
4622
4623 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4624 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4625 if test "${ac_cv_c_const+set}" = set; then
4626   echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628   cat >conftest.$ac_ext <<_ACEOF
4629 /* confdefs.h.  */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h.  */
4634
4635 int
4636 main ()
4637 {
4638 /* FIXME: Include the comments suggested by Paul. */
4639 #ifndef __cplusplus
4640   /* Ultrix mips cc rejects this.  */
4641   typedef int charset[2];
4642   const charset cs;
4643   /* SunOS 4.1.1 cc rejects this.  */
4644   char const *const *pcpcc;
4645   char **ppc;
4646   /* NEC SVR4.0.2 mips cc rejects this.  */
4647   struct point {int x, y;};
4648   static struct point const zero = {0,0};
4649   /* AIX XL C 1.02.0.0 rejects this.
4650      It does not let you subtract one const X* pointer from another in
4651      an arm of an if-expression whose if-part is not a constant
4652      expression */
4653   const char *g = "string";
4654   pcpcc = &g + (g ? g-g : 0);
4655   /* HPUX 7.0 cc rejects these. */
4656   ++pcpcc;
4657   ppc = (char**) pcpcc;
4658   pcpcc = (char const *const *) ppc;
4659   { /* SCO 3.2v4 cc rejects this.  */
4660     char *t;
4661     char const *s = 0 ? (char *) 0 : (char const *) 0;
4662
4663     *t++ = 0;
4664     if (s) return 0;
4665   }
4666   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4667     int x[] = {25, 17};
4668     const int *foo = &x[0];
4669     ++foo;
4670   }
4671   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4672     typedef const int *iptr;
4673     iptr p = 0;
4674     ++p;
4675   }
4676   { /* AIX XL C 1.02.0.0 rejects this saying
4677        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4678     struct s { int j; const int *ap[3]; };
4679     struct s *b; b->j = 5;
4680   }
4681   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4682     const int foo = 10;
4683     if (!foo) return 0;
4684   }
4685   return !cs[0] && !zero.x;
4686 #endif
4687
4688   ;
4689   return 0;
4690 }
4691 _ACEOF
4692 rm -f conftest.$ac_objext
4693 if { (ac_try="$ac_compile"
4694 case "(($ac_try" in
4695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4696   *) ac_try_echo=$ac_try;;
4697 esac
4698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4699   (eval "$ac_compile") 2>conftest.er1
4700   ac_status=$?
4701   grep -v '^ *+' conftest.er1 >conftest.err
4702   rm -f conftest.er1
4703   cat conftest.err >&5
4704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705   (exit $ac_status); } && {
4706          test -z "$ac_c_werror_flag" ||
4707          test ! -s conftest.err
4708        } && test -s conftest.$ac_objext; then
4709   ac_cv_c_const=yes
4710 else
4711   echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.$ac_ext >&5
4713
4714         ac_cv_c_const=no
4715 fi
4716
4717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718 fi
4719 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4720 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4721 if test $ac_cv_c_const = no; then
4722   
4723 cat >>confdefs.h <<\_ACEOF
4724 @%:@define const 
4725 _ACEOF
4726
4727 fi
4728
4729 { echo "$as_me:$LINENO: checking for inline" >&5
4730 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4731 if test "${ac_cv_c_inline+set}" = set; then
4732   echo $ECHO_N "(cached) $ECHO_C" >&6
4733 else
4734   ac_cv_c_inline=no
4735 for ac_kw in inline __inline__ __inline; do
4736   cat >conftest.$ac_ext <<_ACEOF
4737 /* confdefs.h.  */
4738 _ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h.  */
4742 #ifndef __cplusplus
4743 typedef int foo_t;
4744 static $ac_kw foo_t static_foo () {return 0; }
4745 $ac_kw foo_t foo () {return 0; }
4746 #endif
4747
4748 _ACEOF
4749 rm -f conftest.$ac_objext
4750 if { (ac_try="$ac_compile"
4751 case "(($ac_try" in
4752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753   *) ac_try_echo=$ac_try;;
4754 esac
4755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4756   (eval "$ac_compile") 2>conftest.er1
4757   ac_status=$?
4758   grep -v '^ *+' conftest.er1 >conftest.err
4759   rm -f conftest.er1
4760   cat conftest.err >&5
4761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762   (exit $ac_status); } && {
4763          test -z "$ac_c_werror_flag" ||
4764          test ! -s conftest.err
4765        } && test -s conftest.$ac_objext; then
4766   ac_cv_c_inline=$ac_kw
4767 else
4768   echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.$ac_ext >&5
4770
4771         
4772 fi
4773
4774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775   test "$ac_cv_c_inline" != no && break
4776 done
4777
4778 fi
4779 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4780 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4781
4782
4783 case $ac_cv_c_inline in
4784   inline | yes) ;;
4785   *)
4786     case $ac_cv_c_inline in
4787       no) ac_val=;;
4788       *) ac_val=$ac_cv_c_inline;;
4789     esac
4790     cat >>confdefs.h <<_ACEOF
4791 #ifndef __cplusplus
4792 #define inline $ac_val
4793 #endif
4794 _ACEOF
4795     ;;
4796 esac
4797
4798
4799 # Check whether --enable-altformat was given.
4800 if test "${enable_altformat+set}" = set; then
4801   enableval=$enable_altformat; 
4802 else
4803   enable_altformat="yes"
4804 fi
4805
4806 # Check whether --enable-rpc was given.
4807 if test "${enable_rpc+set}" = set; then
4808   enableval=$enable_rpc; 
4809 else
4810   enable_rpc="yes"
4811 fi
4812
4813 # Check whether --enable-rpcsetquota was given.
4814 if test "${enable_rpcsetquota+set}" = set; then
4815   enableval=$enable_rpcsetquota; 
4816 else
4817   enable_rpcsetquota="no"
4818 fi
4819
4820 # Check whether --enable-xfs_roothack was given.
4821 if test "${enable_xfs_roothack+set}" = set; then
4822   enableval=$enable_xfs_roothack; 
4823 else
4824   enable_xfs_roothack="no"
4825 fi
4826
4827 # Check whether --enable-bsd_behaviour was given.
4828 if test "${enable_bsd_behaviour+set}" = set; then
4829   enableval=$enable_bsd_behaviour; 
4830 else
4831   enable_bsd_behaviour="yes"
4832 fi
4833
4834 # Check whether --enable-libefence was given.
4835 if test "${enable_libefence+set}" = set; then
4836   enableval=$enable_libefence; 
4837 else
4838   enable_libefence="no"
4839 fi
4840
4841
4842 # Check whether --enable-nls was given.
4843 if test "${enable_nls+set}" = set; then
4844   enableval=$enable_nls; 
4845 else
4846   enable_nls="yes"
4847 fi
4848
4849 # Check whether --enable-rootsbin was given.
4850 if test "${enable_rootsbin+set}" = set; then
4851   enableval=$enable_rootsbin; 
4852 else
4853   enable_rootsbin="no"
4854 fi
4855
4856
4857 if test "$enable_altformat" = "yes" ; then
4858         CFLAGS="-DALT_FORMAT $CFLAGS"
4859         COMPILE_OPTS="$COMPILE_OPTS ALT_FORMAT"
4860 fi
4861 if test "$enable_rpc" = "yes" ; then
4862         CFLAGS="-DRPC $CFLAGS"
4863         COMPILE_OPTS="$COMPILE_OPTS RPC"
4864 fi
4865 if test "$enable_rpcsetquota" = "yes" ; then
4866         CFLAGS="-DRPC_SETQUOTA $CFLAGS"
4867         COMPILE_OPTS="$COMPILE_OPTS RPC_SETQUOTA"
4868 fi
4869 if test "$enable_xfs_roothack" = "yes" ; then
4870         CFLAGS="-DXFS_ROOTHACK $CFLAGS"
4871         COMPILE_OPTS="$COMPILE_OPTS XFS_ROOTHACK"
4872 fi
4873 if test "$enable_bsd_behaviour" = "yes" ; then
4874         CFLAGS="-DBSD_BEHAVIOUR $CFLAGS"
4875         COMPILE_OPTS="$COMPILE_OPTS BSD_BEHAVIOUR"
4876 fi
4877 if test "$enable_libefence" = "yes" ; then
4878         LIBMALLOC="/usr/lib/libefence.a"
4879 fi
4880 if test "$enable_nls" = "yes" ; then
4881         CFLAGS="-D__GETTEXT__ $CFLAGS"
4882         INSTMO="inst_mo"
4883 fi
4884 if test "$enable_rootsbin" = "yes" ; then
4885         ROOTSBIN="/sbin"
4886 else
4887         ROOTSBIN='$(prefix)/sbin'
4888 fi
4889
4890
4891
4892
4893
4894
4895 ac_config_files="$ac_config_files Makefile"
4896
4897 cat >confcache <<\_ACEOF
4898 # This file is a shell script that caches the results of configure
4899 # tests run on this system so they can be shared between configure
4900 # scripts and configure runs, see configure's option --config-cache.
4901 # It is not useful on other systems.  If it contains results you don't
4902 # want to keep, you may remove or edit it.
4903 #
4904 # config.status only pays attention to the cache file if you give it
4905 # the --recheck option to rerun configure.
4906 #
4907 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4908 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4909 # following values.
4910
4911 _ACEOF
4912
4913 # The following way of writing the cache mishandles newlines in values,
4914 # but we know of no workaround that is simple, portable, and efficient.
4915 # So, we kill variables containing newlines.
4916 # Ultrix sh set writes to stderr and can't be redirected directly,
4917 # and sets the high bit in the cache file unless we assign to the vars.
4918 (
4919   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4920     eval ac_val=\$$ac_var
4921     case $ac_val in #(
4922     *${as_nl}*)
4923       case $ac_var in #(
4924       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
4925 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
4926       esac
4927       case $ac_var in #(
4928       _ | IFS | as_nl) ;; #(
4929       *) $as_unset $ac_var ;;
4930       esac ;;
4931     esac
4932   done
4933
4934   (set) 2>&1 |
4935     case $as_nl`(ac_space=' '; set) 2>&1` in #(
4936     *${as_nl}ac_space=\ *)
4937       # `set' does not quote correctly, so add quotes (double-quote
4938       # substitution turns \\\\ into \\, and sed turns \\ into \).
4939       sed -n \
4940         "s/'/'\\\\''/g;
4941           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4942       ;; #(
4943     *)
4944       # `set' quotes correctly as required by POSIX, so do not add quotes.
4945       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4946       ;;
4947     esac |
4948     sort
4949 ) |
4950   sed '
4951      /^ac_cv_env_/b end
4952      t clear
4953      :clear
4954      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4955      t end
4956      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4957      :end' >>confcache
4958 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4959   if test -w "$cache_file"; then
4960     test "x$cache_file" != "x/dev/null" &&
4961       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
4962 echo "$as_me: updating cache $cache_file" >&6;}
4963     cat confcache >$cache_file
4964   else
4965     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4966 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4967   fi
4968 fi
4969 rm -f confcache
4970
4971 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4972 # Let make expand exec_prefix.
4973 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4974
4975 # Transform confdefs.h into DEFS.
4976 # Protect against shell expansion while executing Makefile rules.
4977 # Protect against Makefile macro expansion.
4978 #
4979 # If the first sed substitution is executed (which looks for macros that
4980 # take arguments), then branch to the quote section.  Otherwise,
4981 # look for a macro that doesn't take arguments.
4982 ac_script='
4983 t clear
4984 :clear
4985 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
4986 t quote
4987 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
4988 t quote
4989 b any
4990 :quote
4991 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4992 s/\[/\\&/g
4993 s/\]/\\&/g
4994 s/\$/$$/g
4995 H
4996 :any
4997 ${
4998         g
4999         s/^\n//
5000         s/\n/ /g
5001         p
5002 }
5003 '
5004 DEFS=`sed -n "$ac_script" confdefs.h`
5005
5006
5007 ac_libobjs=
5008 ac_ltlibobjs=
5009 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
5010   # 1. Remove the extension, and $U if already installed.
5011   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5012   ac_i=`echo "$ac_i" | sed "$ac_script"`
5013   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5014   #    will be set to the directory where LIBOBJS objects are built.
5015   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5016   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5017 done
5018 LIB@&t@OBJS=$ac_libobjs
5019
5020 LTLIBOBJS=$ac_ltlibobjs
5021
5022
5023
5024 : ${CONFIG_STATUS=./config.status}
5025 ac_clean_files_save=$ac_clean_files
5026 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5027 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5028 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5029 cat >$CONFIG_STATUS <<_ACEOF
5030 #! $SHELL
5031 # Generated by $as_me.
5032 # Run this file to recreate the current configuration.
5033 # Compiler output produced by configure, useful for debugging
5034 # configure, is in config.log if it exists.
5035
5036 debug=false
5037 ac_cs_recheck=false
5038 ac_cs_silent=false
5039 SHELL=\${CONFIG_SHELL-$SHELL}
5040 _ACEOF
5041
5042 cat >>$CONFIG_STATUS <<\_ACEOF
5043 ## --------------------- ##
5044 ## M4sh Initialization.  ##
5045 ## --------------------- ##
5046
5047 # Be more Bourne compatible
5048 DUALCASE=1; export DUALCASE # for MKS sh
5049 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5050   emulate sh
5051   NULLCMD=:
5052   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5053   # is contrary to our usage.  Disable this feature.
5054   alias -g '${1+"$@"}'='"$@"'
5055   setopt NO_GLOB_SUBST
5056 else
5057   case `(set -o) 2>/dev/null` in
5058   *posix*) set -o posix ;;
5059 esac
5060
5061 fi
5062
5063
5064
5065
5066 # PATH needs CR
5067 # Avoid depending upon Character Ranges.
5068 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5069 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5070 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5071 as_cr_digits='0123456789'
5072 as_cr_alnum=$as_cr_Letters$as_cr_digits
5073
5074 # The user is always right.
5075 if test "${PATH_SEPARATOR+set}" != set; then
5076   echo "#! /bin/sh" >conf$$.sh
5077   echo  "exit 0"   >>conf$$.sh
5078   chmod +x conf$$.sh
5079   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5080     PATH_SEPARATOR=';'
5081   else
5082     PATH_SEPARATOR=:
5083   fi
5084   rm -f conf$$.sh
5085 fi
5086
5087 # Support unset when possible.
5088 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5089   as_unset=unset
5090 else
5091   as_unset=false
5092 fi
5093
5094
5095 # IFS
5096 # We need space, tab and new line, in precisely that order.  Quoting is
5097 # there to prevent editors from complaining about space-tab.
5098 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5099 # splitting by setting IFS to empty value.)
5100 as_nl='
5101 '
5102 IFS=" ""        $as_nl"
5103
5104 # Find who we are.  Look in the path if we contain no directory separator.
5105 case $0 in
5106   *[\\/]* ) as_myself=$0 ;;
5107   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH
5109 do
5110   IFS=$as_save_IFS
5111   test -z "$as_dir" && as_dir=.
5112   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5113 done
5114 IFS=$as_save_IFS
5115
5116      ;;
5117 esac
5118 # We did not find ourselves, most probably we were run as `sh COMMAND'
5119 # in which case we are not to be found in the path.
5120 if test "x$as_myself" = x; then
5121   as_myself=$0
5122 fi
5123 if test ! -f "$as_myself"; then
5124   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5125   { (exit 1); exit 1; }
5126 fi
5127
5128 # Work around bugs in pre-3.0 UWIN ksh.
5129 for as_var in ENV MAIL MAILPATH
5130 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5131 done
5132 PS1='$ '
5133 PS2='> '
5134 PS4='+ '
5135
5136 # NLS nuisances.
5137 for as_var in \
5138   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5139   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5140   LC_TELEPHONE LC_TIME
5141 do
5142   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5143     eval $as_var=C; export $as_var
5144   else
5145     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5146   fi
5147 done
5148
5149 # Required to use basename.
5150 if expr a : '\(a\)' >/dev/null 2>&1 &&
5151    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5152   as_expr=expr
5153 else
5154   as_expr=false
5155 fi
5156
5157 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5158   as_basename=basename
5159 else
5160   as_basename=false
5161 fi
5162
5163
5164 # Name of the executable.
5165 as_me=`$as_basename -- "$0" ||
5166 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5167          X"$0" : 'X\(//\)$' \| \
5168          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5169 echo X/"$0" |
5170     sed '/^.*\/\([^/][^/]*\)\/*$/{
5171             s//\1/
5172             q
5173           }
5174           /^X\/\(\/\/\)$/{
5175             s//\1/
5176             q
5177           }
5178           /^X\/\(\/\).*/{
5179             s//\1/
5180             q
5181           }
5182           s/.*/./; q'`
5183
5184 # CDPATH.
5185 $as_unset CDPATH
5186
5187
5188
5189   as_lineno_1=$LINENO
5190   as_lineno_2=$LINENO
5191   test "x$as_lineno_1" != "x$as_lineno_2" &&
5192   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5193
5194   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5195   # uniformly replaced by the line number.  The first 'sed' inserts a
5196   # line-number line after each line using $LINENO; the second 'sed'
5197   # does the real work.  The second script uses 'N' to pair each
5198   # line-number line with the line containing $LINENO, and appends
5199   # trailing '-' during substitution so that $LINENO is not a special
5200   # case at line end.
5201   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5202   # scripts with optimization help from Paolo Bonzini.  Blame Lee
5203   # E. McMahon (1931-1989) for sed's syntax.  :-)
5204   sed -n '
5205     p
5206     /[$]LINENO/=
5207   ' <$as_myself |
5208     sed '
5209       s/[$]LINENO.*/&-/
5210       t lineno
5211       b
5212       :lineno
5213       N
5214       :loop
5215       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5216       t loop
5217       s/-\n.*//
5218     ' >$as_me.lineno &&
5219   chmod +x "$as_me.lineno" ||
5220     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5221    { (exit 1); exit 1; }; }
5222
5223   # Don't try to exec as it changes $[0], causing all sort of problems
5224   # (the dirname of $[0] is not the place where we might find the
5225   # original and so on.  Autoconf is especially sensitive to this).
5226   . "./$as_me.lineno"
5227   # Exit status is that of the last command.
5228   exit
5229 }
5230
5231
5232 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5233   as_dirname=dirname
5234 else
5235   as_dirname=false
5236 fi
5237
5238 ECHO_C= ECHO_N= ECHO_T=
5239 case `echo -n x` in
5240 -n*)
5241   case `echo 'x\c'` in
5242   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5243   *)   ECHO_C='\c';;
5244   esac;;
5245 *)
5246   ECHO_N='-n';;
5247 esac
5248
5249 if expr a : '\(a\)' >/dev/null 2>&1 &&
5250    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5251   as_expr=expr
5252 else
5253   as_expr=false
5254 fi
5255
5256 rm -f conf$$ conf$$.exe conf$$.file
5257 if test -d conf$$.dir; then
5258   rm -f conf$$.dir/conf$$.file
5259 else
5260   rm -f conf$$.dir
5261   mkdir conf$$.dir
5262 fi
5263 echo >conf$$.file
5264 if ln -s conf$$.file conf$$ 2>/dev/null; then
5265   as_ln_s='ln -s'
5266   # ... but there are two gotchas:
5267   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5268   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5269   # In both cases, we have to default to `cp -p'.
5270   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5271     as_ln_s='cp -p'
5272 elif ln conf$$.file conf$$ 2>/dev/null; then
5273   as_ln_s=ln
5274 else
5275   as_ln_s='cp -p'
5276 fi
5277 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5278 rmdir conf$$.dir 2>/dev/null
5279
5280 if mkdir -p . 2>/dev/null; then
5281   as_mkdir_p=:
5282 else
5283   test -d ./-p && rmdir ./-p
5284   as_mkdir_p=false
5285 fi
5286
5287 if test -x / >/dev/null 2>&1; then
5288   as_test_x='test -x'
5289 else
5290   if ls -dL / >/dev/null 2>&1; then
5291     as_ls_L_option=L
5292   else
5293     as_ls_L_option=
5294   fi
5295   as_test_x='
5296     eval sh -c '\''
5297       if test -d "$1"; then
5298         test -d "$1/.";
5299       else
5300         case $1 in
5301         -*)set "./$1";;
5302         esac;
5303         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5304         ???[sx]*):;;*)false;;esac;fi
5305     '\'' sh
5306   '
5307 fi
5308 as_executable_p=$as_test_x
5309
5310 # Sed expression to map a string onto a valid CPP name.
5311 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5312
5313 # Sed expression to map a string onto a valid variable name.
5314 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5315
5316
5317 exec 6>&1
5318
5319 # Save the log message, to keep $[0] and so on meaningful, and to
5320 # report actual input values of CONFIG_FILES etc. instead of their
5321 # values after options handling.
5322 ac_log="
5323 This file was extended by $as_me, which was
5324 generated by GNU Autoconf 2.61.  Invocation command line was
5325
5326   CONFIG_FILES    = $CONFIG_FILES
5327   CONFIG_HEADERS  = $CONFIG_HEADERS
5328   CONFIG_LINKS    = $CONFIG_LINKS
5329   CONFIG_COMMANDS = $CONFIG_COMMANDS
5330   $ $0 $@
5331
5332 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5333 "
5334
5335 _ACEOF
5336
5337 cat >>$CONFIG_STATUS <<_ACEOF
5338 # Files that config.status was made for.
5339 config_files="$ac_config_files"
5340
5341 _ACEOF
5342
5343 cat >>$CONFIG_STATUS <<\_ACEOF
5344 ac_cs_usage="\
5345 \`$as_me' instantiates files from templates according to the
5346 current configuration.
5347
5348 Usage: $0 [OPTIONS] [FILE]...
5349
5350   -h, --help       print this help, then exit
5351   -V, --version    print version number and configuration settings, then exit
5352   -q, --quiet      do not print progress messages
5353   -d, --debug      don't remove temporary files
5354       --recheck    update $as_me by reconfiguring in the same conditions
5355   --file=FILE[:TEMPLATE]
5356                    instantiate the configuration file FILE
5357
5358 Configuration files:
5359 $config_files
5360
5361 Report bugs to <bug-autoconf@gnu.org>."
5362
5363 _ACEOF
5364 cat >>$CONFIG_STATUS <<_ACEOF
5365 ac_cs_version="\\
5366 config.status
5367 configured by $0, generated by GNU Autoconf 2.61,
5368   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5369
5370 Copyright (C) 2006 Free Software Foundation, Inc.
5371 This config.status script is free software; the Free Software Foundation
5372 gives unlimited permission to copy, distribute and modify it."
5373
5374 ac_pwd='$ac_pwd'
5375 srcdir='$srcdir'
5376 INSTALL='$INSTALL'
5377 _ACEOF
5378
5379 cat >>$CONFIG_STATUS <<\_ACEOF
5380 # If no file are specified by the user, then we need to provide default
5381 # value.  By we need to know if files were specified by the user.
5382 ac_need_defaults=:
5383 while test $# != 0
5384 do
5385   case $1 in
5386   --*=*)
5387     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5388     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5389     ac_shift=:
5390     ;;
5391   *)
5392     ac_option=$1
5393     ac_optarg=$2
5394     ac_shift=shift
5395     ;;
5396   esac
5397
5398   case $ac_option in
5399   # Handling of the options.
5400   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5401     ac_cs_recheck=: ;;
5402   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5403     echo "$ac_cs_version"; exit ;;
5404   --debug | --debu | --deb | --de | --d | -d )
5405     debug=: ;;
5406   --file | --fil | --fi | --f )
5407     $ac_shift
5408     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5409     ac_need_defaults=false;;
5410   --he | --h |  --help | --hel | -h )
5411     echo "$ac_cs_usage"; exit ;;
5412   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5413   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5414     ac_cs_silent=: ;;
5415
5416   # This is an error.
5417   -*) { echo "$as_me: error: unrecognized option: $1
5418 Try \`$0 --help' for more information." >&2
5419    { (exit 1); exit 1; }; } ;;
5420
5421   *) ac_config_targets="$ac_config_targets $1"
5422      ac_need_defaults=false ;;
5423
5424   esac
5425   shift
5426 done
5427
5428 ac_configure_extra_args=
5429
5430 if $ac_cs_silent; then
5431   exec 6>/dev/null
5432   ac_configure_extra_args="$ac_configure_extra_args --silent"
5433 fi
5434
5435 _ACEOF
5436 cat >>$CONFIG_STATUS <<_ACEOF
5437 if \$ac_cs_recheck; then
5438   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5439   CONFIG_SHELL=$SHELL
5440   export CONFIG_SHELL
5441   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5442 fi
5443
5444 _ACEOF
5445 cat >>$CONFIG_STATUS <<\_ACEOF
5446 exec 5>>config.log
5447 {
5448   echo
5449   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
5450 @%:@@%:@ Running $as_me. @%:@@%:@
5451 _ASBOX
5452   echo "$ac_log"
5453 } >&5
5454
5455 _ACEOF
5456 cat >>$CONFIG_STATUS <<_ACEOF
5457 _ACEOF
5458
5459 cat >>$CONFIG_STATUS <<\_ACEOF
5460
5461 # Handling of arguments.
5462 for ac_config_target in $ac_config_targets
5463 do
5464   case $ac_config_target in
5465     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5466
5467   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5468 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5469    { (exit 1); exit 1; }; };;
5470   esac
5471 done
5472
5473
5474 # If the user did not use the arguments to specify the items to instantiate,
5475 # then the envvar interface is used.  Set only those that are not.
5476 # We use the long form for the default assignment because of an extremely
5477 # bizarre bug on SunOS 4.1.3.
5478 if $ac_need_defaults; then
5479   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5480 fi
5481
5482 # Have a temporary directory for convenience.  Make it in the build tree
5483 # simply because there is no reason against having it here, and in addition,
5484 # creating and moving files from /tmp can sometimes cause problems.
5485 # Hook for its removal unless debugging.
5486 # Note that there is a small window in which the directory will not be cleaned:
5487 # after its creation but before its name has been assigned to `$tmp'.
5488 $debug ||
5489 {
5490   tmp=
5491   trap 'exit_status=$?
5492   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5493 ' 0
5494   trap '{ (exit 1); exit 1; }' 1 2 13 15
5495 }
5496 # Create a (secure) tmp directory for tmp files.
5497
5498 {
5499   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5500   test -n "$tmp" && test -d "$tmp"
5501 }  ||
5502 {
5503   tmp=./conf$$-$RANDOM
5504   (umask 077 && mkdir "$tmp")
5505 } ||
5506 {
5507    echo "$me: cannot create a temporary directory in ." >&2
5508    { (exit 1); exit 1; }
5509 }
5510
5511 #
5512 # Set up the sed scripts for CONFIG_FILES section.
5513 #
5514
5515 # No need to generate the scripts if there are no CONFIG_FILES.
5516 # This happens for instance when ./config.status config.h
5517 if test -n "$CONFIG_FILES"; then
5518
5519 _ACEOF
5520
5521
5522
5523 ac_delim='%!_!# '
5524 for ac_last_try in false false false false false :; do
5525   cat >conf$$subs.sed <<_ACEOF
5526 SHELL!$SHELL$ac_delim
5527 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
5528 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
5529 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
5530 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
5531 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
5532 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
5533 exec_prefix!$exec_prefix$ac_delim
5534 prefix!$prefix$ac_delim
5535 program_transform_name!$program_transform_name$ac_delim
5536 bindir!$bindir$ac_delim
5537 sbindir!$sbindir$ac_delim
5538 libexecdir!$libexecdir$ac_delim
5539 datarootdir!$datarootdir$ac_delim
5540 datadir!$datadir$ac_delim
5541 sysconfdir!$sysconfdir$ac_delim
5542 sharedstatedir!$sharedstatedir$ac_delim
5543 localstatedir!$localstatedir$ac_delim
5544 includedir!$includedir$ac_delim
5545 oldincludedir!$oldincludedir$ac_delim
5546 docdir!$docdir$ac_delim
5547 infodir!$infodir$ac_delim
5548 htmldir!$htmldir$ac_delim
5549 dvidir!$dvidir$ac_delim
5550 pdfdir!$pdfdir$ac_delim
5551 psdir!$psdir$ac_delim
5552 libdir!$libdir$ac_delim
5553 localedir!$localedir$ac_delim
5554 mandir!$mandir$ac_delim
5555 DEFS!$DEFS$ac_delim
5556 ECHO_C!$ECHO_C$ac_delim
5557 ECHO_N!$ECHO_N$ac_delim
5558 ECHO_T!$ECHO_T$ac_delim
5559 LIBS!$LIBS$ac_delim
5560 build_alias!$build_alias$ac_delim
5561 host_alias!$host_alias$ac_delim
5562 target_alias!$target_alias$ac_delim
5563 CC!$CC$ac_delim
5564 CFLAGS!$CFLAGS$ac_delim
5565 LDFLAGS!$LDFLAGS$ac_delim
5566 CPPFLAGS!$CPPFLAGS$ac_delim
5567 ac_ct_CC!$ac_ct_CC$ac_delim
5568 EXEEXT!$EXEEXT$ac_delim
5569 OBJEXT!$OBJEXT$ac_delim
5570 CPP!$CPP$ac_delim
5571 GREP!$GREP$ac_delim
5572 EGREP!$EGREP$ac_delim
5573 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
5574 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
5575 INSTALL_DATA!$INSTALL_DATA$ac_delim
5576 LDAPLIBS!$LDAPLIBS$ac_delim
5577 EXT2_DIRECT!$EXT2_DIRECT$ac_delim
5578 EXT2LIBS!$EXT2LIBS$ac_delim
5579 PKG_CONFIG!$PKG_CONFIG$ac_delim
5580 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
5581 DBUS_LIBS!$DBUS_LIBS$ac_delim
5582 QUOTA_NETLINK_PROG!$QUOTA_NETLINK_PROG$ac_delim
5583 NETLINKLIBS!$NETLINKLIBS$ac_delim
5584 HOSTS_ACCESS!$HOSTS_ACCESS$ac_delim
5585 COMPILE_OPTS!$COMPILE_OPTS$ac_delim
5586 LIBMALLOC!$LIBMALLOC$ac_delim
5587 INSTMO!$INSTMO$ac_delim
5588 ROOTSBIN!$ROOTSBIN$ac_delim
5589 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
5590 LTLIBOBJS!$LTLIBOBJS$ac_delim
5591 _ACEOF
5592
5593   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 65; then
5594     break
5595   elif $ac_last_try; then
5596     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5597 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5598    { (exit 1); exit 1; }; }
5599   else
5600     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5601   fi
5602 done
5603
5604 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5605 if test -n "$ac_eof"; then
5606   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5607   ac_eof=`expr $ac_eof + 1`
5608 fi
5609
5610 cat >>$CONFIG_STATUS <<_ACEOF
5611 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
5612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
5613 _ACEOF
5614 sed '
5615 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5616 s/^/s,@/; s/!/@,|#_!!_#|/
5617 :n
5618 t n
5619 s/'"$ac_delim"'$/,g/; t
5620 s/$/\\/; p
5621 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5622 ' >>$CONFIG_STATUS <conf$$subs.sed
5623 rm -f conf$$subs.sed
5624 cat >>$CONFIG_STATUS <<_ACEOF
5625 :end
5626 s/|#_!!_#|//g
5627 CEOF$ac_eof
5628 _ACEOF
5629
5630
5631 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5632 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5633 # trailing colons and then remove the whole line if VPATH becomes empty
5634 # (actually we leave an empty line to preserve line numbers).
5635 if test "x$srcdir" = x.; then
5636   ac_vpsub='/^[  ]*VPATH[        ]*=/{
5637 s/:*\$(srcdir):*/:/
5638 s/:*\${srcdir}:*/:/
5639 s/:*@srcdir@:*/:/
5640 s/^\([^=]*=[     ]*\):*/\1/
5641 s/:*$//
5642 s/^[^=]*=[       ]*$//
5643 }'
5644 fi
5645
5646 cat >>$CONFIG_STATUS <<\_ACEOF
5647 fi # test -n "$CONFIG_FILES"
5648
5649
5650 for ac_tag in  :F $CONFIG_FILES      
5651 do
5652   case $ac_tag in
5653   :[FHLC]) ac_mode=$ac_tag; continue;;
5654   esac
5655   case $ac_mode$ac_tag in
5656   :[FHL]*:*);;
5657   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
5658 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
5659    { (exit 1); exit 1; }; };;
5660   :[FH]-) ac_tag=-:-;;
5661   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5662   esac
5663   ac_save_IFS=$IFS
5664   IFS=:
5665   set x $ac_tag
5666   IFS=$ac_save_IFS
5667   shift
5668   ac_file=$1
5669   shift
5670
5671   case $ac_mode in
5672   :L) ac_source=$1;;
5673   :[FH])
5674     ac_file_inputs=
5675     for ac_f
5676     do
5677       case $ac_f in
5678       -) ac_f="$tmp/stdin";;
5679       *) # Look for the file first in the build tree, then in the source tree
5680          # (if the path is not absolute).  The absolute path cannot be DOS-style,
5681          # because $ac_f cannot contain `:'.
5682          test -f "$ac_f" ||
5683            case $ac_f in
5684            [\\/$]*) false;;
5685            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5686            esac ||
5687            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
5688 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5689    { (exit 1); exit 1; }; };;
5690       esac
5691       ac_file_inputs="$ac_file_inputs $ac_f"
5692     done
5693
5694     # Let's still pretend it is `configure' which instantiates (i.e., don't
5695     # use $as_me), people would be surprised to read:
5696     #    /* config.h.  Generated by config.status.  */
5697     configure_input="Generated from "`IFS=:
5698           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
5699     if test x"$ac_file" != x-; then
5700       configure_input="$ac_file.  $configure_input"
5701       { echo "$as_me:$LINENO: creating $ac_file" >&5
5702 echo "$as_me: creating $ac_file" >&6;}
5703     fi
5704
5705     case $ac_tag in
5706     *:-:* | *:-) cat >"$tmp/stdin";;
5707     esac
5708     ;;
5709   esac
5710
5711   ac_dir=`$as_dirname -- "$ac_file" ||
5712 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5713          X"$ac_file" : 'X\(//\)[^/]' \| \
5714          X"$ac_file" : 'X\(//\)$' \| \
5715          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5716 echo X"$ac_file" |
5717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5718             s//\1/
5719             q
5720           }
5721           /^X\(\/\/\)[^/].*/{
5722             s//\1/
5723             q
5724           }
5725           /^X\(\/\/\)$/{
5726             s//\1/
5727             q
5728           }
5729           /^X\(\/\).*/{
5730             s//\1/
5731             q
5732           }
5733           s/.*/./; q'`
5734   { as_dir="$ac_dir"
5735   case $as_dir in #(
5736   -*) as_dir=./$as_dir;;
5737   esac
5738   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5739     as_dirs=
5740     while :; do
5741       case $as_dir in #(
5742       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5743       *) as_qdir=$as_dir;;
5744       esac
5745       as_dirs="'$as_qdir' $as_dirs"
5746       as_dir=`$as_dirname -- "$as_dir" ||
5747 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5748          X"$as_dir" : 'X\(//\)[^/]' \| \
5749          X"$as_dir" : 'X\(//\)$' \| \
5750          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5751 echo X"$as_dir" |
5752     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5753             s//\1/
5754             q
5755           }
5756           /^X\(\/\/\)[^/].*/{
5757             s//\1/
5758             q
5759           }
5760           /^X\(\/\/\)$/{
5761             s//\1/
5762             q
5763           }
5764           /^X\(\/\).*/{
5765             s//\1/
5766             q
5767           }
5768           s/.*/./; q'`
5769       test -d "$as_dir" && break
5770     done
5771     test -z "$as_dirs" || eval "mkdir $as_dirs"
5772   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5773 echo "$as_me: error: cannot create directory $as_dir" >&2;}
5774    { (exit 1); exit 1; }; }; }
5775   ac_builddir=.
5776
5777 case "$ac_dir" in
5778 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5779 *)
5780   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5781   # A ".." for each directory in $ac_dir_suffix.
5782   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
5783   case $ac_top_builddir_sub in
5784   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5785   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5786   esac ;;
5787 esac
5788 ac_abs_top_builddir=$ac_pwd
5789 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5790 # for backward compatibility:
5791 ac_top_builddir=$ac_top_build_prefix
5792
5793 case $srcdir in
5794   .)  # We are building in place.
5795     ac_srcdir=.
5796     ac_top_srcdir=$ac_top_builddir_sub
5797     ac_abs_top_srcdir=$ac_pwd ;;
5798   [\\/]* | ?:[\\/]* )  # Absolute name.
5799     ac_srcdir=$srcdir$ac_dir_suffix;
5800     ac_top_srcdir=$srcdir
5801     ac_abs_top_srcdir=$srcdir ;;
5802   *) # Relative name.
5803     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5804     ac_top_srcdir=$ac_top_build_prefix$srcdir
5805     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5806 esac
5807 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5808
5809
5810   case $ac_mode in
5811   :F)
5812   #
5813   # CONFIG_FILE
5814   #
5815
5816   case $INSTALL in
5817   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5818   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5819   esac
5820 _ACEOF
5821
5822 cat >>$CONFIG_STATUS <<\_ACEOF
5823 # If the template does not know about datarootdir, expand it.
5824 # FIXME: This hack should be removed a few years after 2.60.
5825 ac_datarootdir_hack=; ac_datarootdir_seen=
5826
5827 case `sed -n '/datarootdir/ {
5828   p
5829   q
5830 }
5831 /@datadir@/p
5832 /@docdir@/p
5833 /@infodir@/p
5834 /@localedir@/p
5835 /@mandir@/p
5836 ' $ac_file_inputs` in
5837 *datarootdir*) ac_datarootdir_seen=yes;;
5838 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5839   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5840 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5841 _ACEOF
5842 cat >>$CONFIG_STATUS <<_ACEOF
5843   ac_datarootdir_hack='
5844   s&@datadir@&$datadir&g
5845   s&@docdir@&$docdir&g
5846   s&@infodir@&$infodir&g
5847   s&@localedir@&$localedir&g
5848   s&@mandir@&$mandir&g
5849     s&\\\${datarootdir}&$datarootdir&g' ;;
5850 esac
5851 _ACEOF
5852
5853 # Neutralize VPATH when `$srcdir' = `.'.
5854 # Shell code in configure.ac might set extrasub.
5855 # FIXME: do we really want to maintain this feature?
5856 cat >>$CONFIG_STATUS <<_ACEOF
5857   sed "$ac_vpsub
5858 $extrasub
5859 _ACEOF
5860 cat >>$CONFIG_STATUS <<\_ACEOF
5861 :t
5862 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5863 s&@configure_input@&$configure_input&;t t
5864 s&@top_builddir@&$ac_top_builddir_sub&;t t
5865 s&@srcdir@&$ac_srcdir&;t t
5866 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5867 s&@top_srcdir@&$ac_top_srcdir&;t t
5868 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5869 s&@builddir@&$ac_builddir&;t t
5870 s&@abs_builddir@&$ac_abs_builddir&;t t
5871 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5872 s&@INSTALL@&$ac_INSTALL&;t t
5873 $ac_datarootdir_hack
5874 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
5875
5876 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5877   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5878   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5879   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5880 which seems to be undefined.  Please make sure it is defined." >&5
5881 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5882 which seems to be undefined.  Please make sure it is defined." >&2;}
5883
5884   rm -f "$tmp/stdin"
5885   case $ac_file in
5886   -) cat "$tmp/out"; rm -f "$tmp/out";;
5887   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
5888   esac
5889  ;;
5890   
5891   
5892   
5893   esac
5894
5895 done # for ac_tag
5896
5897
5898 { (exit 0); exit 0; }
5899 _ACEOF
5900 chmod +x $CONFIG_STATUS
5901 ac_clean_files=$ac_clean_files_save
5902
5903
5904 # configure is writing to config.log, and then calls config.status.
5905 # config.status does its own redirection, appending to config.log.
5906 # Unfortunately, on DOS this fails, as config.log is still kept open
5907 # by configure, so config.status won't be able to write to it; its
5908 # output is simply discarded.  So we exec the FD to /dev/null,
5909 # effectively closing config.log, so it can be properly (re)opened and
5910 # appended to by config.status.  When coming back to configure, we
5911 # need to make the FD available again.
5912 if test "$no_create" != yes; then
5913   ac_cs_success=:
5914   ac_config_status_args=
5915   test "$silent" = yes &&
5916     ac_config_status_args="$ac_config_status_args --quiet"
5917   exec 5>/dev/null
5918   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5919   exec 5>>config.log
5920   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5921   # would make configure fail if this is the last instruction.
5922   $ac_cs_success || { (exit 1); exit 1; }
5923 fi
5924