1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for IceGenerator 0.5.5.
4#
5# Report bugs to <administrator@tortugalabs.it>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11# Copyright 2004 Tortuga Labs. Inc.
12## --------------------- ##
13## M4sh Initialization.  ##
14## --------------------- ##
15
16# Be Bourne compatible
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+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24  set -o posix
25fi
26DUALCASE=1; export DUALCASE # for MKS sh
27
28# Support unset when possible.
29if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30  as_unset=unset
31else
32  as_unset=false
33fi
34
35
36# Work around bugs in pre-3.0 UWIN ksh.
37$as_unset ENV MAIL MAILPATH
38PS1='$ '
39PS2='> '
40PS4='+ '
41
42# NLS nuisances.
43for as_var in \
44  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46  LC_TELEPHONE LC_TIME
47do
48  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49    eval $as_var=C; export $as_var
50  else
51    $as_unset $as_var
52  fi
53done
54
55# Required to use basename.
56if expr a : '\(a\)' >/dev/null 2>&1; then
57  as_expr=expr
58else
59  as_expr=false
60fi
61
62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63  as_basename=basename
64else
65  as_basename=false
66fi
67
68
69# Name of the executable.
70as_me=`$as_basename "$0" ||
71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72	 X"$0" : 'X\(//\)$' \| \
73	 X"$0" : 'X\(/\)$' \| \
74	 .     : '\(.\)' 2>/dev/null ||
75echo X/"$0" |
76    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
78  	  /^X\/\(\/\).*/{ s//\1/; q; }
79  	  s/.*/./; q'`
80
81
82# PATH needs CR, and LINENO needs CR and PATH.
83# Avoid depending upon Character Ranges.
84as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87as_cr_digits='0123456789'
88as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90# The user is always right.
91if test "${PATH_SEPARATOR+set}" != set; then
92  echo "#! /bin/sh" >conf$$.sh
93  echo  "exit 0"   >>conf$$.sh
94  chmod +x conf$$.sh
95  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96    PATH_SEPARATOR=';'
97  else
98    PATH_SEPARATOR=:
99  fi
100  rm -f conf$$.sh
101fi
102
103
104  as_lineno_1=$LINENO
105  as_lineno_2=$LINENO
106  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107  test "x$as_lineno_1" != "x$as_lineno_2" &&
108  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109  # Find who we are.  Look in the path if we contain no path at all
110  # relative or not.
111  case $0 in
112    *[\\/]* ) as_myself=$0 ;;
113    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114for as_dir in $PATH
115do
116  IFS=$as_save_IFS
117  test -z "$as_dir" && as_dir=.
118  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119done
120
121       ;;
122  esac
123  # We did not find ourselves, most probably we were run as `sh COMMAND'
124  # in which case we are not to be found in the path.
125  if test "x$as_myself" = x; then
126    as_myself=$0
127  fi
128  if test ! -f "$as_myself"; then
129    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130   { (exit 1); exit 1; }; }
131  fi
132  case $CONFIG_SHELL in
133  '')
134    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136do
137  IFS=$as_save_IFS
138  test -z "$as_dir" && as_dir=.
139  for as_base in sh bash ksh sh5; do
140	 case $as_dir in
141	 /*)
142	   if ("$as_dir/$as_base" -c '
143  as_lineno_1=$LINENO
144  as_lineno_2=$LINENO
145  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146  test "x$as_lineno_1" != "x$as_lineno_2" &&
147  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150	     CONFIG_SHELL=$as_dir/$as_base
151	     export CONFIG_SHELL
152	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153	   fi;;
154	 esac
155       done
156done
157;;
158  esac
159
160  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161  # uniformly replaced by the line number.  The first 'sed' inserts a
162  # line-number line before each line; the second 'sed' does the real
163  # work.  The second script uses 'N' to pair each line-number line
164  # with the numbered line, and appends trailing '-' during
165  # substitution so that $LINENO is not a special case at line end.
166  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168  sed '=' <$as_myself |
169    sed '
170      N
171      s,$,-,
172      : loop
173      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174      t loop
175      s,-$,,
176      s,^['$as_cr_digits']*\n,,
177    ' >$as_me.lineno &&
178  chmod +x $as_me.lineno ||
179    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180   { (exit 1); exit 1; }; }
181
182  # Don't try to exec as it changes $[0], causing all sort of problems
183  # (the dirname of $[0] is not the place where we might find the
184  # original and so on.  Autoconf is especially sensible to this).
185  . ./$as_me.lineno
186  # Exit status is that of the last command.
187  exit
188}
189
190
191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192  *c*,-n*) ECHO_N= ECHO_C='
193' ECHO_T='	' ;;
194  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196esac
197
198if expr a : '\(a\)' >/dev/null 2>&1; then
199  as_expr=expr
200else
201  as_expr=false
202fi
203
204rm -f conf$$ conf$$.exe conf$$.file
205echo >conf$$.file
206if ln -s conf$$.file conf$$ 2>/dev/null; then
207  # We could just check for DJGPP; but this test a) works b) is more generic
208  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209  if test -f conf$$.exe; then
210    # Don't use ln at all; we don't have any links
211    as_ln_s='cp -p'
212  else
213    as_ln_s='ln -s'
214  fi
215elif ln conf$$.file conf$$ 2>/dev/null; then
216  as_ln_s=ln
217else
218  as_ln_s='cp -p'
219fi
220rm -f conf$$ conf$$.exe conf$$.file
221
222if mkdir -p . 2>/dev/null; then
223  as_mkdir_p=:
224else
225  test -d ./-p && rmdir ./-p
226  as_mkdir_p=false
227fi
228
229as_executable_p="test -f"
230
231# Sed expression to map a string onto a valid CPP name.
232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234# Sed expression to map a string onto a valid variable name.
235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238# IFS
239# We need space, tab and new line, in precisely that order.
240as_nl='
241'
242IFS=" 	$as_nl"
243
244# CDPATH.
245$as_unset CDPATH
246
247
248# Name of the host.
249# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
250# so uname gets run too.
251ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252
253exec 6>&1
254
255#
256# Initializations.
257#
258ac_default_prefix=/usr/local
259ac_config_libobj_dir=.
260cross_compiling=no
261subdirs=
262MFLAGS=
263MAKEFLAGS=
264SHELL=${CONFIG_SHELL-/bin/sh}
265
266# Maximum number of lines to put in a shell here document.
267# This variable seems obsolete.  It should probably be removed, and
268# only ac_max_sed_lines should be used.
269: ${ac_max_here_lines=38}
270
271# Identity of this package.
272PACKAGE_NAME='IceGenerator'
273PACKAGE_TARNAME='icegenerator'
274PACKAGE_VERSION='0.5.5'
275PACKAGE_STRING='IceGenerator 0.5.5'
276PACKAGE_BUGREPORT='administrator@tortugalabs.it'
277
278ac_unique_file="src/main.cpp"
279# Factoring default headers for most tests.
280ac_includes_default="\
281#include <stdio.h>
282#if HAVE_SYS_TYPES_H
283# include <sys/types.h>
284#endif
285#if HAVE_SYS_STAT_H
286# include <sys/stat.h>
287#endif
288#if STDC_HEADERS
289# include <stdlib.h>
290# include <stddef.h>
291#else
292# if HAVE_STDLIB_H
293#  include <stdlib.h>
294# endif
295#endif
296#if HAVE_STRING_H
297# if !STDC_HEADERS && HAVE_MEMORY_H
298#  include <memory.h>
299# endif
300# include <string.h>
301#endif
302#if HAVE_STRINGS_H
303# include <strings.h>
304#endif
305#if HAVE_INTTYPES_H
306# include <inttypes.h>
307#else
308# if HAVE_STDINT_H
309#  include <stdint.h>
310# endif
311#endif
312#if HAVE_UNISTD_H
313# include <unistd.h>
314#endif"
315
316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LN_S PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS CXXCPP EGREP ETR_SOCKET_LIBS PKG_CONFIG SHOUT_CFLAGS SHOUT_LIBS SYSCONFDIR LIBOBJS LTLIBOBJS'
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360  # If the previous option needs an argument, assign it.
361  if test -n "$ac_prev"; then
362    eval "$ac_prev=\$ac_option"
363    ac_prev=
364    continue
365  fi
366
367  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369  # Accept the important Cygnus configure options, so we can diagnose typos.
370
371  case $ac_option in
372
373  -bindir | --bindir | --bindi | --bind | --bin | --bi)
374    ac_prev=bindir ;;
375  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376    bindir=$ac_optarg ;;
377
378  -build | --build | --buil | --bui | --bu)
379    ac_prev=build_alias ;;
380  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381    build_alias=$ac_optarg ;;
382
383  -cache-file | --cache-file | --cache-fil | --cache-fi \
384  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385    ac_prev=cache_file ;;
386  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388    cache_file=$ac_optarg ;;
389
390  --config-cache | -C)
391    cache_file=config.cache ;;
392
393  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394    ac_prev=datadir ;;
395  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396  | --da=*)
397    datadir=$ac_optarg ;;
398
399  -disable-* | --disable-*)
400    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401    # Reject names that are not valid shell variable names.
402    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404   { (exit 1); exit 1; }; }
405    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406    eval "enable_$ac_feature=no" ;;
407
408  -enable-* | --enable-*)
409    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410    # Reject names that are not valid shell variable names.
411    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413   { (exit 1); exit 1; }; }
414    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415    case $ac_option in
416      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417      *) ac_optarg=yes ;;
418    esac
419    eval "enable_$ac_feature='$ac_optarg'" ;;
420
421  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423  | --exec | --exe | --ex)
424    ac_prev=exec_prefix ;;
425  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427  | --exec=* | --exe=* | --ex=*)
428    exec_prefix=$ac_optarg ;;
429
430  -gas | --gas | --ga | --g)
431    # Obsolete; use --with-gas.
432    with_gas=yes ;;
433
434  -help | --help | --hel | --he | -h)
435    ac_init_help=long ;;
436  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437    ac_init_help=recursive ;;
438  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439    ac_init_help=short ;;
440
441  -host | --host | --hos | --ho)
442    ac_prev=host_alias ;;
443  -host=* | --host=* | --hos=* | --ho=*)
444    host_alias=$ac_optarg ;;
445
446  -includedir | --includedir | --includedi | --included | --include \
447  | --includ | --inclu | --incl | --inc)
448    ac_prev=includedir ;;
449  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450  | --includ=* | --inclu=* | --incl=* | --inc=*)
451    includedir=$ac_optarg ;;
452
453  -infodir | --infodir | --infodi | --infod | --info | --inf)
454    ac_prev=infodir ;;
455  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456    infodir=$ac_optarg ;;
457
458  -libdir | --libdir | --libdi | --libd)
459    ac_prev=libdir ;;
460  -libdir=* | --libdir=* | --libdi=* | --libd=*)
461    libdir=$ac_optarg ;;
462
463  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464  | --libexe | --libex | --libe)
465    ac_prev=libexecdir ;;
466  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467  | --libexe=* | --libex=* | --libe=*)
468    libexecdir=$ac_optarg ;;
469
470  -localstatedir | --localstatedir | --localstatedi | --localstated \
471  | --localstate | --localstat | --localsta | --localst \
472  | --locals | --local | --loca | --loc | --lo)
473    ac_prev=localstatedir ;;
474  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477    localstatedir=$ac_optarg ;;
478
479  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480    ac_prev=mandir ;;
481  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482    mandir=$ac_optarg ;;
483
484  -nfp | --nfp | --nf)
485    # Obsolete; use --without-fp.
486    with_fp=no ;;
487
488  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489  | --no-cr | --no-c | -n)
490    no_create=yes ;;
491
492  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494    no_recursion=yes ;;
495
496  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498  | --oldin | --oldi | --old | --ol | --o)
499    ac_prev=oldincludedir ;;
500  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503    oldincludedir=$ac_optarg ;;
504
505  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506    ac_prev=prefix ;;
507  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508    prefix=$ac_optarg ;;
509
510  -program-prefix | --program-prefix | --program-prefi | --program-pref \
511  | --program-pre | --program-pr | --program-p)
512    ac_prev=program_prefix ;;
513  -program-prefix=* | --program-prefix=* | --program-prefi=* \
514  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515    program_prefix=$ac_optarg ;;
516
517  -program-suffix | --program-suffix | --program-suffi | --program-suff \
518  | --program-suf | --program-su | --program-s)
519    ac_prev=program_suffix ;;
520  -program-suffix=* | --program-suffix=* | --program-suffi=* \
521  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522    program_suffix=$ac_optarg ;;
523
524  -program-transform-name | --program-transform-name \
525  | --program-transform-nam | --program-transform-na \
526  | --program-transform-n | --program-transform- \
527  | --program-transform | --program-transfor \
528  | --program-transfo | --program-transf \
529  | --program-trans | --program-tran \
530  | --progr-tra | --program-tr | --program-t)
531    ac_prev=program_transform_name ;;
532  -program-transform-name=* | --program-transform-name=* \
533  | --program-transform-nam=* | --program-transform-na=* \
534  | --program-transform-n=* | --program-transform-=* \
535  | --program-transform=* | --program-transfor=* \
536  | --program-transfo=* | --program-transf=* \
537  | --program-trans=* | --program-tran=* \
538  | --progr-tra=* | --program-tr=* | --program-t=*)
539    program_transform_name=$ac_optarg ;;
540
541  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542  | -silent | --silent | --silen | --sile | --sil)
543    silent=yes ;;
544
545  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546    ac_prev=sbindir ;;
547  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548  | --sbi=* | --sb=*)
549    sbindir=$ac_optarg ;;
550
551  -sharedstatedir | --sharedstatedir | --sharedstatedi \
552  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553  | --sharedst | --shareds | --shared | --share | --shar \
554  | --sha | --sh)
555    ac_prev=sharedstatedir ;;
556  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559  | --sha=* | --sh=*)
560    sharedstatedir=$ac_optarg ;;
561
562  -site | --site | --sit)
563    ac_prev=site ;;
564  -site=* | --site=* | --sit=*)
565    site=$ac_optarg ;;
566
567  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568    ac_prev=srcdir ;;
569  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570    srcdir=$ac_optarg ;;
571
572  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573  | --syscon | --sysco | --sysc | --sys | --sy)
574    ac_prev=sysconfdir ;;
575  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577    sysconfdir=$ac_optarg ;;
578
579  -target | --target | --targe | --targ | --tar | --ta | --t)
580    ac_prev=target_alias ;;
581  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582    target_alias=$ac_optarg ;;
583
584  -v | -verbose | --verbose | --verbos | --verbo | --verb)
585    verbose=yes ;;
586
587  -version | --version | --versio | --versi | --vers | -V)
588    ac_init_version=: ;;
589
590  -with-* | --with-*)
591    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592    # Reject names that are not valid shell variable names.
593    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594      { echo "$as_me: error: invalid package name: $ac_package" >&2
595   { (exit 1); exit 1; }; }
596    ac_package=`echo $ac_package| sed 's/-/_/g'`
597    case $ac_option in
598      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599      *) ac_optarg=yes ;;
600    esac
601    eval "with_$ac_package='$ac_optarg'" ;;
602
603  -without-* | --without-*)
604    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605    # Reject names that are not valid shell variable names.
606    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607      { echo "$as_me: error: invalid package name: $ac_package" >&2
608   { (exit 1); exit 1; }; }
609    ac_package=`echo $ac_package | sed 's/-/_/g'`
610    eval "with_$ac_package=no" ;;
611
612  --x)
613    # Obsolete; use --with-x.
614    with_x=yes ;;
615
616  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617  | --x-incl | --x-inc | --x-in | --x-i)
618    ac_prev=x_includes ;;
619  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621    x_includes=$ac_optarg ;;
622
623  -x-libraries | --x-libraries | --x-librarie | --x-librari \
624  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625    ac_prev=x_libraries ;;
626  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628    x_libraries=$ac_optarg ;;
629
630  -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632   { (exit 1); exit 1; }; }
633    ;;
634
635  *=*)
636    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637    # Reject names that are not valid shell variable names.
638    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640   { (exit 1); exit 1; }; }
641    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642    eval "$ac_envvar='$ac_optarg'"
643    export $ac_envvar ;;
644
645  *)
646    # FIXME: should be removed in autoconf 3.0.
647    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651    ;;
652
653  esac
654done
655
656if test -n "$ac_prev"; then
657  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658  { echo "$as_me: error: missing argument to $ac_option" >&2
659   { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665  eval ac_val=$`echo $ac_var`
666  case $ac_val in
667    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669   { (exit 1); exit 1; }; };;
670  esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675	      localstatedir libdir includedir oldincludedir infodir mandir
676do
677  eval ac_val=$`echo $ac_var`
678  case $ac_val in
679    [\\/$]* | ?:[\\/]* ) ;;
680    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681   { (exit 1); exit 1; }; };;
682  esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694  if test "x$build_alias" = x; then
695    cross_compiling=maybe
696    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697    If a cross compiler is detected then cross compile mode will be used." >&2
698  elif test "x$build_alias" != "x$host_alias"; then
699    cross_compiling=yes
700  fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711  ac_srcdir_defaulted=yes
712  # Try the directory containing this script, then its parent.
713  ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715	 X"$0" : 'X\(//\)[^/]' \| \
716	 X"$0" : 'X\(//\)$' \| \
717	 X"$0" : 'X\(/\)' \| \
718	 .     : '\(.\)' 2>/dev/null ||
719echo X"$0" |
720    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722  	  /^X\(\/\/\)$/{ s//\1/; q; }
723  	  /^X\(\/\).*/{ s//\1/; q; }
724  	  s/.*/./; q'`
725  srcdir=$ac_confdir
726  if test ! -r $srcdir/$ac_unique_file; then
727    srcdir=..
728  fi
729else
730  ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733  if test "$ac_srcdir_defaulted" = yes; then
734    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735   { (exit 1); exit 1; }; }
736  else
737    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738   { (exit 1); exit 1; }; }
739  fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743   { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CXX_set=${CXX+set}
774ac_env_CXX_value=$CXX
775ac_cv_env_CXX_set=${CXX+set}
776ac_cv_env_CXX_value=$CXX
777ac_env_CXXFLAGS_set=${CXXFLAGS+set}
778ac_env_CXXFLAGS_value=$CXXFLAGS
779ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
780ac_cv_env_CXXFLAGS_value=$CXXFLAGS
781ac_env_CXXCPP_set=${CXXCPP+set}
782ac_env_CXXCPP_value=$CXXCPP
783ac_cv_env_CXXCPP_set=${CXXCPP+set}
784ac_cv_env_CXXCPP_value=$CXXCPP
785
786#
787# Report the --help message.
788#
789if test "$ac_init_help" = "long"; then
790  # Omit some internal or obsolete options to make the list less imposing.
791  # This message is too long to be a string in the A/UX 3.1 sh.
792  cat <<_ACEOF
793\`configure' configures IceGenerator 0.5.5 to adapt to many kinds of systems.
794
795Usage: $0 [OPTION]... [VAR=VALUE]...
796
797To assign environment variables (e.g., CC, CFLAGS...), specify them as
798VAR=VALUE.  See below for descriptions of some of the useful variables.
799
800Defaults for the options are specified in brackets.
801
802Configuration:
803  -h, --help              display this help and exit
804      --help=short        display options specific to this package
805      --help=recursive    display the short help of all the included packages
806  -V, --version           display version information and exit
807  -q, --quiet, --silent   do not print \`checking...' messages
808      --cache-file=FILE   cache test results in FILE [disabled]
809  -C, --config-cache      alias for \`--cache-file=config.cache'
810  -n, --no-create         do not create output files
811      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
812
813_ACEOF
814
815  cat <<_ACEOF
816Installation directories:
817  --prefix=PREFIX         install architecture-independent files in PREFIX
818			  [$ac_default_prefix]
819  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
820			  [PREFIX]
821
822By default, \`make install' will install all the files in
823\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
824an installation prefix other than \`$ac_default_prefix' using \`--prefix',
825for instance \`--prefix=\$HOME'.
826
827For better control, use the options below.
828
829Fine tuning of the installation directories:
830  --bindir=DIR           user executables [EPREFIX/bin]
831  --sbindir=DIR          system admin executables [EPREFIX/sbin]
832  --libexecdir=DIR       program executables [EPREFIX/libexec]
833  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
834  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
835  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
836  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
837  --libdir=DIR           object code libraries [EPREFIX/lib]
838  --includedir=DIR       C header files [PREFIX/include]
839  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
840  --infodir=DIR          info documentation [PREFIX/info]
841  --mandir=DIR           man documentation [PREFIX/man]
842_ACEOF
843
844  cat <<\_ACEOF
845
846Program names:
847  --program-prefix=PREFIX            prepend PREFIX to installed program names
848  --program-suffix=SUFFIX            append SUFFIX to installed program names
849  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
850
851System types:
852  --build=BUILD     configure for building on BUILD [guessed]
853  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
854_ACEOF
855fi
856
857if test -n "$ac_init_help"; then
858  case $ac_init_help in
859     short | recursive ) echo "Configuration of IceGenerator 0.5.5:";;
860   esac
861  cat <<\_ACEOF
862
863Optional Features:
864  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
865  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
866  --enable-maintainer-mode  enable make rules and dependencies not useful
867			  (and sometimes confusing) to the casual installer
868  --disable-dependency-tracking  speeds up one-time build
869  --enable-dependency-tracking   do not reject slow dependency extractors
870  --enable-debug          enable debug (default disabled)
871
872Optional Packages:
873  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
874  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
875  --with-shout=DIR        libshout include and library files prefix path
876  --with-mysql            MySQL support
877  --with-pgsql            PostGreSQL support
878  --with-id3              ID3 support
879
880Some influential environment variables:
881  CC          C compiler command
882  CFLAGS      C compiler flags
883  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
884              nonstandard directory <lib dir>
885  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
886              headers in a nonstandard directory <include dir>
887  CXX         C++ compiler command
888  CXXFLAGS    C++ compiler flags
889  CXXCPP      C++ preprocessor
890
891Use these variables to override the choices made by `configure' or to help
892it to find libraries and programs with nonstandard names/locations.
893
894Report bugs to <administrator@tortugalabs.it>.
895_ACEOF
896fi
897
898if test "$ac_init_help" = "recursive"; then
899  # If there are subdirs, report their specific --help.
900  ac_popdir=`pwd`
901  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902    test -d $ac_dir || continue
903    ac_builddir=.
904
905if test "$ac_dir" != .; then
906  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907  # A "../" for each directory in $ac_dir_suffix.
908  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
909else
910  ac_dir_suffix= ac_top_builddir=
911fi
912
913case $srcdir in
914  .)  # No --srcdir option.  We are building in place.
915    ac_srcdir=.
916    if test -z "$ac_top_builddir"; then
917       ac_top_srcdir=.
918    else
919       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920    fi ;;
921  [\\/]* | ?:[\\/]* )  # Absolute path.
922    ac_srcdir=$srcdir$ac_dir_suffix;
923    ac_top_srcdir=$srcdir ;;
924  *) # Relative path.
925    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926    ac_top_srcdir=$ac_top_builddir$srcdir ;;
927esac
928
929# Do not use `cd foo && pwd` to compute absolute paths, because
930# the directories may not exist.
931case `pwd` in
932.) ac_abs_builddir="$ac_dir";;
933*)
934  case "$ac_dir" in
935  .) ac_abs_builddir=`pwd`;;
936  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
937  *) ac_abs_builddir=`pwd`/"$ac_dir";;
938  esac;;
939esac
940case $ac_abs_builddir in
941.) ac_abs_top_builddir=${ac_top_builddir}.;;
942*)
943  case ${ac_top_builddir}. in
944  .) ac_abs_top_builddir=$ac_abs_builddir;;
945  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
946  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
947  esac;;
948esac
949case $ac_abs_builddir in
950.) ac_abs_srcdir=$ac_srcdir;;
951*)
952  case $ac_srcdir in
953  .) ac_abs_srcdir=$ac_abs_builddir;;
954  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
955  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
956  esac;;
957esac
958case $ac_abs_builddir in
959.) ac_abs_top_srcdir=$ac_top_srcdir;;
960*)
961  case $ac_top_srcdir in
962  .) ac_abs_top_srcdir=$ac_abs_builddir;;
963  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
964  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
965  esac;;
966esac
967
968    cd $ac_dir
969    # Check for guested configure; otherwise get Cygnus style configure.
970    if test -f $ac_srcdir/configure.gnu; then
971      echo
972      $SHELL $ac_srcdir/configure.gnu  --help=recursive
973    elif test -f $ac_srcdir/configure; then
974      echo
975      $SHELL $ac_srcdir/configure  --help=recursive
976    elif test -f $ac_srcdir/configure.ac ||
977	   test -f $ac_srcdir/configure.in; then
978      echo
979      $ac_configure --help
980    else
981      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982    fi
983    cd $ac_popdir
984  done
985fi
986
987test -n "$ac_init_help" && exit 0
988if $ac_init_version; then
989  cat <<\_ACEOF
990IceGenerator configure 0.5.5
991generated by GNU Autoconf 2.59
992
993Copyright (C) 2003 Free Software Foundation, Inc.
994This configure script is free software; the Free Software Foundation
995gives unlimited permission to copy, distribute and modify it.
996
997Copyright 2004 Tortuga Labs. Inc.
998_ACEOF
999  exit 0
1000fi
1001exec 5>config.log
1002cat >&5 <<_ACEOF
1003This file contains any messages produced by compilers while
1004running configure, to aid debugging if configure makes a mistake.
1005
1006It was created by IceGenerator $as_me 0.5.5, which was
1007generated by GNU Autoconf 2.59.  Invocation command line was
1008
1009  $ $0 $@
1010
1011_ACEOF
1012{
1013cat <<_ASUNAME
1014## --------- ##
1015## Platform. ##
1016## --------- ##
1017
1018hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1019uname -m = `(uname -m) 2>/dev/null || echo unknown`
1020uname -r = `(uname -r) 2>/dev/null || echo unknown`
1021uname -s = `(uname -s) 2>/dev/null || echo unknown`
1022uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023
1024/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1025/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1026
1027/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1028/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1029/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1030hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1031/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1032/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1033/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1034
1035_ASUNAME
1036
1037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038for as_dir in $PATH
1039do
1040  IFS=$as_save_IFS
1041  test -z "$as_dir" && as_dir=.
1042  echo "PATH: $as_dir"
1043done
1044
1045} >&5
1046
1047cat >&5 <<_ACEOF
1048
1049
1050## ----------- ##
1051## Core tests. ##
1052## ----------- ##
1053
1054_ACEOF
1055
1056
1057# Keep a trace of the command line.
1058# Strip out --no-create and --no-recursion so they do not pile up.
1059# Strip out --silent because we don't want to record it for future runs.
1060# Also quote any args containing shell meta-characters.
1061# Make two passes to allow for proper duplicate-argument suppression.
1062ac_configure_args=
1063ac_configure_args0=
1064ac_configure_args1=
1065ac_sep=
1066ac_must_keep_next=false
1067for ac_pass in 1 2
1068do
1069  for ac_arg
1070  do
1071    case $ac_arg in
1072    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074    | -silent | --silent | --silen | --sile | --sil)
1075      continue ;;
1076    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1078    esac
1079    case $ac_pass in
1080    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1081    2)
1082      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083      if test $ac_must_keep_next = true; then
1084	ac_must_keep_next=false # Got value, back to normal.
1085      else
1086	case $ac_arg in
1087	  *=* | --config-cache | -C | -disable-* | --disable-* \
1088	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090	  | -with-* | --with-* | -without-* | --without-* | --x)
1091	    case "$ac_configure_args0 " in
1092	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093	    esac
1094	    ;;
1095	  -* ) ac_must_keep_next=true ;;
1096	esac
1097      fi
1098      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099      # Get rid of the leading space.
1100      ac_sep=" "
1101      ;;
1102    esac
1103  done
1104done
1105$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1107
1108# When interrupted or exit'd, cleanup temporary files, and complete
1109# config.log.  We remove comments because anyway the quotes in there
1110# would cause problems or look ugly.
1111# WARNING: Be sure not to use single quotes in there, as some shells,
1112# such as our DU 5.0 friend, will then `close' the trap.
1113trap 'exit_status=$?
1114  # Save into config.log some information that might help in debugging.
1115  {
1116    echo
1117
1118    cat <<\_ASBOX
1119## ---------------- ##
1120## Cache variables. ##
1121## ---------------- ##
1122_ASBOX
1123    echo
1124    # The following way of writing the cache mishandles newlines in values,
1125{
1126  (set) 2>&1 |
1127    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128    *ac_space=\ *)
1129      sed -n \
1130	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132      ;;
1133    *)
1134      sed -n \
1135	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1136      ;;
1137    esac;
1138}
1139    echo
1140
1141    cat <<\_ASBOX
1142## ----------------- ##
1143## Output variables. ##
1144## ----------------- ##
1145_ASBOX
1146    echo
1147    for ac_var in $ac_subst_vars
1148    do
1149      eval ac_val=$`echo $ac_var`
1150      echo "$ac_var='"'"'$ac_val'"'"'"
1151    done | sort
1152    echo
1153
1154    if test -n "$ac_subst_files"; then
1155      cat <<\_ASBOX
1156## ------------- ##
1157## Output files. ##
1158## ------------- ##
1159_ASBOX
1160      echo
1161      for ac_var in $ac_subst_files
1162      do
1163	eval ac_val=$`echo $ac_var`
1164	echo "$ac_var='"'"'$ac_val'"'"'"
1165      done | sort
1166      echo
1167    fi
1168
1169    if test -s confdefs.h; then
1170      cat <<\_ASBOX
1171## ----------- ##
1172## confdefs.h. ##
1173## ----------- ##
1174_ASBOX
1175      echo
1176      sed "/^$/d" confdefs.h | sort
1177      echo
1178    fi
1179    test "$ac_signal" != 0 &&
1180      echo "$as_me: caught signal $ac_signal"
1181    echo "$as_me: exit $exit_status"
1182  } >&5
1183  rm -f core *.core &&
1184  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1185    exit $exit_status
1186     ' 0
1187for ac_signal in 1 2 13 15; do
1188  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189done
1190ac_signal=0
1191
1192# confdefs.h avoids OS command line length limits that DEFS can exceed.
1193rm -rf conftest* confdefs.h
1194# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195echo >confdefs.h
1196
1197# Predefined preprocessor variables.
1198
1199cat >>confdefs.h <<_ACEOF
1200#define PACKAGE_NAME "$PACKAGE_NAME"
1201_ACEOF
1202
1203
1204cat >>confdefs.h <<_ACEOF
1205#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206_ACEOF
1207
1208
1209cat >>confdefs.h <<_ACEOF
1210#define PACKAGE_VERSION "$PACKAGE_VERSION"
1211_ACEOF
1212
1213
1214cat >>confdefs.h <<_ACEOF
1215#define PACKAGE_STRING "$PACKAGE_STRING"
1216_ACEOF
1217
1218
1219cat >>confdefs.h <<_ACEOF
1220#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221_ACEOF
1222
1223
1224# Let the site file select an alternate cache file if it wants to.
1225# Prefer explicitly selected file to automatically selected ones.
1226if test -z "$CONFIG_SITE"; then
1227  if test "x$prefix" != xNONE; then
1228    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229  else
1230    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231  fi
1232fi
1233for ac_site_file in $CONFIG_SITE; do
1234  if test -r "$ac_site_file"; then
1235    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1236echo "$as_me: loading site script $ac_site_file" >&6;}
1237    sed 's/^/| /' "$ac_site_file" >&5
1238    . "$ac_site_file"
1239  fi
1240done
1241
1242if test -r "$cache_file"; then
1243  # Some versions of bash will fail to source /dev/null (special
1244  # files actually), so we avoid doing that.
1245  if test -f "$cache_file"; then
1246    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1247echo "$as_me: loading cache $cache_file" >&6;}
1248    case $cache_file in
1249      [\\/]* | ?:[\\/]* ) . $cache_file;;
1250      *)                      . ./$cache_file;;
1251    esac
1252  fi
1253else
1254  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1255echo "$as_me: creating cache $cache_file" >&6;}
1256  >$cache_file
1257fi
1258
1259# Check that the precious variables saved in the cache have kept the same
1260# value.
1261ac_cache_corrupted=false
1262for ac_var in `(set) 2>&1 |
1263	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1264  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265  eval ac_new_set=\$ac_env_${ac_var}_set
1266  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267  eval ac_new_val="\$ac_env_${ac_var}_value"
1268  case $ac_old_set,$ac_new_set in
1269    set,)
1270      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1271echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1272      ac_cache_corrupted=: ;;
1273    ,set)
1274      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1275echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276      ac_cache_corrupted=: ;;
1277    ,);;
1278    *)
1279      if test "x$ac_old_val" != "x$ac_new_val"; then
1280	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1281echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1282	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1283echo "$as_me:   former value:  $ac_old_val" >&2;}
1284	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1285echo "$as_me:   current value: $ac_new_val" >&2;}
1286	ac_cache_corrupted=:
1287      fi;;
1288  esac
1289  # Pass precious variables to config.status.
1290  if test "$ac_new_set" = set; then
1291    case $ac_new_val in
1292    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1294    *) ac_arg=$ac_var=$ac_new_val ;;
1295    esac
1296    case " $ac_configure_args " in
1297      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1298      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299    esac
1300  fi
1301done
1302if $ac_cache_corrupted; then
1303  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1304echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1305  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1306echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307   { (exit 1); exit 1; }; }
1308fi
1309
1310ac_ext=c
1311ac_cpp='$CPP $CPPFLAGS'
1312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1314ac_compiler_gnu=$ac_cv_c_compiler_gnu
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343ac_aux_dir=
1344for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1345  if test -f $ac_dir/install-sh; then
1346    ac_aux_dir=$ac_dir
1347    ac_install_sh="$ac_aux_dir/install-sh -c"
1348    break
1349  elif test -f $ac_dir/install.sh; then
1350    ac_aux_dir=$ac_dir
1351    ac_install_sh="$ac_aux_dir/install.sh -c"
1352    break
1353  elif test -f $ac_dir/shtool; then
1354    ac_aux_dir=$ac_dir
1355    ac_install_sh="$ac_aux_dir/shtool install -c"
1356    break
1357  fi
1358done
1359if test -z "$ac_aux_dir"; then
1360  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1361echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1362   { (exit 1); exit 1; }; }
1363fi
1364ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1365ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1366ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1367
1368# Make sure we can run config.sub.
1369$ac_config_sub sun4 >/dev/null 2>&1 ||
1370  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1371echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1372   { (exit 1); exit 1; }; }
1373
1374echo "$as_me:$LINENO: checking build system type" >&5
1375echo $ECHO_N "checking build system type... $ECHO_C" >&6
1376if test "${ac_cv_build+set}" = set; then
1377  echo $ECHO_N "(cached) $ECHO_C" >&6
1378else
1379  ac_cv_build_alias=$build_alias
1380test -z "$ac_cv_build_alias" &&
1381  ac_cv_build_alias=`$ac_config_guess`
1382test -z "$ac_cv_build_alias" &&
1383  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1384echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1385   { (exit 1); exit 1; }; }
1386ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1387  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1388echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1389   { (exit 1); exit 1; }; }
1390
1391fi
1392echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1393echo "${ECHO_T}$ac_cv_build" >&6
1394build=$ac_cv_build
1395build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1398
1399
1400echo "$as_me:$LINENO: checking host system type" >&5
1401echo $ECHO_N "checking host system type... $ECHO_C" >&6
1402if test "${ac_cv_host+set}" = set; then
1403  echo $ECHO_N "(cached) $ECHO_C" >&6
1404else
1405  ac_cv_host_alias=$host_alias
1406test -z "$ac_cv_host_alias" &&
1407  ac_cv_host_alias=$ac_cv_build_alias
1408ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1409  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1410echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1411   { (exit 1); exit 1; }; }
1412
1413fi
1414echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1415echo "${ECHO_T}$ac_cv_host" >&6
1416host=$ac_cv_host
1417host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1420
1421
1422
1423am__api_version="1.9"
1424# Find a good install program.  We prefer a C program (faster),
1425# so one script is as good as another.  But avoid the broken or
1426# incompatible versions:
1427# SysV /etc/install, /usr/sbin/install
1428# SunOS /usr/etc/install
1429# IRIX /sbin/install
1430# AIX /bin/install
1431# AmigaOS /C/install, which installs bootblocks on floppy discs
1432# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1433# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1434# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1435# OS/2's system install, which has a completely different semantic
1436# ./install, which can be erroneously created by make from ./install.sh.
1437echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1438echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1439if test -z "$INSTALL"; then
1440if test "${ac_cv_path_install+set}" = set; then
1441  echo $ECHO_N "(cached) $ECHO_C" >&6
1442else
1443  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1444for as_dir in $PATH
1445do
1446  IFS=$as_save_IFS
1447  test -z "$as_dir" && as_dir=.
1448  # Account for people who put trailing slashes in PATH elements.
1449case $as_dir/ in
1450  ./ | .// | /cC/* | \
1451  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1452  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1453  /usr/ucb/* ) ;;
1454  *)
1455    # OSF1 and SCO ODT 3.0 have their own names for install.
1456    # Don't use installbsd from OSF since it installs stuff as root
1457    # by default.
1458    for ac_prog in ginstall scoinst install; do
1459      for ac_exec_ext in '' $ac_executable_extensions; do
1460	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1461	  if test $ac_prog = install &&
1462	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1463	    # AIX install.  It has an incompatible calling convention.
1464	    :
1465	  elif test $ac_prog = install &&
1466	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1467	    # program-specific install script used by HP pwplus--don't use.
1468	    :
1469	  else
1470	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1471	    break 3
1472	  fi
1473	fi
1474      done
1475    done
1476    ;;
1477esac
1478done
1479
1480
1481fi
1482  if test "${ac_cv_path_install+set}" = set; then
1483    INSTALL=$ac_cv_path_install
1484  else
1485    # As a last resort, use the slow shell script.  We don't cache a
1486    # path for INSTALL within a source directory, because that will
1487    # break other packages using the cache if that directory is
1488    # removed, or if the path is relative.
1489    INSTALL=$ac_install_sh
1490  fi
1491fi
1492echo "$as_me:$LINENO: result: $INSTALL" >&5
1493echo "${ECHO_T}$INSTALL" >&6
1494
1495# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1496# It thinks the first close brace ends the variable substitution.
1497test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1498
1499test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1500
1501test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1502
1503echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1504echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1505# Just in case
1506sleep 1
1507echo timestamp > conftest.file
1508# Do `set' in a subshell so we don't clobber the current shell's
1509# arguments.  Must try -L first in case configure is actually a
1510# symlink; some systems play weird games with the mod time of symlinks
1511# (eg FreeBSD returns the mod time of the symlink's containing
1512# directory).
1513if (
1514   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1515   if test "$*" = "X"; then
1516      # -L didn't work.
1517      set X `ls -t $srcdir/configure conftest.file`
1518   fi
1519   rm -f conftest.file
1520   if test "$*" != "X $srcdir/configure conftest.file" \
1521      && test "$*" != "X conftest.file $srcdir/configure"; then
1522
1523      # If neither matched, then we have a broken ls.  This can happen
1524      # if, for instance, CONFIG_SHELL is bash and it inherits a
1525      # broken ls alias from the environment.  This has actually
1526      # happened.  Such a system could not be considered "sane".
1527      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1528alias in your environment" >&5
1529echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1530alias in your environment" >&2;}
1531   { (exit 1); exit 1; }; }
1532   fi
1533
1534   test "$2" = conftest.file
1535   )
1536then
1537   # Ok.
1538   :
1539else
1540   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1541Check your system clock" >&5
1542echo "$as_me: error: newly created file is older than distributed files!
1543Check your system clock" >&2;}
1544   { (exit 1); exit 1; }; }
1545fi
1546echo "$as_me:$LINENO: result: yes" >&5
1547echo "${ECHO_T}yes" >&6
1548test "$program_prefix" != NONE &&
1549  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1550# Use a double $ so make ignores it.
1551test "$program_suffix" != NONE &&
1552  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1553# Double any \ or $.  echo might interpret backslashes.
1554# By default was `s,x,x', remove it if useless.
1555cat <<\_ACEOF >conftest.sed
1556s/[\\$]/&&/g;s/;s,x,x,$//
1557_ACEOF
1558program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1559rm conftest.sed
1560
1561# expand $ac_aux_dir to an absolute path
1562am_aux_dir=`cd $ac_aux_dir && pwd`
1563
1564test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1565# Use eval to expand $SHELL
1566if eval "$MISSING --run true"; then
1567  am_missing_run="$MISSING --run "
1568else
1569  am_missing_run=
1570  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1571echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1572fi
1573
1574if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1575  # We used to keeping the `.' as first argument, in order to
1576  # allow $(mkdir_p) to be used without argument.  As in
1577  #   $(mkdir_p) $(somedir)
1578  # where $(somedir) is conditionally defined.  However this is wrong
1579  # for two reasons:
1580  #  1. if the package is installed by a user who cannot write `.'
1581  #     make install will fail,
1582  #  2. the above comment should most certainly read
1583  #     $(mkdir_p) $(DESTDIR)$(somedir)
1584  #     so it does not work when $(somedir) is undefined and
1585  #     $(DESTDIR) is not.
1586  #  To support the latter case, we have to write
1587  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1588  #  so the `.' trick is pointless.
1589  mkdir_p='mkdir -p --'
1590else
1591  # On NextStep and OpenStep, the `mkdir' command does not
1592  # recognize any option.  It will interpret all options as
1593  # directories to create, and then abort because `.' already
1594  # exists.
1595  for d in ./-p ./--version;
1596  do
1597    test -d $d && rmdir $d
1598  done
1599  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1600  if test -f "$ac_aux_dir/mkinstalldirs"; then
1601    mkdir_p='$(mkinstalldirs)'
1602  else
1603    mkdir_p='$(install_sh) -d'
1604  fi
1605fi
1606
1607for ac_prog in gawk mawk nawk awk
1608do
1609  # Extract the first word of "$ac_prog", so it can be a program name with args.
1610set dummy $ac_prog; ac_word=$2
1611echo "$as_me:$LINENO: checking for $ac_word" >&5
1612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613if test "${ac_cv_prog_AWK+set}" = set; then
1614  echo $ECHO_N "(cached) $ECHO_C" >&6
1615else
1616  if test -n "$AWK"; then
1617  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1618else
1619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620for as_dir in $PATH
1621do
1622  IFS=$as_save_IFS
1623  test -z "$as_dir" && as_dir=.
1624  for ac_exec_ext in '' $ac_executable_extensions; do
1625  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626    ac_cv_prog_AWK="$ac_prog"
1627    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628    break 2
1629  fi
1630done
1631done
1632
1633fi
1634fi
1635AWK=$ac_cv_prog_AWK
1636if test -n "$AWK"; then
1637  echo "$as_me:$LINENO: result: $AWK" >&5
1638echo "${ECHO_T}$AWK" >&6
1639else
1640  echo "$as_me:$LINENO: result: no" >&5
1641echo "${ECHO_T}no" >&6
1642fi
1643
1644  test -n "$AWK" && break
1645done
1646
1647echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1648echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1649set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1650if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1651  echo $ECHO_N "(cached) $ECHO_C" >&6
1652else
1653  cat >conftest.make <<\_ACEOF
1654all:
1655	@echo 'ac_maketemp="$(MAKE)"'
1656_ACEOF
1657# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1658eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1659if test -n "$ac_maketemp"; then
1660  eval ac_cv_prog_make_${ac_make}_set=yes
1661else
1662  eval ac_cv_prog_make_${ac_make}_set=no
1663fi
1664rm -f conftest.make
1665fi
1666if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1667  echo "$as_me:$LINENO: result: yes" >&5
1668echo "${ECHO_T}yes" >&6
1669  SET_MAKE=
1670else
1671  echo "$as_me:$LINENO: result: no" >&5
1672echo "${ECHO_T}no" >&6
1673  SET_MAKE="MAKE=${MAKE-make}"
1674fi
1675
1676rm -rf .tst 2>/dev/null
1677mkdir .tst 2>/dev/null
1678if test -d .tst; then
1679  am__leading_dot=.
1680else
1681  am__leading_dot=_
1682fi
1683rmdir .tst 2>/dev/null
1684
1685# test to see if srcdir already configured
1686if test "`cd $srcdir && pwd`" != "`pwd`" &&
1687   test -f $srcdir/config.status; then
1688  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1689echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1690   { (exit 1); exit 1; }; }
1691fi
1692
1693# test whether we have cygpath
1694if test -z "$CYGPATH_W"; then
1695  if (cygpath --version) >/dev/null 2>/dev/null; then
1696    CYGPATH_W='cygpath -w'
1697  else
1698    CYGPATH_W=echo
1699  fi
1700fi
1701
1702
1703# Define the identity of the package.
1704 PACKAGE=icegenerator
1705 VERSION=0.5.5
1706
1707
1708cat >>confdefs.h <<_ACEOF
1709#define PACKAGE "$PACKAGE"
1710_ACEOF
1711
1712
1713cat >>confdefs.h <<_ACEOF
1714#define VERSION "$VERSION"
1715_ACEOF
1716
1717# Some tools Automake needs.
1718
1719ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1720
1721
1722AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1723
1724
1725AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1726
1727
1728AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1729
1730
1731MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1732
1733install_sh=${install_sh-"$am_aux_dir/install-sh"}
1734
1735# Installed binaries are usually stripped using `strip' when the user
1736# run `make install-strip'.  However `strip' might not be the right
1737# tool to use in cross-compilation environments, therefore Automake
1738# will honor the `STRIP' environment variable to overrule this program.
1739if test "$cross_compiling" != no; then
1740  if test -n "$ac_tool_prefix"; then
1741  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1742set dummy ${ac_tool_prefix}strip; ac_word=$2
1743echo "$as_me:$LINENO: checking for $ac_word" >&5
1744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745if test "${ac_cv_prog_STRIP+set}" = set; then
1746  echo $ECHO_N "(cached) $ECHO_C" >&6
1747else
1748  if test -n "$STRIP"; then
1749  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1750else
1751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752for as_dir in $PATH
1753do
1754  IFS=$as_save_IFS
1755  test -z "$as_dir" && as_dir=.
1756  for ac_exec_ext in '' $ac_executable_extensions; do
1757  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1759    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760    break 2
1761  fi
1762done
1763done
1764
1765fi
1766fi
1767STRIP=$ac_cv_prog_STRIP
1768if test -n "$STRIP"; then
1769  echo "$as_me:$LINENO: result: $STRIP" >&5
1770echo "${ECHO_T}$STRIP" >&6
1771else
1772  echo "$as_me:$LINENO: result: no" >&5
1773echo "${ECHO_T}no" >&6
1774fi
1775
1776fi
1777if test -z "$ac_cv_prog_STRIP"; then
1778  ac_ct_STRIP=$STRIP
1779  # Extract the first word of "strip", so it can be a program name with args.
1780set dummy strip; ac_word=$2
1781echo "$as_me:$LINENO: checking for $ac_word" >&5
1782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1783if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1784  echo $ECHO_N "(cached) $ECHO_C" >&6
1785else
1786  if test -n "$ac_ct_STRIP"; then
1787  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1788else
1789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790for as_dir in $PATH
1791do
1792  IFS=$as_save_IFS
1793  test -z "$as_dir" && as_dir=.
1794  for ac_exec_ext in '' $ac_executable_extensions; do
1795  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1796    ac_cv_prog_ac_ct_STRIP="strip"
1797    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798    break 2
1799  fi
1800done
1801done
1802
1803  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1804fi
1805fi
1806ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1807if test -n "$ac_ct_STRIP"; then
1808  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1809echo "${ECHO_T}$ac_ct_STRIP" >&6
1810else
1811  echo "$as_me:$LINENO: result: no" >&5
1812echo "${ECHO_T}no" >&6
1813fi
1814
1815  STRIP=$ac_ct_STRIP
1816else
1817  STRIP="$ac_cv_prog_STRIP"
1818fi
1819
1820fi
1821INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1822
1823# We need awk for the "check" target.  The system "awk" is bad on
1824# some platforms.
1825# Always define AMTAR for backward compatibility.
1826
1827AMTAR=${AMTAR-"${am_missing_run}tar"}
1828
1829am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1830
1831
1832
1833
1834
1835          ac_config_headers="$ac_config_headers config.h"
1836
1837echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1838echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1839# Just in case
1840sleep 1
1841echo timestamp > conftest.file
1842# Do `set' in a subshell so we don't clobber the current shell's
1843# arguments.  Must try -L first in case configure is actually a
1844# symlink; some systems play weird games with the mod time of symlinks
1845# (eg FreeBSD returns the mod time of the symlink's containing
1846# directory).
1847if (
1848   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1849   if test "$*" = "X"; then
1850      # -L didn't work.
1851      set X `ls -t $srcdir/configure conftest.file`
1852   fi
1853   rm -f conftest.file
1854   if test "$*" != "X $srcdir/configure conftest.file" \
1855      && test "$*" != "X conftest.file $srcdir/configure"; then
1856
1857      # If neither matched, then we have a broken ls.  This can happen
1858      # if, for instance, CONFIG_SHELL is bash and it inherits a
1859      # broken ls alias from the environment.  This has actually
1860      # happened.  Such a system could not be considered "sane".
1861      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1862alias in your environment" >&5
1863echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1864alias in your environment" >&2;}
1865   { (exit 1); exit 1; }; }
1866   fi
1867
1868   test "$2" = conftest.file
1869   )
1870then
1871   # Ok.
1872   :
1873else
1874   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1875Check your system clock" >&5
1876echo "$as_me: error: newly created file is older than distributed files!
1877Check your system clock" >&2;}
1878   { (exit 1); exit 1; }; }
1879fi
1880echo "$as_me:$LINENO: result: yes" >&5
1881echo "${ECHO_T}yes" >&6
1882echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1883echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1884    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1885if test "${enable_maintainer_mode+set}" = set; then
1886  enableval="$enable_maintainer_mode"
1887  USE_MAINTAINER_MODE=$enableval
1888else
1889  USE_MAINTAINER_MODE=no
1890fi;
1891  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1892echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1893
1894
1895if test $USE_MAINTAINER_MODE = yes; then
1896  MAINTAINER_MODE_TRUE=
1897  MAINTAINER_MODE_FALSE='#'
1898else
1899  MAINTAINER_MODE_TRUE='#'
1900  MAINTAINER_MODE_FALSE=
1901fi
1902
1903  MAINT=$MAINTAINER_MODE_TRUE
1904
1905
1906
1907MAJOR_VERSION=0
1908MINOR_VERSION=5
1909RELEASE_VERSION=5
1910VERSION="$MAJOR_VERSION.$MINOR_VERSION.$RELEASE_VERSION"
1911
1912if test "x$prefix" = xNONE; then
1913  prefix=`eval echo ${ac_default_prefix}`
1914fi
1915
1916if test "x$exec_prefix" = xNONE; then
1917  exec_prefix=`eval echo ${ac_default_prefix}`
1918fi
1919
1920CXXFLAGS="-ansi -pedantic"
1921
1922# Find a good install program.  We prefer a C program (faster),
1923# so one script is as good as another.  But avoid the broken or
1924# incompatible versions:
1925# SysV /etc/install, /usr/sbin/install
1926# SunOS /usr/etc/install
1927# IRIX /sbin/install
1928# AIX /bin/install
1929# AmigaOS /C/install, which installs bootblocks on floppy discs
1930# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1931# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1932# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1933# OS/2's system install, which has a completely different semantic
1934# ./install, which can be erroneously created by make from ./install.sh.
1935echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1936echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1937if test -z "$INSTALL"; then
1938if test "${ac_cv_path_install+set}" = set; then
1939  echo $ECHO_N "(cached) $ECHO_C" >&6
1940else
1941  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942for as_dir in $PATH
1943do
1944  IFS=$as_save_IFS
1945  test -z "$as_dir" && as_dir=.
1946  # Account for people who put trailing slashes in PATH elements.
1947case $as_dir/ in
1948  ./ | .// | /cC/* | \
1949  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1950  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1951  /usr/ucb/* ) ;;
1952  *)
1953    # OSF1 and SCO ODT 3.0 have their own names for install.
1954    # Don't use installbsd from OSF since it installs stuff as root
1955    # by default.
1956    for ac_prog in ginstall scoinst install; do
1957      for ac_exec_ext in '' $ac_executable_extensions; do
1958	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1959	  if test $ac_prog = install &&
1960	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1961	    # AIX install.  It has an incompatible calling convention.
1962	    :
1963	  elif test $ac_prog = install &&
1964	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1965	    # program-specific install script used by HP pwplus--don't use.
1966	    :
1967	  else
1968	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1969	    break 3
1970	  fi
1971	fi
1972      done
1973    done
1974    ;;
1975esac
1976done
1977
1978
1979fi
1980  if test "${ac_cv_path_install+set}" = set; then
1981    INSTALL=$ac_cv_path_install
1982  else
1983    # As a last resort, use the slow shell script.  We don't cache a
1984    # path for INSTALL within a source directory, because that will
1985    # break other packages using the cache if that directory is
1986    # removed, or if the path is relative.
1987    INSTALL=$ac_install_sh
1988  fi
1989fi
1990echo "$as_me:$LINENO: result: $INSTALL" >&5
1991echo "${ECHO_T}$INSTALL" >&6
1992
1993# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1994# It thinks the first close brace ends the variable substitution.
1995test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1996
1997test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1998
1999test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2000
2001ac_ext=c
2002ac_cpp='$CPP $CPPFLAGS'
2003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2005ac_compiler_gnu=$ac_cv_c_compiler_gnu
2006if test -n "$ac_tool_prefix"; then
2007  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2008set dummy ${ac_tool_prefix}gcc; ac_word=$2
2009echo "$as_me:$LINENO: checking for $ac_word" >&5
2010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011if test "${ac_cv_prog_CC+set}" = set; then
2012  echo $ECHO_N "(cached) $ECHO_C" >&6
2013else
2014  if test -n "$CC"; then
2015  ac_cv_prog_CC="$CC" # Let the user override the test.
2016else
2017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018for as_dir in $PATH
2019do
2020  IFS=$as_save_IFS
2021  test -z "$as_dir" && as_dir=.
2022  for ac_exec_ext in '' $ac_executable_extensions; do
2023  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2025    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026    break 2
2027  fi
2028done
2029done
2030
2031fi
2032fi
2033CC=$ac_cv_prog_CC
2034if test -n "$CC"; then
2035  echo "$as_me:$LINENO: result: $CC" >&5
2036echo "${ECHO_T}$CC" >&6
2037else
2038  echo "$as_me:$LINENO: result: no" >&5
2039echo "${ECHO_T}no" >&6
2040fi
2041
2042fi
2043if test -z "$ac_cv_prog_CC"; then
2044  ac_ct_CC=$CC
2045  # Extract the first word of "gcc", so it can be a program name with args.
2046set dummy gcc; ac_word=$2
2047echo "$as_me:$LINENO: checking for $ac_word" >&5
2048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2050  echo $ECHO_N "(cached) $ECHO_C" >&6
2051else
2052  if test -n "$ac_ct_CC"; then
2053  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2054else
2055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056for as_dir in $PATH
2057do
2058  IFS=$as_save_IFS
2059  test -z "$as_dir" && as_dir=.
2060  for ac_exec_ext in '' $ac_executable_extensions; do
2061  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062    ac_cv_prog_ac_ct_CC="gcc"
2063    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064    break 2
2065  fi
2066done
2067done
2068
2069fi
2070fi
2071ac_ct_CC=$ac_cv_prog_ac_ct_CC
2072if test -n "$ac_ct_CC"; then
2073  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2074echo "${ECHO_T}$ac_ct_CC" >&6
2075else
2076  echo "$as_me:$LINENO: result: no" >&5
2077echo "${ECHO_T}no" >&6
2078fi
2079
2080  CC=$ac_ct_CC
2081else
2082  CC="$ac_cv_prog_CC"
2083fi
2084
2085if test -z "$CC"; then
2086  if test -n "$ac_tool_prefix"; then
2087  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2088set dummy ${ac_tool_prefix}cc; ac_word=$2
2089echo "$as_me:$LINENO: checking for $ac_word" >&5
2090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2091if test "${ac_cv_prog_CC+set}" = set; then
2092  echo $ECHO_N "(cached) $ECHO_C" >&6
2093else
2094  if test -n "$CC"; then
2095  ac_cv_prog_CC="$CC" # Let the user override the test.
2096else
2097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098for as_dir in $PATH
2099do
2100  IFS=$as_save_IFS
2101  test -z "$as_dir" && as_dir=.
2102  for ac_exec_ext in '' $ac_executable_extensions; do
2103  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2104    ac_cv_prog_CC="${ac_tool_prefix}cc"
2105    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106    break 2
2107  fi
2108done
2109done
2110
2111fi
2112fi
2113CC=$ac_cv_prog_CC
2114if test -n "$CC"; then
2115  echo "$as_me:$LINENO: result: $CC" >&5
2116echo "${ECHO_T}$CC" >&6
2117else
2118  echo "$as_me:$LINENO: result: no" >&5
2119echo "${ECHO_T}no" >&6
2120fi
2121
2122fi
2123if test -z "$ac_cv_prog_CC"; then
2124  ac_ct_CC=$CC
2125  # Extract the first word of "cc", so it can be a program name with args.
2126set dummy cc; ac_word=$2
2127echo "$as_me:$LINENO: checking for $ac_word" >&5
2128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2129if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2130  echo $ECHO_N "(cached) $ECHO_C" >&6
2131else
2132  if test -n "$ac_ct_CC"; then
2133  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2134else
2135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136for as_dir in $PATH
2137do
2138  IFS=$as_save_IFS
2139  test -z "$as_dir" && as_dir=.
2140  for ac_exec_ext in '' $ac_executable_extensions; do
2141  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2142    ac_cv_prog_ac_ct_CC="cc"
2143    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2144    break 2
2145  fi
2146done
2147done
2148
2149fi
2150fi
2151ac_ct_CC=$ac_cv_prog_ac_ct_CC
2152if test -n "$ac_ct_CC"; then
2153  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2154echo "${ECHO_T}$ac_ct_CC" >&6
2155else
2156  echo "$as_me:$LINENO: result: no" >&5
2157echo "${ECHO_T}no" >&6
2158fi
2159
2160  CC=$ac_ct_CC
2161else
2162  CC="$ac_cv_prog_CC"
2163fi
2164
2165fi
2166if test -z "$CC"; then
2167  # Extract the first word of "cc", so it can be a program name with args.
2168set dummy cc; ac_word=$2
2169echo "$as_me:$LINENO: checking for $ac_word" >&5
2170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2171if test "${ac_cv_prog_CC+set}" = set; then
2172  echo $ECHO_N "(cached) $ECHO_C" >&6
2173else
2174  if test -n "$CC"; then
2175  ac_cv_prog_CC="$CC" # Let the user override the test.
2176else
2177  ac_prog_rejected=no
2178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179for as_dir in $PATH
2180do
2181  IFS=$as_save_IFS
2182  test -z "$as_dir" && as_dir=.
2183  for ac_exec_ext in '' $ac_executable_extensions; do
2184  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2185    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2186       ac_prog_rejected=yes
2187       continue
2188     fi
2189    ac_cv_prog_CC="cc"
2190    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191    break 2
2192  fi
2193done
2194done
2195
2196if test $ac_prog_rejected = yes; then
2197  # We found a bogon in the path, so make sure we never use it.
2198  set dummy $ac_cv_prog_CC
2199  shift
2200  if test $# != 0; then
2201    # We chose a different compiler from the bogus one.
2202    # However, it has the same basename, so the bogon will be chosen
2203    # first if we set CC to just the basename; use the full file name.
2204    shift
2205    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2206  fi
2207fi
2208fi
2209fi
2210CC=$ac_cv_prog_CC
2211if test -n "$CC"; then
2212  echo "$as_me:$LINENO: result: $CC" >&5
2213echo "${ECHO_T}$CC" >&6
2214else
2215  echo "$as_me:$LINENO: result: no" >&5
2216echo "${ECHO_T}no" >&6
2217fi
2218
2219fi
2220if test -z "$CC"; then
2221  if test -n "$ac_tool_prefix"; then
2222  for ac_prog in cl
2223  do
2224    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2225set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2226echo "$as_me:$LINENO: checking for $ac_word" >&5
2227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2228if test "${ac_cv_prog_CC+set}" = set; then
2229  echo $ECHO_N "(cached) $ECHO_C" >&6
2230else
2231  if test -n "$CC"; then
2232  ac_cv_prog_CC="$CC" # Let the user override the test.
2233else
2234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235for as_dir in $PATH
2236do
2237  IFS=$as_save_IFS
2238  test -z "$as_dir" && as_dir=.
2239  for ac_exec_ext in '' $ac_executable_extensions; do
2240  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2241    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2242    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243    break 2
2244  fi
2245done
2246done
2247
2248fi
2249fi
2250CC=$ac_cv_prog_CC
2251if test -n "$CC"; then
2252  echo "$as_me:$LINENO: result: $CC" >&5
2253echo "${ECHO_T}$CC" >&6
2254else
2255  echo "$as_me:$LINENO: result: no" >&5
2256echo "${ECHO_T}no" >&6
2257fi
2258
2259    test -n "$CC" && break
2260  done
2261fi
2262if test -z "$CC"; then
2263  ac_ct_CC=$CC
2264  for ac_prog in cl
2265do
2266  # Extract the first word of "$ac_prog", so it can be a program name with args.
2267set dummy $ac_prog; ac_word=$2
2268echo "$as_me:$LINENO: checking for $ac_word" >&5
2269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2270if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2271  echo $ECHO_N "(cached) $ECHO_C" >&6
2272else
2273  if test -n "$ac_ct_CC"; then
2274  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2275else
2276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277for as_dir in $PATH
2278do
2279  IFS=$as_save_IFS
2280  test -z "$as_dir" && as_dir=.
2281  for ac_exec_ext in '' $ac_executable_extensions; do
2282  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2283    ac_cv_prog_ac_ct_CC="$ac_prog"
2284    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285    break 2
2286  fi
2287done
2288done
2289
2290fi
2291fi
2292ac_ct_CC=$ac_cv_prog_ac_ct_CC
2293if test -n "$ac_ct_CC"; then
2294  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2295echo "${ECHO_T}$ac_ct_CC" >&6
2296else
2297  echo "$as_me:$LINENO: result: no" >&5
2298echo "${ECHO_T}no" >&6
2299fi
2300
2301  test -n "$ac_ct_CC" && break
2302done
2303
2304  CC=$ac_ct_CC
2305fi
2306
2307fi
2308
2309
2310test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2311See \`config.log' for more details." >&5
2312echo "$as_me: error: no acceptable C compiler found in \$PATH
2313See \`config.log' for more details." >&2;}
2314   { (exit 1); exit 1; }; }
2315
2316# Provide some information about the compiler.
2317echo "$as_me:$LINENO:" \
2318     "checking for C compiler version" >&5
2319ac_compiler=`set X $ac_compile; echo $2`
2320{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2321  (eval $ac_compiler --version </dev/null >&5) 2>&5
2322  ac_status=$?
2323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324  (exit $ac_status); }
2325{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2326  (eval $ac_compiler -v </dev/null >&5) 2>&5
2327  ac_status=$?
2328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329  (exit $ac_status); }
2330{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2331  (eval $ac_compiler -V </dev/null >&5) 2>&5
2332  ac_status=$?
2333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334  (exit $ac_status); }
2335
2336cat >conftest.$ac_ext <<_ACEOF
2337/* confdefs.h.  */
2338_ACEOF
2339cat confdefs.h >>conftest.$ac_ext
2340cat >>conftest.$ac_ext <<_ACEOF
2341/* end confdefs.h.  */
2342
2343int
2344main ()
2345{
2346
2347  ;
2348  return 0;
2349}
2350_ACEOF
2351ac_clean_files_save=$ac_clean_files
2352ac_clean_files="$ac_clean_files a.out a.exe b.out"
2353# Try to create an executable without -o first, disregard a.out.
2354# It will help us diagnose broken compilers, and finding out an intuition
2355# of exeext.
2356echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2357echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2358ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2359if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2360  (eval $ac_link_default) 2>&5
2361  ac_status=$?
2362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363  (exit $ac_status); }; then
2364  # Find the output, starting from the most likely.  This scheme is
2365# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2366# resort.
2367
2368# Be careful to initialize this variable, since it used to be cached.
2369# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2370ac_cv_exeext=
2371# b.out is created by i960 compilers.
2372for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2373do
2374  test -f "$ac_file" || continue
2375  case $ac_file in
2376    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2377	;;
2378    conftest.$ac_ext )
2379	# This is the source file.
2380	;;
2381    [ab].out )
2382	# We found the default executable, but exeext='' is most
2383	# certainly right.
2384	break;;
2385    *.* )
2386	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2387	# FIXME: I believe we export ac_cv_exeext for Libtool,
2388	# but it would be cool to find out if it's true.  Does anybody
2389	# maintain Libtool? --akim.
2390	export ac_cv_exeext
2391	break;;
2392    * )
2393	break;;
2394  esac
2395done
2396else
2397  echo "$as_me: failed program was:" >&5
2398sed 's/^/| /' conftest.$ac_ext >&5
2399
2400{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2401See \`config.log' for more details." >&5
2402echo "$as_me: error: C compiler cannot create executables
2403See \`config.log' for more details." >&2;}
2404   { (exit 77); exit 77; }; }
2405fi
2406
2407ac_exeext=$ac_cv_exeext
2408echo "$as_me:$LINENO: result: $ac_file" >&5
2409echo "${ECHO_T}$ac_file" >&6
2410
2411# Check the compiler produces executables we can run.  If not, either
2412# the compiler is broken, or we cross compile.
2413echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2414echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2415# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2416# If not cross compiling, check that we can run a simple program.
2417if test "$cross_compiling" != yes; then
2418  if { ac_try='./$ac_file'
2419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420  (eval $ac_try) 2>&5
2421  ac_status=$?
2422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); }; }; then
2424    cross_compiling=no
2425  else
2426    if test "$cross_compiling" = maybe; then
2427	cross_compiling=yes
2428    else
2429	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2430If you meant to cross compile, use \`--host'.
2431See \`config.log' for more details." >&5
2432echo "$as_me: error: cannot run C compiled programs.
2433If you meant to cross compile, use \`--host'.
2434See \`config.log' for more details." >&2;}
2435   { (exit 1); exit 1; }; }
2436    fi
2437  fi
2438fi
2439echo "$as_me:$LINENO: result: yes" >&5
2440echo "${ECHO_T}yes" >&6
2441
2442rm -f a.out a.exe conftest$ac_cv_exeext b.out
2443ac_clean_files=$ac_clean_files_save
2444# Check the compiler produces executables we can run.  If not, either
2445# the compiler is broken, or we cross compile.
2446echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2447echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2448echo "$as_me:$LINENO: result: $cross_compiling" >&5
2449echo "${ECHO_T}$cross_compiling" >&6
2450
2451echo "$as_me:$LINENO: checking for suffix of executables" >&5
2452echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2454  (eval $ac_link) 2>&5
2455  ac_status=$?
2456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457  (exit $ac_status); }; then
2458  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2459# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2460# work properly (i.e., refer to `conftest.exe'), while it won't with
2461# `rm'.
2462for ac_file in conftest.exe conftest conftest.*; do
2463  test -f "$ac_file" || continue
2464  case $ac_file in
2465    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2466    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2467	  export ac_cv_exeext
2468	  break;;
2469    * ) break;;
2470  esac
2471done
2472else
2473  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2474See \`config.log' for more details." >&5
2475echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2476See \`config.log' for more details." >&2;}
2477   { (exit 1); exit 1; }; }
2478fi
2479
2480rm -f conftest$ac_cv_exeext
2481echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2482echo "${ECHO_T}$ac_cv_exeext" >&6
2483
2484rm -f conftest.$ac_ext
2485EXEEXT=$ac_cv_exeext
2486ac_exeext=$EXEEXT
2487echo "$as_me:$LINENO: checking for suffix of object files" >&5
2488echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2489if test "${ac_cv_objext+set}" = set; then
2490  echo $ECHO_N "(cached) $ECHO_C" >&6
2491else
2492  cat >conftest.$ac_ext <<_ACEOF
2493/* confdefs.h.  */
2494_ACEOF
2495cat confdefs.h >>conftest.$ac_ext
2496cat >>conftest.$ac_ext <<_ACEOF
2497/* end confdefs.h.  */
2498
2499int
2500main ()
2501{
2502
2503  ;
2504  return 0;
2505}
2506_ACEOF
2507rm -f conftest.o conftest.obj
2508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509  (eval $ac_compile) 2>&5
2510  ac_status=$?
2511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512  (exit $ac_status); }; then
2513  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2514  case $ac_file in
2515    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2516    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2517       break;;
2518  esac
2519done
2520else
2521  echo "$as_me: failed program was:" >&5
2522sed 's/^/| /' conftest.$ac_ext >&5
2523
2524{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2525See \`config.log' for more details." >&5
2526echo "$as_me: error: cannot compute suffix of object files: cannot compile
2527See \`config.log' for more details." >&2;}
2528   { (exit 1); exit 1; }; }
2529fi
2530
2531rm -f conftest.$ac_cv_objext conftest.$ac_ext
2532fi
2533echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2534echo "${ECHO_T}$ac_cv_objext" >&6
2535OBJEXT=$ac_cv_objext
2536ac_objext=$OBJEXT
2537echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2538echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2539if test "${ac_cv_c_compiler_gnu+set}" = set; then
2540  echo $ECHO_N "(cached) $ECHO_C" >&6
2541else
2542  cat >conftest.$ac_ext <<_ACEOF
2543/* confdefs.h.  */
2544_ACEOF
2545cat confdefs.h >>conftest.$ac_ext
2546cat >>conftest.$ac_ext <<_ACEOF
2547/* end confdefs.h.  */
2548
2549int
2550main ()
2551{
2552#ifndef __GNUC__
2553       choke me
2554#endif
2555
2556  ;
2557  return 0;
2558}
2559_ACEOF
2560rm -f conftest.$ac_objext
2561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562  (eval $ac_compile) 2>conftest.er1
2563  ac_status=$?
2564  grep -v '^ *+' conftest.er1 >conftest.err
2565  rm -f conftest.er1
2566  cat conftest.err >&5
2567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568  (exit $ac_status); } &&
2569	 { ac_try='test -z "$ac_c_werror_flag"
2570			 || test ! -s conftest.err'
2571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572  (eval $ac_try) 2>&5
2573  ac_status=$?
2574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575  (exit $ac_status); }; } &&
2576	 { ac_try='test -s conftest.$ac_objext'
2577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578  (eval $ac_try) 2>&5
2579  ac_status=$?
2580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581  (exit $ac_status); }; }; then
2582  ac_compiler_gnu=yes
2583else
2584  echo "$as_me: failed program was:" >&5
2585sed 's/^/| /' conftest.$ac_ext >&5
2586
2587ac_compiler_gnu=no
2588fi
2589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2590ac_cv_c_compiler_gnu=$ac_compiler_gnu
2591
2592fi
2593echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2594echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2595GCC=`test $ac_compiler_gnu = yes && echo yes`
2596ac_test_CFLAGS=${CFLAGS+set}
2597ac_save_CFLAGS=$CFLAGS
2598CFLAGS="-g"
2599echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2600echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2601if test "${ac_cv_prog_cc_g+set}" = set; then
2602  echo $ECHO_N "(cached) $ECHO_C" >&6
2603else
2604  cat >conftest.$ac_ext <<_ACEOF
2605/* confdefs.h.  */
2606_ACEOF
2607cat confdefs.h >>conftest.$ac_ext
2608cat >>conftest.$ac_ext <<_ACEOF
2609/* end confdefs.h.  */
2610
2611int
2612main ()
2613{
2614
2615  ;
2616  return 0;
2617}
2618_ACEOF
2619rm -f conftest.$ac_objext
2620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621  (eval $ac_compile) 2>conftest.er1
2622  ac_status=$?
2623  grep -v '^ *+' conftest.er1 >conftest.err
2624  rm -f conftest.er1
2625  cat conftest.err >&5
2626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627  (exit $ac_status); } &&
2628	 { ac_try='test -z "$ac_c_werror_flag"
2629			 || test ! -s conftest.err'
2630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631  (eval $ac_try) 2>&5
2632  ac_status=$?
2633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634  (exit $ac_status); }; } &&
2635	 { ac_try='test -s conftest.$ac_objext'
2636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637  (eval $ac_try) 2>&5
2638  ac_status=$?
2639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640  (exit $ac_status); }; }; then
2641  ac_cv_prog_cc_g=yes
2642else
2643  echo "$as_me: failed program was:" >&5
2644sed 's/^/| /' conftest.$ac_ext >&5
2645
2646ac_cv_prog_cc_g=no
2647fi
2648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2649fi
2650echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2651echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2652if test "$ac_test_CFLAGS" = set; then
2653  CFLAGS=$ac_save_CFLAGS
2654elif test $ac_cv_prog_cc_g = yes; then
2655  if test "$GCC" = yes; then
2656    CFLAGS="-g -O2"
2657  else
2658    CFLAGS="-g"
2659  fi
2660else
2661  if test "$GCC" = yes; then
2662    CFLAGS="-O2"
2663  else
2664    CFLAGS=
2665  fi
2666fi
2667echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2668echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2669if test "${ac_cv_prog_cc_stdc+set}" = set; then
2670  echo $ECHO_N "(cached) $ECHO_C" >&6
2671else
2672  ac_cv_prog_cc_stdc=no
2673ac_save_CC=$CC
2674cat >conftest.$ac_ext <<_ACEOF
2675/* confdefs.h.  */
2676_ACEOF
2677cat confdefs.h >>conftest.$ac_ext
2678cat >>conftest.$ac_ext <<_ACEOF
2679/* end confdefs.h.  */
2680#include <stdarg.h>
2681#include <stdio.h>
2682#include <sys/types.h>
2683#include <sys/stat.h>
2684/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2685struct buf { int x; };
2686FILE * (*rcsopen) (struct buf *, struct stat *, int);
2687static char *e (p, i)
2688     char **p;
2689     int i;
2690{
2691  return p[i];
2692}
2693static char *f (char * (*g) (char **, int), char **p, ...)
2694{
2695  char *s;
2696  va_list v;
2697  va_start (v,p);
2698  s = g (p, va_arg (v,int));
2699  va_end (v);
2700  return s;
2701}
2702
2703/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2704   function prototypes and stuff, but not '\xHH' hex character constants.
2705   These don't provoke an error unfortunately, instead are silently treated
2706   as 'x'.  The following induces an error, until -std1 is added to get
2707   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2708   array size at least.  It's necessary to write '\x00'==0 to get something
2709   that's true only with -std1.  */
2710int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2711
2712int test (int i, double x);
2713struct s1 {int (*f) (int a);};
2714struct s2 {int (*f) (double a);};
2715int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2716int argc;
2717char **argv;
2718int
2719main ()
2720{
2721return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2722  ;
2723  return 0;
2724}
2725_ACEOF
2726# Don't try gcc -ansi; that turns off useful extensions and
2727# breaks some systems' header files.
2728# AIX			-qlanglvl=ansi
2729# Ultrix and OSF/1	-std1
2730# HP-UX 10.20 and later	-Ae
2731# HP-UX older versions	-Aa -D_HPUX_SOURCE
2732# SVR4			-Xc -D__EXTENSIONS__
2733for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2734do
2735  CC="$ac_save_CC $ac_arg"
2736  rm -f conftest.$ac_objext
2737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738  (eval $ac_compile) 2>conftest.er1
2739  ac_status=$?
2740  grep -v '^ *+' conftest.er1 >conftest.err
2741  rm -f conftest.er1
2742  cat conftest.err >&5
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); } &&
2745	 { ac_try='test -z "$ac_c_werror_flag"
2746			 || test ! -s conftest.err'
2747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748  (eval $ac_try) 2>&5
2749  ac_status=$?
2750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751  (exit $ac_status); }; } &&
2752	 { ac_try='test -s conftest.$ac_objext'
2753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754  (eval $ac_try) 2>&5
2755  ac_status=$?
2756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757  (exit $ac_status); }; }; then
2758  ac_cv_prog_cc_stdc=$ac_arg
2759break
2760else
2761  echo "$as_me: failed program was:" >&5
2762sed 's/^/| /' conftest.$ac_ext >&5
2763
2764fi
2765rm -f conftest.err conftest.$ac_objext
2766done
2767rm -f conftest.$ac_ext conftest.$ac_objext
2768CC=$ac_save_CC
2769
2770fi
2771
2772case "x$ac_cv_prog_cc_stdc" in
2773  x|xno)
2774    echo "$as_me:$LINENO: result: none needed" >&5
2775echo "${ECHO_T}none needed" >&6 ;;
2776  *)
2777    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2778echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2779    CC="$CC $ac_cv_prog_cc_stdc" ;;
2780esac
2781
2782# Some people use a C++ compiler to compile C.  Since we use `exit',
2783# in C++ we need to declare it.  In case someone uses the same compiler
2784# for both compiling C and C++ we need to have the C++ compiler decide
2785# the declaration of exit, since it's the most demanding environment.
2786cat >conftest.$ac_ext <<_ACEOF
2787#ifndef __cplusplus
2788  choke me
2789#endif
2790_ACEOF
2791rm -f conftest.$ac_objext
2792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2793  (eval $ac_compile) 2>conftest.er1
2794  ac_status=$?
2795  grep -v '^ *+' conftest.er1 >conftest.err
2796  rm -f conftest.er1
2797  cat conftest.err >&5
2798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799  (exit $ac_status); } &&
2800	 { ac_try='test -z "$ac_c_werror_flag"
2801			 || test ! -s conftest.err'
2802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803  (eval $ac_try) 2>&5
2804  ac_status=$?
2805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806  (exit $ac_status); }; } &&
2807	 { ac_try='test -s conftest.$ac_objext'
2808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809  (eval $ac_try) 2>&5
2810  ac_status=$?
2811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812  (exit $ac_status); }; }; then
2813  for ac_declaration in \
2814   '' \
2815   'extern "C" void std::exit (int) throw (); using std::exit;' \
2816   'extern "C" void std::exit (int); using std::exit;' \
2817   'extern "C" void exit (int) throw ();' \
2818   'extern "C" void exit (int);' \
2819   'void exit (int);'
2820do
2821  cat >conftest.$ac_ext <<_ACEOF
2822/* confdefs.h.  */
2823_ACEOF
2824cat confdefs.h >>conftest.$ac_ext
2825cat >>conftest.$ac_ext <<_ACEOF
2826/* end confdefs.h.  */
2827$ac_declaration
2828#include <stdlib.h>
2829int
2830main ()
2831{
2832exit (42);
2833  ;
2834  return 0;
2835}
2836_ACEOF
2837rm -f conftest.$ac_objext
2838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2839  (eval $ac_compile) 2>conftest.er1
2840  ac_status=$?
2841  grep -v '^ *+' conftest.er1 >conftest.err
2842  rm -f conftest.er1
2843  cat conftest.err >&5
2844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845  (exit $ac_status); } &&
2846	 { ac_try='test -z "$ac_c_werror_flag"
2847			 || test ! -s conftest.err'
2848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849  (eval $ac_try) 2>&5
2850  ac_status=$?
2851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852  (exit $ac_status); }; } &&
2853	 { ac_try='test -s conftest.$ac_objext'
2854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855  (eval $ac_try) 2>&5
2856  ac_status=$?
2857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858  (exit $ac_status); }; }; then
2859  :
2860else
2861  echo "$as_me: failed program was:" >&5
2862sed 's/^/| /' conftest.$ac_ext >&5
2863
2864continue
2865fi
2866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2867  cat >conftest.$ac_ext <<_ACEOF
2868/* confdefs.h.  */
2869_ACEOF
2870cat confdefs.h >>conftest.$ac_ext
2871cat >>conftest.$ac_ext <<_ACEOF
2872/* end confdefs.h.  */
2873$ac_declaration
2874int
2875main ()
2876{
2877exit (42);
2878  ;
2879  return 0;
2880}
2881_ACEOF
2882rm -f conftest.$ac_objext
2883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2884  (eval $ac_compile) 2>conftest.er1
2885  ac_status=$?
2886  grep -v '^ *+' conftest.er1 >conftest.err
2887  rm -f conftest.er1
2888  cat conftest.err >&5
2889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890  (exit $ac_status); } &&
2891	 { ac_try='test -z "$ac_c_werror_flag"
2892			 || test ! -s conftest.err'
2893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894  (eval $ac_try) 2>&5
2895  ac_status=$?
2896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897  (exit $ac_status); }; } &&
2898	 { ac_try='test -s conftest.$ac_objext'
2899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900  (eval $ac_try) 2>&5
2901  ac_status=$?
2902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903  (exit $ac_status); }; }; then
2904  break
2905else
2906  echo "$as_me: failed program was:" >&5
2907sed 's/^/| /' conftest.$ac_ext >&5
2908
2909fi
2910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2911done
2912rm -f conftest*
2913if test -n "$ac_declaration"; then
2914  echo '#ifdef __cplusplus' >>confdefs.h
2915  echo $ac_declaration      >>confdefs.h
2916  echo '#endif'             >>confdefs.h
2917fi
2918
2919else
2920  echo "$as_me: failed program was:" >&5
2921sed 's/^/| /' conftest.$ac_ext >&5
2922
2923fi
2924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2925ac_ext=c
2926ac_cpp='$CPP $CPPFLAGS'
2927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930DEPDIR="${am__leading_dot}deps"
2931
2932          ac_config_commands="$ac_config_commands depfiles"
2933
2934
2935am_make=${MAKE-make}
2936cat > confinc << 'END'
2937am__doit:
2938	@echo done
2939.PHONY: am__doit
2940END
2941# If we don't find an include directive, just comment out the code.
2942echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2943echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2944am__include="#"
2945am__quote=
2946_am_result=none
2947# First try GNU make style include.
2948echo "include confinc" > confmf
2949# We grep out `Entering directory' and `Leaving directory'
2950# messages which can occur if `w' ends up in MAKEFLAGS.
2951# In particular we don't look at `^make:' because GNU make might
2952# be invoked under some other name (usually "gmake"), in which
2953# case it prints its new name instead of `make'.
2954if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2955   am__include=include
2956   am__quote=
2957   _am_result=GNU
2958fi
2959# Now try BSD make style include.
2960if test "$am__include" = "#"; then
2961   echo '.include "confinc"' > confmf
2962   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2963      am__include=.include
2964      am__quote="\""
2965      _am_result=BSD
2966   fi
2967fi
2968
2969
2970echo "$as_me:$LINENO: result: $_am_result" >&5
2971echo "${ECHO_T}$_am_result" >&6
2972rm -f confinc confmf
2973
2974# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2975if test "${enable_dependency_tracking+set}" = set; then
2976  enableval="$enable_dependency_tracking"
2977
2978fi;
2979if test "x$enable_dependency_tracking" != xno; then
2980  am_depcomp="$ac_aux_dir/depcomp"
2981  AMDEPBACKSLASH='\'
2982fi
2983
2984
2985if test "x$enable_dependency_tracking" != xno; then
2986  AMDEP_TRUE=
2987  AMDEP_FALSE='#'
2988else
2989  AMDEP_TRUE='#'
2990  AMDEP_FALSE=
2991fi
2992
2993
2994
2995
2996depcc="$CC"   am_compiler_list=
2997
2998echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2999echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3000if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3001  echo $ECHO_N "(cached) $ECHO_C" >&6
3002else
3003  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3004  # We make a subdir and do the tests there.  Otherwise we can end up
3005  # making bogus files that we don't know about and never remove.  For
3006  # instance it was reported that on HP-UX the gcc test will end up
3007  # making a dummy file named `D' -- because `-MD' means `put the output
3008  # in D'.
3009  mkdir conftest.dir
3010  # Copy depcomp to subdir because otherwise we won't find it if we're
3011  # using a relative directory.
3012  cp "$am_depcomp" conftest.dir
3013  cd conftest.dir
3014  # We will build objects and dependencies in a subdirectory because
3015  # it helps to detect inapplicable dependency modes.  For instance
3016  # both Tru64's cc and ICC support -MD to output dependencies as a
3017  # side effect of compilation, but ICC will put the dependencies in
3018  # the current directory while Tru64 will put them in the object
3019  # directory.
3020  mkdir sub
3021
3022  am_cv_CC_dependencies_compiler_type=none
3023  if test "$am_compiler_list" = ""; then
3024     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3025  fi
3026  for depmode in $am_compiler_list; do
3027    # Setup a source with many dependencies, because some compilers
3028    # like to wrap large dependency lists on column 80 (with \), and
3029    # we should not choose a depcomp mode which is confused by this.
3030    #
3031    # We need to recreate these files for each test, as the compiler may
3032    # overwrite some of them when testing with obscure command lines.
3033    # This happens at least with the AIX C compiler.
3034    : > sub/conftest.c
3035    for i in 1 2 3 4 5 6; do
3036      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3037      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3038      # Solaris 8's {/usr,}/bin/sh.
3039      touch sub/conftst$i.h
3040    done
3041    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3042
3043    case $depmode in
3044    nosideeffect)
3045      # after this tag, mechanisms are not by side-effect, so they'll
3046      # only be used when explicitly requested
3047      if test "x$enable_dependency_tracking" = xyes; then
3048	continue
3049      else
3050	break
3051      fi
3052      ;;
3053    none) break ;;
3054    esac
3055    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3056    # mode.  It turns out that the SunPro C++ compiler does not properly
3057    # handle `-M -o', and we need to detect this.
3058    if depmode=$depmode \
3059       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3060       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3061       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3062         >/dev/null 2>conftest.err &&
3063       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3064       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3065       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3066      # icc doesn't choke on unknown options, it will just issue warnings
3067      # or remarks (even with -Werror).  So we grep stderr for any message
3068      # that says an option was ignored or not supported.
3069      # When given -MP, icc 7.0 and 7.1 complain thusly:
3070      #   icc: Command line warning: ignoring option '-M'; no argument required
3071      # The diagnosis changed in icc 8.0:
3072      #   icc: Command line remark: option '-MP' not supported
3073      if (grep 'ignoring option' conftest.err ||
3074          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3075        am_cv_CC_dependencies_compiler_type=$depmode
3076        break
3077      fi
3078    fi
3079  done
3080
3081  cd ..
3082  rm -rf conftest.dir
3083else
3084  am_cv_CC_dependencies_compiler_type=none
3085fi
3086
3087fi
3088echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3089echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3090CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3091
3092
3093
3094if
3095  test "x$enable_dependency_tracking" != xno \
3096  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3097  am__fastdepCC_TRUE=
3098  am__fastdepCC_FALSE='#'
3099else
3100  am__fastdepCC_TRUE='#'
3101  am__fastdepCC_FALSE=
3102fi
3103
3104
3105ac_ext=c
3106ac_cpp='$CPP $CPPFLAGS'
3107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109ac_compiler_gnu=$ac_cv_c_compiler_gnu
3110if test -n "$ac_tool_prefix"; then
3111  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3112set dummy ${ac_tool_prefix}gcc; ac_word=$2
3113echo "$as_me:$LINENO: checking for $ac_word" >&5
3114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3115if test "${ac_cv_prog_CC+set}" = set; then
3116  echo $ECHO_N "(cached) $ECHO_C" >&6
3117else
3118  if test -n "$CC"; then
3119  ac_cv_prog_CC="$CC" # Let the user override the test.
3120else
3121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122for as_dir in $PATH
3123do
3124  IFS=$as_save_IFS
3125  test -z "$as_dir" && as_dir=.
3126  for ac_exec_ext in '' $ac_executable_extensions; do
3127  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3129    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3130    break 2
3131  fi
3132done
3133done
3134
3135fi
3136fi
3137CC=$ac_cv_prog_CC
3138if test -n "$CC"; then
3139  echo "$as_me:$LINENO: result: $CC" >&5
3140echo "${ECHO_T}$CC" >&6
3141else
3142  echo "$as_me:$LINENO: result: no" >&5
3143echo "${ECHO_T}no" >&6
3144fi
3145
3146fi
3147if test -z "$ac_cv_prog_CC"; then
3148  ac_ct_CC=$CC
3149  # Extract the first word of "gcc", so it can be a program name with args.
3150set dummy gcc; ac_word=$2
3151echo "$as_me:$LINENO: checking for $ac_word" >&5
3152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3153if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3154  echo $ECHO_N "(cached) $ECHO_C" >&6
3155else
3156  if test -n "$ac_ct_CC"; then
3157  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3158else
3159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160for as_dir in $PATH
3161do
3162  IFS=$as_save_IFS
3163  test -z "$as_dir" && as_dir=.
3164  for ac_exec_ext in '' $ac_executable_extensions; do
3165  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166    ac_cv_prog_ac_ct_CC="gcc"
3167    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168    break 2
3169  fi
3170done
3171done
3172
3173fi
3174fi
3175ac_ct_CC=$ac_cv_prog_ac_ct_CC
3176if test -n "$ac_ct_CC"; then
3177  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3178echo "${ECHO_T}$ac_ct_CC" >&6
3179else
3180  echo "$as_me:$LINENO: result: no" >&5
3181echo "${ECHO_T}no" >&6
3182fi
3183
3184  CC=$ac_ct_CC
3185else
3186  CC="$ac_cv_prog_CC"
3187fi
3188
3189if test -z "$CC"; then
3190  if test -n "$ac_tool_prefix"; then
3191  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3192set dummy ${ac_tool_prefix}cc; ac_word=$2
3193echo "$as_me:$LINENO: checking for $ac_word" >&5
3194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3195if test "${ac_cv_prog_CC+set}" = set; then
3196  echo $ECHO_N "(cached) $ECHO_C" >&6
3197else
3198  if test -n "$CC"; then
3199  ac_cv_prog_CC="$CC" # Let the user override the test.
3200else
3201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202for as_dir in $PATH
3203do
3204  IFS=$as_save_IFS
3205  test -z "$as_dir" && as_dir=.
3206  for ac_exec_ext in '' $ac_executable_extensions; do
3207  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3208    ac_cv_prog_CC="${ac_tool_prefix}cc"
3209    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3210    break 2
3211  fi
3212done
3213done
3214
3215fi
3216fi
3217CC=$ac_cv_prog_CC
3218if test -n "$CC"; then
3219  echo "$as_me:$LINENO: result: $CC" >&5
3220echo "${ECHO_T}$CC" >&6
3221else
3222  echo "$as_me:$LINENO: result: no" >&5
3223echo "${ECHO_T}no" >&6
3224fi
3225
3226fi
3227if test -z "$ac_cv_prog_CC"; then
3228  ac_ct_CC=$CC
3229  # Extract the first word of "cc", so it can be a program name with args.
3230set dummy cc; ac_word=$2
3231echo "$as_me:$LINENO: checking for $ac_word" >&5
3232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3233if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3234  echo $ECHO_N "(cached) $ECHO_C" >&6
3235else
3236  if test -n "$ac_ct_CC"; then
3237  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3238else
3239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240for as_dir in $PATH
3241do
3242  IFS=$as_save_IFS
3243  test -z "$as_dir" && as_dir=.
3244  for ac_exec_ext in '' $ac_executable_extensions; do
3245  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3246    ac_cv_prog_ac_ct_CC="cc"
3247    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3248    break 2
3249  fi
3250done
3251done
3252
3253fi
3254fi
3255ac_ct_CC=$ac_cv_prog_ac_ct_CC
3256if test -n "$ac_ct_CC"; then
3257  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3258echo "${ECHO_T}$ac_ct_CC" >&6
3259else
3260  echo "$as_me:$LINENO: result: no" >&5
3261echo "${ECHO_T}no" >&6
3262fi
3263
3264  CC=$ac_ct_CC
3265else
3266  CC="$ac_cv_prog_CC"
3267fi
3268
3269fi
3270if test -z "$CC"; then
3271  # Extract the first word of "cc", so it can be a program name with args.
3272set dummy cc; ac_word=$2
3273echo "$as_me:$LINENO: checking for $ac_word" >&5
3274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3275if test "${ac_cv_prog_CC+set}" = set; then
3276  echo $ECHO_N "(cached) $ECHO_C" >&6
3277else
3278  if test -n "$CC"; then
3279  ac_cv_prog_CC="$CC" # Let the user override the test.
3280else
3281  ac_prog_rejected=no
3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH
3284do
3285  IFS=$as_save_IFS
3286  test -z "$as_dir" && as_dir=.
3287  for ac_exec_ext in '' $ac_executable_extensions; do
3288  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3290       ac_prog_rejected=yes
3291       continue
3292     fi
3293    ac_cv_prog_CC="cc"
3294    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295    break 2
3296  fi
3297done
3298done
3299
3300if test $ac_prog_rejected = yes; then
3301  # We found a bogon in the path, so make sure we never use it.
3302  set dummy $ac_cv_prog_CC
3303  shift
3304  if test $# != 0; then
3305    # We chose a different compiler from the bogus one.
3306    # However, it has the same basename, so the bogon will be chosen
3307    # first if we set CC to just the basename; use the full file name.
3308    shift
3309    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3310  fi
3311fi
3312fi
3313fi
3314CC=$ac_cv_prog_CC
3315if test -n "$CC"; then
3316  echo "$as_me:$LINENO: result: $CC" >&5
3317echo "${ECHO_T}$CC" >&6
3318else
3319  echo "$as_me:$LINENO: result: no" >&5
3320echo "${ECHO_T}no" >&6
3321fi
3322
3323fi
3324if test -z "$CC"; then
3325  if test -n "$ac_tool_prefix"; then
3326  for ac_prog in cl
3327  do
3328    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3329set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3330echo "$as_me:$LINENO: checking for $ac_word" >&5
3331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3332if test "${ac_cv_prog_CC+set}" = set; then
3333  echo $ECHO_N "(cached) $ECHO_C" >&6
3334else
3335  if test -n "$CC"; then
3336  ac_cv_prog_CC="$CC" # Let the user override the test.
3337else
3338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339for as_dir in $PATH
3340do
3341  IFS=$as_save_IFS
3342  test -z "$as_dir" && as_dir=.
3343  for ac_exec_ext in '' $ac_executable_extensions; do
3344  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3345    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3346    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347    break 2
3348  fi
3349done
3350done
3351
3352fi
3353fi
3354CC=$ac_cv_prog_CC
3355if test -n "$CC"; then
3356  echo "$as_me:$LINENO: result: $CC" >&5
3357echo "${ECHO_T}$CC" >&6
3358else
3359  echo "$as_me:$LINENO: result: no" >&5
3360echo "${ECHO_T}no" >&6
3361fi
3362
3363    test -n "$CC" && break
3364  done
3365fi
3366if test -z "$CC"; then
3367  ac_ct_CC=$CC
3368  for ac_prog in cl
3369do
3370  # Extract the first word of "$ac_prog", so it can be a program name with args.
3371set dummy $ac_prog; ac_word=$2
3372echo "$as_me:$LINENO: checking for $ac_word" >&5
3373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3374if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3375  echo $ECHO_N "(cached) $ECHO_C" >&6
3376else
3377  if test -n "$ac_ct_CC"; then
3378  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3379else
3380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381for as_dir in $PATH
3382do
3383  IFS=$as_save_IFS
3384  test -z "$as_dir" && as_dir=.
3385  for ac_exec_ext in '' $ac_executable_extensions; do
3386  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387    ac_cv_prog_ac_ct_CC="$ac_prog"
3388    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3389    break 2
3390  fi
3391done
3392done
3393
3394fi
3395fi
3396ac_ct_CC=$ac_cv_prog_ac_ct_CC
3397if test -n "$ac_ct_CC"; then
3398  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3399echo "${ECHO_T}$ac_ct_CC" >&6
3400else
3401  echo "$as_me:$LINENO: result: no" >&5
3402echo "${ECHO_T}no" >&6
3403fi
3404
3405  test -n "$ac_ct_CC" && break
3406done
3407
3408  CC=$ac_ct_CC
3409fi
3410
3411fi
3412
3413
3414test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3415See \`config.log' for more details." >&5
3416echo "$as_me: error: no acceptable C compiler found in \$PATH
3417See \`config.log' for more details." >&2;}
3418   { (exit 1); exit 1; }; }
3419
3420# Provide some information about the compiler.
3421echo "$as_me:$LINENO:" \
3422     "checking for C compiler version" >&5
3423ac_compiler=`set X $ac_compile; echo $2`
3424{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3425  (eval $ac_compiler --version </dev/null >&5) 2>&5
3426  ac_status=$?
3427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428  (exit $ac_status); }
3429{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3430  (eval $ac_compiler -v </dev/null >&5) 2>&5
3431  ac_status=$?
3432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433  (exit $ac_status); }
3434{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3435  (eval $ac_compiler -V </dev/null >&5) 2>&5
3436  ac_status=$?
3437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438  (exit $ac_status); }
3439
3440echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3441echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3442if test "${ac_cv_c_compiler_gnu+set}" = set; then
3443  echo $ECHO_N "(cached) $ECHO_C" >&6
3444else
3445  cat >conftest.$ac_ext <<_ACEOF
3446/* confdefs.h.  */
3447_ACEOF
3448cat confdefs.h >>conftest.$ac_ext
3449cat >>conftest.$ac_ext <<_ACEOF
3450/* end confdefs.h.  */
3451
3452int
3453main ()
3454{
3455#ifndef __GNUC__
3456       choke me
3457#endif
3458
3459  ;
3460  return 0;
3461}
3462_ACEOF
3463rm -f conftest.$ac_objext
3464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3465  (eval $ac_compile) 2>conftest.er1
3466  ac_status=$?
3467  grep -v '^ *+' conftest.er1 >conftest.err
3468  rm -f conftest.er1
3469  cat conftest.err >&5
3470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471  (exit $ac_status); } &&
3472	 { ac_try='test -z "$ac_c_werror_flag"
3473			 || test ! -s conftest.err'
3474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475  (eval $ac_try) 2>&5
3476  ac_status=$?
3477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478  (exit $ac_status); }; } &&
3479	 { ac_try='test -s conftest.$ac_objext'
3480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481  (eval $ac_try) 2>&5
3482  ac_status=$?
3483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484  (exit $ac_status); }; }; then
3485  ac_compiler_gnu=yes
3486else
3487  echo "$as_me: failed program was:" >&5
3488sed 's/^/| /' conftest.$ac_ext >&5
3489
3490ac_compiler_gnu=no
3491fi
3492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3493ac_cv_c_compiler_gnu=$ac_compiler_gnu
3494
3495fi
3496echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3497echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3498GCC=`test $ac_compiler_gnu = yes && echo yes`
3499ac_test_CFLAGS=${CFLAGS+set}
3500ac_save_CFLAGS=$CFLAGS
3501CFLAGS="-g"
3502echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3503echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3504if test "${ac_cv_prog_cc_g+set}" = set; then
3505  echo $ECHO_N "(cached) $ECHO_C" >&6
3506else
3507  cat >conftest.$ac_ext <<_ACEOF
3508/* confdefs.h.  */
3509_ACEOF
3510cat confdefs.h >>conftest.$ac_ext
3511cat >>conftest.$ac_ext <<_ACEOF
3512/* end confdefs.h.  */
3513
3514int
3515main ()
3516{
3517
3518  ;
3519  return 0;
3520}
3521_ACEOF
3522rm -f conftest.$ac_objext
3523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3524  (eval $ac_compile) 2>conftest.er1
3525  ac_status=$?
3526  grep -v '^ *+' conftest.er1 >conftest.err
3527  rm -f conftest.er1
3528  cat conftest.err >&5
3529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530  (exit $ac_status); } &&
3531	 { ac_try='test -z "$ac_c_werror_flag"
3532			 || test ! -s conftest.err'
3533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534  (eval $ac_try) 2>&5
3535  ac_status=$?
3536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537  (exit $ac_status); }; } &&
3538	 { ac_try='test -s conftest.$ac_objext'
3539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540  (eval $ac_try) 2>&5
3541  ac_status=$?
3542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543  (exit $ac_status); }; }; then
3544  ac_cv_prog_cc_g=yes
3545else
3546  echo "$as_me: failed program was:" >&5
3547sed 's/^/| /' conftest.$ac_ext >&5
3548
3549ac_cv_prog_cc_g=no
3550fi
3551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3552fi
3553echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3554echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3555if test "$ac_test_CFLAGS" = set; then
3556  CFLAGS=$ac_save_CFLAGS
3557elif test $ac_cv_prog_cc_g = yes; then
3558  if test "$GCC" = yes; then
3559    CFLAGS="-g -O2"
3560  else
3561    CFLAGS="-g"
3562  fi
3563else
3564  if test "$GCC" = yes; then
3565    CFLAGS="-O2"
3566  else
3567    CFLAGS=
3568  fi
3569fi
3570echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3571echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3572if test "${ac_cv_prog_cc_stdc+set}" = set; then
3573  echo $ECHO_N "(cached) $ECHO_C" >&6
3574else
3575  ac_cv_prog_cc_stdc=no
3576ac_save_CC=$CC
3577cat >conftest.$ac_ext <<_ACEOF
3578/* confdefs.h.  */
3579_ACEOF
3580cat confdefs.h >>conftest.$ac_ext
3581cat >>conftest.$ac_ext <<_ACEOF
3582/* end confdefs.h.  */
3583#include <stdarg.h>
3584#include <stdio.h>
3585#include <sys/types.h>
3586#include <sys/stat.h>
3587/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3588struct buf { int x; };
3589FILE * (*rcsopen) (struct buf *, struct stat *, int);
3590static char *e (p, i)
3591     char **p;
3592     int i;
3593{
3594  return p[i];
3595}
3596static char *f (char * (*g) (char **, int), char **p, ...)
3597{
3598  char *s;
3599  va_list v;
3600  va_start (v,p);
3601  s = g (p, va_arg (v,int));
3602  va_end (v);
3603  return s;
3604}
3605
3606/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3607   function prototypes and stuff, but not '\xHH' hex character constants.
3608   These don't provoke an error unfortunately, instead are silently treated
3609   as 'x'.  The following induces an error, until -std1 is added to get
3610   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3611   array size at least.  It's necessary to write '\x00'==0 to get something
3612   that's true only with -std1.  */
3613int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3614
3615int test (int i, double x);
3616struct s1 {int (*f) (int a);};
3617struct s2 {int (*f) (double a);};
3618int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3619int argc;
3620char **argv;
3621int
3622main ()
3623{
3624return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3625  ;
3626  return 0;
3627}
3628_ACEOF
3629# Don't try gcc -ansi; that turns off useful extensions and
3630# breaks some systems' header files.
3631# AIX			-qlanglvl=ansi
3632# Ultrix and OSF/1	-std1
3633# HP-UX 10.20 and later	-Ae
3634# HP-UX older versions	-Aa -D_HPUX_SOURCE
3635# SVR4			-Xc -D__EXTENSIONS__
3636for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3637do
3638  CC="$ac_save_CC $ac_arg"
3639  rm -f conftest.$ac_objext
3640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3641  (eval $ac_compile) 2>conftest.er1
3642  ac_status=$?
3643  grep -v '^ *+' conftest.er1 >conftest.err
3644  rm -f conftest.er1
3645  cat conftest.err >&5
3646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647  (exit $ac_status); } &&
3648	 { ac_try='test -z "$ac_c_werror_flag"
3649			 || test ! -s conftest.err'
3650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651  (eval $ac_try) 2>&5
3652  ac_status=$?
3653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654  (exit $ac_status); }; } &&
3655	 { ac_try='test -s conftest.$ac_objext'
3656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657  (eval $ac_try) 2>&5
3658  ac_status=$?
3659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660  (exit $ac_status); }; }; then
3661  ac_cv_prog_cc_stdc=$ac_arg
3662break
3663else
3664  echo "$as_me: failed program was:" >&5
3665sed 's/^/| /' conftest.$ac_ext >&5
3666
3667fi
3668rm -f conftest.err conftest.$ac_objext
3669done
3670rm -f conftest.$ac_ext conftest.$ac_objext
3671CC=$ac_save_CC
3672
3673fi
3674
3675case "x$ac_cv_prog_cc_stdc" in
3676  x|xno)
3677    echo "$as_me:$LINENO: result: none needed" >&5
3678echo "${ECHO_T}none needed" >&6 ;;
3679  *)
3680    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3681echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3682    CC="$CC $ac_cv_prog_cc_stdc" ;;
3683esac
3684
3685# Some people use a C++ compiler to compile C.  Since we use `exit',
3686# in C++ we need to declare it.  In case someone uses the same compiler
3687# for both compiling C and C++ we need to have the C++ compiler decide
3688# the declaration of exit, since it's the most demanding environment.
3689cat >conftest.$ac_ext <<_ACEOF
3690#ifndef __cplusplus
3691  choke me
3692#endif
3693_ACEOF
3694rm -f conftest.$ac_objext
3695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3696  (eval $ac_compile) 2>conftest.er1
3697  ac_status=$?
3698  grep -v '^ *+' conftest.er1 >conftest.err
3699  rm -f conftest.er1
3700  cat conftest.err >&5
3701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702  (exit $ac_status); } &&
3703	 { ac_try='test -z "$ac_c_werror_flag"
3704			 || test ! -s conftest.err'
3705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706  (eval $ac_try) 2>&5
3707  ac_status=$?
3708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709  (exit $ac_status); }; } &&
3710	 { ac_try='test -s conftest.$ac_objext'
3711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712  (eval $ac_try) 2>&5
3713  ac_status=$?
3714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715  (exit $ac_status); }; }; then
3716  for ac_declaration in \
3717   '' \
3718   'extern "C" void std::exit (int) throw (); using std::exit;' \
3719   'extern "C" void std::exit (int); using std::exit;' \
3720   'extern "C" void exit (int) throw ();' \
3721   'extern "C" void exit (int);' \
3722   'void exit (int);'
3723do
3724  cat >conftest.$ac_ext <<_ACEOF
3725/* confdefs.h.  */
3726_ACEOF
3727cat confdefs.h >>conftest.$ac_ext
3728cat >>conftest.$ac_ext <<_ACEOF
3729/* end confdefs.h.  */
3730$ac_declaration
3731#include <stdlib.h>
3732int
3733main ()
3734{
3735exit (42);
3736  ;
3737  return 0;
3738}
3739_ACEOF
3740rm -f conftest.$ac_objext
3741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3742  (eval $ac_compile) 2>conftest.er1
3743  ac_status=$?
3744  grep -v '^ *+' conftest.er1 >conftest.err
3745  rm -f conftest.er1
3746  cat conftest.err >&5
3747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748  (exit $ac_status); } &&
3749	 { ac_try='test -z "$ac_c_werror_flag"
3750			 || test ! -s conftest.err'
3751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752  (eval $ac_try) 2>&5
3753  ac_status=$?
3754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755  (exit $ac_status); }; } &&
3756	 { ac_try='test -s conftest.$ac_objext'
3757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758  (eval $ac_try) 2>&5
3759  ac_status=$?
3760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761  (exit $ac_status); }; }; then
3762  :
3763else
3764  echo "$as_me: failed program was:" >&5
3765sed 's/^/| /' conftest.$ac_ext >&5
3766
3767continue
3768fi
3769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3770  cat >conftest.$ac_ext <<_ACEOF
3771/* confdefs.h.  */
3772_ACEOF
3773cat confdefs.h >>conftest.$ac_ext
3774cat >>conftest.$ac_ext <<_ACEOF
3775/* end confdefs.h.  */
3776$ac_declaration
3777int
3778main ()
3779{
3780exit (42);
3781  ;
3782  return 0;
3783}
3784_ACEOF
3785rm -f conftest.$ac_objext
3786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3787  (eval $ac_compile) 2>conftest.er1
3788  ac_status=$?
3789  grep -v '^ *+' conftest.er1 >conftest.err
3790  rm -f conftest.er1
3791  cat conftest.err >&5
3792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793  (exit $ac_status); } &&
3794	 { ac_try='test -z "$ac_c_werror_flag"
3795			 || test ! -s conftest.err'
3796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797  (eval $ac_try) 2>&5
3798  ac_status=$?
3799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800  (exit $ac_status); }; } &&
3801	 { ac_try='test -s conftest.$ac_objext'
3802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803  (eval $ac_try) 2>&5
3804  ac_status=$?
3805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806  (exit $ac_status); }; }; then
3807  break
3808else
3809  echo "$as_me: failed program was:" >&5
3810sed 's/^/| /' conftest.$ac_ext >&5
3811
3812fi
3813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3814done
3815rm -f conftest*
3816if test -n "$ac_declaration"; then
3817  echo '#ifdef __cplusplus' >>confdefs.h
3818  echo $ac_declaration      >>confdefs.h
3819  echo '#endif'             >>confdefs.h
3820fi
3821
3822else
3823  echo "$as_me: failed program was:" >&5
3824sed 's/^/| /' conftest.$ac_ext >&5
3825
3826fi
3827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3828ac_ext=c
3829ac_cpp='$CPP $CPPFLAGS'
3830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833
3834depcc="$CC"   am_compiler_list=
3835
3836echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3837echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3838if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3839  echo $ECHO_N "(cached) $ECHO_C" >&6
3840else
3841  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3842  # We make a subdir and do the tests there.  Otherwise we can end up
3843  # making bogus files that we don't know about and never remove.  For
3844  # instance it was reported that on HP-UX the gcc test will end up
3845  # making a dummy file named `D' -- because `-MD' means `put the output
3846  # in D'.
3847  mkdir conftest.dir
3848  # Copy depcomp to subdir because otherwise we won't find it if we're
3849  # using a relative directory.
3850  cp "$am_depcomp" conftest.dir
3851  cd conftest.dir
3852  # We will build objects and dependencies in a subdirectory because
3853  # it helps to detect inapplicable dependency modes.  For instance
3854  # both Tru64's cc and ICC support -MD to output dependencies as a
3855  # side effect of compilation, but ICC will put the dependencies in
3856  # the current directory while Tru64 will put them in the object
3857  # directory.
3858  mkdir sub
3859
3860  am_cv_CC_dependencies_compiler_type=none
3861  if test "$am_compiler_list" = ""; then
3862     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3863  fi
3864  for depmode in $am_compiler_list; do
3865    # Setup a source with many dependencies, because some compilers
3866    # like to wrap large dependency lists on column 80 (with \), and
3867    # we should not choose a depcomp mode which is confused by this.
3868    #
3869    # We need to recreate these files for each test, as the compiler may
3870    # overwrite some of them when testing with obscure command lines.
3871    # This happens at least with the AIX C compiler.
3872    : > sub/conftest.c
3873    for i in 1 2 3 4 5 6; do
3874      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3875      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3876      # Solaris 8's {/usr,}/bin/sh.
3877      touch sub/conftst$i.h
3878    done
3879    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3880
3881    case $depmode in
3882    nosideeffect)
3883      # after this tag, mechanisms are not by side-effect, so they'll
3884      # only be used when explicitly requested
3885      if test "x$enable_dependency_tracking" = xyes; then
3886	continue
3887      else
3888	break
3889      fi
3890      ;;
3891    none) break ;;
3892    esac
3893    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3894    # mode.  It turns out that the SunPro C++ compiler does not properly
3895    # handle `-M -o', and we need to detect this.
3896    if depmode=$depmode \
3897       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3898       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3899       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3900         >/dev/null 2>conftest.err &&
3901       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3902       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3903       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3904      # icc doesn't choke on unknown options, it will just issue warnings
3905      # or remarks (even with -Werror).  So we grep stderr for any message
3906      # that says an option was ignored or not supported.
3907      # When given -MP, icc 7.0 and 7.1 complain thusly:
3908      #   icc: Command line warning: ignoring option '-M'; no argument required
3909      # The diagnosis changed in icc 8.0:
3910      #   icc: Command line remark: option '-MP' not supported
3911      if (grep 'ignoring option' conftest.err ||
3912          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3913        am_cv_CC_dependencies_compiler_type=$depmode
3914        break
3915      fi
3916    fi
3917  done
3918
3919  cd ..
3920  rm -rf conftest.dir
3921else
3922  am_cv_CC_dependencies_compiler_type=none
3923fi
3924
3925fi
3926echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3927echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3928CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3929
3930
3931
3932if
3933  test "x$enable_dependency_tracking" != xno \
3934  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3935  am__fastdepCC_TRUE=
3936  am__fastdepCC_FALSE='#'
3937else
3938  am__fastdepCC_TRUE='#'
3939  am__fastdepCC_FALSE=
3940fi
3941
3942
3943
3944am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
3945
3946ac_ext=cc
3947ac_cpp='$CXXCPP $CPPFLAGS'
3948ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3950ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3951if test -n "$ac_tool_prefix"; then
3952  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3953  do
3954    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3955set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3956echo "$as_me:$LINENO: checking for $ac_word" >&5
3957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3958if test "${ac_cv_prog_CXX+set}" = set; then
3959  echo $ECHO_N "(cached) $ECHO_C" >&6
3960else
3961  if test -n "$CXX"; then
3962  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3963else
3964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965for as_dir in $PATH
3966do
3967  IFS=$as_save_IFS
3968  test -z "$as_dir" && as_dir=.
3969  for ac_exec_ext in '' $ac_executable_extensions; do
3970  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3972    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3973    break 2
3974  fi
3975done
3976done
3977
3978fi
3979fi
3980CXX=$ac_cv_prog_CXX
3981if test -n "$CXX"; then
3982  echo "$as_me:$LINENO: result: $CXX" >&5
3983echo "${ECHO_T}$CXX" >&6
3984else
3985  echo "$as_me:$LINENO: result: no" >&5
3986echo "${ECHO_T}no" >&6
3987fi
3988
3989    test -n "$CXX" && break
3990  done
3991fi
3992if test -z "$CXX"; then
3993  ac_ct_CXX=$CXX
3994  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3995do
3996  # Extract the first word of "$ac_prog", so it can be a program name with args.
3997set dummy $ac_prog; ac_word=$2
3998echo "$as_me:$LINENO: checking for $ac_word" >&5
3999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4000if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4001  echo $ECHO_N "(cached) $ECHO_C" >&6
4002else
4003  if test -n "$ac_ct_CXX"; then
4004  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4005else
4006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007for as_dir in $PATH
4008do
4009  IFS=$as_save_IFS
4010  test -z "$as_dir" && as_dir=.
4011  for ac_exec_ext in '' $ac_executable_extensions; do
4012  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4013    ac_cv_prog_ac_ct_CXX="$ac_prog"
4014    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4015    break 2
4016  fi
4017done
4018done
4019
4020fi
4021fi
4022ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4023if test -n "$ac_ct_CXX"; then
4024  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4025echo "${ECHO_T}$ac_ct_CXX" >&6
4026else
4027  echo "$as_me:$LINENO: result: no" >&5
4028echo "${ECHO_T}no" >&6
4029fi
4030
4031  test -n "$ac_ct_CXX" && break
4032done
4033test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4034
4035  CXX=$ac_ct_CXX
4036fi
4037
4038
4039# Provide some information about the compiler.
4040echo "$as_me:$LINENO:" \
4041     "checking for C++ compiler version" >&5
4042ac_compiler=`set X $ac_compile; echo $2`
4043{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4044  (eval $ac_compiler --version </dev/null >&5) 2>&5
4045  ac_status=$?
4046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047  (exit $ac_status); }
4048{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4049  (eval $ac_compiler -v </dev/null >&5) 2>&5
4050  ac_status=$?
4051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052  (exit $ac_status); }
4053{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4054  (eval $ac_compiler -V </dev/null >&5) 2>&5
4055  ac_status=$?
4056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057  (exit $ac_status); }
4058
4059echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4060echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4061if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4062  echo $ECHO_N "(cached) $ECHO_C" >&6
4063else
4064  cat >conftest.$ac_ext <<_ACEOF
4065/* confdefs.h.  */
4066_ACEOF
4067cat confdefs.h >>conftest.$ac_ext
4068cat >>conftest.$ac_ext <<_ACEOF
4069/* end confdefs.h.  */
4070
4071int
4072main ()
4073{
4074#ifndef __GNUC__
4075       choke me
4076#endif
4077
4078  ;
4079  return 0;
4080}
4081_ACEOF
4082rm -f conftest.$ac_objext
4083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4084  (eval $ac_compile) 2>conftest.er1
4085  ac_status=$?
4086  grep -v '^ *+' conftest.er1 >conftest.err
4087  rm -f conftest.er1
4088  cat conftest.err >&5
4089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090  (exit $ac_status); } &&
4091	 { ac_try='test -z "$ac_cxx_werror_flag"
4092			 || test ! -s conftest.err'
4093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094  (eval $ac_try) 2>&5
4095  ac_status=$?
4096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097  (exit $ac_status); }; } &&
4098	 { ac_try='test -s conftest.$ac_objext'
4099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100  (eval $ac_try) 2>&5
4101  ac_status=$?
4102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103  (exit $ac_status); }; }; then
4104  ac_compiler_gnu=yes
4105else
4106  echo "$as_me: failed program was:" >&5
4107sed 's/^/| /' conftest.$ac_ext >&5
4108
4109ac_compiler_gnu=no
4110fi
4111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4112ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4113
4114fi
4115echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4116echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4117GXX=`test $ac_compiler_gnu = yes && echo yes`
4118ac_test_CXXFLAGS=${CXXFLAGS+set}
4119ac_save_CXXFLAGS=$CXXFLAGS
4120CXXFLAGS="-g"
4121echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4122echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4123if test "${ac_cv_prog_cxx_g+set}" = set; then
4124  echo $ECHO_N "(cached) $ECHO_C" >&6
4125else
4126  cat >conftest.$ac_ext <<_ACEOF
4127/* confdefs.h.  */
4128_ACEOF
4129cat confdefs.h >>conftest.$ac_ext
4130cat >>conftest.$ac_ext <<_ACEOF
4131/* end confdefs.h.  */
4132
4133int
4134main ()
4135{
4136
4137  ;
4138  return 0;
4139}
4140_ACEOF
4141rm -f conftest.$ac_objext
4142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4143  (eval $ac_compile) 2>conftest.er1
4144  ac_status=$?
4145  grep -v '^ *+' conftest.er1 >conftest.err
4146  rm -f conftest.er1
4147  cat conftest.err >&5
4148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149  (exit $ac_status); } &&
4150	 { ac_try='test -z "$ac_cxx_werror_flag"
4151			 || test ! -s conftest.err'
4152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153  (eval $ac_try) 2>&5
4154  ac_status=$?
4155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156  (exit $ac_status); }; } &&
4157	 { ac_try='test -s conftest.$ac_objext'
4158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159  (eval $ac_try) 2>&5
4160  ac_status=$?
4161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162  (exit $ac_status); }; }; then
4163  ac_cv_prog_cxx_g=yes
4164else
4165  echo "$as_me: failed program was:" >&5
4166sed 's/^/| /' conftest.$ac_ext >&5
4167
4168ac_cv_prog_cxx_g=no
4169fi
4170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4171fi
4172echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4173echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4174if test "$ac_test_CXXFLAGS" = set; then
4175  CXXFLAGS=$ac_save_CXXFLAGS
4176elif test $ac_cv_prog_cxx_g = yes; then
4177  if test "$GXX" = yes; then
4178    CXXFLAGS="-g -O2"
4179  else
4180    CXXFLAGS="-g"
4181  fi
4182else
4183  if test "$GXX" = yes; then
4184    CXXFLAGS="-O2"
4185  else
4186    CXXFLAGS=
4187  fi
4188fi
4189for ac_declaration in \
4190   '' \
4191   'extern "C" void std::exit (int) throw (); using std::exit;' \
4192   'extern "C" void std::exit (int); using std::exit;' \
4193   'extern "C" void exit (int) throw ();' \
4194   'extern "C" void exit (int);' \
4195   'void exit (int);'
4196do
4197  cat >conftest.$ac_ext <<_ACEOF
4198/* confdefs.h.  */
4199_ACEOF
4200cat confdefs.h >>conftest.$ac_ext
4201cat >>conftest.$ac_ext <<_ACEOF
4202/* end confdefs.h.  */
4203$ac_declaration
4204#include <stdlib.h>
4205int
4206main ()
4207{
4208exit (42);
4209  ;
4210  return 0;
4211}
4212_ACEOF
4213rm -f conftest.$ac_objext
4214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4215  (eval $ac_compile) 2>conftest.er1
4216  ac_status=$?
4217  grep -v '^ *+' conftest.er1 >conftest.err
4218  rm -f conftest.er1
4219  cat conftest.err >&5
4220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221  (exit $ac_status); } &&
4222	 { ac_try='test -z "$ac_cxx_werror_flag"
4223			 || test ! -s conftest.err'
4224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4225  (eval $ac_try) 2>&5
4226  ac_status=$?
4227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228  (exit $ac_status); }; } &&
4229	 { ac_try='test -s conftest.$ac_objext'
4230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231  (eval $ac_try) 2>&5
4232  ac_status=$?
4233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234  (exit $ac_status); }; }; then
4235  :
4236else
4237  echo "$as_me: failed program was:" >&5
4238sed 's/^/| /' conftest.$ac_ext >&5
4239
4240continue
4241fi
4242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4243  cat >conftest.$ac_ext <<_ACEOF
4244/* confdefs.h.  */
4245_ACEOF
4246cat confdefs.h >>conftest.$ac_ext
4247cat >>conftest.$ac_ext <<_ACEOF
4248/* end confdefs.h.  */
4249$ac_declaration
4250int
4251main ()
4252{
4253exit (42);
4254  ;
4255  return 0;
4256}
4257_ACEOF
4258rm -f conftest.$ac_objext
4259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4260  (eval $ac_compile) 2>conftest.er1
4261  ac_status=$?
4262  grep -v '^ *+' conftest.er1 >conftest.err
4263  rm -f conftest.er1
4264  cat conftest.err >&5
4265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266  (exit $ac_status); } &&
4267	 { ac_try='test -z "$ac_cxx_werror_flag"
4268			 || test ! -s conftest.err'
4269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270  (eval $ac_try) 2>&5
4271  ac_status=$?
4272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273  (exit $ac_status); }; } &&
4274	 { ac_try='test -s conftest.$ac_objext'
4275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276  (eval $ac_try) 2>&5
4277  ac_status=$?
4278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279  (exit $ac_status); }; }; then
4280  break
4281else
4282  echo "$as_me: failed program was:" >&5
4283sed 's/^/| /' conftest.$ac_ext >&5
4284
4285fi
4286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4287done
4288rm -f conftest*
4289if test -n "$ac_declaration"; then
4290  echo '#ifdef __cplusplus' >>confdefs.h
4291  echo $ac_declaration      >>confdefs.h
4292  echo '#endif'             >>confdefs.h
4293fi
4294
4295ac_ext=c
4296ac_cpp='$CPP $CPPFLAGS'
4297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299ac_compiler_gnu=$ac_cv_c_compiler_gnu
4300
4301depcc="$CXX"  am_compiler_list=
4302
4303echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4304echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4305if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4306  echo $ECHO_N "(cached) $ECHO_C" >&6
4307else
4308  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4309  # We make a subdir and do the tests there.  Otherwise we can end up
4310  # making bogus files that we don't know about and never remove.  For
4311  # instance it was reported that on HP-UX the gcc test will end up
4312  # making a dummy file named `D' -- because `-MD' means `put the output
4313  # in D'.
4314  mkdir conftest.dir
4315  # Copy depcomp to subdir because otherwise we won't find it if we're
4316  # using a relative directory.
4317  cp "$am_depcomp" conftest.dir
4318  cd conftest.dir
4319  # We will build objects and dependencies in a subdirectory because
4320  # it helps to detect inapplicable dependency modes.  For instance
4321  # both Tru64's cc and ICC support -MD to output dependencies as a
4322  # side effect of compilation, but ICC will put the dependencies in
4323  # the current directory while Tru64 will put them in the object
4324  # directory.
4325  mkdir sub
4326
4327  am_cv_CXX_dependencies_compiler_type=none
4328  if test "$am_compiler_list" = ""; then
4329     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4330  fi
4331  for depmode in $am_compiler_list; do
4332    # Setup a source with many dependencies, because some compilers
4333    # like to wrap large dependency lists on column 80 (with \), and
4334    # we should not choose a depcomp mode which is confused by this.
4335    #
4336    # We need to recreate these files for each test, as the compiler may
4337    # overwrite some of them when testing with obscure command lines.
4338    # This happens at least with the AIX C compiler.
4339    : > sub/conftest.c
4340    for i in 1 2 3 4 5 6; do
4341      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4342      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4343      # Solaris 8's {/usr,}/bin/sh.
4344      touch sub/conftst$i.h
4345    done
4346    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4347
4348    case $depmode in
4349    nosideeffect)
4350      # after this tag, mechanisms are not by side-effect, so they'll
4351      # only be used when explicitly requested
4352      if test "x$enable_dependency_tracking" = xyes; then
4353	continue
4354      else
4355	break
4356      fi
4357      ;;
4358    none) break ;;
4359    esac
4360    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4361    # mode.  It turns out that the SunPro C++ compiler does not properly
4362    # handle `-M -o', and we need to detect this.
4363    if depmode=$depmode \
4364       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4365       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4366       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4367         >/dev/null 2>conftest.err &&
4368       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4369       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4370       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4371      # icc doesn't choke on unknown options, it will just issue warnings
4372      # or remarks (even with -Werror).  So we grep stderr for any message
4373      # that says an option was ignored or not supported.
4374      # When given -MP, icc 7.0 and 7.1 complain thusly:
4375      #   icc: Command line warning: ignoring option '-M'; no argument required
4376      # The diagnosis changed in icc 8.0:
4377      #   icc: Command line remark: option '-MP' not supported
4378      if (grep 'ignoring option' conftest.err ||
4379          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4380        am_cv_CXX_dependencies_compiler_type=$depmode
4381        break
4382      fi
4383    fi
4384  done
4385
4386  cd ..
4387  rm -rf conftest.dir
4388else
4389  am_cv_CXX_dependencies_compiler_type=none
4390fi
4391
4392fi
4393echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4394echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4395CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4396
4397
4398
4399if
4400  test "x$enable_dependency_tracking" != xno \
4401  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4402  am__fastdepCXX_TRUE=
4403  am__fastdepCXX_FALSE='#'
4404else
4405  am__fastdepCXX_TRUE='#'
4406  am__fastdepCXX_FALSE=
4407fi
4408
4409
4410ac_ext=cc
4411ac_cpp='$CXXCPP $CPPFLAGS'
4412ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4413ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4414ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4415
4416
4417echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4418echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4419set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4420if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4421  echo $ECHO_N "(cached) $ECHO_C" >&6
4422else
4423  cat >conftest.make <<\_ACEOF
4424all:
4425	@echo 'ac_maketemp="$(MAKE)"'
4426_ACEOF
4427# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4428eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4429if test -n "$ac_maketemp"; then
4430  eval ac_cv_prog_make_${ac_make}_set=yes
4431else
4432  eval ac_cv_prog_make_${ac_make}_set=no
4433fi
4434rm -f conftest.make
4435fi
4436if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4437  echo "$as_me:$LINENO: result: yes" >&5
4438echo "${ECHO_T}yes" >&6
4439  SET_MAKE=
4440else
4441  echo "$as_me:$LINENO: result: no" >&5
4442echo "${ECHO_T}no" >&6
4443  SET_MAKE="MAKE=${MAKE-make}"
4444fi
4445
4446echo "$as_me:$LINENO: checking whether ln -s works" >&5
4447echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4448LN_S=$as_ln_s
4449if test "$LN_S" = "ln -s"; then
4450  echo "$as_me:$LINENO: result: yes" >&5
4451echo "${ECHO_T}yes" >&6
4452else
4453  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4454echo "${ECHO_T}no, using $LN_S" >&6
4455fi
4456
4457
4458# Check whether --enable-debug or --disable-debug was given.
4459if test "${enable_debug+set}" = set; then
4460  enableval="$enable_debug"
4461   CXXFLAGS="$CXXFLAGS -g"
4462else
4463   CXXFLAGS="$CXXFLAGS -pipe -Wall -O3"
4464fi;
4465
4466
4467# Check whether --with-shout or --without-shout was given.
4468if test "${with_shout+set}" = set; then
4469  withval="$with_shout"
4470  shoutdir=$withval
4471else
4472  shoutdir=""
4473fi;
4474
4475
4476# Check whether --with-mysql or --without-mysql was given.
4477if test "${with_mysql+set}" = set; then
4478  withval="$with_mysql"
4479  mysql_en="yes"
4480else
4481  mysql_en=""
4482fi;
4483
4484
4485# Check whether --with-pgsql or --without-pgsql was given.
4486if test "${with_pgsql+set}" = set; then
4487  withval="$with_pgsql"
4488  pgsql_en="yes"
4489else
4490  pgsql_en=""
4491fi;
4492
4493
4494# Check whether --with-id3 or --without-id3 was given.
4495if test "${with_id3+set}" = set; then
4496  withval="$with_id3"
4497  id3_en="yes"
4498else
4499  id3_en=""
4500fi;
4501
4502echo "$as_me:$LINENO: checking whether mkdir accepts -p" >&5
4503echo $ECHO_N "checking whether mkdir accepts -p... $ECHO_C" >&6
4504if (mkdir -p config.tmpdir/p && mkdir -p config.tmpdir/p 2>&1) > /dev/null; then
4505    echo "$as_me:$LINENO: result: yes" >&5
4506echo "${ECHO_T}yes" >&6
4507    MKDIR="mkdir -p"
4508else
4509    echo "$as_me:$LINENO: result: no" >&5
4510echo "${ECHO_T}no" >&6
4511    MKDIR=mkdir
4512fi
4513rm -rf config.tmpdir
4514
4515echo -e $'\n'$'\n'POSIX Threads
4516
4517
4518
4519
4520
4521ac_ext=c
4522ac_cpp='$CPP $CPPFLAGS'
4523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525ac_compiler_gnu=$ac_cv_c_compiler_gnu
4526
4527acx_pthread_ok=no
4528
4529# We used to check for pthread.h first, but this fails if pthread.h
4530# requires special compiler flags (e.g. on True64 or Sequent).
4531# It gets checked for in the link test anyway.
4532
4533# First of all, check if the user has set any of the PTHREAD_LIBS,
4534# etcetera environment variables, and if threads linking works using
4535# them:
4536if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
4537        save_CFLAGS="$CFLAGS"
4538        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4539        save_LIBS="$LIBS"
4540        LIBS="$PTHREAD_LIBS $LIBS"
4541        echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
4542echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
4543        cat >conftest.$ac_ext <<_ACEOF
4544/* confdefs.h.  */
4545_ACEOF
4546cat confdefs.h >>conftest.$ac_ext
4547cat >>conftest.$ac_ext <<_ACEOF
4548/* end confdefs.h.  */
4549
4550/* Override any gcc2 internal prototype to avoid an error.  */
4551#ifdef __cplusplus
4552extern "C"
4553#endif
4554/* We use char because int might match the return type of a gcc2
4555   builtin and then its argument prototype would still apply.  */
4556char pthread_join ();
4557int
4558main ()
4559{
4560pthread_join ();
4561  ;
4562  return 0;
4563}
4564_ACEOF
4565rm -f conftest.$ac_objext conftest$ac_exeext
4566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4567  (eval $ac_link) 2>conftest.er1
4568  ac_status=$?
4569  grep -v '^ *+' conftest.er1 >conftest.err
4570  rm -f conftest.er1
4571  cat conftest.err >&5
4572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573  (exit $ac_status); } &&
4574	 { ac_try='test -z "$ac_c_werror_flag"
4575			 || test ! -s conftest.err'
4576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577  (eval $ac_try) 2>&5
4578  ac_status=$?
4579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580  (exit $ac_status); }; } &&
4581	 { ac_try='test -s conftest$ac_exeext'
4582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583  (eval $ac_try) 2>&5
4584  ac_status=$?
4585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586  (exit $ac_status); }; }; then
4587  acx_pthread_ok=yes
4588else
4589  echo "$as_me: failed program was:" >&5
4590sed 's/^/| /' conftest.$ac_ext >&5
4591
4592fi
4593rm -f conftest.err conftest.$ac_objext \
4594      conftest$ac_exeext conftest.$ac_ext
4595        echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
4596echo "${ECHO_T}$acx_pthread_ok" >&6
4597        if test x"$acx_pthread_ok" = xno; then
4598                PTHREAD_LIBS=""
4599                PTHREAD_CFLAGS=""
4600        fi
4601        LIBS="$save_LIBS"
4602        CFLAGS="$save_CFLAGS"
4603fi
4604
4605# We must check for the threads library under a number of different
4606# names; the ordering is very important because some systems
4607# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
4608# libraries is broken (non-POSIX).
4609
4610# Create a list of thread flags to try.  Items starting with a "-" are
4611# C compiler flags, and other items are library names, except for "none"
4612# which indicates that we try without any flags at all.
4613
4614acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
4615
4616# The ordering *is* (sometimes) important.  Some notes on the
4617# individual items follow:
4618
4619# pthreads: AIX (must check this before -lpthread)
4620# none: in case threads are in libc; should be tried before -Kthread and
4621#       other compiler flags to prevent continual compiler warnings
4622# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
4623# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
4624# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
4625# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
4626# -pthreads: Solaris/gcc
4627# -mthreads: Mingw32/gcc, Lynx/gcc
4628# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
4629#      doesn't hurt to check since this sometimes defines pthreads too;
4630#      also defines -D_REENTRANT)
4631# pthread: Linux, etcetera
4632# --thread-safe: KAI C++
4633
4634case "${host_cpu}-${host_os}" in
4635        *solaris*)
4636
4637        # On Solaris (at least, for some versions), libc contains stubbed
4638        # (non-functional) versions of the pthreads routines, so link-based
4639        # tests will erroneously succeed.  (We need to link with -pthread or
4640        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
4641        # a function called by this macro, so we could check for that, but
4642        # who knows whether they'll stub that too in a future libc.)  So,
4643        # we'll just look for -pthreads and -lpthread first:
4644
4645        acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
4646        ;;
4647esac
4648
4649if test x"$acx_pthread_ok" = xno; then
4650for flag in $acx_pthread_flags; do
4651
4652        case $flag in
4653                none)
4654                echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
4655echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
4656                ;;
4657
4658                -*)
4659                echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
4660echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
4661                PTHREAD_CFLAGS="$flag"
4662                ;;
4663
4664                *)
4665                echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
4666echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
4667                PTHREAD_LIBS="-l$flag"
4668                ;;
4669        esac
4670
4671        save_LIBS="$LIBS"
4672        save_CFLAGS="$CFLAGS"
4673        LIBS="$PTHREAD_LIBS $LIBS"
4674        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4675
4676        # Check for various functions.  We must include pthread.h,
4677        # since some functions may be macros.  (On the Sequent, we
4678        # need a special flag -Kthread to make this header compile.)
4679        # We check for pthread_join because it is in -lpthread on IRIX
4680        # while pthread_create is in libc.  We check for pthread_attr_init
4681        # due to DEC craziness with -lpthreads.  We check for
4682        # pthread_cleanup_push because it is one of the few pthread
4683        # functions on Solaris that doesn't have a non-functional libc stub.
4684        # We try pthread_create on general principles.
4685        cat >conftest.$ac_ext <<_ACEOF
4686/* confdefs.h.  */
4687_ACEOF
4688cat confdefs.h >>conftest.$ac_ext
4689cat >>conftest.$ac_ext <<_ACEOF
4690/* end confdefs.h.  */
4691#include <pthread.h>
4692int
4693main ()
4694{
4695pthread_t th; pthread_join(th, 0);
4696                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
4697                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
4698  ;
4699  return 0;
4700}
4701_ACEOF
4702rm -f conftest.$ac_objext conftest$ac_exeext
4703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4704  (eval $ac_link) 2>conftest.er1
4705  ac_status=$?
4706  grep -v '^ *+' conftest.er1 >conftest.err
4707  rm -f conftest.er1
4708  cat conftest.err >&5
4709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710  (exit $ac_status); } &&
4711	 { ac_try='test -z "$ac_c_werror_flag"
4712			 || test ! -s conftest.err'
4713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714  (eval $ac_try) 2>&5
4715  ac_status=$?
4716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717  (exit $ac_status); }; } &&
4718	 { ac_try='test -s conftest$ac_exeext'
4719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720  (eval $ac_try) 2>&5
4721  ac_status=$?
4722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723  (exit $ac_status); }; }; then
4724  acx_pthread_ok=yes
4725else
4726  echo "$as_me: failed program was:" >&5
4727sed 's/^/| /' conftest.$ac_ext >&5
4728
4729fi
4730rm -f conftest.err conftest.$ac_objext \
4731      conftest$ac_exeext conftest.$ac_ext
4732
4733        LIBS="$save_LIBS"
4734        CFLAGS="$save_CFLAGS"
4735
4736        echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
4737echo "${ECHO_T}$acx_pthread_ok" >&6
4738        if test "x$acx_pthread_ok" = xyes; then
4739                break;
4740        fi
4741
4742        PTHREAD_LIBS=""
4743        PTHREAD_CFLAGS=""
4744done
4745fi
4746
4747# Various other checks:
4748if test "x$acx_pthread_ok" = xyes; then
4749        save_LIBS="$LIBS"
4750        LIBS="$PTHREAD_LIBS $LIBS"
4751        save_CFLAGS="$CFLAGS"
4752        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4753
4754        # Detect AIX lossage: threads are created detached by default
4755        # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
4756        echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
4757echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
4758        cat >conftest.$ac_ext <<_ACEOF
4759/* confdefs.h.  */
4760_ACEOF
4761cat confdefs.h >>conftest.$ac_ext
4762cat >>conftest.$ac_ext <<_ACEOF
4763/* end confdefs.h.  */
4764#include <pthread.h>
4765int
4766main ()
4767{
4768int attr=PTHREAD_CREATE_JOINABLE;
4769  ;
4770  return 0;
4771}
4772_ACEOF
4773rm -f conftest.$ac_objext conftest$ac_exeext
4774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4775  (eval $ac_link) 2>conftest.er1
4776  ac_status=$?
4777  grep -v '^ *+' conftest.er1 >conftest.err
4778  rm -f conftest.er1
4779  cat conftest.err >&5
4780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781  (exit $ac_status); } &&
4782	 { ac_try='test -z "$ac_c_werror_flag"
4783			 || test ! -s conftest.err'
4784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785  (eval $ac_try) 2>&5
4786  ac_status=$?
4787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788  (exit $ac_status); }; } &&
4789	 { ac_try='test -s conftest$ac_exeext'
4790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791  (eval $ac_try) 2>&5
4792  ac_status=$?
4793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794  (exit $ac_status); }; }; then
4795  ok=PTHREAD_CREATE_JOINABLE
4796else
4797  echo "$as_me: failed program was:" >&5
4798sed 's/^/| /' conftest.$ac_ext >&5
4799
4800ok=unknown
4801fi
4802rm -f conftest.err conftest.$ac_objext \
4803      conftest$ac_exeext conftest.$ac_ext
4804        if test x"$ok" = xunknown; then
4805                cat >conftest.$ac_ext <<_ACEOF
4806/* confdefs.h.  */
4807_ACEOF
4808cat confdefs.h >>conftest.$ac_ext
4809cat >>conftest.$ac_ext <<_ACEOF
4810/* end confdefs.h.  */
4811#include <pthread.h>
4812int
4813main ()
4814{
4815int attr=PTHREAD_CREATE_UNDETACHED;
4816  ;
4817  return 0;
4818}
4819_ACEOF
4820rm -f conftest.$ac_objext conftest$ac_exeext
4821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4822  (eval $ac_link) 2>conftest.er1
4823  ac_status=$?
4824  grep -v '^ *+' conftest.er1 >conftest.err
4825  rm -f conftest.er1
4826  cat conftest.err >&5
4827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828  (exit $ac_status); } &&
4829	 { ac_try='test -z "$ac_c_werror_flag"
4830			 || test ! -s conftest.err'
4831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832  (eval $ac_try) 2>&5
4833  ac_status=$?
4834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835  (exit $ac_status); }; } &&
4836	 { ac_try='test -s conftest$ac_exeext'
4837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838  (eval $ac_try) 2>&5
4839  ac_status=$?
4840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841  (exit $ac_status); }; }; then
4842  ok=PTHREAD_CREATE_UNDETACHED
4843else
4844  echo "$as_me: failed program was:" >&5
4845sed 's/^/| /' conftest.$ac_ext >&5
4846
4847ok=unknown
4848fi
4849rm -f conftest.err conftest.$ac_objext \
4850      conftest$ac_exeext conftest.$ac_ext
4851        fi
4852        if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
4853
4854cat >>confdefs.h <<\_ACEOF
4855#define PTHREAD_CREATE_JOINABLE $ok
4856_ACEOF
4857
4858        fi
4859        echo "$as_me:$LINENO: result: ${ok}" >&5
4860echo "${ECHO_T}${ok}" >&6
4861        if test x"$ok" = xunknown; then
4862                { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
4863echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
4864        fi
4865
4866        echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
4867echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
4868        flag=no
4869        case "${host_cpu}-${host_os}" in
4870                *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
4871                *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
4872        esac
4873        echo "$as_me:$LINENO: result: ${flag}" >&5
4874echo "${ECHO_T}${flag}" >&6
4875        if test "x$flag" != xno; then
4876                PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
4877        fi
4878
4879        LIBS="$save_LIBS"
4880        CFLAGS="$save_CFLAGS"
4881
4882        # More AIX lossage: must compile with cc_r
4883        # Extract the first word of "cc_r", so it can be a program name with args.
4884set dummy cc_r; ac_word=$2
4885echo "$as_me:$LINENO: checking for $ac_word" >&5
4886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4887if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
4888  echo $ECHO_N "(cached) $ECHO_C" >&6
4889else
4890  if test -n "$PTHREAD_CC"; then
4891  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
4892else
4893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894for as_dir in $PATH
4895do
4896  IFS=$as_save_IFS
4897  test -z "$as_dir" && as_dir=.
4898  for ac_exec_ext in '' $ac_executable_extensions; do
4899  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4900    ac_cv_prog_PTHREAD_CC="cc_r"
4901    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4902    break 2
4903  fi
4904done
4905done
4906
4907  test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
4908fi
4909fi
4910PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
4911if test -n "$PTHREAD_CC"; then
4912  echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
4913echo "${ECHO_T}$PTHREAD_CC" >&6
4914else
4915  echo "$as_me:$LINENO: result: no" >&5
4916echo "${ECHO_T}no" >&6
4917fi
4918
4919else
4920        PTHREAD_CC="$CC"
4921fi
4922
4923
4924
4925
4926
4927# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4928if test x"$acx_pthread_ok" = xyes; then
4929
4930  LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
4931  CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
4932
4933        :
4934else
4935        acx_pthread_ok=no
4936
4937fi
4938ac_ext=cc
4939ac_cpp='$CXXCPP $CPPFLAGS'
4940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4943
4944
4945
4946ac_ext=cc
4947ac_cpp='$CXXCPP $CPPFLAGS'
4948ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4949ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4950ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4951echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4952echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4953if test -z "$CXXCPP"; then
4954  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4955  echo $ECHO_N "(cached) $ECHO_C" >&6
4956else
4957      # Double quotes because CXXCPP needs to be expanded
4958    for CXXCPP in "$CXX -E" "/lib/cpp"
4959    do
4960      ac_preproc_ok=false
4961for ac_cxx_preproc_warn_flag in '' yes
4962do
4963  # Use a header file that comes with gcc, so configuring glibc
4964  # with a fresh cross-compiler works.
4965  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4966  # <limits.h> exists even on freestanding compilers.
4967  # On the NeXT, cc -E runs the code through the compiler's parser,
4968  # not just through cpp. "Syntax error" is here to catch this case.
4969  cat >conftest.$ac_ext <<_ACEOF
4970/* confdefs.h.  */
4971_ACEOF
4972cat confdefs.h >>conftest.$ac_ext
4973cat >>conftest.$ac_ext <<_ACEOF
4974/* end confdefs.h.  */
4975#ifdef __STDC__
4976# include <limits.h>
4977#else
4978# include <assert.h>
4979#endif
4980		     Syntax error
4981_ACEOF
4982if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4983  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4984  ac_status=$?
4985  grep -v '^ *+' conftest.er1 >conftest.err
4986  rm -f conftest.er1
4987  cat conftest.err >&5
4988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989  (exit $ac_status); } >/dev/null; then
4990  if test -s conftest.err; then
4991    ac_cpp_err=$ac_cxx_preproc_warn_flag
4992    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4993  else
4994    ac_cpp_err=
4995  fi
4996else
4997  ac_cpp_err=yes
4998fi
4999if test -z "$ac_cpp_err"; then
5000  :
5001else
5002  echo "$as_me: failed program was:" >&5
5003sed 's/^/| /' conftest.$ac_ext >&5
5004
5005  # Broken: fails on valid input.
5006continue
5007fi
5008rm -f conftest.err conftest.$ac_ext
5009
5010  # OK, works on sane cases.  Now check whether non-existent headers
5011  # can be detected and how.
5012  cat >conftest.$ac_ext <<_ACEOF
5013/* confdefs.h.  */
5014_ACEOF
5015cat confdefs.h >>conftest.$ac_ext
5016cat >>conftest.$ac_ext <<_ACEOF
5017/* end confdefs.h.  */
5018#include <ac_nonexistent.h>
5019_ACEOF
5020if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5021  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5022  ac_status=$?
5023  grep -v '^ *+' conftest.er1 >conftest.err
5024  rm -f conftest.er1
5025  cat conftest.err >&5
5026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027  (exit $ac_status); } >/dev/null; then
5028  if test -s conftest.err; then
5029    ac_cpp_err=$ac_cxx_preproc_warn_flag
5030    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5031  else
5032    ac_cpp_err=
5033  fi
5034else
5035  ac_cpp_err=yes
5036fi
5037if test -z "$ac_cpp_err"; then
5038  # Broken: success on invalid input.
5039continue
5040else
5041  echo "$as_me: failed program was:" >&5
5042sed 's/^/| /' conftest.$ac_ext >&5
5043
5044  # Passes both tests.
5045ac_preproc_ok=:
5046break
5047fi
5048rm -f conftest.err conftest.$ac_ext
5049
5050done
5051# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5052rm -f conftest.err conftest.$ac_ext
5053if $ac_preproc_ok; then
5054  break
5055fi
5056
5057    done
5058    ac_cv_prog_CXXCPP=$CXXCPP
5059
5060fi
5061  CXXCPP=$ac_cv_prog_CXXCPP
5062else
5063  ac_cv_prog_CXXCPP=$CXXCPP
5064fi
5065echo "$as_me:$LINENO: result: $CXXCPP" >&5
5066echo "${ECHO_T}$CXXCPP" >&6
5067ac_preproc_ok=false
5068for ac_cxx_preproc_warn_flag in '' yes
5069do
5070  # Use a header file that comes with gcc, so configuring glibc
5071  # with a fresh cross-compiler works.
5072  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5073  # <limits.h> exists even on freestanding compilers.
5074  # On the NeXT, cc -E runs the code through the compiler's parser,
5075  # not just through cpp. "Syntax error" is here to catch this case.
5076  cat >conftest.$ac_ext <<_ACEOF
5077/* confdefs.h.  */
5078_ACEOF
5079cat confdefs.h >>conftest.$ac_ext
5080cat >>conftest.$ac_ext <<_ACEOF
5081/* end confdefs.h.  */
5082#ifdef __STDC__
5083# include <limits.h>
5084#else
5085# include <assert.h>
5086#endif
5087		     Syntax error
5088_ACEOF
5089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5090  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5091  ac_status=$?
5092  grep -v '^ *+' conftest.er1 >conftest.err
5093  rm -f conftest.er1
5094  cat conftest.err >&5
5095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096  (exit $ac_status); } >/dev/null; then
5097  if test -s conftest.err; then
5098    ac_cpp_err=$ac_cxx_preproc_warn_flag
5099    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5100  else
5101    ac_cpp_err=
5102  fi
5103else
5104  ac_cpp_err=yes
5105fi
5106if test -z "$ac_cpp_err"; then
5107  :
5108else
5109  echo "$as_me: failed program was:" >&5
5110sed 's/^/| /' conftest.$ac_ext >&5
5111
5112  # Broken: fails on valid input.
5113continue
5114fi
5115rm -f conftest.err conftest.$ac_ext
5116
5117  # OK, works on sane cases.  Now check whether non-existent headers
5118  # can be detected and how.
5119  cat >conftest.$ac_ext <<_ACEOF
5120/* confdefs.h.  */
5121_ACEOF
5122cat confdefs.h >>conftest.$ac_ext
5123cat >>conftest.$ac_ext <<_ACEOF
5124/* end confdefs.h.  */
5125#include <ac_nonexistent.h>
5126_ACEOF
5127if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5128  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5129  ac_status=$?
5130  grep -v '^ *+' conftest.er1 >conftest.err
5131  rm -f conftest.er1
5132  cat conftest.err >&5
5133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134  (exit $ac_status); } >/dev/null; then
5135  if test -s conftest.err; then
5136    ac_cpp_err=$ac_cxx_preproc_warn_flag
5137    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5138  else
5139    ac_cpp_err=
5140  fi
5141else
5142  ac_cpp_err=yes
5143fi
5144if test -z "$ac_cpp_err"; then
5145  # Broken: success on invalid input.
5146continue
5147else
5148  echo "$as_me: failed program was:" >&5
5149sed 's/^/| /' conftest.$ac_ext >&5
5150
5151  # Passes both tests.
5152ac_preproc_ok=:
5153break
5154fi
5155rm -f conftest.err conftest.$ac_ext
5156
5157done
5158# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5159rm -f conftest.err conftest.$ac_ext
5160if $ac_preproc_ok; then
5161  :
5162else
5163  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5164See \`config.log' for more details." >&5
5165echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5166See \`config.log' for more details." >&2;}
5167   { (exit 1); exit 1; }; }
5168fi
5169
5170ac_ext=cc
5171ac_cpp='$CXXCPP $CPPFLAGS'
5172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5175
5176
5177echo "$as_me:$LINENO: checking for egrep" >&5
5178echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5179if test "${ac_cv_prog_egrep+set}" = set; then
5180  echo $ECHO_N "(cached) $ECHO_C" >&6
5181else
5182  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5183    then ac_cv_prog_egrep='grep -E'
5184    else ac_cv_prog_egrep='egrep'
5185    fi
5186fi
5187echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5188echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5189 EGREP=$ac_cv_prog_egrep
5190
5191
5192echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5193echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5194if test "${ac_cv_header_stdc+set}" = set; then
5195  echo $ECHO_N "(cached) $ECHO_C" >&6
5196else
5197  cat >conftest.$ac_ext <<_ACEOF
5198/* confdefs.h.  */
5199_ACEOF
5200cat confdefs.h >>conftest.$ac_ext
5201cat >>conftest.$ac_ext <<_ACEOF
5202/* end confdefs.h.  */
5203#include <stdlib.h>
5204#include <stdarg.h>
5205#include <string.h>
5206#include <float.h>
5207
5208int
5209main ()
5210{
5211
5212  ;
5213  return 0;
5214}
5215_ACEOF
5216rm -f conftest.$ac_objext
5217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5218  (eval $ac_compile) 2>conftest.er1
5219  ac_status=$?
5220  grep -v '^ *+' conftest.er1 >conftest.err
5221  rm -f conftest.er1
5222  cat conftest.err >&5
5223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224  (exit $ac_status); } &&
5225	 { ac_try='test -z "$ac_cxx_werror_flag"
5226			 || test ! -s conftest.err'
5227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228  (eval $ac_try) 2>&5
5229  ac_status=$?
5230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231  (exit $ac_status); }; } &&
5232	 { ac_try='test -s conftest.$ac_objext'
5233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234  (eval $ac_try) 2>&5
5235  ac_status=$?
5236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237  (exit $ac_status); }; }; then
5238  ac_cv_header_stdc=yes
5239else
5240  echo "$as_me: failed program was:" >&5
5241sed 's/^/| /' conftest.$ac_ext >&5
5242
5243ac_cv_header_stdc=no
5244fi
5245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5246
5247if test $ac_cv_header_stdc = yes; then
5248  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5249  cat >conftest.$ac_ext <<_ACEOF
5250/* confdefs.h.  */
5251_ACEOF
5252cat confdefs.h >>conftest.$ac_ext
5253cat >>conftest.$ac_ext <<_ACEOF
5254/* end confdefs.h.  */
5255#include <string.h>
5256
5257_ACEOF
5258if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5259  $EGREP "memchr" >/dev/null 2>&1; then
5260  :
5261else
5262  ac_cv_header_stdc=no
5263fi
5264rm -f conftest*
5265
5266fi
5267
5268if test $ac_cv_header_stdc = yes; then
5269  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5270  cat >conftest.$ac_ext <<_ACEOF
5271/* confdefs.h.  */
5272_ACEOF
5273cat confdefs.h >>conftest.$ac_ext
5274cat >>conftest.$ac_ext <<_ACEOF
5275/* end confdefs.h.  */
5276#include <stdlib.h>
5277
5278_ACEOF
5279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5280  $EGREP "free" >/dev/null 2>&1; then
5281  :
5282else
5283  ac_cv_header_stdc=no
5284fi
5285rm -f conftest*
5286
5287fi
5288
5289if test $ac_cv_header_stdc = yes; then
5290  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5291  if test "$cross_compiling" = yes; then
5292  :
5293else
5294  cat >conftest.$ac_ext <<_ACEOF
5295/* confdefs.h.  */
5296_ACEOF
5297cat confdefs.h >>conftest.$ac_ext
5298cat >>conftest.$ac_ext <<_ACEOF
5299/* end confdefs.h.  */
5300#include <ctype.h>
5301#if ((' ' & 0x0FF) == 0x020)
5302# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5303# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5304#else
5305# define ISLOWER(c) \
5306		   (('a' <= (c) && (c) <= 'i') \
5307		     || ('j' <= (c) && (c) <= 'r') \
5308		     || ('s' <= (c) && (c) <= 'z'))
5309# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5310#endif
5311
5312#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5313int
5314main ()
5315{
5316  int i;
5317  for (i = 0; i < 256; i++)
5318    if (XOR (islower (i), ISLOWER (i))
5319	|| toupper (i) != TOUPPER (i))
5320      exit(2);
5321  exit (0);
5322}
5323_ACEOF
5324rm -f conftest$ac_exeext
5325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5326  (eval $ac_link) 2>&5
5327  ac_status=$?
5328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331  (eval $ac_try) 2>&5
5332  ac_status=$?
5333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334  (exit $ac_status); }; }; then
5335  :
5336else
5337  echo "$as_me: program exited with status $ac_status" >&5
5338echo "$as_me: failed program was:" >&5
5339sed 's/^/| /' conftest.$ac_ext >&5
5340
5341( exit $ac_status )
5342ac_cv_header_stdc=no
5343fi
5344rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5345fi
5346fi
5347fi
5348echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5349echo "${ECHO_T}$ac_cv_header_stdc" >&6
5350if test $ac_cv_header_stdc = yes; then
5351
5352cat >>confdefs.h <<\_ACEOF
5353#define STDC_HEADERS 1
5354_ACEOF
5355
5356fi
5357
5358# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5369		  inttypes.h stdint.h unistd.h
5370do
5371as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5372echo "$as_me:$LINENO: checking for $ac_header" >&5
5373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5374if eval "test \"\${$as_ac_Header+set}\" = set"; then
5375  echo $ECHO_N "(cached) $ECHO_C" >&6
5376else
5377  cat >conftest.$ac_ext <<_ACEOF
5378/* confdefs.h.  */
5379_ACEOF
5380cat confdefs.h >>conftest.$ac_ext
5381cat >>conftest.$ac_ext <<_ACEOF
5382/* end confdefs.h.  */
5383$ac_includes_default
5384
5385#include <$ac_header>
5386_ACEOF
5387rm -f conftest.$ac_objext
5388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389  (eval $ac_compile) 2>conftest.er1
5390  ac_status=$?
5391  grep -v '^ *+' conftest.er1 >conftest.err
5392  rm -f conftest.er1
5393  cat conftest.err >&5
5394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395  (exit $ac_status); } &&
5396	 { ac_try='test -z "$ac_cxx_werror_flag"
5397			 || test ! -s conftest.err'
5398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399  (eval $ac_try) 2>&5
5400  ac_status=$?
5401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402  (exit $ac_status); }; } &&
5403	 { ac_try='test -s conftest.$ac_objext'
5404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405  (eval $ac_try) 2>&5
5406  ac_status=$?
5407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408  (exit $ac_status); }; }; then
5409  eval "$as_ac_Header=yes"
5410else
5411  echo "$as_me: failed program was:" >&5
5412sed 's/^/| /' conftest.$ac_ext >&5
5413
5414eval "$as_ac_Header=no"
5415fi
5416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5417fi
5418echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5419echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5420if test `eval echo '${'$as_ac_Header'}'` = yes; then
5421  cat >>confdefs.h <<_ACEOF
5422#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5423_ACEOF
5424
5425fi
5426
5427done
5428
5429
5430
5431for ac_header in pthread.h
5432do
5433as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5434if eval "test \"\${$as_ac_Header+set}\" = set"; then
5435  echo "$as_me:$LINENO: checking for $ac_header" >&5
5436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5437if eval "test \"\${$as_ac_Header+set}\" = set"; then
5438  echo $ECHO_N "(cached) $ECHO_C" >&6
5439fi
5440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5442else
5443  # Is the header compilable?
5444echo "$as_me:$LINENO: checking $ac_header usability" >&5
5445echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5446cat >conftest.$ac_ext <<_ACEOF
5447/* confdefs.h.  */
5448_ACEOF
5449cat confdefs.h >>conftest.$ac_ext
5450cat >>conftest.$ac_ext <<_ACEOF
5451/* end confdefs.h.  */
5452$ac_includes_default
5453#include <$ac_header>
5454_ACEOF
5455rm -f conftest.$ac_objext
5456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5457  (eval $ac_compile) 2>conftest.er1
5458  ac_status=$?
5459  grep -v '^ *+' conftest.er1 >conftest.err
5460  rm -f conftest.er1
5461  cat conftest.err >&5
5462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463  (exit $ac_status); } &&
5464	 { ac_try='test -z "$ac_cxx_werror_flag"
5465			 || test ! -s conftest.err'
5466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467  (eval $ac_try) 2>&5
5468  ac_status=$?
5469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470  (exit $ac_status); }; } &&
5471	 { ac_try='test -s conftest.$ac_objext'
5472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473  (eval $ac_try) 2>&5
5474  ac_status=$?
5475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476  (exit $ac_status); }; }; then
5477  ac_header_compiler=yes
5478else
5479  echo "$as_me: failed program was:" >&5
5480sed 's/^/| /' conftest.$ac_ext >&5
5481
5482ac_header_compiler=no
5483fi
5484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5485echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5486echo "${ECHO_T}$ac_header_compiler" >&6
5487
5488# Is the header present?
5489echo "$as_me:$LINENO: checking $ac_header presence" >&5
5490echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5491cat >conftest.$ac_ext <<_ACEOF
5492/* confdefs.h.  */
5493_ACEOF
5494cat confdefs.h >>conftest.$ac_ext
5495cat >>conftest.$ac_ext <<_ACEOF
5496/* end confdefs.h.  */
5497#include <$ac_header>
5498_ACEOF
5499if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5500  (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
5507  if test -s conftest.err; then
5508    ac_cpp_err=$ac_cxx_preproc_warn_flag
5509    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5510  else
5511    ac_cpp_err=
5512  fi
5513else
5514  ac_cpp_err=yes
5515fi
5516if test -z "$ac_cpp_err"; then
5517  ac_header_preproc=yes
5518else
5519  echo "$as_me: failed program was:" >&5
5520sed 's/^/| /' conftest.$ac_ext >&5
5521
5522  ac_header_preproc=no
5523fi
5524rm -f conftest.err conftest.$ac_ext
5525echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5526echo "${ECHO_T}$ac_header_preproc" >&6
5527
5528# So?  What about this header?
5529case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5530  yes:no: )
5531    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5532echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5533    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5534echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5535    ac_header_preproc=yes
5536    ;;
5537  no:yes:* )
5538    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5539echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5540    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5541echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5542    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5543echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5544    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5545echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5546    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5547echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5548    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5549echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5550    (
5551      cat <<\_ASBOX
5552## ------------------------------------------- ##
5553## Report this to administrator@tortugalabs.it ##
5554## ------------------------------------------- ##
5555_ASBOX
5556    ) |
5557      sed "s/^/$as_me: WARNING:     /" >&2
5558    ;;
5559esac
5560echo "$as_me:$LINENO: checking for $ac_header" >&5
5561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5562if eval "test \"\${$as_ac_Header+set}\" = set"; then
5563  echo $ECHO_N "(cached) $ECHO_C" >&6
5564else
5565  eval "$as_ac_Header=\$ac_header_preproc"
5566fi
5567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5569
5570fi
5571if test `eval echo '${'$as_ac_Header'}'` = yes; then
5572  cat >>confdefs.h <<_ACEOF
5573#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5574_ACEOF
5575
5576fi
5577
5578done
5579
5580
5581
5582for ac_func in pthread_create pthread_join
5583do
5584as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5585echo "$as_me:$LINENO: checking for $ac_func" >&5
5586echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5587if eval "test \"\${$as_ac_var+set}\" = set"; then
5588  echo $ECHO_N "(cached) $ECHO_C" >&6
5589else
5590  cat >conftest.$ac_ext <<_ACEOF
5591/* confdefs.h.  */
5592_ACEOF
5593cat confdefs.h >>conftest.$ac_ext
5594cat >>conftest.$ac_ext <<_ACEOF
5595/* end confdefs.h.  */
5596/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5597   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5598#define $ac_func innocuous_$ac_func
5599
5600/* System header to define __stub macros and hopefully few prototypes,
5601    which can conflict with char $ac_func (); below.
5602    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5603    <limits.h> exists even on freestanding compilers.  */
5604
5605#ifdef __STDC__
5606# include <limits.h>
5607#else
5608# include <assert.h>
5609#endif
5610
5611#undef $ac_func
5612
5613/* Override any gcc2 internal prototype to avoid an error.  */
5614#ifdef __cplusplus
5615extern "C"
5616{
5617#endif
5618/* We use char because int might match the return type of a gcc2
5619   builtin and then its argument prototype would still apply.  */
5620char $ac_func ();
5621/* The GNU C library defines this for functions which it implements
5622    to always fail with ENOSYS.  Some functions are actually named
5623    something starting with __ and the normal name is an alias.  */
5624#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5625choke me
5626#else
5627char (*f) () = $ac_func;
5628#endif
5629#ifdef __cplusplus
5630}
5631#endif
5632
5633int
5634main ()
5635{
5636return f != $ac_func;
5637  ;
5638  return 0;
5639}
5640_ACEOF
5641rm -f conftest.$ac_objext conftest$ac_exeext
5642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5643  (eval $ac_link) 2>conftest.er1
5644  ac_status=$?
5645  grep -v '^ *+' conftest.er1 >conftest.err
5646  rm -f conftest.er1
5647  cat conftest.err >&5
5648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649  (exit $ac_status); } &&
5650	 { ac_try='test -z "$ac_cxx_werror_flag"
5651			 || test ! -s conftest.err'
5652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653  (eval $ac_try) 2>&5
5654  ac_status=$?
5655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656  (exit $ac_status); }; } &&
5657	 { ac_try='test -s conftest$ac_exeext'
5658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659  (eval $ac_try) 2>&5
5660  ac_status=$?
5661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662  (exit $ac_status); }; }; then
5663  eval "$as_ac_var=yes"
5664else
5665  echo "$as_me: failed program was:" >&5
5666sed 's/^/| /' conftest.$ac_ext >&5
5667
5668eval "$as_ac_var=no"
5669fi
5670rm -f conftest.err conftest.$ac_objext \
5671      conftest$ac_exeext conftest.$ac_ext
5672fi
5673echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5674echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5675if test `eval echo '${'$as_ac_var'}'` = yes; then
5676  cat >>confdefs.h <<_ACEOF
5677#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5678_ACEOF
5679
5680fi
5681done
5682
5683
5684echo -e $'\n'$'\n'I/O functions
5685echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5686echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5687if test "${ac_cv_header_stdc+set}" = set; then
5688  echo $ECHO_N "(cached) $ECHO_C" >&6
5689else
5690  cat >conftest.$ac_ext <<_ACEOF
5691/* confdefs.h.  */
5692_ACEOF
5693cat confdefs.h >>conftest.$ac_ext
5694cat >>conftest.$ac_ext <<_ACEOF
5695/* end confdefs.h.  */
5696#include <stdlib.h>
5697#include <stdarg.h>
5698#include <string.h>
5699#include <float.h>
5700
5701int
5702main ()
5703{
5704
5705  ;
5706  return 0;
5707}
5708_ACEOF
5709rm -f conftest.$ac_objext
5710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5711  (eval $ac_compile) 2>conftest.er1
5712  ac_status=$?
5713  grep -v '^ *+' conftest.er1 >conftest.err
5714  rm -f conftest.er1
5715  cat conftest.err >&5
5716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717  (exit $ac_status); } &&
5718	 { ac_try='test -z "$ac_cxx_werror_flag"
5719			 || test ! -s conftest.err'
5720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721  (eval $ac_try) 2>&5
5722  ac_status=$?
5723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724  (exit $ac_status); }; } &&
5725	 { ac_try='test -s conftest.$ac_objext'
5726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727  (eval $ac_try) 2>&5
5728  ac_status=$?
5729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730  (exit $ac_status); }; }; then
5731  ac_cv_header_stdc=yes
5732else
5733  echo "$as_me: failed program was:" >&5
5734sed 's/^/| /' conftest.$ac_ext >&5
5735
5736ac_cv_header_stdc=no
5737fi
5738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5739
5740if test $ac_cv_header_stdc = yes; then
5741  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5742  cat >conftest.$ac_ext <<_ACEOF
5743/* confdefs.h.  */
5744_ACEOF
5745cat confdefs.h >>conftest.$ac_ext
5746cat >>conftest.$ac_ext <<_ACEOF
5747/* end confdefs.h.  */
5748#include <string.h>
5749
5750_ACEOF
5751if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5752  $EGREP "memchr" >/dev/null 2>&1; then
5753  :
5754else
5755  ac_cv_header_stdc=no
5756fi
5757rm -f conftest*
5758
5759fi
5760
5761if test $ac_cv_header_stdc = yes; then
5762  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5763  cat >conftest.$ac_ext <<_ACEOF
5764/* confdefs.h.  */
5765_ACEOF
5766cat confdefs.h >>conftest.$ac_ext
5767cat >>conftest.$ac_ext <<_ACEOF
5768/* end confdefs.h.  */
5769#include <stdlib.h>
5770
5771_ACEOF
5772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5773  $EGREP "free" >/dev/null 2>&1; then
5774  :
5775else
5776  ac_cv_header_stdc=no
5777fi
5778rm -f conftest*
5779
5780fi
5781
5782if test $ac_cv_header_stdc = yes; then
5783  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5784  if test "$cross_compiling" = yes; then
5785  :
5786else
5787  cat >conftest.$ac_ext <<_ACEOF
5788/* confdefs.h.  */
5789_ACEOF
5790cat confdefs.h >>conftest.$ac_ext
5791cat >>conftest.$ac_ext <<_ACEOF
5792/* end confdefs.h.  */
5793#include <ctype.h>
5794#if ((' ' & 0x0FF) == 0x020)
5795# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5796# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5797#else
5798# define ISLOWER(c) \
5799		   (('a' <= (c) && (c) <= 'i') \
5800		     || ('j' <= (c) && (c) <= 'r') \
5801		     || ('s' <= (c) && (c) <= 'z'))
5802# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5803#endif
5804
5805#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5806int
5807main ()
5808{
5809  int i;
5810  for (i = 0; i < 256; i++)
5811    if (XOR (islower (i), ISLOWER (i))
5812	|| toupper (i) != TOUPPER (i))
5813      exit(2);
5814  exit (0);
5815}
5816_ACEOF
5817rm -f conftest$ac_exeext
5818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5819  (eval $ac_link) 2>&5
5820  ac_status=$?
5821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824  (eval $ac_try) 2>&5
5825  ac_status=$?
5826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827  (exit $ac_status); }; }; then
5828  :
5829else
5830  echo "$as_me: program exited with status $ac_status" >&5
5831echo "$as_me: failed program was:" >&5
5832sed 's/^/| /' conftest.$ac_ext >&5
5833
5834( exit $ac_status )
5835ac_cv_header_stdc=no
5836fi
5837rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5838fi
5839fi
5840fi
5841echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5842echo "${ECHO_T}$ac_cv_header_stdc" >&6
5843if test $ac_cv_header_stdc = yes; then
5844
5845cat >>confdefs.h <<\_ACEOF
5846#define STDC_HEADERS 1
5847_ACEOF
5848
5849fi
5850
5851echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5852echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5853if test "${ac_cv_header_stat_broken+set}" = set; then
5854  echo $ECHO_N "(cached) $ECHO_C" >&6
5855else
5856  cat >conftest.$ac_ext <<_ACEOF
5857/* confdefs.h.  */
5858_ACEOF
5859cat confdefs.h >>conftest.$ac_ext
5860cat >>conftest.$ac_ext <<_ACEOF
5861/* end confdefs.h.  */
5862#include <sys/types.h>
5863#include <sys/stat.h>
5864
5865#if defined(S_ISBLK) && defined(S_IFDIR)
5866# if S_ISBLK (S_IFDIR)
5867You lose.
5868# endif
5869#endif
5870
5871#if defined(S_ISBLK) && defined(S_IFCHR)
5872# if S_ISBLK (S_IFCHR)
5873You lose.
5874# endif
5875#endif
5876
5877#if defined(S_ISLNK) && defined(S_IFREG)
5878# if S_ISLNK (S_IFREG)
5879You lose.
5880# endif
5881#endif
5882
5883#if defined(S_ISSOCK) && defined(S_IFREG)
5884# if S_ISSOCK (S_IFREG)
5885You lose.
5886# endif
5887#endif
5888
5889_ACEOF
5890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5891  $EGREP "You lose" >/dev/null 2>&1; then
5892  ac_cv_header_stat_broken=yes
5893else
5894  ac_cv_header_stat_broken=no
5895fi
5896rm -f conftest*
5897
5898fi
5899echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5900echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5901if test $ac_cv_header_stat_broken = yes; then
5902
5903cat >>confdefs.h <<\_ACEOF
5904#define STAT_MACROS_BROKEN 1
5905_ACEOF
5906
5907fi
5908
5909
5910
5911for ac_header in stdio.h fcntl.h
5912do
5913as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5914if eval "test \"\${$as_ac_Header+set}\" = set"; then
5915  echo "$as_me:$LINENO: checking for $ac_header" >&5
5916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5917if eval "test \"\${$as_ac_Header+set}\" = set"; then
5918  echo $ECHO_N "(cached) $ECHO_C" >&6
5919fi
5920echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5921echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5922else
5923  # Is the header compilable?
5924echo "$as_me:$LINENO: checking $ac_header usability" >&5
5925echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5926cat >conftest.$ac_ext <<_ACEOF
5927/* confdefs.h.  */
5928_ACEOF
5929cat confdefs.h >>conftest.$ac_ext
5930cat >>conftest.$ac_ext <<_ACEOF
5931/* end confdefs.h.  */
5932$ac_includes_default
5933#include <$ac_header>
5934_ACEOF
5935rm -f conftest.$ac_objext
5936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937  (eval $ac_compile) 2>conftest.er1
5938  ac_status=$?
5939  grep -v '^ *+' conftest.er1 >conftest.err
5940  rm -f conftest.er1
5941  cat conftest.err >&5
5942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943  (exit $ac_status); } &&
5944	 { ac_try='test -z "$ac_cxx_werror_flag"
5945			 || test ! -s conftest.err'
5946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947  (eval $ac_try) 2>&5
5948  ac_status=$?
5949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950  (exit $ac_status); }; } &&
5951	 { ac_try='test -s conftest.$ac_objext'
5952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953  (eval $ac_try) 2>&5
5954  ac_status=$?
5955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956  (exit $ac_status); }; }; then
5957  ac_header_compiler=yes
5958else
5959  echo "$as_me: failed program was:" >&5
5960sed 's/^/| /' conftest.$ac_ext >&5
5961
5962ac_header_compiler=no
5963fi
5964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5965echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5966echo "${ECHO_T}$ac_header_compiler" >&6
5967
5968# Is the header present?
5969echo "$as_me:$LINENO: checking $ac_header presence" >&5
5970echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5971cat >conftest.$ac_ext <<_ACEOF
5972/* confdefs.h.  */
5973_ACEOF
5974cat confdefs.h >>conftest.$ac_ext
5975cat >>conftest.$ac_ext <<_ACEOF
5976/* end confdefs.h.  */
5977#include <$ac_header>
5978_ACEOF
5979if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5980  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5981  ac_status=$?
5982  grep -v '^ *+' conftest.er1 >conftest.err
5983  rm -f conftest.er1
5984  cat conftest.err >&5
5985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986  (exit $ac_status); } >/dev/null; then
5987  if test -s conftest.err; then
5988    ac_cpp_err=$ac_cxx_preproc_warn_flag
5989    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5990  else
5991    ac_cpp_err=
5992  fi
5993else
5994  ac_cpp_err=yes
5995fi
5996if test -z "$ac_cpp_err"; then
5997  ac_header_preproc=yes
5998else
5999  echo "$as_me: failed program was:" >&5
6000sed 's/^/| /' conftest.$ac_ext >&5
6001
6002  ac_header_preproc=no
6003fi
6004rm -f conftest.err conftest.$ac_ext
6005echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6006echo "${ECHO_T}$ac_header_preproc" >&6
6007
6008# So?  What about this header?
6009case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6010  yes:no: )
6011    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6012echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6013    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6014echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6015    ac_header_preproc=yes
6016    ;;
6017  no:yes:* )
6018    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6019echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6020    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6021echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6022    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6023echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6024    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6025echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6026    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6027echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6028    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6029echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6030    (
6031      cat <<\_ASBOX
6032## ------------------------------------------- ##
6033## Report this to administrator@tortugalabs.it ##
6034## ------------------------------------------- ##
6035_ASBOX
6036    ) |
6037      sed "s/^/$as_me: WARNING:     /" >&2
6038    ;;
6039esac
6040echo "$as_me:$LINENO: checking for $ac_header" >&5
6041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6042if eval "test \"\${$as_ac_Header+set}\" = set"; then
6043  echo $ECHO_N "(cached) $ECHO_C" >&6
6044else
6045  eval "$as_ac_Header=\$ac_header_preproc"
6046fi
6047echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6048echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6049
6050fi
6051if test `eval echo '${'$as_ac_Header'}'` = yes; then
6052  cat >>confdefs.h <<_ACEOF
6053#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6054_ACEOF
6055
6056fi
6057
6058done
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073for ac_func in open read write close printf fopen fprintf fflush fclose sprintf unlink fread fwrite
6074do
6075as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6076echo "$as_me:$LINENO: checking for $ac_func" >&5
6077echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6078if eval "test \"\${$as_ac_var+set}\" = set"; then
6079  echo $ECHO_N "(cached) $ECHO_C" >&6
6080else
6081  cat >conftest.$ac_ext <<_ACEOF
6082/* confdefs.h.  */
6083_ACEOF
6084cat confdefs.h >>conftest.$ac_ext
6085cat >>conftest.$ac_ext <<_ACEOF
6086/* end confdefs.h.  */
6087/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6088   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6089#define $ac_func innocuous_$ac_func
6090
6091/* System header to define __stub macros and hopefully few prototypes,
6092    which can conflict with char $ac_func (); below.
6093    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6094    <limits.h> exists even on freestanding compilers.  */
6095
6096#ifdef __STDC__
6097# include <limits.h>
6098#else
6099# include <assert.h>
6100#endif
6101
6102#undef $ac_func
6103
6104/* Override any gcc2 internal prototype to avoid an error.  */
6105#ifdef __cplusplus
6106extern "C"
6107{
6108#endif
6109/* We use char because int might match the return type of a gcc2
6110   builtin and then its argument prototype would still apply.  */
6111char $ac_func ();
6112/* The GNU C library defines this for functions which it implements
6113    to always fail with ENOSYS.  Some functions are actually named
6114    something starting with __ and the normal name is an alias.  */
6115#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6116choke me
6117#else
6118char (*f) () = $ac_func;
6119#endif
6120#ifdef __cplusplus
6121}
6122#endif
6123
6124int
6125main ()
6126{
6127return f != $ac_func;
6128  ;
6129  return 0;
6130}
6131_ACEOF
6132rm -f conftest.$ac_objext conftest$ac_exeext
6133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6134  (eval $ac_link) 2>conftest.er1
6135  ac_status=$?
6136  grep -v '^ *+' conftest.er1 >conftest.err
6137  rm -f conftest.er1
6138  cat conftest.err >&5
6139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140  (exit $ac_status); } &&
6141	 { ac_try='test -z "$ac_cxx_werror_flag"
6142			 || test ! -s conftest.err'
6143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144  (eval $ac_try) 2>&5
6145  ac_status=$?
6146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147  (exit $ac_status); }; } &&
6148	 { ac_try='test -s conftest$ac_exeext'
6149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150  (eval $ac_try) 2>&5
6151  ac_status=$?
6152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153  (exit $ac_status); }; }; then
6154  eval "$as_ac_var=yes"
6155else
6156  echo "$as_me: failed program was:" >&5
6157sed 's/^/| /' conftest.$ac_ext >&5
6158
6159eval "$as_ac_var=no"
6160fi
6161rm -f conftest.err conftest.$ac_objext \
6162      conftest$ac_exeext conftest.$ac_ext
6163fi
6164echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6165echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6166if test `eval echo '${'$as_ac_var'}'` = yes; then
6167  cat >>confdefs.h <<_ACEOF
6168#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6169_ACEOF
6170 have_io_funcs=yes
6171else
6172  { { echo "$as_me:$LINENO: error: required function missing" >&5
6173echo "$as_me: error: required function missing" >&2;}
6174   { (exit 1); exit 1; }; }
6175fi
6176done
6177
6178
6179echo -e $'\n'$'\n'System log functions
6180
6181for ac_header in syslog.h
6182do
6183as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6184if eval "test \"\${$as_ac_Header+set}\" = set"; then
6185  echo "$as_me:$LINENO: checking for $ac_header" >&5
6186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6187if eval "test \"\${$as_ac_Header+set}\" = set"; then
6188  echo $ECHO_N "(cached) $ECHO_C" >&6
6189fi
6190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6191echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6192else
6193  # Is the header compilable?
6194echo "$as_me:$LINENO: checking $ac_header usability" >&5
6195echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6196cat >conftest.$ac_ext <<_ACEOF
6197/* confdefs.h.  */
6198_ACEOF
6199cat confdefs.h >>conftest.$ac_ext
6200cat >>conftest.$ac_ext <<_ACEOF
6201/* end confdefs.h.  */
6202$ac_includes_default
6203#include <$ac_header>
6204_ACEOF
6205rm -f conftest.$ac_objext
6206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6207  (eval $ac_compile) 2>conftest.er1
6208  ac_status=$?
6209  grep -v '^ *+' conftest.er1 >conftest.err
6210  rm -f conftest.er1
6211  cat conftest.err >&5
6212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213  (exit $ac_status); } &&
6214	 { ac_try='test -z "$ac_cxx_werror_flag"
6215			 || test ! -s conftest.err'
6216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217  (eval $ac_try) 2>&5
6218  ac_status=$?
6219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220  (exit $ac_status); }; } &&
6221	 { ac_try='test -s conftest.$ac_objext'
6222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223  (eval $ac_try) 2>&5
6224  ac_status=$?
6225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226  (exit $ac_status); }; }; then
6227  ac_header_compiler=yes
6228else
6229  echo "$as_me: failed program was:" >&5
6230sed 's/^/| /' conftest.$ac_ext >&5
6231
6232ac_header_compiler=no
6233fi
6234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6235echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6236echo "${ECHO_T}$ac_header_compiler" >&6
6237
6238# Is the header present?
6239echo "$as_me:$LINENO: checking $ac_header presence" >&5
6240echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6241cat >conftest.$ac_ext <<_ACEOF
6242/* confdefs.h.  */
6243_ACEOF
6244cat confdefs.h >>conftest.$ac_ext
6245cat >>conftest.$ac_ext <<_ACEOF
6246/* end confdefs.h.  */
6247#include <$ac_header>
6248_ACEOF
6249if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6250  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6251  ac_status=$?
6252  grep -v '^ *+' conftest.er1 >conftest.err
6253  rm -f conftest.er1
6254  cat conftest.err >&5
6255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256  (exit $ac_status); } >/dev/null; then
6257  if test -s conftest.err; then
6258    ac_cpp_err=$ac_cxx_preproc_warn_flag
6259    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6260  else
6261    ac_cpp_err=
6262  fi
6263else
6264  ac_cpp_err=yes
6265fi
6266if test -z "$ac_cpp_err"; then
6267  ac_header_preproc=yes
6268else
6269  echo "$as_me: failed program was:" >&5
6270sed 's/^/| /' conftest.$ac_ext >&5
6271
6272  ac_header_preproc=no
6273fi
6274rm -f conftest.err conftest.$ac_ext
6275echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6276echo "${ECHO_T}$ac_header_preproc" >&6
6277
6278# So?  What about this header?
6279case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6280  yes:no: )
6281    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6282echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6283    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6284echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6285    ac_header_preproc=yes
6286    ;;
6287  no:yes:* )
6288    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6289echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6290    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6291echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6292    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6293echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6294    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6295echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6296    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6297echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6298    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6299echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6300    (
6301      cat <<\_ASBOX
6302## ------------------------------------------- ##
6303## Report this to administrator@tortugalabs.it ##
6304## ------------------------------------------- ##
6305_ASBOX
6306    ) |
6307      sed "s/^/$as_me: WARNING:     /" >&2
6308    ;;
6309esac
6310echo "$as_me:$LINENO: checking for $ac_header" >&5
6311echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6312if eval "test \"\${$as_ac_Header+set}\" = set"; then
6313  echo $ECHO_N "(cached) $ECHO_C" >&6
6314else
6315  eval "$as_ac_Header=\$ac_header_preproc"
6316fi
6317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6318echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6319
6320fi
6321if test `eval echo '${'$as_ac_Header'}'` = yes; then
6322  cat >>confdefs.h <<_ACEOF
6323#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6324_ACEOF
6325
6326fi
6327
6328done
6329
6330
6331
6332
6333for ac_func in openlog syslog closelog
6334do
6335as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6336echo "$as_me:$LINENO: checking for $ac_func" >&5
6337echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6338if eval "test \"\${$as_ac_var+set}\" = set"; then
6339  echo $ECHO_N "(cached) $ECHO_C" >&6
6340else
6341  cat >conftest.$ac_ext <<_ACEOF
6342/* confdefs.h.  */
6343_ACEOF
6344cat confdefs.h >>conftest.$ac_ext
6345cat >>conftest.$ac_ext <<_ACEOF
6346/* end confdefs.h.  */
6347/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6348   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6349#define $ac_func innocuous_$ac_func
6350
6351/* System header to define __stub macros and hopefully few prototypes,
6352    which can conflict with char $ac_func (); below.
6353    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6354    <limits.h> exists even on freestanding compilers.  */
6355
6356#ifdef __STDC__
6357# include <limits.h>
6358#else
6359# include <assert.h>
6360#endif
6361
6362#undef $ac_func
6363
6364/* Override any gcc2 internal prototype to avoid an error.  */
6365#ifdef __cplusplus
6366extern "C"
6367{
6368#endif
6369/* We use char because int might match the return type of a gcc2
6370   builtin and then its argument prototype would still apply.  */
6371char $ac_func ();
6372/* The GNU C library defines this for functions which it implements
6373    to always fail with ENOSYS.  Some functions are actually named
6374    something starting with __ and the normal name is an alias.  */
6375#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6376choke me
6377#else
6378char (*f) () = $ac_func;
6379#endif
6380#ifdef __cplusplus
6381}
6382#endif
6383
6384int
6385main ()
6386{
6387return f != $ac_func;
6388  ;
6389  return 0;
6390}
6391_ACEOF
6392rm -f conftest.$ac_objext conftest$ac_exeext
6393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6394  (eval $ac_link) 2>conftest.er1
6395  ac_status=$?
6396  grep -v '^ *+' conftest.er1 >conftest.err
6397  rm -f conftest.er1
6398  cat conftest.err >&5
6399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400  (exit $ac_status); } &&
6401	 { ac_try='test -z "$ac_cxx_werror_flag"
6402			 || test ! -s conftest.err'
6403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404  (eval $ac_try) 2>&5
6405  ac_status=$?
6406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407  (exit $ac_status); }; } &&
6408	 { ac_try='test -s conftest$ac_exeext'
6409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410  (eval $ac_try) 2>&5
6411  ac_status=$?
6412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413  (exit $ac_status); }; }; then
6414  eval "$as_ac_var=yes"
6415else
6416  echo "$as_me: failed program was:" >&5
6417sed 's/^/| /' conftest.$ac_ext >&5
6418
6419eval "$as_ac_var=no"
6420fi
6421rm -f conftest.err conftest.$ac_objext \
6422      conftest$ac_exeext conftest.$ac_ext
6423fi
6424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6425echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6426if test `eval echo '${'$as_ac_var'}'` = yes; then
6427  cat >>confdefs.h <<_ACEOF
6428#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6429_ACEOF
6430 have_log_funcs=yes
6431else
6432  { { echo "$as_me:$LINENO: error: required function missing" >&5
6433echo "$as_me: error: required function missing" >&2;}
6434   { (exit 1); exit 1; }; }
6435fi
6436done
6437
6438
6439echo -e $'\n'$'\n'Network functions
6440
6441
6442
6443for ac_header in sys/socket.h netinet/in.h arpa/inet.h
6444do
6445as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6446if eval "test \"\${$as_ac_Header+set}\" = set"; then
6447  echo "$as_me:$LINENO: checking for $ac_header" >&5
6448echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6449if eval "test \"\${$as_ac_Header+set}\" = set"; then
6450  echo $ECHO_N "(cached) $ECHO_C" >&6
6451fi
6452echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6453echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6454else
6455  # Is the header compilable?
6456echo "$as_me:$LINENO: checking $ac_header usability" >&5
6457echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6458cat >conftest.$ac_ext <<_ACEOF
6459/* confdefs.h.  */
6460_ACEOF
6461cat confdefs.h >>conftest.$ac_ext
6462cat >>conftest.$ac_ext <<_ACEOF
6463/* end confdefs.h.  */
6464$ac_includes_default
6465#include <$ac_header>
6466_ACEOF
6467rm -f conftest.$ac_objext
6468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6469  (eval $ac_compile) 2>conftest.er1
6470  ac_status=$?
6471  grep -v '^ *+' conftest.er1 >conftest.err
6472  rm -f conftest.er1
6473  cat conftest.err >&5
6474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475  (exit $ac_status); } &&
6476	 { ac_try='test -z "$ac_cxx_werror_flag"
6477			 || test ! -s conftest.err'
6478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479  (eval $ac_try) 2>&5
6480  ac_status=$?
6481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482  (exit $ac_status); }; } &&
6483	 { ac_try='test -s conftest.$ac_objext'
6484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485  (eval $ac_try) 2>&5
6486  ac_status=$?
6487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488  (exit $ac_status); }; }; then
6489  ac_header_compiler=yes
6490else
6491  echo "$as_me: failed program was:" >&5
6492sed 's/^/| /' conftest.$ac_ext >&5
6493
6494ac_header_compiler=no
6495fi
6496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6497echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6498echo "${ECHO_T}$ac_header_compiler" >&6
6499
6500# Is the header present?
6501echo "$as_me:$LINENO: checking $ac_header presence" >&5
6502echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6503cat >conftest.$ac_ext <<_ACEOF
6504/* confdefs.h.  */
6505_ACEOF
6506cat confdefs.h >>conftest.$ac_ext
6507cat >>conftest.$ac_ext <<_ACEOF
6508/* end confdefs.h.  */
6509#include <$ac_header>
6510_ACEOF
6511if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6512  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6513  ac_status=$?
6514  grep -v '^ *+' conftest.er1 >conftest.err
6515  rm -f conftest.er1
6516  cat conftest.err >&5
6517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518  (exit $ac_status); } >/dev/null; then
6519  if test -s conftest.err; then
6520    ac_cpp_err=$ac_cxx_preproc_warn_flag
6521    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6522  else
6523    ac_cpp_err=
6524  fi
6525else
6526  ac_cpp_err=yes
6527fi
6528if test -z "$ac_cpp_err"; then
6529  ac_header_preproc=yes
6530else
6531  echo "$as_me: failed program was:" >&5
6532sed 's/^/| /' conftest.$ac_ext >&5
6533
6534  ac_header_preproc=no
6535fi
6536rm -f conftest.err conftest.$ac_ext
6537echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6538echo "${ECHO_T}$ac_header_preproc" >&6
6539
6540# So?  What about this header?
6541case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6542  yes:no: )
6543    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6544echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6545    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6546echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6547    ac_header_preproc=yes
6548    ;;
6549  no:yes:* )
6550    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6551echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6552    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6553echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6554    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6555echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6556    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6557echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6558    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6559echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6560    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6561echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6562    (
6563      cat <<\_ASBOX
6564## ------------------------------------------- ##
6565## Report this to administrator@tortugalabs.it ##
6566## ------------------------------------------- ##
6567_ASBOX
6568    ) |
6569      sed "s/^/$as_me: WARNING:     /" >&2
6570    ;;
6571esac
6572echo "$as_me:$LINENO: checking for $ac_header" >&5
6573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6574if eval "test \"\${$as_ac_Header+set}\" = set"; then
6575  echo $ECHO_N "(cached) $ECHO_C" >&6
6576else
6577  eval "$as_ac_Header=\$ac_header_preproc"
6578fi
6579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6580echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6581
6582fi
6583if test `eval echo '${'$as_ac_Header'}'` = yes; then
6584  cat >>confdefs.h <<_ACEOF
6585#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6586_ACEOF
6587
6588fi
6589
6590done
6591
6592
6593echo "$as_me:$LINENO: checking for libraries containing socket functions" >&5
6594echo $ECHO_N "checking for libraries containing socket functions... $ECHO_C" >&6
6595if test "${ac_cv_socket_libs+set}" = set; then
6596  echo $ECHO_N "(cached) $ECHO_C" >&6
6597else
6598
6599        oCFLAGS=$CFLAGS
6600
6601        cat >conftest.$ac_ext <<_ACEOF
6602/* confdefs.h.  */
6603_ACEOF
6604cat confdefs.h >>conftest.$ac_ext
6605cat >>conftest.$ac_ext <<_ACEOF
6606/* end confdefs.h.  */
6607
6608                        #include <sys/types.h>
6609                        #include <sys/socket.h>
6610                        #include <netinet/in.h>
6611                        #include <arpa/inet.h>
6612
6613int
6614main ()
6615{
6616
6617                        struct in_addr add;
6618                        int sd = socket(AF_INET, SOCK_STREAM, 0);
6619                        inet_ntoa(add);
6620
6621  ;
6622  return 0;
6623}
6624_ACEOF
6625rm -f conftest.$ac_objext conftest$ac_exeext
6626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6627  (eval $ac_link) 2>conftest.er1
6628  ac_status=$?
6629  grep -v '^ *+' conftest.er1 >conftest.err
6630  rm -f conftest.er1
6631  cat conftest.err >&5
6632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633  (exit $ac_status); } &&
6634	 { ac_try='test -z "$ac_cxx_werror_flag"
6635			 || test ! -s conftest.err'
6636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637  (eval $ac_try) 2>&5
6638  ac_status=$?
6639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640  (exit $ac_status); }; } &&
6641	 { ac_try='test -s conftest$ac_exeext'
6642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643  (eval $ac_try) 2>&5
6644  ac_status=$?
6645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646  (exit $ac_status); }; }; then
6647  ac_cv_socket_libs=-lc
6648else
6649  echo "$as_me: failed program was:" >&5
6650sed 's/^/| /' conftest.$ac_ext >&5
6651
6652ac_cv_socket_libs=no
6653fi
6654rm -f conftest.err conftest.$ac_objext \
6655      conftest$ac_exeext conftest.$ac_ext
6656
6657        if test x"$ac_cv_socket_libs" = "xno"
6658        then
6659                CFLAGS="$oCFLAGS -lsocket"
6660                cat >conftest.$ac_ext <<_ACEOF
6661/* confdefs.h.  */
6662_ACEOF
6663cat confdefs.h >>conftest.$ac_ext
6664cat >>conftest.$ac_ext <<_ACEOF
6665/* end confdefs.h.  */
6666
6667                                #include <sys/types.h>
6668                                #include <sys/socket.h>
6669                                #include <netinet/in.h>
6670                                #include <arpa/inet.h>
6671
6672int
6673main ()
6674{
6675
6676                                struct in_addr add;
6677                                int sd = socket(AF_INET, SOCK_STREAM, 0);
6678                                inet_ntoa(add);
6679
6680  ;
6681  return 0;
6682}
6683_ACEOF
6684rm -f conftest.$ac_objext conftest$ac_exeext
6685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6686  (eval $ac_link) 2>conftest.er1
6687  ac_status=$?
6688  grep -v '^ *+' conftest.er1 >conftest.err
6689  rm -f conftest.er1
6690  cat conftest.err >&5
6691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692  (exit $ac_status); } &&
6693	 { ac_try='test -z "$ac_cxx_werror_flag"
6694			 || test ! -s conftest.err'
6695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696  (eval $ac_try) 2>&5
6697  ac_status=$?
6698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699  (exit $ac_status); }; } &&
6700	 { ac_try='test -s conftest$ac_exeext'
6701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702  (eval $ac_try) 2>&5
6703  ac_status=$?
6704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705  (exit $ac_status); }; }; then
6706  ac_cv_socket_libs=-lsocket
6707else
6708  echo "$as_me: failed program was:" >&5
6709sed 's/^/| /' conftest.$ac_ext >&5
6710
6711ac_cv_socket_libs=no
6712fi
6713rm -f conftest.err conftest.$ac_objext \
6714      conftest$ac_exeext conftest.$ac_ext
6715        fi
6716
6717        if test x"$ac_cv_socket_libs" = "xno"
6718        then
6719                CFLAGS="$oCFLAGS -lsocket -lnsl"
6720                cat >conftest.$ac_ext <<_ACEOF
6721/* confdefs.h.  */
6722_ACEOF
6723cat confdefs.h >>conftest.$ac_ext
6724cat >>conftest.$ac_ext <<_ACEOF
6725/* end confdefs.h.  */
6726
6727                                #include <sys/types.h>
6728                                #include <sys/socket.h>
6729                                #include <netinet/in.h>
6730                                #include <arpa/inet.h>
6731
6732int
6733main ()
6734{
6735
6736                                struct in_addr add;
6737                                int sd = socket(AF_INET, SOCK_STREAM, 0);
6738                                inet_ntoa(add);
6739
6740  ;
6741  return 0;
6742}
6743_ACEOF
6744rm -f conftest.$ac_objext conftest$ac_exeext
6745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6746  (eval $ac_link) 2>conftest.er1
6747  ac_status=$?
6748  grep -v '^ *+' conftest.er1 >conftest.err
6749  rm -f conftest.er1
6750  cat conftest.err >&5
6751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752  (exit $ac_status); } &&
6753	 { ac_try='test -z "$ac_cxx_werror_flag"
6754			 || test ! -s conftest.err'
6755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756  (eval $ac_try) 2>&5
6757  ac_status=$?
6758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759  (exit $ac_status); }; } &&
6760	 { ac_try='test -s conftest$ac_exeext'
6761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762  (eval $ac_try) 2>&5
6763  ac_status=$?
6764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765  (exit $ac_status); }; }; then
6766  ac_cv_socket_libs="-lsocket -lnsl"
6767else
6768  echo "$as_me: failed program was:" >&5
6769sed 's/^/| /' conftest.$ac_ext >&5
6770
6771ac_cv_socket_libs=no
6772fi
6773rm -f conftest.err conftest.$ac_objext \
6774      conftest$ac_exeext conftest.$ac_ext
6775        fi
6776
6777        CFLAGS=$oCFLAGS
6778
6779fi
6780echo "$as_me:$LINENO: result: $ac_cv_socket_libs" >&5
6781echo "${ECHO_T}$ac_cv_socket_libs" >&6
6782
6783        if test x"$ac_cv_socket_libs" = "xno"
6784        then
6785                { { echo "$as_me:$LINENO: error: Cannot find socket libraries" >&5
6786echo "$as_me: error: Cannot find socket libraries" >&2;}
6787   { (exit 1); exit 1; }; }
6788        elif test x"$ac_cv_socket_libs" = "x-lc"
6789        then
6790                ETR_SOCKET_LIBS=""
6791        else
6792                ETR_SOCKET_LIBS="$ac_cv_socket_libs"
6793        fi
6794
6795
6796
6797LDFLAGS="$LDFLAGS $ETR_SOCKET_LIBS"
6798
6799
6800
6801
6802
6803
6804
6805
6806for ac_func in socket bind listen accept connect htons htonl inet_addr
6807do
6808as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6809echo "$as_me:$LINENO: checking for $ac_func" >&5
6810echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6811if eval "test \"\${$as_ac_var+set}\" = set"; then
6812  echo $ECHO_N "(cached) $ECHO_C" >&6
6813else
6814  cat >conftest.$ac_ext <<_ACEOF
6815/* confdefs.h.  */
6816_ACEOF
6817cat confdefs.h >>conftest.$ac_ext
6818cat >>conftest.$ac_ext <<_ACEOF
6819/* end confdefs.h.  */
6820/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6821   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6822#define $ac_func innocuous_$ac_func
6823
6824/* System header to define __stub macros and hopefully few prototypes,
6825    which can conflict with char $ac_func (); below.
6826    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6827    <limits.h> exists even on freestanding compilers.  */
6828
6829#ifdef __STDC__
6830# include <limits.h>
6831#else
6832# include <assert.h>
6833#endif
6834
6835#undef $ac_func
6836
6837/* Override any gcc2 internal prototype to avoid an error.  */
6838#ifdef __cplusplus
6839extern "C"
6840{
6841#endif
6842/* We use char because int might match the return type of a gcc2
6843   builtin and then its argument prototype would still apply.  */
6844char $ac_func ();
6845/* The GNU C library defines this for functions which it implements
6846    to always fail with ENOSYS.  Some functions are actually named
6847    something starting with __ and the normal name is an alias.  */
6848#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6849choke me
6850#else
6851char (*f) () = $ac_func;
6852#endif
6853#ifdef __cplusplus
6854}
6855#endif
6856
6857int
6858main ()
6859{
6860return f != $ac_func;
6861  ;
6862  return 0;
6863}
6864_ACEOF
6865rm -f conftest.$ac_objext conftest$ac_exeext
6866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6867  (eval $ac_link) 2>conftest.er1
6868  ac_status=$?
6869  grep -v '^ *+' conftest.er1 >conftest.err
6870  rm -f conftest.er1
6871  cat conftest.err >&5
6872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873  (exit $ac_status); } &&
6874	 { ac_try='test -z "$ac_cxx_werror_flag"
6875			 || test ! -s conftest.err'
6876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877  (eval $ac_try) 2>&5
6878  ac_status=$?
6879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880  (exit $ac_status); }; } &&
6881	 { ac_try='test -s conftest$ac_exeext'
6882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883  (eval $ac_try) 2>&5
6884  ac_status=$?
6885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886  (exit $ac_status); }; }; then
6887  eval "$as_ac_var=yes"
6888else
6889  echo "$as_me: failed program was:" >&5
6890sed 's/^/| /' conftest.$ac_ext >&5
6891
6892eval "$as_ac_var=no"
6893fi
6894rm -f conftest.err conftest.$ac_objext \
6895      conftest$ac_exeext conftest.$ac_ext
6896fi
6897echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6898echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6899if test `eval echo '${'$as_ac_var'}'` = yes; then
6900  cat >>confdefs.h <<_ACEOF
6901#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6902_ACEOF
6903 have_net_funcs=yes
6904else
6905  { { echo "$as_me:$LINENO: error: required function missing" >&5
6906echo "$as_me: error: required function missing" >&2;}
6907   { (exit 1); exit 1; }; }
6908fi
6909done
6910
6911echo "$as_me:$LINENO: checking for socklen_t" >&5
6912echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
6913if test "${ac_cv_type_socklen_t+set}" = set; then
6914  echo $ECHO_N "(cached) $ECHO_C" >&6
6915else
6916
6917  cat >conftest.$ac_ext <<_ACEOF
6918/* confdefs.h.  */
6919_ACEOF
6920cat confdefs.h >>conftest.$ac_ext
6921cat >>conftest.$ac_ext <<_ACEOF
6922/* end confdefs.h.  */
6923#include <sys/types.h>
6924   #include <sys/socket.h>
6925int
6926main ()
6927{
6928socklen_t len = 42; return 0;
6929  ;
6930  return 0;
6931}
6932_ACEOF
6933rm -f conftest.$ac_objext
6934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6935  (eval $ac_compile) 2>conftest.er1
6936  ac_status=$?
6937  grep -v '^ *+' conftest.er1 >conftest.err
6938  rm -f conftest.er1
6939  cat conftest.err >&5
6940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941  (exit $ac_status); } &&
6942	 { ac_try='test -z "$ac_cxx_werror_flag"
6943			 || test ! -s conftest.err'
6944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945  (eval $ac_try) 2>&5
6946  ac_status=$?
6947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948  (exit $ac_status); }; } &&
6949	 { ac_try='test -s conftest.$ac_objext'
6950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951  (eval $ac_try) 2>&5
6952  ac_status=$?
6953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954  (exit $ac_status); }; }; then
6955  ac_cv_type_socklen_t=yes
6956else
6957  echo "$as_me: failed program was:" >&5
6958sed 's/^/| /' conftest.$ac_ext >&5
6959
6960ac_cv_type_socklen_t=no
6961fi
6962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6963
6964fi
6965echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
6966echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
6967  if test $ac_cv_type_socklen_t != yes; then
6968
6969cat >>confdefs.h <<\_ACEOF
6970#define socklen_t int
6971_ACEOF
6972
6973  fi
6974
6975
6976echo -e $'\n'$'\n'Directory functions
6977
6978
6979
6980
6981
6982ac_header_dirent=no
6983for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6984  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6985echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6986echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6987if eval "test \"\${$as_ac_Header+set}\" = set"; then
6988  echo $ECHO_N "(cached) $ECHO_C" >&6
6989else
6990  cat >conftest.$ac_ext <<_ACEOF
6991/* confdefs.h.  */
6992_ACEOF
6993cat confdefs.h >>conftest.$ac_ext
6994cat >>conftest.$ac_ext <<_ACEOF
6995/* end confdefs.h.  */
6996#include <sys/types.h>
6997#include <$ac_hdr>
6998
6999int
7000main ()
7001{
7002if ((DIR *) 0)
7003return 0;
7004  ;
7005  return 0;
7006}
7007_ACEOF
7008rm -f conftest.$ac_objext
7009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7010  (eval $ac_compile) 2>conftest.er1
7011  ac_status=$?
7012  grep -v '^ *+' conftest.er1 >conftest.err
7013  rm -f conftest.er1
7014  cat conftest.err >&5
7015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016  (exit $ac_status); } &&
7017	 { ac_try='test -z "$ac_cxx_werror_flag"
7018			 || test ! -s conftest.err'
7019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020  (eval $ac_try) 2>&5
7021  ac_status=$?
7022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023  (exit $ac_status); }; } &&
7024	 { ac_try='test -s conftest.$ac_objext'
7025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026  (eval $ac_try) 2>&5
7027  ac_status=$?
7028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029  (exit $ac_status); }; }; then
7030  eval "$as_ac_Header=yes"
7031else
7032  echo "$as_me: failed program was:" >&5
7033sed 's/^/| /' conftest.$ac_ext >&5
7034
7035eval "$as_ac_Header=no"
7036fi
7037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7038fi
7039echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7040echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7041if test `eval echo '${'$as_ac_Header'}'` = yes; then
7042  cat >>confdefs.h <<_ACEOF
7043#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7044_ACEOF
7045
7046ac_header_dirent=$ac_hdr; break
7047fi
7048
7049done
7050# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7051if test $ac_header_dirent = dirent.h; then
7052  echo "$as_me:$LINENO: checking for library containing opendir" >&5
7053echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7054if test "${ac_cv_search_opendir+set}" = set; then
7055  echo $ECHO_N "(cached) $ECHO_C" >&6
7056else
7057  ac_func_search_save_LIBS=$LIBS
7058ac_cv_search_opendir=no
7059cat >conftest.$ac_ext <<_ACEOF
7060/* confdefs.h.  */
7061_ACEOF
7062cat confdefs.h >>conftest.$ac_ext
7063cat >>conftest.$ac_ext <<_ACEOF
7064/* end confdefs.h.  */
7065
7066/* Override any gcc2 internal prototype to avoid an error.  */
7067#ifdef __cplusplus
7068extern "C"
7069#endif
7070/* We use char because int might match the return type of a gcc2
7071   builtin and then its argument prototype would still apply.  */
7072char opendir ();
7073int
7074main ()
7075{
7076opendir ();
7077  ;
7078  return 0;
7079}
7080_ACEOF
7081rm -f conftest.$ac_objext conftest$ac_exeext
7082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7083  (eval $ac_link) 2>conftest.er1
7084  ac_status=$?
7085  grep -v '^ *+' conftest.er1 >conftest.err
7086  rm -f conftest.er1
7087  cat conftest.err >&5
7088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089  (exit $ac_status); } &&
7090	 { ac_try='test -z "$ac_cxx_werror_flag"
7091			 || test ! -s conftest.err'
7092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093  (eval $ac_try) 2>&5
7094  ac_status=$?
7095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096  (exit $ac_status); }; } &&
7097	 { ac_try='test -s conftest$ac_exeext'
7098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099  (eval $ac_try) 2>&5
7100  ac_status=$?
7101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102  (exit $ac_status); }; }; then
7103  ac_cv_search_opendir="none required"
7104else
7105  echo "$as_me: failed program was:" >&5
7106sed 's/^/| /' conftest.$ac_ext >&5
7107
7108fi
7109rm -f conftest.err conftest.$ac_objext \
7110      conftest$ac_exeext conftest.$ac_ext
7111if test "$ac_cv_search_opendir" = no; then
7112  for ac_lib in dir; do
7113    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7114    cat >conftest.$ac_ext <<_ACEOF
7115/* confdefs.h.  */
7116_ACEOF
7117cat confdefs.h >>conftest.$ac_ext
7118cat >>conftest.$ac_ext <<_ACEOF
7119/* end confdefs.h.  */
7120
7121/* Override any gcc2 internal prototype to avoid an error.  */
7122#ifdef __cplusplus
7123extern "C"
7124#endif
7125/* We use char because int might match the return type of a gcc2
7126   builtin and then its argument prototype would still apply.  */
7127char opendir ();
7128int
7129main ()
7130{
7131opendir ();
7132  ;
7133  return 0;
7134}
7135_ACEOF
7136rm -f conftest.$ac_objext conftest$ac_exeext
7137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7138  (eval $ac_link) 2>conftest.er1
7139  ac_status=$?
7140  grep -v '^ *+' conftest.er1 >conftest.err
7141  rm -f conftest.er1
7142  cat conftest.err >&5
7143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144  (exit $ac_status); } &&
7145	 { ac_try='test -z "$ac_cxx_werror_flag"
7146			 || test ! -s conftest.err'
7147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148  (eval $ac_try) 2>&5
7149  ac_status=$?
7150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151  (exit $ac_status); }; } &&
7152	 { ac_try='test -s conftest$ac_exeext'
7153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154  (eval $ac_try) 2>&5
7155  ac_status=$?
7156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157  (exit $ac_status); }; }; then
7158  ac_cv_search_opendir="-l$ac_lib"
7159break
7160else
7161  echo "$as_me: failed program was:" >&5
7162sed 's/^/| /' conftest.$ac_ext >&5
7163
7164fi
7165rm -f conftest.err conftest.$ac_objext \
7166      conftest$ac_exeext conftest.$ac_ext
7167  done
7168fi
7169LIBS=$ac_func_search_save_LIBS
7170fi
7171echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7172echo "${ECHO_T}$ac_cv_search_opendir" >&6
7173if test "$ac_cv_search_opendir" != no; then
7174  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7175
7176fi
7177
7178else
7179  echo "$as_me:$LINENO: checking for library containing opendir" >&5
7180echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7181if test "${ac_cv_search_opendir+set}" = set; then
7182  echo $ECHO_N "(cached) $ECHO_C" >&6
7183else
7184  ac_func_search_save_LIBS=$LIBS
7185ac_cv_search_opendir=no
7186cat >conftest.$ac_ext <<_ACEOF
7187/* confdefs.h.  */
7188_ACEOF
7189cat confdefs.h >>conftest.$ac_ext
7190cat >>conftest.$ac_ext <<_ACEOF
7191/* end confdefs.h.  */
7192
7193/* Override any gcc2 internal prototype to avoid an error.  */
7194#ifdef __cplusplus
7195extern "C"
7196#endif
7197/* We use char because int might match the return type of a gcc2
7198   builtin and then its argument prototype would still apply.  */
7199char opendir ();
7200int
7201main ()
7202{
7203opendir ();
7204  ;
7205  return 0;
7206}
7207_ACEOF
7208rm -f conftest.$ac_objext conftest$ac_exeext
7209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7210  (eval $ac_link) 2>conftest.er1
7211  ac_status=$?
7212  grep -v '^ *+' conftest.er1 >conftest.err
7213  rm -f conftest.er1
7214  cat conftest.err >&5
7215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216  (exit $ac_status); } &&
7217	 { ac_try='test -z "$ac_cxx_werror_flag"
7218			 || test ! -s conftest.err'
7219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220  (eval $ac_try) 2>&5
7221  ac_status=$?
7222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223  (exit $ac_status); }; } &&
7224	 { ac_try='test -s conftest$ac_exeext'
7225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226  (eval $ac_try) 2>&5
7227  ac_status=$?
7228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229  (exit $ac_status); }; }; then
7230  ac_cv_search_opendir="none required"
7231else
7232  echo "$as_me: failed program was:" >&5
7233sed 's/^/| /' conftest.$ac_ext >&5
7234
7235fi
7236rm -f conftest.err conftest.$ac_objext \
7237      conftest$ac_exeext conftest.$ac_ext
7238if test "$ac_cv_search_opendir" = no; then
7239  for ac_lib in x; do
7240    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7241    cat >conftest.$ac_ext <<_ACEOF
7242/* confdefs.h.  */
7243_ACEOF
7244cat confdefs.h >>conftest.$ac_ext
7245cat >>conftest.$ac_ext <<_ACEOF
7246/* end confdefs.h.  */
7247
7248/* Override any gcc2 internal prototype to avoid an error.  */
7249#ifdef __cplusplus
7250extern "C"
7251#endif
7252/* We use char because int might match the return type of a gcc2
7253   builtin and then its argument prototype would still apply.  */
7254char opendir ();
7255int
7256main ()
7257{
7258opendir ();
7259  ;
7260  return 0;
7261}
7262_ACEOF
7263rm -f conftest.$ac_objext conftest$ac_exeext
7264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7265  (eval $ac_link) 2>conftest.er1
7266  ac_status=$?
7267  grep -v '^ *+' conftest.er1 >conftest.err
7268  rm -f conftest.er1
7269  cat conftest.err >&5
7270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271  (exit $ac_status); } &&
7272	 { ac_try='test -z "$ac_cxx_werror_flag"
7273			 || test ! -s conftest.err'
7274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275  (eval $ac_try) 2>&5
7276  ac_status=$?
7277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278  (exit $ac_status); }; } &&
7279	 { ac_try='test -s conftest$ac_exeext'
7280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281  (eval $ac_try) 2>&5
7282  ac_status=$?
7283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284  (exit $ac_status); }; }; then
7285  ac_cv_search_opendir="-l$ac_lib"
7286break
7287else
7288  echo "$as_me: failed program was:" >&5
7289sed 's/^/| /' conftest.$ac_ext >&5
7290
7291fi
7292rm -f conftest.err conftest.$ac_objext \
7293      conftest$ac_exeext conftest.$ac_ext
7294  done
7295fi
7296LIBS=$ac_func_search_save_LIBS
7297fi
7298echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7299echo "${ECHO_T}$ac_cv_search_opendir" >&6
7300if test "$ac_cv_search_opendir" != no; then
7301  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7302
7303fi
7304
7305fi
7306
7307
7308for ac_header in dirent.h
7309do
7310as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7311if eval "test \"\${$as_ac_Header+set}\" = set"; then
7312  echo "$as_me:$LINENO: checking for $ac_header" >&5
7313echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7314if eval "test \"\${$as_ac_Header+set}\" = set"; then
7315  echo $ECHO_N "(cached) $ECHO_C" >&6
7316fi
7317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7318echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7319else
7320  # Is the header compilable?
7321echo "$as_me:$LINENO: checking $ac_header usability" >&5
7322echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7323cat >conftest.$ac_ext <<_ACEOF
7324/* confdefs.h.  */
7325_ACEOF
7326cat confdefs.h >>conftest.$ac_ext
7327cat >>conftest.$ac_ext <<_ACEOF
7328/* end confdefs.h.  */
7329$ac_includes_default
7330#include <$ac_header>
7331_ACEOF
7332rm -f conftest.$ac_objext
7333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7334  (eval $ac_compile) 2>conftest.er1
7335  ac_status=$?
7336  grep -v '^ *+' conftest.er1 >conftest.err
7337  rm -f conftest.er1
7338  cat conftest.err >&5
7339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340  (exit $ac_status); } &&
7341	 { ac_try='test -z "$ac_cxx_werror_flag"
7342			 || test ! -s conftest.err'
7343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344  (eval $ac_try) 2>&5
7345  ac_status=$?
7346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347  (exit $ac_status); }; } &&
7348	 { ac_try='test -s conftest.$ac_objext'
7349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350  (eval $ac_try) 2>&5
7351  ac_status=$?
7352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353  (exit $ac_status); }; }; then
7354  ac_header_compiler=yes
7355else
7356  echo "$as_me: failed program was:" >&5
7357sed 's/^/| /' conftest.$ac_ext >&5
7358
7359ac_header_compiler=no
7360fi
7361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7362echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7363echo "${ECHO_T}$ac_header_compiler" >&6
7364
7365# Is the header present?
7366echo "$as_me:$LINENO: checking $ac_header presence" >&5
7367echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7368cat >conftest.$ac_ext <<_ACEOF
7369/* confdefs.h.  */
7370_ACEOF
7371cat confdefs.h >>conftest.$ac_ext
7372cat >>conftest.$ac_ext <<_ACEOF
7373/* end confdefs.h.  */
7374#include <$ac_header>
7375_ACEOF
7376if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7377  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7378  ac_status=$?
7379  grep -v '^ *+' conftest.er1 >conftest.err
7380  rm -f conftest.er1
7381  cat conftest.err >&5
7382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383  (exit $ac_status); } >/dev/null; then
7384  if test -s conftest.err; then
7385    ac_cpp_err=$ac_cxx_preproc_warn_flag
7386    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7387  else
7388    ac_cpp_err=
7389  fi
7390else
7391  ac_cpp_err=yes
7392fi
7393if test -z "$ac_cpp_err"; then
7394  ac_header_preproc=yes
7395else
7396  echo "$as_me: failed program was:" >&5
7397sed 's/^/| /' conftest.$ac_ext >&5
7398
7399  ac_header_preproc=no
7400fi
7401rm -f conftest.err conftest.$ac_ext
7402echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7403echo "${ECHO_T}$ac_header_preproc" >&6
7404
7405# So?  What about this header?
7406case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7407  yes:no: )
7408    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7409echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7410    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7411echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7412    ac_header_preproc=yes
7413    ;;
7414  no:yes:* )
7415    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7416echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7417    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7418echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7419    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7420echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7421    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7422echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7423    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7424echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7425    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7426echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7427    (
7428      cat <<\_ASBOX
7429## ------------------------------------------- ##
7430## Report this to administrator@tortugalabs.it ##
7431## ------------------------------------------- ##
7432_ASBOX
7433    ) |
7434      sed "s/^/$as_me: WARNING:     /" >&2
7435    ;;
7436esac
7437echo "$as_me:$LINENO: checking for $ac_header" >&5
7438echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7439if eval "test \"\${$as_ac_Header+set}\" = set"; then
7440  echo $ECHO_N "(cached) $ECHO_C" >&6
7441else
7442  eval "$as_ac_Header=\$ac_header_preproc"
7443fi
7444echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7445echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7446
7447fi
7448if test `eval echo '${'$as_ac_Header'}'` = yes; then
7449  cat >>confdefs.h <<_ACEOF
7450#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7451_ACEOF
7452
7453fi
7454
7455done
7456
7457
7458
7459
7460for ac_func in opendir readdir closedir
7461do
7462as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7463echo "$as_me:$LINENO: checking for $ac_func" >&5
7464echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7465if eval "test \"\${$as_ac_var+set}\" = set"; then
7466  echo $ECHO_N "(cached) $ECHO_C" >&6
7467else
7468  cat >conftest.$ac_ext <<_ACEOF
7469/* confdefs.h.  */
7470_ACEOF
7471cat confdefs.h >>conftest.$ac_ext
7472cat >>conftest.$ac_ext <<_ACEOF
7473/* end confdefs.h.  */
7474/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7475   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7476#define $ac_func innocuous_$ac_func
7477
7478/* System header to define __stub macros and hopefully few prototypes,
7479    which can conflict with char $ac_func (); below.
7480    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7481    <limits.h> exists even on freestanding compilers.  */
7482
7483#ifdef __STDC__
7484# include <limits.h>
7485#else
7486# include <assert.h>
7487#endif
7488
7489#undef $ac_func
7490
7491/* Override any gcc2 internal prototype to avoid an error.  */
7492#ifdef __cplusplus
7493extern "C"
7494{
7495#endif
7496/* We use char because int might match the return type of a gcc2
7497   builtin and then its argument prototype would still apply.  */
7498char $ac_func ();
7499/* The GNU C library defines this for functions which it implements
7500    to always fail with ENOSYS.  Some functions are actually named
7501    something starting with __ and the normal name is an alias.  */
7502#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7503choke me
7504#else
7505char (*f) () = $ac_func;
7506#endif
7507#ifdef __cplusplus
7508}
7509#endif
7510
7511int
7512main ()
7513{
7514return f != $ac_func;
7515  ;
7516  return 0;
7517}
7518_ACEOF
7519rm -f conftest.$ac_objext conftest$ac_exeext
7520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7521  (eval $ac_link) 2>conftest.er1
7522  ac_status=$?
7523  grep -v '^ *+' conftest.er1 >conftest.err
7524  rm -f conftest.er1
7525  cat conftest.err >&5
7526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527  (exit $ac_status); } &&
7528	 { ac_try='test -z "$ac_cxx_werror_flag"
7529			 || test ! -s conftest.err'
7530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531  (eval $ac_try) 2>&5
7532  ac_status=$?
7533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534  (exit $ac_status); }; } &&
7535	 { ac_try='test -s conftest$ac_exeext'
7536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537  (eval $ac_try) 2>&5
7538  ac_status=$?
7539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540  (exit $ac_status); }; }; then
7541  eval "$as_ac_var=yes"
7542else
7543  echo "$as_me: failed program was:" >&5
7544sed 's/^/| /' conftest.$ac_ext >&5
7545
7546eval "$as_ac_var=no"
7547fi
7548rm -f conftest.err conftest.$ac_objext \
7549      conftest$ac_exeext conftest.$ac_ext
7550fi
7551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7552echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7553if test `eval echo '${'$as_ac_var'}'` = yes; then
7554  cat >>confdefs.h <<_ACEOF
7555#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7556_ACEOF
7557 have_dir_funcs=yes
7558else
7559  { { echo "$as_me:$LINENO: error: required function missing" >&5
7560echo "$as_me: error: required function missing" >&2;}
7561   { (exit 1); exit 1; }; }
7562fi
7563done
7564
7565
7566echo -e $'\n'$'\n'String and character functions
7567
7568
7569for ac_header in getopt.h ctype.h
7570do
7571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7572if eval "test \"\${$as_ac_Header+set}\" = set"; then
7573  echo "$as_me:$LINENO: checking for $ac_header" >&5
7574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7575if eval "test \"\${$as_ac_Header+set}\" = set"; then
7576  echo $ECHO_N "(cached) $ECHO_C" >&6
7577fi
7578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7579echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7580else
7581  # Is the header compilable?
7582echo "$as_me:$LINENO: checking $ac_header usability" >&5
7583echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7584cat >conftest.$ac_ext <<_ACEOF
7585/* confdefs.h.  */
7586_ACEOF
7587cat confdefs.h >>conftest.$ac_ext
7588cat >>conftest.$ac_ext <<_ACEOF
7589/* end confdefs.h.  */
7590$ac_includes_default
7591#include <$ac_header>
7592_ACEOF
7593rm -f conftest.$ac_objext
7594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7595  (eval $ac_compile) 2>conftest.er1
7596  ac_status=$?
7597  grep -v '^ *+' conftest.er1 >conftest.err
7598  rm -f conftest.er1
7599  cat conftest.err >&5
7600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601  (exit $ac_status); } &&
7602	 { ac_try='test -z "$ac_cxx_werror_flag"
7603			 || test ! -s conftest.err'
7604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605  (eval $ac_try) 2>&5
7606  ac_status=$?
7607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608  (exit $ac_status); }; } &&
7609	 { ac_try='test -s conftest.$ac_objext'
7610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611  (eval $ac_try) 2>&5
7612  ac_status=$?
7613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614  (exit $ac_status); }; }; then
7615  ac_header_compiler=yes
7616else
7617  echo "$as_me: failed program was:" >&5
7618sed 's/^/| /' conftest.$ac_ext >&5
7619
7620ac_header_compiler=no
7621fi
7622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7623echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7624echo "${ECHO_T}$ac_header_compiler" >&6
7625
7626# Is the header present?
7627echo "$as_me:$LINENO: checking $ac_header presence" >&5
7628echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7629cat >conftest.$ac_ext <<_ACEOF
7630/* confdefs.h.  */
7631_ACEOF
7632cat confdefs.h >>conftest.$ac_ext
7633cat >>conftest.$ac_ext <<_ACEOF
7634/* end confdefs.h.  */
7635#include <$ac_header>
7636_ACEOF
7637if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7638  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7639  ac_status=$?
7640  grep -v '^ *+' conftest.er1 >conftest.err
7641  rm -f conftest.er1
7642  cat conftest.err >&5
7643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644  (exit $ac_status); } >/dev/null; then
7645  if test -s conftest.err; then
7646    ac_cpp_err=$ac_cxx_preproc_warn_flag
7647    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7648  else
7649    ac_cpp_err=
7650  fi
7651else
7652  ac_cpp_err=yes
7653fi
7654if test -z "$ac_cpp_err"; then
7655  ac_header_preproc=yes
7656else
7657  echo "$as_me: failed program was:" >&5
7658sed 's/^/| /' conftest.$ac_ext >&5
7659
7660  ac_header_preproc=no
7661fi
7662rm -f conftest.err conftest.$ac_ext
7663echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7664echo "${ECHO_T}$ac_header_preproc" >&6
7665
7666# So?  What about this header?
7667case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7668  yes:no: )
7669    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7670echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7671    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7672echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7673    ac_header_preproc=yes
7674    ;;
7675  no:yes:* )
7676    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7677echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7678    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7679echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7680    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7681echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7682    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7683echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7684    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7685echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7686    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7687echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7688    (
7689      cat <<\_ASBOX
7690## ------------------------------------------- ##
7691## Report this to administrator@tortugalabs.it ##
7692## ------------------------------------------- ##
7693_ASBOX
7694    ) |
7695      sed "s/^/$as_me: WARNING:     /" >&2
7696    ;;
7697esac
7698echo "$as_me:$LINENO: checking for $ac_header" >&5
7699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7700if eval "test \"\${$as_ac_Header+set}\" = set"; then
7701  echo $ECHO_N "(cached) $ECHO_C" >&6
7702else
7703  eval "$as_ac_Header=\$ac_header_preproc"
7704fi
7705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7706echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7707
7708fi
7709if test `eval echo '${'$as_ac_Header'}'` = yes; then
7710  cat >>confdefs.h <<_ACEOF
7711#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7712_ACEOF
7713
7714fi
7715
7716done
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729for ac_func in getopt memset strcpy atoi strtok strcat strlen toupper strcmp strncmp bzero
7730do
7731as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7732echo "$as_me:$LINENO: checking for $ac_func" >&5
7733echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7734if eval "test \"\${$as_ac_var+set}\" = set"; then
7735  echo $ECHO_N "(cached) $ECHO_C" >&6
7736else
7737  cat >conftest.$ac_ext <<_ACEOF
7738/* confdefs.h.  */
7739_ACEOF
7740cat confdefs.h >>conftest.$ac_ext
7741cat >>conftest.$ac_ext <<_ACEOF
7742/* end confdefs.h.  */
7743/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7744   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7745#define $ac_func innocuous_$ac_func
7746
7747/* System header to define __stub macros and hopefully few prototypes,
7748    which can conflict with char $ac_func (); below.
7749    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7750    <limits.h> exists even on freestanding compilers.  */
7751
7752#ifdef __STDC__
7753# include <limits.h>
7754#else
7755# include <assert.h>
7756#endif
7757
7758#undef $ac_func
7759
7760/* Override any gcc2 internal prototype to avoid an error.  */
7761#ifdef __cplusplus
7762extern "C"
7763{
7764#endif
7765/* We use char because int might match the return type of a gcc2
7766   builtin and then its argument prototype would still apply.  */
7767char $ac_func ();
7768/* The GNU C library defines this for functions which it implements
7769    to always fail with ENOSYS.  Some functions are actually named
7770    something starting with __ and the normal name is an alias.  */
7771#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7772choke me
7773#else
7774char (*f) () = $ac_func;
7775#endif
7776#ifdef __cplusplus
7777}
7778#endif
7779
7780int
7781main ()
7782{
7783return f != $ac_func;
7784  ;
7785  return 0;
7786}
7787_ACEOF
7788rm -f conftest.$ac_objext conftest$ac_exeext
7789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7790  (eval $ac_link) 2>conftest.er1
7791  ac_status=$?
7792  grep -v '^ *+' conftest.er1 >conftest.err
7793  rm -f conftest.er1
7794  cat conftest.err >&5
7795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796  (exit $ac_status); } &&
7797	 { ac_try='test -z "$ac_cxx_werror_flag"
7798			 || test ! -s conftest.err'
7799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800  (eval $ac_try) 2>&5
7801  ac_status=$?
7802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803  (exit $ac_status); }; } &&
7804	 { ac_try='test -s conftest$ac_exeext'
7805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7806  (eval $ac_try) 2>&5
7807  ac_status=$?
7808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809  (exit $ac_status); }; }; then
7810  eval "$as_ac_var=yes"
7811else
7812  echo "$as_me: failed program was:" >&5
7813sed 's/^/| /' conftest.$ac_ext >&5
7814
7815eval "$as_ac_var=no"
7816fi
7817rm -f conftest.err conftest.$ac_objext \
7818      conftest$ac_exeext conftest.$ac_ext
7819fi
7820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7821echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7822if test `eval echo '${'$as_ac_var'}'` = yes; then
7823  cat >>confdefs.h <<_ACEOF
7824#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7825_ACEOF
7826 have_str_funcs=yes
7827else
7828  { { echo "$as_me:$LINENO: error: required function missing" >&5
7829echo "$as_me: error: required function missing" >&2;}
7830   { (exit 1); exit 1; }; }
7831fi
7832done
7833
7834
7835echo -e $'\n'$'\n'POSIX signal functions
7836
7837for ac_header in signal.h
7838do
7839as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7840if eval "test \"\${$as_ac_Header+set}\" = set"; then
7841  echo "$as_me:$LINENO: checking for $ac_header" >&5
7842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7843if eval "test \"\${$as_ac_Header+set}\" = set"; then
7844  echo $ECHO_N "(cached) $ECHO_C" >&6
7845fi
7846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7848else
7849  # Is the header compilable?
7850echo "$as_me:$LINENO: checking $ac_header usability" >&5
7851echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7852cat >conftest.$ac_ext <<_ACEOF
7853/* confdefs.h.  */
7854_ACEOF
7855cat confdefs.h >>conftest.$ac_ext
7856cat >>conftest.$ac_ext <<_ACEOF
7857/* end confdefs.h.  */
7858$ac_includes_default
7859#include <$ac_header>
7860_ACEOF
7861rm -f conftest.$ac_objext
7862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7863  (eval $ac_compile) 2>conftest.er1
7864  ac_status=$?
7865  grep -v '^ *+' conftest.er1 >conftest.err
7866  rm -f conftest.er1
7867  cat conftest.err >&5
7868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869  (exit $ac_status); } &&
7870	 { ac_try='test -z "$ac_cxx_werror_flag"
7871			 || test ! -s conftest.err'
7872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873  (eval $ac_try) 2>&5
7874  ac_status=$?
7875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876  (exit $ac_status); }; } &&
7877	 { ac_try='test -s conftest.$ac_objext'
7878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879  (eval $ac_try) 2>&5
7880  ac_status=$?
7881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882  (exit $ac_status); }; }; then
7883  ac_header_compiler=yes
7884else
7885  echo "$as_me: failed program was:" >&5
7886sed 's/^/| /' conftest.$ac_ext >&5
7887
7888ac_header_compiler=no
7889fi
7890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7891echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7892echo "${ECHO_T}$ac_header_compiler" >&6
7893
7894# Is the header present?
7895echo "$as_me:$LINENO: checking $ac_header presence" >&5
7896echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7897cat >conftest.$ac_ext <<_ACEOF
7898/* confdefs.h.  */
7899_ACEOF
7900cat confdefs.h >>conftest.$ac_ext
7901cat >>conftest.$ac_ext <<_ACEOF
7902/* end confdefs.h.  */
7903#include <$ac_header>
7904_ACEOF
7905if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7906  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7907  ac_status=$?
7908  grep -v '^ *+' conftest.er1 >conftest.err
7909  rm -f conftest.er1
7910  cat conftest.err >&5
7911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912  (exit $ac_status); } >/dev/null; then
7913  if test -s conftest.err; then
7914    ac_cpp_err=$ac_cxx_preproc_warn_flag
7915    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7916  else
7917    ac_cpp_err=
7918  fi
7919else
7920  ac_cpp_err=yes
7921fi
7922if test -z "$ac_cpp_err"; then
7923  ac_header_preproc=yes
7924else
7925  echo "$as_me: failed program was:" >&5
7926sed 's/^/| /' conftest.$ac_ext >&5
7927
7928  ac_header_preproc=no
7929fi
7930rm -f conftest.err conftest.$ac_ext
7931echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7932echo "${ECHO_T}$ac_header_preproc" >&6
7933
7934# So?  What about this header?
7935case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7936  yes:no: )
7937    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7938echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7939    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7940echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7941    ac_header_preproc=yes
7942    ;;
7943  no:yes:* )
7944    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7945echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7946    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7947echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7948    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7949echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7950    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7951echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7952    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7953echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7954    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7955echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7956    (
7957      cat <<\_ASBOX
7958## ------------------------------------------- ##
7959## Report this to administrator@tortugalabs.it ##
7960## ------------------------------------------- ##
7961_ASBOX
7962    ) |
7963      sed "s/^/$as_me: WARNING:     /" >&2
7964    ;;
7965esac
7966echo "$as_me:$LINENO: checking for $ac_header" >&5
7967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7968if eval "test \"\${$as_ac_Header+set}\" = set"; then
7969  echo $ECHO_N "(cached) $ECHO_C" >&6
7970else
7971  eval "$as_ac_Header=\$ac_header_preproc"
7972fi
7973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7974echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7975
7976fi
7977if test `eval echo '${'$as_ac_Header'}'` = yes; then
7978  cat >>confdefs.h <<_ACEOF
7979#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7980_ACEOF
7981
7982fi
7983
7984done
7985
7986
7987
7988
7989
7990
7991for ac_func in sigaction sigemptyset sigaddset sigprocmask kill
7992do
7993as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7994echo "$as_me:$LINENO: checking for $ac_func" >&5
7995echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7996if eval "test \"\${$as_ac_var+set}\" = set"; then
7997  echo $ECHO_N "(cached) $ECHO_C" >&6
7998else
7999  cat >conftest.$ac_ext <<_ACEOF
8000/* confdefs.h.  */
8001_ACEOF
8002cat confdefs.h >>conftest.$ac_ext
8003cat >>conftest.$ac_ext <<_ACEOF
8004/* end confdefs.h.  */
8005/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8006   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8007#define $ac_func innocuous_$ac_func
8008
8009/* System header to define __stub macros and hopefully few prototypes,
8010    which can conflict with char $ac_func (); below.
8011    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8012    <limits.h> exists even on freestanding compilers.  */
8013
8014#ifdef __STDC__
8015# include <limits.h>
8016#else
8017# include <assert.h>
8018#endif
8019
8020#undef $ac_func
8021
8022/* Override any gcc2 internal prototype to avoid an error.  */
8023#ifdef __cplusplus
8024extern "C"
8025{
8026#endif
8027/* We use char because int might match the return type of a gcc2
8028   builtin and then its argument prototype would still apply.  */
8029char $ac_func ();
8030/* The GNU C library defines this for functions which it implements
8031    to always fail with ENOSYS.  Some functions are actually named
8032    something starting with __ and the normal name is an alias.  */
8033#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8034choke me
8035#else
8036char (*f) () = $ac_func;
8037#endif
8038#ifdef __cplusplus
8039}
8040#endif
8041
8042int
8043main ()
8044{
8045return f != $ac_func;
8046  ;
8047  return 0;
8048}
8049_ACEOF
8050rm -f conftest.$ac_objext conftest$ac_exeext
8051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8052  (eval $ac_link) 2>conftest.er1
8053  ac_status=$?
8054  grep -v '^ *+' conftest.er1 >conftest.err
8055  rm -f conftest.er1
8056  cat conftest.err >&5
8057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058  (exit $ac_status); } &&
8059	 { ac_try='test -z "$ac_cxx_werror_flag"
8060			 || test ! -s conftest.err'
8061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062  (eval $ac_try) 2>&5
8063  ac_status=$?
8064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065  (exit $ac_status); }; } &&
8066	 { ac_try='test -s conftest$ac_exeext'
8067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068  (eval $ac_try) 2>&5
8069  ac_status=$?
8070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071  (exit $ac_status); }; }; then
8072  eval "$as_ac_var=yes"
8073else
8074  echo "$as_me: failed program was:" >&5
8075sed 's/^/| /' conftest.$ac_ext >&5
8076
8077eval "$as_ac_var=no"
8078fi
8079rm -f conftest.err conftest.$ac_objext \
8080      conftest$ac_exeext conftest.$ac_ext
8081fi
8082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8083echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8084if test `eval echo '${'$as_ac_var'}'` = yes; then
8085  cat >>confdefs.h <<_ACEOF
8086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8087_ACEOF
8088 have_sigs_funcs=yes
8089else
8090  { { echo "$as_me:$LINENO: error: required function missing" >&5
8091echo "$as_me: error: required function missing" >&2;}
8092   { (exit 1); exit 1; }; }
8093fi
8094done
8095
8096
8097echo -e $'\n'$'\n'POSIX semaphores functions
8098
8099for ac_header in semaphore.h
8100do
8101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8102if eval "test \"\${$as_ac_Header+set}\" = set"; then
8103  echo "$as_me:$LINENO: checking for $ac_header" >&5
8104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8105if eval "test \"\${$as_ac_Header+set}\" = set"; then
8106  echo $ECHO_N "(cached) $ECHO_C" >&6
8107fi
8108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8109echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8110else
8111  # Is the header compilable?
8112echo "$as_me:$LINENO: checking $ac_header usability" >&5
8113echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8114cat >conftest.$ac_ext <<_ACEOF
8115/* confdefs.h.  */
8116_ACEOF
8117cat confdefs.h >>conftest.$ac_ext
8118cat >>conftest.$ac_ext <<_ACEOF
8119/* end confdefs.h.  */
8120$ac_includes_default
8121#include <$ac_header>
8122_ACEOF
8123rm -f conftest.$ac_objext
8124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8125  (eval $ac_compile) 2>conftest.er1
8126  ac_status=$?
8127  grep -v '^ *+' conftest.er1 >conftest.err
8128  rm -f conftest.er1
8129  cat conftest.err >&5
8130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131  (exit $ac_status); } &&
8132	 { ac_try='test -z "$ac_cxx_werror_flag"
8133			 || test ! -s conftest.err'
8134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135  (eval $ac_try) 2>&5
8136  ac_status=$?
8137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138  (exit $ac_status); }; } &&
8139	 { ac_try='test -s conftest.$ac_objext'
8140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141  (eval $ac_try) 2>&5
8142  ac_status=$?
8143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144  (exit $ac_status); }; }; then
8145  ac_header_compiler=yes
8146else
8147  echo "$as_me: failed program was:" >&5
8148sed 's/^/| /' conftest.$ac_ext >&5
8149
8150ac_header_compiler=no
8151fi
8152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8153echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8154echo "${ECHO_T}$ac_header_compiler" >&6
8155
8156# Is the header present?
8157echo "$as_me:$LINENO: checking $ac_header presence" >&5
8158echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8159cat >conftest.$ac_ext <<_ACEOF
8160/* confdefs.h.  */
8161_ACEOF
8162cat confdefs.h >>conftest.$ac_ext
8163cat >>conftest.$ac_ext <<_ACEOF
8164/* end confdefs.h.  */
8165#include <$ac_header>
8166_ACEOF
8167if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8168  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8169  ac_status=$?
8170  grep -v '^ *+' conftest.er1 >conftest.err
8171  rm -f conftest.er1
8172  cat conftest.err >&5
8173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174  (exit $ac_status); } >/dev/null; then
8175  if test -s conftest.err; then
8176    ac_cpp_err=$ac_cxx_preproc_warn_flag
8177    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8178  else
8179    ac_cpp_err=
8180  fi
8181else
8182  ac_cpp_err=yes
8183fi
8184if test -z "$ac_cpp_err"; then
8185  ac_header_preproc=yes
8186else
8187  echo "$as_me: failed program was:" >&5
8188sed 's/^/| /' conftest.$ac_ext >&5
8189
8190  ac_header_preproc=no
8191fi
8192rm -f conftest.err conftest.$ac_ext
8193echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8194echo "${ECHO_T}$ac_header_preproc" >&6
8195
8196# So?  What about this header?
8197case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8198  yes:no: )
8199    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8200echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8201    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8202echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8203    ac_header_preproc=yes
8204    ;;
8205  no:yes:* )
8206    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8207echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8208    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8209echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8210    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8211echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8212    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8213echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8214    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8215echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8216    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8217echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8218    (
8219      cat <<\_ASBOX
8220## ------------------------------------------- ##
8221## Report this to administrator@tortugalabs.it ##
8222## ------------------------------------------- ##
8223_ASBOX
8224    ) |
8225      sed "s/^/$as_me: WARNING:     /" >&2
8226    ;;
8227esac
8228echo "$as_me:$LINENO: checking for $ac_header" >&5
8229echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8230if eval "test \"\${$as_ac_Header+set}\" = set"; then
8231  echo $ECHO_N "(cached) $ECHO_C" >&6
8232else
8233  eval "$as_ac_Header=\$ac_header_preproc"
8234fi
8235echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8236echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8237
8238fi
8239if test `eval echo '${'$as_ac_Header'}'` = yes; then
8240  cat >>confdefs.h <<_ACEOF
8241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8242_ACEOF
8243
8244fi
8245
8246done
8247
8248echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5
8249echo $ECHO_N "checking for sem_init in -lrt... $ECHO_C" >&6
8250if test "${ac_cv_lib_rt_sem_init+set}" = set; then
8251  echo $ECHO_N "(cached) $ECHO_C" >&6
8252else
8253  ac_check_lib_save_LIBS=$LIBS
8254LIBS="-lrt $LDFLAGS $LIBS"
8255cat >conftest.$ac_ext <<_ACEOF
8256/* confdefs.h.  */
8257_ACEOF
8258cat confdefs.h >>conftest.$ac_ext
8259cat >>conftest.$ac_ext <<_ACEOF
8260/* end confdefs.h.  */
8261
8262/* Override any gcc2 internal prototype to avoid an error.  */
8263#ifdef __cplusplus
8264extern "C"
8265#endif
8266/* We use char because int might match the return type of a gcc2
8267   builtin and then its argument prototype would still apply.  */
8268char sem_init ();
8269int
8270main ()
8271{
8272sem_init ();
8273  ;
8274  return 0;
8275}
8276_ACEOF
8277rm -f conftest.$ac_objext conftest$ac_exeext
8278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8279  (eval $ac_link) 2>conftest.er1
8280  ac_status=$?
8281  grep -v '^ *+' conftest.er1 >conftest.err
8282  rm -f conftest.er1
8283  cat conftest.err >&5
8284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285  (exit $ac_status); } &&
8286	 { ac_try='test -z "$ac_cxx_werror_flag"
8287			 || test ! -s conftest.err'
8288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289  (eval $ac_try) 2>&5
8290  ac_status=$?
8291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292  (exit $ac_status); }; } &&
8293	 { ac_try='test -s conftest$ac_exeext'
8294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295  (eval $ac_try) 2>&5
8296  ac_status=$?
8297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298  (exit $ac_status); }; }; then
8299  ac_cv_lib_rt_sem_init=yes
8300else
8301  echo "$as_me: failed program was:" >&5
8302sed 's/^/| /' conftest.$ac_ext >&5
8303
8304ac_cv_lib_rt_sem_init=no
8305fi
8306rm -f conftest.err conftest.$ac_objext \
8307      conftest$ac_exeext conftest.$ac_ext
8308LIBS=$ac_check_lib_save_LIBS
8309fi
8310echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5
8311echo "${ECHO_T}$ac_cv_lib_rt_sem_init" >&6
8312if test $ac_cv_lib_rt_sem_init = yes; then
8313  LDFLAGS="$LDFLAGS -lrt"
8314fi
8315
8316
8317
8318
8319
8320for ac_func in sem_init sem_destroy sem_wait sem_post
8321do
8322as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8323echo "$as_me:$LINENO: checking for $ac_func" >&5
8324echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8325if eval "test \"\${$as_ac_var+set}\" = set"; then
8326  echo $ECHO_N "(cached) $ECHO_C" >&6
8327else
8328  cat >conftest.$ac_ext <<_ACEOF
8329/* confdefs.h.  */
8330_ACEOF
8331cat confdefs.h >>conftest.$ac_ext
8332cat >>conftest.$ac_ext <<_ACEOF
8333/* end confdefs.h.  */
8334/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8335   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8336#define $ac_func innocuous_$ac_func
8337
8338/* System header to define __stub macros and hopefully few prototypes,
8339    which can conflict with char $ac_func (); below.
8340    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8341    <limits.h> exists even on freestanding compilers.  */
8342
8343#ifdef __STDC__
8344# include <limits.h>
8345#else
8346# include <assert.h>
8347#endif
8348
8349#undef $ac_func
8350
8351/* Override any gcc2 internal prototype to avoid an error.  */
8352#ifdef __cplusplus
8353extern "C"
8354{
8355#endif
8356/* We use char because int might match the return type of a gcc2
8357   builtin and then its argument prototype would still apply.  */
8358char $ac_func ();
8359/* The GNU C library defines this for functions which it implements
8360    to always fail with ENOSYS.  Some functions are actually named
8361    something starting with __ and the normal name is an alias.  */
8362#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8363choke me
8364#else
8365char (*f) () = $ac_func;
8366#endif
8367#ifdef __cplusplus
8368}
8369#endif
8370
8371int
8372main ()
8373{
8374return f != $ac_func;
8375  ;
8376  return 0;
8377}
8378_ACEOF
8379rm -f conftest.$ac_objext conftest$ac_exeext
8380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8381  (eval $ac_link) 2>conftest.er1
8382  ac_status=$?
8383  grep -v '^ *+' conftest.er1 >conftest.err
8384  rm -f conftest.er1
8385  cat conftest.err >&5
8386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387  (exit $ac_status); } &&
8388	 { ac_try='test -z "$ac_cxx_werror_flag"
8389			 || test ! -s conftest.err'
8390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391  (eval $ac_try) 2>&5
8392  ac_status=$?
8393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394  (exit $ac_status); }; } &&
8395	 { ac_try='test -s conftest$ac_exeext'
8396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397  (eval $ac_try) 2>&5
8398  ac_status=$?
8399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400  (exit $ac_status); }; }; then
8401  eval "$as_ac_var=yes"
8402else
8403  echo "$as_me: failed program was:" >&5
8404sed 's/^/| /' conftest.$ac_ext >&5
8405
8406eval "$as_ac_var=no"
8407fi
8408rm -f conftest.err conftest.$ac_objext \
8409      conftest$ac_exeext conftest.$ac_ext
8410fi
8411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8412echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8413if test `eval echo '${'$as_ac_var'}'` = yes; then
8414  cat >>confdefs.h <<_ACEOF
8415#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8416_ACEOF
8417 have_sems_funcs=yes
8418else
8419  { { echo "$as_me:$LINENO: error: required function missing" >&5
8420echo "$as_me: error: required function missing" >&2;}
8421   { (exit 1); exit 1; }; }
8422fi
8423done
8424
8425
8426echo -e $'\n'$'\n'Other functions
8427echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8428echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8429if test "${ac_cv_header_time+set}" = set; then
8430  echo $ECHO_N "(cached) $ECHO_C" >&6
8431else
8432  cat >conftest.$ac_ext <<_ACEOF
8433/* confdefs.h.  */
8434_ACEOF
8435cat confdefs.h >>conftest.$ac_ext
8436cat >>conftest.$ac_ext <<_ACEOF
8437/* end confdefs.h.  */
8438#include <sys/types.h>
8439#include <sys/time.h>
8440#include <time.h>
8441
8442int
8443main ()
8444{
8445if ((struct tm *) 0)
8446return 0;
8447  ;
8448  return 0;
8449}
8450_ACEOF
8451rm -f conftest.$ac_objext
8452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8453  (eval $ac_compile) 2>conftest.er1
8454  ac_status=$?
8455  grep -v '^ *+' conftest.er1 >conftest.err
8456  rm -f conftest.er1
8457  cat conftest.err >&5
8458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459  (exit $ac_status); } &&
8460	 { ac_try='test -z "$ac_cxx_werror_flag"
8461			 || test ! -s conftest.err'
8462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463  (eval $ac_try) 2>&5
8464  ac_status=$?
8465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466  (exit $ac_status); }; } &&
8467	 { ac_try='test -s conftest.$ac_objext'
8468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469  (eval $ac_try) 2>&5
8470  ac_status=$?
8471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472  (exit $ac_status); }; }; then
8473  ac_cv_header_time=yes
8474else
8475  echo "$as_me: failed program was:" >&5
8476sed 's/^/| /' conftest.$ac_ext >&5
8477
8478ac_cv_header_time=no
8479fi
8480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8481fi
8482echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8483echo "${ECHO_T}$ac_cv_header_time" >&6
8484if test $ac_cv_header_time = yes; then
8485
8486cat >>confdefs.h <<\_ACEOF
8487#define TIME_WITH_SYS_TIME 1
8488_ACEOF
8489
8490fi
8491
8492echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8493echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8494if test "${ac_cv_struct_tm+set}" = set; then
8495  echo $ECHO_N "(cached) $ECHO_C" >&6
8496else
8497  cat >conftest.$ac_ext <<_ACEOF
8498/* confdefs.h.  */
8499_ACEOF
8500cat confdefs.h >>conftest.$ac_ext
8501cat >>conftest.$ac_ext <<_ACEOF
8502/* end confdefs.h.  */
8503#include <sys/types.h>
8504#include <time.h>
8505
8506int
8507main ()
8508{
8509struct tm *tp; tp->tm_sec;
8510  ;
8511  return 0;
8512}
8513_ACEOF
8514rm -f conftest.$ac_objext
8515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8516  (eval $ac_compile) 2>conftest.er1
8517  ac_status=$?
8518  grep -v '^ *+' conftest.er1 >conftest.err
8519  rm -f conftest.er1
8520  cat conftest.err >&5
8521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522  (exit $ac_status); } &&
8523	 { ac_try='test -z "$ac_cxx_werror_flag"
8524			 || test ! -s conftest.err'
8525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526  (eval $ac_try) 2>&5
8527  ac_status=$?
8528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529  (exit $ac_status); }; } &&
8530	 { ac_try='test -s conftest.$ac_objext'
8531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532  (eval $ac_try) 2>&5
8533  ac_status=$?
8534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535  (exit $ac_status); }; }; then
8536  ac_cv_struct_tm=time.h
8537else
8538  echo "$as_me: failed program was:" >&5
8539sed 's/^/| /' conftest.$ac_ext >&5
8540
8541ac_cv_struct_tm=sys/time.h
8542fi
8543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8544fi
8545echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8546echo "${ECHO_T}$ac_cv_struct_tm" >&6
8547if test $ac_cv_struct_tm = sys/time.h; then
8548
8549cat >>confdefs.h <<\_ACEOF
8550#define TM_IN_SYS_TIME 1
8551_ACEOF
8552
8553fi
8554
8555
8556for ac_header in time.h
8557do
8558as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8559if eval "test \"\${$as_ac_Header+set}\" = set"; then
8560  echo "$as_me:$LINENO: checking for $ac_header" >&5
8561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8562if eval "test \"\${$as_ac_Header+set}\" = set"; then
8563  echo $ECHO_N "(cached) $ECHO_C" >&6
8564fi
8565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8566echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8567else
8568  # Is the header compilable?
8569echo "$as_me:$LINENO: checking $ac_header usability" >&5
8570echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8571cat >conftest.$ac_ext <<_ACEOF
8572/* confdefs.h.  */
8573_ACEOF
8574cat confdefs.h >>conftest.$ac_ext
8575cat >>conftest.$ac_ext <<_ACEOF
8576/* end confdefs.h.  */
8577$ac_includes_default
8578#include <$ac_header>
8579_ACEOF
8580rm -f conftest.$ac_objext
8581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8582  (eval $ac_compile) 2>conftest.er1
8583  ac_status=$?
8584  grep -v '^ *+' conftest.er1 >conftest.err
8585  rm -f conftest.er1
8586  cat conftest.err >&5
8587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588  (exit $ac_status); } &&
8589	 { ac_try='test -z "$ac_cxx_werror_flag"
8590			 || test ! -s conftest.err'
8591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592  (eval $ac_try) 2>&5
8593  ac_status=$?
8594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595  (exit $ac_status); }; } &&
8596	 { ac_try='test -s conftest.$ac_objext'
8597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598  (eval $ac_try) 2>&5
8599  ac_status=$?
8600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601  (exit $ac_status); }; }; then
8602  ac_header_compiler=yes
8603else
8604  echo "$as_me: failed program was:" >&5
8605sed 's/^/| /' conftest.$ac_ext >&5
8606
8607ac_header_compiler=no
8608fi
8609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8610echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8611echo "${ECHO_T}$ac_header_compiler" >&6
8612
8613# Is the header present?
8614echo "$as_me:$LINENO: checking $ac_header presence" >&5
8615echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8616cat >conftest.$ac_ext <<_ACEOF
8617/* confdefs.h.  */
8618_ACEOF
8619cat confdefs.h >>conftest.$ac_ext
8620cat >>conftest.$ac_ext <<_ACEOF
8621/* end confdefs.h.  */
8622#include <$ac_header>
8623_ACEOF
8624if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8625  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8626  ac_status=$?
8627  grep -v '^ *+' conftest.er1 >conftest.err
8628  rm -f conftest.er1
8629  cat conftest.err >&5
8630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631  (exit $ac_status); } >/dev/null; then
8632  if test -s conftest.err; then
8633    ac_cpp_err=$ac_cxx_preproc_warn_flag
8634    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8635  else
8636    ac_cpp_err=
8637  fi
8638else
8639  ac_cpp_err=yes
8640fi
8641if test -z "$ac_cpp_err"; then
8642  ac_header_preproc=yes
8643else
8644  echo "$as_me: failed program was:" >&5
8645sed 's/^/| /' conftest.$ac_ext >&5
8646
8647  ac_header_preproc=no
8648fi
8649rm -f conftest.err conftest.$ac_ext
8650echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8651echo "${ECHO_T}$ac_header_preproc" >&6
8652
8653# So?  What about this header?
8654case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8655  yes:no: )
8656    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8657echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8658    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8659echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8660    ac_header_preproc=yes
8661    ;;
8662  no:yes:* )
8663    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8664echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8665    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8666echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8667    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8668echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8669    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8670echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8671    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8672echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8673    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8674echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8675    (
8676      cat <<\_ASBOX
8677## ------------------------------------------- ##
8678## Report this to administrator@tortugalabs.it ##
8679## ------------------------------------------- ##
8680_ASBOX
8681    ) |
8682      sed "s/^/$as_me: WARNING:     /" >&2
8683    ;;
8684esac
8685echo "$as_me:$LINENO: checking for $ac_header" >&5
8686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8687if eval "test \"\${$as_ac_Header+set}\" = set"; then
8688  echo $ECHO_N "(cached) $ECHO_C" >&6
8689else
8690  eval "$as_ac_Header=\$ac_header_preproc"
8691fi
8692echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8693echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8694
8695fi
8696if test `eval echo '${'$as_ac_Header'}'` = yes; then
8697  cat >>confdefs.h <<_ACEOF
8698#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8699_ACEOF
8700
8701fi
8702
8703done
8704
8705
8706
8707
8708
8709
8710for ac_func in sleep time srand rand getpid
8711do
8712as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8713echo "$as_me:$LINENO: checking for $ac_func" >&5
8714echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8715if eval "test \"\${$as_ac_var+set}\" = set"; then
8716  echo $ECHO_N "(cached) $ECHO_C" >&6
8717else
8718  cat >conftest.$ac_ext <<_ACEOF
8719/* confdefs.h.  */
8720_ACEOF
8721cat confdefs.h >>conftest.$ac_ext
8722cat >>conftest.$ac_ext <<_ACEOF
8723/* end confdefs.h.  */
8724/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8725   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8726#define $ac_func innocuous_$ac_func
8727
8728/* System header to define __stub macros and hopefully few prototypes,
8729    which can conflict with char $ac_func (); below.
8730    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8731    <limits.h> exists even on freestanding compilers.  */
8732
8733#ifdef __STDC__
8734# include <limits.h>
8735#else
8736# include <assert.h>
8737#endif
8738
8739#undef $ac_func
8740
8741/* Override any gcc2 internal prototype to avoid an error.  */
8742#ifdef __cplusplus
8743extern "C"
8744{
8745#endif
8746/* We use char because int might match the return type of a gcc2
8747   builtin and then its argument prototype would still apply.  */
8748char $ac_func ();
8749/* The GNU C library defines this for functions which it implements
8750    to always fail with ENOSYS.  Some functions are actually named
8751    something starting with __ and the normal name is an alias.  */
8752#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8753choke me
8754#else
8755char (*f) () = $ac_func;
8756#endif
8757#ifdef __cplusplus
8758}
8759#endif
8760
8761int
8762main ()
8763{
8764return f != $ac_func;
8765  ;
8766  return 0;
8767}
8768_ACEOF
8769rm -f conftest.$ac_objext conftest$ac_exeext
8770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8771  (eval $ac_link) 2>conftest.er1
8772  ac_status=$?
8773  grep -v '^ *+' conftest.er1 >conftest.err
8774  rm -f conftest.er1
8775  cat conftest.err >&5
8776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777  (exit $ac_status); } &&
8778	 { ac_try='test -z "$ac_cxx_werror_flag"
8779			 || test ! -s conftest.err'
8780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781  (eval $ac_try) 2>&5
8782  ac_status=$?
8783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784  (exit $ac_status); }; } &&
8785	 { ac_try='test -s conftest$ac_exeext'
8786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787  (eval $ac_try) 2>&5
8788  ac_status=$?
8789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790  (exit $ac_status); }; }; then
8791  eval "$as_ac_var=yes"
8792else
8793  echo "$as_me: failed program was:" >&5
8794sed 's/^/| /' conftest.$ac_ext >&5
8795
8796eval "$as_ac_var=no"
8797fi
8798rm -f conftest.err conftest.$ac_objext \
8799      conftest$ac_exeext conftest.$ac_ext
8800fi
8801echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8802echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8803if test `eval echo '${'$as_ac_var'}'` = yes; then
8804  cat >>confdefs.h <<_ACEOF
8805#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8806_ACEOF
8807 have_other_funcs=yes
8808else
8809  { { echo "$as_me:$LINENO: error: required function missing" >&5
8810echo "$as_me: error: required function missing" >&2;}
8811   { (exit 1); exit 1; }; }
8812fi
8813done
8814
8815
8816echo -e $'\n'$'\n'SHOUT library
8817if test "$shoutdir" != "" ; then
8818  CXXFLAGS="$CXXFLAGS -I$withval/include"
8819	LDFLAGS="$LDFLAGS -L$withval/lib -lshout -lvorbis"
8820
8821for ac_header in $withval/include/shout/shout.h
8822do
8823as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8824if eval "test \"\${$as_ac_Header+set}\" = set"; then
8825  echo "$as_me:$LINENO: checking for $ac_header" >&5
8826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8827if eval "test \"\${$as_ac_Header+set}\" = set"; then
8828  echo $ECHO_N "(cached) $ECHO_C" >&6
8829fi
8830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8832else
8833  # Is the header compilable?
8834echo "$as_me:$LINENO: checking $ac_header usability" >&5
8835echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8836cat >conftest.$ac_ext <<_ACEOF
8837/* confdefs.h.  */
8838_ACEOF
8839cat confdefs.h >>conftest.$ac_ext
8840cat >>conftest.$ac_ext <<_ACEOF
8841/* end confdefs.h.  */
8842$ac_includes_default
8843#include <$ac_header>
8844_ACEOF
8845rm -f conftest.$ac_objext
8846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8847  (eval $ac_compile) 2>conftest.er1
8848  ac_status=$?
8849  grep -v '^ *+' conftest.er1 >conftest.err
8850  rm -f conftest.er1
8851  cat conftest.err >&5
8852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853  (exit $ac_status); } &&
8854	 { ac_try='test -z "$ac_cxx_werror_flag"
8855			 || test ! -s conftest.err'
8856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857  (eval $ac_try) 2>&5
8858  ac_status=$?
8859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860  (exit $ac_status); }; } &&
8861	 { ac_try='test -s conftest.$ac_objext'
8862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863  (eval $ac_try) 2>&5
8864  ac_status=$?
8865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866  (exit $ac_status); }; }; then
8867  ac_header_compiler=yes
8868else
8869  echo "$as_me: failed program was:" >&5
8870sed 's/^/| /' conftest.$ac_ext >&5
8871
8872ac_header_compiler=no
8873fi
8874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8875echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8876echo "${ECHO_T}$ac_header_compiler" >&6
8877
8878# Is the header present?
8879echo "$as_me:$LINENO: checking $ac_header presence" >&5
8880echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8881cat >conftest.$ac_ext <<_ACEOF
8882/* confdefs.h.  */
8883_ACEOF
8884cat confdefs.h >>conftest.$ac_ext
8885cat >>conftest.$ac_ext <<_ACEOF
8886/* end confdefs.h.  */
8887#include <$ac_header>
8888_ACEOF
8889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8890  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8891  ac_status=$?
8892  grep -v '^ *+' conftest.er1 >conftest.err
8893  rm -f conftest.er1
8894  cat conftest.err >&5
8895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896  (exit $ac_status); } >/dev/null; then
8897  if test -s conftest.err; then
8898    ac_cpp_err=$ac_cxx_preproc_warn_flag
8899    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8900  else
8901    ac_cpp_err=
8902  fi
8903else
8904  ac_cpp_err=yes
8905fi
8906if test -z "$ac_cpp_err"; then
8907  ac_header_preproc=yes
8908else
8909  echo "$as_me: failed program was:" >&5
8910sed 's/^/| /' conftest.$ac_ext >&5
8911
8912  ac_header_preproc=no
8913fi
8914rm -f conftest.err conftest.$ac_ext
8915echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8916echo "${ECHO_T}$ac_header_preproc" >&6
8917
8918# So?  What about this header?
8919case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8920  yes:no: )
8921    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8922echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8923    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8924echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8925    ac_header_preproc=yes
8926    ;;
8927  no:yes:* )
8928    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8929echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8930    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8931echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8932    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8933echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8934    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8935echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8936    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8937echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8938    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8939echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8940    (
8941      cat <<\_ASBOX
8942## ------------------------------------------- ##
8943## Report this to administrator@tortugalabs.it ##
8944## ------------------------------------------- ##
8945_ASBOX
8946    ) |
8947      sed "s/^/$as_me: WARNING:     /" >&2
8948    ;;
8949esac
8950echo "$as_me:$LINENO: checking for $ac_header" >&5
8951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8952if eval "test \"\${$as_ac_Header+set}\" = set"; then
8953  echo $ECHO_N "(cached) $ECHO_C" >&6
8954else
8955  eval "$as_ac_Header=\$ac_header_preproc"
8956fi
8957echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8958echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8959
8960fi
8961if test `eval echo '${'$as_ac_Header'}'` = yes; then
8962  cat >>confdefs.h <<_ACEOF
8963#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8964_ACEOF
8965
8966fi
8967
8968done
8969
8970else
8971
8972  succeeded=no
8973
8974  if test -z "$PKG_CONFIG"; then
8975    # Extract the first word of "pkg-config", so it can be a program name with args.
8976set dummy pkg-config; ac_word=$2
8977echo "$as_me:$LINENO: checking for $ac_word" >&5
8978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8979if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8980  echo $ECHO_N "(cached) $ECHO_C" >&6
8981else
8982  case $PKG_CONFIG in
8983  [\\/]* | ?:[\\/]*)
8984  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8985  ;;
8986  *)
8987  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8988for as_dir in $PATH
8989do
8990  IFS=$as_save_IFS
8991  test -z "$as_dir" && as_dir=.
8992  for ac_exec_ext in '' $ac_executable_extensions; do
8993  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8994    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8995    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8996    break 2
8997  fi
8998done
8999done
9000
9001  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9002  ;;
9003esac
9004fi
9005PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9006
9007if test -n "$PKG_CONFIG"; then
9008  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9009echo "${ECHO_T}$PKG_CONFIG" >&6
9010else
9011  echo "$as_me:$LINENO: result: no" >&5
9012echo "${ECHO_T}no" >&6
9013fi
9014
9015  fi
9016
9017  if test "$PKG_CONFIG" = "no" ; then
9018     echo "*** The pkg-config script could not be found. Make sure it is"
9019     echo "*** in your path, or set the PKG_CONFIG environment variable"
9020     echo "*** to the full path to pkg-config."
9021     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9022  else
9023     PKG_CONFIG_MIN_VERSION=0.9.0
9024     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9025        echo "$as_me:$LINENO: checking for shout >= 2.0" >&5
9026echo $ECHO_N "checking for shout >= 2.0... $ECHO_C" >&6
9027
9028        if $PKG_CONFIG --exists "shout >= 2.0" ; then
9029            echo "$as_me:$LINENO: result: yes" >&5
9030echo "${ECHO_T}yes" >&6
9031            succeeded=yes
9032
9033            echo "$as_me:$LINENO: checking SHOUT_CFLAGS" >&5
9034echo $ECHO_N "checking SHOUT_CFLAGS... $ECHO_C" >&6
9035            SHOUT_CFLAGS=`$PKG_CONFIG --cflags "shout >= 2.0"`
9036            echo "$as_me:$LINENO: result: $SHOUT_CFLAGS" >&5
9037echo "${ECHO_T}$SHOUT_CFLAGS" >&6
9038
9039            echo "$as_me:$LINENO: checking SHOUT_LIBS" >&5
9040echo $ECHO_N "checking SHOUT_LIBS... $ECHO_C" >&6
9041            SHOUT_LIBS=`$PKG_CONFIG --libs "shout >= 2.0"`
9042            echo "$as_me:$LINENO: result: $SHOUT_LIBS" >&5
9043echo "${ECHO_T}$SHOUT_LIBS" >&6
9044        else
9045            SHOUT_CFLAGS=""
9046            SHOUT_LIBS=""
9047            ## If we have a custom action on failure, don't print errors, but
9048            ## do set a variable so people can do so.
9049            SHOUT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "shout >= 2.0"`
9050            echo $SHOUT_PKG_ERRORS
9051        fi
9052
9053
9054
9055     else
9056        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9057        echo "*** See http://www.freedesktop.org/software/pkgconfig"
9058     fi
9059  fi
9060
9061  if test $succeeded = yes; then
9062     :
9063  else
9064     { { echo "$as_me:$LINENO: error: Library requirements (shout >= 2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
9065echo "$as_me: error: Library requirements (shout >= 2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
9066   { (exit 1); exit 1; }; }
9067  fi
9068
9069  CXXFLAGS="$CXXFLAGS $SHOUT_CFLAGS"
9070  LDFLAGS="$LDFLAGS $SHOUT_LIBS"
9071
9072for ac_header in shout/shout.h
9073do
9074as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9075if eval "test \"\${$as_ac_Header+set}\" = set"; then
9076  echo "$as_me:$LINENO: checking for $ac_header" >&5
9077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9078if eval "test \"\${$as_ac_Header+set}\" = set"; then
9079  echo $ECHO_N "(cached) $ECHO_C" >&6
9080fi
9081echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9082echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9083else
9084  # Is the header compilable?
9085echo "$as_me:$LINENO: checking $ac_header usability" >&5
9086echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9087cat >conftest.$ac_ext <<_ACEOF
9088/* confdefs.h.  */
9089_ACEOF
9090cat confdefs.h >>conftest.$ac_ext
9091cat >>conftest.$ac_ext <<_ACEOF
9092/* end confdefs.h.  */
9093$ac_includes_default
9094#include <$ac_header>
9095_ACEOF
9096rm -f conftest.$ac_objext
9097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9098  (eval $ac_compile) 2>conftest.er1
9099  ac_status=$?
9100  grep -v '^ *+' conftest.er1 >conftest.err
9101  rm -f conftest.er1
9102  cat conftest.err >&5
9103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104  (exit $ac_status); } &&
9105	 { ac_try='test -z "$ac_cxx_werror_flag"
9106			 || test ! -s conftest.err'
9107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108  (eval $ac_try) 2>&5
9109  ac_status=$?
9110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111  (exit $ac_status); }; } &&
9112	 { ac_try='test -s conftest.$ac_objext'
9113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9114  (eval $ac_try) 2>&5
9115  ac_status=$?
9116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117  (exit $ac_status); }; }; then
9118  ac_header_compiler=yes
9119else
9120  echo "$as_me: failed program was:" >&5
9121sed 's/^/| /' conftest.$ac_ext >&5
9122
9123ac_header_compiler=no
9124fi
9125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9126echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9127echo "${ECHO_T}$ac_header_compiler" >&6
9128
9129# Is the header present?
9130echo "$as_me:$LINENO: checking $ac_header presence" >&5
9131echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9132cat >conftest.$ac_ext <<_ACEOF
9133/* confdefs.h.  */
9134_ACEOF
9135cat confdefs.h >>conftest.$ac_ext
9136cat >>conftest.$ac_ext <<_ACEOF
9137/* end confdefs.h.  */
9138#include <$ac_header>
9139_ACEOF
9140if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9141  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9142  ac_status=$?
9143  grep -v '^ *+' conftest.er1 >conftest.err
9144  rm -f conftest.er1
9145  cat conftest.err >&5
9146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147  (exit $ac_status); } >/dev/null; then
9148  if test -s conftest.err; then
9149    ac_cpp_err=$ac_cxx_preproc_warn_flag
9150    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9151  else
9152    ac_cpp_err=
9153  fi
9154else
9155  ac_cpp_err=yes
9156fi
9157if test -z "$ac_cpp_err"; then
9158  ac_header_preproc=yes
9159else
9160  echo "$as_me: failed program was:" >&5
9161sed 's/^/| /' conftest.$ac_ext >&5
9162
9163  ac_header_preproc=no
9164fi
9165rm -f conftest.err conftest.$ac_ext
9166echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9167echo "${ECHO_T}$ac_header_preproc" >&6
9168
9169# So?  What about this header?
9170case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9171  yes:no: )
9172    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9173echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9174    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9175echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9176    ac_header_preproc=yes
9177    ;;
9178  no:yes:* )
9179    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9180echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9181    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9182echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9183    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9184echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9185    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9186echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9187    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9188echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9189    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9190echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9191    (
9192      cat <<\_ASBOX
9193## ------------------------------------------- ##
9194## Report this to administrator@tortugalabs.it ##
9195## ------------------------------------------- ##
9196_ASBOX
9197    ) |
9198      sed "s/^/$as_me: WARNING:     /" >&2
9199    ;;
9200esac
9201echo "$as_me:$LINENO: checking for $ac_header" >&5
9202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9203if eval "test \"\${$as_ac_Header+set}\" = set"; then
9204  echo $ECHO_N "(cached) $ECHO_C" >&6
9205else
9206  eval "$as_ac_Header=\$ac_header_preproc"
9207fi
9208echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9209echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9210
9211fi
9212if test `eval echo '${'$as_ac_Header'}'` = yes; then
9213  cat >>confdefs.h <<_ACEOF
9214#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9215_ACEOF
9216
9217fi
9218
9219done
9220
9221fi
9222echo "$as_me:$LINENO: checking for shout_init in -lshout" >&5
9223echo $ECHO_N "checking for shout_init in -lshout... $ECHO_C" >&6
9224if test "${ac_cv_lib_shout_shout_init+set}" = set; then
9225  echo $ECHO_N "(cached) $ECHO_C" >&6
9226else
9227  ac_check_lib_save_LIBS=$LIBS
9228LIBS="-lshout $LDFLAGS $LIBS"
9229cat >conftest.$ac_ext <<_ACEOF
9230/* confdefs.h.  */
9231_ACEOF
9232cat confdefs.h >>conftest.$ac_ext
9233cat >>conftest.$ac_ext <<_ACEOF
9234/* end confdefs.h.  */
9235
9236/* Override any gcc2 internal prototype to avoid an error.  */
9237#ifdef __cplusplus
9238extern "C"
9239#endif
9240/* We use char because int might match the return type of a gcc2
9241   builtin and then its argument prototype would still apply.  */
9242char shout_init ();
9243int
9244main ()
9245{
9246shout_init ();
9247  ;
9248  return 0;
9249}
9250_ACEOF
9251rm -f conftest.$ac_objext conftest$ac_exeext
9252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253  (eval $ac_link) 2>conftest.er1
9254  ac_status=$?
9255  grep -v '^ *+' conftest.er1 >conftest.err
9256  rm -f conftest.er1
9257  cat conftest.err >&5
9258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259  (exit $ac_status); } &&
9260	 { ac_try='test -z "$ac_cxx_werror_flag"
9261			 || test ! -s conftest.err'
9262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263  (eval $ac_try) 2>&5
9264  ac_status=$?
9265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266  (exit $ac_status); }; } &&
9267	 { ac_try='test -s conftest$ac_exeext'
9268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269  (eval $ac_try) 2>&5
9270  ac_status=$?
9271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272  (exit $ac_status); }; }; then
9273  ac_cv_lib_shout_shout_init=yes
9274else
9275  echo "$as_me: failed program was:" >&5
9276sed 's/^/| /' conftest.$ac_ext >&5
9277
9278ac_cv_lib_shout_shout_init=no
9279fi
9280rm -f conftest.err conftest.$ac_objext \
9281      conftest$ac_exeext conftest.$ac_ext
9282LIBS=$ac_check_lib_save_LIBS
9283fi
9284echo "$as_me:$LINENO: result: $ac_cv_lib_shout_shout_init" >&5
9285echo "${ECHO_T}$ac_cv_lib_shout_shout_init" >&6
9286if test $ac_cv_lib_shout_shout_init = yes; then
9287  have_shout_funcs=yes
9288else
9289  { { echo "$as_me:$LINENO: error: Could not link to libshout. IceGenerator package uses the libshout-2.0 library. Install libshout first." >&5
9290echo "$as_me: error: Could not link to libshout. IceGenerator package uses the libshout-2.0 library. Install libshout first." >&2;}
9291   { (exit 1); exit 1; }; }
9292fi
9293
9294
9295if test "$mysql_en" != "" ; then
9296  echo -e $'\n'$'\n'MySQL library
9297  mysql_cflags=`mysql_config --cflags`
9298  mysql_lflags=`mysql_config --libs`
9299  CXXFLAGS="$CXXFLAGS $mysql_cflags"
9300  LDFLAGS="$LDFLAGS $mysql_lflags"
9301
9302for ac_header in mysql/mysql.h
9303do
9304as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9305if eval "test \"\${$as_ac_Header+set}\" = set"; then
9306  echo "$as_me:$LINENO: checking for $ac_header" >&5
9307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9308if eval "test \"\${$as_ac_Header+set}\" = set"; then
9309  echo $ECHO_N "(cached) $ECHO_C" >&6
9310fi
9311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9312echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9313else
9314  # Is the header compilable?
9315echo "$as_me:$LINENO: checking $ac_header usability" >&5
9316echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9317cat >conftest.$ac_ext <<_ACEOF
9318/* confdefs.h.  */
9319_ACEOF
9320cat confdefs.h >>conftest.$ac_ext
9321cat >>conftest.$ac_ext <<_ACEOF
9322/* end confdefs.h.  */
9323$ac_includes_default
9324#include <$ac_header>
9325_ACEOF
9326rm -f conftest.$ac_objext
9327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9328  (eval $ac_compile) 2>conftest.er1
9329  ac_status=$?
9330  grep -v '^ *+' conftest.er1 >conftest.err
9331  rm -f conftest.er1
9332  cat conftest.err >&5
9333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334  (exit $ac_status); } &&
9335	 { ac_try='test -z "$ac_cxx_werror_flag"
9336			 || test ! -s conftest.err'
9337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338  (eval $ac_try) 2>&5
9339  ac_status=$?
9340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341  (exit $ac_status); }; } &&
9342	 { ac_try='test -s conftest.$ac_objext'
9343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344  (eval $ac_try) 2>&5
9345  ac_status=$?
9346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347  (exit $ac_status); }; }; then
9348  ac_header_compiler=yes
9349else
9350  echo "$as_me: failed program was:" >&5
9351sed 's/^/| /' conftest.$ac_ext >&5
9352
9353ac_header_compiler=no
9354fi
9355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9356echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9357echo "${ECHO_T}$ac_header_compiler" >&6
9358
9359# Is the header present?
9360echo "$as_me:$LINENO: checking $ac_header presence" >&5
9361echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9362cat >conftest.$ac_ext <<_ACEOF
9363/* confdefs.h.  */
9364_ACEOF
9365cat confdefs.h >>conftest.$ac_ext
9366cat >>conftest.$ac_ext <<_ACEOF
9367/* end confdefs.h.  */
9368#include <$ac_header>
9369_ACEOF
9370if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9371  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9372  ac_status=$?
9373  grep -v '^ *+' conftest.er1 >conftest.err
9374  rm -f conftest.er1
9375  cat conftest.err >&5
9376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377  (exit $ac_status); } >/dev/null; then
9378  if test -s conftest.err; then
9379    ac_cpp_err=$ac_cxx_preproc_warn_flag
9380    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9381  else
9382    ac_cpp_err=
9383  fi
9384else
9385  ac_cpp_err=yes
9386fi
9387if test -z "$ac_cpp_err"; then
9388  ac_header_preproc=yes
9389else
9390  echo "$as_me: failed program was:" >&5
9391sed 's/^/| /' conftest.$ac_ext >&5
9392
9393  ac_header_preproc=no
9394fi
9395rm -f conftest.err conftest.$ac_ext
9396echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9397echo "${ECHO_T}$ac_header_preproc" >&6
9398
9399# So?  What about this header?
9400case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9401  yes:no: )
9402    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9403echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9404    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9405echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9406    ac_header_preproc=yes
9407    ;;
9408  no:yes:* )
9409    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9410echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9411    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9412echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9413    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9414echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9415    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9416echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9417    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9418echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9419    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9420echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9421    (
9422      cat <<\_ASBOX
9423## ------------------------------------------- ##
9424## Report this to administrator@tortugalabs.it ##
9425## ------------------------------------------- ##
9426_ASBOX
9427    ) |
9428      sed "s/^/$as_me: WARNING:     /" >&2
9429    ;;
9430esac
9431echo "$as_me:$LINENO: checking for $ac_header" >&5
9432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9433if eval "test \"\${$as_ac_Header+set}\" = set"; then
9434  echo $ECHO_N "(cached) $ECHO_C" >&6
9435else
9436  eval "$as_ac_Header=\$ac_header_preproc"
9437fi
9438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9439echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9440
9441fi
9442if test `eval echo '${'$as_ac_Header'}'` = yes; then
9443  cat >>confdefs.h <<_ACEOF
9444#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9445_ACEOF
9446
9447fi
9448
9449done
9450
9451  echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5
9452echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6
9453if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then
9454  echo $ECHO_N "(cached) $ECHO_C" >&6
9455else
9456  ac_check_lib_save_LIBS=$LIBS
9457LIBS="-lmysqlclient $LDFLAGS $LIBS"
9458cat >conftest.$ac_ext <<_ACEOF
9459/* confdefs.h.  */
9460_ACEOF
9461cat confdefs.h >>conftest.$ac_ext
9462cat >>conftest.$ac_ext <<_ACEOF
9463/* end confdefs.h.  */
9464
9465/* Override any gcc2 internal prototype to avoid an error.  */
9466#ifdef __cplusplus
9467extern "C"
9468#endif
9469/* We use char because int might match the return type of a gcc2
9470   builtin and then its argument prototype would still apply.  */
9471char mysql_init ();
9472int
9473main ()
9474{
9475mysql_init ();
9476  ;
9477  return 0;
9478}
9479_ACEOF
9480rm -f conftest.$ac_objext conftest$ac_exeext
9481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9482  (eval $ac_link) 2>conftest.er1
9483  ac_status=$?
9484  grep -v '^ *+' conftest.er1 >conftest.err
9485  rm -f conftest.er1
9486  cat conftest.err >&5
9487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488  (exit $ac_status); } &&
9489	 { ac_try='test -z "$ac_cxx_werror_flag"
9490			 || test ! -s conftest.err'
9491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492  (eval $ac_try) 2>&5
9493  ac_status=$?
9494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495  (exit $ac_status); }; } &&
9496	 { ac_try='test -s conftest$ac_exeext'
9497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498  (eval $ac_try) 2>&5
9499  ac_status=$?
9500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501  (exit $ac_status); }; }; then
9502  ac_cv_lib_mysqlclient_mysql_init=yes
9503else
9504  echo "$as_me: failed program was:" >&5
9505sed 's/^/| /' conftest.$ac_ext >&5
9506
9507ac_cv_lib_mysqlclient_mysql_init=no
9508fi
9509rm -f conftest.err conftest.$ac_objext \
9510      conftest$ac_exeext conftest.$ac_ext
9511LIBS=$ac_check_lib_save_LIBS
9512fi
9513echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
9514echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_init" >&6
9515if test $ac_cv_lib_mysqlclient_mysql_init = yes; then
9516
9517cat >>confdefs.h <<\_ACEOF
9518#define HAVE_MYSQL 1
9519_ACEOF
9520
9521else
9522  { { echo "$as_me:$LINENO: error: Could not link to MySQL library." >&5
9523echo "$as_me: error: Could not link to MySQL library." >&2;}
9524   { (exit 1); exit 1; }; }
9525fi
9526
9527fi
9528
9529if test "$pgsql_en" != "" ; then
9530  echo -e $'\n'$'\n'PostGreSQL library
9531  pgsql_cflags=`pg_config --includedir`
9532  pgsql_lflags=`pg_config --libdir`
9533  CXXFLAGS="$CXXFLAGS -I$pgsql_cflags"
9534  LDFLAGS="$LDFLAGS -L$pgsql_lflags -lpq"
9535
9536for ac_header in libpq-fe.h
9537do
9538as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9539if eval "test \"\${$as_ac_Header+set}\" = set"; then
9540  echo "$as_me:$LINENO: checking for $ac_header" >&5
9541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9542if eval "test \"\${$as_ac_Header+set}\" = set"; then
9543  echo $ECHO_N "(cached) $ECHO_C" >&6
9544fi
9545echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9546echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9547else
9548  # Is the header compilable?
9549echo "$as_me:$LINENO: checking $ac_header usability" >&5
9550echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9551cat >conftest.$ac_ext <<_ACEOF
9552/* confdefs.h.  */
9553_ACEOF
9554cat confdefs.h >>conftest.$ac_ext
9555cat >>conftest.$ac_ext <<_ACEOF
9556/* end confdefs.h.  */
9557$ac_includes_default
9558#include <$ac_header>
9559_ACEOF
9560rm -f conftest.$ac_objext
9561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9562  (eval $ac_compile) 2>conftest.er1
9563  ac_status=$?
9564  grep -v '^ *+' conftest.er1 >conftest.err
9565  rm -f conftest.er1
9566  cat conftest.err >&5
9567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568  (exit $ac_status); } &&
9569	 { ac_try='test -z "$ac_cxx_werror_flag"
9570			 || test ! -s conftest.err'
9571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572  (eval $ac_try) 2>&5
9573  ac_status=$?
9574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575  (exit $ac_status); }; } &&
9576	 { ac_try='test -s conftest.$ac_objext'
9577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578  (eval $ac_try) 2>&5
9579  ac_status=$?
9580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581  (exit $ac_status); }; }; then
9582  ac_header_compiler=yes
9583else
9584  echo "$as_me: failed program was:" >&5
9585sed 's/^/| /' conftest.$ac_ext >&5
9586
9587ac_header_compiler=no
9588fi
9589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9590echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9591echo "${ECHO_T}$ac_header_compiler" >&6
9592
9593# Is the header present?
9594echo "$as_me:$LINENO: checking $ac_header presence" >&5
9595echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9596cat >conftest.$ac_ext <<_ACEOF
9597/* confdefs.h.  */
9598_ACEOF
9599cat confdefs.h >>conftest.$ac_ext
9600cat >>conftest.$ac_ext <<_ACEOF
9601/* end confdefs.h.  */
9602#include <$ac_header>
9603_ACEOF
9604if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9605  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9606  ac_status=$?
9607  grep -v '^ *+' conftest.er1 >conftest.err
9608  rm -f conftest.er1
9609  cat conftest.err >&5
9610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611  (exit $ac_status); } >/dev/null; then
9612  if test -s conftest.err; then
9613    ac_cpp_err=$ac_cxx_preproc_warn_flag
9614    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9615  else
9616    ac_cpp_err=
9617  fi
9618else
9619  ac_cpp_err=yes
9620fi
9621if test -z "$ac_cpp_err"; then
9622  ac_header_preproc=yes
9623else
9624  echo "$as_me: failed program was:" >&5
9625sed 's/^/| /' conftest.$ac_ext >&5
9626
9627  ac_header_preproc=no
9628fi
9629rm -f conftest.err conftest.$ac_ext
9630echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9631echo "${ECHO_T}$ac_header_preproc" >&6
9632
9633# So?  What about this header?
9634case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9635  yes:no: )
9636    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9637echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9638    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9639echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9640    ac_header_preproc=yes
9641    ;;
9642  no:yes:* )
9643    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9644echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9645    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9646echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9647    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9648echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9649    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9650echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9651    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9652echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9653    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9654echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9655    (
9656      cat <<\_ASBOX
9657## ------------------------------------------- ##
9658## Report this to administrator@tortugalabs.it ##
9659## ------------------------------------------- ##
9660_ASBOX
9661    ) |
9662      sed "s/^/$as_me: WARNING:     /" >&2
9663    ;;
9664esac
9665echo "$as_me:$LINENO: checking for $ac_header" >&5
9666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9667if eval "test \"\${$as_ac_Header+set}\" = set"; then
9668  echo $ECHO_N "(cached) $ECHO_C" >&6
9669else
9670  eval "$as_ac_Header=\$ac_header_preproc"
9671fi
9672echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9673echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9674
9675fi
9676if test `eval echo '${'$as_ac_Header'}'` = yes; then
9677  cat >>confdefs.h <<_ACEOF
9678#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9679_ACEOF
9680
9681fi
9682
9683done
9684
9685  echo "$as_me:$LINENO: checking for PQconnectdb in -lpq" >&5
9686echo $ECHO_N "checking for PQconnectdb in -lpq... $ECHO_C" >&6
9687if test "${ac_cv_lib_pq_PQconnectdb+set}" = set; then
9688  echo $ECHO_N "(cached) $ECHO_C" >&6
9689else
9690  ac_check_lib_save_LIBS=$LIBS
9691LIBS="-lpq $LDFLAGS $LIBS"
9692cat >conftest.$ac_ext <<_ACEOF
9693/* confdefs.h.  */
9694_ACEOF
9695cat confdefs.h >>conftest.$ac_ext
9696cat >>conftest.$ac_ext <<_ACEOF
9697/* end confdefs.h.  */
9698
9699/* Override any gcc2 internal prototype to avoid an error.  */
9700#ifdef __cplusplus
9701extern "C"
9702#endif
9703/* We use char because int might match the return type of a gcc2
9704   builtin and then its argument prototype would still apply.  */
9705char PQconnectdb ();
9706int
9707main ()
9708{
9709PQconnectdb ();
9710  ;
9711  return 0;
9712}
9713_ACEOF
9714rm -f conftest.$ac_objext conftest$ac_exeext
9715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9716  (eval $ac_link) 2>conftest.er1
9717  ac_status=$?
9718  grep -v '^ *+' conftest.er1 >conftest.err
9719  rm -f conftest.er1
9720  cat conftest.err >&5
9721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722  (exit $ac_status); } &&
9723	 { ac_try='test -z "$ac_cxx_werror_flag"
9724			 || test ! -s conftest.err'
9725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726  (eval $ac_try) 2>&5
9727  ac_status=$?
9728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729  (exit $ac_status); }; } &&
9730	 { ac_try='test -s conftest$ac_exeext'
9731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732  (eval $ac_try) 2>&5
9733  ac_status=$?
9734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735  (exit $ac_status); }; }; then
9736  ac_cv_lib_pq_PQconnectdb=yes
9737else
9738  echo "$as_me: failed program was:" >&5
9739sed 's/^/| /' conftest.$ac_ext >&5
9740
9741ac_cv_lib_pq_PQconnectdb=no
9742fi
9743rm -f conftest.err conftest.$ac_objext \
9744      conftest$ac_exeext conftest.$ac_ext
9745LIBS=$ac_check_lib_save_LIBS
9746fi
9747echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQconnectdb" >&5
9748echo "${ECHO_T}$ac_cv_lib_pq_PQconnectdb" >&6
9749if test $ac_cv_lib_pq_PQconnectdb = yes; then
9750
9751cat >>confdefs.h <<\_ACEOF
9752#define HAVE_PGSQL 1
9753_ACEOF
9754
9755else
9756  { { echo "$as_me:$LINENO: error: Could not link to PgSQL library." >&5
9757echo "$as_me: error: Could not link to PgSQL library." >&2;}
9758   { (exit 1); exit 1; }; }
9759fi
9760
9761fi
9762
9763if test "$id3_en" != "" ; then
9764  echo -e $'\n'$'\n'ID3 library
9765	echo "$as_me:$LINENO: checking for library containing ID3Tag_Link" >&5
9766echo $ECHO_N "checking for library containing ID3Tag_Link... $ECHO_C" >&6
9767if test "${ac_cv_search_ID3Tag_Link+set}" = set; then
9768  echo $ECHO_N "(cached) $ECHO_C" >&6
9769else
9770  ac_func_search_save_LIBS=$LIBS
9771ac_cv_search_ID3Tag_Link=no
9772cat >conftest.$ac_ext <<_ACEOF
9773/* confdefs.h.  */
9774_ACEOF
9775cat confdefs.h >>conftest.$ac_ext
9776cat >>conftest.$ac_ext <<_ACEOF
9777/* end confdefs.h.  */
9778
9779/* Override any gcc2 internal prototype to avoid an error.  */
9780#ifdef __cplusplus
9781extern "C"
9782#endif
9783/* We use char because int might match the return type of a gcc2
9784   builtin and then its argument prototype would still apply.  */
9785char ID3Tag_Link ();
9786int
9787main ()
9788{
9789ID3Tag_Link ();
9790  ;
9791  return 0;
9792}
9793_ACEOF
9794rm -f conftest.$ac_objext conftest$ac_exeext
9795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9796  (eval $ac_link) 2>conftest.er1
9797  ac_status=$?
9798  grep -v '^ *+' conftest.er1 >conftest.err
9799  rm -f conftest.er1
9800  cat conftest.err >&5
9801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802  (exit $ac_status); } &&
9803	 { ac_try='test -z "$ac_cxx_werror_flag"
9804			 || test ! -s conftest.err'
9805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806  (eval $ac_try) 2>&5
9807  ac_status=$?
9808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809  (exit $ac_status); }; } &&
9810	 { ac_try='test -s conftest$ac_exeext'
9811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812  (eval $ac_try) 2>&5
9813  ac_status=$?
9814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815  (exit $ac_status); }; }; then
9816  ac_cv_search_ID3Tag_Link="none required"
9817else
9818  echo "$as_me: failed program was:" >&5
9819sed 's/^/| /' conftest.$ac_ext >&5
9820
9821fi
9822rm -f conftest.err conftest.$ac_objext \
9823      conftest$ac_exeext conftest.$ac_ext
9824if test "$ac_cv_search_ID3Tag_Link" = no; then
9825  for ac_lib in "id3 -lz -lstdc++"; do
9826    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9827    cat >conftest.$ac_ext <<_ACEOF
9828/* confdefs.h.  */
9829_ACEOF
9830cat confdefs.h >>conftest.$ac_ext
9831cat >>conftest.$ac_ext <<_ACEOF
9832/* end confdefs.h.  */
9833
9834/* Override any gcc2 internal prototype to avoid an error.  */
9835#ifdef __cplusplus
9836extern "C"
9837#endif
9838/* We use char because int might match the return type of a gcc2
9839   builtin and then its argument prototype would still apply.  */
9840char ID3Tag_Link ();
9841int
9842main ()
9843{
9844ID3Tag_Link ();
9845  ;
9846  return 0;
9847}
9848_ACEOF
9849rm -f conftest.$ac_objext conftest$ac_exeext
9850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9851  (eval $ac_link) 2>conftest.er1
9852  ac_status=$?
9853  grep -v '^ *+' conftest.er1 >conftest.err
9854  rm -f conftest.er1
9855  cat conftest.err >&5
9856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857  (exit $ac_status); } &&
9858	 { ac_try='test -z "$ac_cxx_werror_flag"
9859			 || test ! -s conftest.err'
9860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861  (eval $ac_try) 2>&5
9862  ac_status=$?
9863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864  (exit $ac_status); }; } &&
9865	 { ac_try='test -s conftest$ac_exeext'
9866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867  (eval $ac_try) 2>&5
9868  ac_status=$?
9869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870  (exit $ac_status); }; }; then
9871  ac_cv_search_ID3Tag_Link="-l$ac_lib"
9872break
9873else
9874  echo "$as_me: failed program was:" >&5
9875sed 's/^/| /' conftest.$ac_ext >&5
9876
9877fi
9878rm -f conftest.err conftest.$ac_objext \
9879      conftest$ac_exeext conftest.$ac_ext
9880  done
9881fi
9882LIBS=$ac_func_search_save_LIBS
9883fi
9884echo "$as_me:$LINENO: result: $ac_cv_search_ID3Tag_Link" >&5
9885echo "${ECHO_T}$ac_cv_search_ID3Tag_Link" >&6
9886if test "$ac_cv_search_ID3Tag_Link" != no; then
9887  test "$ac_cv_search_ID3Tag_Link" = "none required" || LIBS="$ac_cv_search_ID3Tag_Link $LIBS"
9888  id3lib=yes
9889
9890cat >>confdefs.h <<\_ACEOF
9891#define HAVE_ID3
9892_ACEOF
9893
9894    LDFLAGS="$LDFLAGS -lid3 -lz -lstdc++"
9895else
9896  id3lib=no
9897		{ echo "$as_me:$LINENO: WARNING: id3lib not found - disabling id3v2 support" >&5
9898echo "$as_me: WARNING: id3lib not found - disabling id3v2 support" >&2;}
9899fi
9900
9901fi
9902
9903
9904
9905cat >>confdefs.h <<\_ACEOF
9906#define __MT__ 1
9907_ACEOF
9908
9909
9910SYSCONFDIR=`eval echo ${sysconfdir}`
9911
9912
9913cat >>confdefs.h <<_ACEOF
9914#define DEFAULT_CONF_FILE "`eval echo "${sysconfdir}/icegenerator.conf"`"
9915_ACEOF
9916
9917
9918                    ac_config_files="$ac_config_files Makefile src/Makefile"
9919cat >confcache <<\_ACEOF
9920# This file is a shell script that caches the results of configure
9921# tests run on this system so they can be shared between configure
9922# scripts and configure runs, see configure's option --config-cache.
9923# It is not useful on other systems.  If it contains results you don't
9924# want to keep, you may remove or edit it.
9925#
9926# config.status only pays attention to the cache file if you give it
9927# the --recheck option to rerun configure.
9928#
9929# `ac_cv_env_foo' variables (set or unset) will be overridden when
9930# loading this file, other *unset* `ac_cv_foo' will be assigned the
9931# following values.
9932
9933_ACEOF
9934
9935# The following way of writing the cache mishandles newlines in values,
9936# but we know of no workaround that is simple, portable, and efficient.
9937# So, don't put newlines in cache variables' values.
9938# Ultrix sh set writes to stderr and can't be redirected directly,
9939# and sets the high bit in the cache file unless we assign to the vars.
9940{
9941  (set) 2>&1 |
9942    case `(ac_space=' '; set | grep ac_space) 2>&1` in
9943    *ac_space=\ *)
9944      # `set' does not quote correctly, so add quotes (double-quote
9945      # substitution turns \\\\ into \\, and sed turns \\ into \).
9946      sed -n \
9947	"s/'/'\\\\''/g;
9948	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9949      ;;
9950    *)
9951      # `set' quotes correctly as required by POSIX, so do not add quotes.
9952      sed -n \
9953	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9954      ;;
9955    esac;
9956} |
9957  sed '
9958     t clear
9959     : clear
9960     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9961     t end
9962     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9963     : end' >>confcache
9964if diff $cache_file confcache >/dev/null 2>&1; then :; else
9965  if test -w $cache_file; then
9966    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9967    cat confcache >$cache_file
9968  else
9969    echo "not updating unwritable cache $cache_file"
9970  fi
9971fi
9972rm -f confcache
9973
9974test "x$prefix" = xNONE && prefix=$ac_default_prefix
9975# Let make expand exec_prefix.
9976test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9977
9978# VPATH may cause trouble with some makes, so we remove $(srcdir),
9979# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9980# trailing colons and then remove the whole line if VPATH becomes empty
9981# (actually we leave an empty line to preserve line numbers).
9982if test "x$srcdir" = x.; then
9983  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
9984s/:*\$(srcdir):*/:/;
9985s/:*\${srcdir}:*/:/;
9986s/:*@srcdir@:*/:/;
9987s/^\([^=]*=[	 ]*\):*/\1/;
9988s/:*$//;
9989s/^[^=]*=[	 ]*$//;
9990}'
9991fi
9992
9993DEFS=-DHAVE_CONFIG_H
9994
9995ac_libobjs=
9996ac_ltlibobjs=
9997for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9998  # 1. Remove the extension, and $U if already installed.
9999  ac_i=`echo "$ac_i" |
10000	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10001  # 2. Add them.
10002  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10003  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10004done
10005LIBOBJS=$ac_libobjs
10006
10007LTLIBOBJS=$ac_ltlibobjs
10008
10009
10010if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10011  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10012Usually this means the macro was only invoked conditionally." >&5
10013echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10014Usually this means the macro was only invoked conditionally." >&2;}
10015   { (exit 1); exit 1; }; }
10016fi
10017if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10018  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10019Usually this means the macro was only invoked conditionally." >&5
10020echo "$as_me: error: conditional \"AMDEP\" was never defined.
10021Usually this means the macro was only invoked conditionally." >&2;}
10022   { (exit 1); exit 1; }; }
10023fi
10024if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10025  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10026Usually this means the macro was only invoked conditionally." >&5
10027echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10028Usually this means the macro was only invoked conditionally." >&2;}
10029   { (exit 1); exit 1; }; }
10030fi
10031if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10032  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10033Usually this means the macro was only invoked conditionally." >&5
10034echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10035Usually this means the macro was only invoked conditionally." >&2;}
10036   { (exit 1); exit 1; }; }
10037fi
10038if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10039  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10040Usually this means the macro was only invoked conditionally." >&5
10041echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10042Usually this means the macro was only invoked conditionally." >&2;}
10043   { (exit 1); exit 1; }; }
10044fi
10045
10046: ${CONFIG_STATUS=./config.status}
10047ac_clean_files_save=$ac_clean_files
10048ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10049{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10050echo "$as_me: creating $CONFIG_STATUS" >&6;}
10051cat >$CONFIG_STATUS <<_ACEOF
10052#! $SHELL
10053# Generated by $as_me.
10054# Run this file to recreate the current configuration.
10055# Compiler output produced by configure, useful for debugging
10056# configure, is in config.log if it exists.
10057
10058debug=false
10059ac_cs_recheck=false
10060ac_cs_silent=false
10061SHELL=\${CONFIG_SHELL-$SHELL}
10062_ACEOF
10063
10064cat >>$CONFIG_STATUS <<\_ACEOF
10065## --------------------- ##
10066## M4sh Initialization.  ##
10067## --------------------- ##
10068
10069# Be Bourne compatible
10070if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10071  emulate sh
10072  NULLCMD=:
10073  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10074  # is contrary to our usage.  Disable this feature.
10075  alias -g '${1+"$@"}'='"$@"'
10076elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10077  set -o posix
10078fi
10079DUALCASE=1; export DUALCASE # for MKS sh
10080
10081# Support unset when possible.
10082if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10083  as_unset=unset
10084else
10085  as_unset=false
10086fi
10087
10088
10089# Work around bugs in pre-3.0 UWIN ksh.
10090$as_unset ENV MAIL MAILPATH
10091PS1='$ '
10092PS2='> '
10093PS4='+ '
10094
10095# NLS nuisances.
10096for as_var in \
10097  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10098  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10099  LC_TELEPHONE LC_TIME
10100do
10101  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10102    eval $as_var=C; export $as_var
10103  else
10104    $as_unset $as_var
10105  fi
10106done
10107
10108# Required to use basename.
10109if expr a : '\(a\)' >/dev/null 2>&1; then
10110  as_expr=expr
10111else
10112  as_expr=false
10113fi
10114
10115if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10116  as_basename=basename
10117else
10118  as_basename=false
10119fi
10120
10121
10122# Name of the executable.
10123as_me=`$as_basename "$0" ||
10124$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10125	 X"$0" : 'X\(//\)$' \| \
10126	 X"$0" : 'X\(/\)$' \| \
10127	 .     : '\(.\)' 2>/dev/null ||
10128echo X/"$0" |
10129    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10130  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
10131  	  /^X\/\(\/\).*/{ s//\1/; q; }
10132  	  s/.*/./; q'`
10133
10134
10135# PATH needs CR, and LINENO needs CR and PATH.
10136# Avoid depending upon Character Ranges.
10137as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10138as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10139as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10140as_cr_digits='0123456789'
10141as_cr_alnum=$as_cr_Letters$as_cr_digits
10142
10143# The user is always right.
10144if test "${PATH_SEPARATOR+set}" != set; then
10145  echo "#! /bin/sh" >conf$$.sh
10146  echo  "exit 0"   >>conf$$.sh
10147  chmod +x conf$$.sh
10148  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10149    PATH_SEPARATOR=';'
10150  else
10151    PATH_SEPARATOR=:
10152  fi
10153  rm -f conf$$.sh
10154fi
10155
10156
10157  as_lineno_1=$LINENO
10158  as_lineno_2=$LINENO
10159  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10160  test "x$as_lineno_1" != "x$as_lineno_2" &&
10161  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10162  # Find who we are.  Look in the path if we contain no path at all
10163  # relative or not.
10164  case $0 in
10165    *[\\/]* ) as_myself=$0 ;;
10166    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167for as_dir in $PATH
10168do
10169  IFS=$as_save_IFS
10170  test -z "$as_dir" && as_dir=.
10171  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10172done
10173
10174       ;;
10175  esac
10176  # We did not find ourselves, most probably we were run as `sh COMMAND'
10177  # in which case we are not to be found in the path.
10178  if test "x$as_myself" = x; then
10179    as_myself=$0
10180  fi
10181  if test ! -f "$as_myself"; then
10182    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10183echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10184   { (exit 1); exit 1; }; }
10185  fi
10186  case $CONFIG_SHELL in
10187  '')
10188    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10189for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10190do
10191  IFS=$as_save_IFS
10192  test -z "$as_dir" && as_dir=.
10193  for as_base in sh bash ksh sh5; do
10194	 case $as_dir in
10195	 /*)
10196	   if ("$as_dir/$as_base" -c '
10197  as_lineno_1=$LINENO
10198  as_lineno_2=$LINENO
10199  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10200  test "x$as_lineno_1" != "x$as_lineno_2" &&
10201  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10202	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10203	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10204	     CONFIG_SHELL=$as_dir/$as_base
10205	     export CONFIG_SHELL
10206	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10207	   fi;;
10208	 esac
10209       done
10210done
10211;;
10212  esac
10213
10214  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10215  # uniformly replaced by the line number.  The first 'sed' inserts a
10216  # line-number line before each line; the second 'sed' does the real
10217  # work.  The second script uses 'N' to pair each line-number line
10218  # with the numbered line, and appends trailing '-' during
10219  # substitution so that $LINENO is not a special case at line end.
10220  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10221  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10222  sed '=' <$as_myself |
10223    sed '
10224      N
10225      s,$,-,
10226      : loop
10227      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10228      t loop
10229      s,-$,,
10230      s,^['$as_cr_digits']*\n,,
10231    ' >$as_me.lineno &&
10232  chmod +x $as_me.lineno ||
10233    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10234echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10235   { (exit 1); exit 1; }; }
10236
10237  # Don't try to exec as it changes $[0], causing all sort of problems
10238  # (the dirname of $[0] is not the place where we might find the
10239  # original and so on.  Autoconf is especially sensible to this).
10240  . ./$as_me.lineno
10241  # Exit status is that of the last command.
10242  exit
10243}
10244
10245
10246case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10247  *c*,-n*) ECHO_N= ECHO_C='
10248' ECHO_T='	' ;;
10249  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10250  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10251esac
10252
10253if expr a : '\(a\)' >/dev/null 2>&1; then
10254  as_expr=expr
10255else
10256  as_expr=false
10257fi
10258
10259rm -f conf$$ conf$$.exe conf$$.file
10260echo >conf$$.file
10261if ln -s conf$$.file conf$$ 2>/dev/null; then
10262  # We could just check for DJGPP; but this test a) works b) is more generic
10263  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10264  if test -f conf$$.exe; then
10265    # Don't use ln at all; we don't have any links
10266    as_ln_s='cp -p'
10267  else
10268    as_ln_s='ln -s'
10269  fi
10270elif ln conf$$.file conf$$ 2>/dev/null; then
10271  as_ln_s=ln
10272else
10273  as_ln_s='cp -p'
10274fi
10275rm -f conf$$ conf$$.exe conf$$.file
10276
10277if mkdir -p . 2>/dev/null; then
10278  as_mkdir_p=:
10279else
10280  test -d ./-p && rmdir ./-p
10281  as_mkdir_p=false
10282fi
10283
10284as_executable_p="test -f"
10285
10286# Sed expression to map a string onto a valid CPP name.
10287as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10288
10289# Sed expression to map a string onto a valid variable name.
10290as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10291
10292
10293# IFS
10294# We need space, tab and new line, in precisely that order.
10295as_nl='
10296'
10297IFS=" 	$as_nl"
10298
10299# CDPATH.
10300$as_unset CDPATH
10301
10302exec 6>&1
10303
10304# Open the log real soon, to keep \$[0] and so on meaningful, and to
10305# report actual input values of CONFIG_FILES etc. instead of their
10306# values after options handling.  Logging --version etc. is OK.
10307exec 5>>config.log
10308{
10309  echo
10310  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10311## Running $as_me. ##
10312_ASBOX
10313} >&5
10314cat >&5 <<_CSEOF
10315
10316This file was extended by IceGenerator $as_me 0.5.5, which was
10317generated by GNU Autoconf 2.59.  Invocation command line was
10318
10319  CONFIG_FILES    = $CONFIG_FILES
10320  CONFIG_HEADERS  = $CONFIG_HEADERS
10321  CONFIG_LINKS    = $CONFIG_LINKS
10322  CONFIG_COMMANDS = $CONFIG_COMMANDS
10323  $ $0 $@
10324
10325_CSEOF
10326echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10327echo >&5
10328_ACEOF
10329
10330# Files that config.status was made for.
10331if test -n "$ac_config_files"; then
10332  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10333fi
10334
10335if test -n "$ac_config_headers"; then
10336  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10337fi
10338
10339if test -n "$ac_config_links"; then
10340  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10341fi
10342
10343if test -n "$ac_config_commands"; then
10344  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10345fi
10346
10347cat >>$CONFIG_STATUS <<\_ACEOF
10348
10349ac_cs_usage="\
10350\`$as_me' instantiates files from templates according to the
10351current configuration.
10352
10353Usage: $0 [OPTIONS] [FILE]...
10354
10355  -h, --help       print this help, then exit
10356  -V, --version    print version number, then exit
10357  -q, --quiet      do not print progress messages
10358  -d, --debug      don't remove temporary files
10359      --recheck    update $as_me by reconfiguring in the same conditions
10360  --file=FILE[:TEMPLATE]
10361		   instantiate the configuration file FILE
10362  --header=FILE[:TEMPLATE]
10363		   instantiate the configuration header FILE
10364
10365Configuration files:
10366$config_files
10367
10368Configuration headers:
10369$config_headers
10370
10371Configuration commands:
10372$config_commands
10373
10374Report bugs to <bug-autoconf@gnu.org>."
10375_ACEOF
10376
10377cat >>$CONFIG_STATUS <<_ACEOF
10378ac_cs_version="\\
10379IceGenerator config.status 0.5.5
10380configured by $0, generated by GNU Autoconf 2.59,
10381  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10382
10383Copyright (C) 2003 Free Software Foundation, Inc.
10384This config.status script is free software; the Free Software Foundation
10385gives unlimited permission to copy, distribute and modify it."
10386srcdir=$srcdir
10387INSTALL="$INSTALL"
10388_ACEOF
10389
10390cat >>$CONFIG_STATUS <<\_ACEOF
10391# If no file are specified by the user, then we need to provide default
10392# value.  By we need to know if files were specified by the user.
10393ac_need_defaults=:
10394while test $# != 0
10395do
10396  case $1 in
10397  --*=*)
10398    ac_option=`expr "x$1" : 'x\([^=]*\)='`
10399    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10400    ac_shift=:
10401    ;;
10402  -*)
10403    ac_option=$1
10404    ac_optarg=$2
10405    ac_shift=shift
10406    ;;
10407  *) # This is not an option, so the user has probably given explicit
10408     # arguments.
10409     ac_option=$1
10410     ac_need_defaults=false;;
10411  esac
10412
10413  case $ac_option in
10414  # Handling of the options.
10415_ACEOF
10416cat >>$CONFIG_STATUS <<\_ACEOF
10417  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10418    ac_cs_recheck=: ;;
10419  --version | --vers* | -V )
10420    echo "$ac_cs_version"; exit 0 ;;
10421  --he | --h)
10422    # Conflict between --help and --header
10423    { { echo "$as_me:$LINENO: error: ambiguous option: $1
10424Try \`$0 --help' for more information." >&5
10425echo "$as_me: error: ambiguous option: $1
10426Try \`$0 --help' for more information." >&2;}
10427   { (exit 1); exit 1; }; };;
10428  --help | --hel | -h )
10429    echo "$ac_cs_usage"; exit 0 ;;
10430  --debug | --d* | -d )
10431    debug=: ;;
10432  --file | --fil | --fi | --f )
10433    $ac_shift
10434    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10435    ac_need_defaults=false;;
10436  --header | --heade | --head | --hea )
10437    $ac_shift
10438    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10439    ac_need_defaults=false;;
10440  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10441  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10442    ac_cs_silent=: ;;
10443
10444  # This is an error.
10445  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10446Try \`$0 --help' for more information." >&5
10447echo "$as_me: error: unrecognized option: $1
10448Try \`$0 --help' for more information." >&2;}
10449   { (exit 1); exit 1; }; } ;;
10450
10451  *) ac_config_targets="$ac_config_targets $1" ;;
10452
10453  esac
10454  shift
10455done
10456
10457ac_configure_extra_args=
10458
10459if $ac_cs_silent; then
10460  exec 6>/dev/null
10461  ac_configure_extra_args="$ac_configure_extra_args --silent"
10462fi
10463
10464_ACEOF
10465cat >>$CONFIG_STATUS <<_ACEOF
10466if \$ac_cs_recheck; then
10467  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10468  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10469fi
10470
10471_ACEOF
10472
10473cat >>$CONFIG_STATUS <<_ACEOF
10474#
10475# INIT-COMMANDS section.
10476#
10477
10478AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10479
10480_ACEOF
10481
10482
10483
10484cat >>$CONFIG_STATUS <<\_ACEOF
10485for ac_config_target in $ac_config_targets
10486do
10487  case "$ac_config_target" in
10488  # Handling of arguments.
10489  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10490  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10491  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10492  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10493  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10494echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10495   { (exit 1); exit 1; }; };;
10496  esac
10497done
10498
10499# If the user did not use the arguments to specify the items to instantiate,
10500# then the envvar interface is used.  Set only those that are not.
10501# We use the long form for the default assignment because of an extremely
10502# bizarre bug on SunOS 4.1.3.
10503if $ac_need_defaults; then
10504  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10505  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10506  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10507fi
10508
10509# Have a temporary directory for convenience.  Make it in the build tree
10510# simply because there is no reason to put it here, and in addition,
10511# creating and moving files from /tmp can sometimes cause problems.
10512# Create a temporary directory, and hook for its removal unless debugging.
10513$debug ||
10514{
10515  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10516  trap '{ (exit 1); exit 1; }' 1 2 13 15
10517}
10518
10519# Create a (secure) tmp directory for tmp files.
10520
10521{
10522  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10523  test -n "$tmp" && test -d "$tmp"
10524}  ||
10525{
10526  tmp=./confstat$$-$RANDOM
10527  (umask 077 && mkdir $tmp)
10528} ||
10529{
10530   echo "$me: cannot create a temporary directory in ." >&2
10531   { (exit 1); exit 1; }
10532}
10533
10534_ACEOF
10535
10536cat >>$CONFIG_STATUS <<_ACEOF
10537
10538#
10539# CONFIG_FILES section.
10540#
10541
10542# No need to generate the scripts if there are no CONFIG_FILES.
10543# This happens for instance when ./config.status config.h
10544if test -n "\$CONFIG_FILES"; then
10545  # Protect against being on the right side of a sed subst in config.status.
10546  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10547   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10548s,@SHELL@,$SHELL,;t t
10549s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10550s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10551s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10552s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10553s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10554s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10555s,@exec_prefix@,$exec_prefix,;t t
10556s,@prefix@,$prefix,;t t
10557s,@program_transform_name@,$program_transform_name,;t t
10558s,@bindir@,$bindir,;t t
10559s,@sbindir@,$sbindir,;t t
10560s,@libexecdir@,$libexecdir,;t t
10561s,@datadir@,$datadir,;t t
10562s,@sysconfdir@,$sysconfdir,;t t
10563s,@sharedstatedir@,$sharedstatedir,;t t
10564s,@localstatedir@,$localstatedir,;t t
10565s,@libdir@,$libdir,;t t
10566s,@includedir@,$includedir,;t t
10567s,@oldincludedir@,$oldincludedir,;t t
10568s,@infodir@,$infodir,;t t
10569s,@mandir@,$mandir,;t t
10570s,@build_alias@,$build_alias,;t t
10571s,@host_alias@,$host_alias,;t t
10572s,@target_alias@,$target_alias,;t t
10573s,@DEFS@,$DEFS,;t t
10574s,@ECHO_C@,$ECHO_C,;t t
10575s,@ECHO_N@,$ECHO_N,;t t
10576s,@ECHO_T@,$ECHO_T,;t t
10577s,@LIBS@,$LIBS,;t t
10578s,@build@,$build,;t t
10579s,@build_cpu@,$build_cpu,;t t
10580s,@build_vendor@,$build_vendor,;t t
10581s,@build_os@,$build_os,;t t
10582s,@host@,$host,;t t
10583s,@host_cpu@,$host_cpu,;t t
10584s,@host_vendor@,$host_vendor,;t t
10585s,@host_os@,$host_os,;t t
10586s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10587s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10588s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10589s,@CYGPATH_W@,$CYGPATH_W,;t t
10590s,@PACKAGE@,$PACKAGE,;t t
10591s,@VERSION@,$VERSION,;t t
10592s,@ACLOCAL@,$ACLOCAL,;t t
10593s,@AUTOCONF@,$AUTOCONF,;t t
10594s,@AUTOMAKE@,$AUTOMAKE,;t t
10595s,@AUTOHEADER@,$AUTOHEADER,;t t
10596s,@MAKEINFO@,$MAKEINFO,;t t
10597s,@install_sh@,$install_sh,;t t
10598s,@STRIP@,$STRIP,;t t
10599s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10600s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10601s,@mkdir_p@,$mkdir_p,;t t
10602s,@AWK@,$AWK,;t t
10603s,@SET_MAKE@,$SET_MAKE,;t t
10604s,@am__leading_dot@,$am__leading_dot,;t t
10605s,@AMTAR@,$AMTAR,;t t
10606s,@am__tar@,$am__tar,;t t
10607s,@am__untar@,$am__untar,;t t
10608s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10609s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10610s,@MAINT@,$MAINT,;t t
10611s,@CC@,$CC,;t t
10612s,@CFLAGS@,$CFLAGS,;t t
10613s,@LDFLAGS@,$LDFLAGS,;t t
10614s,@CPPFLAGS@,$CPPFLAGS,;t t
10615s,@ac_ct_CC@,$ac_ct_CC,;t t
10616s,@EXEEXT@,$EXEEXT,;t t
10617s,@OBJEXT@,$OBJEXT,;t t
10618s,@DEPDIR@,$DEPDIR,;t t
10619s,@am__include@,$am__include,;t t
10620s,@am__quote@,$am__quote,;t t
10621s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10622s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10623s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10624s,@CCDEPMODE@,$CCDEPMODE,;t t
10625s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10626s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10627s,@CXX@,$CXX,;t t
10628s,@CXXFLAGS@,$CXXFLAGS,;t t
10629s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10630s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10631s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10632s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10633s,@LN_S@,$LN_S,;t t
10634s,@PTHREAD_CC@,$PTHREAD_CC,;t t
10635s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
10636s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
10637s,@CXXCPP@,$CXXCPP,;t t
10638s,@EGREP@,$EGREP,;t t
10639s,@ETR_SOCKET_LIBS@,$ETR_SOCKET_LIBS,;t t
10640s,@PKG_CONFIG@,$PKG_CONFIG,;t t
10641s,@SHOUT_CFLAGS@,$SHOUT_CFLAGS,;t t
10642s,@SHOUT_LIBS@,$SHOUT_LIBS,;t t
10643s,@SYSCONFDIR@,$SYSCONFDIR,;t t
10644s,@LIBOBJS@,$LIBOBJS,;t t
10645s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10646CEOF
10647
10648_ACEOF
10649
10650  cat >>$CONFIG_STATUS <<\_ACEOF
10651  # Split the substitutions into bite-sized pieces for seds with
10652  # small command number limits, like on Digital OSF/1 and HP-UX.
10653  ac_max_sed_lines=48
10654  ac_sed_frag=1 # Number of current file.
10655  ac_beg=1 # First line for current file.
10656  ac_end=$ac_max_sed_lines # Line after last line for current file.
10657  ac_more_lines=:
10658  ac_sed_cmds=
10659  while $ac_more_lines; do
10660    if test $ac_beg -gt 1; then
10661      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10662    else
10663      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10664    fi
10665    if test ! -s $tmp/subs.frag; then
10666      ac_more_lines=false
10667    else
10668      # The purpose of the label and of the branching condition is to
10669      # speed up the sed processing (if there are no `@' at all, there
10670      # is no need to browse any of the substitutions).
10671      # These are the two extra sed commands mentioned above.
10672      (echo ':t
10673  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10674      if test -z "$ac_sed_cmds"; then
10675	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10676      else
10677	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10678      fi
10679      ac_sed_frag=`expr $ac_sed_frag + 1`
10680      ac_beg=$ac_end
10681      ac_end=`expr $ac_end + $ac_max_sed_lines`
10682    fi
10683  done
10684  if test -z "$ac_sed_cmds"; then
10685    ac_sed_cmds=cat
10686  fi
10687fi # test -n "$CONFIG_FILES"
10688
10689_ACEOF
10690cat >>$CONFIG_STATUS <<\_ACEOF
10691for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10692  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10693  case $ac_file in
10694  - | *:- | *:-:* ) # input from stdin
10695	cat >$tmp/stdin
10696	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10697	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10698  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10699	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10700  * )   ac_file_in=$ac_file.in ;;
10701  esac
10702
10703  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10704  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10705$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10706	 X"$ac_file" : 'X\(//\)[^/]' \| \
10707	 X"$ac_file" : 'X\(//\)$' \| \
10708	 X"$ac_file" : 'X\(/\)' \| \
10709	 .     : '\(.\)' 2>/dev/null ||
10710echo X"$ac_file" |
10711    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10712  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10713  	  /^X\(\/\/\)$/{ s//\1/; q; }
10714  	  /^X\(\/\).*/{ s//\1/; q; }
10715  	  s/.*/./; q'`
10716  { if $as_mkdir_p; then
10717    mkdir -p "$ac_dir"
10718  else
10719    as_dir="$ac_dir"
10720    as_dirs=
10721    while test ! -d "$as_dir"; do
10722      as_dirs="$as_dir $as_dirs"
10723      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10724$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10725	 X"$as_dir" : 'X\(//\)[^/]' \| \
10726	 X"$as_dir" : 'X\(//\)$' \| \
10727	 X"$as_dir" : 'X\(/\)' \| \
10728	 .     : '\(.\)' 2>/dev/null ||
10729echo X"$as_dir" |
10730    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10731  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10732  	  /^X\(\/\/\)$/{ s//\1/; q; }
10733  	  /^X\(\/\).*/{ s//\1/; q; }
10734  	  s/.*/./; q'`
10735    done
10736    test ! -n "$as_dirs" || mkdir $as_dirs
10737  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10738echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10739   { (exit 1); exit 1; }; }; }
10740
10741  ac_builddir=.
10742
10743if test "$ac_dir" != .; then
10744  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10745  # A "../" for each directory in $ac_dir_suffix.
10746  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10747else
10748  ac_dir_suffix= ac_top_builddir=
10749fi
10750
10751case $srcdir in
10752  .)  # No --srcdir option.  We are building in place.
10753    ac_srcdir=.
10754    if test -z "$ac_top_builddir"; then
10755       ac_top_srcdir=.
10756    else
10757       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10758    fi ;;
10759  [\\/]* | ?:[\\/]* )  # Absolute path.
10760    ac_srcdir=$srcdir$ac_dir_suffix;
10761    ac_top_srcdir=$srcdir ;;
10762  *) # Relative path.
10763    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10764    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10765esac
10766
10767# Do not use `cd foo && pwd` to compute absolute paths, because
10768# the directories may not exist.
10769case `pwd` in
10770.) ac_abs_builddir="$ac_dir";;
10771*)
10772  case "$ac_dir" in
10773  .) ac_abs_builddir=`pwd`;;
10774  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10775  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10776  esac;;
10777esac
10778case $ac_abs_builddir in
10779.) ac_abs_top_builddir=${ac_top_builddir}.;;
10780*)
10781  case ${ac_top_builddir}. in
10782  .) ac_abs_top_builddir=$ac_abs_builddir;;
10783  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10784  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10785  esac;;
10786esac
10787case $ac_abs_builddir in
10788.) ac_abs_srcdir=$ac_srcdir;;
10789*)
10790  case $ac_srcdir in
10791  .) ac_abs_srcdir=$ac_abs_builddir;;
10792  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10793  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10794  esac;;
10795esac
10796case $ac_abs_builddir in
10797.) ac_abs_top_srcdir=$ac_top_srcdir;;
10798*)
10799  case $ac_top_srcdir in
10800  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10801  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10802  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10803  esac;;
10804esac
10805
10806
10807  case $INSTALL in
10808  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10809  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10810  esac
10811
10812  if test x"$ac_file" != x-; then
10813    { echo "$as_me:$LINENO: creating $ac_file" >&5
10814echo "$as_me: creating $ac_file" >&6;}
10815    rm -f "$ac_file"
10816  fi
10817  # Let's still pretend it is `configure' which instantiates (i.e., don't
10818  # use $as_me), people would be surprised to read:
10819  #    /* config.h.  Generated by config.status.  */
10820  if test x"$ac_file" = x-; then
10821    configure_input=
10822  else
10823    configure_input="$ac_file.  "
10824  fi
10825  configure_input=$configure_input"Generated from `echo $ac_file_in |
10826				     sed 's,.*/,,'` by configure."
10827
10828  # First look for the input files in the build tree, otherwise in the
10829  # src tree.
10830  ac_file_inputs=`IFS=:
10831    for f in $ac_file_in; do
10832      case $f in
10833      -) echo $tmp/stdin ;;
10834      [\\/$]*)
10835	 # Absolute (can't be DOS-style, as IFS=:)
10836	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10837echo "$as_me: error: cannot find input file: $f" >&2;}
10838   { (exit 1); exit 1; }; }
10839	 echo "$f";;
10840      *) # Relative
10841	 if test -f "$f"; then
10842	   # Build tree
10843	   echo "$f"
10844	 elif test -f "$srcdir/$f"; then
10845	   # Source tree
10846	   echo "$srcdir/$f"
10847	 else
10848	   # /dev/null tree
10849	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10850echo "$as_me: error: cannot find input file: $f" >&2;}
10851   { (exit 1); exit 1; }; }
10852	 fi;;
10853      esac
10854    done` || { (exit 1); exit 1; }
10855_ACEOF
10856cat >>$CONFIG_STATUS <<_ACEOF
10857  sed "$ac_vpsub
10858$extrasub
10859_ACEOF
10860cat >>$CONFIG_STATUS <<\_ACEOF
10861:t
10862/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10863s,@configure_input@,$configure_input,;t t
10864s,@srcdir@,$ac_srcdir,;t t
10865s,@abs_srcdir@,$ac_abs_srcdir,;t t
10866s,@top_srcdir@,$ac_top_srcdir,;t t
10867s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10868s,@builddir@,$ac_builddir,;t t
10869s,@abs_builddir@,$ac_abs_builddir,;t t
10870s,@top_builddir@,$ac_top_builddir,;t t
10871s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10872s,@INSTALL@,$ac_INSTALL,;t t
10873" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10874  rm -f $tmp/stdin
10875  if test x"$ac_file" != x-; then
10876    mv $tmp/out $ac_file
10877  else
10878    cat $tmp/out
10879    rm -f $tmp/out
10880  fi
10881
10882done
10883_ACEOF
10884cat >>$CONFIG_STATUS <<\_ACEOF
10885
10886#
10887# CONFIG_HEADER section.
10888#
10889
10890# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10891# NAME is the cpp macro being defined and VALUE is the value it is being given.
10892#
10893# ac_d sets the value in "#define NAME VALUE" lines.
10894ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
10895ac_dB='[	 ].*$,\1#\2'
10896ac_dC=' '
10897ac_dD=',;t'
10898# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10899ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
10900ac_uB='$,\1#\2define\3'
10901ac_uC=' '
10902ac_uD=',;t'
10903
10904for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10905  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10906  case $ac_file in
10907  - | *:- | *:-:* ) # input from stdin
10908	cat >$tmp/stdin
10909	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10910	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10911  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10912	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10913  * )   ac_file_in=$ac_file.in ;;
10914  esac
10915
10916  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10917echo "$as_me: creating $ac_file" >&6;}
10918
10919  # First look for the input files in the build tree, otherwise in the
10920  # src tree.
10921  ac_file_inputs=`IFS=:
10922    for f in $ac_file_in; do
10923      case $f in
10924      -) echo $tmp/stdin ;;
10925      [\\/$]*)
10926	 # Absolute (can't be DOS-style, as IFS=:)
10927	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10928echo "$as_me: error: cannot find input file: $f" >&2;}
10929   { (exit 1); exit 1; }; }
10930	 # Do quote $f, to prevent DOS paths from being IFS'd.
10931	 echo "$f";;
10932      *) # Relative
10933	 if test -f "$f"; then
10934	   # Build tree
10935	   echo "$f"
10936	 elif test -f "$srcdir/$f"; then
10937	   # Source tree
10938	   echo "$srcdir/$f"
10939	 else
10940	   # /dev/null tree
10941	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10942echo "$as_me: error: cannot find input file: $f" >&2;}
10943   { (exit 1); exit 1; }; }
10944	 fi;;
10945      esac
10946    done` || { (exit 1); exit 1; }
10947  # Remove the trailing spaces.
10948  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
10949
10950_ACEOF
10951
10952# Transform confdefs.h into two sed scripts, `conftest.defines' and
10953# `conftest.undefs', that substitutes the proper values into
10954# config.h.in to produce config.h.  The first handles `#define'
10955# templates, and the second `#undef' templates.
10956# And first: Protect against being on the right side of a sed subst in
10957# config.status.  Protect against being in an unquoted here document
10958# in config.status.
10959rm -f conftest.defines conftest.undefs
10960# Using a here document instead of a string reduces the quoting nightmare.
10961# Putting comments in sed scripts is not portable.
10962#
10963# `end' is used to avoid that the second main sed command (meant for
10964# 0-ary CPP macros) applies to n-ary macro definitions.
10965# See the Autoconf documentation for `clear'.
10966cat >confdef2sed.sed <<\_ACEOF
10967s/[\\&,]/\\&/g
10968s,[\\$`],\\&,g
10969t clear
10970: clear
10971s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10972t end
10973s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10974: end
10975_ACEOF
10976# If some macros were called several times there might be several times
10977# the same #defines, which is useless.  Nevertheless, we may not want to
10978# sort them, since we want the *last* AC-DEFINE to be honored.
10979uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10980sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10981rm -f confdef2sed.sed
10982
10983# This sed command replaces #undef with comments.  This is necessary, for
10984# example, in the case of _POSIX_SOURCE, which is predefined and required
10985# on some systems where configure will not decide to define it.
10986cat >>conftest.undefs <<\_ACEOF
10987s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10988_ACEOF
10989
10990# Break up conftest.defines because some shells have a limit on the size
10991# of here documents, and old seds have small limits too (100 cmds).
10992echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10993echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10994echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10995echo '  :' >>$CONFIG_STATUS
10996rm -f conftest.tail
10997while grep . conftest.defines >/dev/null
10998do
10999  # Write a limited-size here document to $tmp/defines.sed.
11000  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11001  # Speed up: don't consider the non `#define' lines.
11002  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
11003  # Work around the forget-to-reset-the-flag bug.
11004  echo 't clr' >>$CONFIG_STATUS
11005  echo ': clr' >>$CONFIG_STATUS
11006  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11007  echo 'CEOF
11008  sed -f $tmp/defines.sed $tmp/in >$tmp/out
11009  rm -f $tmp/in
11010  mv $tmp/out $tmp/in
11011' >>$CONFIG_STATUS
11012  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11013  rm -f conftest.defines
11014  mv conftest.tail conftest.defines
11015done
11016rm -f conftest.defines
11017echo '  fi # grep' >>$CONFIG_STATUS
11018echo >>$CONFIG_STATUS
11019
11020# Break up conftest.undefs because some shells have a limit on the size
11021# of here documents, and old seds have small limits too (100 cmds).
11022echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11023rm -f conftest.tail
11024while grep . conftest.undefs >/dev/null
11025do
11026  # Write a limited-size here document to $tmp/undefs.sed.
11027  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11028  # Speed up: don't consider the non `#undef'
11029  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
11030  # Work around the forget-to-reset-the-flag bug.
11031  echo 't clr' >>$CONFIG_STATUS
11032  echo ': clr' >>$CONFIG_STATUS
11033  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11034  echo 'CEOF
11035  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11036  rm -f $tmp/in
11037  mv $tmp/out $tmp/in
11038' >>$CONFIG_STATUS
11039  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11040  rm -f conftest.undefs
11041  mv conftest.tail conftest.undefs
11042done
11043rm -f conftest.undefs
11044
11045cat >>$CONFIG_STATUS <<\_ACEOF
11046  # Let's still pretend it is `configure' which instantiates (i.e., don't
11047  # use $as_me), people would be surprised to read:
11048  #    /* config.h.  Generated by config.status.  */
11049  if test x"$ac_file" = x-; then
11050    echo "/* Generated by configure.  */" >$tmp/config.h
11051  else
11052    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11053  fi
11054  cat $tmp/in >>$tmp/config.h
11055  rm -f $tmp/in
11056  if test x"$ac_file" != x-; then
11057    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11058      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11059echo "$as_me: $ac_file is unchanged" >&6;}
11060    else
11061      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11062$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11063	 X"$ac_file" : 'X\(//\)[^/]' \| \
11064	 X"$ac_file" : 'X\(//\)$' \| \
11065	 X"$ac_file" : 'X\(/\)' \| \
11066	 .     : '\(.\)' 2>/dev/null ||
11067echo X"$ac_file" |
11068    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11069  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11070  	  /^X\(\/\/\)$/{ s//\1/; q; }
11071  	  /^X\(\/\).*/{ s//\1/; q; }
11072  	  s/.*/./; q'`
11073      { if $as_mkdir_p; then
11074    mkdir -p "$ac_dir"
11075  else
11076    as_dir="$ac_dir"
11077    as_dirs=
11078    while test ! -d "$as_dir"; do
11079      as_dirs="$as_dir $as_dirs"
11080      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11081$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11082	 X"$as_dir" : 'X\(//\)[^/]' \| \
11083	 X"$as_dir" : 'X\(//\)$' \| \
11084	 X"$as_dir" : 'X\(/\)' \| \
11085	 .     : '\(.\)' 2>/dev/null ||
11086echo X"$as_dir" |
11087    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11088  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11089  	  /^X\(\/\/\)$/{ s//\1/; q; }
11090  	  /^X\(\/\).*/{ s//\1/; q; }
11091  	  s/.*/./; q'`
11092    done
11093    test ! -n "$as_dirs" || mkdir $as_dirs
11094  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11095echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11096   { (exit 1); exit 1; }; }; }
11097
11098      rm -f $ac_file
11099      mv $tmp/config.h $ac_file
11100    fi
11101  else
11102    cat $tmp/config.h
11103    rm -f $tmp/config.h
11104  fi
11105# Compute $ac_file's index in $config_headers.
11106_am_stamp_count=1
11107for _am_header in $config_headers :; do
11108  case $_am_header in
11109    $ac_file | $ac_file:* )
11110      break ;;
11111    * )
11112      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11113  esac
11114done
11115echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11116$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11117	 X$ac_file : 'X\(//\)[^/]' \| \
11118	 X$ac_file : 'X\(//\)$' \| \
11119	 X$ac_file : 'X\(/\)' \| \
11120	 .     : '\(.\)' 2>/dev/null ||
11121echo X$ac_file |
11122    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11123  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11124  	  /^X\(\/\/\)$/{ s//\1/; q; }
11125  	  /^X\(\/\).*/{ s//\1/; q; }
11126  	  s/.*/./; q'`/stamp-h$_am_stamp_count
11127done
11128_ACEOF
11129cat >>$CONFIG_STATUS <<\_ACEOF
11130
11131#
11132# CONFIG_COMMANDS section.
11133#
11134for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11135  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11136  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11137  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11138$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11139	 X"$ac_dest" : 'X\(//\)[^/]' \| \
11140	 X"$ac_dest" : 'X\(//\)$' \| \
11141	 X"$ac_dest" : 'X\(/\)' \| \
11142	 .     : '\(.\)' 2>/dev/null ||
11143echo X"$ac_dest" |
11144    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11145  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11146  	  /^X\(\/\/\)$/{ s//\1/; q; }
11147  	  /^X\(\/\).*/{ s//\1/; q; }
11148  	  s/.*/./; q'`
11149  { if $as_mkdir_p; then
11150    mkdir -p "$ac_dir"
11151  else
11152    as_dir="$ac_dir"
11153    as_dirs=
11154    while test ! -d "$as_dir"; do
11155      as_dirs="$as_dir $as_dirs"
11156      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11157$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11158	 X"$as_dir" : 'X\(//\)[^/]' \| \
11159	 X"$as_dir" : 'X\(//\)$' \| \
11160	 X"$as_dir" : 'X\(/\)' \| \
11161	 .     : '\(.\)' 2>/dev/null ||
11162echo X"$as_dir" |
11163    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11164  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11165  	  /^X\(\/\/\)$/{ s//\1/; q; }
11166  	  /^X\(\/\).*/{ s//\1/; q; }
11167  	  s/.*/./; q'`
11168    done
11169    test ! -n "$as_dirs" || mkdir $as_dirs
11170  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11171echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11172   { (exit 1); exit 1; }; }; }
11173
11174  ac_builddir=.
11175
11176if test "$ac_dir" != .; then
11177  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11178  # A "../" for each directory in $ac_dir_suffix.
11179  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11180else
11181  ac_dir_suffix= ac_top_builddir=
11182fi
11183
11184case $srcdir in
11185  .)  # No --srcdir option.  We are building in place.
11186    ac_srcdir=.
11187    if test -z "$ac_top_builddir"; then
11188       ac_top_srcdir=.
11189    else
11190       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11191    fi ;;
11192  [\\/]* | ?:[\\/]* )  # Absolute path.
11193    ac_srcdir=$srcdir$ac_dir_suffix;
11194    ac_top_srcdir=$srcdir ;;
11195  *) # Relative path.
11196    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11197    ac_top_srcdir=$ac_top_builddir$srcdir ;;
11198esac
11199
11200# Do not use `cd foo && pwd` to compute absolute paths, because
11201# the directories may not exist.
11202case `pwd` in
11203.) ac_abs_builddir="$ac_dir";;
11204*)
11205  case "$ac_dir" in
11206  .) ac_abs_builddir=`pwd`;;
11207  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11208  *) ac_abs_builddir=`pwd`/"$ac_dir";;
11209  esac;;
11210esac
11211case $ac_abs_builddir in
11212.) ac_abs_top_builddir=${ac_top_builddir}.;;
11213*)
11214  case ${ac_top_builddir}. in
11215  .) ac_abs_top_builddir=$ac_abs_builddir;;
11216  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11217  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11218  esac;;
11219esac
11220case $ac_abs_builddir in
11221.) ac_abs_srcdir=$ac_srcdir;;
11222*)
11223  case $ac_srcdir in
11224  .) ac_abs_srcdir=$ac_abs_builddir;;
11225  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11226  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11227  esac;;
11228esac
11229case $ac_abs_builddir in
11230.) ac_abs_top_srcdir=$ac_top_srcdir;;
11231*)
11232  case $ac_top_srcdir in
11233  .) ac_abs_top_srcdir=$ac_abs_builddir;;
11234  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11235  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11236  esac;;
11237esac
11238
11239
11240  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11241echo "$as_me: executing $ac_dest commands" >&6;}
11242  case $ac_dest in
11243    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11244  # Strip MF so we end up with the name of the file.
11245  mf=`echo "$mf" | sed -e 's/:.*$//'`
11246  # Check whether this is an Automake generated Makefile or not.
11247  # We used to match only the files named `Makefile.in', but
11248  # some people rename them; so instead we look at the file content.
11249  # Grep'ing the first line is not enough: some people post-process
11250  # each Makefile.in and add a new line on top of each file to say so.
11251  # So let's grep whole file.
11252  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11253    dirpart=`(dirname "$mf") 2>/dev/null ||
11254$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11255	 X"$mf" : 'X\(//\)[^/]' \| \
11256	 X"$mf" : 'X\(//\)$' \| \
11257	 X"$mf" : 'X\(/\)' \| \
11258	 .     : '\(.\)' 2>/dev/null ||
11259echo X"$mf" |
11260    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11261  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11262  	  /^X\(\/\/\)$/{ s//\1/; q; }
11263  	  /^X\(\/\).*/{ s//\1/; q; }
11264  	  s/.*/./; q'`
11265  else
11266    continue
11267  fi
11268  # Extract the definition of DEPDIR, am__include, and am__quote
11269  # from the Makefile without running `make'.
11270  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11271  test -z "$DEPDIR" && continue
11272  am__include=`sed -n 's/^am__include = //p' < "$mf"`
11273  test -z "am__include" && continue
11274  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11275  # When using ansi2knr, U may be empty or an underscore; expand it
11276  U=`sed -n 's/^U = //p' < "$mf"`
11277  # Find all dependency output files, they are included files with
11278  # $(DEPDIR) in their names.  We invoke sed twice because it is the
11279  # simplest approach to changing $(DEPDIR) to its actual value in the
11280  # expansion.
11281  for file in `sed -n "
11282    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11283       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11284    # Make sure the directory exists.
11285    test -f "$dirpart/$file" && continue
11286    fdir=`(dirname "$file") 2>/dev/null ||
11287$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11288	 X"$file" : 'X\(//\)[^/]' \| \
11289	 X"$file" : 'X\(//\)$' \| \
11290	 X"$file" : 'X\(/\)' \| \
11291	 .     : '\(.\)' 2>/dev/null ||
11292echo X"$file" |
11293    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11294  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11295  	  /^X\(\/\/\)$/{ s//\1/; q; }
11296  	  /^X\(\/\).*/{ s//\1/; q; }
11297  	  s/.*/./; q'`
11298    { if $as_mkdir_p; then
11299    mkdir -p $dirpart/$fdir
11300  else
11301    as_dir=$dirpart/$fdir
11302    as_dirs=
11303    while test ! -d "$as_dir"; do
11304      as_dirs="$as_dir $as_dirs"
11305      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11307	 X"$as_dir" : 'X\(//\)[^/]' \| \
11308	 X"$as_dir" : 'X\(//\)$' \| \
11309	 X"$as_dir" : 'X\(/\)' \| \
11310	 .     : '\(.\)' 2>/dev/null ||
11311echo X"$as_dir" |
11312    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11313  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11314  	  /^X\(\/\/\)$/{ s//\1/; q; }
11315  	  /^X\(\/\).*/{ s//\1/; q; }
11316  	  s/.*/./; q'`
11317    done
11318    test ! -n "$as_dirs" || mkdir $as_dirs
11319  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11320echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11321   { (exit 1); exit 1; }; }; }
11322
11323    # echo "creating $dirpart/$file"
11324    echo '# dummy' > "$dirpart/$file"
11325  done
11326done
11327 ;;
11328  esac
11329done
11330_ACEOF
11331
11332cat >>$CONFIG_STATUS <<\_ACEOF
11333
11334{ (exit 0); exit 0; }
11335_ACEOF
11336chmod +x $CONFIG_STATUS
11337ac_clean_files=$ac_clean_files_save
11338
11339
11340# configure is writing to config.log, and then calls config.status.
11341# config.status does its own redirection, appending to config.log.
11342# Unfortunately, on DOS this fails, as config.log is still kept open
11343# by configure, so config.status won't be able to write to it; its
11344# output is simply discarded.  So we exec the FD to /dev/null,
11345# effectively closing config.log, so it can be properly (re)opened and
11346# appended to by config.status.  When coming back to configure, we
11347# need to make the FD available again.
11348if test "$no_create" != yes; then
11349  ac_cs_success=:
11350  ac_config_status_args=
11351  test "$silent" = yes &&
11352    ac_config_status_args="$ac_config_status_args --quiet"
11353  exec 5>/dev/null
11354  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11355  exec 5>>config.log
11356  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11357  # would make configure fail if this is the last instruction.
11358  $ac_cs_success || { (exit 1); exit 1; }
11359fi
11360
11361