1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="gw/alt_charsets.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600#  include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605#  include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622ac_subst_vars='LTLIBOBJS
623GSOAP_SHARE
624SOAP_INCLUDE
625SOAPCPP
626WSDL2H
627REDIS_CONFIG
628PGSQL_CONFIG
629SQLITE3
630SQLITE
631SDB_CONFIG
632MYSQL_CONFIG
633OPENSSL
634STARTSTOPDAEMONSRC
635SUFFIX
636DOCDRAFTS
637DOCSTARGET
638XML_DCL
639TEX_DSL
640HTML_DSL
641FIG2DEV
642DVIPS
643PDFJADETEX
644JADETEX
645JADE
646PCRE_CONFIG
647XML_CONFIG
648LIBOBJS
649LTLIBICONV
650LIBICONV
651SIZEOF_LONG_LONG
652SIZEOF_LONG
653SIZEOF_INT
654SIZEOF_SHORT
655EGREP
656GREP
657CPP
658LIBTOOL
659EXE_EXT
660PERL
661CONVERT
662AR
663LEXLIB
664LEX_OUTPUT_ROOT
665LEX
666YFLAGS
667YACC
668RANLIB
669INSTALL_DATA
670INSTALL_SCRIPT
671INSTALL_PROGRAM
672OBJEXT
673EXEEXT
674ac_ct_CC
675CPPFLAGS
676LDFLAGS
677CFLAGS
678CC
679host_os
680host_vendor
681host_cpu
682host
683build_os
684build_vendor
685build_cpu
686build
687PKGADD_VENDOR
688PKGADD_NAME
689PKGADD_PKG
690VERSION
691GW_VERSION
692target_alias
693host_alias
694build_alias
695LIBS
696ECHO_T
697ECHO_N
698ECHO_C
699DEFS
700mandir
701localedir
702libdir
703psdir
704pdfdir
705dvidir
706htmldir
707infodir
708docdir
709oldincludedir
710includedir
711localstatedir
712sharedstatedir
713sysconfdir
714datadir
715datarootdir
716libexecdir
717sbindir
718bindir
719program_transform_name
720prefix
721exec_prefix
722PACKAGE_URL
723PACKAGE_BUGREPORT
724PACKAGE_STRING
725PACKAGE_VERSION
726PACKAGE_TARNAME
727PACKAGE_NAME
728PATH_SEPARATOR
729SHELL'
730ac_subst_files=''
731ac_user_opts='
732enable_option_checking
733with_cflags
734with_libs
735enable_largefile
736with_gnu_ld
737enable_rpath
738with_libiconv_prefix
739enable_pcre
740enable_warnings
741enable_docs
742enable_drafts
743with_suffix
744enable_suffix
745with_defaults
746with_malloc
747enable_assertions
748enable_pam
749enable_debug
750enable_localtime
751enable_mutex_stats
752enable_cookies
753enable_keepalive
754enable_start_stop_daemon
755enable_wap
756enable_sms
757with_ssl
758enable_ssl
759enable_ssl_thread_test
760with_mysql
761with_mysql_dir
762with_sdb
763with_sqlite2
764with_sqlite3
765with_oracle
766with_oracle_includes
767with_oracle_libs
768with_pgsql
769with_pgsql_dir
770with_redis
771with_redis_dir
772with_mssql
773with_wtls
774with_gsoap
775'
776      ac_precious_vars='build_alias
777host_alias
778target_alias
779CC
780CFLAGS
781LDFLAGS
782LIBS
783CPPFLAGS
784YACC
785YFLAGS
786CPP'
787
788
789# Initialize some variables set by options.
790ac_init_help=
791ac_init_version=false
792ac_unrecognized_opts=
793ac_unrecognized_sep=
794# The variables have the same names as the options, with
795# dashes changed to underlines.
796cache_file=/dev/null
797exec_prefix=NONE
798no_create=
799no_recursion=
800prefix=NONE
801program_prefix=NONE
802program_suffix=NONE
803program_transform_name=s,x,x,
804silent=
805site=
806srcdir=
807verbose=
808x_includes=NONE
809x_libraries=NONE
810
811# Installation directory options.
812# These are left unexpanded so users can "make install exec_prefix=/foo"
813# and all the variables that are supposed to be based on exec_prefix
814# by default will actually change.
815# Use braces instead of parens because sh, perl, etc. also accept them.
816# (The list follows the same order as the GNU Coding Standards.)
817bindir='${exec_prefix}/bin'
818sbindir='${exec_prefix}/sbin'
819libexecdir='${exec_prefix}/libexec'
820datarootdir='${prefix}/share'
821datadir='${datarootdir}'
822sysconfdir='${prefix}/etc'
823sharedstatedir='${prefix}/com'
824localstatedir='${prefix}/var'
825includedir='${prefix}/include'
826oldincludedir='/usr/include'
827docdir='${datarootdir}/doc/${PACKAGE}'
828infodir='${datarootdir}/info'
829htmldir='${docdir}'
830dvidir='${docdir}'
831pdfdir='${docdir}'
832psdir='${docdir}'
833libdir='${exec_prefix}/lib'
834localedir='${datarootdir}/locale'
835mandir='${datarootdir}/man'
836
837ac_prev=
838ac_dashdash=
839for ac_option
840do
841  # If the previous option needs an argument, assign it.
842  if test -n "$ac_prev"; then
843    eval $ac_prev=\$ac_option
844    ac_prev=
845    continue
846  fi
847
848  case $ac_option in
849  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850  *=)   ac_optarg= ;;
851  *)    ac_optarg=yes ;;
852  esac
853
854  # Accept the important Cygnus configure options, so we can diagnose typos.
855
856  case $ac_dashdash$ac_option in
857  --)
858    ac_dashdash=yes ;;
859
860  -bindir | --bindir | --bindi | --bind | --bin | --bi)
861    ac_prev=bindir ;;
862  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863    bindir=$ac_optarg ;;
864
865  -build | --build | --buil | --bui | --bu)
866    ac_prev=build_alias ;;
867  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868    build_alias=$ac_optarg ;;
869
870  -cache-file | --cache-file | --cache-fil | --cache-fi \
871  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872    ac_prev=cache_file ;;
873  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875    cache_file=$ac_optarg ;;
876
877  --config-cache | -C)
878    cache_file=config.cache ;;
879
880  -datadir | --datadir | --datadi | --datad)
881    ac_prev=datadir ;;
882  -datadir=* | --datadir=* | --datadi=* | --datad=*)
883    datadir=$ac_optarg ;;
884
885  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886  | --dataroo | --dataro | --datar)
887    ac_prev=datarootdir ;;
888  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890    datarootdir=$ac_optarg ;;
891
892  -disable-* | --disable-*)
893    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894    # Reject names that are not valid shell variable names.
895    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896      as_fn_error $? "invalid feature name: $ac_useropt"
897    ac_useropt_orig=$ac_useropt
898    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899    case $ac_user_opts in
900      *"
901"enable_$ac_useropt"
902"*) ;;
903      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904	 ac_unrecognized_sep=', ';;
905    esac
906    eval enable_$ac_useropt=no ;;
907
908  -docdir | --docdir | --docdi | --doc | --do)
909    ac_prev=docdir ;;
910  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911    docdir=$ac_optarg ;;
912
913  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914    ac_prev=dvidir ;;
915  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916    dvidir=$ac_optarg ;;
917
918  -enable-* | --enable-*)
919    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920    # Reject names that are not valid shell variable names.
921    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922      as_fn_error $? "invalid feature name: $ac_useropt"
923    ac_useropt_orig=$ac_useropt
924    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925    case $ac_user_opts in
926      *"
927"enable_$ac_useropt"
928"*) ;;
929      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930	 ac_unrecognized_sep=', ';;
931    esac
932    eval enable_$ac_useropt=\$ac_optarg ;;
933
934  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936  | --exec | --exe | --ex)
937    ac_prev=exec_prefix ;;
938  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940  | --exec=* | --exe=* | --ex=*)
941    exec_prefix=$ac_optarg ;;
942
943  -gas | --gas | --ga | --g)
944    # Obsolete; use --with-gas.
945    with_gas=yes ;;
946
947  -help | --help | --hel | --he | -h)
948    ac_init_help=long ;;
949  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950    ac_init_help=recursive ;;
951  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952    ac_init_help=short ;;
953
954  -host | --host | --hos | --ho)
955    ac_prev=host_alias ;;
956  -host=* | --host=* | --hos=* | --ho=*)
957    host_alias=$ac_optarg ;;
958
959  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960    ac_prev=htmldir ;;
961  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962  | --ht=*)
963    htmldir=$ac_optarg ;;
964
965  -includedir | --includedir | --includedi | --included | --include \
966  | --includ | --inclu | --incl | --inc)
967    ac_prev=includedir ;;
968  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969  | --includ=* | --inclu=* | --incl=* | --inc=*)
970    includedir=$ac_optarg ;;
971
972  -infodir | --infodir | --infodi | --infod | --info | --inf)
973    ac_prev=infodir ;;
974  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975    infodir=$ac_optarg ;;
976
977  -libdir | --libdir | --libdi | --libd)
978    ac_prev=libdir ;;
979  -libdir=* | --libdir=* | --libdi=* | --libd=*)
980    libdir=$ac_optarg ;;
981
982  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983  | --libexe | --libex | --libe)
984    ac_prev=libexecdir ;;
985  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986  | --libexe=* | --libex=* | --libe=*)
987    libexecdir=$ac_optarg ;;
988
989  -localedir | --localedir | --localedi | --localed | --locale)
990    ac_prev=localedir ;;
991  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992    localedir=$ac_optarg ;;
993
994  -localstatedir | --localstatedir | --localstatedi | --localstated \
995  | --localstate | --localstat | --localsta | --localst | --locals)
996    ac_prev=localstatedir ;;
997  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999    localstatedir=$ac_optarg ;;
1000
1001  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002    ac_prev=mandir ;;
1003  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004    mandir=$ac_optarg ;;
1005
1006  -nfp | --nfp | --nf)
1007    # Obsolete; use --without-fp.
1008    with_fp=no ;;
1009
1010  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011  | --no-cr | --no-c | -n)
1012    no_create=yes ;;
1013
1014  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016    no_recursion=yes ;;
1017
1018  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020  | --oldin | --oldi | --old | --ol | --o)
1021    ac_prev=oldincludedir ;;
1022  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025    oldincludedir=$ac_optarg ;;
1026
1027  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028    ac_prev=prefix ;;
1029  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030    prefix=$ac_optarg ;;
1031
1032  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033  | --program-pre | --program-pr | --program-p)
1034    ac_prev=program_prefix ;;
1035  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037    program_prefix=$ac_optarg ;;
1038
1039  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040  | --program-suf | --program-su | --program-s)
1041    ac_prev=program_suffix ;;
1042  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044    program_suffix=$ac_optarg ;;
1045
1046  -program-transform-name | --program-transform-name \
1047  | --program-transform-nam | --program-transform-na \
1048  | --program-transform-n | --program-transform- \
1049  | --program-transform | --program-transfor \
1050  | --program-transfo | --program-transf \
1051  | --program-trans | --program-tran \
1052  | --progr-tra | --program-tr | --program-t)
1053    ac_prev=program_transform_name ;;
1054  -program-transform-name=* | --program-transform-name=* \
1055  | --program-transform-nam=* | --program-transform-na=* \
1056  | --program-transform-n=* | --program-transform-=* \
1057  | --program-transform=* | --program-transfor=* \
1058  | --program-transfo=* | --program-transf=* \
1059  | --program-trans=* | --program-tran=* \
1060  | --progr-tra=* | --program-tr=* | --program-t=*)
1061    program_transform_name=$ac_optarg ;;
1062
1063  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064    ac_prev=pdfdir ;;
1065  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066    pdfdir=$ac_optarg ;;
1067
1068  -psdir | --psdir | --psdi | --psd | --ps)
1069    ac_prev=psdir ;;
1070  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071    psdir=$ac_optarg ;;
1072
1073  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074  | -silent | --silent | --silen | --sile | --sil)
1075    silent=yes ;;
1076
1077  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078    ac_prev=sbindir ;;
1079  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080  | --sbi=* | --sb=*)
1081    sbindir=$ac_optarg ;;
1082
1083  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085  | --sharedst | --shareds | --shared | --share | --shar \
1086  | --sha | --sh)
1087    ac_prev=sharedstatedir ;;
1088  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091  | --sha=* | --sh=*)
1092    sharedstatedir=$ac_optarg ;;
1093
1094  -site | --site | --sit)
1095    ac_prev=site ;;
1096  -site=* | --site=* | --sit=*)
1097    site=$ac_optarg ;;
1098
1099  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100    ac_prev=srcdir ;;
1101  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102    srcdir=$ac_optarg ;;
1103
1104  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105  | --syscon | --sysco | --sysc | --sys | --sy)
1106    ac_prev=sysconfdir ;;
1107  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109    sysconfdir=$ac_optarg ;;
1110
1111  -target | --target | --targe | --targ | --tar | --ta | --t)
1112    ac_prev=target_alias ;;
1113  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114    target_alias=$ac_optarg ;;
1115
1116  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117    verbose=yes ;;
1118
1119  -version | --version | --versio | --versi | --vers | -V)
1120    ac_init_version=: ;;
1121
1122  -with-* | --with-*)
1123    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124    # Reject names that are not valid shell variable names.
1125    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126      as_fn_error $? "invalid package name: $ac_useropt"
1127    ac_useropt_orig=$ac_useropt
1128    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129    case $ac_user_opts in
1130      *"
1131"with_$ac_useropt"
1132"*) ;;
1133      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134	 ac_unrecognized_sep=', ';;
1135    esac
1136    eval with_$ac_useropt=\$ac_optarg ;;
1137
1138  -without-* | --without-*)
1139    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140    # Reject names that are not valid shell variable names.
1141    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142      as_fn_error $? "invalid package name: $ac_useropt"
1143    ac_useropt_orig=$ac_useropt
1144    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145    case $ac_user_opts in
1146      *"
1147"with_$ac_useropt"
1148"*) ;;
1149      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150	 ac_unrecognized_sep=', ';;
1151    esac
1152    eval with_$ac_useropt=no ;;
1153
1154  --x)
1155    # Obsolete; use --with-x.
1156    with_x=yes ;;
1157
1158  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159  | --x-incl | --x-inc | --x-in | --x-i)
1160    ac_prev=x_includes ;;
1161  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163    x_includes=$ac_optarg ;;
1164
1165  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167    ac_prev=x_libraries ;;
1168  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170    x_libraries=$ac_optarg ;;
1171
1172  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173Try \`$0 --help' for more information"
1174    ;;
1175
1176  *=*)
1177    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178    # Reject names that are not valid shell variable names.
1179    case $ac_envvar in #(
1180      '' | [0-9]* | *[!_$as_cr_alnum]* )
1181      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182    esac
1183    eval $ac_envvar=\$ac_optarg
1184    export $ac_envvar ;;
1185
1186  *)
1187    # FIXME: should be removed in autoconf 3.0.
1188    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192    ;;
1193
1194  esac
1195done
1196
1197if test -n "$ac_prev"; then
1198  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199  as_fn_error $? "missing argument to $ac_option"
1200fi
1201
1202if test -n "$ac_unrecognized_opts"; then
1203  case $enable_option_checking in
1204    no) ;;
1205    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207  esac
1208fi
1209
1210# Check all directory arguments for consistency.
1211for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212		datadir sysconfdir sharedstatedir localstatedir includedir \
1213		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214		libdir localedir mandir
1215do
1216  eval ac_val=\$$ac_var
1217  # Remove trailing slashes.
1218  case $ac_val in
1219    */ )
1220      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221      eval $ac_var=\$ac_val;;
1222  esac
1223  # Be sure to have absolute directory names.
1224  case $ac_val in
1225    [\\/$]* | ?:[\\/]* )  continue;;
1226    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227  esac
1228  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229done
1230
1231# There might be people who depend on the old broken behavior: `$host'
1232# used to hold the argument of --host etc.
1233# FIXME: To remove some day.
1234build=$build_alias
1235host=$host_alias
1236target=$target_alias
1237
1238# FIXME: To remove some day.
1239if test "x$host_alias" != x; then
1240  if test "x$build_alias" = x; then
1241    cross_compiling=maybe
1242  elif test "x$build_alias" != "x$host_alias"; then
1243    cross_compiling=yes
1244  fi
1245fi
1246
1247ac_tool_prefix=
1248test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250test "$silent" = yes && exec 6>/dev/null
1251
1252
1253ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254ac_ls_di=`ls -di .` &&
1255ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256  as_fn_error $? "working directory cannot be determined"
1257test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258  as_fn_error $? "pwd does not report name of working directory"
1259
1260
1261# Find the source files, if location was not specified.
1262if test -z "$srcdir"; then
1263  ac_srcdir_defaulted=yes
1264  # Try the directory containing this script, then the parent directory.
1265  ac_confdir=`$as_dirname -- "$as_myself" ||
1266$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267	 X"$as_myself" : 'X\(//\)[^/]' \| \
1268	 X"$as_myself" : 'X\(//\)$' \| \
1269	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270$as_echo X"$as_myself" |
1271    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272	    s//\1/
1273	    q
1274	  }
1275	  /^X\(\/\/\)[^/].*/{
1276	    s//\1/
1277	    q
1278	  }
1279	  /^X\(\/\/\)$/{
1280	    s//\1/
1281	    q
1282	  }
1283	  /^X\(\/\).*/{
1284	    s//\1/
1285	    q
1286	  }
1287	  s/.*/./; q'`
1288  srcdir=$ac_confdir
1289  if test ! -r "$srcdir/$ac_unique_file"; then
1290    srcdir=..
1291  fi
1292else
1293  ac_srcdir_defaulted=no
1294fi
1295if test ! -r "$srcdir/$ac_unique_file"; then
1296  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298fi
1299ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300ac_abs_confdir=`(
1301	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302	pwd)`
1303# When building in place, set srcdir=.
1304if test "$ac_abs_confdir" = "$ac_pwd"; then
1305  srcdir=.
1306fi
1307# Remove unnecessary trailing slashes from srcdir.
1308# Double slashes in file names in object file debugging info
1309# mess up M-x gdb in Emacs.
1310case $srcdir in
1311*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312esac
1313for ac_var in $ac_precious_vars; do
1314  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315  eval ac_env_${ac_var}_value=\$${ac_var}
1316  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318done
1319
1320#
1321# Report the --help message.
1322#
1323if test "$ac_init_help" = "long"; then
1324  # Omit some internal or obsolete options to make the list less imposing.
1325  # This message is too long to be a string in the A/UX 3.1 sh.
1326  cat <<_ACEOF
1327\`configure' configures this package to adapt to many kinds of systems.
1328
1329Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332VAR=VALUE.  See below for descriptions of some of the useful variables.
1333
1334Defaults for the options are specified in brackets.
1335
1336Configuration:
1337  -h, --help              display this help and exit
1338      --help=short        display options specific to this package
1339      --help=recursive    display the short help of all the included packages
1340  -V, --version           display version information and exit
1341  -q, --quiet, --silent   do not print \`checking ...' messages
1342      --cache-file=FILE   cache test results in FILE [disabled]
1343  -C, --config-cache      alias for \`--cache-file=config.cache'
1344  -n, --no-create         do not create output files
1345      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1346
1347Installation directories:
1348  --prefix=PREFIX         install architecture-independent files in PREFIX
1349                          [$ac_default_prefix]
1350  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1351                          [PREFIX]
1352
1353By default, \`make install' will install all the files in
1354\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1355an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356for instance \`--prefix=\$HOME'.
1357
1358For better control, use the options below.
1359
1360Fine tuning of the installation directories:
1361  --bindir=DIR            user executables [EPREFIX/bin]
1362  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1363  --libexecdir=DIR        program executables [EPREFIX/libexec]
1364  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1365  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1366  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1367  --libdir=DIR            object code libraries [EPREFIX/lib]
1368  --includedir=DIR        C header files [PREFIX/include]
1369  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1370  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1371  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1372  --infodir=DIR           info documentation [DATAROOTDIR/info]
1373  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1374  --mandir=DIR            man documentation [DATAROOTDIR/man]
1375  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1376  --htmldir=DIR           html documentation [DOCDIR]
1377  --dvidir=DIR            dvi documentation [DOCDIR]
1378  --pdfdir=DIR            pdf documentation [DOCDIR]
1379  --psdir=DIR             ps documentation [DOCDIR]
1380_ACEOF
1381
1382  cat <<\_ACEOF
1383
1384System types:
1385  --build=BUILD     configure for building on BUILD [guessed]
1386  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1387_ACEOF
1388fi
1389
1390if test -n "$ac_init_help"; then
1391
1392  cat <<\_ACEOF
1393
1394Optional Features:
1395  --disable-option-checking  ignore unrecognized --enable/--with options
1396  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1397  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1398  --disable-largefile     omit support for large files
1399  --disable-rpath         do not hardcode runtime library paths
1400  --enable-pcre           enable PCRE regex support [disabled]
1401  --enable-warnings       enable compilation warnings [disabled]
1402  --enable-docs           enable building of documentation [enabled]
1403  --enable-drafts         enable building of documentation drafts [disabled]
1404  --enable-suffix         enable suffix for binaries [disabled]
1405  --disable-assertions    turn off assertion checking
1406  --enable-pam	          enable PAM authentication [disabled]
1407  --enable-debug	  enable non-reentrant debugging for wmls compiler [disabled]
1408  --enable-localtime	  log file time stamps in local time, not GMT [enabled]
1409  --enable-mutex-stats    produce information about lock contention
1410  --disable-cookies       disable cookie support for WSP [enabled]
1411  --disable-keepalive     disable HTTP/1.1 keep-alive support [enabled]
1412  --enable-start-stop-daemon  compile the start-stop-daemon program [disabled]
1413  --disable-wap           disables WAP gateway parts in bearerbox
1414  --disable-sms           disables SMS gateway parts in bearerbox
1415  --enable-ssl            enable SSL client and server support [enabled]
1416  --disable-ssl-thread-test  disable the multithread test for the OpenSSL library
1417                          this will force to continue even if the test fails
1418
1419Optional Packages:
1420  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1421  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1422  --with-cflags=FLAGS     use FLAGS for CFLAGS
1423  --with-libs=FLAGS       use FLAGS for extra libraries
1424  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1425  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1426  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1427  --with-suffix=VERSION   set suffix for binaries [foobox-VERSION]
1428  --with-defaults=OPTION  set default configure options: speed/debug [speed]
1429                          this will set assertion checking and malloc wrapper accordingly
1430			    speed = native malloc + no assertions
1431			    debug = checking malloc + assertions
1432  --with-malloc=OPTION    select malloc wrapper to use: native/check/slow [native]
1433  --with-ssl=DIR          where to look for OpenSSL libs and header files
1434                          DIR points to the installation [/usr/local/ssl]
1435  --with-mysql            enable MySQL storage [disabled]
1436  --with-mysql-dir=DIR    where to look for MySQL libs and header files
1437                          DIR points to the installation [/usr/local/mysql]
1438  --with-sdb              enable LibSDB storage [disabled]
1439  --with-sqlite2          enable SQLite2 storage [disabled]
1440  --with-sqlite3          enable SQLite3 storage [disabled]
1441  --with-oracle           enable ORACLE storage [disabled]
1442  --with-oracle-includes=DIR  adds oracle include paths
1443  --with-oracle-libs=DIR  adds oracle library path
1444  --with-pgsql            enable PostgreSQL storage [disabled]
1445  --with-pgsql-dir=DIR    where to look for PostgreSQL libs and header files
1446                          DIR points to the installation [/usr/local/pgsql]
1447  --with-redis            enable Redis storage [disabled]
1448  --with-redis-dir=DIR    where to look for Redis libs and header files
1449                          DIR points to the installation [/usr/local/redis]
1450  --with-mssql=DIR        enable FreeTDS Ct-Lib storage support [disabled]
1451                          DIR points to the installation [/usr/local]
1452  --with-wtls[=TYPE]      select WTLS version to use: [openssl|baltimore]
1453  --with-gsoap[=DIR]      enable gSOAP web services SMSC module support [disabled]
1454                          DIR points to the gSOAP share directory [/usr/share/gsoap]
1455
1456Some influential environment variables:
1457  CC          C compiler command
1458  CFLAGS      C compiler flags
1459  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1460              nonstandard directory <lib dir>
1461  LIBS        libraries to pass to the linker, e.g. -l<library>
1462  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1463              you have headers in a nonstandard directory <include dir>
1464  YACC        The `Yet Another Compiler Compiler' implementation to use.
1465              Defaults to the first program found out of: `bison -y', `byacc',
1466              `yacc'.
1467  YFLAGS      The list of arguments that will be passed by default to $YACC.
1468              This script will default YFLAGS to the empty string to avoid a
1469              default value of `-d' given by some make applications.
1470  CPP         C preprocessor
1471
1472Use these variables to override the choices made by `configure' or to help
1473it to find libraries and programs with nonstandard names/locations.
1474
1475Report bugs to the package provider.
1476_ACEOF
1477ac_status=$?
1478fi
1479
1480if test "$ac_init_help" = "recursive"; then
1481  # If there are subdirs, report their specific --help.
1482  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483    test -d "$ac_dir" ||
1484      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485      continue
1486    ac_builddir=.
1487
1488case "$ac_dir" in
1489.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490*)
1491  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492  # A ".." for each directory in $ac_dir_suffix.
1493  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494  case $ac_top_builddir_sub in
1495  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497  esac ;;
1498esac
1499ac_abs_top_builddir=$ac_pwd
1500ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501# for backward compatibility:
1502ac_top_builddir=$ac_top_build_prefix
1503
1504case $srcdir in
1505  .)  # We are building in place.
1506    ac_srcdir=.
1507    ac_top_srcdir=$ac_top_builddir_sub
1508    ac_abs_top_srcdir=$ac_pwd ;;
1509  [\\/]* | ?:[\\/]* )  # Absolute name.
1510    ac_srcdir=$srcdir$ac_dir_suffix;
1511    ac_top_srcdir=$srcdir
1512    ac_abs_top_srcdir=$srcdir ;;
1513  *) # Relative name.
1514    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515    ac_top_srcdir=$ac_top_build_prefix$srcdir
1516    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517esac
1518ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520    cd "$ac_dir" || { ac_status=$?; continue; }
1521    # Check for guested configure.
1522    if test -f "$ac_srcdir/configure.gnu"; then
1523      echo &&
1524      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525    elif test -f "$ac_srcdir/configure"; then
1526      echo &&
1527      $SHELL "$ac_srcdir/configure" --help=recursive
1528    else
1529      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530    fi || ac_status=$?
1531    cd "$ac_pwd" || { ac_status=$?; break; }
1532  done
1533fi
1534
1535test -n "$ac_init_help" && exit $ac_status
1536if $ac_init_version; then
1537  cat <<\_ACEOF
1538configure
1539generated by GNU Autoconf 2.69
1540
1541Copyright (C) 2012 Free Software Foundation, Inc.
1542This configure script is free software; the Free Software Foundation
1543gives unlimited permission to copy, distribute and modify it.
1544_ACEOF
1545  exit
1546fi
1547
1548## ------------------------ ##
1549## Autoconf initialization. ##
1550## ------------------------ ##
1551
1552# ac_fn_c_try_compile LINENO
1553# --------------------------
1554# Try to compile conftest.$ac_ext, and return whether this succeeded.
1555ac_fn_c_try_compile ()
1556{
1557  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558  rm -f conftest.$ac_objext
1559  if { { ac_try="$ac_compile"
1560case "(($ac_try" in
1561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562  *) ac_try_echo=$ac_try;;
1563esac
1564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565$as_echo "$ac_try_echo"; } >&5
1566  (eval "$ac_compile") 2>conftest.err
1567  ac_status=$?
1568  if test -s conftest.err; then
1569    grep -v '^ *+' conftest.err >conftest.er1
1570    cat conftest.er1 >&5
1571    mv -f conftest.er1 conftest.err
1572  fi
1573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574  test $ac_status = 0; } && {
1575	 test -z "$ac_c_werror_flag" ||
1576	 test ! -s conftest.err
1577       } && test -s conftest.$ac_objext; then :
1578  ac_retval=0
1579else
1580  $as_echo "$as_me: failed program was:" >&5
1581sed 's/^/| /' conftest.$ac_ext >&5
1582
1583	ac_retval=1
1584fi
1585  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586  as_fn_set_status $ac_retval
1587
1588} # ac_fn_c_try_compile
1589
1590# ac_fn_c_try_link LINENO
1591# -----------------------
1592# Try to link conftest.$ac_ext, and return whether this succeeded.
1593ac_fn_c_try_link ()
1594{
1595  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596  rm -f conftest.$ac_objext conftest$ac_exeext
1597  if { { ac_try="$ac_link"
1598case "(($ac_try" in
1599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600  *) ac_try_echo=$ac_try;;
1601esac
1602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603$as_echo "$ac_try_echo"; } >&5
1604  (eval "$ac_link") 2>conftest.err
1605  ac_status=$?
1606  if test -s conftest.err; then
1607    grep -v '^ *+' conftest.err >conftest.er1
1608    cat conftest.er1 >&5
1609    mv -f conftest.er1 conftest.err
1610  fi
1611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612  test $ac_status = 0; } && {
1613	 test -z "$ac_c_werror_flag" ||
1614	 test ! -s conftest.err
1615       } && test -s conftest$ac_exeext && {
1616	 test "$cross_compiling" = yes ||
1617	 test -x conftest$ac_exeext
1618       }; then :
1619  ac_retval=0
1620else
1621  $as_echo "$as_me: failed program was:" >&5
1622sed 's/^/| /' conftest.$ac_ext >&5
1623
1624	ac_retval=1
1625fi
1626  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1627  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1628  # interfere with the next link command; also delete a directory that is
1629  # left behind by Apple's compiler.  We do this before executing the actions.
1630  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1631  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632  as_fn_set_status $ac_retval
1633
1634} # ac_fn_c_try_link
1635
1636# ac_fn_c_try_run LINENO
1637# ----------------------
1638# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1639# that executables *can* be run.
1640ac_fn_c_try_run ()
1641{
1642  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643  if { { ac_try="$ac_link"
1644case "(($ac_try" in
1645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646  *) ac_try_echo=$ac_try;;
1647esac
1648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649$as_echo "$ac_try_echo"; } >&5
1650  (eval "$ac_link") 2>&5
1651  ac_status=$?
1652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1654  { { case "(($ac_try" in
1655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656  *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660  (eval "$ac_try") 2>&5
1661  ac_status=$?
1662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663  test $ac_status = 0; }; }; then :
1664  ac_retval=0
1665else
1666  $as_echo "$as_me: program exited with status $ac_status" >&5
1667       $as_echo "$as_me: failed program was:" >&5
1668sed 's/^/| /' conftest.$ac_ext >&5
1669
1670       ac_retval=$ac_status
1671fi
1672  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1673  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674  as_fn_set_status $ac_retval
1675
1676} # ac_fn_c_try_run
1677
1678# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1679# --------------------------------------------
1680# Tries to find the compile-time value of EXPR in a program that includes
1681# INCLUDES, setting VAR accordingly. Returns whether the value could be
1682# computed
1683ac_fn_c_compute_int ()
1684{
1685  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686  if test "$cross_compiling" = yes; then
1687    # Depending upon the size, compute the lo and hi bounds.
1688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689/* end confdefs.h.  */
1690$4
1691int
1692main ()
1693{
1694static int test_array [1 - 2 * !(($2) >= 0)];
1695test_array [0] = 0;
1696return test_array [0];
1697
1698  ;
1699  return 0;
1700}
1701_ACEOF
1702if ac_fn_c_try_compile "$LINENO"; then :
1703  ac_lo=0 ac_mid=0
1704  while :; do
1705    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706/* end confdefs.h.  */
1707$4
1708int
1709main ()
1710{
1711static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1712test_array [0] = 0;
1713return test_array [0];
1714
1715  ;
1716  return 0;
1717}
1718_ACEOF
1719if ac_fn_c_try_compile "$LINENO"; then :
1720  ac_hi=$ac_mid; break
1721else
1722  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1723			if test $ac_lo -le $ac_mid; then
1724			  ac_lo= ac_hi=
1725			  break
1726			fi
1727			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1728fi
1729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1730  done
1731else
1732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733/* end confdefs.h.  */
1734$4
1735int
1736main ()
1737{
1738static int test_array [1 - 2 * !(($2) < 0)];
1739test_array [0] = 0;
1740return test_array [0];
1741
1742  ;
1743  return 0;
1744}
1745_ACEOF
1746if ac_fn_c_try_compile "$LINENO"; then :
1747  ac_hi=-1 ac_mid=-1
1748  while :; do
1749    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750/* end confdefs.h.  */
1751$4
1752int
1753main ()
1754{
1755static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1756test_array [0] = 0;
1757return test_array [0];
1758
1759  ;
1760  return 0;
1761}
1762_ACEOF
1763if ac_fn_c_try_compile "$LINENO"; then :
1764  ac_lo=$ac_mid; break
1765else
1766  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1767			if test $ac_mid -le $ac_hi; then
1768			  ac_lo= ac_hi=
1769			  break
1770			fi
1771			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1772fi
1773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774  done
1775else
1776  ac_lo= ac_hi=
1777fi
1778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779fi
1780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1781# Binary search between lo and hi bounds.
1782while test "x$ac_lo" != "x$ac_hi"; do
1783  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785/* end confdefs.h.  */
1786$4
1787int
1788main ()
1789{
1790static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1791test_array [0] = 0;
1792return test_array [0];
1793
1794  ;
1795  return 0;
1796}
1797_ACEOF
1798if ac_fn_c_try_compile "$LINENO"; then :
1799  ac_hi=$ac_mid
1800else
1801  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1802fi
1803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804done
1805case $ac_lo in #((
1806?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1807'') ac_retval=1 ;;
1808esac
1809  else
1810    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811/* end confdefs.h.  */
1812$4
1813static long int longval () { return $2; }
1814static unsigned long int ulongval () { return $2; }
1815#include <stdio.h>
1816#include <stdlib.h>
1817int
1818main ()
1819{
1820
1821  FILE *f = fopen ("conftest.val", "w");
1822  if (! f)
1823    return 1;
1824  if (($2) < 0)
1825    {
1826      long int i = longval ();
1827      if (i != ($2))
1828	return 1;
1829      fprintf (f, "%ld", i);
1830    }
1831  else
1832    {
1833      unsigned long int i = ulongval ();
1834      if (i != ($2))
1835	return 1;
1836      fprintf (f, "%lu", i);
1837    }
1838  /* Do not output a trailing newline, as this causes \r\n confusion
1839     on some platforms.  */
1840  return ferror (f) || fclose (f) != 0;
1841
1842  ;
1843  return 0;
1844}
1845_ACEOF
1846if ac_fn_c_try_run "$LINENO"; then :
1847  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1848else
1849  ac_retval=1
1850fi
1851rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1852  conftest.$ac_objext conftest.beam conftest.$ac_ext
1853rm -f conftest.val
1854
1855  fi
1856  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857  as_fn_set_status $ac_retval
1858
1859} # ac_fn_c_compute_int
1860
1861# ac_fn_c_try_cpp LINENO
1862# ----------------------
1863# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1864ac_fn_c_try_cpp ()
1865{
1866  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867  if { { ac_try="$ac_cpp conftest.$ac_ext"
1868case "(($ac_try" in
1869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870  *) ac_try_echo=$ac_try;;
1871esac
1872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873$as_echo "$ac_try_echo"; } >&5
1874  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1875  ac_status=$?
1876  if test -s conftest.err; then
1877    grep -v '^ *+' conftest.err >conftest.er1
1878    cat conftest.er1 >&5
1879    mv -f conftest.er1 conftest.err
1880  fi
1881  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882  test $ac_status = 0; } > conftest.i && {
1883	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1884	 test ! -s conftest.err
1885       }; then :
1886  ac_retval=0
1887else
1888  $as_echo "$as_me: failed program was:" >&5
1889sed 's/^/| /' conftest.$ac_ext >&5
1890
1891    ac_retval=1
1892fi
1893  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894  as_fn_set_status $ac_retval
1895
1896} # ac_fn_c_try_cpp
1897
1898# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1899# -------------------------------------------------------
1900# Tests whether HEADER exists and can be compiled using the include files in
1901# INCLUDES, setting the cache variable VAR accordingly.
1902ac_fn_c_check_header_compile ()
1903{
1904  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906$as_echo_n "checking for $2... " >&6; }
1907if eval \${$3+:} false; then :
1908  $as_echo_n "(cached) " >&6
1909else
1910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911/* end confdefs.h.  */
1912$4
1913#include <$2>
1914_ACEOF
1915if ac_fn_c_try_compile "$LINENO"; then :
1916  eval "$3=yes"
1917else
1918  eval "$3=no"
1919fi
1920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921fi
1922eval ac_res=\$$3
1923	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924$as_echo "$ac_res" >&6; }
1925  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926
1927} # ac_fn_c_check_header_compile
1928
1929# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1930# -------------------------------------------------------
1931# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1932# the include files in INCLUDES and setting the cache variable VAR
1933# accordingly.
1934ac_fn_c_check_header_mongrel ()
1935{
1936  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937  if eval \${$3+:} false; then :
1938  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939$as_echo_n "checking for $2... " >&6; }
1940if eval \${$3+:} false; then :
1941  $as_echo_n "(cached) " >&6
1942fi
1943eval ac_res=\$$3
1944	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945$as_echo "$ac_res" >&6; }
1946else
1947  # Is the header compilable?
1948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1949$as_echo_n "checking $2 usability... " >&6; }
1950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951/* end confdefs.h.  */
1952$4
1953#include <$2>
1954_ACEOF
1955if ac_fn_c_try_compile "$LINENO"; then :
1956  ac_header_compiler=yes
1957else
1958  ac_header_compiler=no
1959fi
1960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1962$as_echo "$ac_header_compiler" >&6; }
1963
1964# Is the header present?
1965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1966$as_echo_n "checking $2 presence... " >&6; }
1967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968/* end confdefs.h.  */
1969#include <$2>
1970_ACEOF
1971if ac_fn_c_try_cpp "$LINENO"; then :
1972  ac_header_preproc=yes
1973else
1974  ac_header_preproc=no
1975fi
1976rm -f conftest.err conftest.i conftest.$ac_ext
1977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1978$as_echo "$ac_header_preproc" >&6; }
1979
1980# So?  What about this header?
1981case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1982  yes:no: )
1983    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1984$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1985    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1986$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1987    ;;
1988  no:yes:* )
1989    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1990$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1991    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1992$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1993    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1994$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1995    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1996$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1997    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1998$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1999    ;;
2000esac
2001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002$as_echo_n "checking for $2... " >&6; }
2003if eval \${$3+:} false; then :
2004  $as_echo_n "(cached) " >&6
2005else
2006  eval "$3=\$ac_header_compiler"
2007fi
2008eval ac_res=\$$3
2009	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010$as_echo "$ac_res" >&6; }
2011fi
2012  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013
2014} # ac_fn_c_check_header_mongrel
2015
2016# ac_fn_c_check_func LINENO FUNC VAR
2017# ----------------------------------
2018# Tests whether FUNC exists, setting the cache variable VAR accordingly
2019ac_fn_c_check_func ()
2020{
2021  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023$as_echo_n "checking for $2... " >&6; }
2024if eval \${$3+:} false; then :
2025  $as_echo_n "(cached) " >&6
2026else
2027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028/* end confdefs.h.  */
2029/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2030   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2031#define $2 innocuous_$2
2032
2033/* System header to define __stub macros and hopefully few prototypes,
2034    which can conflict with char $2 (); below.
2035    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2036    <limits.h> exists even on freestanding compilers.  */
2037
2038#ifdef __STDC__
2039# include <limits.h>
2040#else
2041# include <assert.h>
2042#endif
2043
2044#undef $2
2045
2046/* Override any GCC internal prototype to avoid an error.
2047   Use char because int might match the return type of a GCC
2048   builtin and then its argument prototype would still apply.  */
2049#ifdef __cplusplus
2050extern "C"
2051#endif
2052char $2 ();
2053/* The GNU C library defines this for functions which it implements
2054    to always fail with ENOSYS.  Some functions are actually named
2055    something starting with __ and the normal name is an alias.  */
2056#if defined __stub_$2 || defined __stub___$2
2057choke me
2058#endif
2059
2060int
2061main ()
2062{
2063return $2 ();
2064  ;
2065  return 0;
2066}
2067_ACEOF
2068if ac_fn_c_try_link "$LINENO"; then :
2069  eval "$3=yes"
2070else
2071  eval "$3=no"
2072fi
2073rm -f core conftest.err conftest.$ac_objext \
2074    conftest$ac_exeext conftest.$ac_ext
2075fi
2076eval ac_res=\$$3
2077	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078$as_echo "$ac_res" >&6; }
2079  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080
2081} # ac_fn_c_check_func
2082cat >config.log <<_ACEOF
2083This file contains any messages produced by compilers while
2084running configure, to aid debugging if configure makes a mistake.
2085
2086It was created by $as_me, which was
2087generated by GNU Autoconf 2.69.  Invocation command line was
2088
2089  $ $0 $@
2090
2091_ACEOF
2092exec 5>>config.log
2093{
2094cat <<_ASUNAME
2095## --------- ##
2096## Platform. ##
2097## --------- ##
2098
2099hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2100uname -m = `(uname -m) 2>/dev/null || echo unknown`
2101uname -r = `(uname -r) 2>/dev/null || echo unknown`
2102uname -s = `(uname -s) 2>/dev/null || echo unknown`
2103uname -v = `(uname -v) 2>/dev/null || echo unknown`
2104
2105/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2106/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2107
2108/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2109/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2110/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2111/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2112/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2113/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2114/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2115
2116_ASUNAME
2117
2118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119for as_dir in $PATH
2120do
2121  IFS=$as_save_IFS
2122  test -z "$as_dir" && as_dir=.
2123    $as_echo "PATH: $as_dir"
2124  done
2125IFS=$as_save_IFS
2126
2127} >&5
2128
2129cat >&5 <<_ACEOF
2130
2131
2132## ----------- ##
2133## Core tests. ##
2134## ----------- ##
2135
2136_ACEOF
2137
2138
2139# Keep a trace of the command line.
2140# Strip out --no-create and --no-recursion so they do not pile up.
2141# Strip out --silent because we don't want to record it for future runs.
2142# Also quote any args containing shell meta-characters.
2143# Make two passes to allow for proper duplicate-argument suppression.
2144ac_configure_args=
2145ac_configure_args0=
2146ac_configure_args1=
2147ac_must_keep_next=false
2148for ac_pass in 1 2
2149do
2150  for ac_arg
2151  do
2152    case $ac_arg in
2153    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2154    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2155    | -silent | --silent | --silen | --sile | --sil)
2156      continue ;;
2157    *\'*)
2158      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2159    esac
2160    case $ac_pass in
2161    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2162    2)
2163      as_fn_append ac_configure_args1 " '$ac_arg'"
2164      if test $ac_must_keep_next = true; then
2165	ac_must_keep_next=false # Got value, back to normal.
2166      else
2167	case $ac_arg in
2168	  *=* | --config-cache | -C | -disable-* | --disable-* \
2169	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2170	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2171	  | -with-* | --with-* | -without-* | --without-* | --x)
2172	    case "$ac_configure_args0 " in
2173	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2174	    esac
2175	    ;;
2176	  -* ) ac_must_keep_next=true ;;
2177	esac
2178      fi
2179      as_fn_append ac_configure_args " '$ac_arg'"
2180      ;;
2181    esac
2182  done
2183done
2184{ ac_configure_args0=; unset ac_configure_args0;}
2185{ ac_configure_args1=; unset ac_configure_args1;}
2186
2187# When interrupted or exit'd, cleanup temporary files, and complete
2188# config.log.  We remove comments because anyway the quotes in there
2189# would cause problems or look ugly.
2190# WARNING: Use '\'' to represent an apostrophe within the trap.
2191# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2192trap 'exit_status=$?
2193  # Save into config.log some information that might help in debugging.
2194  {
2195    echo
2196
2197    $as_echo "## ---------------- ##
2198## Cache variables. ##
2199## ---------------- ##"
2200    echo
2201    # The following way of writing the cache mishandles newlines in values,
2202(
2203  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2204    eval ac_val=\$$ac_var
2205    case $ac_val in #(
2206    *${as_nl}*)
2207      case $ac_var in #(
2208      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2209$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2210      esac
2211      case $ac_var in #(
2212      _ | IFS | as_nl) ;; #(
2213      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2214      *) { eval $ac_var=; unset $ac_var;} ;;
2215      esac ;;
2216    esac
2217  done
2218  (set) 2>&1 |
2219    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2220    *${as_nl}ac_space=\ *)
2221      sed -n \
2222	"s/'\''/'\''\\\\'\'''\''/g;
2223	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2224      ;; #(
2225    *)
2226      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2227      ;;
2228    esac |
2229    sort
2230)
2231    echo
2232
2233    $as_echo "## ----------------- ##
2234## Output variables. ##
2235## ----------------- ##"
2236    echo
2237    for ac_var in $ac_subst_vars
2238    do
2239      eval ac_val=\$$ac_var
2240      case $ac_val in
2241      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2242      esac
2243      $as_echo "$ac_var='\''$ac_val'\''"
2244    done | sort
2245    echo
2246
2247    if test -n "$ac_subst_files"; then
2248      $as_echo "## ------------------- ##
2249## File substitutions. ##
2250## ------------------- ##"
2251      echo
2252      for ac_var in $ac_subst_files
2253      do
2254	eval ac_val=\$$ac_var
2255	case $ac_val in
2256	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2257	esac
2258	$as_echo "$ac_var='\''$ac_val'\''"
2259      done | sort
2260      echo
2261    fi
2262
2263    if test -s confdefs.h; then
2264      $as_echo "## ----------- ##
2265## confdefs.h. ##
2266## ----------- ##"
2267      echo
2268      cat confdefs.h
2269      echo
2270    fi
2271    test "$ac_signal" != 0 &&
2272      $as_echo "$as_me: caught signal $ac_signal"
2273    $as_echo "$as_me: exit $exit_status"
2274  } >&5
2275  rm -f core *.core core.conftest.* &&
2276    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2277    exit $exit_status
2278' 0
2279for ac_signal in 1 2 13 15; do
2280  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2281done
2282ac_signal=0
2283
2284# confdefs.h avoids OS command line length limits that DEFS can exceed.
2285rm -f -r conftest* confdefs.h
2286
2287$as_echo "/* confdefs.h */" > confdefs.h
2288
2289# Predefined preprocessor variables.
2290
2291cat >>confdefs.h <<_ACEOF
2292#define PACKAGE_NAME "$PACKAGE_NAME"
2293_ACEOF
2294
2295cat >>confdefs.h <<_ACEOF
2296#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2297_ACEOF
2298
2299cat >>confdefs.h <<_ACEOF
2300#define PACKAGE_VERSION "$PACKAGE_VERSION"
2301_ACEOF
2302
2303cat >>confdefs.h <<_ACEOF
2304#define PACKAGE_STRING "$PACKAGE_STRING"
2305_ACEOF
2306
2307cat >>confdefs.h <<_ACEOF
2308#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2309_ACEOF
2310
2311cat >>confdefs.h <<_ACEOF
2312#define PACKAGE_URL "$PACKAGE_URL"
2313_ACEOF
2314
2315
2316# Let the site file select an alternate cache file if it wants to.
2317# Prefer an explicitly selected file to automatically selected ones.
2318ac_site_file1=NONE
2319ac_site_file2=NONE
2320if test -n "$CONFIG_SITE"; then
2321  # We do not want a PATH search for config.site.
2322  case $CONFIG_SITE in #((
2323    -*)  ac_site_file1=./$CONFIG_SITE;;
2324    */*) ac_site_file1=$CONFIG_SITE;;
2325    *)   ac_site_file1=./$CONFIG_SITE;;
2326  esac
2327elif test "x$prefix" != xNONE; then
2328  ac_site_file1=$prefix/share/config.site
2329  ac_site_file2=$prefix/etc/config.site
2330else
2331  ac_site_file1=$ac_default_prefix/share/config.site
2332  ac_site_file2=$ac_default_prefix/etc/config.site
2333fi
2334for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2335do
2336  test "x$ac_site_file" = xNONE && continue
2337  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2338    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2339$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2340    sed 's/^/| /' "$ac_site_file" >&5
2341    . "$ac_site_file" \
2342      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2344as_fn_error $? "failed to load site script $ac_site_file
2345See \`config.log' for more details" "$LINENO" 5; }
2346  fi
2347done
2348
2349if test -r "$cache_file"; then
2350  # Some versions of bash will fail to source /dev/null (special files
2351  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2352  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2353    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2354$as_echo "$as_me: loading cache $cache_file" >&6;}
2355    case $cache_file in
2356      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2357      *)                      . "./$cache_file";;
2358    esac
2359  fi
2360else
2361  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2362$as_echo "$as_me: creating cache $cache_file" >&6;}
2363  >$cache_file
2364fi
2365
2366# Check that the precious variables saved in the cache have kept the same
2367# value.
2368ac_cache_corrupted=false
2369for ac_var in $ac_precious_vars; do
2370  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2371  eval ac_new_set=\$ac_env_${ac_var}_set
2372  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2373  eval ac_new_val=\$ac_env_${ac_var}_value
2374  case $ac_old_set,$ac_new_set in
2375    set,)
2376      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2377$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2378      ac_cache_corrupted=: ;;
2379    ,set)
2380      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2381$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2382      ac_cache_corrupted=: ;;
2383    ,);;
2384    *)
2385      if test "x$ac_old_val" != "x$ac_new_val"; then
2386	# differences in whitespace do not lead to failure.
2387	ac_old_val_w=`echo x $ac_old_val`
2388	ac_new_val_w=`echo x $ac_new_val`
2389	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2390	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2391$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2392	  ac_cache_corrupted=:
2393	else
2394	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2395$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2396	  eval $ac_var=\$ac_old_val
2397	fi
2398	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2399$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2400	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2401$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2402      fi;;
2403  esac
2404  # Pass precious variables to config.status.
2405  if test "$ac_new_set" = set; then
2406    case $ac_new_val in
2407    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2408    *) ac_arg=$ac_var=$ac_new_val ;;
2409    esac
2410    case " $ac_configure_args " in
2411      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2412      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2413    esac
2414  fi
2415done
2416if $ac_cache_corrupted; then
2417  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2419  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2420$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2421  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2422fi
2423## -------------------- ##
2424## Main body of script. ##
2425## -------------------- ##
2426
2427ac_ext=c
2428ac_cpp='$CPP $CPPFLAGS'
2429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2431ac_compiler_gnu=$ac_cv_c_compiler_gnu
2432
2433
2434ac_config_headers="$ac_config_headers gw-config.h"
2435
2436
2437ac_aux_dir=
2438for ac_dir in . "$srcdir"/.; do
2439  if test -f "$ac_dir/install-sh"; then
2440    ac_aux_dir=$ac_dir
2441    ac_install_sh="$ac_aux_dir/install-sh -c"
2442    break
2443  elif test -f "$ac_dir/install.sh"; then
2444    ac_aux_dir=$ac_dir
2445    ac_install_sh="$ac_aux_dir/install.sh -c"
2446    break
2447  elif test -f "$ac_dir/shtool"; then
2448    ac_aux_dir=$ac_dir
2449    ac_install_sh="$ac_aux_dir/shtool install -c"
2450    break
2451  fi
2452done
2453if test -z "$ac_aux_dir"; then
2454  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2455fi
2456
2457# These three variables are undocumented and unsupported,
2458# and are intended to be withdrawn in a future Autoconf release.
2459# They can cause serious problems if a builder's source tree is in a directory
2460# whose full name contains unusual characters.
2461ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2462ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2463ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2464
2465
2466
2467  case $TERM in
2468    xterm|xterm*|vt220|vt220*|cygwin)
2469        T_MD=`echo dummy | awk '{ printf("%c%c%c%c", 27, 91, 49, 109); }'`
2470        T_ME=`echo dummy | awk '{ printf("%c%c%c", 27, 91, 109); }'`
2471        ;;
2472    vt100|vt100*)
2473        T_MD=`echo dummy | awk '{ printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }'`
2474        T_ME=`echo dummy | awk '{ printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }'`
2475        ;;
2476    default)
2477        T_MD=''
2478        T_ME=''
2479        ;;
2480  esac
2481
2482
2483  test -f config.nice && mv config.nice config.nice.old
2484  rm -f config.nice.old
2485  cat >config.nice<<EOF
2486#! /bin/sh
2487#
2488# Created by configure
2489
2490EOF
2491
2492  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS CC CXX; do
2493    eval val=\$$var
2494    if test -n "$val"; then
2495      echo "$var='$val' \\" >> config.nice
2496    fi
2497  done
2498
2499  for arg in $0 "$@"; do
2500    echo "'$arg' \\" >> config.nice
2501  done
2502  echo '"$@"' >> config.nice
2503  chmod +x config.nice
2504
2505
2506VERSION=`head -n 1 VERSION`
2507if test "x$VERSION" = "xsvn"; then
2508  { $as_echo "$as_me:${as_lineno-$LINENO}: checking svn checkout revision" >&5
2509$as_echo_n "checking svn checkout revision... " >&6; }
2510
2511  if test -d ".svn"
2512  then
2513    revision=`svnversion .`
2514    test -z "$revision" && revision="unknown"
2515    SVN_REVISION="$revision"
2516  elif test -d ".git"
2517  then
2518    sha1=$(git rev-parse --short HEAD)
2519    mod=$(git status | grep "modified:\|added:\|deleted:" -q && echo "M")
2520    SVN_REVISION="$sha1$mod"
2521  fi
2522
2523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVN_REVISION" >&5
2524$as_echo "$SVN_REVISION" >&6; }
2525  VERSION="$VERSION-r$SVN_REVISION"
2526fi
2527cat >>confdefs.h <<_ACEOF
2528#define GW_NAME "Kannel"
2529_ACEOF
2530
2531cat >>confdefs.h <<_ACEOF
2532#define GW_VERSION "$VERSION"
2533_ACEOF
2534
2535cat >>confdefs.h <<_ACEOF
2536#define VERSION "$VERSION"
2537_ACEOF
2538
2539
2540
2541
2542  nl='
2543'
2544  echo "${nl}${T_MD}Configuring for Kannel gateway version $VERSION ...${T_ME}"
2545
2546
2547PKGADD_PKG="KANNELgateway"
2548PKGADD_NAME="Kannel - WAP and SMS gateway"
2549PKGADD_VENDOR="www.kannel.org"
2550
2551
2552
2553
2554
2555docdir='${prefix}/share/doc/kannel'
2556
2557
2558  nl='
2559'
2560  echo "${nl}${T_MD}Running system checks ...${T_ME}"
2561
2562# Make sure we can run config.sub.
2563$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2564  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2565
2566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2567$as_echo_n "checking build system type... " >&6; }
2568if ${ac_cv_build+:} false; then :
2569  $as_echo_n "(cached) " >&6
2570else
2571  ac_build_alias=$build_alias
2572test "x$ac_build_alias" = x &&
2573  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2574test "x$ac_build_alias" = x &&
2575  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2576ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2577  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2578
2579fi
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2581$as_echo "$ac_cv_build" >&6; }
2582case $ac_cv_build in
2583*-*-*) ;;
2584*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2585esac
2586build=$ac_cv_build
2587ac_save_IFS=$IFS; IFS='-'
2588set x $ac_cv_build
2589shift
2590build_cpu=$1
2591build_vendor=$2
2592shift; shift
2593# Remember, the first character of IFS is used to create $*,
2594# except with old shells:
2595build_os=$*
2596IFS=$ac_save_IFS
2597case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2598
2599
2600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2601$as_echo_n "checking host system type... " >&6; }
2602if ${ac_cv_host+:} false; then :
2603  $as_echo_n "(cached) " >&6
2604else
2605  if test "x$host_alias" = x; then
2606  ac_cv_host=$ac_cv_build
2607else
2608  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2609    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2610fi
2611
2612fi
2613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2614$as_echo "$ac_cv_host" >&6; }
2615case $ac_cv_host in
2616*-*-*) ;;
2617*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2618esac
2619host=$ac_cv_host
2620ac_save_IFS=$IFS; IFS='-'
2621set x $ac_cv_host
2622shift
2623host_cpu=$1
2624host_vendor=$2
2625shift; shift
2626# Remember, the first character of IFS is used to create $*,
2627# except with old shells:
2628host_os=$*
2629IFS=$ac_save_IFS
2630case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2631
2632
2633
2634
2635ac_ext=c
2636ac_cpp='$CPP $CPPFLAGS'
2637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2639ac_compiler_gnu=$ac_cv_c_compiler_gnu
2640if test -n "$ac_tool_prefix"; then
2641  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2642set dummy ${ac_tool_prefix}gcc; ac_word=$2
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2644$as_echo_n "checking for $ac_word... " >&6; }
2645if ${ac_cv_prog_CC+:} false; then :
2646  $as_echo_n "(cached) " >&6
2647else
2648  if test -n "$CC"; then
2649  ac_cv_prog_CC="$CC" # Let the user override the test.
2650else
2651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652for as_dir in $PATH
2653do
2654  IFS=$as_save_IFS
2655  test -z "$as_dir" && as_dir=.
2656    for ac_exec_ext in '' $ac_executable_extensions; do
2657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2660    break 2
2661  fi
2662done
2663  done
2664IFS=$as_save_IFS
2665
2666fi
2667fi
2668CC=$ac_cv_prog_CC
2669if test -n "$CC"; then
2670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2671$as_echo "$CC" >&6; }
2672else
2673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2674$as_echo "no" >&6; }
2675fi
2676
2677
2678fi
2679if test -z "$ac_cv_prog_CC"; then
2680  ac_ct_CC=$CC
2681  # Extract the first word of "gcc", so it can be a program name with args.
2682set dummy gcc; ac_word=$2
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684$as_echo_n "checking for $ac_word... " >&6; }
2685if ${ac_cv_prog_ac_ct_CC+:} false; then :
2686  $as_echo_n "(cached) " >&6
2687else
2688  if test -n "$ac_ct_CC"; then
2689  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2690else
2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694  IFS=$as_save_IFS
2695  test -z "$as_dir" && as_dir=.
2696    for ac_exec_ext in '' $ac_executable_extensions; do
2697  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2698    ac_cv_prog_ac_ct_CC="gcc"
2699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2700    break 2
2701  fi
2702done
2703  done
2704IFS=$as_save_IFS
2705
2706fi
2707fi
2708ac_ct_CC=$ac_cv_prog_ac_ct_CC
2709if test -n "$ac_ct_CC"; then
2710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2711$as_echo "$ac_ct_CC" >&6; }
2712else
2713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714$as_echo "no" >&6; }
2715fi
2716
2717  if test "x$ac_ct_CC" = x; then
2718    CC=""
2719  else
2720    case $cross_compiling:$ac_tool_warned in
2721yes:)
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2724ac_tool_warned=yes ;;
2725esac
2726    CC=$ac_ct_CC
2727  fi
2728else
2729  CC="$ac_cv_prog_CC"
2730fi
2731
2732if test -z "$CC"; then
2733          if test -n "$ac_tool_prefix"; then
2734    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2735set dummy ${ac_tool_prefix}cc; ac_word=$2
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737$as_echo_n "checking for $ac_word... " >&6; }
2738if ${ac_cv_prog_CC+:} false; then :
2739  $as_echo_n "(cached) " >&6
2740else
2741  if test -n "$CC"; then
2742  ac_cv_prog_CC="$CC" # Let the user override the test.
2743else
2744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745for as_dir in $PATH
2746do
2747  IFS=$as_save_IFS
2748  test -z "$as_dir" && as_dir=.
2749    for ac_exec_ext in '' $ac_executable_extensions; do
2750  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751    ac_cv_prog_CC="${ac_tool_prefix}cc"
2752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753    break 2
2754  fi
2755done
2756  done
2757IFS=$as_save_IFS
2758
2759fi
2760fi
2761CC=$ac_cv_prog_CC
2762if test -n "$CC"; then
2763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2764$as_echo "$CC" >&6; }
2765else
2766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767$as_echo "no" >&6; }
2768fi
2769
2770
2771  fi
2772fi
2773if test -z "$CC"; then
2774  # Extract the first word of "cc", so it can be a program name with args.
2775set dummy cc; ac_word=$2
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777$as_echo_n "checking for $ac_word... " >&6; }
2778if ${ac_cv_prog_CC+:} false; then :
2779  $as_echo_n "(cached) " >&6
2780else
2781  if test -n "$CC"; then
2782  ac_cv_prog_CC="$CC" # Let the user override the test.
2783else
2784  ac_prog_rejected=no
2785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786for as_dir in $PATH
2787do
2788  IFS=$as_save_IFS
2789  test -z "$as_dir" && as_dir=.
2790    for ac_exec_ext in '' $ac_executable_extensions; do
2791  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2793       ac_prog_rejected=yes
2794       continue
2795     fi
2796    ac_cv_prog_CC="cc"
2797    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798    break 2
2799  fi
2800done
2801  done
2802IFS=$as_save_IFS
2803
2804if test $ac_prog_rejected = yes; then
2805  # We found a bogon in the path, so make sure we never use it.
2806  set dummy $ac_cv_prog_CC
2807  shift
2808  if test $# != 0; then
2809    # We chose a different compiler from the bogus one.
2810    # However, it has the same basename, so the bogon will be chosen
2811    # first if we set CC to just the basename; use the full file name.
2812    shift
2813    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2814  fi
2815fi
2816fi
2817fi
2818CC=$ac_cv_prog_CC
2819if test -n "$CC"; then
2820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2821$as_echo "$CC" >&6; }
2822else
2823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824$as_echo "no" >&6; }
2825fi
2826
2827
2828fi
2829if test -z "$CC"; then
2830  if test -n "$ac_tool_prefix"; then
2831  for ac_prog in cl.exe
2832  do
2833    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2834set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836$as_echo_n "checking for $ac_word... " >&6; }
2837if ${ac_cv_prog_CC+:} false; then :
2838  $as_echo_n "(cached) " >&6
2839else
2840  if test -n "$CC"; then
2841  ac_cv_prog_CC="$CC" # Let the user override the test.
2842else
2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844for as_dir in $PATH
2845do
2846  IFS=$as_save_IFS
2847  test -z "$as_dir" && as_dir=.
2848    for ac_exec_ext in '' $ac_executable_extensions; do
2849  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852    break 2
2853  fi
2854done
2855  done
2856IFS=$as_save_IFS
2857
2858fi
2859fi
2860CC=$ac_cv_prog_CC
2861if test -n "$CC"; then
2862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2863$as_echo "$CC" >&6; }
2864else
2865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866$as_echo "no" >&6; }
2867fi
2868
2869
2870    test -n "$CC" && break
2871  done
2872fi
2873if test -z "$CC"; then
2874  ac_ct_CC=$CC
2875  for ac_prog in cl.exe
2876do
2877  # Extract the first word of "$ac_prog", so it can be a program name with args.
2878set dummy $ac_prog; ac_word=$2
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880$as_echo_n "checking for $ac_word... " >&6; }
2881if ${ac_cv_prog_ac_ct_CC+:} false; then :
2882  $as_echo_n "(cached) " >&6
2883else
2884  if test -n "$ac_ct_CC"; then
2885  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2886else
2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888for as_dir in $PATH
2889do
2890  IFS=$as_save_IFS
2891  test -z "$as_dir" && as_dir=.
2892    for ac_exec_ext in '' $ac_executable_extensions; do
2893  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2894    ac_cv_prog_ac_ct_CC="$ac_prog"
2895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896    break 2
2897  fi
2898done
2899  done
2900IFS=$as_save_IFS
2901
2902fi
2903fi
2904ac_ct_CC=$ac_cv_prog_ac_ct_CC
2905if test -n "$ac_ct_CC"; then
2906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2907$as_echo "$ac_ct_CC" >&6; }
2908else
2909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910$as_echo "no" >&6; }
2911fi
2912
2913
2914  test -n "$ac_ct_CC" && break
2915done
2916
2917  if test "x$ac_ct_CC" = x; then
2918    CC=""
2919  else
2920    case $cross_compiling:$ac_tool_warned in
2921yes:)
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2924ac_tool_warned=yes ;;
2925esac
2926    CC=$ac_ct_CC
2927  fi
2928fi
2929
2930fi
2931
2932
2933test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2935as_fn_error $? "no acceptable C compiler found in \$PATH
2936See \`config.log' for more details" "$LINENO" 5; }
2937
2938# Provide some information about the compiler.
2939$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2940set X $ac_compile
2941ac_compiler=$2
2942for ac_option in --version -v -V -qversion; do
2943  { { ac_try="$ac_compiler $ac_option >&5"
2944case "(($ac_try" in
2945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946  *) ac_try_echo=$ac_try;;
2947esac
2948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2949$as_echo "$ac_try_echo"; } >&5
2950  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2951  ac_status=$?
2952  if test -s conftest.err; then
2953    sed '10a\
2954... rest of stderr output deleted ...
2955         10q' conftest.err >conftest.er1
2956    cat conftest.er1 >&5
2957  fi
2958  rm -f conftest.er1 conftest.err
2959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2960  test $ac_status = 0; }
2961done
2962
2963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2964/* end confdefs.h.  */
2965
2966int
2967main ()
2968{
2969
2970  ;
2971  return 0;
2972}
2973_ACEOF
2974ac_clean_files_save=$ac_clean_files
2975ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2976# Try to create an executable without -o first, disregard a.out.
2977# It will help us diagnose broken compilers, and finding out an intuition
2978# of exeext.
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2980$as_echo_n "checking whether the C compiler works... " >&6; }
2981ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2982
2983# The possible output files:
2984ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2985
2986ac_rmfiles=
2987for ac_file in $ac_files
2988do
2989  case $ac_file in
2990    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2991    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2992  esac
2993done
2994rm -f $ac_rmfiles
2995
2996if { { ac_try="$ac_link_default"
2997case "(($ac_try" in
2998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999  *) ac_try_echo=$ac_try;;
3000esac
3001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3002$as_echo "$ac_try_echo"; } >&5
3003  (eval "$ac_link_default") 2>&5
3004  ac_status=$?
3005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3006  test $ac_status = 0; }; then :
3007  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3008# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3009# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3010# so that the user can short-circuit this test for compilers unknown to
3011# Autoconf.
3012for ac_file in $ac_files ''
3013do
3014  test -f "$ac_file" || continue
3015  case $ac_file in
3016    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3017	;;
3018    [ab].out )
3019	# We found the default executable, but exeext='' is most
3020	# certainly right.
3021	break;;
3022    *.* )
3023	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3024	then :; else
3025	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3026	fi
3027	# We set ac_cv_exeext here because the later test for it is not
3028	# safe: cross compilers may not add the suffix if given an `-o'
3029	# argument, so we may need to know it at that point already.
3030	# Even if this section looks crufty: it has the advantage of
3031	# actually working.
3032	break;;
3033    * )
3034	break;;
3035  esac
3036done
3037test "$ac_cv_exeext" = no && ac_cv_exeext=
3038
3039else
3040  ac_file=''
3041fi
3042if test -z "$ac_file"; then :
3043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044$as_echo "no" >&6; }
3045$as_echo "$as_me: failed program was:" >&5
3046sed 's/^/| /' conftest.$ac_ext >&5
3047
3048{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3050as_fn_error 77 "C compiler cannot create executables
3051See \`config.log' for more details" "$LINENO" 5; }
3052else
3053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3054$as_echo "yes" >&6; }
3055fi
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3057$as_echo_n "checking for C compiler default output file name... " >&6; }
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3059$as_echo "$ac_file" >&6; }
3060ac_exeext=$ac_cv_exeext
3061
3062rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3063ac_clean_files=$ac_clean_files_save
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3065$as_echo_n "checking for suffix of executables... " >&6; }
3066if { { ac_try="$ac_link"
3067case "(($ac_try" in
3068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069  *) ac_try_echo=$ac_try;;
3070esac
3071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072$as_echo "$ac_try_echo"; } >&5
3073  (eval "$ac_link") 2>&5
3074  ac_status=$?
3075  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3076  test $ac_status = 0; }; then :
3077  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3078# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3079# work properly (i.e., refer to `conftest.exe'), while it won't with
3080# `rm'.
3081for ac_file in conftest.exe conftest conftest.*; do
3082  test -f "$ac_file" || continue
3083  case $ac_file in
3084    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3085    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3086	  break;;
3087    * ) break;;
3088  esac
3089done
3090else
3091  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3093as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3094See \`config.log' for more details" "$LINENO" 5; }
3095fi
3096rm -f conftest conftest$ac_cv_exeext
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3098$as_echo "$ac_cv_exeext" >&6; }
3099
3100rm -f conftest.$ac_ext
3101EXEEXT=$ac_cv_exeext
3102ac_exeext=$EXEEXT
3103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104/* end confdefs.h.  */
3105#include <stdio.h>
3106int
3107main ()
3108{
3109FILE *f = fopen ("conftest.out", "w");
3110 return ferror (f) || fclose (f) != 0;
3111
3112  ;
3113  return 0;
3114}
3115_ACEOF
3116ac_clean_files="$ac_clean_files conftest.out"
3117# Check that the compiler produces executables we can run.  If not, either
3118# the compiler is broken, or we cross compile.
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3120$as_echo_n "checking whether we are cross compiling... " >&6; }
3121if test "$cross_compiling" != yes; then
3122  { { ac_try="$ac_link"
3123case "(($ac_try" in
3124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125  *) ac_try_echo=$ac_try;;
3126esac
3127eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3128$as_echo "$ac_try_echo"; } >&5
3129  (eval "$ac_link") 2>&5
3130  ac_status=$?
3131  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3132  test $ac_status = 0; }
3133  if { ac_try='./conftest$ac_cv_exeext'
3134  { { case "(($ac_try" in
3135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136  *) ac_try_echo=$ac_try;;
3137esac
3138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139$as_echo "$ac_try_echo"; } >&5
3140  (eval "$ac_try") 2>&5
3141  ac_status=$?
3142  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143  test $ac_status = 0; }; }; then
3144    cross_compiling=no
3145  else
3146    if test "$cross_compiling" = maybe; then
3147	cross_compiling=yes
3148    else
3149	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151as_fn_error $? "cannot run C compiled programs.
3152If you meant to cross compile, use \`--host'.
3153See \`config.log' for more details" "$LINENO" 5; }
3154    fi
3155  fi
3156fi
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3158$as_echo "$cross_compiling" >&6; }
3159
3160rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3161ac_clean_files=$ac_clean_files_save
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3163$as_echo_n "checking for suffix of object files... " >&6; }
3164if ${ac_cv_objext+:} false; then :
3165  $as_echo_n "(cached) " >&6
3166else
3167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168/* end confdefs.h.  */
3169
3170int
3171main ()
3172{
3173
3174  ;
3175  return 0;
3176}
3177_ACEOF
3178rm -f conftest.o conftest.obj
3179if { { ac_try="$ac_compile"
3180case "(($ac_try" in
3181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182  *) ac_try_echo=$ac_try;;
3183esac
3184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3185$as_echo "$ac_try_echo"; } >&5
3186  (eval "$ac_compile") 2>&5
3187  ac_status=$?
3188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3189  test $ac_status = 0; }; then :
3190  for ac_file in conftest.o conftest.obj conftest.*; do
3191  test -f "$ac_file" || continue;
3192  case $ac_file in
3193    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3194    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3195       break;;
3196  esac
3197done
3198else
3199  $as_echo "$as_me: failed program was:" >&5
3200sed 's/^/| /' conftest.$ac_ext >&5
3201
3202{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3204as_fn_error $? "cannot compute suffix of object files: cannot compile
3205See \`config.log' for more details" "$LINENO" 5; }
3206fi
3207rm -f conftest.$ac_cv_objext conftest.$ac_ext
3208fi
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3210$as_echo "$ac_cv_objext" >&6; }
3211OBJEXT=$ac_cv_objext
3212ac_objext=$OBJEXT
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3214$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3215if ${ac_cv_c_compiler_gnu+:} false; then :
3216  $as_echo_n "(cached) " >&6
3217else
3218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3219/* end confdefs.h.  */
3220
3221int
3222main ()
3223{
3224#ifndef __GNUC__
3225       choke me
3226#endif
3227
3228  ;
3229  return 0;
3230}
3231_ACEOF
3232if ac_fn_c_try_compile "$LINENO"; then :
3233  ac_compiler_gnu=yes
3234else
3235  ac_compiler_gnu=no
3236fi
3237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238ac_cv_c_compiler_gnu=$ac_compiler_gnu
3239
3240fi
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3242$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3243if test $ac_compiler_gnu = yes; then
3244  GCC=yes
3245else
3246  GCC=
3247fi
3248ac_test_CFLAGS=${CFLAGS+set}
3249ac_save_CFLAGS=$CFLAGS
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3251$as_echo_n "checking whether $CC accepts -g... " >&6; }
3252if ${ac_cv_prog_cc_g+:} false; then :
3253  $as_echo_n "(cached) " >&6
3254else
3255  ac_save_c_werror_flag=$ac_c_werror_flag
3256   ac_c_werror_flag=yes
3257   ac_cv_prog_cc_g=no
3258   CFLAGS="-g"
3259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260/* end confdefs.h.  */
3261
3262int
3263main ()
3264{
3265
3266  ;
3267  return 0;
3268}
3269_ACEOF
3270if ac_fn_c_try_compile "$LINENO"; then :
3271  ac_cv_prog_cc_g=yes
3272else
3273  CFLAGS=""
3274      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275/* end confdefs.h.  */
3276
3277int
3278main ()
3279{
3280
3281  ;
3282  return 0;
3283}
3284_ACEOF
3285if ac_fn_c_try_compile "$LINENO"; then :
3286
3287else
3288  ac_c_werror_flag=$ac_save_c_werror_flag
3289	 CFLAGS="-g"
3290	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291/* end confdefs.h.  */
3292
3293int
3294main ()
3295{
3296
3297  ;
3298  return 0;
3299}
3300_ACEOF
3301if ac_fn_c_try_compile "$LINENO"; then :
3302  ac_cv_prog_cc_g=yes
3303fi
3304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3305fi
3306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307fi
3308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3309   ac_c_werror_flag=$ac_save_c_werror_flag
3310fi
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3312$as_echo "$ac_cv_prog_cc_g" >&6; }
3313if test "$ac_test_CFLAGS" = set; then
3314  CFLAGS=$ac_save_CFLAGS
3315elif test $ac_cv_prog_cc_g = yes; then
3316  if test "$GCC" = yes; then
3317    CFLAGS="-g -O2"
3318  else
3319    CFLAGS="-g"
3320  fi
3321else
3322  if test "$GCC" = yes; then
3323    CFLAGS="-O2"
3324  else
3325    CFLAGS=
3326  fi
3327fi
3328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3329$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3330if ${ac_cv_prog_cc_c89+:} false; then :
3331  $as_echo_n "(cached) " >&6
3332else
3333  ac_cv_prog_cc_c89=no
3334ac_save_CC=$CC
3335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336/* end confdefs.h.  */
3337#include <stdarg.h>
3338#include <stdio.h>
3339struct stat;
3340/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3341struct buf { int x; };
3342FILE * (*rcsopen) (struct buf *, struct stat *, int);
3343static char *e (p, i)
3344     char **p;
3345     int i;
3346{
3347  return p[i];
3348}
3349static char *f (char * (*g) (char **, int), char **p, ...)
3350{
3351  char *s;
3352  va_list v;
3353  va_start (v,p);
3354  s = g (p, va_arg (v,int));
3355  va_end (v);
3356  return s;
3357}
3358
3359/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3360   function prototypes and stuff, but not '\xHH' hex character constants.
3361   These don't provoke an error unfortunately, instead are silently treated
3362   as 'x'.  The following induces an error, until -std is added to get
3363   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3364   array size at least.  It's necessary to write '\x00'==0 to get something
3365   that's true only with -std.  */
3366int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3367
3368/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3369   inside strings and character constants.  */
3370#define FOO(x) 'x'
3371int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3372
3373int test (int i, double x);
3374struct s1 {int (*f) (int a);};
3375struct s2 {int (*f) (double a);};
3376int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3377int argc;
3378char **argv;
3379int
3380main ()
3381{
3382return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3383  ;
3384  return 0;
3385}
3386_ACEOF
3387for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3388	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3389do
3390  CC="$ac_save_CC $ac_arg"
3391  if ac_fn_c_try_compile "$LINENO"; then :
3392  ac_cv_prog_cc_c89=$ac_arg
3393fi
3394rm -f core conftest.err conftest.$ac_objext
3395  test "x$ac_cv_prog_cc_c89" != "xno" && break
3396done
3397rm -f conftest.$ac_ext
3398CC=$ac_save_CC
3399
3400fi
3401# AC_CACHE_VAL
3402case "x$ac_cv_prog_cc_c89" in
3403  x)
3404    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3405$as_echo "none needed" >&6; } ;;
3406  xno)
3407    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3408$as_echo "unsupported" >&6; } ;;
3409  *)
3410    CC="$CC $ac_cv_prog_cc_c89"
3411    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3412$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3413esac
3414if test "x$ac_cv_prog_cc_c89" != xno; then :
3415
3416fi
3417
3418ac_ext=c
3419ac_cpp='$CPP $CPPFLAGS'
3420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423
3424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3425$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3426if ${ac_cv_prog_cc_c99+:} false; then :
3427  $as_echo_n "(cached) " >&6
3428else
3429  ac_cv_prog_cc_c99=no
3430ac_save_CC=$CC
3431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432/* end confdefs.h.  */
3433#include <stdarg.h>
3434#include <stdbool.h>
3435#include <stdlib.h>
3436#include <wchar.h>
3437#include <stdio.h>
3438
3439// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3440#define debug(...) fprintf (stderr, __VA_ARGS__)
3441#define showlist(...) puts (#__VA_ARGS__)
3442#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3443static void
3444test_varargs_macros (void)
3445{
3446  int x = 1234;
3447  int y = 5678;
3448  debug ("Flag");
3449  debug ("X = %d\n", x);
3450  showlist (The first, second, and third items.);
3451  report (x>y, "x is %d but y is %d", x, y);
3452}
3453
3454// Check long long types.
3455#define BIG64 18446744073709551615ull
3456#define BIG32 4294967295ul
3457#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3458#if !BIG_OK
3459  your preprocessor is broken;
3460#endif
3461#if BIG_OK
3462#else
3463  your preprocessor is broken;
3464#endif
3465static long long int bignum = -9223372036854775807LL;
3466static unsigned long long int ubignum = BIG64;
3467
3468struct incomplete_array
3469{
3470  int datasize;
3471  double data[];
3472};
3473
3474struct named_init {
3475  int number;
3476  const wchar_t *name;
3477  double average;
3478};
3479
3480typedef const char *ccp;
3481
3482static inline int
3483test_restrict (ccp restrict text)
3484{
3485  // See if C++-style comments work.
3486  // Iterate through items via the restricted pointer.
3487  // Also check for declarations in for loops.
3488  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3489    continue;
3490  return 0;
3491}
3492
3493// Check varargs and va_copy.
3494static void
3495test_varargs (const char *format, ...)
3496{
3497  va_list args;
3498  va_start (args, format);
3499  va_list args_copy;
3500  va_copy (args_copy, args);
3501
3502  const char *str;
3503  int number;
3504  float fnumber;
3505
3506  while (*format)
3507    {
3508      switch (*format++)
3509	{
3510	case 's': // string
3511	  str = va_arg (args_copy, const char *);
3512	  break;
3513	case 'd': // int
3514	  number = va_arg (args_copy, int);
3515	  break;
3516	case 'f': // float
3517	  fnumber = va_arg (args_copy, double);
3518	  break;
3519	default:
3520	  break;
3521	}
3522    }
3523  va_end (args_copy);
3524  va_end (args);
3525}
3526
3527int
3528main ()
3529{
3530
3531  // Check bool.
3532  _Bool success = false;
3533
3534  // Check restrict.
3535  if (test_restrict ("String literal") == 0)
3536    success = true;
3537  char *restrict newvar = "Another string";
3538
3539  // Check varargs.
3540  test_varargs ("s, d' f .", "string", 65, 34.234);
3541  test_varargs_macros ();
3542
3543  // Check flexible array members.
3544  struct incomplete_array *ia =
3545    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3546  ia->datasize = 10;
3547  for (int i = 0; i < ia->datasize; ++i)
3548    ia->data[i] = i * 1.234;
3549
3550  // Check named initializers.
3551  struct named_init ni = {
3552    .number = 34,
3553    .name = L"Test wide string",
3554    .average = 543.34343,
3555  };
3556
3557  ni.number = 58;
3558
3559  int dynamic_array[ni.number];
3560  dynamic_array[ni.number - 1] = 543;
3561
3562  // work around unused variable warnings
3563  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3564	  || dynamic_array[ni.number - 1] != 543);
3565
3566  ;
3567  return 0;
3568}
3569_ACEOF
3570for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3571do
3572  CC="$ac_save_CC $ac_arg"
3573  if ac_fn_c_try_compile "$LINENO"; then :
3574  ac_cv_prog_cc_c99=$ac_arg
3575fi
3576rm -f core conftest.err conftest.$ac_objext
3577  test "x$ac_cv_prog_cc_c99" != "xno" && break
3578done
3579rm -f conftest.$ac_ext
3580CC=$ac_save_CC
3581
3582fi
3583# AC_CACHE_VAL
3584case "x$ac_cv_prog_cc_c99" in
3585  x)
3586    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3587$as_echo "none needed" >&6; } ;;
3588  xno)
3589    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3590$as_echo "unsupported" >&6; } ;;
3591  *)
3592    CC="$CC $ac_cv_prog_cc_c99"
3593    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3594$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3595esac
3596if test "x$ac_cv_prog_cc_c99" != xno; then :
3597
3598fi
3599
3600
3601if test "$ac_cv_prog_cc_c99" = "no"; then
3602    as_fn_error $? "\"Kannel requires a C compiler that supports ISO C99.\"" "$LINENO" 5
3603fi
3604# Find a good install program.  We prefer a C program (faster),
3605# so one script is as good as another.  But avoid the broken or
3606# incompatible versions:
3607# SysV /etc/install, /usr/sbin/install
3608# SunOS /usr/etc/install
3609# IRIX /sbin/install
3610# AIX /bin/install
3611# AmigaOS /C/install, which installs bootblocks on floppy discs
3612# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3613# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3614# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3615# OS/2's system install, which has a completely different semantic
3616# ./install, which can be erroneously created by make from ./install.sh.
3617# Reject install programs that cannot install multiple files.
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3619$as_echo_n "checking for a BSD-compatible install... " >&6; }
3620if test -z "$INSTALL"; then
3621if ${ac_cv_path_install+:} false; then :
3622  $as_echo_n "(cached) " >&6
3623else
3624  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625for as_dir in $PATH
3626do
3627  IFS=$as_save_IFS
3628  test -z "$as_dir" && as_dir=.
3629    # Account for people who put trailing slashes in PATH elements.
3630case $as_dir/ in #((
3631  ./ | .// | /[cC]/* | \
3632  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3633  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3634  /usr/ucb/* ) ;;
3635  *)
3636    # OSF1 and SCO ODT 3.0 have their own names for install.
3637    # Don't use installbsd from OSF since it installs stuff as root
3638    # by default.
3639    for ac_prog in ginstall scoinst install; do
3640      for ac_exec_ext in '' $ac_executable_extensions; do
3641	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3642	  if test $ac_prog = install &&
3643	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3644	    # AIX install.  It has an incompatible calling convention.
3645	    :
3646	  elif test $ac_prog = install &&
3647	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3648	    # program-specific install script used by HP pwplus--don't use.
3649	    :
3650	  else
3651	    rm -rf conftest.one conftest.two conftest.dir
3652	    echo one > conftest.one
3653	    echo two > conftest.two
3654	    mkdir conftest.dir
3655	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3656	      test -s conftest.one && test -s conftest.two &&
3657	      test -s conftest.dir/conftest.one &&
3658	      test -s conftest.dir/conftest.two
3659	    then
3660	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3661	      break 3
3662	    fi
3663	  fi
3664	fi
3665      done
3666    done
3667    ;;
3668esac
3669
3670  done
3671IFS=$as_save_IFS
3672
3673rm -rf conftest.one conftest.two conftest.dir
3674
3675fi
3676  if test "${ac_cv_path_install+set}" = set; then
3677    INSTALL=$ac_cv_path_install
3678  else
3679    # As a last resort, use the slow shell script.  Don't cache a
3680    # value for INSTALL within a source directory, because that will
3681    # break other packages using the cache if that directory is
3682    # removed, or if the value is a relative name.
3683    INSTALL=$ac_install_sh
3684  fi
3685fi
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3687$as_echo "$INSTALL" >&6; }
3688
3689# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3690# It thinks the first close brace ends the variable substitution.
3691test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3692
3693test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3694
3695test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3696
3697if test -n "$ac_tool_prefix"; then
3698  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3699set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701$as_echo_n "checking for $ac_word... " >&6; }
3702if ${ac_cv_prog_RANLIB+:} false; then :
3703  $as_echo_n "(cached) " >&6
3704else
3705  if test -n "$RANLIB"; then
3706  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3707else
3708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709for as_dir in $PATH
3710do
3711  IFS=$as_save_IFS
3712  test -z "$as_dir" && as_dir=.
3713    for ac_exec_ext in '' $ac_executable_extensions; do
3714  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3715    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3717    break 2
3718  fi
3719done
3720  done
3721IFS=$as_save_IFS
3722
3723fi
3724fi
3725RANLIB=$ac_cv_prog_RANLIB
3726if test -n "$RANLIB"; then
3727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3728$as_echo "$RANLIB" >&6; }
3729else
3730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731$as_echo "no" >&6; }
3732fi
3733
3734
3735fi
3736if test -z "$ac_cv_prog_RANLIB"; then
3737  ac_ct_RANLIB=$RANLIB
3738  # Extract the first word of "ranlib", so it can be a program name with args.
3739set dummy ranlib; ac_word=$2
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3741$as_echo_n "checking for $ac_word... " >&6; }
3742if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3743  $as_echo_n "(cached) " >&6
3744else
3745  if test -n "$ac_ct_RANLIB"; then
3746  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3747else
3748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749for as_dir in $PATH
3750do
3751  IFS=$as_save_IFS
3752  test -z "$as_dir" && as_dir=.
3753    for ac_exec_ext in '' $ac_executable_extensions; do
3754  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3755    ac_cv_prog_ac_ct_RANLIB="ranlib"
3756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3757    break 2
3758  fi
3759done
3760  done
3761IFS=$as_save_IFS
3762
3763fi
3764fi
3765ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3766if test -n "$ac_ct_RANLIB"; then
3767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3768$as_echo "$ac_ct_RANLIB" >&6; }
3769else
3770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771$as_echo "no" >&6; }
3772fi
3773
3774  if test "x$ac_ct_RANLIB" = x; then
3775    RANLIB=":"
3776  else
3777    case $cross_compiling:$ac_tool_warned in
3778yes:)
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3781ac_tool_warned=yes ;;
3782esac
3783    RANLIB=$ac_ct_RANLIB
3784  fi
3785else
3786  RANLIB="$ac_cv_prog_RANLIB"
3787fi
3788
3789for ac_prog in 'bison -y' byacc
3790do
3791  # Extract the first word of "$ac_prog", so it can be a program name with args.
3792set dummy $ac_prog; ac_word=$2
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3794$as_echo_n "checking for $ac_word... " >&6; }
3795if ${ac_cv_prog_YACC+:} false; then :
3796  $as_echo_n "(cached) " >&6
3797else
3798  if test -n "$YACC"; then
3799  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3800else
3801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802for as_dir in $PATH
3803do
3804  IFS=$as_save_IFS
3805  test -z "$as_dir" && as_dir=.
3806    for ac_exec_ext in '' $ac_executable_extensions; do
3807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3808    ac_cv_prog_YACC="$ac_prog"
3809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810    break 2
3811  fi
3812done
3813  done
3814IFS=$as_save_IFS
3815
3816fi
3817fi
3818YACC=$ac_cv_prog_YACC
3819if test -n "$YACC"; then
3820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
3821$as_echo "$YACC" >&6; }
3822else
3823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824$as_echo "no" >&6; }
3825fi
3826
3827
3828  test -n "$YACC" && break
3829done
3830test -n "$YACC" || YACC="yacc"
3831
3832
3833for ac_prog in flex lex
3834do
3835  # Extract the first word of "$ac_prog", so it can be a program name with args.
3836set dummy $ac_prog; ac_word=$2
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3838$as_echo_n "checking for $ac_word... " >&6; }
3839if ${ac_cv_prog_LEX+:} false; then :
3840  $as_echo_n "(cached) " >&6
3841else
3842  if test -n "$LEX"; then
3843  ac_cv_prog_LEX="$LEX" # Let the user override the test.
3844else
3845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846for as_dir in $PATH
3847do
3848  IFS=$as_save_IFS
3849  test -z "$as_dir" && as_dir=.
3850    for ac_exec_ext in '' $ac_executable_extensions; do
3851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3852    ac_cv_prog_LEX="$ac_prog"
3853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3854    break 2
3855  fi
3856done
3857  done
3858IFS=$as_save_IFS
3859
3860fi
3861fi
3862LEX=$ac_cv_prog_LEX
3863if test -n "$LEX"; then
3864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
3865$as_echo "$LEX" >&6; }
3866else
3867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868$as_echo "no" >&6; }
3869fi
3870
3871
3872  test -n "$LEX" && break
3873done
3874test -n "$LEX" || LEX=":"
3875
3876if test "x$LEX" != "x:"; then
3877  cat >conftest.l <<_ACEOF
3878%%
3879a { ECHO; }
3880b { REJECT; }
3881c { yymore (); }
3882d { yyless (1); }
3883e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
3884    yyless ((input () != 0)); }
3885f { unput (yytext[0]); }
3886. { BEGIN INITIAL; }
3887%%
3888#ifdef YYTEXT_POINTER
3889extern char *yytext;
3890#endif
3891int
3892main (void)
3893{
3894  return ! yylex () + ! yywrap ();
3895}
3896_ACEOF
3897{ { ac_try="$LEX conftest.l"
3898case "(($ac_try" in
3899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900  *) ac_try_echo=$ac_try;;
3901esac
3902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3903$as_echo "$ac_try_echo"; } >&5
3904  (eval "$LEX conftest.l") 2>&5
3905  ac_status=$?
3906  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3907  test $ac_status = 0; }
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
3909$as_echo_n "checking lex output file root... " >&6; }
3910if ${ac_cv_prog_lex_root+:} false; then :
3911  $as_echo_n "(cached) " >&6
3912else
3913
3914if test -f lex.yy.c; then
3915  ac_cv_prog_lex_root=lex.yy
3916elif test -f lexyy.c; then
3917  ac_cv_prog_lex_root=lexyy
3918else
3919  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
3920fi
3921fi
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
3923$as_echo "$ac_cv_prog_lex_root" >&6; }
3924LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3925
3926if test -z "${LEXLIB+set}"; then
3927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
3928$as_echo_n "checking lex library... " >&6; }
3929if ${ac_cv_lib_lex+:} false; then :
3930  $as_echo_n "(cached) " >&6
3931else
3932
3933    ac_save_LIBS=$LIBS
3934    ac_cv_lib_lex='none needed'
3935    for ac_lib in '' -lfl -ll; do
3936      LIBS="$ac_lib $ac_save_LIBS"
3937      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938/* end confdefs.h.  */
3939`cat $LEX_OUTPUT_ROOT.c`
3940_ACEOF
3941if ac_fn_c_try_link "$LINENO"; then :
3942  ac_cv_lib_lex=$ac_lib
3943fi
3944rm -f core conftest.err conftest.$ac_objext \
3945    conftest$ac_exeext conftest.$ac_ext
3946      test "$ac_cv_lib_lex" != 'none needed' && break
3947    done
3948    LIBS=$ac_save_LIBS
3949
3950fi
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
3952$as_echo "$ac_cv_lib_lex" >&6; }
3953  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3954fi
3955
3956
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
3958$as_echo_n "checking whether yytext is a pointer... " >&6; }
3959if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
3960  $as_echo_n "(cached) " >&6
3961else
3962  # POSIX says lex can declare yytext either as a pointer or an array; the
3963# default is implementation-dependent.  Figure out which it is, since
3964# not all implementations provide the %pointer and %array declarations.
3965ac_cv_prog_lex_yytext_pointer=no
3966ac_save_LIBS=$LIBS
3967LIBS="$LEXLIB $ac_save_LIBS"
3968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969/* end confdefs.h.  */
3970
3971  #define YYTEXT_POINTER 1
3972`cat $LEX_OUTPUT_ROOT.c`
3973_ACEOF
3974if ac_fn_c_try_link "$LINENO"; then :
3975  ac_cv_prog_lex_yytext_pointer=yes
3976fi
3977rm -f core conftest.err conftest.$ac_objext \
3978    conftest$ac_exeext conftest.$ac_ext
3979LIBS=$ac_save_LIBS
3980
3981fi
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
3983$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
3984if test $ac_cv_prog_lex_yytext_pointer = yes; then
3985
3986$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
3987
3988fi
3989rm -f conftest.l $LEX_OUTPUT_ROOT.c
3990
3991fi
3992if test -n "$ac_tool_prefix"; then
3993  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3994set dummy ${ac_tool_prefix}ar; ac_word=$2
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996$as_echo_n "checking for $ac_word... " >&6; }
3997if ${ac_cv_prog_AR+:} false; then :
3998  $as_echo_n "(cached) " >&6
3999else
4000  if test -n "$AR"; then
4001  ac_cv_prog_AR="$AR" # Let the user override the test.
4002else
4003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004for as_dir in $PATH
4005do
4006  IFS=$as_save_IFS
4007  test -z "$as_dir" && as_dir=.
4008    for ac_exec_ext in '' $ac_executable_extensions; do
4009  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4010    ac_cv_prog_AR="${ac_tool_prefix}ar"
4011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4012    break 2
4013  fi
4014done
4015  done
4016IFS=$as_save_IFS
4017
4018fi
4019fi
4020AR=$ac_cv_prog_AR
4021if test -n "$AR"; then
4022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4023$as_echo "$AR" >&6; }
4024else
4025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026$as_echo "no" >&6; }
4027fi
4028
4029
4030fi
4031if test -z "$ac_cv_prog_AR"; then
4032  ac_ct_AR=$AR
4033  # Extract the first word of "ar", so it can be a program name with args.
4034set dummy ar; ac_word=$2
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4036$as_echo_n "checking for $ac_word... " >&6; }
4037if ${ac_cv_prog_ac_ct_AR+:} false; then :
4038  $as_echo_n "(cached) " >&6
4039else
4040  if test -n "$ac_ct_AR"; then
4041  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4042else
4043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044for as_dir in $PATH
4045do
4046  IFS=$as_save_IFS
4047  test -z "$as_dir" && as_dir=.
4048    for ac_exec_ext in '' $ac_executable_extensions; do
4049  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4050    ac_cv_prog_ac_ct_AR="ar"
4051    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4052    break 2
4053  fi
4054done
4055  done
4056IFS=$as_save_IFS
4057
4058fi
4059fi
4060ac_ct_AR=$ac_cv_prog_ac_ct_AR
4061if test -n "$ac_ct_AR"; then
4062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4063$as_echo "$ac_ct_AR" >&6; }
4064else
4065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066$as_echo "no" >&6; }
4067fi
4068
4069  if test "x$ac_ct_AR" = x; then
4070    AR=""
4071  else
4072    case $cross_compiling:$ac_tool_warned in
4073yes:)
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4076ac_tool_warned=yes ;;
4077esac
4078    AR=$ac_ct_AR
4079  fi
4080else
4081  AR="$ac_cv_prog_AR"
4082fi
4083
4084# Extract the first word of "convert", so it can be a program name with args.
4085set dummy convert; ac_word=$2
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087$as_echo_n "checking for $ac_word... " >&6; }
4088if ${ac_cv_path_CONVERT+:} false; then :
4089  $as_echo_n "(cached) " >&6
4090else
4091  case $CONVERT in
4092  [\\/]* | ?:[\\/]*)
4093  ac_cv_path_CONVERT="$CONVERT" # Let the user override the test with a path.
4094  ;;
4095  *)
4096  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097for as_dir in $PATH
4098do
4099  IFS=$as_save_IFS
4100  test -z "$as_dir" && as_dir=.
4101    for ac_exec_ext in '' $ac_executable_extensions; do
4102  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4103    ac_cv_path_CONVERT="$as_dir/$ac_word$ac_exec_ext"
4104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4105    break 2
4106  fi
4107done
4108  done
4109IFS=$as_save_IFS
4110
4111  ;;
4112esac
4113fi
4114CONVERT=$ac_cv_path_CONVERT
4115if test -n "$CONVERT"; then
4116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
4117$as_echo "$CONVERT" >&6; }
4118else
4119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120$as_echo "no" >&6; }
4121fi
4122
4123
4124# Extract the first word of "perl", so it can be a program name with args.
4125set dummy perl; ac_word=$2
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127$as_echo_n "checking for $ac_word... " >&6; }
4128if ${ac_cv_path_PERL+:} false; then :
4129  $as_echo_n "(cached) " >&6
4130else
4131  case $PERL in
4132  [\\/]* | ?:[\\/]*)
4133  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4134  ;;
4135  *)
4136  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137for as_dir in $PATH
4138do
4139  IFS=$as_save_IFS
4140  test -z "$as_dir" && as_dir=.
4141    for ac_exec_ext in '' $ac_executable_extensions; do
4142  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4143    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145    break 2
4146  fi
4147done
4148  done
4149IFS=$as_save_IFS
4150
4151  ;;
4152esac
4153fi
4154PERL=$ac_cv_path_PERL
4155if test -n "$PERL"; then
4156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4157$as_echo "$PERL" >&6; }
4158else
4159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160$as_echo "no" >&6; }
4161fi
4162
4163
4164
4165EXE_EXT=""
4166LIBTOOL="$AR rc"
4167case "$host" in
4168  *-sun-solaris*)
4169    CFLAGS="$CFLAGS -DSunOS=1"
4170    ;;
4171  *-cygwin*)
4172    EXE_EXT=".exe"
4173    LDFLAGS="$LDFLAGS -Wl,--enable-auto-import"
4174    ;;
4175  *apple-darwin*)
4176    # MacOS X
4177    # Lets try to find the newest installed SDK for compilation
4178    # so we know how to link against it.
4179    # If we find a SDK, we use that rather then the standard /usr
4180    # location libs and includes.
4181    found=0
4182    SDK=""
4183    for loc in "MacOSX10.7.sdk" "MacOSX10.6.sdk" "MacOSX10.5.sdk" "MacOSX10.4u.sdk" "MacOSX10.4.0.sdk" "MacOSX10.3.9.sdk" \
4184	           "MacOSX10.3.0.sdk" "MacOSX10.2.8.sdk" "MacOSX10.1.5.sdk"
4185  	do
4186      if test "$found" = "0" ; then
4187 	    if test -d "/Developer/SDKs/${E}" ; then
4188 	      found="1"
4189		  SDK="${loc}"
4190        fi
4191      fi
4192    done
4193    if test "$SDK" != "" ; then
4194      CFLAGS="$CFLAGS -DDARWIN=1 -L/Developer/SDKs/${SDK}/usr/lib -I/Developer/SDKs/${SDK}/usr/include"
4195    else
4196      CFLAGS="$CFLAGS -DDARWIN=1"
4197    fi
4198    LIBTOOL="libtool -static -o"
4199    ;;
4200  *-linux-*)
4201    CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE"
4202    LDFLAGS="$LDFLAGS -rdynamic"
4203    ;;
4204  *-*-openbsd* | *-*-freebsd*)
4205    CFLAGS="$CFLAGS -pthread"
4206    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_exit in -lpthread" >&5
4207$as_echo_n "checking for pthread_exit in -lpthread... " >&6; }
4208if ${ac_cv_lib_pthread_pthread_exit+:} false; then :
4209  $as_echo_n "(cached) " >&6
4210else
4211  ac_check_lib_save_LIBS=$LIBS
4212LIBS="-lpthread  $LIBS"
4213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214/* end confdefs.h.  */
4215
4216/* Override any GCC internal prototype to avoid an error.
4217   Use char because int might match the return type of a GCC
4218   builtin and then its argument prototype would still apply.  */
4219#ifdef __cplusplus
4220extern "C"
4221#endif
4222char pthread_exit ();
4223int
4224main ()
4225{
4226return pthread_exit ();
4227  ;
4228  return 0;
4229}
4230_ACEOF
4231if ac_fn_c_try_link "$LINENO"; then :
4232  ac_cv_lib_pthread_pthread_exit=yes
4233else
4234  ac_cv_lib_pthread_pthread_exit=no
4235fi
4236rm -f core conftest.err conftest.$ac_objext \
4237    conftest$ac_exeext conftest.$ac_ext
4238LIBS=$ac_check_lib_save_LIBS
4239fi
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_exit" >&5
4241$as_echo "$ac_cv_lib_pthread_pthread_exit" >&6; }
4242if test "x$ac_cv_lib_pthread_pthread_exit" = xyes; then :
4243  LIBS="$LIBS -lpthread"; pthread="yes"
4244else
4245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_exit in -lc_r" >&5
4246$as_echo_n "checking for pthread_exit in -lc_r... " >&6; }
4247if ${ac_cv_lib_c_r_pthread_exit+:} false; then :
4248  $as_echo_n "(cached) " >&6
4249else
4250  ac_check_lib_save_LIBS=$LIBS
4251LIBS="-lc_r  $LIBS"
4252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253/* end confdefs.h.  */
4254
4255/* Override any GCC internal prototype to avoid an error.
4256   Use char because int might match the return type of a GCC
4257   builtin and then its argument prototype would still apply.  */
4258#ifdef __cplusplus
4259extern "C"
4260#endif
4261char pthread_exit ();
4262int
4263main ()
4264{
4265return pthread_exit ();
4266  ;
4267  return 0;
4268}
4269_ACEOF
4270if ac_fn_c_try_link "$LINENO"; then :
4271  ac_cv_lib_c_r_pthread_exit=yes
4272else
4273  ac_cv_lib_c_r_pthread_exit=no
4274fi
4275rm -f core conftest.err conftest.$ac_objext \
4276    conftest$ac_exeext conftest.$ac_ext
4277LIBS=$ac_check_lib_save_LIBS
4278fi
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_exit" >&5
4280$as_echo "$ac_cv_lib_c_r_pthread_exit" >&6; }
4281if test "x$ac_cv_lib_c_r_pthread_exit" = xyes; then :
4282  LIBS="$LIBS -lc_r"; pthread="yes"
4283fi
4284
4285
4286fi
4287
4288    ;;
4289  *-interix3*)
4290    INSTALL="./install-sh"
4291    ;;
4292esac
4293
4294
4295
4296
4297# Check whether --with-cflags was given.
4298if test "${with_cflags+set}" = set; then :
4299  withval=$with_cflags; CFLAGS="$CFLAGS $withval"
4300fi
4301
4302
4303
4304# Check whether --with-libs was given.
4305if test "${with_libs+set}" = set; then :
4306  withval=$with_libs; LIBS="$LIBS $withval"
4307fi
4308
4309
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4311$as_echo_n "checking for inline... " >&6; }
4312if ${ac_cv_c_inline+:} false; then :
4313  $as_echo_n "(cached) " >&6
4314else
4315  ac_cv_c_inline=no
4316for ac_kw in inline __inline__ __inline; do
4317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318/* end confdefs.h.  */
4319#ifndef __cplusplus
4320typedef int foo_t;
4321static $ac_kw foo_t static_foo () {return 0; }
4322$ac_kw foo_t foo () {return 0; }
4323#endif
4324
4325_ACEOF
4326if ac_fn_c_try_compile "$LINENO"; then :
4327  ac_cv_c_inline=$ac_kw
4328fi
4329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330  test "$ac_cv_c_inline" != no && break
4331done
4332
4333fi
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4335$as_echo "$ac_cv_c_inline" >&6; }
4336
4337case $ac_cv_c_inline in
4338  inline | yes) ;;
4339  *)
4340    case $ac_cv_c_inline in
4341      no) ac_val=;;
4342      *) ac_val=$ac_cv_c_inline;;
4343    esac
4344    cat >>confdefs.h <<_ACEOF
4345#ifndef __cplusplus
4346#define inline $ac_val
4347#endif
4348_ACEOF
4349    ;;
4350esac
4351
4352
4353
4354# Check whether --enable-largefile was given.
4355if test "${enable_largefile+set}" = set; then :
4356  enableval=$enable_largefile;
4357fi
4358
4359if test "$enable_largefile" != no; then
4360
4361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4362$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4363if ${ac_cv_sys_largefile_CC+:} false; then :
4364  $as_echo_n "(cached) " >&6
4365else
4366  ac_cv_sys_largefile_CC=no
4367     if test "$GCC" != yes; then
4368       ac_save_CC=$CC
4369       while :; do
4370	 # IRIX 6.2 and later do not support large files by default,
4371	 # so use the C compiler's -n32 option if that helps.
4372	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373/* end confdefs.h.  */
4374#include <sys/types.h>
4375 /* Check that off_t can represent 2**63 - 1 correctly.
4376    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4377    since some C++ compilers masquerading as C compilers
4378    incorrectly reject 9223372036854775807.  */
4379#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4380  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4381		       && LARGE_OFF_T % 2147483647 == 1)
4382		      ? 1 : -1];
4383int
4384main ()
4385{
4386
4387  ;
4388  return 0;
4389}
4390_ACEOF
4391	 if ac_fn_c_try_compile "$LINENO"; then :
4392  break
4393fi
4394rm -f core conftest.err conftest.$ac_objext
4395	 CC="$CC -n32"
4396	 if ac_fn_c_try_compile "$LINENO"; then :
4397  ac_cv_sys_largefile_CC=' -n32'; break
4398fi
4399rm -f core conftest.err conftest.$ac_objext
4400	 break
4401       done
4402       CC=$ac_save_CC
4403       rm -f conftest.$ac_ext
4404    fi
4405fi
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4407$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4408  if test "$ac_cv_sys_largefile_CC" != no; then
4409    CC=$CC$ac_cv_sys_largefile_CC
4410  fi
4411
4412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4413$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4414if ${ac_cv_sys_file_offset_bits+:} false; then :
4415  $as_echo_n "(cached) " >&6
4416else
4417  while :; do
4418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419/* end confdefs.h.  */
4420#include <sys/types.h>
4421 /* Check that off_t can represent 2**63 - 1 correctly.
4422    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4423    since some C++ compilers masquerading as C compilers
4424    incorrectly reject 9223372036854775807.  */
4425#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4426  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4427		       && LARGE_OFF_T % 2147483647 == 1)
4428		      ? 1 : -1];
4429int
4430main ()
4431{
4432
4433  ;
4434  return 0;
4435}
4436_ACEOF
4437if ac_fn_c_try_compile "$LINENO"; then :
4438  ac_cv_sys_file_offset_bits=no; break
4439fi
4440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442/* end confdefs.h.  */
4443#define _FILE_OFFSET_BITS 64
4444#include <sys/types.h>
4445 /* Check that off_t can represent 2**63 - 1 correctly.
4446    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4447    since some C++ compilers masquerading as C compilers
4448    incorrectly reject 9223372036854775807.  */
4449#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4450  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4451		       && LARGE_OFF_T % 2147483647 == 1)
4452		      ? 1 : -1];
4453int
4454main ()
4455{
4456
4457  ;
4458  return 0;
4459}
4460_ACEOF
4461if ac_fn_c_try_compile "$LINENO"; then :
4462  ac_cv_sys_file_offset_bits=64; break
4463fi
4464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4465  ac_cv_sys_file_offset_bits=unknown
4466  break
4467done
4468fi
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4470$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4471case $ac_cv_sys_file_offset_bits in #(
4472  no | unknown) ;;
4473  *)
4474cat >>confdefs.h <<_ACEOF
4475#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4476_ACEOF
4477;;
4478esac
4479rm -rf conftest*
4480  if test $ac_cv_sys_file_offset_bits = unknown; then
4481    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4482$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4483if ${ac_cv_sys_large_files+:} false; then :
4484  $as_echo_n "(cached) " >&6
4485else
4486  while :; do
4487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488/* end confdefs.h.  */
4489#include <sys/types.h>
4490 /* Check that off_t can represent 2**63 - 1 correctly.
4491    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4492    since some C++ compilers masquerading as C compilers
4493    incorrectly reject 9223372036854775807.  */
4494#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4495  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4496		       && LARGE_OFF_T % 2147483647 == 1)
4497		      ? 1 : -1];
4498int
4499main ()
4500{
4501
4502  ;
4503  return 0;
4504}
4505_ACEOF
4506if ac_fn_c_try_compile "$LINENO"; then :
4507  ac_cv_sys_large_files=no; break
4508fi
4509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511/* end confdefs.h.  */
4512#define _LARGE_FILES 1
4513#include <sys/types.h>
4514 /* Check that off_t can represent 2**63 - 1 correctly.
4515    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4516    since some C++ compilers masquerading as C compilers
4517    incorrectly reject 9223372036854775807.  */
4518#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4519  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4520		       && LARGE_OFF_T % 2147483647 == 1)
4521		      ? 1 : -1];
4522int
4523main ()
4524{
4525
4526  ;
4527  return 0;
4528}
4529_ACEOF
4530if ac_fn_c_try_compile "$LINENO"; then :
4531  ac_cv_sys_large_files=1; break
4532fi
4533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534  ac_cv_sys_large_files=unknown
4535  break
4536done
4537fi
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4539$as_echo "$ac_cv_sys_large_files" >&6; }
4540case $ac_cv_sys_large_files in #(
4541  no | unknown) ;;
4542  *)
4543cat >>confdefs.h <<_ACEOF
4544#define _LARGE_FILES $ac_cv_sys_large_files
4545_ACEOF
4546;;
4547esac
4548rm -rf conftest*
4549  fi
4550
4551
4552fi
4553
4554if test "${ac_cv_sys_file_offset_bits}" != no ; then
4555    CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=${ac_cv_sys_file_offset_bits}"
4556fi
4557if test "${ac_cv_sys_large_files}" != no ; then
4558    CFLAGS="$CFLAGS -D_LARGE_FILES=${ac_cv_sys_large_files}"
4559fi
4560
4561
4562ac_ext=c
4563ac_cpp='$CPP $CPPFLAGS'
4564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566ac_compiler_gnu=$ac_cv_c_compiler_gnu
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4568$as_echo_n "checking how to run the C preprocessor... " >&6; }
4569# On Suns, sometimes $CPP names a directory.
4570if test -n "$CPP" && test -d "$CPP"; then
4571  CPP=
4572fi
4573if test -z "$CPP"; then
4574  if ${ac_cv_prog_CPP+:} false; then :
4575  $as_echo_n "(cached) " >&6
4576else
4577      # Double quotes because CPP needs to be expanded
4578    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4579    do
4580      ac_preproc_ok=false
4581for ac_c_preproc_warn_flag in '' yes
4582do
4583  # Use a header file that comes with gcc, so configuring glibc
4584  # with a fresh cross-compiler works.
4585  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4586  # <limits.h> exists even on freestanding compilers.
4587  # On the NeXT, cc -E runs the code through the compiler's parser,
4588  # not just through cpp. "Syntax error" is here to catch this case.
4589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590/* end confdefs.h.  */
4591#ifdef __STDC__
4592# include <limits.h>
4593#else
4594# include <assert.h>
4595#endif
4596		     Syntax error
4597_ACEOF
4598if ac_fn_c_try_cpp "$LINENO"; then :
4599
4600else
4601  # Broken: fails on valid input.
4602continue
4603fi
4604rm -f conftest.err conftest.i conftest.$ac_ext
4605
4606  # OK, works on sane cases.  Now check whether nonexistent headers
4607  # can be detected and how.
4608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609/* end confdefs.h.  */
4610#include <ac_nonexistent.h>
4611_ACEOF
4612if ac_fn_c_try_cpp "$LINENO"; then :
4613  # Broken: success on invalid input.
4614continue
4615else
4616  # Passes both tests.
4617ac_preproc_ok=:
4618break
4619fi
4620rm -f conftest.err conftest.i conftest.$ac_ext
4621
4622done
4623# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4624rm -f conftest.i conftest.err conftest.$ac_ext
4625if $ac_preproc_ok; then :
4626  break
4627fi
4628
4629    done
4630    ac_cv_prog_CPP=$CPP
4631
4632fi
4633  CPP=$ac_cv_prog_CPP
4634else
4635  ac_cv_prog_CPP=$CPP
4636fi
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4638$as_echo "$CPP" >&6; }
4639ac_preproc_ok=false
4640for ac_c_preproc_warn_flag in '' yes
4641do
4642  # Use a header file that comes with gcc, so configuring glibc
4643  # with a fresh cross-compiler works.
4644  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4645  # <limits.h> exists even on freestanding compilers.
4646  # On the NeXT, cc -E runs the code through the compiler's parser,
4647  # not just through cpp. "Syntax error" is here to catch this case.
4648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649/* end confdefs.h.  */
4650#ifdef __STDC__
4651# include <limits.h>
4652#else
4653# include <assert.h>
4654#endif
4655		     Syntax error
4656_ACEOF
4657if ac_fn_c_try_cpp "$LINENO"; then :
4658
4659else
4660  # Broken: fails on valid input.
4661continue
4662fi
4663rm -f conftest.err conftest.i conftest.$ac_ext
4664
4665  # OK, works on sane cases.  Now check whether nonexistent headers
4666  # can be detected and how.
4667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668/* end confdefs.h.  */
4669#include <ac_nonexistent.h>
4670_ACEOF
4671if ac_fn_c_try_cpp "$LINENO"; then :
4672  # Broken: success on invalid input.
4673continue
4674else
4675  # Passes both tests.
4676ac_preproc_ok=:
4677break
4678fi
4679rm -f conftest.err conftest.i conftest.$ac_ext
4680
4681done
4682# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4683rm -f conftest.i conftest.err conftest.$ac_ext
4684if $ac_preproc_ok; then :
4685
4686else
4687  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4689as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4690See \`config.log' for more details" "$LINENO" 5; }
4691fi
4692
4693ac_ext=c
4694ac_cpp='$CPP $CPPFLAGS'
4695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4697ac_compiler_gnu=$ac_cv_c_compiler_gnu
4698
4699
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4701$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4702if ${ac_cv_path_GREP+:} false; then :
4703  $as_echo_n "(cached) " >&6
4704else
4705  if test -z "$GREP"; then
4706  ac_path_GREP_found=false
4707  # Loop through the user's path and test for each of PROGNAME-LIST
4708  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4710do
4711  IFS=$as_save_IFS
4712  test -z "$as_dir" && as_dir=.
4713    for ac_prog in grep ggrep; do
4714    for ac_exec_ext in '' $ac_executable_extensions; do
4715      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4716      as_fn_executable_p "$ac_path_GREP" || continue
4717# Check for GNU ac_path_GREP and select it if it is found.
4718  # Check for GNU $ac_path_GREP
4719case `"$ac_path_GREP" --version 2>&1` in
4720*GNU*)
4721  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4722*)
4723  ac_count=0
4724  $as_echo_n 0123456789 >"conftest.in"
4725  while :
4726  do
4727    cat "conftest.in" "conftest.in" >"conftest.tmp"
4728    mv "conftest.tmp" "conftest.in"
4729    cp "conftest.in" "conftest.nl"
4730    $as_echo 'GREP' >> "conftest.nl"
4731    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4732    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4733    as_fn_arith $ac_count + 1 && ac_count=$as_val
4734    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4735      # Best one so far, save it but keep looking for a better one
4736      ac_cv_path_GREP="$ac_path_GREP"
4737      ac_path_GREP_max=$ac_count
4738    fi
4739    # 10*(2^10) chars as input seems more than enough
4740    test $ac_count -gt 10 && break
4741  done
4742  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4743esac
4744
4745      $ac_path_GREP_found && break 3
4746    done
4747  done
4748  done
4749IFS=$as_save_IFS
4750  if test -z "$ac_cv_path_GREP"; then
4751    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4752  fi
4753else
4754  ac_cv_path_GREP=$GREP
4755fi
4756
4757fi
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4759$as_echo "$ac_cv_path_GREP" >&6; }
4760 GREP="$ac_cv_path_GREP"
4761
4762
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4764$as_echo_n "checking for egrep... " >&6; }
4765if ${ac_cv_path_EGREP+:} false; then :
4766  $as_echo_n "(cached) " >&6
4767else
4768  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4769   then ac_cv_path_EGREP="$GREP -E"
4770   else
4771     if test -z "$EGREP"; then
4772  ac_path_EGREP_found=false
4773  # Loop through the user's path and test for each of PROGNAME-LIST
4774  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4776do
4777  IFS=$as_save_IFS
4778  test -z "$as_dir" && as_dir=.
4779    for ac_prog in egrep; do
4780    for ac_exec_ext in '' $ac_executable_extensions; do
4781      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4782      as_fn_executable_p "$ac_path_EGREP" || continue
4783# Check for GNU ac_path_EGREP and select it if it is found.
4784  # Check for GNU $ac_path_EGREP
4785case `"$ac_path_EGREP" --version 2>&1` in
4786*GNU*)
4787  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4788*)
4789  ac_count=0
4790  $as_echo_n 0123456789 >"conftest.in"
4791  while :
4792  do
4793    cat "conftest.in" "conftest.in" >"conftest.tmp"
4794    mv "conftest.tmp" "conftest.in"
4795    cp "conftest.in" "conftest.nl"
4796    $as_echo 'EGREP' >> "conftest.nl"
4797    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4798    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4799    as_fn_arith $ac_count + 1 && ac_count=$as_val
4800    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4801      # Best one so far, save it but keep looking for a better one
4802      ac_cv_path_EGREP="$ac_path_EGREP"
4803      ac_path_EGREP_max=$ac_count
4804    fi
4805    # 10*(2^10) chars as input seems more than enough
4806    test $ac_count -gt 10 && break
4807  done
4808  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4809esac
4810
4811      $ac_path_EGREP_found && break 3
4812    done
4813  done
4814  done
4815IFS=$as_save_IFS
4816  if test -z "$ac_cv_path_EGREP"; then
4817    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4818  fi
4819else
4820  ac_cv_path_EGREP=$EGREP
4821fi
4822
4823   fi
4824fi
4825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4826$as_echo "$ac_cv_path_EGREP" >&6; }
4827 EGREP="$ac_cv_path_EGREP"
4828
4829
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4831$as_echo_n "checking for ANSI C header files... " >&6; }
4832if ${ac_cv_header_stdc+:} false; then :
4833  $as_echo_n "(cached) " >&6
4834else
4835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836/* end confdefs.h.  */
4837#include <stdlib.h>
4838#include <stdarg.h>
4839#include <string.h>
4840#include <float.h>
4841
4842int
4843main ()
4844{
4845
4846  ;
4847  return 0;
4848}
4849_ACEOF
4850if ac_fn_c_try_compile "$LINENO"; then :
4851  ac_cv_header_stdc=yes
4852else
4853  ac_cv_header_stdc=no
4854fi
4855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856
4857if test $ac_cv_header_stdc = yes; then
4858  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860/* end confdefs.h.  */
4861#include <string.h>
4862
4863_ACEOF
4864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4865  $EGREP "memchr" >/dev/null 2>&1; then :
4866
4867else
4868  ac_cv_header_stdc=no
4869fi
4870rm -f conftest*
4871
4872fi
4873
4874if test $ac_cv_header_stdc = yes; then
4875  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877/* end confdefs.h.  */
4878#include <stdlib.h>
4879
4880_ACEOF
4881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4882  $EGREP "free" >/dev/null 2>&1; then :
4883
4884else
4885  ac_cv_header_stdc=no
4886fi
4887rm -f conftest*
4888
4889fi
4890
4891if test $ac_cv_header_stdc = yes; then
4892  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4893  if test "$cross_compiling" = yes; then :
4894  :
4895else
4896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897/* end confdefs.h.  */
4898#include <ctype.h>
4899#include <stdlib.h>
4900#if ((' ' & 0x0FF) == 0x020)
4901# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4902# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4903#else
4904# define ISLOWER(c) \
4905		   (('a' <= (c) && (c) <= 'i') \
4906		     || ('j' <= (c) && (c) <= 'r') \
4907		     || ('s' <= (c) && (c) <= 'z'))
4908# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4909#endif
4910
4911#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4912int
4913main ()
4914{
4915  int i;
4916  for (i = 0; i < 256; i++)
4917    if (XOR (islower (i), ISLOWER (i))
4918	|| toupper (i) != TOUPPER (i))
4919      return 2;
4920  return 0;
4921}
4922_ACEOF
4923if ac_fn_c_try_run "$LINENO"; then :
4924
4925else
4926  ac_cv_header_stdc=no
4927fi
4928rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4929  conftest.$ac_objext conftest.beam conftest.$ac_ext
4930fi
4931
4932fi
4933fi
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4935$as_echo "$ac_cv_header_stdc" >&6; }
4936if test $ac_cv_header_stdc = yes; then
4937
4938$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4939
4940fi
4941
4942# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4943for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4944		  inttypes.h stdint.h unistd.h
4945do :
4946  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4947ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4948"
4949if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4950  cat >>confdefs.h <<_ACEOF
4951#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4952_ACEOF
4953
4954fi
4955
4956done
4957
4958
4959# The cast to long int works around a bug in the HP C Compiler
4960# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4961# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4962# This bug is HP SR number 8606223364.
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
4964$as_echo_n "checking size of short... " >&6; }
4965if ${ac_cv_sizeof_short+:} false; then :
4966  $as_echo_n "(cached) " >&6
4967else
4968  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
4969
4970else
4971  if test "$ac_cv_type_short" = yes; then
4972     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4974as_fn_error 77 "cannot compute sizeof (short)
4975See \`config.log' for more details" "$LINENO" 5; }
4976   else
4977     ac_cv_sizeof_short=0
4978   fi
4979fi
4980
4981fi
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
4983$as_echo "$ac_cv_sizeof_short" >&6; }
4984
4985
4986
4987cat >>confdefs.h <<_ACEOF
4988#define SIZEOF_SHORT $ac_cv_sizeof_short
4989_ACEOF
4990
4991
4992# The cast to long int works around a bug in the HP C Compiler
4993# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4994# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4995# This bug is HP SR number 8606223364.
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4997$as_echo_n "checking size of int... " >&6; }
4998if ${ac_cv_sizeof_int+:} false; then :
4999  $as_echo_n "(cached) " >&6
5000else
5001  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5002
5003else
5004  if test "$ac_cv_type_int" = yes; then
5005     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5007as_fn_error 77 "cannot compute sizeof (int)
5008See \`config.log' for more details" "$LINENO" 5; }
5009   else
5010     ac_cv_sizeof_int=0
5011   fi
5012fi
5013
5014fi
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5016$as_echo "$ac_cv_sizeof_int" >&6; }
5017
5018
5019
5020cat >>confdefs.h <<_ACEOF
5021#define SIZEOF_INT $ac_cv_sizeof_int
5022_ACEOF
5023
5024
5025# The cast to long int works around a bug in the HP C Compiler
5026# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5027# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5028# This bug is HP SR number 8606223364.
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5030$as_echo_n "checking size of long... " >&6; }
5031if ${ac_cv_sizeof_long+:} false; then :
5032  $as_echo_n "(cached) " >&6
5033else
5034  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5035
5036else
5037  if test "$ac_cv_type_long" = yes; then
5038     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5040as_fn_error 77 "cannot compute sizeof (long)
5041See \`config.log' for more details" "$LINENO" 5; }
5042   else
5043     ac_cv_sizeof_long=0
5044   fi
5045fi
5046
5047fi
5048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5049$as_echo "$ac_cv_sizeof_long" >&6; }
5050
5051
5052
5053cat >>confdefs.h <<_ACEOF
5054#define SIZEOF_LONG $ac_cv_sizeof_long
5055_ACEOF
5056
5057
5058# The cast to long int works around a bug in the HP C Compiler
5059# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5060# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5061# This bug is HP SR number 8606223364.
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5063$as_echo_n "checking size of long long... " >&6; }
5064if ${ac_cv_sizeof_long_long+:} false; then :
5065  $as_echo_n "(cached) " >&6
5066else
5067  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5068
5069else
5070  if test "$ac_cv_type_long_long" = yes; then
5071     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5073as_fn_error 77 "cannot compute sizeof (long long)
5074See \`config.log' for more details" "$LINENO" 5; }
5075   else
5076     ac_cv_sizeof_long_long=0
5077   fi
5078fi
5079
5080fi
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5082$as_echo "$ac_cv_sizeof_long_long" >&6; }
5083
5084
5085
5086cat >>confdefs.h <<_ACEOF
5087#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5088_ACEOF
5089
5090
5091SIZEOF_SHORT=$ac_cv_sizeof_short
5092SIZEOF_INT=$ac_cv_sizeof_int
5093SIZEOF_LONG=$ac_cv_sizeof_long
5094SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
5095
5096
5097
5098
5099
5100
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log in -lm" >&5
5102$as_echo_n "checking for log in -lm... " >&6; }
5103if ${ac_cv_lib_m_log+:} false; then :
5104  $as_echo_n "(cached) " >&6
5105else
5106  ac_check_lib_save_LIBS=$LIBS
5107LIBS="-lm  $LIBS"
5108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109/* end confdefs.h.  */
5110
5111/* Override any GCC internal prototype to avoid an error.
5112   Use char because int might match the return type of a GCC
5113   builtin and then its argument prototype would still apply.  */
5114#ifdef __cplusplus
5115extern "C"
5116#endif
5117char log ();
5118int
5119main ()
5120{
5121return log ();
5122  ;
5123  return 0;
5124}
5125_ACEOF
5126if ac_fn_c_try_link "$LINENO"; then :
5127  ac_cv_lib_m_log=yes
5128else
5129  ac_cv_lib_m_log=no
5130fi
5131rm -f core conftest.err conftest.$ac_objext \
5132    conftest$ac_exeext conftest.$ac_ext
5133LIBS=$ac_check_lib_save_LIBS
5134fi
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log" >&5
5136$as_echo "$ac_cv_lib_m_log" >&6; }
5137if test "x$ac_cv_lib_m_log" = xyes; then :
5138  cat >>confdefs.h <<_ACEOF
5139#define HAVE_LIBM 1
5140_ACEOF
5141
5142  LIBS="-lm $LIBS"
5143
5144fi
5145
5146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept in -lsocket" >&5
5147$as_echo_n "checking for accept in -lsocket... " >&6; }
5148if ${ac_cv_lib_socket_accept+:} false; then :
5149  $as_echo_n "(cached) " >&6
5150else
5151  ac_check_lib_save_LIBS=$LIBS
5152LIBS="-lsocket  $LIBS"
5153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154/* end confdefs.h.  */
5155
5156/* Override any GCC internal prototype to avoid an error.
5157   Use char because int might match the return type of a GCC
5158   builtin and then its argument prototype would still apply.  */
5159#ifdef __cplusplus
5160extern "C"
5161#endif
5162char accept ();
5163int
5164main ()
5165{
5166return accept ();
5167  ;
5168  return 0;
5169}
5170_ACEOF
5171if ac_fn_c_try_link "$LINENO"; then :
5172  ac_cv_lib_socket_accept=yes
5173else
5174  ac_cv_lib_socket_accept=no
5175fi
5176rm -f core conftest.err conftest.$ac_objext \
5177    conftest$ac_exeext conftest.$ac_ext
5178LIBS=$ac_check_lib_save_LIBS
5179fi
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_accept" >&5
5181$as_echo "$ac_cv_lib_socket_accept" >&6; }
5182if test "x$ac_cv_lib_socket_accept" = xyes; then :
5183  cat >>confdefs.h <<_ACEOF
5184#define HAVE_LIBSOCKET 1
5185_ACEOF
5186
5187  LIBS="-lsocket $LIBS"
5188
5189fi
5190
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
5192$as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
5193if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
5194  $as_echo_n "(cached) " >&6
5195else
5196  ac_check_lib_save_LIBS=$LIBS
5197LIBS="-lnsl  $LIBS"
5198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199/* end confdefs.h.  */
5200
5201/* Override any GCC internal prototype to avoid an error.
5202   Use char because int might match the return type of a GCC
5203   builtin and then its argument prototype would still apply.  */
5204#ifdef __cplusplus
5205extern "C"
5206#endif
5207char inet_ntoa ();
5208int
5209main ()
5210{
5211return inet_ntoa ();
5212  ;
5213  return 0;
5214}
5215_ACEOF
5216if ac_fn_c_try_link "$LINENO"; then :
5217  ac_cv_lib_nsl_inet_ntoa=yes
5218else
5219  ac_cv_lib_nsl_inet_ntoa=no
5220fi
5221rm -f core conftest.err conftest.$ac_objext \
5222    conftest$ac_exeext conftest.$ac_ext
5223LIBS=$ac_check_lib_save_LIBS
5224fi
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
5226$as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
5227if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
5228  cat >>confdefs.h <<_ACEOF
5229#define HAVE_LIBNSL 1
5230_ACEOF
5231
5232  LIBS="-lnsl $LIBS"
5233
5234fi
5235
5236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -lresolv" >&5
5237$as_echo_n "checking for inet_ntop in -lresolv... " >&6; }
5238if ${ac_cv_lib_resolv_inet_ntop+:} false; then :
5239  $as_echo_n "(cached) " >&6
5240else
5241  ac_check_lib_save_LIBS=$LIBS
5242LIBS="-lresolv  $LIBS"
5243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244/* end confdefs.h.  */
5245
5246/* Override any GCC internal prototype to avoid an error.
5247   Use char because int might match the return type of a GCC
5248   builtin and then its argument prototype would still apply.  */
5249#ifdef __cplusplus
5250extern "C"
5251#endif
5252char inet_ntop ();
5253int
5254main ()
5255{
5256return inet_ntop ();
5257  ;
5258  return 0;
5259}
5260_ACEOF
5261if ac_fn_c_try_link "$LINENO"; then :
5262  ac_cv_lib_resolv_inet_ntop=yes
5263else
5264  ac_cv_lib_resolv_inet_ntop=no
5265fi
5266rm -f core conftest.err conftest.$ac_objext \
5267    conftest$ac_exeext conftest.$ac_ext
5268LIBS=$ac_check_lib_save_LIBS
5269fi
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_ntop" >&5
5271$as_echo "$ac_cv_lib_resolv_inet_ntop" >&6; }
5272if test "x$ac_cv_lib_resolv_inet_ntop" = xyes; then :
5273  cat >>confdefs.h <<_ACEOF
5274#define HAVE_LIBRESOLV 1
5275_ACEOF
5276
5277  LIBS="-lresolv $LIBS"
5278
5279fi
5280
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -lbind" >&5
5282$as_echo_n "checking for inet_ntop in -lbind... " >&6; }
5283if ${ac_cv_lib_bind_inet_ntop+:} false; then :
5284  $as_echo_n "(cached) " >&6
5285else
5286  ac_check_lib_save_LIBS=$LIBS
5287LIBS="-lbind  $LIBS"
5288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289/* end confdefs.h.  */
5290
5291/* Override any GCC internal prototype to avoid an error.
5292   Use char because int might match the return type of a GCC
5293   builtin and then its argument prototype would still apply.  */
5294#ifdef __cplusplus
5295extern "C"
5296#endif
5297char inet_ntop ();
5298int
5299main ()
5300{
5301return inet_ntop ();
5302  ;
5303  return 0;
5304}
5305_ACEOF
5306if ac_fn_c_try_link "$LINENO"; then :
5307  ac_cv_lib_bind_inet_ntop=yes
5308else
5309  ac_cv_lib_bind_inet_ntop=no
5310fi
5311rm -f core conftest.err conftest.$ac_objext \
5312    conftest$ac_exeext conftest.$ac_ext
5313LIBS=$ac_check_lib_save_LIBS
5314fi
5315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntop" >&5
5316$as_echo "$ac_cv_lib_bind_inet_ntop" >&6; }
5317if test "x$ac_cv_lib_bind_inet_ntop" = xyes; then :
5318  cat >>confdefs.h <<_ACEOF
5319#define HAVE_LIBBIND 1
5320_ACEOF
5321
5322  LIBS="-lbind $LIBS"
5323
5324fi
5325
5326if test -z "$pthread"; then
5327    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_exit in -lpthread" >&5
5328$as_echo_n "checking for pthread_exit in -lpthread... " >&6; }
5329if ${ac_cv_lib_pthread_pthread_exit+:} false; then :
5330  $as_echo_n "(cached) " >&6
5331else
5332  ac_check_lib_save_LIBS=$LIBS
5333LIBS="-lpthread  $LIBS"
5334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335/* end confdefs.h.  */
5336
5337/* Override any GCC internal prototype to avoid an error.
5338   Use char because int might match the return type of a GCC
5339   builtin and then its argument prototype would still apply.  */
5340#ifdef __cplusplus
5341extern "C"
5342#endif
5343char pthread_exit ();
5344int
5345main ()
5346{
5347return pthread_exit ();
5348  ;
5349  return 0;
5350}
5351_ACEOF
5352if ac_fn_c_try_link "$LINENO"; then :
5353  ac_cv_lib_pthread_pthread_exit=yes
5354else
5355  ac_cv_lib_pthread_pthread_exit=no
5356fi
5357rm -f core conftest.err conftest.$ac_objext \
5358    conftest$ac_exeext conftest.$ac_ext
5359LIBS=$ac_check_lib_save_LIBS
5360fi
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_exit" >&5
5362$as_echo "$ac_cv_lib_pthread_pthread_exit" >&6; }
5363if test "x$ac_cv_lib_pthread_pthread_exit" = xyes; then :
5364  LIBS="$LIBS -lpthread"
5365fi
5366
5367fi
5368
5369
5370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5371$as_echo_n "checking for ANSI C header files... " >&6; }
5372if ${ac_cv_header_stdc+:} false; then :
5373  $as_echo_n "(cached) " >&6
5374else
5375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376/* end confdefs.h.  */
5377#include <stdlib.h>
5378#include <stdarg.h>
5379#include <string.h>
5380#include <float.h>
5381
5382int
5383main ()
5384{
5385
5386  ;
5387  return 0;
5388}
5389_ACEOF
5390if ac_fn_c_try_compile "$LINENO"; then :
5391  ac_cv_header_stdc=yes
5392else
5393  ac_cv_header_stdc=no
5394fi
5395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5396
5397if test $ac_cv_header_stdc = yes; then
5398  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400/* end confdefs.h.  */
5401#include <string.h>
5402
5403_ACEOF
5404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5405  $EGREP "memchr" >/dev/null 2>&1; then :
5406
5407else
5408  ac_cv_header_stdc=no
5409fi
5410rm -f conftest*
5411
5412fi
5413
5414if test $ac_cv_header_stdc = yes; then
5415  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417/* end confdefs.h.  */
5418#include <stdlib.h>
5419
5420_ACEOF
5421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5422  $EGREP "free" >/dev/null 2>&1; then :
5423
5424else
5425  ac_cv_header_stdc=no
5426fi
5427rm -f conftest*
5428
5429fi
5430
5431if test $ac_cv_header_stdc = yes; then
5432  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5433  if test "$cross_compiling" = yes; then :
5434  :
5435else
5436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437/* end confdefs.h.  */
5438#include <ctype.h>
5439#include <stdlib.h>
5440#if ((' ' & 0x0FF) == 0x020)
5441# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5442# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5443#else
5444# define ISLOWER(c) \
5445		   (('a' <= (c) && (c) <= 'i') \
5446		     || ('j' <= (c) && (c) <= 'r') \
5447		     || ('s' <= (c) && (c) <= 'z'))
5448# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5449#endif
5450
5451#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5452int
5453main ()
5454{
5455  int i;
5456  for (i = 0; i < 256; i++)
5457    if (XOR (islower (i), ISLOWER (i))
5458	|| toupper (i) != TOUPPER (i))
5459      return 2;
5460  return 0;
5461}
5462_ACEOF
5463if ac_fn_c_try_run "$LINENO"; then :
5464
5465else
5466  ac_cv_header_stdc=no
5467fi
5468rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5469  conftest.$ac_objext conftest.beam conftest.$ac_ext
5470fi
5471
5472fi
5473fi
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5475$as_echo "$ac_cv_header_stdc" >&6; }
5476if test $ac_cv_header_stdc = yes; then
5477
5478$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5479
5480fi
5481
5482for ac_header in sys/ioctl.h sys/time.h sys/types.h unistd.h sys/poll.h
5483do :
5484  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5485ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5486if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5487  cat >>confdefs.h <<_ACEOF
5488#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5489_ACEOF
5490
5491fi
5492
5493done
5494
5495for ac_header in pthread.h getopt.h syslog.h zlib.h execinfo.h stdlib.h
5496do :
5497  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5498ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5499if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5500  cat >>confdefs.h <<_ACEOF
5501#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5502_ACEOF
5503
5504fi
5505
5506done
5507
5508for ac_header in sys/socket.h sys/sockio.h netinet/in.h
5509do :
5510  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5511ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5512if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5513  cat >>confdefs.h <<_ACEOF
5514#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5515_ACEOF
5516
5517fi
5518
5519done
5520
5521for ac_header in net/if.h
5522do :
5523  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h>
5524   #if STDC_HEADERS
5525   #  include <stdlib.h>
5526   #  include <stddef.h>
5527   #else
5528   #if HAVE_STDLIB_H
5529   #  include <stdlib.h>
5530   # endif
5531   #endif
5532   #if HAVE_SYS_SOCKET_H
5533   # include <sys/socket.h>
5534   #endif
5535
5536"
5537if test "x$ac_cv_header_net_if_h" = xyes; then :
5538  cat >>confdefs.h <<_ACEOF
5539#define HAVE_NET_IF_H 1
5540_ACEOF
5541
5542fi
5543
5544done
5545
5546for ac_header in sys/ucontext.h
5547do :
5548  ac_fn_c_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
5549if test "x$ac_cv_header_sys_ucontext_h" = xyes; then :
5550  cat >>confdefs.h <<_ACEOF
5551#define HAVE_SYS_UCONTEXT_H 1
5552_ACEOF
5553 $as_echo "#define HAVE_UCONTEXT 1" >>confdefs.h
5554
5555else
5556  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: System lacks ucontext.h - user context support" >&5
5557$as_echo "$as_me: WARNING: System lacks ucontext.h - user context support" >&2;}
5558
5559fi
5560
5561done
5562
5563
5564
5565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566/* end confdefs.h.  */
5567
5568int
5569main ()
5570{
5571char *func = __FUNCTION__;
5572  ;
5573  return 0;
5574}
5575_ACEOF
5576if ac_fn_c_try_compile "$LINENO"; then :
5577  $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
5578
5579fi
5580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582/* end confdefs.h.  */
5583
5584int
5585main ()
5586{
5587char *func = __func__;
5588  ;
5589  return 0;
5590}
5591_ACEOF
5592if ac_fn_c_try_compile "$LINENO"; then :
5593  $as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
5594
5595fi
5596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597
5598
5599      if test "X$prefix" = "XNONE"; then
5600    acl_final_prefix="$ac_default_prefix"
5601  else
5602    acl_final_prefix="$prefix"
5603  fi
5604  if test "X$exec_prefix" = "XNONE"; then
5605    acl_final_exec_prefix='${prefix}'
5606  else
5607    acl_final_exec_prefix="$exec_prefix"
5608  fi
5609  acl_save_prefix="$prefix"
5610  prefix="$acl_final_prefix"
5611  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5612  prefix="$acl_save_prefix"
5613
5614
5615
5616# Check whether --with-gnu-ld was given.
5617if test "${with_gnu_ld+set}" = set; then :
5618  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5619else
5620  with_gnu_ld=no
5621fi
5622
5623# Prepare PATH_SEPARATOR.
5624# The user is always right.
5625if test "${PATH_SEPARATOR+set}" != set; then
5626  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5627  # contains only /bin. Note that ksh looks also at the FPATH variable,
5628  # so we have to set that as well for the test.
5629  PATH_SEPARATOR=:
5630  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5631    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5632           || PATH_SEPARATOR=';'
5633       }
5634fi
5635
5636ac_prog=ld
5637if test "$GCC" = yes; then
5638  # Check if gcc -print-prog-name=ld gives a path.
5639  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5640$as_echo_n "checking for ld used by $CC... " >&6; }
5641  case $host in
5642  *-*-mingw*)
5643    # gcc leaves a trailing carriage return which upsets mingw
5644    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5645  *)
5646    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5647  esac
5648  case $ac_prog in
5649    # Accept absolute paths.
5650    [\\/]* | ?:[\\/]*)
5651      re_direlt='/[^/][^/]*/\.\./'
5652      # Canonicalize the pathname of ld
5653      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
5654      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
5655        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5656      done
5657      test -z "$LD" && LD="$ac_prog"
5658      ;;
5659  "")
5660    # If it fails, then pretend we aren't using GCC.
5661    ac_prog=ld
5662    ;;
5663  *)
5664    # If it is relative, then search for the first ld in PATH.
5665    with_gnu_ld=unknown
5666    ;;
5667  esac
5668elif test "$with_gnu_ld" = yes; then
5669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5670$as_echo_n "checking for GNU ld... " >&6; }
5671else
5672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5673$as_echo_n "checking for non-GNU ld... " >&6; }
5674fi
5675if ${acl_cv_path_LD+:} false; then :
5676  $as_echo_n "(cached) " >&6
5677else
5678  if test -z "$LD"; then
5679  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5680  for ac_dir in $PATH; do
5681    IFS="$acl_save_ifs"
5682    test -z "$ac_dir" && ac_dir=.
5683    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5684      acl_cv_path_LD="$ac_dir/$ac_prog"
5685      # Check to see if the program is GNU ld.  I'd rather use --version,
5686      # but apparently some variants of GNU ld only accept -v.
5687      # Break only if it was the GNU/non-GNU ld that we prefer.
5688      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
5689      *GNU* | *'with BFD'*)
5690        test "$with_gnu_ld" != no && break
5691        ;;
5692      *)
5693        test "$with_gnu_ld" != yes && break
5694        ;;
5695      esac
5696    fi
5697  done
5698  IFS="$acl_save_ifs"
5699else
5700  acl_cv_path_LD="$LD" # Let the user override the test with a path.
5701fi
5702fi
5703
5704LD="$acl_cv_path_LD"
5705if test -n "$LD"; then
5706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5707$as_echo "$LD" >&6; }
5708else
5709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710$as_echo "no" >&6; }
5711fi
5712test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5714$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5715if ${acl_cv_prog_gnu_ld+:} false; then :
5716  $as_echo_n "(cached) " >&6
5717else
5718  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5719case `$LD -v 2>&1 </dev/null` in
5720*GNU* | *'with BFD'*)
5721  acl_cv_prog_gnu_ld=yes
5722  ;;
5723*)
5724  acl_cv_prog_gnu_ld=no
5725  ;;
5726esac
5727fi
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5729$as_echo "$acl_cv_prog_gnu_ld" >&6; }
5730with_gnu_ld=$acl_cv_prog_gnu_ld
5731
5732
5733
5734
5735                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5736$as_echo_n "checking for shared library run path origin... " >&6; }
5737if ${acl_cv_rpath+:} false; then :
5738  $as_echo_n "(cached) " >&6
5739else
5740
5741    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5742    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5743    . ./conftest.sh
5744    rm -f ./conftest.sh
5745    acl_cv_rpath=done
5746
5747fi
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5749$as_echo "$acl_cv_rpath" >&6; }
5750  wl="$acl_cv_wl"
5751  acl_libext="$acl_cv_libext"
5752  acl_shlibext="$acl_cv_shlibext"
5753  acl_libname_spec="$acl_cv_libname_spec"
5754  acl_library_names_spec="$acl_cv_library_names_spec"
5755  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5756  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5757  acl_hardcode_direct="$acl_cv_hardcode_direct"
5758  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5759    # Check whether --enable-rpath was given.
5760if test "${enable_rpath+set}" = set; then :
5761  enableval=$enable_rpath; :
5762else
5763  enable_rpath=yes
5764fi
5765
5766
5767
5768
5769  acl_libdirstem=lib
5770  acl_libdirstem2=
5771  case "$host_os" in
5772    solaris*)
5773                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5774$as_echo_n "checking for 64-bit host... " >&6; }
5775if ${gl_cv_solaris_64bit+:} false; then :
5776  $as_echo_n "(cached) " >&6
5777else
5778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779/* end confdefs.h.  */
5780
5781#ifdef _LP64
5782sixtyfour bits
5783#endif
5784
5785_ACEOF
5786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5787  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5788  gl_cv_solaris_64bit=yes
5789else
5790  gl_cv_solaris_64bit=no
5791fi
5792rm -f conftest*
5793
5794
5795fi
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5797$as_echo "$gl_cv_solaris_64bit" >&6; }
5798      if test $gl_cv_solaris_64bit = yes; then
5799        acl_libdirstem=lib/64
5800        case "$host_cpu" in
5801          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
5802          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5803        esac
5804      fi
5805      ;;
5806    *)
5807      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5808      if test -n "$searchpath"; then
5809        acl_save_IFS="${IFS= 	}"; IFS=":"
5810        for searchdir in $searchpath; do
5811          if test -d "$searchdir"; then
5812            case "$searchdir" in
5813              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5814              */../ | */.. )
5815                # Better ignore directories of this form. They are misleading.
5816                ;;
5817              *) searchdir=`cd "$searchdir" && pwd`
5818                 case "$searchdir" in
5819                   */lib64 ) acl_libdirstem=lib64 ;;
5820                 esac ;;
5821            esac
5822          fi
5823        done
5824        IFS="$acl_save_IFS"
5825      fi
5826      ;;
5827  esac
5828  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841    use_additional=yes
5842
5843  acl_save_prefix="$prefix"
5844  prefix="$acl_final_prefix"
5845  acl_save_exec_prefix="$exec_prefix"
5846  exec_prefix="$acl_final_exec_prefix"
5847
5848    eval additional_includedir=\"$includedir\"
5849    eval additional_libdir=\"$libdir\"
5850
5851  exec_prefix="$acl_save_exec_prefix"
5852  prefix="$acl_save_prefix"
5853
5854
5855# Check whether --with-libiconv-prefix was given.
5856if test "${with_libiconv_prefix+set}" = set; then :
5857  withval=$with_libiconv_prefix;
5858    if test "X$withval" = "Xno"; then
5859      use_additional=no
5860    else
5861      if test "X$withval" = "X"; then
5862
5863  acl_save_prefix="$prefix"
5864  prefix="$acl_final_prefix"
5865  acl_save_exec_prefix="$exec_prefix"
5866  exec_prefix="$acl_final_exec_prefix"
5867
5868          eval additional_includedir=\"$includedir\"
5869          eval additional_libdir=\"$libdir\"
5870
5871  exec_prefix="$acl_save_exec_prefix"
5872  prefix="$acl_save_prefix"
5873
5874      else
5875        additional_includedir="$withval/include"
5876        additional_libdir="$withval/$acl_libdirstem"
5877        if test "$acl_libdirstem2" != "$acl_libdirstem" \
5878           && ! test -d "$withval/$acl_libdirstem"; then
5879          additional_libdir="$withval/$acl_libdirstem2"
5880        fi
5881      fi
5882    fi
5883
5884fi
5885
5886      LIBICONV=
5887  LTLIBICONV=
5888  INCICONV=
5889  LIBICONV_PREFIX=
5890      HAVE_LIBICONV=
5891  rpathdirs=
5892  ltrpathdirs=
5893  names_already_handled=
5894  names_next_round='iconv '
5895  while test -n "$names_next_round"; do
5896    names_this_round="$names_next_round"
5897    names_next_round=
5898    for name in $names_this_round; do
5899      already_handled=
5900      for n in $names_already_handled; do
5901        if test "$n" = "$name"; then
5902          already_handled=yes
5903          break
5904        fi
5905      done
5906      if test -z "$already_handled"; then
5907        names_already_handled="$names_already_handled $name"
5908                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5909        eval value=\"\$HAVE_LIB$uppername\"
5910        if test -n "$value"; then
5911          if test "$value" = yes; then
5912            eval value=\"\$LIB$uppername\"
5913            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5914            eval value=\"\$LTLIB$uppername\"
5915            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5916          else
5917                                    :
5918          fi
5919        else
5920                              found_dir=
5921          found_la=
5922          found_so=
5923          found_a=
5924          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
5925          if test -n "$acl_shlibext"; then
5926            shrext=".$acl_shlibext"             # typically: shrext=.so
5927          else
5928            shrext=
5929          fi
5930          if test $use_additional = yes; then
5931            dir="$additional_libdir"
5932                                    if test -n "$acl_shlibext"; then
5933              if test -f "$dir/$libname$shrext"; then
5934                found_dir="$dir"
5935                found_so="$dir/$libname$shrext"
5936              else
5937                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5938                  ver=`(cd "$dir" && \
5939                        for f in "$libname$shrext".*; do echo "$f"; done \
5940                        | sed -e "s,^$libname$shrext\\\\.,," \
5941                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5942                        | sed 1q ) 2>/dev/null`
5943                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5944                    found_dir="$dir"
5945                    found_so="$dir/$libname$shrext.$ver"
5946                  fi
5947                else
5948                  eval library_names=\"$acl_library_names_spec\"
5949                  for f in $library_names; do
5950                    if test -f "$dir/$f"; then
5951                      found_dir="$dir"
5952                      found_so="$dir/$f"
5953                      break
5954                    fi
5955                  done
5956                fi
5957              fi
5958            fi
5959                        if test "X$found_dir" = "X"; then
5960              if test -f "$dir/$libname.$acl_libext"; then
5961                found_dir="$dir"
5962                found_a="$dir/$libname.$acl_libext"
5963              fi
5964            fi
5965            if test "X$found_dir" != "X"; then
5966              if test -f "$dir/$libname.la"; then
5967                found_la="$dir/$libname.la"
5968              fi
5969            fi
5970          fi
5971          if test "X$found_dir" = "X"; then
5972            for x in $LDFLAGS $LTLIBICONV; do
5973
5974  acl_save_prefix="$prefix"
5975  prefix="$acl_final_prefix"
5976  acl_save_exec_prefix="$exec_prefix"
5977  exec_prefix="$acl_final_exec_prefix"
5978  eval x=\"$x\"
5979  exec_prefix="$acl_save_exec_prefix"
5980  prefix="$acl_save_prefix"
5981
5982              case "$x" in
5983                -L*)
5984                  dir=`echo "X$x" | sed -e 's/^X-L//'`
5985                                    if test -n "$acl_shlibext"; then
5986                    if test -f "$dir/$libname$shrext"; then
5987                      found_dir="$dir"
5988                      found_so="$dir/$libname$shrext"
5989                    else
5990                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5991                        ver=`(cd "$dir" && \
5992                              for f in "$libname$shrext".*; do echo "$f"; done \
5993                              | sed -e "s,^$libname$shrext\\\\.,," \
5994                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5995                              | sed 1q ) 2>/dev/null`
5996                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5997                          found_dir="$dir"
5998                          found_so="$dir/$libname$shrext.$ver"
5999                        fi
6000                      else
6001                        eval library_names=\"$acl_library_names_spec\"
6002                        for f in $library_names; do
6003                          if test -f "$dir/$f"; then
6004                            found_dir="$dir"
6005                            found_so="$dir/$f"
6006                            break
6007                          fi
6008                        done
6009                      fi
6010                    fi
6011                  fi
6012                                    if test "X$found_dir" = "X"; then
6013                    if test -f "$dir/$libname.$acl_libext"; then
6014                      found_dir="$dir"
6015                      found_a="$dir/$libname.$acl_libext"
6016                    fi
6017                  fi
6018                  if test "X$found_dir" != "X"; then
6019                    if test -f "$dir/$libname.la"; then
6020                      found_la="$dir/$libname.la"
6021                    fi
6022                  fi
6023                  ;;
6024              esac
6025              if test "X$found_dir" != "X"; then
6026                break
6027              fi
6028            done
6029          fi
6030          if test "X$found_dir" != "X"; then
6031                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6032            if test "X$found_so" != "X"; then
6033                                                        if test "$enable_rpath" = no \
6034                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6035                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6036                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6037              else
6038                                                                                haveit=
6039                for x in $ltrpathdirs; do
6040                  if test "X$x" = "X$found_dir"; then
6041                    haveit=yes
6042                    break
6043                  fi
6044                done
6045                if test -z "$haveit"; then
6046                  ltrpathdirs="$ltrpathdirs $found_dir"
6047                fi
6048                                if test "$acl_hardcode_direct" = yes; then
6049                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6050                else
6051                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6052                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6053                                                            haveit=
6054                    for x in $rpathdirs; do
6055                      if test "X$x" = "X$found_dir"; then
6056                        haveit=yes
6057                        break
6058                      fi
6059                    done
6060                    if test -z "$haveit"; then
6061                      rpathdirs="$rpathdirs $found_dir"
6062                    fi
6063                  else
6064                                                                                haveit=
6065                    for x in $LDFLAGS $LIBICONV; do
6066
6067  acl_save_prefix="$prefix"
6068  prefix="$acl_final_prefix"
6069  acl_save_exec_prefix="$exec_prefix"
6070  exec_prefix="$acl_final_exec_prefix"
6071  eval x=\"$x\"
6072  exec_prefix="$acl_save_exec_prefix"
6073  prefix="$acl_save_prefix"
6074
6075                      if test "X$x" = "X-L$found_dir"; then
6076                        haveit=yes
6077                        break
6078                      fi
6079                    done
6080                    if test -z "$haveit"; then
6081                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6082                    fi
6083                    if test "$acl_hardcode_minus_L" != no; then
6084                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6085                    else
6086                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6087                    fi
6088                  fi
6089                fi
6090              fi
6091            else
6092              if test "X$found_a" != "X"; then
6093                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6094              else
6095                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6096              fi
6097            fi
6098                        additional_includedir=
6099            case "$found_dir" in
6100              */$acl_libdirstem | */$acl_libdirstem/)
6101                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6102                if test "$name" = 'iconv'; then
6103                  LIBICONV_PREFIX="$basedir"
6104                fi
6105                additional_includedir="$basedir/include"
6106                ;;
6107              */$acl_libdirstem2 | */$acl_libdirstem2/)
6108                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6109                if test "$name" = 'iconv'; then
6110                  LIBICONV_PREFIX="$basedir"
6111                fi
6112                additional_includedir="$basedir/include"
6113                ;;
6114            esac
6115            if test "X$additional_includedir" != "X"; then
6116                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
6117                haveit=
6118                if test "X$additional_includedir" = "X/usr/local/include"; then
6119                  if test -n "$GCC"; then
6120                    case $host_os in
6121                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6122                    esac
6123                  fi
6124                fi
6125                if test -z "$haveit"; then
6126                  for x in $CPPFLAGS $INCICONV; do
6127
6128  acl_save_prefix="$prefix"
6129  prefix="$acl_final_prefix"
6130  acl_save_exec_prefix="$exec_prefix"
6131  exec_prefix="$acl_final_exec_prefix"
6132  eval x=\"$x\"
6133  exec_prefix="$acl_save_exec_prefix"
6134  prefix="$acl_save_prefix"
6135
6136                    if test "X$x" = "X-I$additional_includedir"; then
6137                      haveit=yes
6138                      break
6139                    fi
6140                  done
6141                  if test -z "$haveit"; then
6142                    if test -d "$additional_includedir"; then
6143                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6144                    fi
6145                  fi
6146                fi
6147              fi
6148            fi
6149                        if test -n "$found_la"; then
6150                                                        save_libdir="$libdir"
6151              case "$found_la" in
6152                */* | *\\*) . "$found_la" ;;
6153                *) . "./$found_la" ;;
6154              esac
6155              libdir="$save_libdir"
6156                            for dep in $dependency_libs; do
6157                case "$dep" in
6158                  -L*)
6159                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6160                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6161                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6162                      haveit=
6163                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6164                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6165                        if test -n "$GCC"; then
6166                          case $host_os in
6167                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6168                          esac
6169                        fi
6170                      fi
6171                      if test -z "$haveit"; then
6172                        haveit=
6173                        for x in $LDFLAGS $LIBICONV; do
6174
6175  acl_save_prefix="$prefix"
6176  prefix="$acl_final_prefix"
6177  acl_save_exec_prefix="$exec_prefix"
6178  exec_prefix="$acl_final_exec_prefix"
6179  eval x=\"$x\"
6180  exec_prefix="$acl_save_exec_prefix"
6181  prefix="$acl_save_prefix"
6182
6183                          if test "X$x" = "X-L$additional_libdir"; then
6184                            haveit=yes
6185                            break
6186                          fi
6187                        done
6188                        if test -z "$haveit"; then
6189                          if test -d "$additional_libdir"; then
6190                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6191                          fi
6192                        fi
6193                        haveit=
6194                        for x in $LDFLAGS $LTLIBICONV; do
6195
6196  acl_save_prefix="$prefix"
6197  prefix="$acl_final_prefix"
6198  acl_save_exec_prefix="$exec_prefix"
6199  exec_prefix="$acl_final_exec_prefix"
6200  eval x=\"$x\"
6201  exec_prefix="$acl_save_exec_prefix"
6202  prefix="$acl_save_prefix"
6203
6204                          if test "X$x" = "X-L$additional_libdir"; then
6205                            haveit=yes
6206                            break
6207                          fi
6208                        done
6209                        if test -z "$haveit"; then
6210                          if test -d "$additional_libdir"; then
6211                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6212                          fi
6213                        fi
6214                      fi
6215                    fi
6216                    ;;
6217                  -R*)
6218                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
6219                    if test "$enable_rpath" != no; then
6220                                                                  haveit=
6221                      for x in $rpathdirs; do
6222                        if test "X$x" = "X$dir"; then
6223                          haveit=yes
6224                          break
6225                        fi
6226                      done
6227                      if test -z "$haveit"; then
6228                        rpathdirs="$rpathdirs $dir"
6229                      fi
6230                                                                  haveit=
6231                      for x in $ltrpathdirs; do
6232                        if test "X$x" = "X$dir"; then
6233                          haveit=yes
6234                          break
6235                        fi
6236                      done
6237                      if test -z "$haveit"; then
6238                        ltrpathdirs="$ltrpathdirs $dir"
6239                      fi
6240                    fi
6241                    ;;
6242                  -l*)
6243                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6244                    ;;
6245                  *.la)
6246                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6247                    ;;
6248                  *)
6249                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6250                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6251                    ;;
6252                esac
6253              done
6254            fi
6255          else
6256                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6257            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6258          fi
6259        fi
6260      fi
6261    done
6262  done
6263  if test "X$rpathdirs" != "X"; then
6264    if test -n "$acl_hardcode_libdir_separator"; then
6265                        alldirs=
6266      for found_dir in $rpathdirs; do
6267        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6268      done
6269            acl_save_libdir="$libdir"
6270      libdir="$alldirs"
6271      eval flag=\"$acl_hardcode_libdir_flag_spec\"
6272      libdir="$acl_save_libdir"
6273      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6274    else
6275            for found_dir in $rpathdirs; do
6276        acl_save_libdir="$libdir"
6277        libdir="$found_dir"
6278        eval flag=\"$acl_hardcode_libdir_flag_spec\"
6279        libdir="$acl_save_libdir"
6280        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6281      done
6282    fi
6283  fi
6284  if test "X$ltrpathdirs" != "X"; then
6285            for found_dir in $ltrpathdirs; do
6286      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6287    done
6288  fi
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301          am_save_CPPFLAGS="$CPPFLAGS"
6302
6303  for element in $INCICONV; do
6304    haveit=
6305    for x in $CPPFLAGS; do
6306
6307  acl_save_prefix="$prefix"
6308  prefix="$acl_final_prefix"
6309  acl_save_exec_prefix="$exec_prefix"
6310  exec_prefix="$acl_final_exec_prefix"
6311  eval x=\"$x\"
6312  exec_prefix="$acl_save_exec_prefix"
6313  prefix="$acl_save_prefix"
6314
6315      if test "X$x" = "X$element"; then
6316        haveit=yes
6317        break
6318      fi
6319    done
6320    if test -z "$haveit"; then
6321      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6322    fi
6323  done
6324
6325
6326  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6327$as_echo_n "checking for iconv... " >&6; }
6328if ${am_cv_func_iconv+:} false; then :
6329  $as_echo_n "(cached) " >&6
6330else
6331
6332    am_cv_func_iconv="no, consider installing GNU libiconv"
6333    am_cv_lib_iconv=no
6334    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335/* end confdefs.h.  */
6336
6337#include <stdlib.h>
6338#include <iconv.h>
6339
6340int
6341main ()
6342{
6343iconv_t cd = iconv_open("","");
6344           iconv(cd,NULL,NULL,NULL,NULL);
6345           iconv_close(cd);
6346  ;
6347  return 0;
6348}
6349_ACEOF
6350if ac_fn_c_try_link "$LINENO"; then :
6351  am_cv_func_iconv=yes
6352fi
6353rm -f core conftest.err conftest.$ac_objext \
6354    conftest$ac_exeext conftest.$ac_ext
6355    if test "$am_cv_func_iconv" != yes; then
6356      am_save_LIBS="$LIBS"
6357      LIBS="$LIBS $LIBICONV"
6358      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359/* end confdefs.h.  */
6360
6361#include <stdlib.h>
6362#include <iconv.h>
6363
6364int
6365main ()
6366{
6367iconv_t cd = iconv_open("","");
6368             iconv(cd,NULL,NULL,NULL,NULL);
6369             iconv_close(cd);
6370  ;
6371  return 0;
6372}
6373_ACEOF
6374if ac_fn_c_try_link "$LINENO"; then :
6375  am_cv_lib_iconv=yes
6376        am_cv_func_iconv=yes
6377fi
6378rm -f core conftest.err conftest.$ac_objext \
6379    conftest$ac_exeext conftest.$ac_ext
6380      LIBS="$am_save_LIBS"
6381    fi
6382
6383fi
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6385$as_echo "$am_cv_func_iconv" >&6; }
6386  if test "$am_cv_func_iconv" = yes; then
6387    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6388$as_echo_n "checking for working iconv... " >&6; }
6389if ${am_cv_func_iconv_works+:} false; then :
6390  $as_echo_n "(cached) " >&6
6391else
6392
6393                  am_save_LIBS="$LIBS"
6394      if test $am_cv_lib_iconv = yes; then
6395        LIBS="$LIBS $LIBICONV"
6396      fi
6397      if test "$cross_compiling" = yes; then :
6398
6399         case "$host_os" in
6400           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6401           *)            am_cv_func_iconv_works="guessing yes" ;;
6402         esac
6403
6404else
6405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406/* end confdefs.h.  */
6407
6408#include <iconv.h>
6409#include <string.h>
6410int main ()
6411{
6412  int result = 0;
6413  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6414     returns.  */
6415  {
6416    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6417    if (cd_utf8_to_88591 != (iconv_t)(-1))
6418      {
6419        static const char input[] = "\342\202\254"; /* EURO SIGN */
6420        char buf[10];
6421        const char *inptr = input;
6422        size_t inbytesleft = strlen (input);
6423        char *outptr = buf;
6424        size_t outbytesleft = sizeof (buf);
6425        size_t res = iconv (cd_utf8_to_88591,
6426                            (char **) &inptr, &inbytesleft,
6427                            &outptr, &outbytesleft);
6428        if (res == 0)
6429          result |= 1;
6430        iconv_close (cd_utf8_to_88591);
6431      }
6432  }
6433  /* Test against Solaris 10 bug: Failures are not distinguishable from
6434     successful returns.  */
6435  {
6436    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6437    if (cd_ascii_to_88591 != (iconv_t)(-1))
6438      {
6439        static const char input[] = "\263";
6440        char buf[10];
6441        const char *inptr = input;
6442        size_t inbytesleft = strlen (input);
6443        char *outptr = buf;
6444        size_t outbytesleft = sizeof (buf);
6445        size_t res = iconv (cd_ascii_to_88591,
6446                            (char **) &inptr, &inbytesleft,
6447                            &outptr, &outbytesleft);
6448        if (res == 0)
6449          result |= 2;
6450        iconv_close (cd_ascii_to_88591);
6451      }
6452  }
6453  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
6454  {
6455    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
6456    if (cd_88591_to_utf8 != (iconv_t)(-1))
6457      {
6458        static const char input[] = "\304";
6459        static char buf[2] = { (char)0xDE, (char)0xAD };
6460        const char *inptr = input;
6461        size_t inbytesleft = 1;
6462        char *outptr = buf;
6463        size_t outbytesleft = 1;
6464        size_t res = iconv (cd_88591_to_utf8,
6465                            (char **) &inptr, &inbytesleft,
6466                            &outptr, &outbytesleft);
6467        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
6468          result |= 4;
6469        iconv_close (cd_88591_to_utf8);
6470      }
6471  }
6472#if 0 /* This bug could be worked around by the caller.  */
6473  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
6474  {
6475    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6476    if (cd_88591_to_utf8 != (iconv_t)(-1))
6477      {
6478        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6479        char buf[50];
6480        const char *inptr = input;
6481        size_t inbytesleft = strlen (input);
6482        char *outptr = buf;
6483        size_t outbytesleft = sizeof (buf);
6484        size_t res = iconv (cd_88591_to_utf8,
6485                            (char **) &inptr, &inbytesleft,
6486                            &outptr, &outbytesleft);
6487        if ((int)res > 0)
6488          result |= 8;
6489        iconv_close (cd_88591_to_utf8);
6490      }
6491  }
6492#endif
6493  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6494     provided.  */
6495  if (/* Try standardized names.  */
6496      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6497      /* Try IRIX, OSF/1 names.  */
6498      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6499      /* Try AIX names.  */
6500      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6501      /* Try HP-UX names.  */
6502      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6503    result |= 16;
6504  return result;
6505}
6506_ACEOF
6507if ac_fn_c_try_run "$LINENO"; then :
6508  am_cv_func_iconv_works=yes
6509else
6510  am_cv_func_iconv_works=no
6511fi
6512rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6513  conftest.$ac_objext conftest.beam conftest.$ac_ext
6514fi
6515
6516      LIBS="$am_save_LIBS"
6517
6518fi
6519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6520$as_echo "$am_cv_func_iconv_works" >&6; }
6521    case "$am_cv_func_iconv_works" in
6522      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6523      *)   am_func_iconv=yes ;;
6524    esac
6525  else
6526    am_func_iconv=no am_cv_lib_iconv=no
6527  fi
6528  if test "$am_func_iconv" = yes; then
6529
6530$as_echo "#define HAVE_ICONV 1" >>confdefs.h
6531
6532  fi
6533  if test "$am_cv_lib_iconv" = yes; then
6534    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6535$as_echo_n "checking how to link with libiconv... " >&6; }
6536    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6537$as_echo "$LIBICONV" >&6; }
6538  else
6539            CPPFLAGS="$am_save_CPPFLAGS"
6540    LIBICONV=
6541    LTLIBICONV=
6542  fi
6543
6544
6545
6546  if test "$am_cv_func_iconv" = yes; then
6547    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6548$as_echo_n "checking for iconv declaration... " >&6; }
6549    if ${am_cv_proto_iconv+:} false; then :
6550  $as_echo_n "(cached) " >&6
6551else
6552
6553      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554/* end confdefs.h.  */
6555
6556#include <stdlib.h>
6557#include <iconv.h>
6558extern
6559#ifdef __cplusplus
6560"C"
6561#endif
6562#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
6563size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6564#else
6565size_t iconv();
6566#endif
6567
6568int
6569main ()
6570{
6571
6572  ;
6573  return 0;
6574}
6575_ACEOF
6576if ac_fn_c_try_compile "$LINENO"; then :
6577  am_cv_proto_iconv_arg1=""
6578else
6579  am_cv_proto_iconv_arg1="const"
6580fi
6581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
6583fi
6584
6585    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6586    { $as_echo "$as_me:${as_lineno-$LINENO}: result:
6587         $am_cv_proto_iconv" >&5
6588$as_echo "
6589         $am_cv_proto_iconv" >&6; }
6590
6591cat >>confdefs.h <<_ACEOF
6592#define ICONV_CONST $am_cv_proto_iconv_arg1
6593_ACEOF
6594
6595
6596  fi
6597
6598
6599
6600for ac_func in gettimeofday select socket strdup getopt_long localtime_r gmtime_r backtrace srandom initgroups strtoll strtoq
6601do :
6602  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6603ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6604if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6605  cat >>confdefs.h <<_ACEOF
6606#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6607_ACEOF
6608
6609fi
6610done
6611
6612ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
6613if test "x$ac_cv_func_getopt" = xyes; then :
6614
6615else
6616  case " $LIBOBJS " in
6617  *" utils/attgetopt.$ac_objext "* ) ;;
6618  *) LIBOBJS="$LIBOBJS utils/attgetopt.$ac_objext"
6619 ;;
6620esac
6621
6622fi
6623
6624
6625ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
6626if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
6627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which type of gethostbyname_r" >&5
6628$as_echo_n "checking for which type of gethostbyname_r... " >&6; }
6629if ${ac_cv_func_which_gethostname_r+:} false; then :
6630  $as_echo_n "(cached) " >&6
6631else
6632
6633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634/* end confdefs.h.  */
6635
6636#include <netdb.h>
6637
6638int
6639main ()
6640{
6641
6642        char *name;
6643        struct hostent *he;
6644        struct hostent_data data;
6645        (void) gethostbyname_r(name, he, &data);
6646
6647  ;
6648  return 0;
6649}
6650_ACEOF
6651if ac_fn_c_try_compile "$LINENO"; then :
6652  ac_cv_func_which_gethostname_r=3
6653else
6654
6655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656/* end confdefs.h.  */
6657
6658#include <netdb.h>
6659
6660int
6661main ()
6662{
6663
6664        char *name;
6665        struct hostent *he, *res;
6666        char buffer[2048];
6667        int buflen = 2048;
6668        int h_errnop;
6669        (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop);
6670
6671  ;
6672  return 0;
6673}
6674_ACEOF
6675if ac_fn_c_try_compile "$LINENO"; then :
6676  ac_cv_func_which_gethostname_r=6
6677else
6678
6679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680/* end confdefs.h.  */
6681
6682#include <netdb.h>
6683
6684int
6685main ()
6686{
6687
6688        char *name;
6689        struct hostent *he;
6690        char buffer[2048];
6691        int buflen = 2048;
6692        int h_errnop;
6693        (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop);
6694
6695  ;
6696  return 0;
6697}
6698_ACEOF
6699if ac_fn_c_try_compile "$LINENO"; then :
6700  ac_cv_func_which_gethostname_r=5
6701else
6702  ac_cv_func_which_gethostname_r=0
6703fi
6704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705
6706fi
6707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708
6709fi
6710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6711fi
6712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_which_gethostname_r" >&5
6713$as_echo "$ac_cv_func_which_gethostname_r" >&6; }
6714if test $ac_cv_func_which_gethostname_r -eq 6; then
6715  $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_6 1" >>confdefs.h
6716
6717elif test $ac_cv_func_which_gethostname_r -eq 5; then
6718  $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_5 1" >>confdefs.h
6719
6720elif test $ac_cv_func_which_gethostname_r -eq 3; then
6721  $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_3 1" >>confdefs.h
6722
6723elif test $ac_cv_func_which_gethostname_r -eq 0; then
6724  ac_cv_func_which_gethostname_r = no
6725fi
6726
6727else
6728
6729  ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6730if test "x$ac_cv_func_gethostbyname" = xyes; then :
6731
6732else
6733
6734    as_fn_error $? "Couldnot find gethostbyname_r nor gethostbyname functions" "$LINENO" 5
6735fi
6736
6737
6738fi
6739
6740
6741
6742
6743
6744
6745
6746
6747	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in <sys/socket.h>" >&5
6748$as_echo_n "checking for socklen_t in <sys/socket.h>... " >&6; }
6749if ${gw_cv_type_HAVE_SOCKLEN_T+:} false; then :
6750  $as_echo_n "(cached) " >&6
6751else
6752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6753/* end confdefs.h.  */
6754#ifdef HAVE_SYS_TYPES_H
6755#include <sys/types.h>
6756#endif
6757#include <sys/socket.h>
6758
6759int
6760main ()
6761{
6762socklen_t foo;
6763  ;
6764  return 0;
6765}
6766_ACEOF
6767if ac_fn_c_try_compile "$LINENO"; then :
6768  gw_cv_type_HAVE_SOCKLEN_T=yes
6769else
6770  gw_cv_type_HAVE_SOCKLEN_T=no
6771fi
6772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773fi
6774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gw_cv_type_HAVE_SOCKLEN_T" >&5
6775$as_echo "$gw_cv_type_HAVE_SOCKLEN_T" >&6; }
6776	if test $gw_cv_type_HAVE_SOCKLEN_T = yes; then
6777
6778$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
6779
6780	fi
6781
6782
6783
6784	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt in <stdio.h>" >&5
6785$as_echo_n "checking for getopt in <stdio.h>... " >&6; }
6786if ${gw_cv_func_HAVE_GETOPT_IN_STDIO_H+:} false; then :
6787  $as_echo_n "(cached) " >&6
6788else
6789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790/* end confdefs.h.  */
6791#include <stdio.h>
6792int
6793main ()
6794{
6795void *foo = getopt;
6796  ;
6797  return 0;
6798}
6799_ACEOF
6800if ac_fn_c_try_compile "$LINENO"; then :
6801  gw_cv_func_HAVE_GETOPT_IN_STDIO_H=yes
6802else
6803  gw_cv_func_HAVE_GETOPT_IN_STDIO_H=no
6804fi
6805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6806fi
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gw_cv_func_HAVE_GETOPT_IN_STDIO_H" >&5
6808$as_echo "$gw_cv_func_HAVE_GETOPT_IN_STDIO_H" >&6; }
6809	if test $gw_cv_func_HAVE_GETOPT_IN_STDIO_H = yes; then
6810
6811$as_echo "#define HAVE_GETOPT_IN_STDIO_H 1" >>confdefs.h
6812
6813	fi
6814
6815
6816	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt in <unistd.h>" >&5
6817$as_echo_n "checking for getopt in <unistd.h>... " >&6; }
6818if ${gw_cv_func_HAVE_GETOPT_IN_UNISTD_H+:} false; then :
6819  $as_echo_n "(cached) " >&6
6820else
6821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822/* end confdefs.h.  */
6823#include <unistd.h>
6824int
6825main ()
6826{
6827void *foo = getopt;
6828  ;
6829  return 0;
6830}
6831_ACEOF
6832if ac_fn_c_try_compile "$LINENO"; then :
6833  gw_cv_func_HAVE_GETOPT_IN_UNISTD_H=yes
6834else
6835  gw_cv_func_HAVE_GETOPT_IN_UNISTD_H=no
6836fi
6837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6838fi
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gw_cv_func_HAVE_GETOPT_IN_UNISTD_H" >&5
6840$as_echo "$gw_cv_func_HAVE_GETOPT_IN_UNISTD_H" >&6; }
6841	if test $gw_cv_func_HAVE_GETOPT_IN_UNISTD_H = yes; then
6842
6843$as_echo "#define HAVE_GETOPT_IN_UNISTD_H 1" >>confdefs.h
6844
6845	fi
6846
6847
6848
6849for ac_header in ftw.h
6850do :
6851  ac_fn_c_check_header_mongrel "$LINENO" "ftw.h" "ac_cv_header_ftw_h" "$ac_includes_default"
6852if test "x$ac_cv_header_ftw_h" = xyes; then :
6853  cat >>confdefs.h <<_ACEOF
6854#define HAVE_FTW_H 1
6855_ACEOF
6856
6857  ac_fn_c_check_func "$LINENO" "nftw" "ac_cv_func_nftw"
6858if test "x$ac_cv_func_nftw" = xyes; then :
6859
6860    $as_echo "#define HAVE_NFTW 1" >>confdefs.h
6861
6862
6863fi
6864
6865
6866fi
6867
6868done
6869
6870
6871
6872
6873for ac_header in regex.h
6874do :
6875  ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
6876if test "x$ac_cv_header_regex_h" = xyes; then :
6877  cat >>confdefs.h <<_ACEOF
6878#define HAVE_REGEX_H 1
6879_ACEOF
6880
6881  ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
6882if test "x$ac_cv_func_regcomp" = xyes; then :
6883
6884    $as_echo "#define HAVE_REGEX 1" >>confdefs.h
6885
6886    has_posix_regex=1
6887
6888fi
6889
6890
6891fi
6892
6893done
6894
6895
6896
6897
6898
6899  nl='
6900'
6901  echo "${nl}${T_MD}Checking for POSIX threads support ...${T_ME}"
6902
6903
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working pthreads" >&5
6905$as_echo_n "checking for working pthreads... " >&6; }
6906if test "$cross_compiling" = yes; then :
6907  echo  Cross compiling - assuming they work
6908else
6909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910/* end confdefs.h.  */
6911#include <pthread.h>
6912#include <unistd.h>
6913int pid;
6914void testpid(void* foo);
6915int main(void){
6916    pthread_t child;
6917    pid=getpid();
6918    pthread_create(&child,NULL,(void*)testpid,NULL);
6919    pthread_join(child,NULL);
6920    return 0;
6921}
6922void testpid(void* foo){
6923    int mypid=getpid();
6924    if(mypid!=pid){
6925        /* Pthreads states that all threads should have the same PID
6926         * we dont!
6927         */
6928        exit(1);
6929    }else{
6930        exit(0);
6931    }
6932}
6933
6934_ACEOF
6935if ac_fn_c_try_run "$LINENO"; then :
6936  echo yes
6937else
6938  echo no ;CFLAGS="$CFLAGS -DBROKEN_PTHREADS=1"
6939fi
6940rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6941  conftest.$ac_objext conftest.beam conftest.$ac_ext
6942fi
6943
6944
6945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_spinlock support" >&5
6946$as_echo_n "checking for pthread_spinlock support... " >&6; }
6947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948/* end confdefs.h.  */
6949#include <pthread.h>
6950int
6951main ()
6952{
6953
6954#ifdef __INTERIX
6955/*
6956 * interix has experimental spinlock support and this doesn't work very well
6957 * therefore disable it for now
6958 */
6959pthread_spinlock_t_failed lock;
6960#else
6961pthread_spinlock_t lock;
6962#endif
6963pthread_spin_init(&lock, 0);
6964pthread_spin_lock(&lock);
6965pthread_spin_unlock(&lock);
6966pthread_spin_destroy(&lock);
6967
6968  ;
6969  return 0;
6970}
6971_ACEOF
6972if ac_fn_c_try_compile "$LINENO"; then :
6973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6974$as_echo "yes" >&6; }; $as_echo "#define HAVE_PTHREAD_SPINLOCK_T 1" >>confdefs.h
6975
6976else
6977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6978$as_echo "no" >&6; }
6979fi
6980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6981
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock support" >&5
6983$as_echo_n "checking for pthread_rwlock support... " >&6; }
6984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985/* end confdefs.h.  */
6986#include <pthread.h>
6987int
6988main ()
6989{
6990
6991pthread_rwlock_t lock;
6992pthread_rwlock_init(&lock, NULL);
6993pthread_rwlock_rdlock(&lock);
6994pthread_rwlock_unlock(&lock);
6995pthread_rwlock_wrlock(&lock);
6996pthread_rwlock_unlock(&lock);
6997pthread_rwlock_destroy(&lock);
6998
6999  ;
7000  return 0;
7001}
7002_ACEOF
7003if ac_fn_c_try_compile "$LINENO"; then :
7004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7005$as_echo "yes" >&6; }; $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
7006
7007else
7008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009$as_echo "no" >&6; }
7010fi
7011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7012
7013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
7014$as_echo_n "checking for sem_init in -lrt... " >&6; }
7015if ${ac_cv_lib_rt_sem_init+:} false; then :
7016  $as_echo_n "(cached) " >&6
7017else
7018  ac_check_lib_save_LIBS=$LIBS
7019LIBS="-lrt  $LIBS"
7020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021/* end confdefs.h.  */
7022
7023/* Override any GCC internal prototype to avoid an error.
7024   Use char because int might match the return type of a GCC
7025   builtin and then its argument prototype would still apply.  */
7026#ifdef __cplusplus
7027extern "C"
7028#endif
7029char sem_init ();
7030int
7031main ()
7032{
7033return sem_init ();
7034  ;
7035  return 0;
7036}
7037_ACEOF
7038if ac_fn_c_try_link "$LINENO"; then :
7039  ac_cv_lib_rt_sem_init=yes
7040else
7041  ac_cv_lib_rt_sem_init=no
7042fi
7043rm -f core conftest.err conftest.$ac_objext \
7044    conftest$ac_exeext conftest.$ac_ext
7045LIBS=$ac_check_lib_save_LIBS
7046fi
7047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
7048$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
7049if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
7050  cat >>confdefs.h <<_ACEOF
7051#define HAVE_LIBRT 1
7052_ACEOF
7053
7054  LIBS="-lrt $LIBS"
7055
7056fi
7057
7058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for semaphore support" >&5
7059$as_echo_n "checking for semaphore support... " >&6; }
7060if test "$cross_compiling" = yes; then :
7061
7062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Cross compiling - assuming suuported" >&5
7063$as_echo "Cross compiling - assuming suuported" >&6; } ; $as_echo "#define HAVE_SEMAPHORE 1" >>confdefs.h
7064
7065else
7066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067/* end confdefs.h.  */
7068#include <semaphore.h>
7069int main(void) {
7070    sem_t s;
7071    int val;
7072    /* DARWNIN doesn't implement native sem_init */
7073    if (sem_init(&s, 0, 1) != 0)
7074        return 1;
7075    sem_wait(&s);
7076    sem_post(&s);
7077    sem_getvalue(&s, &val);
7078    sem_destroy(&s);
7079    return 0;
7080}
7081
7082_ACEOF
7083if ac_fn_c_try_run "$LINENO"; then :
7084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7085$as_echo "yes" >&6; }; $as_echo "#define HAVE_SEMAPHORE 1" >>confdefs.h
7086
7087else
7088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089$as_echo "no" >&6; }
7090fi
7091rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7092  conftest.$ac_objext conftest.beam conftest.$ac_ext
7093fi
7094
7095
7096
7097
7098  nl='
7099'
7100  echo "${nl}${T_MD}Checking for libxml2 support ...${T_ME}"
7101
7102xml_ver_required="2.6.0"
7103for ac_prog in xml2-config xml-config
7104do
7105  # Extract the first word of "$ac_prog", so it can be a program name with args.
7106set dummy $ac_prog; ac_word=$2
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108$as_echo_n "checking for $ac_word... " >&6; }
7109if ${ac_cv_path_XML_CONFIG+:} false; then :
7110  $as_echo_n "(cached) " >&6
7111else
7112  case $XML_CONFIG in
7113  [\\/]* | ?:[\\/]*)
7114  ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
7115  ;;
7116  *)
7117  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118for as_dir in $PATH
7119do
7120  IFS=$as_save_IFS
7121  test -z "$as_dir" && as_dir=.
7122    for ac_exec_ext in '' $ac_executable_extensions; do
7123  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124    ac_cv_path_XML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126    break 2
7127  fi
7128done
7129  done
7130IFS=$as_save_IFS
7131
7132  ;;
7133esac
7134fi
7135XML_CONFIG=$ac_cv_path_XML_CONFIG
7136if test -n "$XML_CONFIG"; then
7137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_CONFIG" >&5
7138$as_echo "$XML_CONFIG" >&6; }
7139else
7140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141$as_echo "no" >&6; }
7142fi
7143
7144
7145  test -n "$XML_CONFIG" && break
7146done
7147test -n "$XML_CONFIG" || XML_CONFIG="no"
7148
7149if test "$XML_CONFIG" = "no"; then
7150  as_fn_error $? "You MUST have the libxml2 (aka gnome-xml) library installed" "$LINENO" 5
7151else
7152  { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml version" >&5
7153$as_echo_n "checking libxml version... " >&6; }
7154  xml_version=`$XML_CONFIG --version`
7155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml_version" >&5
7156$as_echo "$xml_version" >&6; }
7157
7158    ac_inst_ver_maj=`echo $xml_version | sed -e 's/^\(.*\)\..*\..*$/\1/'`
7159  ac_inst_ver_mid=`echo $xml_version | sed -e 's/^.*\.\(.*\)\..*$/\1/'`
7160  ac_inst_ver_min=`echo $xml_version | sed -e 's/^.*\..*\.\(.*\)$/\1/'`
7161
7162    ac_req_ver_maj=`echo $xml_ver_required | sed -e 's/^\(.*\)\..*\..*$/\1/'`
7163  ac_req_ver_mid=`echo $xml_ver_required | sed -e 's/^.*\.\(.*\)\..*$/\1/'`
7164  ac_req_ver_min=`echo $xml_ver_required | sed -e 's/^.*\..*\.\(.*\)$/\1/'`
7165
7166    if test "$ac_inst_ver_maj" -lt "$ac_req_ver_maj" || \
7167    ( test "$ac_inst_ver_maj" -eq "$ac_req_ver_maj" && \
7168      test "$ac_inst_ver_mid" -lt "$ac_req_ver_mid" ) || \
7169    ( test "$ac_inst_ver_mid" -eq "$ac_req_ver_mid" && \
7170      test "$ac_inst_ver_min" -lt "$ac_req_ver_min" )
7171  then
7172    ac_ver_fail=yes
7173  else
7174    ac_ver_fail=no
7175  fi
7176
7177    if test $ac_ver_fail = no; then
7178     LIBS="$LIBS `$XML_CONFIG --libs`"
7179    CFLAGS="$CFLAGS `$XML_CONFIG --cflags`"
7180
7181   fi
7182  if test $ac_ver_fail = yes; then
7183
7184    as_fn_error $? "libxml2 version $xml_version is too old. You need at least $xml_ver_required" "$LINENO" 5
7185
7186   fi
7187
7188fi
7189
7190
7191
7192
7193  nl='
7194'
7195  echo "${nl}${T_MD}Configuring for PCRE support ...${T_ME}"
7196
7197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with PCRE support" >&5
7198$as_echo_n "checking whether to compile with PCRE support... " >&6; }
7199# Check whether --enable-pcre was given.
7200if test "${enable_pcre+set}" = set; then :
7201  enableval=$enable_pcre;
7202  if test "$enableval" != yes; then
7203    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7204$as_echo "disabled" >&6; }
7205  else
7206    { $as_echo "$as_me:${as_lineno-$LINENO}: result: searching" >&5
7207$as_echo "searching" >&6; }
7208    for ac_prog in pcre-config
7209do
7210  # Extract the first word of "$ac_prog", so it can be a program name with args.
7211set dummy $ac_prog; ac_word=$2
7212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213$as_echo_n "checking for $ac_word... " >&6; }
7214if ${ac_cv_path_PCRE_CONFIG+:} false; then :
7215  $as_echo_n "(cached) " >&6
7216else
7217  case $PCRE_CONFIG in
7218  [\\/]* | ?:[\\/]*)
7219  ac_cv_path_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test with a path.
7220  ;;
7221  *)
7222  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223for as_dir in $PATH
7224do
7225  IFS=$as_save_IFS
7226  test -z "$as_dir" && as_dir=.
7227    for ac_exec_ext in '' $ac_executable_extensions; do
7228  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7229    ac_cv_path_PCRE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231    break 2
7232  fi
7233done
7234  done
7235IFS=$as_save_IFS
7236
7237  ;;
7238esac
7239fi
7240PCRE_CONFIG=$ac_cv_path_PCRE_CONFIG
7241if test -n "$PCRE_CONFIG"; then
7242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_CONFIG" >&5
7243$as_echo "$PCRE_CONFIG" >&6; }
7244else
7245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246$as_echo "no" >&6; }
7247fi
7248
7249
7250  test -n "$PCRE_CONFIG" && break
7251done
7252test -n "$PCRE_CONFIG" || PCRE_CONFIG="no"
7253
7254    if test "$PCRE_CONFIG" = "no"; then
7255      as_fn_error $? "Unable to find pcre-config in path for PCRE support" "$LINENO" 5
7256    else
7257      { $as_echo "$as_me:${as_lineno-$LINENO}: checking PCRE version" >&5
7258$as_echo_n "checking PCRE version... " >&6; }
7259      pcre_version=`$PCRE_CONFIG --version`
7260      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre_version" >&5
7261$as_echo "$pcre_version" >&6; }
7262      LIBS="$LIBS `$PCRE_CONFIG --libs-posix`"
7263      CFLAGS="$CFLAGS `$PCRE_CONFIG --cflags-posix`"
7264      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX regex provider" >&5
7265$as_echo_n "checking for POSIX regex provider... " >&6; }
7266      { $as_echo "$as_me:${as_lineno-$LINENO}: result: PCRE library" >&5
7267$as_echo "PCRE library" >&6; }
7268      for ac_header in pcreposix.h
7269do :
7270  ac_fn_c_check_header_mongrel "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
7271if test "x$ac_cv_header_pcreposix_h" = xyes; then :
7272  cat >>confdefs.h <<_ACEOF
7273#define HAVE_PCREPOSIX_H 1
7274_ACEOF
7275
7276fi
7277
7278done
7279
7280      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lpcreposix" >&5
7281$as_echo_n "checking for regcomp in -lpcreposix... " >&6; }
7282if ${ac_cv_lib_pcreposix_regcomp+:} false; then :
7283  $as_echo_n "(cached) " >&6
7284else
7285  ac_check_lib_save_LIBS=$LIBS
7286LIBS="-lpcreposix  $LIBS"
7287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288/* end confdefs.h.  */
7289
7290/* Override any GCC internal prototype to avoid an error.
7291   Use char because int might match the return type of a GCC
7292   builtin and then its argument prototype would still apply.  */
7293#ifdef __cplusplus
7294extern "C"
7295#endif
7296char regcomp ();
7297int
7298main ()
7299{
7300return regcomp ();
7301  ;
7302  return 0;
7303}
7304_ACEOF
7305if ac_fn_c_try_link "$LINENO"; then :
7306  ac_cv_lib_pcreposix_regcomp=yes
7307else
7308  ac_cv_lib_pcreposix_regcomp=no
7309fi
7310rm -f core conftest.err conftest.$ac_objext \
7311    conftest$ac_exeext conftest.$ac_ext
7312LIBS=$ac_check_lib_save_LIBS
7313fi
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcreposix_regcomp" >&5
7315$as_echo "$ac_cv_lib_pcreposix_regcomp" >&6; }
7316if test "x$ac_cv_lib_pcreposix_regcomp" = xyes; then :
7317  cat >>confdefs.h <<_ACEOF
7318#define HAVE_LIBPCREPOSIX 1
7319_ACEOF
7320
7321  LIBS="-lpcreposix $LIBS"
7322
7323fi
7324
7325      for ac_header in pcre.h
7326do :
7327  ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
7328if test "x$ac_cv_header_pcre_h" = xyes; then :
7329  cat >>confdefs.h <<_ACEOF
7330#define HAVE_PCRE_H 1
7331_ACEOF
7332
7333fi
7334
7335done
7336
7337      for ac_func in pcre_compile
7338do :
7339  ac_fn_c_check_func "$LINENO" "pcre_compile" "ac_cv_func_pcre_compile"
7340if test "x$ac_cv_func_pcre_compile" = xyes; then :
7341  cat >>confdefs.h <<_ACEOF
7342#define HAVE_PCRE_COMPILE 1
7343_ACEOF
7344
7345fi
7346done
7347
7348      $as_echo "#define HAVE_PCRE 1" >>confdefs.h
7349
7350      cat >>confdefs.h <<_ACEOF
7351#define LIBPCRE_VERSION "$pcre_version"
7352_ACEOF
7353
7354      PCRE="yes"
7355    fi
7356  fi
7357
7358else
7359
7360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7361$as_echo "disabled" >&6; }
7362
7363fi
7364
7365
7366
7367
7368
7369  nl='
7370'
7371  echo "${nl}${T_MD}Configuring DocBook support ...${T_ME}"
7372
7373for ac_prog in jade openjade
7374do
7375  # Extract the first word of "$ac_prog", so it can be a program name with args.
7376set dummy $ac_prog; ac_word=$2
7377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7378$as_echo_n "checking for $ac_word... " >&6; }
7379if ${ac_cv_prog_JADE+:} false; then :
7380  $as_echo_n "(cached) " >&6
7381else
7382  if test -n "$JADE"; then
7383  ac_cv_prog_JADE="$JADE" # Let the user override the test.
7384else
7385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386for as_dir in $PATH
7387do
7388  IFS=$as_save_IFS
7389  test -z "$as_dir" && as_dir=.
7390    for ac_exec_ext in '' $ac_executable_extensions; do
7391  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7392    ac_cv_prog_JADE="$ac_prog"
7393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7394    break 2
7395  fi
7396done
7397  done
7398IFS=$as_save_IFS
7399
7400fi
7401fi
7402JADE=$ac_cv_prog_JADE
7403if test -n "$JADE"; then
7404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JADE" >&5
7405$as_echo "$JADE" >&6; }
7406else
7407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408$as_echo "no" >&6; }
7409fi
7410
7411
7412  test -n "$JADE" && break
7413done
7414test -n "$JADE" || JADE="no"
7415
7416# Extract the first word of "jadetex", so it can be a program name with args.
7417set dummy jadetex; ac_word=$2
7418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419$as_echo_n "checking for $ac_word... " >&6; }
7420if ${ac_cv_prog_JADETEX+:} false; then :
7421  $as_echo_n "(cached) " >&6
7422else
7423  if test -n "$JADETEX"; then
7424  ac_cv_prog_JADETEX="$JADETEX" # Let the user override the test.
7425else
7426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427for as_dir in $PATH
7428do
7429  IFS=$as_save_IFS
7430  test -z "$as_dir" && as_dir=.
7431    for ac_exec_ext in '' $ac_executable_extensions; do
7432  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7433    ac_cv_prog_JADETEX="jadetex"
7434    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7435    break 2
7436  fi
7437done
7438  done
7439IFS=$as_save_IFS
7440
7441  test -z "$ac_cv_prog_JADETEX" && ac_cv_prog_JADETEX="no"
7442fi
7443fi
7444JADETEX=$ac_cv_prog_JADETEX
7445if test -n "$JADETEX"; then
7446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JADETEX" >&5
7447$as_echo "$JADETEX" >&6; }
7448else
7449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450$as_echo "no" >&6; }
7451fi
7452
7453
7454# Extract the first word of "pdfjadetex", so it can be a program name with args.
7455set dummy pdfjadetex; ac_word=$2
7456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7457$as_echo_n "checking for $ac_word... " >&6; }
7458if ${ac_cv_prog_PDFJADETEX+:} false; then :
7459  $as_echo_n "(cached) " >&6
7460else
7461  if test -n "$PDFJADETEX"; then
7462  ac_cv_prog_PDFJADETEX="$PDFJADETEX" # Let the user override the test.
7463else
7464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465for as_dir in $PATH
7466do
7467  IFS=$as_save_IFS
7468  test -z "$as_dir" && as_dir=.
7469    for ac_exec_ext in '' $ac_executable_extensions; do
7470  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7471    ac_cv_prog_PDFJADETEX="pdfjadetex"
7472    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7473    break 2
7474  fi
7475done
7476  done
7477IFS=$as_save_IFS
7478
7479  test -z "$ac_cv_prog_PDFJADETEX" && ac_cv_prog_PDFJADETEX="no"
7480fi
7481fi
7482PDFJADETEX=$ac_cv_prog_PDFJADETEX
7483if test -n "$PDFJADETEX"; then
7484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFJADETEX" >&5
7485$as_echo "$PDFJADETEX" >&6; }
7486else
7487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488$as_echo "no" >&6; }
7489fi
7490
7491
7492# Extract the first word of "dvips", so it can be a program name with args.
7493set dummy dvips; ac_word=$2
7494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7495$as_echo_n "checking for $ac_word... " >&6; }
7496if ${ac_cv_prog_DVIPS+:} false; then :
7497  $as_echo_n "(cached) " >&6
7498else
7499  if test -n "$DVIPS"; then
7500  ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
7501else
7502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503for as_dir in $PATH
7504do
7505  IFS=$as_save_IFS
7506  test -z "$as_dir" && as_dir=.
7507    for ac_exec_ext in '' $ac_executable_extensions; do
7508  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7509    ac_cv_prog_DVIPS="dvips"
7510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7511    break 2
7512  fi
7513done
7514  done
7515IFS=$as_save_IFS
7516
7517  test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
7518fi
7519fi
7520DVIPS=$ac_cv_prog_DVIPS
7521if test -n "$DVIPS"; then
7522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
7523$as_echo "$DVIPS" >&6; }
7524else
7525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526$as_echo "no" >&6; }
7527fi
7528
7529
7530# Extract the first word of "fig2dev", so it can be a program name with args.
7531set dummy fig2dev; ac_word=$2
7532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7533$as_echo_n "checking for $ac_word... " >&6; }
7534if ${ac_cv_prog_FIG2DEV+:} false; then :
7535  $as_echo_n "(cached) " >&6
7536else
7537  if test -n "$FIG2DEV"; then
7538  ac_cv_prog_FIG2DEV="$FIG2DEV" # Let the user override the test.
7539else
7540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541for as_dir in $PATH
7542do
7543  IFS=$as_save_IFS
7544  test -z "$as_dir" && as_dir=.
7545    for ac_exec_ext in '' $ac_executable_extensions; do
7546  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7547    ac_cv_prog_FIG2DEV="fig2dev"
7548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7549    break 2
7550  fi
7551done
7552  done
7553IFS=$as_save_IFS
7554
7555  test -z "$ac_cv_prog_FIG2DEV" && ac_cv_prog_FIG2DEV="no"
7556fi
7557fi
7558FIG2DEV=$ac_cv_prog_FIG2DEV
7559if test -n "$FIG2DEV"; then
7560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIG2DEV" >&5
7561$as_echo "$FIG2DEV" >&6; }
7562else
7563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564$as_echo "no" >&6; }
7565fi
7566
7567
7568# Extract the first word of "convert", so it can be a program name with args.
7569set dummy convert; ac_word=$2
7570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7571$as_echo_n "checking for $ac_word... " >&6; }
7572if ${ac_cv_prog_CONVERT+:} false; then :
7573  $as_echo_n "(cached) " >&6
7574else
7575  if test -n "$CONVERT"; then
7576  ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
7577else
7578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579for as_dir in $PATH
7580do
7581  IFS=$as_save_IFS
7582  test -z "$as_dir" && as_dir=.
7583    for ac_exec_ext in '' $ac_executable_extensions; do
7584  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7585    ac_cv_prog_CONVERT="convert"
7586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7587    break 2
7588  fi
7589done
7590  done
7591IFS=$as_save_IFS
7592
7593  test -z "$ac_cv_prog_CONVERT" && ac_cv_prog_CONVERT="no"
7594fi
7595fi
7596CONVERT=$ac_cv_prog_CONVERT
7597if test -n "$CONVERT"; then
7598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
7599$as_echo "$CONVERT" >&6; }
7600else
7601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602$as_echo "no" >&6; }
7603fi
7604
7605
7606
7607found=""
7608for loc in /usr /usr/local /sw /opt/local; do
7609  if test "x$found" = "x" ; then
7610    for file in ${loc}/lib/sgml/stylesheet/dsssl/docbook/nwalsh/html/docbook.dsl \
7611	${loc}/lib/sgml/stylesheets/nwalsh-modular/html/docbook.dsl \
7612	${loc}/share/sgml/docbook/dsssl-stylesheets-1.*/html/docbook.dsl \
7613	${loc}/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl \
7614	${loc}/share/sgml/docbook/stylesheet/dsssl/modular/html/docbook.dsl \
7615        ${loc}/share/sgml/docbook/dsssl/modular/html/docbook.dsl \
7616        ${loc}/share/sgml/dsssl/docbook-dsssl-nwalsh/html/docbook.dsl \
7617        ${loc}/share/dsssl/docbook-dsssl/html/docbook.dsl ; do
7618      if test "x$found" = "x" ; then
7619	as_ac_File=`$as_echo "ac_cv_file_$file" | $as_tr_sh`
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $file" >&5
7621$as_echo_n "checking for $file... " >&6; }
7622if eval \${$as_ac_File+:} false; then :
7623  $as_echo_n "(cached) " >&6
7624else
7625  test "$cross_compiling" = yes &&
7626  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
7627if test -r "$file"; then
7628  eval "$as_ac_File=yes"
7629else
7630  eval "$as_ac_File=no"
7631fi
7632fi
7633eval ac_res=\$$as_ac_File
7634	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7635$as_echo "$ac_res" >&6; }
7636if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
7637  HTML_DSL=$file; found=1
7638fi
7639
7640      fi
7641    done
7642  fi
7643done
7644
7645found=""
7646for loc in /usr /usr/local /sw /opt/local; do
7647  if test "x$found" = "x" ; then
7648    for file in ${loc}/lib/sgml/stylesheet/dsssl/docbook/nwalsh/print/docbook.dsl \
7649	${loc}/lib/sgml/stylesheets/nwalsh-modular/print/docbook.dsl \
7650	${loc}/share/sgml/docbook/dsssl-stylesheets-1.*/print/docbook.dsl \
7651	${loc}/share/sgml/docbook/dsssl-stylesheets/print/docbook.dsl \
7652	${loc}/share/sgml/docbook/stylesheet/dsssl/modular/print/docbook.dsl \
7653        ${loc}/share/sgml/docbook/dsssl/modular/print/docbook.dsl \
7654        ${loc}/share/sgml/dsssl/docbook-dsssl-nwalsh/print/docbook.dsl \
7655        ${loc}/share/dsssl/docbook-dsssl/print/docbook.dsl ; do
7656      if test "x$found" = "x" ; then
7657	as_ac_File=`$as_echo "ac_cv_file_$file" | $as_tr_sh`
7658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $file" >&5
7659$as_echo_n "checking for $file... " >&6; }
7660if eval \${$as_ac_File+:} false; then :
7661  $as_echo_n "(cached) " >&6
7662else
7663  test "$cross_compiling" = yes &&
7664  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
7665if test -r "$file"; then
7666  eval "$as_ac_File=yes"
7667else
7668  eval "$as_ac_File=no"
7669fi
7670fi
7671eval ac_res=\$$as_ac_File
7672	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7673$as_echo "$ac_res" >&6; }
7674if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
7675  TEX_DSL=$file; found=1
7676fi
7677
7678      fi
7679    done
7680  fi
7681done
7682
7683found=""
7684for loc in /usr /usr/local /sw /opt/local; do
7685  if test "x$found" = "x" ; then
7686    for file in ${loc}/lib/sgml/stylesheet/dsssl/docbook/nwalsh/dtds/decls/xml.dcl \
7687    ${loc}/lib/sgml/stylesheets/nwalsh-modular/dtds/decls/xml.dcl \
7688    ${loc}/share/sgml/docbook/dsssl-stylesheets-1.*/dtds/decls/xml.dcl \
7689    ${loc}/share/sgml/docbook/dsssl-stylesheets/dtds/decls/xml.dcl \
7690    ${loc}/share/sgml/docbook/stylesheet/dsssl/modular/dtds/decls/xml.dcl \
7691        ${loc}/share/sgml/docbook/dsssl/modular/dtds/decls/xml.dcl \
7692        ${loc}/share/sgml/dsssl/docbook-dsssl-nwalsh/dtds/decls/xml.dcl \
7693        ${loc}/share/dsssl/docbook-dsssl/dtds/decls/xml.dcl ; do
7694      if test "x$found" = "x" ; then
7695    as_ac_File=`$as_echo "ac_cv_file_$file" | $as_tr_sh`
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $file" >&5
7697$as_echo_n "checking for $file... " >&6; }
7698if eval \${$as_ac_File+:} false; then :
7699  $as_echo_n "(cached) " >&6
7700else
7701  test "$cross_compiling" = yes &&
7702  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
7703if test -r "$file"; then
7704  eval "$as_ac_File=yes"
7705else
7706  eval "$as_ac_File=no"
7707fi
7708fi
7709eval ac_res=\$$as_ac_File
7710	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7711$as_echo "$ac_res" >&6; }
7712if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
7713  XML_DCL=$file; found=1
7714fi
7715
7716      fi
7717    done
7718  fi
7719done
7720
7721
7722# Check whether --enable-warnings was given.
7723if test "${enable_warnings+set}" = set; then :
7724  enableval=$enable_warnings;
7725  echo enabling compilation warnings
7726  if test -n "$GCC"; then
7727    CFLAGS="$CFLAGS -Wall"
7728    CFLAGS="$CFLAGS -Wmissing-prototypes"
7729    CFLAGS="$CFLAGS -Wmissing-declarations"
7730    CFLAGS="$CFLAGS -Wnested-externs"
7731    CFLAGS="$CFLAGS -Winline"
7732    CFLAGS="$CFLAGS -Wformat -Wformat-security -Wmissing-format-attribute"
7733    #CFLAGS="$CFLAGS -Wstrict-prototypes"
7734    #CFLAGS="$CFLAGS -Wredundant-decls"
7735    #CFLAGS="$CFLAGS -Wconversion"
7736  fi
7737
7738fi
7739
7740
7741
7742
7743
7744# Check whether --enable-docs was given.
7745if test "${enable_docs+set}" = set; then :
7746  enableval=$enable_docs;
7747  if test "$enableval" = "yes"
7748  then
7749      DOCSTARGET="docs"
7750  else
7751      DOCSTARGET="no-docs"
7752  fi
7753
7754fi
7755
7756
7757if test "x$HTML_DSL" = "x" -o "x$TEX_DSL"   = "x" \
7758    || test "$JADE"       = "no" \
7759    || test "$JADETEX"    = "no" \
7760    || test "$PDFJADETEX" = "no" \
7761    || test "$DVIPS"      = "no" \
7762    || test "$FIG2DEV"    = "no" \
7763    || test "$CONVERT"    = "no" \
7764    || test "$DOCSTARGET" = "no-docs"
7765then
7766  DOCSTARGET="no-docs"
7767else
7768  DOCSTARGET="docs"
7769fi
7770
7771case "$DOCSTARGET" in
7772no-docs) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building documentation." >&5
7773$as_echo "Not building documentation." >&6; } ;;
7774docs) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Documentation will be built as well." >&5
7775$as_echo "Documentation will be built as well." >&6; } ;;
7776esac
7777
7778
7779
7780DOCDRAFTS="IGNORE"
7781
7782# Check whether --enable-drafts was given.
7783if test "${enable_drafts+set}" = set; then :
7784  enableval=$enable_drafts;
7785  if test "$enableval" = "yes"
7786  then
7787      DOCDRAFTS="INCLUDE"
7788  else
7789      DOCDRAFTS="IGNORE"
7790  fi
7791
7792fi
7793
7794if test "x$DOCSTARGET" = "xdocs"
7795then
7796    case "$DOCDRAFTS" in
7797    INCLUDE) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Documentation will include drafts." >&5
7798$as_echo "Documentation will include drafts." >&6; } ;;
7799    esac
7800fi
7801
7802
7803
7804  nl='
7805'
7806  echo "${nl}${T_MD}Configuring parameters ...${T_ME}"
7807
7808
7809
7810SUFFIX=""
7811
7812
7813# Check whether --with-suffix was given.
7814if test "${with_suffix+set}" = set; then :
7815  withval=$with_suffix;
7816  if test "x$withval" != "x" ; then
7817  	SUFFIX=$withval
7818  fi
7819
7820fi
7821
7822
7823
7824# Check whether --enable-suffix was given.
7825if test "${enable_suffix+set}" = set; then :
7826  enableval=$enable_suffix;
7827  if test "$enableval" = "yes" ; then
7828    SUFFIX="-$VERSION"
7829  else
7830    SUFFIX=""
7831  fi
7832
7833fi
7834
7835
7836if test "x$SUFFIX" != "x" ; then
7837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to append suffix to binary" >&5
7838$as_echo_n "checking whether to append suffix to binary... " >&6; }
7839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUFFIX" >&5
7840$as_echo "$SUFFIX" >&6; }
7841fi
7842
7843cat >>confdefs.h <<_ACEOF
7844#define SUFFIX "$SUFFIX"
7845_ACEOF
7846
7847
7848
7849
7850
7851
7852# Check whether --with-defaults was given.
7853if test "${with_defaults+set}" = set; then :
7854  withval=$with_defaults;
7855  case "$withval" in
7856  speed) assertiondefault=no
7857         mallocdefault=native
7858         ;;
7859  debug) assertiondefault=yes
7860         mallocdefault=check
7861         ;;
7862  *) echo "unknown --with-defaults parameter $withval"
7863     exit 1
7864     ;;
7865  esac
7866
7867else
7868
7869    assertiondefault=yes
7870  mallocdefault=native
7871
7872fi
7873
7874
7875
7876
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which malloc to use" >&5
7878$as_echo_n "checking which malloc to use... " >&6; }
7879
7880# Check whether --with-malloc was given.
7881if test "${with_malloc+set}" = set; then :
7882  withval=$with_malloc;
7883  case "$withval" in
7884  native) $as_echo "#define USE_GWMEM_NATIVE 1" >>confdefs.h
7885
7886          { $as_echo "$as_me:${as_lineno-$LINENO}: result: native malloc" >&5
7887$as_echo "native malloc" >&6; }
7888          ;;
7889  check) $as_echo "#define USE_GWMEM_CHECK 1" >>confdefs.h
7890
7891         { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking malloc" >&5
7892$as_echo "checking malloc" >&6; }
7893         ;;
7894  slow) $as_echo "#define USE_GWMEM_SLOW 1" >>confdefs.h
7895
7896        { $as_echo "$as_me:${as_lineno-$LINENO}: result: slow malloc" >&5
7897$as_echo "slow malloc" >&6; }
7898	;;
7899  *) echo "Unknown malloc wrapper $withval. Oops."; exit 1 ;;
7900  esac
7901
7902else
7903
7904  case "$mallocdefault" in
7905  check) $as_echo "#define USE_GWMEM_CHECK 1" >>confdefs.h
7906
7907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking malloc" >&5
7908$as_echo "checking malloc" >&6; }
7909     ;;
7910  slow) $as_echo "#define USE_GWMEM_SLOW 1" >>confdefs.h
7911
7912        { $as_echo "$as_me:${as_lineno-$LINENO}: result: slow malloc" >&5
7913$as_echo "slow malloc" >&6; }
7914	;;
7915  *) $as_echo "#define USE_GWMEM_NATIVE 1" >>confdefs.h
7916
7917          { $as_echo "$as_me:${as_lineno-$LINENO}: result: native malloc" >&5
7918$as_echo "native malloc" >&6; }
7919          ;;
7920  esac
7921
7922fi
7923
7924
7925
7926
7927# Check whether --enable-assertions was given.
7928if test "${enable_assertions+set}" = set; then :
7929  enableval=$enable_assertions;
7930  if test "$enableval" = "no"
7931  then
7932    echo disabling assertion checking
7933    $as_echo "#define NO_GWASSERT 1" >>confdefs.h
7934
7935  fi
7936
7937else
7938
7939  if test "$assertiondefault" = "no"
7940  then
7941    echo disabling assertion checking
7942    $as_echo "#define NO_GWASSERT 1" >>confdefs.h
7943
7944  fi
7945
7946fi
7947
7948
7949
7950
7951# Check whether --enable-pam was given.
7952if test "${enable_pam+set}" = set; then :
7953  enableval=$enable_pam;
7954    if test "$enableval" = "yes"
7955    then
7956	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_end in -lpam" >&5
7957$as_echo_n "checking for pam_end in -lpam... " >&6; }
7958if ${ac_cv_lib_pam_pam_end+:} false; then :
7959  $as_echo_n "(cached) " >&6
7960else
7961  ac_check_lib_save_LIBS=$LIBS
7962LIBS="-lpam  $LIBS"
7963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964/* end confdefs.h.  */
7965
7966/* Override any GCC internal prototype to avoid an error.
7967   Use char because int might match the return type of a GCC
7968   builtin and then its argument prototype would still apply.  */
7969#ifdef __cplusplus
7970extern "C"
7971#endif
7972char pam_end ();
7973int
7974main ()
7975{
7976return pam_end ();
7977  ;
7978  return 0;
7979}
7980_ACEOF
7981if ac_fn_c_try_link "$LINENO"; then :
7982  ac_cv_lib_pam_pam_end=yes
7983else
7984  ac_cv_lib_pam_pam_end=no
7985fi
7986rm -f core conftest.err conftest.$ac_objext \
7987    conftest$ac_exeext conftest.$ac_ext
7988LIBS=$ac_check_lib_save_LIBS
7989fi
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_end" >&5
7991$as_echo "$ac_cv_lib_pam_pam_end" >&6; }
7992if test "x$ac_cv_lib_pam_pam_end" = xyes; then :
7993  cat >>confdefs.h <<_ACEOF
7994#define HAVE_LIBPAM 1
7995_ACEOF
7996
7997  LIBS="-lpam $LIBS"
7998
7999fi
8000
8001	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
8002$as_echo_n "checking for main in -ldl... " >&6; }
8003if ${ac_cv_lib_dl_main+:} false; then :
8004  $as_echo_n "(cached) " >&6
8005else
8006  ac_check_lib_save_LIBS=$LIBS
8007LIBS="-ldl  $LIBS"
8008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009/* end confdefs.h.  */
8010
8011
8012int
8013main ()
8014{
8015return main ();
8016  ;
8017  return 0;
8018}
8019_ACEOF
8020if ac_fn_c_try_link "$LINENO"; then :
8021  ac_cv_lib_dl_main=yes
8022else
8023  ac_cv_lib_dl_main=no
8024fi
8025rm -f core conftest.err conftest.$ac_objext \
8026    conftest$ac_exeext conftest.$ac_ext
8027LIBS=$ac_check_lib_save_LIBS
8028fi
8029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
8030$as_echo "$ac_cv_lib_dl_main" >&6; }
8031if test "x$ac_cv_lib_dl_main" = xyes; then :
8032  cat >>confdefs.h <<_ACEOF
8033#define HAVE_LIBDL 1
8034_ACEOF
8035
8036  LIBS="-ldl $LIBS"
8037
8038fi
8039
8040	for ac_header in security/pam_appl.h
8041do :
8042  ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8043if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
8044  cat >>confdefs.h <<_ACEOF
8045#define HAVE_SECURITY_PAM_APPL_H 1
8046_ACEOF
8047
8048fi
8049
8050done
8051
8052	PAMTARGET="pam"
8053    else
8054	PAMTARGET="no-pam"
8055    fi
8056
8057fi
8058
8059case "$PAMTARGET" in
8060no-pam) echo PAM authentication is disabled. ;;
8061pam) echo PAM authentication is enabled. ;;
8062esac
8063
8064
8065
8066# Check whether --enable-debug was given.
8067if test "${enable_debug+set}" = set; then :
8068  enableval=$enable_debug;
8069  echo enabling WMLScript compiler debugging
8070  if test -n "$GCC"; then
8071    CFLAGS="$CFLAGS -Wall"
8072  fi
8073  $as_echo "#define WS_DEBUG 1" >>confdefs.h
8074
8075
8076fi
8077
8078
8079
8080
8081# Check whether --enable-localtime was given.
8082if test "${enable_localtime+set}" = set; then :
8083  enableval=$enable_localtime;
8084  if test "$enableval" = yes; then
8085      echo enabling local time
8086      $as_echo "#define LOG_TIMESTAMP_LOCALTIME 1" >>confdefs.h
8087
8088  fi
8089
8090else
8091
8092  echo enabling local time
8093  $as_echo "#define LOG_TIMESTAMP_LOCALTIME 1" >>confdefs.h
8094
8095
8096fi
8097
8098
8099
8100
8101# Check whether --enable-mutex-stats was given.
8102if test "${enable_mutex_stats+set}" = set; then :
8103  enableval=$enable_mutex_stats;
8104  if test "$enableval" = yes; then
8105      $as_echo "#define MUTEX_STATS 1" >>confdefs.h
8106
8107  fi
8108
8109fi
8110
8111
8112
8113
8114# Check whether --enable-cookies was given.
8115if test "${enable_cookies+set}" = set; then :
8116  enableval=$enable_cookies;
8117  if test "$enableval" = yes; then
8118    echo enabling cookies
8119    $as_echo "#define ENABLE_COOKIES 1" >>confdefs.h
8120
8121  else
8122    echo disabling cookies
8123  fi
8124
8125else
8126
8127  echo enabling cookies
8128  $as_echo "#define ENABLE_COOKIES 1" >>confdefs.h
8129
8130
8131fi
8132
8133
8134
8135
8136# Check whether --enable-keepalive was given.
8137if test "${enable_keepalive+set}" = set; then :
8138  enableval=$enable_keepalive;
8139  if test "$enableval" = yes; then
8140    echo enabling HTTP/1.1 keep-alive
8141    $as_echo "#define USE_KEEPALIVE 1" >>confdefs.h
8142
8143  else
8144    echo disabling HTTP/1.1 keep-alive
8145  fi
8146
8147else
8148
8149  echo enabling HTTP/1.1 keep-alive
8150  $as_echo "#define USE_KEEPALIVE 1" >>confdefs.h
8151
8152
8153fi
8154
8155
8156
8157
8158# Check whether --enable-start-stop-daemon was given.
8159if test "${enable_start_stop_daemon+set}" = set; then :
8160  enableval=$enable_start_stop_daemon;
8161  if test "$enableval" = yes; then
8162     STARTSTOPDAEMONSRC="utils/start-stop-daemon.c"
8163  fi
8164
8165fi
8166
8167
8168
8169
8170
8171# Check whether --enable-wap was given.
8172if test "${enable_wap+set}" = set; then :
8173  enableval=$enable_wap;
8174  if test "$enableval" = "no"
8175  then
8176    echo disabling WAP gateway parts in bearerbox
8177    $as_echo "#define NO_WAP 1" >>confdefs.h
8178
8179  fi
8180
8181fi
8182
8183
8184# Check whether --enable-sms was given.
8185if test "${enable_sms+set}" = set; then :
8186  enableval=$enable_sms;
8187  if test "$enableval" = "no"
8188  then
8189    echo disabling SMS gateway parts in bearerbox
8190    $as_echo "#define NO_SMS 1" >>confdefs.h
8191
8192  fi
8193
8194fi
8195
8196
8197
8198
8199
8200  nl='
8201'
8202  echo "${nl}${T_MD}Configuring OpenSSL support ...${T_ME}"
8203
8204
8205# Check whether --with-ssl was given.
8206if test "${with_ssl+set}" = set; then :
8207  withval=$with_ssl;  if test -d "$withval"; then
8208    ssllib="$withval/lib";
8209    sslinc="$withval/include"
8210  else
8211    as_fn_error $? "Unable to find OpenSSL libs and/or directories at $withval" "$LINENO" 5
8212  fi
8213
8214fi
8215
8216
8217
8218
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with SSL support" >&5
8220$as_echo_n "checking whether to compile with SSL support... " >&6; }
8221# Check whether --enable-ssl was given.
8222if test "${enable_ssl+set}" = set; then :
8223  enableval=$enable_ssl;
8224  if test "$enableval" = no ; then
8225    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8226$as_echo "disabled" >&6; }
8227    ssl=no
8228  else
8229    ssl=yes
8230  fi
8231
8232else
8233
8234  ssl=yes
8235
8236fi
8237
8238
8239if test "$ssl" = "yes" ; then
8240    if test "x$ssllib" = "x" && test "x$sslinc" = "x"; then
8241    for loc in /usr/lib /usr/lib64 /usr/local/ssl/lib /usr/local/openssl/lib; do
8242      if test -f "$loc/libssl.a" -o -f "$loc/libssl.so" -o -f "$loc/libssl.dylib" ; then
8243        ssllib="$loc"
8244      fi
8245    done
8246    if test "x$sslib" = "x"; then
8247      for lib in libssl.a libssl.so libssl.dylib; do
8248        name=`gcc -print-file-name=$lib`
8249        if test -f "$name"; then
8250          ssllib=`dirname $name`
8251        fi
8252      done
8253    fi
8254    for loc in /usr/include/ssl /usr/include/openssl /usr/local/ssl/include \
8255               /usr/local/openssl/include; do
8256      if test -d "$loc"; then
8257        sslinc="$loc"
8258      fi
8259    done
8260  fi
8261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying $ssllib $sslinc" >&5
8262$as_echo "trying $ssllib $sslinc" >&6; }
8263fi
8264
8265
8266
8267if test "x$ssllib" != "x" && test "x$sslinc" != "x"; then
8268  CFLAGS="$CFLAGS -I$sslinc"
8269  LIBS="$LIBS -L$ssllib"
8270
8271  # Extract the first word of "openssl", so it can be a program name with args.
8272set dummy openssl; ac_word=$2
8273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274$as_echo_n "checking for $ac_word... " >&6; }
8275if ${ac_cv_path_OPENSSL+:} false; then :
8276  $as_echo_n "(cached) " >&6
8277else
8278  case $OPENSSL in
8279  [\\/]* | ?:[\\/]*)
8280  ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
8281  ;;
8282  *)
8283  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284for as_dir in $PATH
8285do
8286  IFS=$as_save_IFS
8287  test -z "$as_dir" && as_dir=.
8288    for ac_exec_ext in '' $ac_executable_extensions; do
8289  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8290    ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
8291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8292    break 2
8293  fi
8294done
8295  done
8296IFS=$as_save_IFS
8297
8298  test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="no"
8299  ;;
8300esac
8301fi
8302OPENSSL=$ac_cv_path_OPENSSL
8303if test -n "$OPENSSL"; then
8304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
8305$as_echo "$OPENSSL" >&6; }
8306else
8307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308$as_echo "no" >&6; }
8309fi
8310
8311
8312  if test "$OPENSSL" = "yes"; then
8313    { $as_echo "$as_me:${as_lineno-$LINENO}: checking openssl version" >&5
8314$as_echo_n "checking openssl version... " >&6; }
8315    openssl_version=`$OPENSSL version | awk '{print $2}'`
8316    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_version" >&5
8317$as_echo "$openssl_version" >&6; }
8318  fi
8319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_lock in -lcrypto" >&5
8320$as_echo_n "checking for CRYPTO_lock in -lcrypto... " >&6; }
8321if ${ac_cv_lib_crypto_CRYPTO_lock+:} false; then :
8322  $as_echo_n "(cached) " >&6
8323else
8324  ac_check_lib_save_LIBS=$LIBS
8325LIBS="-lcrypto  $LIBS"
8326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327/* end confdefs.h.  */
8328
8329/* Override any GCC internal prototype to avoid an error.
8330   Use char because int might match the return type of a GCC
8331   builtin and then its argument prototype would still apply.  */
8332#ifdef __cplusplus
8333extern "C"
8334#endif
8335char CRYPTO_lock ();
8336int
8337main ()
8338{
8339return CRYPTO_lock ();
8340  ;
8341  return 0;
8342}
8343_ACEOF
8344if ac_fn_c_try_link "$LINENO"; then :
8345  ac_cv_lib_crypto_CRYPTO_lock=yes
8346else
8347  ac_cv_lib_crypto_CRYPTO_lock=no
8348fi
8349rm -f core conftest.err conftest.$ac_objext \
8350    conftest$ac_exeext conftest.$ac_ext
8351LIBS=$ac_check_lib_save_LIBS
8352fi
8353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
8354$as_echo "$ac_cv_lib_crypto_CRYPTO_lock" >&6; }
8355if test "x$ac_cv_lib_crypto_CRYPTO_lock" = xyes; then :
8356   LIBS="$LIBS -lcrypto"
8357    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
8358$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8359if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
8360  $as_echo_n "(cached) " >&6
8361else
8362  ac_check_lib_save_LIBS=$LIBS
8363LIBS="-lssl  $LIBS"
8364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365/* end confdefs.h.  */
8366
8367/* Override any GCC internal prototype to avoid an error.
8368   Use char because int might match the return type of a GCC
8369   builtin and then its argument prototype would still apply.  */
8370#ifdef __cplusplus
8371extern "C"
8372#endif
8373char SSL_library_init ();
8374int
8375main ()
8376{
8377return SSL_library_init ();
8378  ;
8379  return 0;
8380}
8381_ACEOF
8382if ac_fn_c_try_link "$LINENO"; then :
8383  ac_cv_lib_ssl_SSL_library_init=yes
8384else
8385  ac_cv_lib_ssl_SSL_library_init=no
8386fi
8387rm -f core conftest.err conftest.$ac_objext \
8388    conftest$ac_exeext conftest.$ac_ext
8389LIBS=$ac_check_lib_save_LIBS
8390fi
8391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8392$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8393if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
8394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
8395$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
8396if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
8397  $as_echo_n "(cached) " >&6
8398else
8399  ac_check_lib_save_LIBS=$LIBS
8400LIBS="-lssl  $LIBS"
8401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402/* end confdefs.h.  */
8403
8404/* Override any GCC internal prototype to avoid an error.
8405   Use char because int might match the return type of a GCC
8406   builtin and then its argument prototype would still apply.  */
8407#ifdef __cplusplus
8408extern "C"
8409#endif
8410char SSL_connect ();
8411int
8412main ()
8413{
8414return SSL_connect ();
8415  ;
8416  return 0;
8417}
8418_ACEOF
8419if ac_fn_c_try_link "$LINENO"; then :
8420  ac_cv_lib_ssl_SSL_connect=yes
8421else
8422  ac_cv_lib_ssl_SSL_connect=no
8423fi
8424rm -f core conftest.err conftest.$ac_objext \
8425    conftest$ac_exeext conftest.$ac_ext
8426LIBS=$ac_check_lib_save_LIBS
8427fi
8428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
8429$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
8430if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
8431  cat >>confdefs.h <<_ACEOF
8432#define HAVE_LIBSSL 1
8433_ACEOF
8434
8435  LIBS="-lssl $LIBS"
8436
8437fi
8438
8439      for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
8440                       openssl/pem.h openssl/ssl.h openssl/err.h \
8441                       openssl/hmac.h
8442do :
8443  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8444ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8445if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8446  cat >>confdefs.h <<_ACEOF
8447#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8448_ACEOF
8449
8450fi
8451
8452done
8453
8454      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the OpenSSL library is multithread-enabled" >&5
8455$as_echo_n "checking whether the OpenSSL library is multithread-enabled... " >&6; }
8456      if test "$cross_compiling" = yes; then :
8457  echo "Cross-compiling; make sure your SSL library is multithread-enabled"
8458
8459else
8460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461/* end confdefs.h.  */
8462
8463        #define OPENSSL_THREAD_DEFINES
8464        #include <openssl/opensslconf.h>
8465        int main(void) {
8466        #if defined(THREADS)
8467          exit(0);
8468        #elif defined(OPENSSL_THREADS)
8469          exit(0);
8470        #else
8471          exit(1);
8472        #endif
8473        }
8474
8475_ACEOF
8476if ac_fn_c_try_run "$LINENO"; then :
8477
8478        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8479$as_echo "yes" >&6; }
8480        $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
8481
8482        LIBS="$LIBS -lssl"
8483        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with SSL support" >&5
8484$as_echo_n "checking whether to compile with SSL support... " >&6; }
8485	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8486$as_echo "yes" >&6; }
8487
8488else
8489
8490        # Check whether --enable-ssl-thread-test was given.
8491if test "${enable_ssl_thread_test+set}" = set; then :
8492  enableval=$enable_ssl_thread_test;  if test "$enableval" = no ; then
8493            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, continue forced" >&5
8494$as_echo "no, continue forced" >&6; }
8495          fi
8496
8497else
8498
8499          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500$as_echo "no" >&6; }
8501          as_fn_error $? "Either get a multithread-enabled SSL or configure with --disable-ssl" "$LINENO" 5
8502
8503fi
8504
8505
8506fi
8507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8508  conftest.$ac_objext conftest.beam conftest.$ac_ext
8509fi
8510
8511
8512fi
8513
8514
8515fi
8516
8517fi
8518
8519
8520
8521  nl='
8522'
8523  echo "${nl}${T_MD}Configuring DB support ...${T_ME}"
8524
8525
8526
8527
8528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with MySQL support" >&5
8529$as_echo_n "checking whether to compile with MySQL support... " >&6; }
8530
8531# Check whether --with-mysql was given.
8532if test "${with_mysql+set}" = set; then :
8533  withval=$with_mysql;
8534if test "$withval" != yes ; then
8535    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8536$as_echo "disabled" >&6; }
8537else
8538
8539# Check whether --with-mysql-dir was given.
8540if test "${with_mysql_dir+set}" = set; then :
8541  withval=$with_mysql_dir;
8542        mysqlloc=""
8543        if test -d "$withval" ; then
8544        mysqlloc="$withval"
8545        fi
8546
8547fi
8548
8549
8550    { $as_echo "$as_me:${as_lineno-$LINENO}: result: searching" >&5
8551$as_echo "searching" >&6; }
8552    # Extract the first word of "mysql_config", so it can be a program name with args.
8553set dummy mysql_config; ac_word=$2
8554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555$as_echo_n "checking for $ac_word... " >&6; }
8556if ${ac_cv_path_MYSQL_CONFIG+:} false; then :
8557  $as_echo_n "(cached) " >&6
8558else
8559  case $MYSQL_CONFIG in
8560  [\\/]* | ?:[\\/]*)
8561  ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
8562  ;;
8563  *)
8564  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8565as_dummy="$PATH:$mysqlloc/bin:$mysqlloc"
8566for as_dir in $as_dummy
8567do
8568  IFS=$as_save_IFS
8569  test -z "$as_dir" && as_dir=.
8570    for ac_exec_ext in '' $ac_executable_extensions; do
8571  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8572    ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8574    break 2
8575  fi
8576done
8577  done
8578IFS=$as_save_IFS
8579
8580  test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG="no"
8581  ;;
8582esac
8583fi
8584MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
8585if test -n "$MYSQL_CONFIG"; then
8586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
8587$as_echo "$MYSQL_CONFIG" >&6; }
8588else
8589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590$as_echo "no" >&6; }
8591fi
8592
8593
8594        if test "$MYSQL_CONFIG" = "no"; then
8595        found=""
8596        for loc in $mysqlloc /usr /usr/local ; do
8597        if test "x$found" = "x" ; then
8598            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL client support in" >&5
8599$as_echo_n "checking for MySQL client support in... " >&6; }
8600            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loc" >&5
8601$as_echo "$loc" >&6; }
8602            as_ac_File=`$as_echo "ac_cv_file_"$loc/include/mysql/mysql.h"" | $as_tr_sh`
8603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"$loc/include/mysql/mysql.h\"" >&5
8604$as_echo_n "checking for \"$loc/include/mysql/mysql.h\"... " >&6; }
8605if eval \${$as_ac_File+:} false; then :
8606  $as_echo_n "(cached) " >&6
8607else
8608  test "$cross_compiling" = yes &&
8609  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
8610if test -r ""$loc/include/mysql/mysql.h""; then
8611  eval "$as_ac_File=yes"
8612else
8613  eval "$as_ac_File=no"
8614fi
8615fi
8616eval ac_res=\$$as_ac_File
8617	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8618$as_echo "$ac_res" >&6; }
8619if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
8620  CFLAGS="$CFLAGS -I$loc/include/mysql"; LIBS="$LIBS -L$loc/lib/mysql -lmysqlclient"; found=1
8621else
8622  as_ac_File=`$as_echo "ac_cv_file_"$loc/include/mysql.h"" | $as_tr_sh`
8623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"$loc/include/mysql.h\"" >&5
8624$as_echo_n "checking for \"$loc/include/mysql.h\"... " >&6; }
8625if eval \${$as_ac_File+:} false; then :
8626  $as_echo_n "(cached) " >&6
8627else
8628  test "$cross_compiling" = yes &&
8629  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
8630if test -r ""$loc/include/mysql.h""; then
8631  eval "$as_ac_File=yes"
8632else
8633  eval "$as_ac_File=no"
8634fi
8635fi
8636eval ac_res=\$$as_ac_File
8637	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8638$as_echo "$ac_res" >&6; }
8639if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
8640  CFLAGS="$CFLAGS -I$loc/include"; LIBS="$LIBS -L$loc/lib -lmysqlclient"; found=1
8641
8642fi
8643
8644
8645fi
8646
8647        fi
8648        done
8649        if test "x$found" != "x1" ; then
8650        as_fn_error $? "Unable to find mysql.h, please provide a --with-mysql-dir=<dir> location" "$LINENO" 5
8651        fi
8652    else
8653                { $as_echo "$as_me:${as_lineno-$LINENO}: checking mysql version" >&5
8654$as_echo_n "checking mysql version... " >&6; }
8655        mysql_version=`$MYSQL_CONFIG --version`
8656        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mysql_version" >&5
8657$as_echo "$mysql_version" >&6; }
8658                MYSQL_LIBS=""
8659        if $MYSQL_CONFIG --libs_r &>/dev/null ; then
8660            MYSQL_LIBS=`$MYSQL_CONFIG --libs_r`
8661            { $as_echo "$as_me:${as_lineno-$LINENO}: checking mysql reentrant libs" >&5
8662$as_echo_n "checking mysql reentrant libs... " >&6; }
8663            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_LIBS" >&5
8664$as_echo "$MYSQL_LIBS" >&6; }
8665            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient_r" >&5
8666$as_echo_n "checking for mysql_init in -lmysqlclient_r... " >&6; }
8667if ${ac_cv_lib_mysqlclient_r_mysql_init+:} false; then :
8668  $as_echo_n "(cached) " >&6
8669else
8670  ac_check_lib_save_LIBS=$LIBS
8671LIBS="-lmysqlclient_r  $MYSQL_LIBS  $LIBS"
8672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8673/* end confdefs.h.  */
8674
8675/* Override any GCC internal prototype to avoid an error.
8676   Use char because int might match the return type of a GCC
8677   builtin and then its argument prototype would still apply.  */
8678#ifdef __cplusplus
8679extern "C"
8680#endif
8681char mysql_init ();
8682int
8683main ()
8684{
8685return mysql_init ();
8686  ;
8687  return 0;
8688}
8689_ACEOF
8690if ac_fn_c_try_link "$LINENO"; then :
8691  ac_cv_lib_mysqlclient_r_mysql_init=yes
8692else
8693  ac_cv_lib_mysqlclient_r_mysql_init=no
8694fi
8695rm -f core conftest.err conftest.$ac_objext \
8696    conftest$ac_exeext conftest.$ac_ext
8697LIBS=$ac_check_lib_save_LIBS
8698fi
8699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_init" >&5
8700$as_echo "$ac_cv_lib_mysqlclient_r_mysql_init" >&6; }
8701if test "x$ac_cv_lib_mysqlclient_r_mysql_init" = xyes; then :
8702   LIBS="$LIBS $MYSQL_LIBS"
8703else
8704   MYSQL_LIBS=""
8705fi
8706
8707        fi
8708        if test -z "$MYSQL_LIBS" ; then
8709            MYSQL_LIBS=`$MYSQL_CONFIG --libs`
8710            { $as_echo "$as_me:${as_lineno-$LINENO}: checking mysql libs" >&5
8711$as_echo_n "checking mysql libs... " >&6; }
8712            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_LIBS" >&5
8713$as_echo "$MYSQL_LIBS" >&6; }
8714            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5
8715$as_echo_n "checking for mysql_init in -lmysqlclient... " >&6; }
8716if ${ac_cv_lib_mysqlclient_mysql_init+:} false; then :
8717  $as_echo_n "(cached) " >&6
8718else
8719  ac_check_lib_save_LIBS=$LIBS
8720LIBS="-lmysqlclient  $MYSQL_LIBS  $LIBS"
8721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8722/* end confdefs.h.  */
8723
8724/* Override any GCC internal prototype to avoid an error.
8725   Use char because int might match the return type of a GCC
8726   builtin and then its argument prototype would still apply.  */
8727#ifdef __cplusplus
8728extern "C"
8729#endif
8730char mysql_init ();
8731int
8732main ()
8733{
8734return mysql_init ();
8735  ;
8736  return 0;
8737}
8738_ACEOF
8739if ac_fn_c_try_link "$LINENO"; then :
8740  ac_cv_lib_mysqlclient_mysql_init=yes
8741else
8742  ac_cv_lib_mysqlclient_mysql_init=no
8743fi
8744rm -f core conftest.err conftest.$ac_objext \
8745    conftest$ac_exeext conftest.$ac_ext
8746LIBS=$ac_check_lib_save_LIBS
8747fi
8748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
8749$as_echo "$ac_cv_lib_mysqlclient_mysql_init" >&6; }
8750if test "x$ac_cv_lib_mysqlclient_mysql_init" = xyes; then :
8751   LIBS="$LIBS $MYSQL_LIBS"
8752else
8753  as_fn_error $? "Unable to find MySQL client libraries" "$LINENO" 5
8754fi
8755
8756        fi
8757        { $as_echo "$as_me:${as_lineno-$LINENO}: checking mysql includes" >&5
8758$as_echo_n "checking mysql includes... " >&6; }
8759                if $MYSQL_CONFIG --include &>/dev/null ; then
8760            MYSQL_CFLAGS=`$MYSQL_CONFIG --include`
8761        else
8762            MYSQL_CFLAGS=`$MYSQL_CONFIG --cflags`
8763        fi
8764        CFLAGS="$CFLAGS $MYSQL_CFLAGS"
8765        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CFLAGS" >&5
8766$as_echo "$MYSQL_CFLAGS" >&6; }
8767    fi
8768    for ac_header in mysql/mysql.h mysql/mysql_version.h
8769do :
8770  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8771ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8772if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8773  cat >>confdefs.h <<_ACEOF
8774#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8775_ACEOF
8776
8777fi
8778
8779done
8780
8781    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_stmt_init in -lmysqlclient_r" >&5
8782$as_echo_n "checking for mysql_stmt_init in -lmysqlclient_r... " >&6; }
8783if ${ac_cv_lib_mysqlclient_r_mysql_stmt_init+:} false; then :
8784  $as_echo_n "(cached) " >&6
8785else
8786  ac_check_lib_save_LIBS=$LIBS
8787LIBS="-lmysqlclient_r  $LIBS"
8788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8789/* end confdefs.h.  */
8790
8791/* Override any GCC internal prototype to avoid an error.
8792   Use char because int might match the return type of a GCC
8793   builtin and then its argument prototype would still apply.  */
8794#ifdef __cplusplus
8795extern "C"
8796#endif
8797char mysql_stmt_init ();
8798int
8799main ()
8800{
8801return mysql_stmt_init ();
8802  ;
8803  return 0;
8804}
8805_ACEOF
8806if ac_fn_c_try_link "$LINENO"; then :
8807  ac_cv_lib_mysqlclient_r_mysql_stmt_init=yes
8808else
8809  ac_cv_lib_mysqlclient_r_mysql_stmt_init=no
8810fi
8811rm -f core conftest.err conftest.$ac_objext \
8812    conftest$ac_exeext conftest.$ac_ext
8813LIBS=$ac_check_lib_save_LIBS
8814fi
8815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_stmt_init" >&5
8816$as_echo "$ac_cv_lib_mysqlclient_r_mysql_stmt_init" >&6; }
8817if test "x$ac_cv_lib_mysqlclient_r_mysql_stmt_init" = xyes; then :
8818  cat >>confdefs.h <<_ACEOF
8819#define HAVE_LIBMYSQLCLIENT_R 1
8820_ACEOF
8821
8822  LIBS="-lmysqlclient_r $LIBS"
8823
8824else
8825  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_stmt_init in -lmysqlclient" >&5
8826$as_echo_n "checking for mysql_stmt_init in -lmysqlclient... " >&6; }
8827if ${ac_cv_lib_mysqlclient_mysql_stmt_init+:} false; then :
8828  $as_echo_n "(cached) " >&6
8829else
8830  ac_check_lib_save_LIBS=$LIBS
8831LIBS="-lmysqlclient  $LIBS"
8832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833/* end confdefs.h.  */
8834
8835/* Override any GCC internal prototype to avoid an error.
8836   Use char because int might match the return type of a GCC
8837   builtin and then its argument prototype would still apply.  */
8838#ifdef __cplusplus
8839extern "C"
8840#endif
8841char mysql_stmt_init ();
8842int
8843main ()
8844{
8845return mysql_stmt_init ();
8846  ;
8847  return 0;
8848}
8849_ACEOF
8850if ac_fn_c_try_link "$LINENO"; then :
8851  ac_cv_lib_mysqlclient_mysql_stmt_init=yes
8852else
8853  ac_cv_lib_mysqlclient_mysql_stmt_init=no
8854fi
8855rm -f core conftest.err conftest.$ac_objext \
8856    conftest$ac_exeext conftest.$ac_ext
8857LIBS=$ac_check_lib_save_LIBS
8858fi
8859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_stmt_init" >&5
8860$as_echo "$ac_cv_lib_mysqlclient_mysql_stmt_init" >&6; }
8861if test "x$ac_cv_lib_mysqlclient_mysql_stmt_init" = xyes; then :
8862  cat >>confdefs.h <<_ACEOF
8863#define HAVE_LIBMYSQLCLIENT 1
8864_ACEOF
8865
8866  LIBS="-lmysqlclient $LIBS"
8867
8868else
8869  as_fn_error $? "Unable to find MySQL client libraries version >= 4.1" "$LINENO" 5
8870fi
8871
8872
8873fi
8874
8875    $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
8876
8877    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with MySQL support" >&5
8878$as_echo_n "checking whether to compile with MySQL support... " >&6; }
8879    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8880$as_echo "yes" >&6; }
8881    MYSQL="yes"
8882fi
8883
8884else
8885
8886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8887$as_echo "disabled" >&6; }
8888
8889fi
8890
8891
8892
8893
8894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with LibSDB support" >&5
8895$as_echo_n "checking whether to compile with LibSDB support... " >&6; }
8896
8897# Check whether --with-sdb was given.
8898if test "${with_sdb+set}" = set; then :
8899  withval=$with_sdb;
8900if test "$withval" != yes; then
8901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8902$as_echo "disabled" >&6; }
8903else
8904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: searching" >&5
8905$as_echo "searching" >&6; }
8906  for ac_prog in sdb-config
8907do
8908  # Extract the first word of "$ac_prog", so it can be a program name with args.
8909set dummy $ac_prog; ac_word=$2
8910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8911$as_echo_n "checking for $ac_word... " >&6; }
8912if ${ac_cv_path_SDB_CONFIG+:} false; then :
8913  $as_echo_n "(cached) " >&6
8914else
8915  case $SDB_CONFIG in
8916  [\\/]* | ?:[\\/]*)
8917  ac_cv_path_SDB_CONFIG="$SDB_CONFIG" # Let the user override the test with a path.
8918  ;;
8919  *)
8920  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8921for as_dir in $PATH
8922do
8923  IFS=$as_save_IFS
8924  test -z "$as_dir" && as_dir=.
8925    for ac_exec_ext in '' $ac_executable_extensions; do
8926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8927    ac_cv_path_SDB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8929    break 2
8930  fi
8931done
8932  done
8933IFS=$as_save_IFS
8934
8935  ;;
8936esac
8937fi
8938SDB_CONFIG=$ac_cv_path_SDB_CONFIG
8939if test -n "$SDB_CONFIG"; then
8940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDB_CONFIG" >&5
8941$as_echo "$SDB_CONFIG" >&6; }
8942else
8943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8944$as_echo "no" >&6; }
8945fi
8946
8947
8948  test -n "$SDB_CONFIG" && break
8949done
8950test -n "$SDB_CONFIG" || SDB_CONFIG="no"
8951
8952  if test "$SDB_CONFIG" = "no"; then
8953    as_fn_error $? "Unable to find sdb-config in path for SDB support" "$LINENO" 5
8954  else
8955    { $as_echo "$as_me:${as_lineno-$LINENO}: checking sdb version" >&5
8956$as_echo_n "checking sdb version... " >&6; }
8957    sdb_version=`$SDB_CONFIG --version`
8958    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sdb_version" >&5
8959$as_echo "$sdb_version" >&6; }
8960    CFLAGS="$CFLAGS `$SDB_CONFIG --cflags`"
8961    for ac_header in sdb.h
8962do :
8963  ac_fn_c_check_header_mongrel "$LINENO" "sdb.h" "ac_cv_header_sdb_h" "$ac_includes_default"
8964if test "x$ac_cv_header_sdb_h" = xyes; then :
8965  cat >>confdefs.h <<_ACEOF
8966#define HAVE_SDB_H 1
8967_ACEOF
8968
8969fi
8970
8971done
8972
8973    LIBS="$LIBS `$SDB_CONFIG --libs`"
8974    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdb_init in -lsdb" >&5
8975$as_echo_n "checking for sdb_init in -lsdb... " >&6; }
8976if ${ac_cv_lib_sdb_sdb_init+:} false; then :
8977  $as_echo_n "(cached) " >&6
8978else
8979  ac_check_lib_save_LIBS=$LIBS
8980LIBS="-lsdb  $LIBS"
8981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982/* end confdefs.h.  */
8983
8984/* Override any GCC internal prototype to avoid an error.
8985   Use char because int might match the return type of a GCC
8986   builtin and then its argument prototype would still apply.  */
8987#ifdef __cplusplus
8988extern "C"
8989#endif
8990char sdb_init ();
8991int
8992main ()
8993{
8994return sdb_init ();
8995  ;
8996  return 0;
8997}
8998_ACEOF
8999if ac_fn_c_try_link "$LINENO"; then :
9000  ac_cv_lib_sdb_sdb_init=yes
9001else
9002  ac_cv_lib_sdb_sdb_init=no
9003fi
9004rm -f core conftest.err conftest.$ac_objext \
9005    conftest$ac_exeext conftest.$ac_ext
9006LIBS=$ac_check_lib_save_LIBS
9007fi
9008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sdb_sdb_init" >&5
9009$as_echo "$ac_cv_lib_sdb_sdb_init" >&6; }
9010if test "x$ac_cv_lib_sdb_sdb_init" = xyes; then :
9011  LIBS="$LIBS -lsdb"
9012       $as_echo "#define HAVE_SDB 1" >>confdefs.h
9013
9014       cat >>confdefs.h <<_ACEOF
9015#define LIBSDB_VERSION "$sdb_version"
9016_ACEOF
9017
9018       SDB="yes"
9019else
9020  as_fn_error $? "Unable to find libSDB client libraries" "$LINENO" 5
9021
9022fi
9023
9024  fi
9025fi
9026
9027else
9028
9029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9030$as_echo "disabled" >&6; }
9031
9032fi
9033
9034
9035
9036
9037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with SQLite2 support" >&5
9038$as_echo_n "checking whether to compile with SQLite2 support... " >&6; }
9039
9040# Check whether --with-sqlite2 was given.
9041if test "${with_sqlite2+set}" = set; then :
9042  withval=$with_sqlite2;
9043if test "$withval" != yes; then
9044    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9045$as_echo "disabled" >&6; }
9046else
9047    { $as_echo "$as_me:${as_lineno-$LINENO}: result: searching" >&5
9048$as_echo "searching" >&6; }
9049    for ac_header in sqlite.h
9050do :
9051  ac_fn_c_check_header_mongrel "$LINENO" "sqlite.h" "ac_cv_header_sqlite_h" "$ac_includes_default"
9052if test "x$ac_cv_header_sqlite_h" = xyes; then :
9053  cat >>confdefs.h <<_ACEOF
9054#define HAVE_SQLITE_H 1
9055_ACEOF
9056
9057fi
9058
9059done
9060
9061    LIBS="$LIBS -L/usr/local/lib"
9062    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_open in -lsqlite" >&5
9063$as_echo_n "checking for sqlite_open in -lsqlite... " >&6; }
9064if ${ac_cv_lib_sqlite_sqlite_open+:} false; then :
9065  $as_echo_n "(cached) " >&6
9066else
9067  ac_check_lib_save_LIBS=$LIBS
9068LIBS="-lsqlite  $LIBS"
9069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070/* end confdefs.h.  */
9071
9072/* Override any GCC internal prototype to avoid an error.
9073   Use char because int might match the return type of a GCC
9074   builtin and then its argument prototype would still apply.  */
9075#ifdef __cplusplus
9076extern "C"
9077#endif
9078char sqlite_open ();
9079int
9080main ()
9081{
9082return sqlite_open ();
9083  ;
9084  return 0;
9085}
9086_ACEOF
9087if ac_fn_c_try_link "$LINENO"; then :
9088  ac_cv_lib_sqlite_sqlite_open=yes
9089else
9090  ac_cv_lib_sqlite_sqlite_open=no
9091fi
9092rm -f core conftest.err conftest.$ac_objext \
9093    conftest$ac_exeext conftest.$ac_ext
9094LIBS=$ac_check_lib_save_LIBS
9095fi
9096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_open" >&5
9097$as_echo "$ac_cv_lib_sqlite_sqlite_open" >&6; }
9098if test "x$ac_cv_lib_sqlite_sqlite_open" = xyes; then :
9099  LIBS="$LIBS -lsqlite"
9100       $as_echo "#define HAVE_SQLITE 1" >>confdefs.h
9101
9102       SQLITE="yes"
9103else
9104  as_fn_error $? "Unable to find SQLite2 client libraries" "$LINENO" 5
9105
9106fi
9107
9108    for ac_prog in sqlite
9109do
9110  # Extract the first word of "$ac_prog", so it can be a program name with args.
9111set dummy $ac_prog; ac_word=$2
9112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113$as_echo_n "checking for $ac_word... " >&6; }
9114if ${ac_cv_path_SQLITE+:} false; then :
9115  $as_echo_n "(cached) " >&6
9116else
9117  case $SQLITE in
9118  [\\/]* | ?:[\\/]*)
9119  ac_cv_path_SQLITE="$SQLITE" # Let the user override the test with a path.
9120  ;;
9121  *)
9122  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123for as_dir in $PATH
9124do
9125  IFS=$as_save_IFS
9126  test -z "$as_dir" && as_dir=.
9127    for ac_exec_ext in '' $ac_executable_extensions; do
9128  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9129    ac_cv_path_SQLITE="$as_dir/$ac_word$ac_exec_ext"
9130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9131    break 2
9132  fi
9133done
9134  done
9135IFS=$as_save_IFS
9136
9137  ;;
9138esac
9139fi
9140SQLITE=$ac_cv_path_SQLITE
9141if test -n "$SQLITE"; then
9142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SQLITE" >&5
9143$as_echo "$SQLITE" >&6; }
9144else
9145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9146$as_echo "no" >&6; }
9147fi
9148
9149
9150  test -n "$SQLITE" && break
9151done
9152test -n "$SQLITE" || SQLITE="no"
9153
9154    if test "$SQLITE" = "no"; then
9155      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find sqlite in path for SQLite2 support" >&5
9156$as_echo "$as_me: WARNING: Unable to find sqlite in path for SQLite2 support" >&2;}
9157    else
9158      { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite version" >&5
9159$as_echo_n "checking sqlite version... " >&6; }
9160      sqlite_version=`$SQLITE -version`
9161      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sqlite_version" >&5
9162$as_echo "$sqlite_version" >&6; }
9163    fi
9164fi
9165
9166else
9167
9168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9169$as_echo "disabled" >&6; }
9170
9171fi
9172
9173
9174
9175
9176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with SQLite3 support" >&5
9177$as_echo_n "checking whether to compile with SQLite3 support... " >&6; }
9178
9179# Check whether --with-sqlite3 was given.
9180if test "${with_sqlite3+set}" = set; then :
9181  withval=$with_sqlite3;
9182if test "$withval" != yes; then
9183    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9184$as_echo "disabled" >&6; }
9185else
9186    { $as_echo "$as_me:${as_lineno-$LINENO}: result: searching" >&5
9187$as_echo "searching" >&6; }
9188    for ac_header in sqlite3.h
9189do :
9190  ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
9191if test "x$ac_cv_header_sqlite3_h" = xyes; then :
9192  cat >>confdefs.h <<_ACEOF
9193#define HAVE_SQLITE3_H 1
9194_ACEOF
9195
9196fi
9197
9198done
9199
9200    LIBS="$LIBS -L/usr/local/lib"
9201    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
9202$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
9203if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
9204  $as_echo_n "(cached) " >&6
9205else
9206  ac_check_lib_save_LIBS=$LIBS
9207LIBS="-lsqlite3  $LIBS"
9208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209/* end confdefs.h.  */
9210
9211/* Override any GCC internal prototype to avoid an error.
9212   Use char because int might match the return type of a GCC
9213   builtin and then its argument prototype would still apply.  */
9214#ifdef __cplusplus
9215extern "C"
9216#endif
9217char sqlite3_open ();
9218int
9219main ()
9220{
9221return sqlite3_open ();
9222  ;
9223  return 0;
9224}
9225_ACEOF
9226if ac_fn_c_try_link "$LINENO"; then :
9227  ac_cv_lib_sqlite3_sqlite3_open=yes
9228else
9229  ac_cv_lib_sqlite3_sqlite3_open=no
9230fi
9231rm -f core conftest.err conftest.$ac_objext \
9232    conftest$ac_exeext conftest.$ac_ext
9233LIBS=$ac_check_lib_save_LIBS
9234fi
9235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
9236$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
9237if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
9238  LIBS="$LIBS -lsqlite3"
9239       $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
9240
9241       SQLITE3="yes"
9242else
9243  as_fn_error $? "Unable to find SQLite3 client libraries" "$LINENO" 5
9244
9245fi
9246
9247    for ac_prog in sqlite3
9248do
9249  # Extract the first word of "$ac_prog", so it can be a program name with args.
9250set dummy $ac_prog; ac_word=$2
9251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9252$as_echo_n "checking for $ac_word... " >&6; }
9253if ${ac_cv_path_SQLITE3+:} false; then :
9254  $as_echo_n "(cached) " >&6
9255else
9256  case $SQLITE3 in
9257  [\\/]* | ?:[\\/]*)
9258  ac_cv_path_SQLITE3="$SQLITE3" # Let the user override the test with a path.
9259  ;;
9260  *)
9261  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9262for as_dir in $PATH
9263do
9264  IFS=$as_save_IFS
9265  test -z "$as_dir" && as_dir=.
9266    for ac_exec_ext in '' $ac_executable_extensions; do
9267  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9268    ac_cv_path_SQLITE3="$as_dir/$ac_word$ac_exec_ext"
9269    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9270    break 2
9271  fi
9272done
9273  done
9274IFS=$as_save_IFS
9275
9276  ;;
9277esac
9278fi
9279SQLITE3=$ac_cv_path_SQLITE3
9280if test -n "$SQLITE3"; then
9281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SQLITE3" >&5
9282$as_echo "$SQLITE3" >&6; }
9283else
9284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9285$as_echo "no" >&6; }
9286fi
9287
9288
9289  test -n "$SQLITE3" && break
9290done
9291test -n "$SQLITE3" || SQLITE3="no"
9292
9293    if test "$SQLITE3" = "no"; then
9294      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find sqlite3 in path for SQLite3 support" >&5
9295$as_echo "$as_me: WARNING: Unable to find sqlite3 in path for SQLite3 support" >&2;}
9296    else
9297      { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite3 version" >&5
9298$as_echo_n "checking sqlite3 version... " >&6; }
9299      sqlite3_version=`$SQLITE3 -version | awk '{print $1}'`
9300      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sqlite3_version" >&5
9301$as_echo "$sqlite3_version" >&6; }
9302    fi
9303fi
9304
9305else
9306
9307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9308$as_echo "disabled" >&6; }
9309
9310fi
9311
9312
9313
9314
9315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with Oracle support" >&5
9316$as_echo_n "checking whether to compile with Oracle support... " >&6; }
9317
9318# Check whether --with-oracle was given.
9319if test "${with_oracle+set}" = set; then :
9320  withval=$with_oracle;
9321if test "$withval" != yes ; then
9322    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9323$as_echo "disabled" >&6; }
9324else
9325    { $as_echo "$as_me:${as_lineno-$LINENO}: result: searching" >&5
9326$as_echo "searching" >&6; }
9327
9328# Check whether --with-oracle-includes was given.
9329if test "${with_oracle_includes+set}" = set; then :
9330  withval=$with_oracle_includes;  ORACLE_INCLUDE_PATH="$withval"
9331else
9332   ORACLE_INCLUDE_PATH="$ORACLE_HOME/rdbms/demo $ORACLE_HOME/rdbms/public"
9333
9334fi
9335
9336        for a in $ORACLE_INCLUDE_PATH
9337        do
9338                CPPFLAGS="$CPPFLAGS -I$a"
9339        done
9340        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oci.h " >&5
9341$as_echo_n "checking for oci.h ... " >&6; }
9342        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343/* end confdefs.h.  */
9344#include <oci.h>
9345_ACEOF
9346if ac_fn_c_try_cpp "$LINENO"; then :
9347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9348$as_echo "yes" >&6; }
9349else
9350  as_fn_error $? "oci.h not found" "$LINENO" 5
9351fi
9352rm -f conftest.err conftest.i conftest.$ac_ext
9353        CFLAGS="$CFLAGS $CPPFLAGS"
9354
9355
9356# Check whether --with-oracle-libs was given.
9357if test "${with_oracle_libs+set}" = set; then :
9358  withval=$with_oracle_libs;  ORACLE_LIB_PATH="$withval"
9359else
9360   ORACLE_LIB_PATH="$ORACLE_HOME/lib"
9361
9362fi
9363
9364        for a in $ORACLE_LIB_PATH
9365        do
9366                LIBS="$LIBS -L$a"
9367        done
9368
9369                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5
9370$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; }
9371if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then :
9372  $as_echo_n "(cached) " >&6
9373else
9374  ac_check_lib_save_LIBS=$LIBS
9375LIBS="-lclntsh  $LIBS"
9376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377/* end confdefs.h.  */
9378
9379/* Override any GCC internal prototype to avoid an error.
9380   Use char because int might match the return type of a GCC
9381   builtin and then its argument prototype would still apply.  */
9382#ifdef __cplusplus
9383extern "C"
9384#endif
9385char OCIEnvCreate ();
9386int
9387main ()
9388{
9389return OCIEnvCreate ();
9390  ;
9391  return 0;
9392}
9393_ACEOF
9394if ac_fn_c_try_link "$LINENO"; then :
9395  ac_cv_lib_clntsh_OCIEnvCreate=yes
9396else
9397  ac_cv_lib_clntsh_OCIEnvCreate=no
9398fi
9399rm -f core conftest.err conftest.$ac_objext \
9400    conftest$ac_exeext conftest.$ac_ext
9401LIBS=$ac_check_lib_save_LIBS
9402fi
9403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5
9404$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; }
9405if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then :
9406   LIBS="$LIBS -lclntsh"
9407else
9408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5
9409$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; }
9410if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then :
9411  $as_echo_n "(cached) " >&6
9412else
9413  ac_check_lib_save_LIBS=$LIBS
9414LIBS="-lclntsh  $LIBS"
9415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416/* end confdefs.h.  */
9417
9418/* Override any GCC internal prototype to avoid an error.
9419   Use char because int might match the return type of a GCC
9420   builtin and then its argument prototype would still apply.  */
9421#ifdef __cplusplus
9422extern "C"
9423#endif
9424char OCIEnvCreate ();
9425int
9426main ()
9427{
9428return OCIEnvCreate ();
9429  ;
9430  return 0;
9431}
9432_ACEOF
9433if ac_fn_c_try_link "$LINENO"; then :
9434  ac_cv_lib_clntsh_OCIEnvCreate=yes
9435else
9436  ac_cv_lib_clntsh_OCIEnvCreate=no
9437fi
9438rm -f core conftest.err conftest.$ac_objext \
9439    conftest$ac_exeext conftest.$ac_ext
9440LIBS=$ac_check_lib_save_LIBS
9441fi
9442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5
9443$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; }
9444if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then :
9445   LIBS="$LIBS -lclntsh -lnnz10"
9446else
9447  exit
9448fi
9449
9450
9451fi
9452
9453
9454                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wtcstu in -lwtc8" >&5
9455$as_echo_n "checking for wtcstu in -lwtc8... " >&6; }
9456if ${ac_cv_lib_wtc8_wtcstu+:} false; then :
9457  $as_echo_n "(cached) " >&6
9458else
9459  ac_check_lib_save_LIBS=$LIBS
9460LIBS="-lwtc8  $LIBS"
9461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462/* end confdefs.h.  */
9463
9464/* Override any GCC internal prototype to avoid an error.
9465   Use char because int might match the return type of a GCC
9466   builtin and then its argument prototype would still apply.  */
9467#ifdef __cplusplus
9468extern "C"
9469#endif
9470char wtcstu ();
9471int
9472main ()
9473{
9474return wtcstu ();
9475  ;
9476  return 0;
9477}
9478_ACEOF
9479if ac_fn_c_try_link "$LINENO"; then :
9480  ac_cv_lib_wtc8_wtcstu=yes
9481else
9482  ac_cv_lib_wtc8_wtcstu=no
9483fi
9484rm -f core conftest.err conftest.$ac_objext \
9485    conftest$ac_exeext conftest.$ac_ext
9486LIBS=$ac_check_lib_save_LIBS
9487fi
9488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wtc8_wtcstu" >&5
9489$as_echo "$ac_cv_lib_wtc8_wtcstu" >&6; }
9490if test "x$ac_cv_lib_wtc8_wtcstu" = xyes; then :
9491   LIBS="$LIBS -lwtc8"
9492else
9493  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wtcstu in -lwtc9" >&5
9494$as_echo_n "checking for wtcstu in -lwtc9... " >&6; }
9495if ${ac_cv_lib_wtc9_wtcstu+:} false; then :
9496  $as_echo_n "(cached) " >&6
9497else
9498  ac_check_lib_save_LIBS=$LIBS
9499LIBS="-lwtc9  $LIBS"
9500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501/* end confdefs.h.  */
9502
9503/* Override any GCC internal prototype to avoid an error.
9504   Use char because int might match the return type of a GCC
9505   builtin and then its argument prototype would still apply.  */
9506#ifdef __cplusplus
9507extern "C"
9508#endif
9509char wtcstu ();
9510int
9511main ()
9512{
9513return wtcstu ();
9514  ;
9515  return 0;
9516}
9517_ACEOF
9518if ac_fn_c_try_link "$LINENO"; then :
9519  ac_cv_lib_wtc9_wtcstu=yes
9520else
9521  ac_cv_lib_wtc9_wtcstu=no
9522fi
9523rm -f core conftest.err conftest.$ac_objext \
9524    conftest$ac_exeext conftest.$ac_ext
9525LIBS=$ac_check_lib_save_LIBS
9526fi
9527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wtc9_wtcstu" >&5
9528$as_echo "$ac_cv_lib_wtc9_wtcstu" >&6; }
9529if test "x$ac_cv_lib_wtc9_wtcstu" = xyes; then :
9530   LIBS="$LIBS -lwtc9"
9531else
9532  true
9533fi
9534
9535
9536fi
9537
9538
9539		ac_fn_c_check_func "$LINENO" "OCIPing" "ac_cv_func_OCIPing"
9540if test "x$ac_cv_func_OCIPing" = xyes; then :
9541
9542$as_echo "#define HAVE_OCIPING 1" >>confdefs.h
9543
9544fi
9545
9546
9547
9548$as_echo "#define HAVE_ORACLE 1" >>confdefs.h
9549
9550    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with Oracle support" >&5
9551$as_echo_n "checking whether to compile with Oracle support... " >&6; }
9552    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9553$as_echo "yes" >&6; }
9554fi
9555
9556else
9557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9558$as_echo "disabled" >&6; }
9559fi
9560
9561
9562
9563
9564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with PostgresSQL support" >&5
9565$as_echo_n "checking whether to compile with PostgresSQL support... " >&6; }
9566
9567# Check whether --with-pgsql was given.
9568if test "${with_pgsql+set}" = set; then :
9569  withval=$with_pgsql;
9570if test "$withval" != yes ; then
9571    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9572$as_echo "disabled" >&6; }
9573else
9574
9575# Check whether --with-pgsql-dir was given.
9576if test "${with_pgsql_dir+set}" = set; then :
9577  withval=$with_pgsql_dir;
9578    	pgsqlloc=""
9579    	if test -d "$withval" ; then
9580    		pgsqlloc="$withval"
9581    	fi
9582
9583fi
9584
9585
9586    { $as_echo "$as_me:${as_lineno-$LINENO}: result: searching" >&5
9587$as_echo "searching" >&6; }
9588    # Extract the first word of "pg_config", so it can be a program name with args.
9589set dummy pg_config; ac_word=$2
9590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9591$as_echo_n "checking for $ac_word... " >&6; }
9592if ${ac_cv_path_PGSQL_CONFIG+:} false; then :
9593  $as_echo_n "(cached) " >&6
9594else
9595  case $PGSQL_CONFIG in
9596  [\\/]* | ?:[\\/]*)
9597  ac_cv_path_PGSQL_CONFIG="$PGSQL_CONFIG" # Let the user override the test with a path.
9598  ;;
9599  *)
9600  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9601as_dummy="$PATH:$pgsqlloc/bin:$pgsqlloc:/usr/lib/postgresql/bin"
9602for as_dir in $as_dummy
9603do
9604  IFS=$as_save_IFS
9605  test -z "$as_dir" && as_dir=.
9606    for ac_exec_ext in '' $ac_executable_extensions; do
9607  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9608    ac_cv_path_PGSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9609    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9610    break 2
9611  fi
9612done
9613  done
9614IFS=$as_save_IFS
9615
9616  test -z "$ac_cv_path_PGSQL_CONFIG" && ac_cv_path_PGSQL_CONFIG="no"
9617  ;;
9618esac
9619fi
9620PGSQL_CONFIG=$ac_cv_path_PGSQL_CONFIG
9621if test -n "$PGSQL_CONFIG"; then
9622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGSQL_CONFIG" >&5
9623$as_echo "$PGSQL_CONFIG" >&6; }
9624else
9625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9626$as_echo "no" >&6; }
9627fi
9628
9629
9630        if test "$PGSQL_CONFIG" = "no"; then
9631    	found=""
9632    	for loc in $pgsqlloc /usr /usr/local ; do
9633    		if test "x$found" = "x" ; then
9634    			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgresSQL include files in" >&5
9635$as_echo_n "checking for PostgresSQL include files in... " >&6; }
9636    			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $loc" >&5
9637$as_echo "$loc" >&6; }
9638    			as_ac_File=`$as_echo "ac_cv_file_"$loc/include/postgresql/libpq-fe.h"" | $as_tr_sh`
9639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"$loc/include/postgresql/libpq-fe.h\"" >&5
9640$as_echo_n "checking for \"$loc/include/postgresql/libpq-fe.h\"... " >&6; }
9641if eval \${$as_ac_File+:} false; then :
9642  $as_echo_n "(cached) " >&6
9643else
9644  test "$cross_compiling" = yes &&
9645  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
9646if test -r ""$loc/include/postgresql/libpq-fe.h""; then
9647  eval "$as_ac_File=yes"
9648else
9649  eval "$as_ac_File=no"
9650fi
9651fi
9652eval ac_res=\$$as_ac_File
9653	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9654$as_echo "$ac_res" >&6; }
9655if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
9656  CFLAGS="$CFLAGS -I$loc/include/postgresql"; LIBS="$LIBS -L$loc/lib/postgresql -lpq"; found=1
9657else
9658  as_ac_File=`$as_echo "ac_cv_file_"$loc/include/pgsql/libpq-fe.h"" | $as_tr_sh`
9659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"$loc/include/pgsql/libpq-fe.h\"" >&5
9660$as_echo_n "checking for \"$loc/include/pgsql/libpq-fe.h\"... " >&6; }
9661if eval \${$as_ac_File+:} false; then :
9662  $as_echo_n "(cached) " >&6
9663else
9664  test "$cross_compiling" = yes &&
9665  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
9666if test -r ""$loc/include/pgsql/libpq-fe.h""; then
9667  eval "$as_ac_File=yes"
9668else
9669  eval "$as_ac_File=no"
9670fi
9671fi
9672eval ac_res=\$$as_ac_File
9673	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9674$as_echo "$ac_res" >&6; }
9675if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
9676  CFLAGS="$CFLAGS -I$loc/include/pgsql"; LIBS="$LIBS -L$loc/lib/pgsql -lpq"; found=1
9677else
9678  as_ac_File=`$as_echo "ac_cv_file_"$loc/pgsql/include/libpq-fe.h"" | $as_tr_sh`
9679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"$loc/pgsql/include/libpq-fe.h\"" >&5
9680$as_echo_n "checking for \"$loc/pgsql/include/libpq-fe.h\"... " >&6; }
9681if eval \${$as_ac_File+:} false; then :
9682  $as_echo_n "(cached) " >&6
9683else
9684  test "$cross_compiling" = yes &&
9685  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
9686if test -r ""$loc/pgsql/include/libpq-fe.h""; then
9687  eval "$as_ac_File=yes"
9688else
9689  eval "$as_ac_File=no"
9690fi
9691fi
9692eval ac_res=\$$as_ac_File
9693	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9694$as_echo "$ac_res" >&6; }
9695if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
9696  CFLAGS="$CFLAGS -I$loc/pgsql/include"; LIBS="$LIBS -L$loc/pgsql/lib -lpq"; found=1
9697fi
9698
9699
9700fi
9701
9702fi
9703
9704    		fi
9705    	done
9706    	if test "x$found" != "x1" ; then
9707    		as_fn_error $? "Unable to find libpq-fe.h, please provide a --with-pgsql-dir=<dir> location" "$LINENO" 5
9708    	fi
9709    else
9710    	    	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PostgreSQL version" >&5
9711$as_echo_n "checking PostgreSQL version... " >&6; }
9712    	pgsql_version=`$PGSQL_CONFIG --version | awk '{print $2}'`
9713    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgsql_version" >&5
9714$as_echo "$pgsql_version" >&6; }
9715    	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PostgreSQL libdir" >&5
9716$as_echo_n "checking PostgreSQL libdir... " >&6; }
9717    	if $PGSQL_CONFIG --libdir &>/dev/null ; then
9718    		LIBS="$LIBS -L`$PGSQL_CONFIG --libdir`"
9719    		pg_libdir=`$PGSQL_CONFIG --libdir`
9720    		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pg_libdir" >&5
9721$as_echo "$pg_libdir" >&6; }
9722        fi
9723        { $as_echo "$as_me:${as_lineno-$LINENO}: checking PostgreSQL includes" >&5
9724$as_echo_n "checking PostgreSQL includes... " >&6; }
9725        if $PGSQL_CONFIG --includedir &>/dev/null ; then
9726            CFLAGS="$CFLAGS -I`$PGSQL_CONFIG --includedir`"
9727            CPPFLAGS="$CPPFLAGS -I`$PGSQL_CONFIG --includedir`"
9728            pg_incdir=`$PGSQL_CONFIG --includedir`
9729            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pg_incdir" >&5
9730$as_echo "$pg_incdir" >&6; }
9731        fi
9732    fi
9733
9734    for ac_header in libpq-fe.h
9735do :
9736  ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
9737if test "x$ac_cv_header_libpq_fe_h" = xyes; then :
9738  cat >>confdefs.h <<_ACEOF
9739#define HAVE_LIBPQ_FE_H 1
9740_ACEOF
9741
9742fi
9743
9744done
9745
9746    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQconnectdb in -lpq" >&5
9747$as_echo_n "checking for PQconnectdb in -lpq... " >&6; }
9748if ${ac_cv_lib_pq_PQconnectdb+:} false; then :
9749  $as_echo_n "(cached) " >&6
9750else
9751  ac_check_lib_save_LIBS=$LIBS
9752LIBS="-lpq  $LIBS"
9753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754/* end confdefs.h.  */
9755
9756/* Override any GCC internal prototype to avoid an error.
9757   Use char because int might match the return type of a GCC
9758   builtin and then its argument prototype would still apply.  */
9759#ifdef __cplusplus
9760extern "C"
9761#endif
9762char PQconnectdb ();
9763int
9764main ()
9765{
9766return PQconnectdb ();
9767  ;
9768  return 0;
9769}
9770_ACEOF
9771if ac_fn_c_try_link "$LINENO"; then :
9772  ac_cv_lib_pq_PQconnectdb=yes
9773else
9774  ac_cv_lib_pq_PQconnectdb=no
9775fi
9776rm -f core conftest.err conftest.$ac_objext \
9777    conftest$ac_exeext conftest.$ac_ext
9778LIBS=$ac_check_lib_save_LIBS
9779fi
9780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQconnectdb" >&5
9781$as_echo "$ac_cv_lib_pq_PQconnectdb" >&6; }
9782if test "x$ac_cv_lib_pq_PQconnectdb" = xyes; then :
9783  cat >>confdefs.h <<_ACEOF
9784#define HAVE_LIBPQ 1
9785_ACEOF
9786
9787  LIBS="-lpq $LIBS"
9788
9789fi
9790
9791    $as_echo "#define HAVE_PGSQL 1" >>confdefs.h
9792
9793    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with PostgreSQL support" >&5
9794$as_echo_n "checking whether to compile with PostgreSQL support... " >&6; }
9795    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9796$as_echo "yes" >&6; }
9797    PGSQL="yes"
9798fi
9799
9800else
9801
9802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9803$as_echo "disabled" >&6; }
9804
9805fi
9806
9807
9808
9809
9810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with Redis support" >&5
9811$as_echo_n "checking whether to compile with Redis support... " >&6; }
9812
9813# Check whether --with-redis was given.
9814if test "${with_redis+set}" = set; then :
9815  withval=$with_redis;
9816if test "$withval" != yes ; then
9817    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9818$as_echo "disabled" >&6; }
9819else
9820
9821# Check whether --with-redis-dir was given.
9822if test "${with_redis_dir+set}" = set; then :
9823  withval=$with_redis_dir;
9824        redisloc=""
9825        if test -d "$withval" ; then
9826        redisloc="$withval"
9827        fi
9828
9829fi
9830
9831
9832    { $as_echo "$as_me:${as_lineno-$LINENO}: result: searching" >&5
9833$as_echo "searching" >&6; }
9834    # Extract the first word of "redis_config", so it can be a program name with args.
9835set dummy redis_config; ac_word=$2
9836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9837$as_echo_n "checking for $ac_word... " >&6; }
9838if ${ac_cv_path_REDIS_CONFIG+:} false; then :
9839  $as_echo_n "(cached) " >&6
9840else
9841  case $REDIS_CONFIG in
9842  [\\/]* | ?:[\\/]*)
9843  ac_cv_path_REDIS_CONFIG="$REDIS_CONFIG" # Let the user override the test with a path.
9844  ;;
9845  *)
9846  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9847as_dummy="$PATH:$redisloc/bin:$redisloc"
9848for as_dir in $as_dummy
9849do
9850  IFS=$as_save_IFS
9851  test -z "$as_dir" && as_dir=.
9852    for ac_exec_ext in '' $ac_executable_extensions; do
9853  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9854    ac_cv_path_REDIS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9856    break 2
9857  fi
9858done
9859  done
9860IFS=$as_save_IFS
9861
9862  test -z "$ac_cv_path_REDIS_CONFIG" && ac_cv_path_REDIS_CONFIG="no"
9863  ;;
9864esac
9865fi
9866REDIS_CONFIG=$ac_cv_path_REDIS_CONFIG
9867if test -n "$REDIS_CONFIG"; then
9868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REDIS_CONFIG" >&5
9869$as_echo "$REDIS_CONFIG" >&6; }
9870else
9871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9872$as_echo "no" >&6; }
9873fi
9874
9875
9876    if test "$REDIS_CONFIG" = "no"; then
9877        found=""
9878        for loc in $redisloc /usr /usr/local ; do
9879            if test "x$found" = "x" ; then
9880                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Redis include files in" >&5
9881$as_echo_n "checking for Redis include files in... " >&6; }
9882                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loc" >&5
9883$as_echo "$loc" >&6; }
9884                as_ac_File=`$as_echo "ac_cv_file_"$loc/hiredis.h"" | $as_tr_sh`
9885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"$loc/hiredis.h\"" >&5
9886$as_echo_n "checking for \"$loc/hiredis.h\"... " >&6; }
9887if eval \${$as_ac_File+:} false; then :
9888  $as_echo_n "(cached) " >&6
9889else
9890  test "$cross_compiling" = yes &&
9891  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
9892if test -r ""$loc/hiredis.h""; then
9893  eval "$as_ac_File=yes"
9894else
9895  eval "$as_ac_File=no"
9896fi
9897fi
9898eval ac_res=\$$as_ac_File
9899	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9900$as_echo "$ac_res" >&6; }
9901if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
9902  CFLAGS="$CFLAGS -I$loc"; LIBS="$LIBS -L$loc -lhiredis"; found=1
9903else
9904  as_ac_File=`$as_echo "ac_cv_file_"$loc/include/hiredis/hiredis.h"" | $as_tr_sh`
9905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"$loc/include/hiredis/hiredis.h\"" >&5
9906$as_echo_n "checking for \"$loc/include/hiredis/hiredis.h\"... " >&6; }
9907if eval \${$as_ac_File+:} false; then :
9908  $as_echo_n "(cached) " >&6
9909else
9910  test "$cross_compiling" = yes &&
9911  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
9912if test -r ""$loc/include/hiredis/hiredis.h""; then
9913  eval "$as_ac_File=yes"
9914else
9915  eval "$as_ac_File=no"
9916fi
9917fi
9918eval ac_res=\$$as_ac_File
9919	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9920$as_echo "$ac_res" >&6; }
9921if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
9922  CFLAGS="$CFLAGS -I$loc/include/hiredis"; LIBS="$LIBS -L$loc/lib -lhiredis"; found=1
9923
9924fi
9925
9926
9927fi
9928
9929            fi
9930        done
9931        if test "x$found" != "x1" ; then
9932            as_fn_error $? "Unable to find hiredis.h, please provide a --with-redis-dir=<dir> location" "$LINENO" 5
9933        fi
9934    else
9935                REDIS_LIBS=""
9936        if test -z "$REDIS_LIBS" ; then
9937            REDIS_LIBS=`$REDIS_CONFIG --libs`
9938            { $as_echo "$as_me:${as_lineno-$LINENO}: checking redis libs" >&5
9939$as_echo_n "checking redis libs... " >&6; }
9940            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REDIS_LIBS" >&5
9941$as_echo "$REDIS_LIBS" >&6; }
9942            as_ac_Lib=`$as_echo "ac_cv_lib_hiredis_ LIBS="$LIBS $REDIS_LIBS" " | $as_tr_sh`
9943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for  LIBS=\"$LIBS $REDIS_LIBS\"  in -lhiredis" >&5
9944$as_echo_n "checking for  LIBS=\"$LIBS $REDIS_LIBS\"  in -lhiredis... " >&6; }
9945if eval \${$as_ac_Lib+:} false; then :
9946  $as_echo_n "(cached) " >&6
9947else
9948  ac_check_lib_save_LIBS=$LIBS
9949LIBS="-lhiredis  $LIBS"
9950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951/* end confdefs.h.  */
9952
9953/* Override any GCC internal prototype to avoid an error.
9954   Use char because int might match the return type of a GCC
9955   builtin and then its argument prototype would still apply.  */
9956#ifdef __cplusplus
9957extern "C"
9958#endif
9959char  LIBS="$LIBS $REDIS_LIBS"  ();
9960int
9961main ()
9962{
9963return  LIBS="$LIBS $REDIS_LIBS"  ();
9964  ;
9965  return 0;
9966}
9967_ACEOF
9968if ac_fn_c_try_link "$LINENO"; then :
9969  eval "$as_ac_Lib=yes"
9970else
9971  eval "$as_ac_Lib=no"
9972fi
9973rm -f core conftest.err conftest.$ac_objext \
9974    conftest$ac_exeext conftest.$ac_ext
9975LIBS=$ac_check_lib_save_LIBS
9976fi
9977eval ac_res=\$$as_ac_Lib
9978	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9979$as_echo "$ac_res" >&6; }
9980if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9981  as_fn_error $? "Unable to find Redis client libraries" "$LINENO" 5
9982else
9983   $REDIS_LIBS
9984fi
9985
9986        fi
9987        { $as_echo "$as_me:${as_lineno-$LINENO}: checking redis includes" >&5
9988$as_echo_n "checking redis includes... " >&6; }
9989        if $REDIS_CONFIG --include &>/dev/null ; then
9990            REDIS_CFLAGS=`$REDIS_CONFIG --include`
9991        else
9992            REDIS_CFLAGS=`$REDIS_CONFIG --cflags`
9993        fi
9994        CFLAGS="$CFLAGS $REDIS_CFLAGS"
9995        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REDIS_CFLAGS" >&5
9996$as_echo "$REDIS_CFLAGS" >&6; }
9997    fi
9998    for ac_header in hiredis/hiredis.h
9999do :
10000  ac_fn_c_check_header_mongrel "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default"
10001if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then :
10002  cat >>confdefs.h <<_ACEOF
10003#define HAVE_HIREDIS_HIREDIS_H 1
10004_ACEOF
10005
10006fi
10007
10008done
10009
10010    $as_echo "#define HAVE_REDIS 1" >>confdefs.h
10011
10012    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with Redis support" >&5
10013$as_echo_n "checking whether to compile with Redis support... " >&6; }
10014    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10015$as_echo "yes" >&6; }
10016    REDIS="yes"
10017fi
10018
10019else
10020
10021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10022$as_echo "disabled" >&6; }
10023
10024fi
10025
10026
10027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with FreeTDS Ct-Lib support" >&5
10028$as_echo_n "checking whether to compile with FreeTDS Ct-Lib support... " >&6; }
10029
10030# Check whether --with-mssql was given.
10031if test "${with_mssql+set}" = set; then :
10032  withval=$with_mssql;
10033    if test "$withval" = "yes"; then
10034        withval=/usr/local
10035    fi
10036
10037    if test "$withval" != "no"; then
10038        if test -f $withval/include/ctpublic.h; then
10039            MSSQL_INCDIR=$withval/include
10040            MSSQL_LIBDIR=$withval/lib
10041        else
10042            if test -f $withval/include/freetds/ctpublic.h; then
10043                MSSQL_INCDIR=$withval/include/freetds
10044                MSSQL_LIBDIR=$withval/lib
10045            else
10046                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10047$as_echo "no" >&6; }
10048                as_fn_error $? "Invalid FreeTDS directory - unable to find ctpublic.h" "$LINENO" 5
10049            fi
10050        fi
10051        LIBS="$LIBS -L$MSSQL_LIBDIR -lct"
10052        CFLAGS="$CFLAGS -I$MSSQL_INCDIR"
10053
10054$as_echo "#define HAVE_MSSQL 1" >>confdefs.h
10055
10056        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10057$as_echo "yes" >&6; }
10058        MSSQL="yes"
10059            fi
10060
10061else
10062
10063    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10064$as_echo "disabled" >&6; }
10065
10066fi
10067
10068
10069
10070
10071
10072# Check whether --with-wtls was given.
10073if test "${with_wtls+set}" = set; then :
10074  withval=$with_wtls;
10075  nl='
10076'
10077  echo "${nl}${T_MD}Configuring WTLS support ...${T_ME}"
10078
10079  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WTLS library" >&5
10080$as_echo_n "checking for WTLS library... " >&6; }
10081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10082$as_echo "$withval" >&6; }
10083  case "$withval" in
10084  openssl)
10085    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_new in -lcrypto" >&5
10086$as_echo_n "checking for RSA_new in -lcrypto... " >&6; }
10087if ${ac_cv_lib_crypto_RSA_new+:} false; then :
10088  $as_echo_n "(cached) " >&6
10089else
10090  ac_check_lib_save_LIBS=$LIBS
10091LIBS="-lcrypto  $LIBS"
10092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10093/* end confdefs.h.  */
10094
10095/* Override any GCC internal prototype to avoid an error.
10096   Use char because int might match the return type of a GCC
10097   builtin and then its argument prototype would still apply.  */
10098#ifdef __cplusplus
10099extern "C"
10100#endif
10101char RSA_new ();
10102int
10103main ()
10104{
10105return RSA_new ();
10106  ;
10107  return 0;
10108}
10109_ACEOF
10110if ac_fn_c_try_link "$LINENO"; then :
10111  ac_cv_lib_crypto_RSA_new=yes
10112else
10113  ac_cv_lib_crypto_RSA_new=no
10114fi
10115rm -f core conftest.err conftest.$ac_objext \
10116    conftest$ac_exeext conftest.$ac_ext
10117LIBS=$ac_check_lib_save_LIBS
10118fi
10119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_new" >&5
10120$as_echo "$ac_cv_lib_crypto_RSA_new" >&6; }
10121if test "x$ac_cv_lib_crypto_RSA_new" = xyes; then :
10122   for ac_header in openssl/objects.h openssl/rc5.h
10123do :
10124  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10125ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10126if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10127  cat >>confdefs.h <<_ACEOF
10128#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10129_ACEOF
10130 $as_echo "#define HAVE_WTLS_OPENSSL 1" >>confdefs.h
10131
10132else
10133  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL installation seems to lack RC5 algorithm!" >&5
10134$as_echo "$as_me: WARNING: OpenSSL installation seems to lack RC5 algorithm!" >&2;}
10135
10136fi
10137
10138done
10139
10140
10141fi
10142
10143	;;
10144  baltimore)
10145    as_fn_error $? "This WTLS library is yet not supported!" "$LINENO" 5
10146    ;;
10147  *)
10148    as_fn_error $? "Unknown WTLS libary support!" "$LINENO" 5
10149    exit 1
10150    ;;
10151  esac
10152
10153fi
10154
10155
10156
10157
10158  nl='
10159'
10160  echo "${nl}${T_MD}Configuring for gSOAP support ...${T_ME}"
10161
10162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with SOAP support" >&5
10163$as_echo_n "checking whether to compile with SOAP support... " >&6; }
10164
10165# Check whether --with-gsoap was given.
10166if test "${with_gsoap+set}" = set; then :
10167  withval=$with_gsoap;
10168  if test "x$withval" = "xyes"; then
10169    for loc in /usr/share/gsoap /usr/local/share/gsoap; do
10170      if test -d "$loc/import" && test -d "$loc/plugin"; then
10171        GSOAP_SHARE=$loc
10172        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSOAP_SHARE" >&5
10173$as_echo "$GSOAP_SHARE" >&6; }
10174      fi
10175    done
10176    if test "x$GSOAP_SHARE" = "x"; then
10177      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10178$as_echo "not found" >&6; }
10179      as_fn_error $? "Unable to find gSOAP's import and/or plugin directory" "$LINENO" 5
10180    fi
10181  else
10182    if test -d "$withval/import" && test -d "$withval/plugin"; then
10183      GSOAP_SHARE="$withval"
10184      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10185$as_echo "$withval" >&6; }
10186    else
10187      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10188$as_echo "not found" >&6; }
10189      as_fn_error $? "Unable to find gSOAP's import at $withval/import and/or plugin at $withval/plugin" "$LINENO" 5
10190    fi
10191  fi
10192  gsoap_ver_required="2.8.4"
10193
10194  for ac_prog in wsdl2h
10195do
10196  # Extract the first word of "$ac_prog", so it can be a program name with args.
10197set dummy $ac_prog; ac_word=$2
10198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10199$as_echo_n "checking for $ac_word... " >&6; }
10200if ${ac_cv_path_WSDL2H+:} false; then :
10201  $as_echo_n "(cached) " >&6
10202else
10203  case $WSDL2H in
10204  [\\/]* | ?:[\\/]*)
10205  ac_cv_path_WSDL2H="$WSDL2H" # Let the user override the test with a path.
10206  ;;
10207  *)
10208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10209for as_dir in $PATH
10210do
10211  IFS=$as_save_IFS
10212  test -z "$as_dir" && as_dir=.
10213    for ac_exec_ext in '' $ac_executable_extensions; do
10214  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10215    ac_cv_path_WSDL2H="$as_dir/$ac_word$ac_exec_ext"
10216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10217    break 2
10218  fi
10219done
10220  done
10221IFS=$as_save_IFS
10222
10223  ;;
10224esac
10225fi
10226WSDL2H=$ac_cv_path_WSDL2H
10227if test -n "$WSDL2H"; then
10228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WSDL2H" >&5
10229$as_echo "$WSDL2H" >&6; }
10230else
10231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232$as_echo "no" >&6; }
10233fi
10234
10235
10236  test -n "$WSDL2H" && break
10237done
10238test -n "$WSDL2H" || WSDL2H="no"
10239
10240  if test "$WSDL2H" = "no"; then
10241    as_fn_error $? "Unable to find gSOAP's wsdl2h in path for SOAP support" "$LINENO" 5
10242  fi
10243  for ac_prog in soapcpp2
10244do
10245  # Extract the first word of "$ac_prog", so it can be a program name with args.
10246set dummy $ac_prog; ac_word=$2
10247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10248$as_echo_n "checking for $ac_word... " >&6; }
10249if ${ac_cv_path_SOAPCPP+:} false; then :
10250  $as_echo_n "(cached) " >&6
10251else
10252  case $SOAPCPP in
10253  [\\/]* | ?:[\\/]*)
10254  ac_cv_path_SOAPCPP="$SOAPCPP" # Let the user override the test with a path.
10255  ;;
10256  *)
10257  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258for as_dir in $PATH
10259do
10260  IFS=$as_save_IFS
10261  test -z "$as_dir" && as_dir=.
10262    for ac_exec_ext in '' $ac_executable_extensions; do
10263  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10264    ac_cv_path_SOAPCPP="$as_dir/$ac_word$ac_exec_ext"
10265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10266    break 2
10267  fi
10268done
10269  done
10270IFS=$as_save_IFS
10271
10272  ;;
10273esac
10274fi
10275SOAPCPP=$ac_cv_path_SOAPCPP
10276if test -n "$SOAPCPP"; then
10277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOAPCPP" >&5
10278$as_echo "$SOAPCPP" >&6; }
10279else
10280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281$as_echo "no" >&6; }
10282fi
10283
10284
10285  test -n "$SOAPCPP" && break
10286done
10287test -n "$SOAPCPP" || SOAPCPP="no"
10288
10289  if test "$SOAPCPP" = "no"; then
10290    as_fn_error $? "Unable to find gSOAP's soapcpp2 in path for SOAP support" "$LINENO" 5
10291  fi
10292
10293  { $as_echo "$as_me:${as_lineno-$LINENO}: checking gSOAP version" >&5
10294$as_echo_n "checking gSOAP version... " >&6; }
10295  gsoap_version=`$SOAPCPP -v &> /tmp/gsoap.tmp && cat /tmp/gsoap.tmp | grep "C and C++" | awk '{print $NF}'`
10296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gsoap_version" >&5
10297$as_echo "$gsoap_version" >&6; }
10298  gsoap_version_str=`echo $gsoap_version | grep -e "^[0-9]*\.[0-9]*\.[0-9]*$"`
10299  if test "$gsoap_version_str" = ""; then
10300    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gSOAP version $gsoap_version contains alphanumeric characters. Version MAYBE too old!" >&5
10301$as_echo "$as_me: WARNING: gSOAP version $gsoap_version contains alphanumeric characters. Version MAYBE too old!" >&2;}
10302  else
10303
10304    ac_inst_ver_maj=`echo $gsoap_version | sed -e 's/^\(.*\)\..*\..*$/\1/'`
10305  ac_inst_ver_mid=`echo $gsoap_version | sed -e 's/^.*\.\(.*\)\..*$/\1/'`
10306  ac_inst_ver_min=`echo $gsoap_version | sed -e 's/^.*\..*\.\(.*\)$/\1/'`
10307
10308    ac_req_ver_maj=`echo $gsoap_ver_required | sed -e 's/^\(.*\)\..*\..*$/\1/'`
10309  ac_req_ver_mid=`echo $gsoap_ver_required | sed -e 's/^.*\.\(.*\)\..*$/\1/'`
10310  ac_req_ver_min=`echo $gsoap_ver_required | sed -e 's/^.*\..*\.\(.*\)$/\1/'`
10311
10312    if test "$ac_inst_ver_maj" -lt "$ac_req_ver_maj" || \
10313    ( test "$ac_inst_ver_maj" -eq "$ac_req_ver_maj" && \
10314      test "$ac_inst_ver_mid" -lt "$ac_req_ver_mid" ) || \
10315    ( test "$ac_inst_ver_mid" -eq "$ac_req_ver_mid" && \
10316      test "$ac_inst_ver_min" -lt "$ac_req_ver_min" )
10317  then
10318    ac_ver_fail=yes
10319  else
10320    ac_ver_fail=no
10321  fi
10322
10323
10324  if test $ac_ver_fail = yes; then
10325
10326      as_fn_error $? "gSOAP version $gsoap_version is too old. You MUST have at least $gsoap_ver_required" "$LINENO" 5
10327
10328   fi
10329
10330  fi
10331
10332  SOAP_INCLUDE="include soap/Makefile"
10333  $as_echo "#define HAVE_GSOAP 1" >>confdefs.h
10334
10335
10336
10337
10338
10339
10340else
10341
10342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10343$as_echo "disabled" >&6; }
10344
10345fi
10346
10347
10348
10349
10350
10351  nl='
10352'
10353  echo "${nl}${T_MD}Generating output files ...${T_ME}"
10354
10355ac_config_files="$ac_config_files gwlib/gw_uuid_types.h Makefile soap/Makefile"
10356
10357cat >confcache <<\_ACEOF
10358# This file is a shell script that caches the results of configure
10359# tests run on this system so they can be shared between configure
10360# scripts and configure runs, see configure's option --config-cache.
10361# It is not useful on other systems.  If it contains results you don't
10362# want to keep, you may remove or edit it.
10363#
10364# config.status only pays attention to the cache file if you give it
10365# the --recheck option to rerun configure.
10366#
10367# `ac_cv_env_foo' variables (set or unset) will be overridden when
10368# loading this file, other *unset* `ac_cv_foo' will be assigned the
10369# following values.
10370
10371_ACEOF
10372
10373# The following way of writing the cache mishandles newlines in values,
10374# but we know of no workaround that is simple, portable, and efficient.
10375# So, we kill variables containing newlines.
10376# Ultrix sh set writes to stderr and can't be redirected directly,
10377# and sets the high bit in the cache file unless we assign to the vars.
10378(
10379  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10380    eval ac_val=\$$ac_var
10381    case $ac_val in #(
10382    *${as_nl}*)
10383      case $ac_var in #(
10384      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10385$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10386      esac
10387      case $ac_var in #(
10388      _ | IFS | as_nl) ;; #(
10389      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10390      *) { eval $ac_var=; unset $ac_var;} ;;
10391      esac ;;
10392    esac
10393  done
10394
10395  (set) 2>&1 |
10396    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10397    *${as_nl}ac_space=\ *)
10398      # `set' does not quote correctly, so add quotes: double-quote
10399      # substitution turns \\\\ into \\, and sed turns \\ into \.
10400      sed -n \
10401	"s/'/'\\\\''/g;
10402	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10403      ;; #(
10404    *)
10405      # `set' quotes correctly as required by POSIX, so do not add quotes.
10406      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10407      ;;
10408    esac |
10409    sort
10410) |
10411  sed '
10412     /^ac_cv_env_/b end
10413     t clear
10414     :clear
10415     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10416     t end
10417     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10418     :end' >>confcache
10419if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10420  if test -w "$cache_file"; then
10421    if test "x$cache_file" != "x/dev/null"; then
10422      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10423$as_echo "$as_me: updating cache $cache_file" >&6;}
10424      if test ! -f "$cache_file" || test -h "$cache_file"; then
10425	cat confcache >"$cache_file"
10426      else
10427        case $cache_file in #(
10428        */* | ?:*)
10429	  mv -f confcache "$cache_file"$$ &&
10430	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10431        *)
10432	  mv -f confcache "$cache_file" ;;
10433	esac
10434      fi
10435    fi
10436  else
10437    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10438$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10439  fi
10440fi
10441rm -f confcache
10442
10443test "x$prefix" = xNONE && prefix=$ac_default_prefix
10444# Let make expand exec_prefix.
10445test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10446
10447DEFS=-DHAVE_CONFIG_H
10448
10449ac_libobjs=
10450ac_ltlibobjs=
10451U=
10452for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10453  # 1. Remove the extension, and $U if already installed.
10454  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10455  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10456  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10457  #    will be set to the directory where LIBOBJS objects are built.
10458  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10459  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10460done
10461LIBOBJS=$ac_libobjs
10462
10463LTLIBOBJS=$ac_ltlibobjs
10464
10465
10466
10467: "${CONFIG_STATUS=./config.status}"
10468ac_write_fail=0
10469ac_clean_files_save=$ac_clean_files
10470ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10471{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10472$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10473as_write_fail=0
10474cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10475#! $SHELL
10476# Generated by $as_me.
10477# Run this file to recreate the current configuration.
10478# Compiler output produced by configure, useful for debugging
10479# configure, is in config.log if it exists.
10480
10481debug=false
10482ac_cs_recheck=false
10483ac_cs_silent=false
10484
10485SHELL=\${CONFIG_SHELL-$SHELL}
10486export SHELL
10487_ASEOF
10488cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10489## -------------------- ##
10490## M4sh Initialization. ##
10491## -------------------- ##
10492
10493# Be more Bourne compatible
10494DUALCASE=1; export DUALCASE # for MKS sh
10495if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10496  emulate sh
10497  NULLCMD=:
10498  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10499  # is contrary to our usage.  Disable this feature.
10500  alias -g '${1+"$@"}'='"$@"'
10501  setopt NO_GLOB_SUBST
10502else
10503  case `(set -o) 2>/dev/null` in #(
10504  *posix*) :
10505    set -o posix ;; #(
10506  *) :
10507     ;;
10508esac
10509fi
10510
10511
10512as_nl='
10513'
10514export as_nl
10515# Printing a long string crashes Solaris 7 /usr/bin/printf.
10516as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10517as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10518as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10519# Prefer a ksh shell builtin over an external printf program on Solaris,
10520# but without wasting forks for bash or zsh.
10521if test -z "$BASH_VERSION$ZSH_VERSION" \
10522    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10523  as_echo='print -r --'
10524  as_echo_n='print -rn --'
10525elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10526  as_echo='printf %s\n'
10527  as_echo_n='printf %s'
10528else
10529  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10530    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10531    as_echo_n='/usr/ucb/echo -n'
10532  else
10533    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10534    as_echo_n_body='eval
10535      arg=$1;
10536      case $arg in #(
10537      *"$as_nl"*)
10538	expr "X$arg" : "X\\(.*\\)$as_nl";
10539	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10540      esac;
10541      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10542    '
10543    export as_echo_n_body
10544    as_echo_n='sh -c $as_echo_n_body as_echo'
10545  fi
10546  export as_echo_body
10547  as_echo='sh -c $as_echo_body as_echo'
10548fi
10549
10550# The user is always right.
10551if test "${PATH_SEPARATOR+set}" != set; then
10552  PATH_SEPARATOR=:
10553  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10554    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10555      PATH_SEPARATOR=';'
10556  }
10557fi
10558
10559
10560# IFS
10561# We need space, tab and new line, in precisely that order.  Quoting is
10562# there to prevent editors from complaining about space-tab.
10563# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10564# splitting by setting IFS to empty value.)
10565IFS=" ""	$as_nl"
10566
10567# Find who we are.  Look in the path if we contain no directory separator.
10568as_myself=
10569case $0 in #((
10570  *[\\/]* ) as_myself=$0 ;;
10571  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572for as_dir in $PATH
10573do
10574  IFS=$as_save_IFS
10575  test -z "$as_dir" && as_dir=.
10576    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10577  done
10578IFS=$as_save_IFS
10579
10580     ;;
10581esac
10582# We did not find ourselves, most probably we were run as `sh COMMAND'
10583# in which case we are not to be found in the path.
10584if test "x$as_myself" = x; then
10585  as_myself=$0
10586fi
10587if test ! -f "$as_myself"; then
10588  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10589  exit 1
10590fi
10591
10592# Unset variables that we do not need and which cause bugs (e.g. in
10593# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10594# suppresses any "Segmentation fault" message there.  '((' could
10595# trigger a bug in pdksh 5.2.14.
10596for as_var in BASH_ENV ENV MAIL MAILPATH
10597do eval test x\${$as_var+set} = xset \
10598  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10599done
10600PS1='$ '
10601PS2='> '
10602PS4='+ '
10603
10604# NLS nuisances.
10605LC_ALL=C
10606export LC_ALL
10607LANGUAGE=C
10608export LANGUAGE
10609
10610# CDPATH.
10611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10612
10613
10614# as_fn_error STATUS ERROR [LINENO LOG_FD]
10615# ----------------------------------------
10616# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10617# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10618# script with STATUS, using 1 if that was 0.
10619as_fn_error ()
10620{
10621  as_status=$1; test $as_status -eq 0 && as_status=1
10622  if test "$4"; then
10623    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10624    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10625  fi
10626  $as_echo "$as_me: error: $2" >&2
10627  as_fn_exit $as_status
10628} # as_fn_error
10629
10630
10631# as_fn_set_status STATUS
10632# -----------------------
10633# Set $? to STATUS, without forking.
10634as_fn_set_status ()
10635{
10636  return $1
10637} # as_fn_set_status
10638
10639# as_fn_exit STATUS
10640# -----------------
10641# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10642as_fn_exit ()
10643{
10644  set +e
10645  as_fn_set_status $1
10646  exit $1
10647} # as_fn_exit
10648
10649# as_fn_unset VAR
10650# ---------------
10651# Portably unset VAR.
10652as_fn_unset ()
10653{
10654  { eval $1=; unset $1;}
10655}
10656as_unset=as_fn_unset
10657# as_fn_append VAR VALUE
10658# ----------------------
10659# Append the text in VALUE to the end of the definition contained in VAR. Take
10660# advantage of any shell optimizations that allow amortized linear growth over
10661# repeated appends, instead of the typical quadratic growth present in naive
10662# implementations.
10663if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10664  eval 'as_fn_append ()
10665  {
10666    eval $1+=\$2
10667  }'
10668else
10669  as_fn_append ()
10670  {
10671    eval $1=\$$1\$2
10672  }
10673fi # as_fn_append
10674
10675# as_fn_arith ARG...
10676# ------------------
10677# Perform arithmetic evaluation on the ARGs, and store the result in the
10678# global $as_val. Take advantage of shells that can avoid forks. The arguments
10679# must be portable across $(()) and expr.
10680if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10681  eval 'as_fn_arith ()
10682  {
10683    as_val=$(( $* ))
10684  }'
10685else
10686  as_fn_arith ()
10687  {
10688    as_val=`expr "$@" || test $? -eq 1`
10689  }
10690fi # as_fn_arith
10691
10692
10693if expr a : '\(a\)' >/dev/null 2>&1 &&
10694   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10695  as_expr=expr
10696else
10697  as_expr=false
10698fi
10699
10700if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10701  as_basename=basename
10702else
10703  as_basename=false
10704fi
10705
10706if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10707  as_dirname=dirname
10708else
10709  as_dirname=false
10710fi
10711
10712as_me=`$as_basename -- "$0" ||
10713$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10714	 X"$0" : 'X\(//\)$' \| \
10715	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10716$as_echo X/"$0" |
10717    sed '/^.*\/\([^/][^/]*\)\/*$/{
10718	    s//\1/
10719	    q
10720	  }
10721	  /^X\/\(\/\/\)$/{
10722	    s//\1/
10723	    q
10724	  }
10725	  /^X\/\(\/\).*/{
10726	    s//\1/
10727	    q
10728	  }
10729	  s/.*/./; q'`
10730
10731# Avoid depending upon Character Ranges.
10732as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10733as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10734as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10735as_cr_digits='0123456789'
10736as_cr_alnum=$as_cr_Letters$as_cr_digits
10737
10738ECHO_C= ECHO_N= ECHO_T=
10739case `echo -n x` in #(((((
10740-n*)
10741  case `echo 'xy\c'` in
10742  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
10743  xy)  ECHO_C='\c';;
10744  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
10745       ECHO_T='	';;
10746  esac;;
10747*)
10748  ECHO_N='-n';;
10749esac
10750
10751rm -f conf$$ conf$$.exe conf$$.file
10752if test -d conf$$.dir; then
10753  rm -f conf$$.dir/conf$$.file
10754else
10755  rm -f conf$$.dir
10756  mkdir conf$$.dir 2>/dev/null
10757fi
10758if (echo >conf$$.file) 2>/dev/null; then
10759  if ln -s conf$$.file conf$$ 2>/dev/null; then
10760    as_ln_s='ln -s'
10761    # ... but there are two gotchas:
10762    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10763    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10764    # In both cases, we have to default to `cp -pR'.
10765    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10766      as_ln_s='cp -pR'
10767  elif ln conf$$.file conf$$ 2>/dev/null; then
10768    as_ln_s=ln
10769  else
10770    as_ln_s='cp -pR'
10771  fi
10772else
10773  as_ln_s='cp -pR'
10774fi
10775rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10776rmdir conf$$.dir 2>/dev/null
10777
10778
10779# as_fn_mkdir_p
10780# -------------
10781# Create "$as_dir" as a directory, including parents if necessary.
10782as_fn_mkdir_p ()
10783{
10784
10785  case $as_dir in #(
10786  -*) as_dir=./$as_dir;;
10787  esac
10788  test -d "$as_dir" || eval $as_mkdir_p || {
10789    as_dirs=
10790    while :; do
10791      case $as_dir in #(
10792      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10793      *) as_qdir=$as_dir;;
10794      esac
10795      as_dirs="'$as_qdir' $as_dirs"
10796      as_dir=`$as_dirname -- "$as_dir" ||
10797$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10798	 X"$as_dir" : 'X\(//\)[^/]' \| \
10799	 X"$as_dir" : 'X\(//\)$' \| \
10800	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10801$as_echo X"$as_dir" |
10802    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10803	    s//\1/
10804	    q
10805	  }
10806	  /^X\(\/\/\)[^/].*/{
10807	    s//\1/
10808	    q
10809	  }
10810	  /^X\(\/\/\)$/{
10811	    s//\1/
10812	    q
10813	  }
10814	  /^X\(\/\).*/{
10815	    s//\1/
10816	    q
10817	  }
10818	  s/.*/./; q'`
10819      test -d "$as_dir" && break
10820    done
10821    test -z "$as_dirs" || eval "mkdir $as_dirs"
10822  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10823
10824
10825} # as_fn_mkdir_p
10826if mkdir -p . 2>/dev/null; then
10827  as_mkdir_p='mkdir -p "$as_dir"'
10828else
10829  test -d ./-p && rmdir ./-p
10830  as_mkdir_p=false
10831fi
10832
10833
10834# as_fn_executable_p FILE
10835# -----------------------
10836# Test if FILE is an executable regular file.
10837as_fn_executable_p ()
10838{
10839  test -f "$1" && test -x "$1"
10840} # as_fn_executable_p
10841as_test_x='test -x'
10842as_executable_p=as_fn_executable_p
10843
10844# Sed expression to map a string onto a valid CPP name.
10845as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10846
10847# Sed expression to map a string onto a valid variable name.
10848as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10849
10850
10851exec 6>&1
10852## ----------------------------------- ##
10853## Main body of $CONFIG_STATUS script. ##
10854## ----------------------------------- ##
10855_ASEOF
10856test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10857
10858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10859# Save the log message, to keep $0 and so on meaningful, and to
10860# report actual input values of CONFIG_FILES etc. instead of their
10861# values after options handling.
10862ac_log="
10863This file was extended by $as_me, which was
10864generated by GNU Autoconf 2.69.  Invocation command line was
10865
10866  CONFIG_FILES    = $CONFIG_FILES
10867  CONFIG_HEADERS  = $CONFIG_HEADERS
10868  CONFIG_LINKS    = $CONFIG_LINKS
10869  CONFIG_COMMANDS = $CONFIG_COMMANDS
10870  $ $0 $@
10871
10872on `(hostname || uname -n) 2>/dev/null | sed 1q`
10873"
10874
10875_ACEOF
10876
10877case $ac_config_files in *"
10878"*) set x $ac_config_files; shift; ac_config_files=$*;;
10879esac
10880
10881case $ac_config_headers in *"
10882"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10883esac
10884
10885
10886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10887# Files that config.status was made for.
10888config_files="$ac_config_files"
10889config_headers="$ac_config_headers"
10890
10891_ACEOF
10892
10893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10894ac_cs_usage="\
10895\`$as_me' instantiates files and other configuration actions
10896from templates according to the current configuration.  Unless the files
10897and actions are specified as TAGs, all are instantiated by default.
10898
10899Usage: $0 [OPTION]... [TAG]...
10900
10901  -h, --help       print this help, then exit
10902  -V, --version    print version number and configuration settings, then exit
10903      --config     print configuration, then exit
10904  -q, --quiet, --silent
10905                   do not print progress messages
10906  -d, --debug      don't remove temporary files
10907      --recheck    update $as_me by reconfiguring in the same conditions
10908      --file=FILE[:TEMPLATE]
10909                   instantiate the configuration file FILE
10910      --header=FILE[:TEMPLATE]
10911                   instantiate the configuration header FILE
10912
10913Configuration files:
10914$config_files
10915
10916Configuration headers:
10917$config_headers
10918
10919Report bugs to the package provider."
10920
10921_ACEOF
10922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10923ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10924ac_cs_version="\\
10925config.status
10926configured by $0, generated by GNU Autoconf 2.69,
10927  with options \\"\$ac_cs_config\\"
10928
10929Copyright (C) 2012 Free Software Foundation, Inc.
10930This config.status script is free software; the Free Software Foundation
10931gives unlimited permission to copy, distribute and modify it."
10932
10933ac_pwd='$ac_pwd'
10934srcdir='$srcdir'
10935INSTALL='$INSTALL'
10936test -n "\$AWK" || AWK=awk
10937_ACEOF
10938
10939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10940# The default lists apply if the user does not specify any file.
10941ac_need_defaults=:
10942while test $# != 0
10943do
10944  case $1 in
10945  --*=?*)
10946    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10947    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10948    ac_shift=:
10949    ;;
10950  --*=)
10951    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10952    ac_optarg=
10953    ac_shift=:
10954    ;;
10955  *)
10956    ac_option=$1
10957    ac_optarg=$2
10958    ac_shift=shift
10959    ;;
10960  esac
10961
10962  case $ac_option in
10963  # Handling of the options.
10964  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10965    ac_cs_recheck=: ;;
10966  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10967    $as_echo "$ac_cs_version"; exit ;;
10968  --config | --confi | --conf | --con | --co | --c )
10969    $as_echo "$ac_cs_config"; exit ;;
10970  --debug | --debu | --deb | --de | --d | -d )
10971    debug=: ;;
10972  --file | --fil | --fi | --f )
10973    $ac_shift
10974    case $ac_optarg in
10975    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10976    '') as_fn_error $? "missing file argument" ;;
10977    esac
10978    as_fn_append CONFIG_FILES " '$ac_optarg'"
10979    ac_need_defaults=false;;
10980  --header | --heade | --head | --hea )
10981    $ac_shift
10982    case $ac_optarg in
10983    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10984    esac
10985    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10986    ac_need_defaults=false;;
10987  --he | --h)
10988    # Conflict between --help and --header
10989    as_fn_error $? "ambiguous option: \`$1'
10990Try \`$0 --help' for more information.";;
10991  --help | --hel | -h )
10992    $as_echo "$ac_cs_usage"; exit ;;
10993  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10994  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10995    ac_cs_silent=: ;;
10996
10997  # This is an error.
10998  -*) as_fn_error $? "unrecognized option: \`$1'
10999Try \`$0 --help' for more information." ;;
11000
11001  *) as_fn_append ac_config_targets " $1"
11002     ac_need_defaults=false ;;
11003
11004  esac
11005  shift
11006done
11007
11008ac_configure_extra_args=
11009
11010if $ac_cs_silent; then
11011  exec 6>/dev/null
11012  ac_configure_extra_args="$ac_configure_extra_args --silent"
11013fi
11014
11015_ACEOF
11016cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11017if \$ac_cs_recheck; then
11018  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11019  shift
11020  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11021  CONFIG_SHELL='$SHELL'
11022  export CONFIG_SHELL
11023  exec "\$@"
11024fi
11025
11026_ACEOF
11027cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11028exec 5>>config.log
11029{
11030  echo
11031  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11032## Running $as_me. ##
11033_ASBOX
11034  $as_echo "$ac_log"
11035} >&5
11036
11037_ACEOF
11038cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11039_ACEOF
11040
11041cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11042
11043# Handling of arguments.
11044for ac_config_target in $ac_config_targets
11045do
11046  case $ac_config_target in
11047    "gw-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gw-config.h" ;;
11048    "gwlib/gw_uuid_types.h") CONFIG_FILES="$CONFIG_FILES gwlib/gw_uuid_types.h" ;;
11049    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11050    "soap/Makefile") CONFIG_FILES="$CONFIG_FILES soap/Makefile" ;;
11051
11052  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11053  esac
11054done
11055
11056
11057# If the user did not use the arguments to specify the items to instantiate,
11058# then the envvar interface is used.  Set only those that are not.
11059# We use the long form for the default assignment because of an extremely
11060# bizarre bug on SunOS 4.1.3.
11061if $ac_need_defaults; then
11062  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11063  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11064fi
11065
11066# Have a temporary directory for convenience.  Make it in the build tree
11067# simply because there is no reason against having it here, and in addition,
11068# creating and moving files from /tmp can sometimes cause problems.
11069# Hook for its removal unless debugging.
11070# Note that there is a small window in which the directory will not be cleaned:
11071# after its creation but before its name has been assigned to `$tmp'.
11072$debug ||
11073{
11074  tmp= ac_tmp=
11075  trap 'exit_status=$?
11076  : "${ac_tmp:=$tmp}"
11077  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11078' 0
11079  trap 'as_fn_exit 1' 1 2 13 15
11080}
11081# Create a (secure) tmp directory for tmp files.
11082
11083{
11084  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11085  test -d "$tmp"
11086}  ||
11087{
11088  tmp=./conf$$-$RANDOM
11089  (umask 077 && mkdir "$tmp")
11090} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11091ac_tmp=$tmp
11092
11093# Set up the scripts for CONFIG_FILES section.
11094# No need to generate them if there are no CONFIG_FILES.
11095# This happens for instance with `./config.status config.h'.
11096if test -n "$CONFIG_FILES"; then
11097
11098
11099ac_cr=`echo X | tr X '\015'`
11100# On cygwin, bash can eat \r inside `` if the user requested igncr.
11101# But we know of no other shell where ac_cr would be empty at this
11102# point, so we can use a bashism as a fallback.
11103if test "x$ac_cr" = x; then
11104  eval ac_cr=\$\'\\r\'
11105fi
11106ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11107if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11108  ac_cs_awk_cr='\\r'
11109else
11110  ac_cs_awk_cr=$ac_cr
11111fi
11112
11113echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11114_ACEOF
11115
11116
11117{
11118  echo "cat >conf$$subs.awk <<_ACEOF" &&
11119  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11120  echo "_ACEOF"
11121} >conf$$subs.sh ||
11122  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11123ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11124ac_delim='%!_!# '
11125for ac_last_try in false false false false false :; do
11126  . ./conf$$subs.sh ||
11127    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11128
11129  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11130  if test $ac_delim_n = $ac_delim_num; then
11131    break
11132  elif $ac_last_try; then
11133    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11134  else
11135    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11136  fi
11137done
11138rm -f conf$$subs.sh
11139
11140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11141cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11142_ACEOF
11143sed -n '
11144h
11145s/^/S["/; s/!.*/"]=/
11146p
11147g
11148s/^[^!]*!//
11149:repl
11150t repl
11151s/'"$ac_delim"'$//
11152t delim
11153:nl
11154h
11155s/\(.\{148\}\)..*/\1/
11156t more1
11157s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11158p
11159n
11160b repl
11161:more1
11162s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11163p
11164g
11165s/.\{148\}//
11166t nl
11167:delim
11168h
11169s/\(.\{148\}\)..*/\1/
11170t more2
11171s/["\\]/\\&/g; s/^/"/; s/$/"/
11172p
11173b
11174:more2
11175s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11176p
11177g
11178s/.\{148\}//
11179t delim
11180' <conf$$subs.awk | sed '
11181/^[^""]/{
11182  N
11183  s/\n//
11184}
11185' >>$CONFIG_STATUS || ac_write_fail=1
11186rm -f conf$$subs.awk
11187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11188_ACAWK
11189cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11190  for (key in S) S_is_set[key] = 1
11191  FS = ""
11192
11193}
11194{
11195  line = $ 0
11196  nfields = split(line, field, "@")
11197  substed = 0
11198  len = length(field[1])
11199  for (i = 2; i < nfields; i++) {
11200    key = field[i]
11201    keylen = length(key)
11202    if (S_is_set[key]) {
11203      value = S[key]
11204      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11205      len += length(value) + length(field[++i])
11206      substed = 1
11207    } else
11208      len += 1 + keylen
11209  }
11210
11211  print line
11212}
11213
11214_ACAWK
11215_ACEOF
11216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11217if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11218  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11219else
11220  cat
11221fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11222  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11223_ACEOF
11224
11225# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11226# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11227# trailing colons and then remove the whole line if VPATH becomes empty
11228# (actually we leave an empty line to preserve line numbers).
11229if test "x$srcdir" = x.; then
11230  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11231h
11232s///
11233s/^/:/
11234s/[	 ]*$/:/
11235s/:\$(srcdir):/:/g
11236s/:\${srcdir}:/:/g
11237s/:@srcdir@:/:/g
11238s/^:*//
11239s/:*$//
11240x
11241s/\(=[	 ]*\).*/\1/
11242G
11243s/\n//
11244s/^[^=]*=[	 ]*$//
11245}'
11246fi
11247
11248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11249fi # test -n "$CONFIG_FILES"
11250
11251# Set up the scripts for CONFIG_HEADERS section.
11252# No need to generate them if there are no CONFIG_HEADERS.
11253# This happens for instance with `./config.status Makefile'.
11254if test -n "$CONFIG_HEADERS"; then
11255cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11256BEGIN {
11257_ACEOF
11258
11259# Transform confdefs.h into an awk script `defines.awk', embedded as
11260# here-document in config.status, that substitutes the proper values into
11261# config.h.in to produce config.h.
11262
11263# Create a delimiter string that does not exist in confdefs.h, to ease
11264# handling of long lines.
11265ac_delim='%!_!# '
11266for ac_last_try in false false :; do
11267  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11268  if test -z "$ac_tt"; then
11269    break
11270  elif $ac_last_try; then
11271    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11272  else
11273    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11274  fi
11275done
11276
11277# For the awk script, D is an array of macro values keyed by name,
11278# likewise P contains macro parameters if any.  Preserve backslash
11279# newline sequences.
11280
11281ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11282sed -n '
11283s/.\{148\}/&'"$ac_delim"'/g
11284t rset
11285:rset
11286s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11287t def
11288d
11289:def
11290s/\\$//
11291t bsnl
11292s/["\\]/\\&/g
11293s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11294D["\1"]=" \3"/p
11295s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11296d
11297:bsnl
11298s/["\\]/\\&/g
11299s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11300D["\1"]=" \3\\\\\\n"\\/p
11301t cont
11302s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11303t cont
11304d
11305:cont
11306n
11307s/.\{148\}/&'"$ac_delim"'/g
11308t clear
11309:clear
11310s/\\$//
11311t bsnlc
11312s/["\\]/\\&/g; s/^/"/; s/$/"/p
11313d
11314:bsnlc
11315s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11316b cont
11317' <confdefs.h | sed '
11318s/'"$ac_delim"'/"\\\
11319"/g' >>$CONFIG_STATUS || ac_write_fail=1
11320
11321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11322  for (key in D) D_is_set[key] = 1
11323  FS = ""
11324}
11325/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11326  line = \$ 0
11327  split(line, arg, " ")
11328  if (arg[1] == "#") {
11329    defundef = arg[2]
11330    mac1 = arg[3]
11331  } else {
11332    defundef = substr(arg[1], 2)
11333    mac1 = arg[2]
11334  }
11335  split(mac1, mac2, "(") #)
11336  macro = mac2[1]
11337  prefix = substr(line, 1, index(line, defundef) - 1)
11338  if (D_is_set[macro]) {
11339    # Preserve the white space surrounding the "#".
11340    print prefix "define", macro P[macro] D[macro]
11341    next
11342  } else {
11343    # Replace #undef with comments.  This is necessary, for example,
11344    # in the case of _POSIX_SOURCE, which is predefined and required
11345    # on some systems where configure will not decide to define it.
11346    if (defundef == "undef") {
11347      print "/*", prefix defundef, macro, "*/"
11348      next
11349    }
11350  }
11351}
11352{ print }
11353_ACAWK
11354_ACEOF
11355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11356  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11357fi # test -n "$CONFIG_HEADERS"
11358
11359
11360eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
11361shift
11362for ac_tag
11363do
11364  case $ac_tag in
11365  :[FHLC]) ac_mode=$ac_tag; continue;;
11366  esac
11367  case $ac_mode$ac_tag in
11368  :[FHL]*:*);;
11369  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11370  :[FH]-) ac_tag=-:-;;
11371  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11372  esac
11373  ac_save_IFS=$IFS
11374  IFS=:
11375  set x $ac_tag
11376  IFS=$ac_save_IFS
11377  shift
11378  ac_file=$1
11379  shift
11380
11381  case $ac_mode in
11382  :L) ac_source=$1;;
11383  :[FH])
11384    ac_file_inputs=
11385    for ac_f
11386    do
11387      case $ac_f in
11388      -) ac_f="$ac_tmp/stdin";;
11389      *) # Look for the file first in the build tree, then in the source tree
11390	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11391	 # because $ac_f cannot contain `:'.
11392	 test -f "$ac_f" ||
11393	   case $ac_f in
11394	   [\\/$]*) false;;
11395	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11396	   esac ||
11397	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11398      esac
11399      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11400      as_fn_append ac_file_inputs " '$ac_f'"
11401    done
11402
11403    # Let's still pretend it is `configure' which instantiates (i.e., don't
11404    # use $as_me), people would be surprised to read:
11405    #    /* config.h.  Generated by config.status.  */
11406    configure_input='Generated from '`
11407	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11408	`' by configure.'
11409    if test x"$ac_file" != x-; then
11410      configure_input="$ac_file.  $configure_input"
11411      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11412$as_echo "$as_me: creating $ac_file" >&6;}
11413    fi
11414    # Neutralize special characters interpreted by sed in replacement strings.
11415    case $configure_input in #(
11416    *\&* | *\|* | *\\* )
11417       ac_sed_conf_input=`$as_echo "$configure_input" |
11418       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11419    *) ac_sed_conf_input=$configure_input;;
11420    esac
11421
11422    case $ac_tag in
11423    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11424      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11425    esac
11426    ;;
11427  esac
11428
11429  ac_dir=`$as_dirname -- "$ac_file" ||
11430$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11431	 X"$ac_file" : 'X\(//\)[^/]' \| \
11432	 X"$ac_file" : 'X\(//\)$' \| \
11433	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11434$as_echo X"$ac_file" |
11435    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11436	    s//\1/
11437	    q
11438	  }
11439	  /^X\(\/\/\)[^/].*/{
11440	    s//\1/
11441	    q
11442	  }
11443	  /^X\(\/\/\)$/{
11444	    s//\1/
11445	    q
11446	  }
11447	  /^X\(\/\).*/{
11448	    s//\1/
11449	    q
11450	  }
11451	  s/.*/./; q'`
11452  as_dir="$ac_dir"; as_fn_mkdir_p
11453  ac_builddir=.
11454
11455case "$ac_dir" in
11456.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11457*)
11458  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11459  # A ".." for each directory in $ac_dir_suffix.
11460  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11461  case $ac_top_builddir_sub in
11462  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11463  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11464  esac ;;
11465esac
11466ac_abs_top_builddir=$ac_pwd
11467ac_abs_builddir=$ac_pwd$ac_dir_suffix
11468# for backward compatibility:
11469ac_top_builddir=$ac_top_build_prefix
11470
11471case $srcdir in
11472  .)  # We are building in place.
11473    ac_srcdir=.
11474    ac_top_srcdir=$ac_top_builddir_sub
11475    ac_abs_top_srcdir=$ac_pwd ;;
11476  [\\/]* | ?:[\\/]* )  # Absolute name.
11477    ac_srcdir=$srcdir$ac_dir_suffix;
11478    ac_top_srcdir=$srcdir
11479    ac_abs_top_srcdir=$srcdir ;;
11480  *) # Relative name.
11481    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11482    ac_top_srcdir=$ac_top_build_prefix$srcdir
11483    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11484esac
11485ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11486
11487
11488  case $ac_mode in
11489  :F)
11490  #
11491  # CONFIG_FILE
11492  #
11493
11494  case $INSTALL in
11495  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11496  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11497  esac
11498_ACEOF
11499
11500cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11501# If the template does not know about datarootdir, expand it.
11502# FIXME: This hack should be removed a few years after 2.60.
11503ac_datarootdir_hack=; ac_datarootdir_seen=
11504ac_sed_dataroot='
11505/datarootdir/ {
11506  p
11507  q
11508}
11509/@datadir@/p
11510/@docdir@/p
11511/@infodir@/p
11512/@localedir@/p
11513/@mandir@/p'
11514case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11515*datarootdir*) ac_datarootdir_seen=yes;;
11516*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11517  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11518$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11519_ACEOF
11520cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11521  ac_datarootdir_hack='
11522  s&@datadir@&$datadir&g
11523  s&@docdir@&$docdir&g
11524  s&@infodir@&$infodir&g
11525  s&@localedir@&$localedir&g
11526  s&@mandir@&$mandir&g
11527  s&\\\${datarootdir}&$datarootdir&g' ;;
11528esac
11529_ACEOF
11530
11531# Neutralize VPATH when `$srcdir' = `.'.
11532# Shell code in configure.ac might set extrasub.
11533# FIXME: do we really want to maintain this feature?
11534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11535ac_sed_extra="$ac_vpsub
11536$extrasub
11537_ACEOF
11538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11539:t
11540/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11541s|@configure_input@|$ac_sed_conf_input|;t t
11542s&@top_builddir@&$ac_top_builddir_sub&;t t
11543s&@top_build_prefix@&$ac_top_build_prefix&;t t
11544s&@srcdir@&$ac_srcdir&;t t
11545s&@abs_srcdir@&$ac_abs_srcdir&;t t
11546s&@top_srcdir@&$ac_top_srcdir&;t t
11547s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11548s&@builddir@&$ac_builddir&;t t
11549s&@abs_builddir@&$ac_abs_builddir&;t t
11550s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11551s&@INSTALL@&$ac_INSTALL&;t t
11552$ac_datarootdir_hack
11553"
11554eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11555  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11556
11557test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11558  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11559  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11560      "$ac_tmp/out"`; test -z "$ac_out"; } &&
11561  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11562which seems to be undefined.  Please make sure it is defined" >&5
11563$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11564which seems to be undefined.  Please make sure it is defined" >&2;}
11565
11566  rm -f "$ac_tmp/stdin"
11567  case $ac_file in
11568  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11569  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11570  esac \
11571  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11572 ;;
11573  :H)
11574  #
11575  # CONFIG_HEADER
11576  #
11577  if test x"$ac_file" != x-; then
11578    {
11579      $as_echo "/* $configure_input  */" \
11580      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11581    } >"$ac_tmp/config.h" \
11582      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11583    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11584      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11585$as_echo "$as_me: $ac_file is unchanged" >&6;}
11586    else
11587      rm -f "$ac_file"
11588      mv "$ac_tmp/config.h" "$ac_file" \
11589	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
11590    fi
11591  else
11592    $as_echo "/* $configure_input  */" \
11593      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11594      || as_fn_error $? "could not create -" "$LINENO" 5
11595  fi
11596 ;;
11597
11598
11599  esac
11600
11601done # for ac_tag
11602
11603
11604as_fn_exit 0
11605_ACEOF
11606ac_clean_files=$ac_clean_files_save
11607
11608test $ac_write_fail = 0 ||
11609  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11610
11611
11612# configure is writing to config.log, and then calls config.status.
11613# config.status does its own redirection, appending to config.log.
11614# Unfortunately, on DOS this fails, as config.log is still kept open
11615# by configure, so config.status won't be able to write to it; its
11616# output is simply discarded.  So we exec the FD to /dev/null,
11617# effectively closing config.log, so it can be properly (re)opened and
11618# appended to by config.status.  When coming back to configure, we
11619# need to make the FD available again.
11620if test "$no_create" != yes; then
11621  ac_cs_success=:
11622  ac_config_status_args=
11623  test "$silent" = yes &&
11624    ac_config_status_args="$ac_config_status_args --quiet"
11625  exec 5>/dev/null
11626  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11627  exec 5>>config.log
11628  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11629  # would make configure fail if this is the last instruction.
11630  $ac_cs_success || as_fn_exit 1
11631fi
11632if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11633  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11634$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11635fi
11636
11637
11638
11639
11640
11641  nl='
11642'
11643  echo "${nl}${T_MD}License information ...${T_ME}"
11644
11645cat <<X
11646+--------------------------------------------------------------------+
11647| License:                                                           |
11648| This software is subject to the Kannel Software License, available |
11649| in this distribution in the file LICENSE. By continuing this       |
11650| installation process, you are bound by the terms of this license   |
11651| agreement. If you do not agree with the terms of this license, you |
11652| must abort the installation process at this point.                 |
11653|                                                                    |
11654|                      The Kannel Group <http://www.kannel.org/>     |
11655+--------------------------------------------------------------------+
11656
11657Thank you for using Kannel.
11658X
11659