source: sources/configure @ 1500:872b0b69e0d5

Revision 1500:872b0b69e0d5, 221.0 KB checked in by niam, 9 months ago (diff)

{issue #103} added implementation of sl- and dl- lists

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