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