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