1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for medusa 2.2.
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='medusa'
579PACKAGE_TARNAME='medusa'
580PACKAGE_VERSION='2.2'
581PACKAGE_STRING='medusa 2.2'
582PACKAGE_BUGREPORT=''
583PACKAGE_URL=''
584
585ac_unique_file="src/medusa.c"
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='am__EXEEXT_FALSE
623am__EXEEXT_TRUE
624LTLIBOBJS
625LIBOBJS
626DEFAULT_MOD_PATH
627MODULE_LIBS
628BUILD_MODULE_WEB_FORM_FALSE
629BUILD_MODULE_WEB_FORM_TRUE
630BUILD_MODULE_WRAPPER_FALSE
631BUILD_MODULE_WRAPPER_TRUE
632BUILD_MODULE_VNC_FALSE
633BUILD_MODULE_VNC_TRUE
634BUILD_MODULE_VMAUTHD_FALSE
635BUILD_MODULE_VMAUTHD_TRUE
636BUILD_MODULE_TELNET_FALSE
637BUILD_MODULE_TELNET_TRUE
638BUILD_MODULE_SVN_FALSE
639BUILD_MODULE_SVN_TRUE
640APR_INCLUDE_DIR
641APR_CONFIG
642BUILD_MODULE_SSH_FALSE
643BUILD_MODULE_SSH_TRUE
644BUILD_MODULE_SNMP_FALSE
645BUILD_MODULE_SNMP_TRUE
646BUILD_MODULE_SMTP_VRFY_FALSE
647BUILD_MODULE_SMTP_VRFY_TRUE
648BUILD_MODULE_SMTP_FALSE
649BUILD_MODULE_SMTP_TRUE
650BUILD_MODULE_SMBNT_FALSE
651BUILD_MODULE_SMBNT_TRUE
652BUILD_MODULE_RSH_FALSE
653BUILD_MODULE_RSH_TRUE
654BUILD_MODULE_RLOGIN_FALSE
655BUILD_MODULE_RLOGIN_TRUE
656BUILD_MODULE_REXEC_FALSE
657BUILD_MODULE_REXEC_TRUE
658BUILD_MODULE_RDP_FALSE
659BUILD_MODULE_RDP_TRUE
660BUILD_MODULE_POSTGRES_FALSE
661BUILD_MODULE_POSTGRES_TRUE
662BUILD_MODULE_POP3_FALSE
663BUILD_MODULE_POP3_TRUE
664BUILD_MODULE_PCANYWHERE_FALSE
665BUILD_MODULE_PCANYWHERE_TRUE
666BUILD_MODULE_NNTP_FALSE
667BUILD_MODULE_NNTP_TRUE
668BUILD_MODULE_NCP_FALSE
669BUILD_MODULE_NCP_TRUE
670BUILD_MODULE_MYSQL_FALSE
671BUILD_MODULE_MYSQL_TRUE
672BUILD_MODULE_MSSQL_FALSE
673BUILD_MODULE_MSSQL_TRUE
674BUILD_MODULE_IMAP_FALSE
675BUILD_MODULE_IMAP_TRUE
676BUILD_MODULE_HTTP_FALSE
677BUILD_MODULE_HTTP_TRUE
678BUILD_MODULE_FTP_FALSE
679BUILD_MODULE_FTP_TRUE
680BUILD_MODULE_CVS_FALSE
681BUILD_MODULE_CVS_TRUE
682BUILD_MODULE_AFP_FALSE
683BUILD_MODULE_AFP_TRUE
684EGREP
685GREP
686CPP
687am__fastdepCC_FALSE
688am__fastdepCC_TRUE
689CCDEPMODE
690am__nodep
691AMDEPBACKSLASH
692AMDEP_FALSE
693AMDEP_TRUE
694am__quote
695am__include
696DEPDIR
697OBJEXT
698EXEEXT
699ac_ct_CC
700CPPFLAGS
701LDFLAGS
702CFLAGS
703CC
704AM_BACKSLASH
705AM_DEFAULT_VERBOSITY
706AM_DEFAULT_V
707AM_V
708am__untar
709am__tar
710AMTAR
711am__leading_dot
712SET_MAKE
713AWK
714mkdir_p
715MKDIR_P
716INSTALL_STRIP_PROGRAM
717STRIP
718install_sh
719MAKEINFO
720AUTOHEADER
721AUTOMAKE
722AUTOCONF
723ACLOCAL
724VERSION
725PACKAGE
726CYGPATH_W
727am__isrc
728INSTALL_DATA
729INSTALL_SCRIPT
730INSTALL_PROGRAM
731target_os
732target_vendor
733target_cpu
734target
735host_os
736host_vendor
737host_cpu
738host
739build_os
740build_vendor
741build_cpu
742build
743target_alias
744host_alias
745build_alias
746LIBS
747ECHO_T
748ECHO_N
749ECHO_C
750DEFS
751mandir
752localedir
753libdir
754psdir
755pdfdir
756dvidir
757htmldir
758infodir
759docdir
760oldincludedir
761includedir
762localstatedir
763sharedstatedir
764sysconfdir
765datadir
766datarootdir
767libexecdir
768sbindir
769bindir
770program_transform_name
771prefix
772exec_prefix
773PACKAGE_URL
774PACKAGE_BUGREPORT
775PACKAGE_STRING
776PACKAGE_VERSION
777PACKAGE_TARNAME
778PACKAGE_NAME
779PATH_SEPARATOR
780SHELL'
781ac_subst_files=''
782ac_user_opts='
783enable_option_checking
784enable_silent_rules
785enable_dependency_tracking
786enable_debug
787with_postgresql
788with_afpfsng
789with_ssl
790enable_module_afp
791enable_module_cvs
792enable_module_ftp
793enable_module_http
794enable_module_imap
795enable_module_mssql
796enable_module_mysql
797enable_module_ncp
798enable_module_nntp
799enable_module_pcanywhere
800enable_module_pop3
801enable_module_postgres
802enable_module_rdp
803enable_module_rexec
804enable_module_rlogin
805enable_module_rsh
806enable_module_smbnt
807enable_module_smtp
808enable_module_smtp_vrfy
809enable_module_snmp
810enable_module_ssh
811enable_module_svn
812enable_module_telnet
813enable_module_vmauthd
814enable_module_vnc
815enable_module_wrapper
816enable_module_web_form
817with_default_mod_path
818'
819      ac_precious_vars='build_alias
820host_alias
821target_alias
822CC
823CFLAGS
824LDFLAGS
825LIBS
826CPPFLAGS
827CPP'
828
829
830# Initialize some variables set by options.
831ac_init_help=
832ac_init_version=false
833ac_unrecognized_opts=
834ac_unrecognized_sep=
835# The variables have the same names as the options, with
836# dashes changed to underlines.
837cache_file=/dev/null
838exec_prefix=NONE
839no_create=
840no_recursion=
841prefix=NONE
842program_prefix=NONE
843program_suffix=NONE
844program_transform_name=s,x,x,
845silent=
846site=
847srcdir=
848verbose=
849x_includes=NONE
850x_libraries=NONE
851
852# Installation directory options.
853# These are left unexpanded so users can "make install exec_prefix=/foo"
854# and all the variables that are supposed to be based on exec_prefix
855# by default will actually change.
856# Use braces instead of parens because sh, perl, etc. also accept them.
857# (The list follows the same order as the GNU Coding Standards.)
858bindir='${exec_prefix}/bin'
859sbindir='${exec_prefix}/sbin'
860libexecdir='${exec_prefix}/libexec'
861datarootdir='${prefix}/share'
862datadir='${datarootdir}'
863sysconfdir='${prefix}/etc'
864sharedstatedir='${prefix}/com'
865localstatedir='${prefix}/var'
866includedir='${prefix}/include'
867oldincludedir='/usr/include'
868docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869infodir='${datarootdir}/info'
870htmldir='${docdir}'
871dvidir='${docdir}'
872pdfdir='${docdir}'
873psdir='${docdir}'
874libdir='${exec_prefix}/lib'
875localedir='${datarootdir}/locale'
876mandir='${datarootdir}/man'
877
878ac_prev=
879ac_dashdash=
880for ac_option
881do
882  # If the previous option needs an argument, assign it.
883  if test -n "$ac_prev"; then
884    eval $ac_prev=\$ac_option
885    ac_prev=
886    continue
887  fi
888
889  case $ac_option in
890  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891  *=)   ac_optarg= ;;
892  *)    ac_optarg=yes ;;
893  esac
894
895  # Accept the important Cygnus configure options, so we can diagnose typos.
896
897  case $ac_dashdash$ac_option in
898  --)
899    ac_dashdash=yes ;;
900
901  -bindir | --bindir | --bindi | --bind | --bin | --bi)
902    ac_prev=bindir ;;
903  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904    bindir=$ac_optarg ;;
905
906  -build | --build | --buil | --bui | --bu)
907    ac_prev=build_alias ;;
908  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909    build_alias=$ac_optarg ;;
910
911  -cache-file | --cache-file | --cache-fil | --cache-fi \
912  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913    ac_prev=cache_file ;;
914  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916    cache_file=$ac_optarg ;;
917
918  --config-cache | -C)
919    cache_file=config.cache ;;
920
921  -datadir | --datadir | --datadi | --datad)
922    ac_prev=datadir ;;
923  -datadir=* | --datadir=* | --datadi=* | --datad=*)
924    datadir=$ac_optarg ;;
925
926  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927  | --dataroo | --dataro | --datar)
928    ac_prev=datarootdir ;;
929  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931    datarootdir=$ac_optarg ;;
932
933  -disable-* | --disable-*)
934    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935    # Reject names that are not valid shell variable names.
936    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937      as_fn_error $? "invalid feature name: $ac_useropt"
938    ac_useropt_orig=$ac_useropt
939    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940    case $ac_user_opts in
941      *"
942"enable_$ac_useropt"
943"*) ;;
944      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945	 ac_unrecognized_sep=', ';;
946    esac
947    eval enable_$ac_useropt=no ;;
948
949  -docdir | --docdir | --docdi | --doc | --do)
950    ac_prev=docdir ;;
951  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952    docdir=$ac_optarg ;;
953
954  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955    ac_prev=dvidir ;;
956  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957    dvidir=$ac_optarg ;;
958
959  -enable-* | --enable-*)
960    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
961    # Reject names that are not valid shell variable names.
962    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963      as_fn_error $? "invalid feature name: $ac_useropt"
964    ac_useropt_orig=$ac_useropt
965    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966    case $ac_user_opts in
967      *"
968"enable_$ac_useropt"
969"*) ;;
970      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971	 ac_unrecognized_sep=', ';;
972    esac
973    eval enable_$ac_useropt=\$ac_optarg ;;
974
975  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977  | --exec | --exe | --ex)
978    ac_prev=exec_prefix ;;
979  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981  | --exec=* | --exe=* | --ex=*)
982    exec_prefix=$ac_optarg ;;
983
984  -gas | --gas | --ga | --g)
985    # Obsolete; use --with-gas.
986    with_gas=yes ;;
987
988  -help | --help | --hel | --he | -h)
989    ac_init_help=long ;;
990  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991    ac_init_help=recursive ;;
992  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993    ac_init_help=short ;;
994
995  -host | --host | --hos | --ho)
996    ac_prev=host_alias ;;
997  -host=* | --host=* | --hos=* | --ho=*)
998    host_alias=$ac_optarg ;;
999
1000  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001    ac_prev=htmldir ;;
1002  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003  | --ht=*)
1004    htmldir=$ac_optarg ;;
1005
1006  -includedir | --includedir | --includedi | --included | --include \
1007  | --includ | --inclu | --incl | --inc)
1008    ac_prev=includedir ;;
1009  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010  | --includ=* | --inclu=* | --incl=* | --inc=*)
1011    includedir=$ac_optarg ;;
1012
1013  -infodir | --infodir | --infodi | --infod | --info | --inf)
1014    ac_prev=infodir ;;
1015  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1016    infodir=$ac_optarg ;;
1017
1018  -libdir | --libdir | --libdi | --libd)
1019    ac_prev=libdir ;;
1020  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1021    libdir=$ac_optarg ;;
1022
1023  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024  | --libexe | --libex | --libe)
1025    ac_prev=libexecdir ;;
1026  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027  | --libexe=* | --libex=* | --libe=*)
1028    libexecdir=$ac_optarg ;;
1029
1030  -localedir | --localedir | --localedi | --localed | --locale)
1031    ac_prev=localedir ;;
1032  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033    localedir=$ac_optarg ;;
1034
1035  -localstatedir | --localstatedir | --localstatedi | --localstated \
1036  | --localstate | --localstat | --localsta | --localst | --locals)
1037    ac_prev=localstatedir ;;
1038  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1039  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1040    localstatedir=$ac_optarg ;;
1041
1042  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043    ac_prev=mandir ;;
1044  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1045    mandir=$ac_optarg ;;
1046
1047  -nfp | --nfp | --nf)
1048    # Obsolete; use --without-fp.
1049    with_fp=no ;;
1050
1051  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1052  | --no-cr | --no-c | -n)
1053    no_create=yes ;;
1054
1055  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057    no_recursion=yes ;;
1058
1059  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061  | --oldin | --oldi | --old | --ol | --o)
1062    ac_prev=oldincludedir ;;
1063  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1066    oldincludedir=$ac_optarg ;;
1067
1068  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069    ac_prev=prefix ;;
1070  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1071    prefix=$ac_optarg ;;
1072
1073  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074  | --program-pre | --program-pr | --program-p)
1075    ac_prev=program_prefix ;;
1076  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1078    program_prefix=$ac_optarg ;;
1079
1080  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081  | --program-suf | --program-su | --program-s)
1082    ac_prev=program_suffix ;;
1083  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1085    program_suffix=$ac_optarg ;;
1086
1087  -program-transform-name | --program-transform-name \
1088  | --program-transform-nam | --program-transform-na \
1089  | --program-transform-n | --program-transform- \
1090  | --program-transform | --program-transfor \
1091  | --program-transfo | --program-transf \
1092  | --program-trans | --program-tran \
1093  | --progr-tra | --program-tr | --program-t)
1094    ac_prev=program_transform_name ;;
1095  -program-transform-name=* | --program-transform-name=* \
1096  | --program-transform-nam=* | --program-transform-na=* \
1097  | --program-transform-n=* | --program-transform-=* \
1098  | --program-transform=* | --program-transfor=* \
1099  | --program-transfo=* | --program-transf=* \
1100  | --program-trans=* | --program-tran=* \
1101  | --progr-tra=* | --program-tr=* | --program-t=*)
1102    program_transform_name=$ac_optarg ;;
1103
1104  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105    ac_prev=pdfdir ;;
1106  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107    pdfdir=$ac_optarg ;;
1108
1109  -psdir | --psdir | --psdi | --psd | --ps)
1110    ac_prev=psdir ;;
1111  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112    psdir=$ac_optarg ;;
1113
1114  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115  | -silent | --silent | --silen | --sile | --sil)
1116    silent=yes ;;
1117
1118  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119    ac_prev=sbindir ;;
1120  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121  | --sbi=* | --sb=*)
1122    sbindir=$ac_optarg ;;
1123
1124  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126  | --sharedst | --shareds | --shared | --share | --shar \
1127  | --sha | --sh)
1128    ac_prev=sharedstatedir ;;
1129  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132  | --sha=* | --sh=*)
1133    sharedstatedir=$ac_optarg ;;
1134
1135  -site | --site | --sit)
1136    ac_prev=site ;;
1137  -site=* | --site=* | --sit=*)
1138    site=$ac_optarg ;;
1139
1140  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141    ac_prev=srcdir ;;
1142  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1143    srcdir=$ac_optarg ;;
1144
1145  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146  | --syscon | --sysco | --sysc | --sys | --sy)
1147    ac_prev=sysconfdir ;;
1148  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1150    sysconfdir=$ac_optarg ;;
1151
1152  -target | --target | --targe | --targ | --tar | --ta | --t)
1153    ac_prev=target_alias ;;
1154  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1155    target_alias=$ac_optarg ;;
1156
1157  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158    verbose=yes ;;
1159
1160  -version | --version | --versio | --versi | --vers | -V)
1161    ac_init_version=: ;;
1162
1163  -with-* | --with-*)
1164    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1165    # Reject names that are not valid shell variable names.
1166    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167      as_fn_error $? "invalid package name: $ac_useropt"
1168    ac_useropt_orig=$ac_useropt
1169    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170    case $ac_user_opts in
1171      *"
1172"with_$ac_useropt"
1173"*) ;;
1174      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175	 ac_unrecognized_sep=', ';;
1176    esac
1177    eval with_$ac_useropt=\$ac_optarg ;;
1178
1179  -without-* | --without-*)
1180    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181    # Reject names that are not valid shell variable names.
1182    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183      as_fn_error $? "invalid package name: $ac_useropt"
1184    ac_useropt_orig=$ac_useropt
1185    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186    case $ac_user_opts in
1187      *"
1188"with_$ac_useropt"
1189"*) ;;
1190      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191	 ac_unrecognized_sep=', ';;
1192    esac
1193    eval with_$ac_useropt=no ;;
1194
1195  --x)
1196    # Obsolete; use --with-x.
1197    with_x=yes ;;
1198
1199  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200  | --x-incl | --x-inc | --x-in | --x-i)
1201    ac_prev=x_includes ;;
1202  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1204    x_includes=$ac_optarg ;;
1205
1206  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208    ac_prev=x_libraries ;;
1209  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1211    x_libraries=$ac_optarg ;;
1212
1213  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1214Try \`$0 --help' for more information"
1215    ;;
1216
1217  *=*)
1218    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1219    # Reject names that are not valid shell variable names.
1220    case $ac_envvar in #(
1221      '' | [0-9]* | *[!_$as_cr_alnum]* )
1222      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1223    esac
1224    eval $ac_envvar=\$ac_optarg
1225    export $ac_envvar ;;
1226
1227  *)
1228    # FIXME: should be removed in autoconf 3.0.
1229    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1230    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1232    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1233    ;;
1234
1235  esac
1236done
1237
1238if test -n "$ac_prev"; then
1239  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1240  as_fn_error $? "missing argument to $ac_option"
1241fi
1242
1243if test -n "$ac_unrecognized_opts"; then
1244  case $enable_option_checking in
1245    no) ;;
1246    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1247    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1248  esac
1249fi
1250
1251# Check all directory arguments for consistency.
1252for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253		datadir sysconfdir sharedstatedir localstatedir includedir \
1254		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255		libdir localedir mandir
1256do
1257  eval ac_val=\$$ac_var
1258  # Remove trailing slashes.
1259  case $ac_val in
1260    */ )
1261      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262      eval $ac_var=\$ac_val;;
1263  esac
1264  # Be sure to have absolute directory names.
1265  case $ac_val in
1266    [\\/$]* | ?:[\\/]* )  continue;;
1267    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1268  esac
1269  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1270done
1271
1272# There might be people who depend on the old broken behavior: `$host'
1273# used to hold the argument of --host etc.
1274# FIXME: To remove some day.
1275build=$build_alias
1276host=$host_alias
1277target=$target_alias
1278
1279# FIXME: To remove some day.
1280if test "x$host_alias" != x; then
1281  if test "x$build_alias" = x; then
1282    cross_compiling=maybe
1283  elif test "x$build_alias" != "x$host_alias"; then
1284    cross_compiling=yes
1285  fi
1286fi
1287
1288ac_tool_prefix=
1289test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290
1291test "$silent" = yes && exec 6>/dev/null
1292
1293
1294ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295ac_ls_di=`ls -di .` &&
1296ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297  as_fn_error $? "working directory cannot be determined"
1298test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299  as_fn_error $? "pwd does not report name of working directory"
1300
1301
1302# Find the source files, if location was not specified.
1303if test -z "$srcdir"; then
1304  ac_srcdir_defaulted=yes
1305  # Try the directory containing this script, then the parent directory.
1306  ac_confdir=`$as_dirname -- "$as_myself" ||
1307$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308	 X"$as_myself" : 'X\(//\)[^/]' \| \
1309	 X"$as_myself" : 'X\(//\)$' \| \
1310	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1311$as_echo X"$as_myself" |
1312    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1313	    s//\1/
1314	    q
1315	  }
1316	  /^X\(\/\/\)[^/].*/{
1317	    s//\1/
1318	    q
1319	  }
1320	  /^X\(\/\/\)$/{
1321	    s//\1/
1322	    q
1323	  }
1324	  /^X\(\/\).*/{
1325	    s//\1/
1326	    q
1327	  }
1328	  s/.*/./; q'`
1329  srcdir=$ac_confdir
1330  if test ! -r "$srcdir/$ac_unique_file"; then
1331    srcdir=..
1332  fi
1333else
1334  ac_srcdir_defaulted=no
1335fi
1336if test ! -r "$srcdir/$ac_unique_file"; then
1337  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1338  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1339fi
1340ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1341ac_abs_confdir=`(
1342	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1343	pwd)`
1344# When building in place, set srcdir=.
1345if test "$ac_abs_confdir" = "$ac_pwd"; then
1346  srcdir=.
1347fi
1348# Remove unnecessary trailing slashes from srcdir.
1349# Double slashes in file names in object file debugging info
1350# mess up M-x gdb in Emacs.
1351case $srcdir in
1352*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353esac
1354for ac_var in $ac_precious_vars; do
1355  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1356  eval ac_env_${ac_var}_value=\$${ac_var}
1357  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1358  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359done
1360
1361#
1362# Report the --help message.
1363#
1364if test "$ac_init_help" = "long"; then
1365  # Omit some internal or obsolete options to make the list less imposing.
1366  # This message is too long to be a string in the A/UX 3.1 sh.
1367  cat <<_ACEOF
1368\`configure' configures medusa 2.2 to adapt to many kinds of systems.
1369
1370Usage: $0 [OPTION]... [VAR=VALUE]...
1371
1372To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373VAR=VALUE.  See below for descriptions of some of the useful variables.
1374
1375Defaults for the options are specified in brackets.
1376
1377Configuration:
1378  -h, --help              display this help and exit
1379      --help=short        display options specific to this package
1380      --help=recursive    display the short help of all the included packages
1381  -V, --version           display version information and exit
1382  -q, --quiet, --silent   do not print \`checking ...' messages
1383      --cache-file=FILE   cache test results in FILE [disabled]
1384  -C, --config-cache      alias for \`--cache-file=config.cache'
1385  -n, --no-create         do not create output files
1386      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1387
1388Installation directories:
1389  --prefix=PREFIX         install architecture-independent files in PREFIX
1390                          [$ac_default_prefix]
1391  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1392                          [PREFIX]
1393
1394By default, \`make install' will install all the files in
1395\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1396an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1397for instance \`--prefix=\$HOME'.
1398
1399For better control, use the options below.
1400
1401Fine tuning of the installation directories:
1402  --bindir=DIR            user executables [EPREFIX/bin]
1403  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1404  --libexecdir=DIR        program executables [EPREFIX/libexec]
1405  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1406  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1407  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1408  --libdir=DIR            object code libraries [EPREFIX/lib]
1409  --includedir=DIR        C header files [PREFIX/include]
1410  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1411  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1412  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1413  --infodir=DIR           info documentation [DATAROOTDIR/info]
1414  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1415  --mandir=DIR            man documentation [DATAROOTDIR/man]
1416  --docdir=DIR            documentation root [DATAROOTDIR/doc/medusa]
1417  --htmldir=DIR           html documentation [DOCDIR]
1418  --dvidir=DIR            dvi documentation [DOCDIR]
1419  --pdfdir=DIR            pdf documentation [DOCDIR]
1420  --psdir=DIR             ps documentation [DOCDIR]
1421_ACEOF
1422
1423  cat <<\_ACEOF
1424
1425Program names:
1426  --program-prefix=PREFIX            prepend PREFIX to installed program names
1427  --program-suffix=SUFFIX            append SUFFIX to installed program names
1428  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1429
1430System types:
1431  --build=BUILD     configure for building on BUILD [guessed]
1432  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1433  --target=TARGET   configure for building compilers for TARGET [HOST]
1434_ACEOF
1435fi
1436
1437if test -n "$ac_init_help"; then
1438  case $ac_init_help in
1439     short | recursive ) echo "Configuration of medusa 2.2:";;
1440   esac
1441  cat <<\_ACEOF
1442
1443Optional Features:
1444  --disable-option-checking  ignore unrecognized --enable/--with options
1445  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1446  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1447  --enable-silent-rules   less verbose build output (undo: "make V=1")
1448  --disable-silent-rules  verbose build output (undo: "make V=0")
1449  --enable-dependency-tracking
1450                          do not reject slow dependency extractors
1451  --disable-dependency-tracking
1452                          speeds up one-time build
1453  --enable-debug=no/yes turn on debugging (default=yes)
1454  --enable-module-afp=no/yes            Enable AFP module (default=no)
1455  --enable-module-cvs=no/yes            Enable CVS module (default=yes)
1456  --enable-module-ftp=no/yes            Enable FTP module (default=yes)
1457  --enable-module-http=no/yes           Enable HTTP module (default=yes)
1458  --enable-module-imap=no/yes           Enable IMAP module (default=yes)
1459  --enable-module-mssql=no/yes          Enable MSSQL module (default=yes)
1460  --enable-module-mysql=no/yes          Enable MYSQL module (default=yes)
1461  --enable-module-ncp=no/yes            Enable NCP module (default=yes)
1462  --enable-module-nntp=no/yes           Enable NNTP module (default=yes)
1463  --enable-module-pcanywhere=no/yes     Enable PCANYWHERE module (default=yes)
1464  --enable-module-pop3=no/yes           Enable POP3 module (default=yes)
1465  --enable-module-postgres=no/yes       Enable POSTGRES module (default=yes)
1466  --enable-module-rdp=no/yes            Enable RDP module (default=yes)
1467  --enable-module-rexec=no/yes          Enable REXEC module (default=yes)
1468  --enable-module-rlogin=no/yes         Enable RLOGIN module (default=yes)
1469  --enable-module-rsh=no/yes            Enable RSH module (default=yes)
1470  --enable-module-smbnt=no/yes          Enable SMBNT module (default=yes)
1471  --enable-module-smtp=no/yes           Enable SMTP module (default=yes)
1472  --enable-module-smtp-vrfy=no/yes      Enable SMTP-VRFY module (default=yes)
1473  --enable-module-snmp=no/yes           Enable SNMP module (default=yes)
1474  --enable-module-ssh=no/yes            Enable SSH module (default=yes)
1475  --enable-module-svn=no/yes            Enable SVN module (default=yes)
1476  --enable-module-telnet=no/yes         Enable TELNET module (default=yes)
1477  --enable-module-vmauthd=no/yes        Enable VMAUTHD module (default=yes)
1478  --enable-module-vnc=no/yes            Enable VNC module (default=yes)
1479  --enable-module-wrapper=no/yes        Enable WRAPPER module (default=yes)
1480  --enable-module-web-form=no/yes       Enable WEB-FORM module (default=yes)
1481
1482Optional Packages:
1483  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1484  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1485  --with-postgresql=prefix
1486                          Prefix for postgresql include directory (default =
1487                          /usr)
1488  --with-afpfsng=prefix   Prefix for afpfs-ng include directory (default =
1489                          /usr)
1490  --with-ssl=prefix       Prefix for OpenSSL libraries
1491  --with-default-mod-path=path
1492                          Location of medusa module files (default =
1493                          /usr/local/lib/medusa/modules)
1494
1495Some influential environment variables:
1496  CC          C compiler command
1497  CFLAGS      C compiler flags
1498  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1499              nonstandard directory <lib dir>
1500  LIBS        libraries to pass to the linker, e.g. -l<library>
1501  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1502              you have headers in a nonstandard directory <include dir>
1503  CPP         C preprocessor
1504
1505Use these variables to override the choices made by `configure' or to help
1506it to find libraries and programs with nonstandard names/locations.
1507
1508Report bugs to the package provider.
1509_ACEOF
1510ac_status=$?
1511fi
1512
1513if test "$ac_init_help" = "recursive"; then
1514  # If there are subdirs, report their specific --help.
1515  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1516    test -d "$ac_dir" ||
1517      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1518      continue
1519    ac_builddir=.
1520
1521case "$ac_dir" in
1522.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523*)
1524  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1525  # A ".." for each directory in $ac_dir_suffix.
1526  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1527  case $ac_top_builddir_sub in
1528  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530  esac ;;
1531esac
1532ac_abs_top_builddir=$ac_pwd
1533ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534# for backward compatibility:
1535ac_top_builddir=$ac_top_build_prefix
1536
1537case $srcdir in
1538  .)  # We are building in place.
1539    ac_srcdir=.
1540    ac_top_srcdir=$ac_top_builddir_sub
1541    ac_abs_top_srcdir=$ac_pwd ;;
1542  [\\/]* | ?:[\\/]* )  # Absolute name.
1543    ac_srcdir=$srcdir$ac_dir_suffix;
1544    ac_top_srcdir=$srcdir
1545    ac_abs_top_srcdir=$srcdir ;;
1546  *) # Relative name.
1547    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548    ac_top_srcdir=$ac_top_build_prefix$srcdir
1549    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550esac
1551ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552
1553    cd "$ac_dir" || { ac_status=$?; continue; }
1554    # Check for guested configure.
1555    if test -f "$ac_srcdir/configure.gnu"; then
1556      echo &&
1557      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558    elif test -f "$ac_srcdir/configure"; then
1559      echo &&
1560      $SHELL "$ac_srcdir/configure" --help=recursive
1561    else
1562      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563    fi || ac_status=$?
1564    cd "$ac_pwd" || { ac_status=$?; break; }
1565  done
1566fi
1567
1568test -n "$ac_init_help" && exit $ac_status
1569if $ac_init_version; then
1570  cat <<\_ACEOF
1571medusa configure 2.2
1572generated by GNU Autoconf 2.69
1573
1574Copyright (C) 2012 Free Software Foundation, Inc.
1575This configure script is free software; the Free Software Foundation
1576gives unlimited permission to copy, distribute and modify it.
1577_ACEOF
1578  exit
1579fi
1580
1581## ------------------------ ##
1582## Autoconf initialization. ##
1583## ------------------------ ##
1584
1585# ac_fn_c_try_compile LINENO
1586# --------------------------
1587# Try to compile conftest.$ac_ext, and return whether this succeeded.
1588ac_fn_c_try_compile ()
1589{
1590  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591  rm -f conftest.$ac_objext
1592  if { { ac_try="$ac_compile"
1593case "(($ac_try" in
1594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595  *) ac_try_echo=$ac_try;;
1596esac
1597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598$as_echo "$ac_try_echo"; } >&5
1599  (eval "$ac_compile") 2>conftest.err
1600  ac_status=$?
1601  if test -s conftest.err; then
1602    grep -v '^ *+' conftest.err >conftest.er1
1603    cat conftest.er1 >&5
1604    mv -f conftest.er1 conftest.err
1605  fi
1606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607  test $ac_status = 0; } && {
1608	 test -z "$ac_c_werror_flag" ||
1609	 test ! -s conftest.err
1610       } && test -s conftest.$ac_objext; then :
1611  ac_retval=0
1612else
1613  $as_echo "$as_me: failed program was:" >&5
1614sed 's/^/| /' conftest.$ac_ext >&5
1615
1616	ac_retval=1
1617fi
1618  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619  as_fn_set_status $ac_retval
1620
1621} # ac_fn_c_try_compile
1622
1623# ac_fn_c_try_cpp LINENO
1624# ----------------------
1625# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1626ac_fn_c_try_cpp ()
1627{
1628  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629  if { { ac_try="$ac_cpp conftest.$ac_ext"
1630case "(($ac_try" in
1631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632  *) ac_try_echo=$ac_try;;
1633esac
1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635$as_echo "$ac_try_echo"; } >&5
1636  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1637  ac_status=$?
1638  if test -s conftest.err; then
1639    grep -v '^ *+' conftest.err >conftest.er1
1640    cat conftest.er1 >&5
1641    mv -f conftest.er1 conftest.err
1642  fi
1643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644  test $ac_status = 0; } > conftest.i && {
1645	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1646	 test ! -s conftest.err
1647       }; then :
1648  ac_retval=0
1649else
1650  $as_echo "$as_me: failed program was:" >&5
1651sed 's/^/| /' conftest.$ac_ext >&5
1652
1653    ac_retval=1
1654fi
1655  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656  as_fn_set_status $ac_retval
1657
1658} # ac_fn_c_try_cpp
1659
1660# ac_fn_c_try_run LINENO
1661# ----------------------
1662# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1663# that executables *can* be run.
1664ac_fn_c_try_run ()
1665{
1666  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667  if { { ac_try="$ac_link"
1668case "(($ac_try" in
1669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670  *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673$as_echo "$ac_try_echo"; } >&5
1674  (eval "$ac_link") 2>&5
1675  ac_status=$?
1676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1678  { { case "(($ac_try" in
1679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680  *) ac_try_echo=$ac_try;;
1681esac
1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683$as_echo "$ac_try_echo"; } >&5
1684  (eval "$ac_try") 2>&5
1685  ac_status=$?
1686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687  test $ac_status = 0; }; }; then :
1688  ac_retval=0
1689else
1690  $as_echo "$as_me: program exited with status $ac_status" >&5
1691       $as_echo "$as_me: failed program was:" >&5
1692sed 's/^/| /' conftest.$ac_ext >&5
1693
1694       ac_retval=$ac_status
1695fi
1696  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1697  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698  as_fn_set_status $ac_retval
1699
1700} # ac_fn_c_try_run
1701
1702# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1703# --------------------------------------------
1704# Tries to find the compile-time value of EXPR in a program that includes
1705# INCLUDES, setting VAR accordingly. Returns whether the value could be
1706# computed
1707ac_fn_c_compute_int ()
1708{
1709  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710  if test "$cross_compiling" = yes; then
1711    # Depending upon the size, compute the lo and hi bounds.
1712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713/* end confdefs.h.  */
1714$4
1715int
1716main ()
1717{
1718static int test_array [1 - 2 * !(($2) >= 0)];
1719test_array [0] = 0;
1720return test_array [0];
1721
1722  ;
1723  return 0;
1724}
1725_ACEOF
1726if ac_fn_c_try_compile "$LINENO"; then :
1727  ac_lo=0 ac_mid=0
1728  while :; do
1729    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730/* end confdefs.h.  */
1731$4
1732int
1733main ()
1734{
1735static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1736test_array [0] = 0;
1737return test_array [0];
1738
1739  ;
1740  return 0;
1741}
1742_ACEOF
1743if ac_fn_c_try_compile "$LINENO"; then :
1744  ac_hi=$ac_mid; break
1745else
1746  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1747			if test $ac_lo -le $ac_mid; then
1748			  ac_lo= ac_hi=
1749			  break
1750			fi
1751			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1752fi
1753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754  done
1755else
1756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757/* end confdefs.h.  */
1758$4
1759int
1760main ()
1761{
1762static int test_array [1 - 2 * !(($2) < 0)];
1763test_array [0] = 0;
1764return test_array [0];
1765
1766  ;
1767  return 0;
1768}
1769_ACEOF
1770if ac_fn_c_try_compile "$LINENO"; then :
1771  ac_hi=-1 ac_mid=-1
1772  while :; do
1773    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774/* end confdefs.h.  */
1775$4
1776int
1777main ()
1778{
1779static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1780test_array [0] = 0;
1781return test_array [0];
1782
1783  ;
1784  return 0;
1785}
1786_ACEOF
1787if ac_fn_c_try_compile "$LINENO"; then :
1788  ac_lo=$ac_mid; break
1789else
1790  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1791			if test $ac_mid -le $ac_hi; then
1792			  ac_lo= ac_hi=
1793			  break
1794			fi
1795			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1796fi
1797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798  done
1799else
1800  ac_lo= ac_hi=
1801fi
1802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1803fi
1804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805# Binary search between lo and hi bounds.
1806while test "x$ac_lo" != "x$ac_hi"; do
1807  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809/* end confdefs.h.  */
1810$4
1811int
1812main ()
1813{
1814static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1815test_array [0] = 0;
1816return test_array [0];
1817
1818  ;
1819  return 0;
1820}
1821_ACEOF
1822if ac_fn_c_try_compile "$LINENO"; then :
1823  ac_hi=$ac_mid
1824else
1825  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1826fi
1827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828done
1829case $ac_lo in #((
1830?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1831'') ac_retval=1 ;;
1832esac
1833  else
1834    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835/* end confdefs.h.  */
1836$4
1837static long int longval () { return $2; }
1838static unsigned long int ulongval () { return $2; }
1839#include <stdio.h>
1840#include <stdlib.h>
1841int
1842main ()
1843{
1844
1845  FILE *f = fopen ("conftest.val", "w");
1846  if (! f)
1847    return 1;
1848  if (($2) < 0)
1849    {
1850      long int i = longval ();
1851      if (i != ($2))
1852	return 1;
1853      fprintf (f, "%ld", i);
1854    }
1855  else
1856    {
1857      unsigned long int i = ulongval ();
1858      if (i != ($2))
1859	return 1;
1860      fprintf (f, "%lu", i);
1861    }
1862  /* Do not output a trailing newline, as this causes \r\n confusion
1863     on some platforms.  */
1864  return ferror (f) || fclose (f) != 0;
1865
1866  ;
1867  return 0;
1868}
1869_ACEOF
1870if ac_fn_c_try_run "$LINENO"; then :
1871  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1872else
1873  ac_retval=1
1874fi
1875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1876  conftest.$ac_objext conftest.beam conftest.$ac_ext
1877rm -f conftest.val
1878
1879  fi
1880  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881  as_fn_set_status $ac_retval
1882
1883} # ac_fn_c_compute_int
1884
1885# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1886# -------------------------------------------------------
1887# Tests whether HEADER exists and can be compiled using the include files in
1888# INCLUDES, setting the cache variable VAR accordingly.
1889ac_fn_c_check_header_compile ()
1890{
1891  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893$as_echo_n "checking for $2... " >&6; }
1894if eval \${$3+:} false; then :
1895  $as_echo_n "(cached) " >&6
1896else
1897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898/* end confdefs.h.  */
1899$4
1900#include <$2>
1901_ACEOF
1902if ac_fn_c_try_compile "$LINENO"; then :
1903  eval "$3=yes"
1904else
1905  eval "$3=no"
1906fi
1907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908fi
1909eval ac_res=\$$3
1910	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911$as_echo "$ac_res" >&6; }
1912  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913
1914} # ac_fn_c_check_header_compile
1915
1916# ac_fn_c_try_link LINENO
1917# -----------------------
1918# Try to link conftest.$ac_ext, and return whether this succeeded.
1919ac_fn_c_try_link ()
1920{
1921  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922  rm -f conftest.$ac_objext conftest$ac_exeext
1923  if { { ac_try="$ac_link"
1924case "(($ac_try" in
1925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926  *) ac_try_echo=$ac_try;;
1927esac
1928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929$as_echo "$ac_try_echo"; } >&5
1930  (eval "$ac_link") 2>conftest.err
1931  ac_status=$?
1932  if test -s conftest.err; then
1933    grep -v '^ *+' conftest.err >conftest.er1
1934    cat conftest.er1 >&5
1935    mv -f conftest.er1 conftest.err
1936  fi
1937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938  test $ac_status = 0; } && {
1939	 test -z "$ac_c_werror_flag" ||
1940	 test ! -s conftest.err
1941       } && test -s conftest$ac_exeext && {
1942	 test "$cross_compiling" = yes ||
1943	 test -x conftest$ac_exeext
1944       }; then :
1945  ac_retval=0
1946else
1947  $as_echo "$as_me: failed program was:" >&5
1948sed 's/^/| /' conftest.$ac_ext >&5
1949
1950	ac_retval=1
1951fi
1952  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1953  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1954  # interfere with the next link command; also delete a directory that is
1955  # left behind by Apple's compiler.  We do this before executing the actions.
1956  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1957  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958  as_fn_set_status $ac_retval
1959
1960} # ac_fn_c_try_link
1961
1962# ac_fn_c_check_func LINENO FUNC VAR
1963# ----------------------------------
1964# Tests whether FUNC exists, setting the cache variable VAR accordingly
1965ac_fn_c_check_func ()
1966{
1967  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969$as_echo_n "checking for $2... " >&6; }
1970if eval \${$3+:} false; then :
1971  $as_echo_n "(cached) " >&6
1972else
1973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974/* end confdefs.h.  */
1975/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1976   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1977#define $2 innocuous_$2
1978
1979/* System header to define __stub macros and hopefully few prototypes,
1980    which can conflict with char $2 (); below.
1981    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1982    <limits.h> exists even on freestanding compilers.  */
1983
1984#ifdef __STDC__
1985# include <limits.h>
1986#else
1987# include <assert.h>
1988#endif
1989
1990#undef $2
1991
1992/* Override any GCC internal prototype to avoid an error.
1993   Use char because int might match the return type of a GCC
1994   builtin and then its argument prototype would still apply.  */
1995#ifdef __cplusplus
1996extern "C"
1997#endif
1998char $2 ();
1999/* The GNU C library defines this for functions which it implements
2000    to always fail with ENOSYS.  Some functions are actually named
2001    something starting with __ and the normal name is an alias.  */
2002#if defined __stub_$2 || defined __stub___$2
2003choke me
2004#endif
2005
2006int
2007main ()
2008{
2009return $2 ();
2010  ;
2011  return 0;
2012}
2013_ACEOF
2014if ac_fn_c_try_link "$LINENO"; then :
2015  eval "$3=yes"
2016else
2017  eval "$3=no"
2018fi
2019rm -f core conftest.err conftest.$ac_objext \
2020    conftest$ac_exeext conftest.$ac_ext
2021fi
2022eval ac_res=\$$3
2023	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024$as_echo "$ac_res" >&6; }
2025  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026
2027} # ac_fn_c_check_func
2028
2029# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2030# -------------------------------------------------------
2031# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2032# the include files in INCLUDES and setting the cache variable VAR
2033# accordingly.
2034ac_fn_c_check_header_mongrel ()
2035{
2036  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037  if eval \${$3+:} false; then :
2038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039$as_echo_n "checking for $2... " >&6; }
2040if eval \${$3+:} false; then :
2041  $as_echo_n "(cached) " >&6
2042fi
2043eval ac_res=\$$3
2044	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045$as_echo "$ac_res" >&6; }
2046else
2047  # Is the header compilable?
2048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2049$as_echo_n "checking $2 usability... " >&6; }
2050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051/* end confdefs.h.  */
2052$4
2053#include <$2>
2054_ACEOF
2055if ac_fn_c_try_compile "$LINENO"; then :
2056  ac_header_compiler=yes
2057else
2058  ac_header_compiler=no
2059fi
2060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2062$as_echo "$ac_header_compiler" >&6; }
2063
2064# Is the header present?
2065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2066$as_echo_n "checking $2 presence... " >&6; }
2067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068/* end confdefs.h.  */
2069#include <$2>
2070_ACEOF
2071if ac_fn_c_try_cpp "$LINENO"; then :
2072  ac_header_preproc=yes
2073else
2074  ac_header_preproc=no
2075fi
2076rm -f conftest.err conftest.i conftest.$ac_ext
2077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2078$as_echo "$ac_header_preproc" >&6; }
2079
2080# So?  What about this header?
2081case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2082  yes:no: )
2083    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2084$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2085    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2086$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2087    ;;
2088  no:yes:* )
2089    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2090$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2091    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2092$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2093    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2094$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2095    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2096$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2097    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2098$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2099    ;;
2100esac
2101  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102$as_echo_n "checking for $2... " >&6; }
2103if eval \${$3+:} false; then :
2104  $as_echo_n "(cached) " >&6
2105else
2106  eval "$3=\$ac_header_compiler"
2107fi
2108eval ac_res=\$$3
2109	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110$as_echo "$ac_res" >&6; }
2111fi
2112  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113
2114} # ac_fn_c_check_header_mongrel
2115cat >config.log <<_ACEOF
2116This file contains any messages produced by compilers while
2117running configure, to aid debugging if configure makes a mistake.
2118
2119It was created by medusa $as_me 2.2, which was
2120generated by GNU Autoconf 2.69.  Invocation command line was
2121
2122  $ $0 $@
2123
2124_ACEOF
2125exec 5>>config.log
2126{
2127cat <<_ASUNAME
2128## --------- ##
2129## Platform. ##
2130## --------- ##
2131
2132hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2133uname -m = `(uname -m) 2>/dev/null || echo unknown`
2134uname -r = `(uname -r) 2>/dev/null || echo unknown`
2135uname -s = `(uname -s) 2>/dev/null || echo unknown`
2136uname -v = `(uname -v) 2>/dev/null || echo unknown`
2137
2138/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2139/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2140
2141/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2142/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2143/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2144/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2145/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2146/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2147/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2148
2149_ASUNAME
2150
2151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152for as_dir in $PATH
2153do
2154  IFS=$as_save_IFS
2155  test -z "$as_dir" && as_dir=.
2156    $as_echo "PATH: $as_dir"
2157  done
2158IFS=$as_save_IFS
2159
2160} >&5
2161
2162cat >&5 <<_ACEOF
2163
2164
2165## ----------- ##
2166## Core tests. ##
2167## ----------- ##
2168
2169_ACEOF
2170
2171
2172# Keep a trace of the command line.
2173# Strip out --no-create and --no-recursion so they do not pile up.
2174# Strip out --silent because we don't want to record it for future runs.
2175# Also quote any args containing shell meta-characters.
2176# Make two passes to allow for proper duplicate-argument suppression.
2177ac_configure_args=
2178ac_configure_args0=
2179ac_configure_args1=
2180ac_must_keep_next=false
2181for ac_pass in 1 2
2182do
2183  for ac_arg
2184  do
2185    case $ac_arg in
2186    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2187    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2188    | -silent | --silent | --silen | --sile | --sil)
2189      continue ;;
2190    *\'*)
2191      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2192    esac
2193    case $ac_pass in
2194    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2195    2)
2196      as_fn_append ac_configure_args1 " '$ac_arg'"
2197      if test $ac_must_keep_next = true; then
2198	ac_must_keep_next=false # Got value, back to normal.
2199      else
2200	case $ac_arg in
2201	  *=* | --config-cache | -C | -disable-* | --disable-* \
2202	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2203	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2204	  | -with-* | --with-* | -without-* | --without-* | --x)
2205	    case "$ac_configure_args0 " in
2206	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2207	    esac
2208	    ;;
2209	  -* ) ac_must_keep_next=true ;;
2210	esac
2211      fi
2212      as_fn_append ac_configure_args " '$ac_arg'"
2213      ;;
2214    esac
2215  done
2216done
2217{ ac_configure_args0=; unset ac_configure_args0;}
2218{ ac_configure_args1=; unset ac_configure_args1;}
2219
2220# When interrupted or exit'd, cleanup temporary files, and complete
2221# config.log.  We remove comments because anyway the quotes in there
2222# would cause problems or look ugly.
2223# WARNING: Use '\'' to represent an apostrophe within the trap.
2224# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2225trap 'exit_status=$?
2226  # Save into config.log some information that might help in debugging.
2227  {
2228    echo
2229
2230    $as_echo "## ---------------- ##
2231## Cache variables. ##
2232## ---------------- ##"
2233    echo
2234    # The following way of writing the cache mishandles newlines in values,
2235(
2236  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2237    eval ac_val=\$$ac_var
2238    case $ac_val in #(
2239    *${as_nl}*)
2240      case $ac_var in #(
2241      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2242$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2243      esac
2244      case $ac_var in #(
2245      _ | IFS | as_nl) ;; #(
2246      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2247      *) { eval $ac_var=; unset $ac_var;} ;;
2248      esac ;;
2249    esac
2250  done
2251  (set) 2>&1 |
2252    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2253    *${as_nl}ac_space=\ *)
2254      sed -n \
2255	"s/'\''/'\''\\\\'\'''\''/g;
2256	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2257      ;; #(
2258    *)
2259      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2260      ;;
2261    esac |
2262    sort
2263)
2264    echo
2265
2266    $as_echo "## ----------------- ##
2267## Output variables. ##
2268## ----------------- ##"
2269    echo
2270    for ac_var in $ac_subst_vars
2271    do
2272      eval ac_val=\$$ac_var
2273      case $ac_val in
2274      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2275      esac
2276      $as_echo "$ac_var='\''$ac_val'\''"
2277    done | sort
2278    echo
2279
2280    if test -n "$ac_subst_files"; then
2281      $as_echo "## ------------------- ##
2282## File substitutions. ##
2283## ------------------- ##"
2284      echo
2285      for ac_var in $ac_subst_files
2286      do
2287	eval ac_val=\$$ac_var
2288	case $ac_val in
2289	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2290	esac
2291	$as_echo "$ac_var='\''$ac_val'\''"
2292      done | sort
2293      echo
2294    fi
2295
2296    if test -s confdefs.h; then
2297      $as_echo "## ----------- ##
2298## confdefs.h. ##
2299## ----------- ##"
2300      echo
2301      cat confdefs.h
2302      echo
2303    fi
2304    test "$ac_signal" != 0 &&
2305      $as_echo "$as_me: caught signal $ac_signal"
2306    $as_echo "$as_me: exit $exit_status"
2307  } >&5
2308  rm -f core *.core core.conftest.* &&
2309    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2310    exit $exit_status
2311' 0
2312for ac_signal in 1 2 13 15; do
2313  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2314done
2315ac_signal=0
2316
2317# confdefs.h avoids OS command line length limits that DEFS can exceed.
2318rm -f -r conftest* confdefs.h
2319
2320$as_echo "/* confdefs.h */" > confdefs.h
2321
2322# Predefined preprocessor variables.
2323
2324cat >>confdefs.h <<_ACEOF
2325#define PACKAGE_NAME "$PACKAGE_NAME"
2326_ACEOF
2327
2328cat >>confdefs.h <<_ACEOF
2329#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2330_ACEOF
2331
2332cat >>confdefs.h <<_ACEOF
2333#define PACKAGE_VERSION "$PACKAGE_VERSION"
2334_ACEOF
2335
2336cat >>confdefs.h <<_ACEOF
2337#define PACKAGE_STRING "$PACKAGE_STRING"
2338_ACEOF
2339
2340cat >>confdefs.h <<_ACEOF
2341#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2342_ACEOF
2343
2344cat >>confdefs.h <<_ACEOF
2345#define PACKAGE_URL "$PACKAGE_URL"
2346_ACEOF
2347
2348
2349# Let the site file select an alternate cache file if it wants to.
2350# Prefer an explicitly selected file to automatically selected ones.
2351ac_site_file1=NONE
2352ac_site_file2=NONE
2353if test -n "$CONFIG_SITE"; then
2354  # We do not want a PATH search for config.site.
2355  case $CONFIG_SITE in #((
2356    -*)  ac_site_file1=./$CONFIG_SITE;;
2357    */*) ac_site_file1=$CONFIG_SITE;;
2358    *)   ac_site_file1=./$CONFIG_SITE;;
2359  esac
2360elif test "x$prefix" != xNONE; then
2361  ac_site_file1=$prefix/share/config.site
2362  ac_site_file2=$prefix/etc/config.site
2363else
2364  ac_site_file1=$ac_default_prefix/share/config.site
2365  ac_site_file2=$ac_default_prefix/etc/config.site
2366fi
2367for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2368do
2369  test "x$ac_site_file" = xNONE && continue
2370  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2371    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2372$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2373    sed 's/^/| /' "$ac_site_file" >&5
2374    . "$ac_site_file" \
2375      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2377as_fn_error $? "failed to load site script $ac_site_file
2378See \`config.log' for more details" "$LINENO" 5; }
2379  fi
2380done
2381
2382if test -r "$cache_file"; then
2383  # Some versions of bash will fail to source /dev/null (special files
2384  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2385  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2386    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2387$as_echo "$as_me: loading cache $cache_file" >&6;}
2388    case $cache_file in
2389      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2390      *)                      . "./$cache_file";;
2391    esac
2392  fi
2393else
2394  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2395$as_echo "$as_me: creating cache $cache_file" >&6;}
2396  >$cache_file
2397fi
2398
2399# Check that the precious variables saved in the cache have kept the same
2400# value.
2401ac_cache_corrupted=false
2402for ac_var in $ac_precious_vars; do
2403  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2404  eval ac_new_set=\$ac_env_${ac_var}_set
2405  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2406  eval ac_new_val=\$ac_env_${ac_var}_value
2407  case $ac_old_set,$ac_new_set in
2408    set,)
2409      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2410$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2411      ac_cache_corrupted=: ;;
2412    ,set)
2413      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2414$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2415      ac_cache_corrupted=: ;;
2416    ,);;
2417    *)
2418      if test "x$ac_old_val" != "x$ac_new_val"; then
2419	# differences in whitespace do not lead to failure.
2420	ac_old_val_w=`echo x $ac_old_val`
2421	ac_new_val_w=`echo x $ac_new_val`
2422	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2423	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2424$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2425	  ac_cache_corrupted=:
2426	else
2427	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2428$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2429	  eval $ac_var=\$ac_old_val
2430	fi
2431	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2432$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2433	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2434$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2435      fi;;
2436  esac
2437  # Pass precious variables to config.status.
2438  if test "$ac_new_set" = set; then
2439    case $ac_new_val in
2440    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2441    *) ac_arg=$ac_var=$ac_new_val ;;
2442    esac
2443    case " $ac_configure_args " in
2444      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2445      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2446    esac
2447  fi
2448done
2449if $ac_cache_corrupted; then
2450  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2452  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2453$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2454  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2455fi
2456## -------------------- ##
2457## Main body of script. ##
2458## -------------------- ##
2459
2460ac_ext=c
2461ac_cpp='$CPP $CPPFLAGS'
2462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464ac_compiler_gnu=$ac_cv_c_compiler_gnu
2465
2466
2467
2468ac_config_headers="$ac_config_headers config.h"
2469
2470
2471ac_aux_dir=
2472for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2473  if test -f "$ac_dir/install-sh"; then
2474    ac_aux_dir=$ac_dir
2475    ac_install_sh="$ac_aux_dir/install-sh -c"
2476    break
2477  elif test -f "$ac_dir/install.sh"; then
2478    ac_aux_dir=$ac_dir
2479    ac_install_sh="$ac_aux_dir/install.sh -c"
2480    break
2481  elif test -f "$ac_dir/shtool"; then
2482    ac_aux_dir=$ac_dir
2483    ac_install_sh="$ac_aux_dir/shtool install -c"
2484    break
2485  fi
2486done
2487if test -z "$ac_aux_dir"; then
2488  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2489fi
2490
2491# These three variables are undocumented and unsupported,
2492# and are intended to be withdrawn in a future Autoconf release.
2493# They can cause serious problems if a builder's source tree is in a directory
2494# whose full name contains unusual characters.
2495ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2496ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2497ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2498
2499
2500# Make sure we can run config.sub.
2501$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2502  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2503
2504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2505$as_echo_n "checking build system type... " >&6; }
2506if ${ac_cv_build+:} false; then :
2507  $as_echo_n "(cached) " >&6
2508else
2509  ac_build_alias=$build_alias
2510test "x$ac_build_alias" = x &&
2511  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2512test "x$ac_build_alias" = x &&
2513  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2514ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2515  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2516
2517fi
2518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2519$as_echo "$ac_cv_build" >&6; }
2520case $ac_cv_build in
2521*-*-*) ;;
2522*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2523esac
2524build=$ac_cv_build
2525ac_save_IFS=$IFS; IFS='-'
2526set x $ac_cv_build
2527shift
2528build_cpu=$1
2529build_vendor=$2
2530shift; shift
2531# Remember, the first character of IFS is used to create $*,
2532# except with old shells:
2533build_os=$*
2534IFS=$ac_save_IFS
2535case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2536
2537
2538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2539$as_echo_n "checking host system type... " >&6; }
2540if ${ac_cv_host+:} false; then :
2541  $as_echo_n "(cached) " >&6
2542else
2543  if test "x$host_alias" = x; then
2544  ac_cv_host=$ac_cv_build
2545else
2546  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2547    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2548fi
2549
2550fi
2551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2552$as_echo "$ac_cv_host" >&6; }
2553case $ac_cv_host in
2554*-*-*) ;;
2555*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2556esac
2557host=$ac_cv_host
2558ac_save_IFS=$IFS; IFS='-'
2559set x $ac_cv_host
2560shift
2561host_cpu=$1
2562host_vendor=$2
2563shift; shift
2564# Remember, the first character of IFS is used to create $*,
2565# except with old shells:
2566host_os=$*
2567IFS=$ac_save_IFS
2568case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2569
2570
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2572$as_echo_n "checking target system type... " >&6; }
2573if ${ac_cv_target+:} false; then :
2574  $as_echo_n "(cached) " >&6
2575else
2576  if test "x$target_alias" = x; then
2577  ac_cv_target=$ac_cv_host
2578else
2579  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2580    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2581fi
2582
2583fi
2584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2585$as_echo "$ac_cv_target" >&6; }
2586case $ac_cv_target in
2587*-*-*) ;;
2588*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2589esac
2590target=$ac_cv_target
2591ac_save_IFS=$IFS; IFS='-'
2592set x $ac_cv_target
2593shift
2594target_cpu=$1
2595target_vendor=$2
2596shift; shift
2597# Remember, the first character of IFS is used to create $*,
2598# except with old shells:
2599target_os=$*
2600IFS=$ac_save_IFS
2601case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2602
2603
2604# The aliases save the names the user supplied, while $host etc.
2605# will get canonicalized.
2606test -n "$target_alias" &&
2607  test "$program_prefix$program_suffix$program_transform_name" = \
2608    NONENONEs,x,x, &&
2609  program_prefix=${target_alias}-
2610
2611am__api_version='1.14'
2612
2613# Find a good install program.  We prefer a C program (faster),
2614# so one script is as good as another.  But avoid the broken or
2615# incompatible versions:
2616# SysV /etc/install, /usr/sbin/install
2617# SunOS /usr/etc/install
2618# IRIX /sbin/install
2619# AIX /bin/install
2620# AmigaOS /C/install, which installs bootblocks on floppy discs
2621# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2622# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2623# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2624# OS/2's system install, which has a completely different semantic
2625# ./install, which can be erroneously created by make from ./install.sh.
2626# Reject install programs that cannot install multiple files.
2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2628$as_echo_n "checking for a BSD-compatible install... " >&6; }
2629if test -z "$INSTALL"; then
2630if ${ac_cv_path_install+:} false; then :
2631  $as_echo_n "(cached) " >&6
2632else
2633  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634for as_dir in $PATH
2635do
2636  IFS=$as_save_IFS
2637  test -z "$as_dir" && as_dir=.
2638    # Account for people who put trailing slashes in PATH elements.
2639case $as_dir/ in #((
2640  ./ | .// | /[cC]/* | \
2641  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2642  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2643  /usr/ucb/* ) ;;
2644  *)
2645    # OSF1 and SCO ODT 3.0 have their own names for install.
2646    # Don't use installbsd from OSF since it installs stuff as root
2647    # by default.
2648    for ac_prog in ginstall scoinst install; do
2649      for ac_exec_ext in '' $ac_executable_extensions; do
2650	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2651	  if test $ac_prog = install &&
2652	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2653	    # AIX install.  It has an incompatible calling convention.
2654	    :
2655	  elif test $ac_prog = install &&
2656	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2657	    # program-specific install script used by HP pwplus--don't use.
2658	    :
2659	  else
2660	    rm -rf conftest.one conftest.two conftest.dir
2661	    echo one > conftest.one
2662	    echo two > conftest.two
2663	    mkdir conftest.dir
2664	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2665	      test -s conftest.one && test -s conftest.two &&
2666	      test -s conftest.dir/conftest.one &&
2667	      test -s conftest.dir/conftest.two
2668	    then
2669	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2670	      break 3
2671	    fi
2672	  fi
2673	fi
2674      done
2675    done
2676    ;;
2677esac
2678
2679  done
2680IFS=$as_save_IFS
2681
2682rm -rf conftest.one conftest.two conftest.dir
2683
2684fi
2685  if test "${ac_cv_path_install+set}" = set; then
2686    INSTALL=$ac_cv_path_install
2687  else
2688    # As a last resort, use the slow shell script.  Don't cache a
2689    # value for INSTALL within a source directory, because that will
2690    # break other packages using the cache if that directory is
2691    # removed, or if the value is a relative name.
2692    INSTALL=$ac_install_sh
2693  fi
2694fi
2695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2696$as_echo "$INSTALL" >&6; }
2697
2698# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2699# It thinks the first close brace ends the variable substitution.
2700test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2701
2702test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2703
2704test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2705
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2707$as_echo_n "checking whether build environment is sane... " >&6; }
2708# Reject unsafe characters in $srcdir or the absolute working directory
2709# name.  Accept space and tab only in the latter.
2710am_lf='
2711'
2712case `pwd` in
2713  *[\\\"\#\$\&\'\`$am_lf]*)
2714    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2715esac
2716case $srcdir in
2717  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2718    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2719esac
2720
2721# Do 'set' in a subshell so we don't clobber the current shell's
2722# arguments.  Must try -L first in case configure is actually a
2723# symlink; some systems play weird games with the mod time of symlinks
2724# (eg FreeBSD returns the mod time of the symlink's containing
2725# directory).
2726if (
2727   am_has_slept=no
2728   for am_try in 1 2; do
2729     echo "timestamp, slept: $am_has_slept" > conftest.file
2730     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2731     if test "$*" = "X"; then
2732	# -L didn't work.
2733	set X `ls -t "$srcdir/configure" conftest.file`
2734     fi
2735     if test "$*" != "X $srcdir/configure conftest.file" \
2736	&& test "$*" != "X conftest.file $srcdir/configure"; then
2737
2738	# If neither matched, then we have a broken ls.  This can happen
2739	# if, for instance, CONFIG_SHELL is bash and it inherits a
2740	# broken ls alias from the environment.  This has actually
2741	# happened.  Such a system could not be considered "sane".
2742	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2743  alias in your environment" "$LINENO" 5
2744     fi
2745     if test "$2" = conftest.file || test $am_try -eq 2; then
2746       break
2747     fi
2748     # Just in case.
2749     sleep 1
2750     am_has_slept=yes
2751   done
2752   test "$2" = conftest.file
2753   )
2754then
2755   # Ok.
2756   :
2757else
2758   as_fn_error $? "newly created file is older than distributed files!
2759Check your system clock" "$LINENO" 5
2760fi
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2762$as_echo "yes" >&6; }
2763# If we didn't sleep, we still need to ensure time stamps of config.status and
2764# generated files are strictly newer.
2765am_sleep_pid=
2766if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2767  ( sleep 1 ) &
2768  am_sleep_pid=$!
2769fi
2770
2771rm -f conftest.file
2772
2773test "$program_prefix" != NONE &&
2774  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2775# Use a double $ so make ignores it.
2776test "$program_suffix" != NONE &&
2777  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2778# Double any \ or $.
2779# By default was `s,x,x', remove it if useless.
2780ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2781program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2782
2783# Expand $ac_aux_dir to an absolute path.
2784am_aux_dir=`cd "$ac_aux_dir" && pwd`
2785
2786if test x"${MISSING+set}" != xset; then
2787  case $am_aux_dir in
2788  *\ * | *\	*)
2789    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2790  *)
2791    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2792  esac
2793fi
2794# Use eval to expand $SHELL
2795if eval "$MISSING --is-lightweight"; then
2796  am_missing_run="$MISSING "
2797else
2798  am_missing_run=
2799  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2800$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2801fi
2802
2803if test x"${install_sh}" != xset; then
2804  case $am_aux_dir in
2805  *\ * | *\	*)
2806    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2807  *)
2808    install_sh="\${SHELL} $am_aux_dir/install-sh"
2809  esac
2810fi
2811
2812# Installed binaries are usually stripped using 'strip' when the user
2813# run "make install-strip".  However 'strip' might not be the right
2814# tool to use in cross-compilation environments, therefore Automake
2815# will honor the 'STRIP' environment variable to overrule this program.
2816if test "$cross_compiling" != no; then
2817  if test -n "$ac_tool_prefix"; then
2818  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2819set dummy ${ac_tool_prefix}strip; ac_word=$2
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821$as_echo_n "checking for $ac_word... " >&6; }
2822if ${ac_cv_prog_STRIP+:} false; then :
2823  $as_echo_n "(cached) " >&6
2824else
2825  if test -n "$STRIP"; then
2826  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2827else
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831  IFS=$as_save_IFS
2832  test -z "$as_dir" && as_dir=.
2833    for ac_exec_ext in '' $ac_executable_extensions; do
2834  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837    break 2
2838  fi
2839done
2840  done
2841IFS=$as_save_IFS
2842
2843fi
2844fi
2845STRIP=$ac_cv_prog_STRIP
2846if test -n "$STRIP"; then
2847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2848$as_echo "$STRIP" >&6; }
2849else
2850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851$as_echo "no" >&6; }
2852fi
2853
2854
2855fi
2856if test -z "$ac_cv_prog_STRIP"; then
2857  ac_ct_STRIP=$STRIP
2858  # Extract the first word of "strip", so it can be a program name with args.
2859set dummy strip; ac_word=$2
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861$as_echo_n "checking for $ac_word... " >&6; }
2862if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2863  $as_echo_n "(cached) " >&6
2864else
2865  if test -n "$ac_ct_STRIP"; then
2866  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2867else
2868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869for as_dir in $PATH
2870do
2871  IFS=$as_save_IFS
2872  test -z "$as_dir" && as_dir=.
2873    for ac_exec_ext in '' $ac_executable_extensions; do
2874  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875    ac_cv_prog_ac_ct_STRIP="strip"
2876    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877    break 2
2878  fi
2879done
2880  done
2881IFS=$as_save_IFS
2882
2883fi
2884fi
2885ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2886if test -n "$ac_ct_STRIP"; then
2887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2888$as_echo "$ac_ct_STRIP" >&6; }
2889else
2890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891$as_echo "no" >&6; }
2892fi
2893
2894  if test "x$ac_ct_STRIP" = x; then
2895    STRIP=":"
2896  else
2897    case $cross_compiling:$ac_tool_warned in
2898yes:)
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2901ac_tool_warned=yes ;;
2902esac
2903    STRIP=$ac_ct_STRIP
2904  fi
2905else
2906  STRIP="$ac_cv_prog_STRIP"
2907fi
2908
2909fi
2910INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2911
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2913$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2914if test -z "$MKDIR_P"; then
2915  if ${ac_cv_path_mkdir+:} false; then :
2916  $as_echo_n "(cached) " >&6
2917else
2918  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2920do
2921  IFS=$as_save_IFS
2922  test -z "$as_dir" && as_dir=.
2923    for ac_prog in mkdir gmkdir; do
2924	 for ac_exec_ext in '' $ac_executable_extensions; do
2925	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2926	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2927	     'mkdir (GNU coreutils) '* | \
2928	     'mkdir (coreutils) '* | \
2929	     'mkdir (fileutils) '4.1*)
2930	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2931	       break 3;;
2932	   esac
2933	 done
2934       done
2935  done
2936IFS=$as_save_IFS
2937
2938fi
2939
2940  test -d ./--version && rmdir ./--version
2941  if test "${ac_cv_path_mkdir+set}" = set; then
2942    MKDIR_P="$ac_cv_path_mkdir -p"
2943  else
2944    # As a last resort, use the slow shell script.  Don't cache a
2945    # value for MKDIR_P within a source directory, because that will
2946    # break other packages using the cache if that directory is
2947    # removed, or if the value is a relative name.
2948    MKDIR_P="$ac_install_sh -d"
2949  fi
2950fi
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2952$as_echo "$MKDIR_P" >&6; }
2953
2954for ac_prog in gawk mawk nawk awk
2955do
2956  # Extract the first word of "$ac_prog", so it can be a program name with args.
2957set dummy $ac_prog; ac_word=$2
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959$as_echo_n "checking for $ac_word... " >&6; }
2960if ${ac_cv_prog_AWK+:} false; then :
2961  $as_echo_n "(cached) " >&6
2962else
2963  if test -n "$AWK"; then
2964  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2965else
2966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967for as_dir in $PATH
2968do
2969  IFS=$as_save_IFS
2970  test -z "$as_dir" && as_dir=.
2971    for ac_exec_ext in '' $ac_executable_extensions; do
2972  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973    ac_cv_prog_AWK="$ac_prog"
2974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975    break 2
2976  fi
2977done
2978  done
2979IFS=$as_save_IFS
2980
2981fi
2982fi
2983AWK=$ac_cv_prog_AWK
2984if test -n "$AWK"; then
2985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2986$as_echo "$AWK" >&6; }
2987else
2988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989$as_echo "no" >&6; }
2990fi
2991
2992
2993  test -n "$AWK" && break
2994done
2995
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2997$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2998set x ${MAKE-make}
2999ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3000if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3001  $as_echo_n "(cached) " >&6
3002else
3003  cat >conftest.make <<\_ACEOF
3004SHELL = /bin/sh
3005all:
3006	@echo '@@@%%%=$(MAKE)=@@@%%%'
3007_ACEOF
3008# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3009case `${MAKE-make} -f conftest.make 2>/dev/null` in
3010  *@@@%%%=?*=@@@%%%*)
3011    eval ac_cv_prog_make_${ac_make}_set=yes;;
3012  *)
3013    eval ac_cv_prog_make_${ac_make}_set=no;;
3014esac
3015rm -f conftest.make
3016fi
3017if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3019$as_echo "yes" >&6; }
3020  SET_MAKE=
3021else
3022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023$as_echo "no" >&6; }
3024  SET_MAKE="MAKE=${MAKE-make}"
3025fi
3026
3027rm -rf .tst 2>/dev/null
3028mkdir .tst 2>/dev/null
3029if test -d .tst; then
3030  am__leading_dot=.
3031else
3032  am__leading_dot=_
3033fi
3034rmdir .tst 2>/dev/null
3035
3036# Check whether --enable-silent-rules was given.
3037if test "${enable_silent_rules+set}" = set; then :
3038  enableval=$enable_silent_rules;
3039fi
3040
3041case $enable_silent_rules in # (((
3042  yes) AM_DEFAULT_VERBOSITY=0;;
3043   no) AM_DEFAULT_VERBOSITY=1;;
3044    *) AM_DEFAULT_VERBOSITY=1;;
3045esac
3046am_make=${MAKE-make}
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3048$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3049if ${am_cv_make_support_nested_variables+:} false; then :
3050  $as_echo_n "(cached) " >&6
3051else
3052  if $as_echo 'TRUE=$(BAR$(V))
3053BAR0=false
3054BAR1=true
3055V=1
3056am__doit:
3057	@$(TRUE)
3058.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3059  am_cv_make_support_nested_variables=yes
3060else
3061  am_cv_make_support_nested_variables=no
3062fi
3063fi
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3065$as_echo "$am_cv_make_support_nested_variables" >&6; }
3066if test $am_cv_make_support_nested_variables = yes; then
3067    AM_V='$(V)'
3068  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3069else
3070  AM_V=$AM_DEFAULT_VERBOSITY
3071  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3072fi
3073AM_BACKSLASH='\'
3074
3075if test "`cd $srcdir && pwd`" != "`pwd`"; then
3076  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3077  # is not polluted with repeated "-I."
3078  am__isrc=' -I$(srcdir)'
3079  # test to see if srcdir already configured
3080  if test -f $srcdir/config.status; then
3081    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3082  fi
3083fi
3084
3085# test whether we have cygpath
3086if test -z "$CYGPATH_W"; then
3087  if (cygpath --version) >/dev/null 2>/dev/null; then
3088    CYGPATH_W='cygpath -w'
3089  else
3090    CYGPATH_W=echo
3091  fi
3092fi
3093
3094
3095# Define the identity of the package.
3096 PACKAGE='medusa'
3097 VERSION='2.2'
3098
3099
3100cat >>confdefs.h <<_ACEOF
3101#define PACKAGE "$PACKAGE"
3102_ACEOF
3103
3104
3105cat >>confdefs.h <<_ACEOF
3106#define VERSION "$VERSION"
3107_ACEOF
3108
3109# Some tools Automake needs.
3110
3111ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3112
3113
3114AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3115
3116
3117AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3118
3119
3120AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3121
3122
3123MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3124
3125# For better backward compatibility.  To be removed once Automake 1.9.x
3126# dies out for good.  For more background, see:
3127# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3128# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3129mkdir_p='$(MKDIR_P)'
3130
3131# We need awk for the "check" target.  The system "awk" is bad on
3132# some platforms.
3133# Always define AMTAR for backward compatibility.  Yes, it's still used
3134# in the wild :-(  We should find a proper way to deprecate it ...
3135AMTAR='$${TAR-tar}'
3136
3137
3138# We'll loop over all known methods to create a tar archive until one works.
3139_am_tools='gnutar  pax cpio none'
3140
3141am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3142
3143
3144
3145
3146
3147
3148# POSIX will say in a future version that running "rm -f" with no argument
3149# is OK; and we want to be able to make that assumption in our Makefile
3150# recipes.  So use an aggressive probe to check that the usage we want is
3151# actually supported "in the wild" to an acceptable degree.
3152# See automake bug#10828.
3153# To make any issue more visible, cause the running configure to be aborted
3154# by default if the 'rm' program in use doesn't match our expectations; the
3155# user can still override this though.
3156if rm -f && rm -fr && rm -rf; then : OK; else
3157  cat >&2 <<'END'
3158Oops!
3159
3160Your 'rm' program seems unable to run without file operands specified
3161on the command line, even when the '-f' option is present.  This is contrary
3162to the behaviour of most rm programs out there, and not conforming with
3163the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3164
3165Please tell bug-automake@gnu.org about your system, including the value
3166of your $PATH and any error possibly output before this message.  This
3167can help us improve future automake versions.
3168
3169END
3170  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3171    echo 'Configuration will proceed anyway, since you have set the' >&2
3172    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3173    echo >&2
3174  else
3175    cat >&2 <<'END'
3176Aborting the configuration process, to ensure you take notice of the issue.
3177
3178You can download and install GNU coreutils to get an 'rm' implementation
3179that behaves properly: <http://www.gnu.org/software/coreutils/>.
3180
3181If you want to complete the configuration process using your problematic
3182'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3183to "yes", and re-run configure.
3184
3185END
3186    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3187  fi
3188fi
3189
3190
3191ac_ext=c
3192ac_cpp='$CPP $CPPFLAGS'
3193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195ac_compiler_gnu=$ac_cv_c_compiler_gnu
3196
3197ac_ext=c
3198ac_cpp='$CPP $CPPFLAGS'
3199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202if test -n "$ac_tool_prefix"; then
3203  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3204set dummy ${ac_tool_prefix}gcc; ac_word=$2
3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206$as_echo_n "checking for $ac_word... " >&6; }
3207if ${ac_cv_prog_CC+:} false; then :
3208  $as_echo_n "(cached) " >&6
3209else
3210  if test -n "$CC"; then
3211  ac_cv_prog_CC="$CC" # Let the user override the test.
3212else
3213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214for as_dir in $PATH
3215do
3216  IFS=$as_save_IFS
3217  test -z "$as_dir" && as_dir=.
3218    for ac_exec_ext in '' $ac_executable_extensions; do
3219  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3221    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222    break 2
3223  fi
3224done
3225  done
3226IFS=$as_save_IFS
3227
3228fi
3229fi
3230CC=$ac_cv_prog_CC
3231if test -n "$CC"; then
3232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3233$as_echo "$CC" >&6; }
3234else
3235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236$as_echo "no" >&6; }
3237fi
3238
3239
3240fi
3241if test -z "$ac_cv_prog_CC"; then
3242  ac_ct_CC=$CC
3243  # Extract the first word of "gcc", so it can be a program name with args.
3244set dummy gcc; ac_word=$2
3245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246$as_echo_n "checking for $ac_word... " >&6; }
3247if ${ac_cv_prog_ac_ct_CC+:} false; then :
3248  $as_echo_n "(cached) " >&6
3249else
3250  if test -n "$ac_ct_CC"; then
3251  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3252else
3253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254for as_dir in $PATH
3255do
3256  IFS=$as_save_IFS
3257  test -z "$as_dir" && as_dir=.
3258    for ac_exec_ext in '' $ac_executable_extensions; do
3259  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260    ac_cv_prog_ac_ct_CC="gcc"
3261    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262    break 2
3263  fi
3264done
3265  done
3266IFS=$as_save_IFS
3267
3268fi
3269fi
3270ac_ct_CC=$ac_cv_prog_ac_ct_CC
3271if test -n "$ac_ct_CC"; then
3272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3273$as_echo "$ac_ct_CC" >&6; }
3274else
3275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276$as_echo "no" >&6; }
3277fi
3278
3279  if test "x$ac_ct_CC" = x; then
3280    CC=""
3281  else
3282    case $cross_compiling:$ac_tool_warned in
3283yes:)
3284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3286ac_tool_warned=yes ;;
3287esac
3288    CC=$ac_ct_CC
3289  fi
3290else
3291  CC="$ac_cv_prog_CC"
3292fi
3293
3294if test -z "$CC"; then
3295          if test -n "$ac_tool_prefix"; then
3296    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3297set dummy ${ac_tool_prefix}cc; ac_word=$2
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299$as_echo_n "checking for $ac_word... " >&6; }
3300if ${ac_cv_prog_CC+:} false; then :
3301  $as_echo_n "(cached) " >&6
3302else
3303  if test -n "$CC"; then
3304  ac_cv_prog_CC="$CC" # Let the user override the test.
3305else
3306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307for as_dir in $PATH
3308do
3309  IFS=$as_save_IFS
3310  test -z "$as_dir" && as_dir=.
3311    for ac_exec_ext in '' $ac_executable_extensions; do
3312  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313    ac_cv_prog_CC="${ac_tool_prefix}cc"
3314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3315    break 2
3316  fi
3317done
3318  done
3319IFS=$as_save_IFS
3320
3321fi
3322fi
3323CC=$ac_cv_prog_CC
3324if test -n "$CC"; then
3325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3326$as_echo "$CC" >&6; }
3327else
3328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329$as_echo "no" >&6; }
3330fi
3331
3332
3333  fi
3334fi
3335if test -z "$CC"; then
3336  # Extract the first word of "cc", so it can be a program name with args.
3337set dummy cc; ac_word=$2
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339$as_echo_n "checking for $ac_word... " >&6; }
3340if ${ac_cv_prog_CC+:} false; then :
3341  $as_echo_n "(cached) " >&6
3342else
3343  if test -n "$CC"; then
3344  ac_cv_prog_CC="$CC" # Let the user override the test.
3345else
3346  ac_prog_rejected=no
3347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348for as_dir in $PATH
3349do
3350  IFS=$as_save_IFS
3351  test -z "$as_dir" && as_dir=.
3352    for ac_exec_ext in '' $ac_executable_extensions; do
3353  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3355       ac_prog_rejected=yes
3356       continue
3357     fi
3358    ac_cv_prog_CC="cc"
3359    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3360    break 2
3361  fi
3362done
3363  done
3364IFS=$as_save_IFS
3365
3366if test $ac_prog_rejected = yes; then
3367  # We found a bogon in the path, so make sure we never use it.
3368  set dummy $ac_cv_prog_CC
3369  shift
3370  if test $# != 0; then
3371    # We chose a different compiler from the bogus one.
3372    # However, it has the same basename, so the bogon will be chosen
3373    # first if we set CC to just the basename; use the full file name.
3374    shift
3375    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3376  fi
3377fi
3378fi
3379fi
3380CC=$ac_cv_prog_CC
3381if test -n "$CC"; then
3382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3383$as_echo "$CC" >&6; }
3384else
3385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386$as_echo "no" >&6; }
3387fi
3388
3389
3390fi
3391if test -z "$CC"; then
3392  if test -n "$ac_tool_prefix"; then
3393  for ac_prog in cl.exe
3394  do
3395    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3396set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398$as_echo_n "checking for $ac_word... " >&6; }
3399if ${ac_cv_prog_CC+:} false; then :
3400  $as_echo_n "(cached) " >&6
3401else
3402  if test -n "$CC"; then
3403  ac_cv_prog_CC="$CC" # Let the user override the test.
3404else
3405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406for as_dir in $PATH
3407do
3408  IFS=$as_save_IFS
3409  test -z "$as_dir" && as_dir=.
3410    for ac_exec_ext in '' $ac_executable_extensions; do
3411  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3412    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3413    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3414    break 2
3415  fi
3416done
3417  done
3418IFS=$as_save_IFS
3419
3420fi
3421fi
3422CC=$ac_cv_prog_CC
3423if test -n "$CC"; then
3424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3425$as_echo "$CC" >&6; }
3426else
3427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428$as_echo "no" >&6; }
3429fi
3430
3431
3432    test -n "$CC" && break
3433  done
3434fi
3435if test -z "$CC"; then
3436  ac_ct_CC=$CC
3437  for ac_prog in cl.exe
3438do
3439  # Extract the first word of "$ac_prog", so it can be a program name with args.
3440set dummy $ac_prog; ac_word=$2
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3442$as_echo_n "checking for $ac_word... " >&6; }
3443if ${ac_cv_prog_ac_ct_CC+:} false; then :
3444  $as_echo_n "(cached) " >&6
3445else
3446  if test -n "$ac_ct_CC"; then
3447  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3448else
3449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450for as_dir in $PATH
3451do
3452  IFS=$as_save_IFS
3453  test -z "$as_dir" && as_dir=.
3454    for ac_exec_ext in '' $ac_executable_extensions; do
3455  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3456    ac_cv_prog_ac_ct_CC="$ac_prog"
3457    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3458    break 2
3459  fi
3460done
3461  done
3462IFS=$as_save_IFS
3463
3464fi
3465fi
3466ac_ct_CC=$ac_cv_prog_ac_ct_CC
3467if test -n "$ac_ct_CC"; then
3468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3469$as_echo "$ac_ct_CC" >&6; }
3470else
3471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472$as_echo "no" >&6; }
3473fi
3474
3475
3476  test -n "$ac_ct_CC" && break
3477done
3478
3479  if test "x$ac_ct_CC" = x; then
3480    CC=""
3481  else
3482    case $cross_compiling:$ac_tool_warned in
3483yes:)
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3486ac_tool_warned=yes ;;
3487esac
3488    CC=$ac_ct_CC
3489  fi
3490fi
3491
3492fi
3493
3494
3495test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3497as_fn_error $? "no acceptable C compiler found in \$PATH
3498See \`config.log' for more details" "$LINENO" 5; }
3499
3500# Provide some information about the compiler.
3501$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3502set X $ac_compile
3503ac_compiler=$2
3504for ac_option in --version -v -V -qversion; do
3505  { { ac_try="$ac_compiler $ac_option >&5"
3506case "(($ac_try" in
3507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508  *) ac_try_echo=$ac_try;;
3509esac
3510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511$as_echo "$ac_try_echo"; } >&5
3512  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3513  ac_status=$?
3514  if test -s conftest.err; then
3515    sed '10a\
3516... rest of stderr output deleted ...
3517         10q' conftest.err >conftest.er1
3518    cat conftest.er1 >&5
3519  fi
3520  rm -f conftest.er1 conftest.err
3521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522  test $ac_status = 0; }
3523done
3524
3525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526/* end confdefs.h.  */
3527
3528int
3529main ()
3530{
3531
3532  ;
3533  return 0;
3534}
3535_ACEOF
3536ac_clean_files_save=$ac_clean_files
3537ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3538# Try to create an executable without -o first, disregard a.out.
3539# It will help us diagnose broken compilers, and finding out an intuition
3540# of exeext.
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3542$as_echo_n "checking whether the C compiler works... " >&6; }
3543ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3544
3545# The possible output files:
3546ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3547
3548ac_rmfiles=
3549for ac_file in $ac_files
3550do
3551  case $ac_file in
3552    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3553    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3554  esac
3555done
3556rm -f $ac_rmfiles
3557
3558if { { ac_try="$ac_link_default"
3559case "(($ac_try" in
3560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561  *) ac_try_echo=$ac_try;;
3562esac
3563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564$as_echo "$ac_try_echo"; } >&5
3565  (eval "$ac_link_default") 2>&5
3566  ac_status=$?
3567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568  test $ac_status = 0; }; then :
3569  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3570# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3571# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3572# so that the user can short-circuit this test for compilers unknown to
3573# Autoconf.
3574for ac_file in $ac_files ''
3575do
3576  test -f "$ac_file" || continue
3577  case $ac_file in
3578    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3579	;;
3580    [ab].out )
3581	# We found the default executable, but exeext='' is most
3582	# certainly right.
3583	break;;
3584    *.* )
3585	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3586	then :; else
3587	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3588	fi
3589	# We set ac_cv_exeext here because the later test for it is not
3590	# safe: cross compilers may not add the suffix if given an `-o'
3591	# argument, so we may need to know it at that point already.
3592	# Even if this section looks crufty: it has the advantage of
3593	# actually working.
3594	break;;
3595    * )
3596	break;;
3597  esac
3598done
3599test "$ac_cv_exeext" = no && ac_cv_exeext=
3600
3601else
3602  ac_file=''
3603fi
3604if test -z "$ac_file"; then :
3605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606$as_echo "no" >&6; }
3607$as_echo "$as_me: failed program was:" >&5
3608sed 's/^/| /' conftest.$ac_ext >&5
3609
3610{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612as_fn_error 77 "C compiler cannot create executables
3613See \`config.log' for more details" "$LINENO" 5; }
3614else
3615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3616$as_echo "yes" >&6; }
3617fi
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3619$as_echo_n "checking for C compiler default output file name... " >&6; }
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3621$as_echo "$ac_file" >&6; }
3622ac_exeext=$ac_cv_exeext
3623
3624rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3625ac_clean_files=$ac_clean_files_save
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3627$as_echo_n "checking for suffix of executables... " >&6; }
3628if { { ac_try="$ac_link"
3629case "(($ac_try" in
3630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631  *) ac_try_echo=$ac_try;;
3632esac
3633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3634$as_echo "$ac_try_echo"; } >&5
3635  (eval "$ac_link") 2>&5
3636  ac_status=$?
3637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3638  test $ac_status = 0; }; then :
3639  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3640# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3641# work properly (i.e., refer to `conftest.exe'), while it won't with
3642# `rm'.
3643for ac_file in conftest.exe conftest conftest.*; do
3644  test -f "$ac_file" || continue
3645  case $ac_file in
3646    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3647    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3648	  break;;
3649    * ) break;;
3650  esac
3651done
3652else
3653  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3655as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3656See \`config.log' for more details" "$LINENO" 5; }
3657fi
3658rm -f conftest conftest$ac_cv_exeext
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3660$as_echo "$ac_cv_exeext" >&6; }
3661
3662rm -f conftest.$ac_ext
3663EXEEXT=$ac_cv_exeext
3664ac_exeext=$EXEEXT
3665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666/* end confdefs.h.  */
3667#include <stdio.h>
3668int
3669main ()
3670{
3671FILE *f = fopen ("conftest.out", "w");
3672 return ferror (f) || fclose (f) != 0;
3673
3674  ;
3675  return 0;
3676}
3677_ACEOF
3678ac_clean_files="$ac_clean_files conftest.out"
3679# Check that the compiler produces executables we can run.  If not, either
3680# the compiler is broken, or we cross compile.
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3682$as_echo_n "checking whether we are cross compiling... " >&6; }
3683if test "$cross_compiling" != yes; then
3684  { { ac_try="$ac_link"
3685case "(($ac_try" in
3686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687  *) ac_try_echo=$ac_try;;
3688esac
3689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690$as_echo "$ac_try_echo"; } >&5
3691  (eval "$ac_link") 2>&5
3692  ac_status=$?
3693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694  test $ac_status = 0; }
3695  if { ac_try='./conftest$ac_cv_exeext'
3696  { { case "(($ac_try" in
3697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698  *) ac_try_echo=$ac_try;;
3699esac
3700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3701$as_echo "$ac_try_echo"; } >&5
3702  (eval "$ac_try") 2>&5
3703  ac_status=$?
3704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3705  test $ac_status = 0; }; }; then
3706    cross_compiling=no
3707  else
3708    if test "$cross_compiling" = maybe; then
3709	cross_compiling=yes
3710    else
3711	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3713as_fn_error $? "cannot run C compiled programs.
3714If you meant to cross compile, use \`--host'.
3715See \`config.log' for more details" "$LINENO" 5; }
3716    fi
3717  fi
3718fi
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3720$as_echo "$cross_compiling" >&6; }
3721
3722rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3723ac_clean_files=$ac_clean_files_save
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3725$as_echo_n "checking for suffix of object files... " >&6; }
3726if ${ac_cv_objext+:} false; then :
3727  $as_echo_n "(cached) " >&6
3728else
3729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730/* end confdefs.h.  */
3731
3732int
3733main ()
3734{
3735
3736  ;
3737  return 0;
3738}
3739_ACEOF
3740rm -f conftest.o conftest.obj
3741if { { ac_try="$ac_compile"
3742case "(($ac_try" in
3743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744  *) ac_try_echo=$ac_try;;
3745esac
3746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3747$as_echo "$ac_try_echo"; } >&5
3748  (eval "$ac_compile") 2>&5
3749  ac_status=$?
3750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3751  test $ac_status = 0; }; then :
3752  for ac_file in conftest.o conftest.obj conftest.*; do
3753  test -f "$ac_file" || continue;
3754  case $ac_file in
3755    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3756    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3757       break;;
3758  esac
3759done
3760else
3761  $as_echo "$as_me: failed program was:" >&5
3762sed 's/^/| /' conftest.$ac_ext >&5
3763
3764{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3766as_fn_error $? "cannot compute suffix of object files: cannot compile
3767See \`config.log' for more details" "$LINENO" 5; }
3768fi
3769rm -f conftest.$ac_cv_objext conftest.$ac_ext
3770fi
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3772$as_echo "$ac_cv_objext" >&6; }
3773OBJEXT=$ac_cv_objext
3774ac_objext=$OBJEXT
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3776$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3777if ${ac_cv_c_compiler_gnu+:} false; then :
3778  $as_echo_n "(cached) " >&6
3779else
3780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781/* end confdefs.h.  */
3782
3783int
3784main ()
3785{
3786#ifndef __GNUC__
3787       choke me
3788#endif
3789
3790  ;
3791  return 0;
3792}
3793_ACEOF
3794if ac_fn_c_try_compile "$LINENO"; then :
3795  ac_compiler_gnu=yes
3796else
3797  ac_compiler_gnu=no
3798fi
3799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3800ac_cv_c_compiler_gnu=$ac_compiler_gnu
3801
3802fi
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3804$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3805if test $ac_compiler_gnu = yes; then
3806  GCC=yes
3807else
3808  GCC=
3809fi
3810ac_test_CFLAGS=${CFLAGS+set}
3811ac_save_CFLAGS=$CFLAGS
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3813$as_echo_n "checking whether $CC accepts -g... " >&6; }
3814if ${ac_cv_prog_cc_g+:} false; then :
3815  $as_echo_n "(cached) " >&6
3816else
3817  ac_save_c_werror_flag=$ac_c_werror_flag
3818   ac_c_werror_flag=yes
3819   ac_cv_prog_cc_g=no
3820   CFLAGS="-g"
3821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822/* end confdefs.h.  */
3823
3824int
3825main ()
3826{
3827
3828  ;
3829  return 0;
3830}
3831_ACEOF
3832if ac_fn_c_try_compile "$LINENO"; then :
3833  ac_cv_prog_cc_g=yes
3834else
3835  CFLAGS=""
3836      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837/* end confdefs.h.  */
3838
3839int
3840main ()
3841{
3842
3843  ;
3844  return 0;
3845}
3846_ACEOF
3847if ac_fn_c_try_compile "$LINENO"; then :
3848
3849else
3850  ac_c_werror_flag=$ac_save_c_werror_flag
3851	 CFLAGS="-g"
3852	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853/* end confdefs.h.  */
3854
3855int
3856main ()
3857{
3858
3859  ;
3860  return 0;
3861}
3862_ACEOF
3863if ac_fn_c_try_compile "$LINENO"; then :
3864  ac_cv_prog_cc_g=yes
3865fi
3866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3867fi
3868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869fi
3870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871   ac_c_werror_flag=$ac_save_c_werror_flag
3872fi
3873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3874$as_echo "$ac_cv_prog_cc_g" >&6; }
3875if test "$ac_test_CFLAGS" = set; then
3876  CFLAGS=$ac_save_CFLAGS
3877elif test $ac_cv_prog_cc_g = yes; then
3878  if test "$GCC" = yes; then
3879    CFLAGS="-g -O2"
3880  else
3881    CFLAGS="-g"
3882  fi
3883else
3884  if test "$GCC" = yes; then
3885    CFLAGS="-O2"
3886  else
3887    CFLAGS=
3888  fi
3889fi
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3891$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3892if ${ac_cv_prog_cc_c89+:} false; then :
3893  $as_echo_n "(cached) " >&6
3894else
3895  ac_cv_prog_cc_c89=no
3896ac_save_CC=$CC
3897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898/* end confdefs.h.  */
3899#include <stdarg.h>
3900#include <stdio.h>
3901struct stat;
3902/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3903struct buf { int x; };
3904FILE * (*rcsopen) (struct buf *, struct stat *, int);
3905static char *e (p, i)
3906     char **p;
3907     int i;
3908{
3909  return p[i];
3910}
3911static char *f (char * (*g) (char **, int), char **p, ...)
3912{
3913  char *s;
3914  va_list v;
3915  va_start (v,p);
3916  s = g (p, va_arg (v,int));
3917  va_end (v);
3918  return s;
3919}
3920
3921/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3922   function prototypes and stuff, but not '\xHH' hex character constants.
3923   These don't provoke an error unfortunately, instead are silently treated
3924   as 'x'.  The following induces an error, until -std is added to get
3925   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3926   array size at least.  It's necessary to write '\x00'==0 to get something
3927   that's true only with -std.  */
3928int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3929
3930/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3931   inside strings and character constants.  */
3932#define FOO(x) 'x'
3933int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3934
3935int test (int i, double x);
3936struct s1 {int (*f) (int a);};
3937struct s2 {int (*f) (double a);};
3938int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3939int argc;
3940char **argv;
3941int
3942main ()
3943{
3944return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3945  ;
3946  return 0;
3947}
3948_ACEOF
3949for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3950	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3951do
3952  CC="$ac_save_CC $ac_arg"
3953  if ac_fn_c_try_compile "$LINENO"; then :
3954  ac_cv_prog_cc_c89=$ac_arg
3955fi
3956rm -f core conftest.err conftest.$ac_objext
3957  test "x$ac_cv_prog_cc_c89" != "xno" && break
3958done
3959rm -f conftest.$ac_ext
3960CC=$ac_save_CC
3961
3962fi
3963# AC_CACHE_VAL
3964case "x$ac_cv_prog_cc_c89" in
3965  x)
3966    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3967$as_echo "none needed" >&6; } ;;
3968  xno)
3969    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3970$as_echo "unsupported" >&6; } ;;
3971  *)
3972    CC="$CC $ac_cv_prog_cc_c89"
3973    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3974$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3975esac
3976if test "x$ac_cv_prog_cc_c89" != xno; then :
3977
3978fi
3979
3980ac_ext=c
3981ac_cpp='$CPP $CPPFLAGS'
3982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3984ac_compiler_gnu=$ac_cv_c_compiler_gnu
3985
3986ac_ext=c
3987ac_cpp='$CPP $CPPFLAGS'
3988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3990ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3992$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3993if ${am_cv_prog_cc_c_o+:} false; then :
3994  $as_echo_n "(cached) " >&6
3995else
3996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997/* end confdefs.h.  */
3998
3999int
4000main ()
4001{
4002
4003  ;
4004  return 0;
4005}
4006_ACEOF
4007  # Make sure it works both with $CC and with simple cc.
4008  # Following AC_PROG_CC_C_O, we do the test twice because some
4009  # compilers refuse to overwrite an existing .o file with -o,
4010  # though they will create one.
4011  am_cv_prog_cc_c_o=yes
4012  for am_i in 1 2; do
4013    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4014   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4015   ac_status=$?
4016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017   (exit $ac_status); } \
4018         && test -f conftest2.$ac_objext; then
4019      : OK
4020    else
4021      am_cv_prog_cc_c_o=no
4022      break
4023    fi
4024  done
4025  rm -f core conftest*
4026  unset am_i
4027fi
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4029$as_echo "$am_cv_prog_cc_c_o" >&6; }
4030if test "$am_cv_prog_cc_c_o" != yes; then
4031   # Losing compiler, so override with the script.
4032   # FIXME: It is wrong to rewrite CC.
4033   # But if we don't then we get into trouble of one sort or another.
4034   # A longer-term fix would be to have automake use am__CC in this case,
4035   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4036   CC="$am_aux_dir/compile $CC"
4037fi
4038ac_ext=c
4039ac_cpp='$CPP $CPPFLAGS'
4040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043
4044DEPDIR="${am__leading_dot}deps"
4045
4046ac_config_commands="$ac_config_commands depfiles"
4047
4048
4049am_make=${MAKE-make}
4050cat > confinc << 'END'
4051am__doit:
4052	@echo this is the am__doit target
4053.PHONY: am__doit
4054END
4055# If we don't find an include directive, just comment out the code.
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4057$as_echo_n "checking for style of include used by $am_make... " >&6; }
4058am__include="#"
4059am__quote=
4060_am_result=none
4061# First try GNU make style include.
4062echo "include confinc" > confmf
4063# Ignore all kinds of additional output from 'make'.
4064case `$am_make -s -f confmf 2> /dev/null` in #(
4065*the\ am__doit\ target*)
4066  am__include=include
4067  am__quote=
4068  _am_result=GNU
4069  ;;
4070esac
4071# Now try BSD make style include.
4072if test "$am__include" = "#"; then
4073   echo '.include "confinc"' > confmf
4074   case `$am_make -s -f confmf 2> /dev/null` in #(
4075   *the\ am__doit\ target*)
4076     am__include=.include
4077     am__quote="\""
4078     _am_result=BSD
4079     ;;
4080   esac
4081fi
4082
4083
4084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4085$as_echo "$_am_result" >&6; }
4086rm -f confinc confmf
4087
4088# Check whether --enable-dependency-tracking was given.
4089if test "${enable_dependency_tracking+set}" = set; then :
4090  enableval=$enable_dependency_tracking;
4091fi
4092
4093if test "x$enable_dependency_tracking" != xno; then
4094  am_depcomp="$ac_aux_dir/depcomp"
4095  AMDEPBACKSLASH='\'
4096  am__nodep='_no'
4097fi
4098 if test "x$enable_dependency_tracking" != xno; then
4099  AMDEP_TRUE=
4100  AMDEP_FALSE='#'
4101else
4102  AMDEP_TRUE='#'
4103  AMDEP_FALSE=
4104fi
4105
4106
4107
4108depcc="$CC"   am_compiler_list=
4109
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4111$as_echo_n "checking dependency style of $depcc... " >&6; }
4112if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4113  $as_echo_n "(cached) " >&6
4114else
4115  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4116  # We make a subdir and do the tests there.  Otherwise we can end up
4117  # making bogus files that we don't know about and never remove.  For
4118  # instance it was reported that on HP-UX the gcc test will end up
4119  # making a dummy file named 'D' -- because '-MD' means "put the output
4120  # in D".
4121  rm -rf conftest.dir
4122  mkdir conftest.dir
4123  # Copy depcomp to subdir because otherwise we won't find it if we're
4124  # using a relative directory.
4125  cp "$am_depcomp" conftest.dir
4126  cd conftest.dir
4127  # We will build objects and dependencies in a subdirectory because
4128  # it helps to detect inapplicable dependency modes.  For instance
4129  # both Tru64's cc and ICC support -MD to output dependencies as a
4130  # side effect of compilation, but ICC will put the dependencies in
4131  # the current directory while Tru64 will put them in the object
4132  # directory.
4133  mkdir sub
4134
4135  am_cv_CC_dependencies_compiler_type=none
4136  if test "$am_compiler_list" = ""; then
4137     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4138  fi
4139  am__universal=false
4140  case " $depcc " in #(
4141     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4142     esac
4143
4144  for depmode in $am_compiler_list; do
4145    # Setup a source with many dependencies, because some compilers
4146    # like to wrap large dependency lists on column 80 (with \), and
4147    # we should not choose a depcomp mode which is confused by this.
4148    #
4149    # We need to recreate these files for each test, as the compiler may
4150    # overwrite some of them when testing with obscure command lines.
4151    # This happens at least with the AIX C compiler.
4152    : > sub/conftest.c
4153    for i in 1 2 3 4 5 6; do
4154      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4155      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4156      # Solaris 10 /bin/sh.
4157      echo '/* dummy */' > sub/conftst$i.h
4158    done
4159    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4160
4161    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4162    # mode.  It turns out that the SunPro C++ compiler does not properly
4163    # handle '-M -o', and we need to detect this.  Also, some Intel
4164    # versions had trouble with output in subdirs.
4165    am__obj=sub/conftest.${OBJEXT-o}
4166    am__minus_obj="-o $am__obj"
4167    case $depmode in
4168    gcc)
4169      # This depmode causes a compiler race in universal mode.
4170      test "$am__universal" = false || continue
4171      ;;
4172    nosideeffect)
4173      # After this tag, mechanisms are not by side-effect, so they'll
4174      # only be used when explicitly requested.
4175      if test "x$enable_dependency_tracking" = xyes; then
4176	continue
4177      else
4178	break
4179      fi
4180      ;;
4181    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4182      # This compiler won't grok '-c -o', but also, the minuso test has
4183      # not run yet.  These depmodes are late enough in the game, and
4184      # so weak that their functioning should not be impacted.
4185      am__obj=conftest.${OBJEXT-o}
4186      am__minus_obj=
4187      ;;
4188    none) break ;;
4189    esac
4190    if depmode=$depmode \
4191       source=sub/conftest.c object=$am__obj \
4192       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4193       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4194         >/dev/null 2>conftest.err &&
4195       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4196       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4197       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4198       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4199      # icc doesn't choke on unknown options, it will just issue warnings
4200      # or remarks (even with -Werror).  So we grep stderr for any message
4201      # that says an option was ignored or not supported.
4202      # When given -MP, icc 7.0 and 7.1 complain thusly:
4203      #   icc: Command line warning: ignoring option '-M'; no argument required
4204      # The diagnosis changed in icc 8.0:
4205      #   icc: Command line remark: option '-MP' not supported
4206      if (grep 'ignoring option' conftest.err ||
4207          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4208        am_cv_CC_dependencies_compiler_type=$depmode
4209        break
4210      fi
4211    fi
4212  done
4213
4214  cd ..
4215  rm -rf conftest.dir
4216else
4217  am_cv_CC_dependencies_compiler_type=none
4218fi
4219
4220fi
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4222$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4223CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4224
4225 if
4226  test "x$enable_dependency_tracking" != xno \
4227  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4228  am__fastdepCC_TRUE=
4229  am__fastdepCC_FALSE='#'
4230else
4231  am__fastdepCC_TRUE='#'
4232  am__fastdepCC_FALSE=
4233fi
4234
4235
4236
4237
4238ac_ext=c
4239ac_cpp='$CPP $CPPFLAGS'
4240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4244$as_echo_n "checking how to run the C preprocessor... " >&6; }
4245# On Suns, sometimes $CPP names a directory.
4246if test -n "$CPP" && test -d "$CPP"; then
4247  CPP=
4248fi
4249if test -z "$CPP"; then
4250  if ${ac_cv_prog_CPP+:} false; then :
4251  $as_echo_n "(cached) " >&6
4252else
4253      # Double quotes because CPP needs to be expanded
4254    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4255    do
4256      ac_preproc_ok=false
4257for ac_c_preproc_warn_flag in '' yes
4258do
4259  # Use a header file that comes with gcc, so configuring glibc
4260  # with a fresh cross-compiler works.
4261  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4262  # <limits.h> exists even on freestanding compilers.
4263  # On the NeXT, cc -E runs the code through the compiler's parser,
4264  # not just through cpp. "Syntax error" is here to catch this case.
4265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266/* end confdefs.h.  */
4267#ifdef __STDC__
4268# include <limits.h>
4269#else
4270# include <assert.h>
4271#endif
4272		     Syntax error
4273_ACEOF
4274if ac_fn_c_try_cpp "$LINENO"; then :
4275
4276else
4277  # Broken: fails on valid input.
4278continue
4279fi
4280rm -f conftest.err conftest.i conftest.$ac_ext
4281
4282  # OK, works on sane cases.  Now check whether nonexistent headers
4283  # can be detected and how.
4284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285/* end confdefs.h.  */
4286#include <ac_nonexistent.h>
4287_ACEOF
4288if ac_fn_c_try_cpp "$LINENO"; then :
4289  # Broken: success on invalid input.
4290continue
4291else
4292  # Passes both tests.
4293ac_preproc_ok=:
4294break
4295fi
4296rm -f conftest.err conftest.i conftest.$ac_ext
4297
4298done
4299# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4300rm -f conftest.i conftest.err conftest.$ac_ext
4301if $ac_preproc_ok; then :
4302  break
4303fi
4304
4305    done
4306    ac_cv_prog_CPP=$CPP
4307
4308fi
4309  CPP=$ac_cv_prog_CPP
4310else
4311  ac_cv_prog_CPP=$CPP
4312fi
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4314$as_echo "$CPP" >&6; }
4315ac_preproc_ok=false
4316for ac_c_preproc_warn_flag in '' yes
4317do
4318  # Use a header file that comes with gcc, so configuring glibc
4319  # with a fresh cross-compiler works.
4320  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4321  # <limits.h> exists even on freestanding compilers.
4322  # On the NeXT, cc -E runs the code through the compiler's parser,
4323  # not just through cpp. "Syntax error" is here to catch this case.
4324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325/* end confdefs.h.  */
4326#ifdef __STDC__
4327# include <limits.h>
4328#else
4329# include <assert.h>
4330#endif
4331		     Syntax error
4332_ACEOF
4333if ac_fn_c_try_cpp "$LINENO"; then :
4334
4335else
4336  # Broken: fails on valid input.
4337continue
4338fi
4339rm -f conftest.err conftest.i conftest.$ac_ext
4340
4341  # OK, works on sane cases.  Now check whether nonexistent headers
4342  # can be detected and how.
4343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344/* end confdefs.h.  */
4345#include <ac_nonexistent.h>
4346_ACEOF
4347if ac_fn_c_try_cpp "$LINENO"; then :
4348  # Broken: success on invalid input.
4349continue
4350else
4351  # Passes both tests.
4352ac_preproc_ok=:
4353break
4354fi
4355rm -f conftest.err conftest.i conftest.$ac_ext
4356
4357done
4358# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4359rm -f conftest.i conftest.err conftest.$ac_ext
4360if $ac_preproc_ok; then :
4361
4362else
4363  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4365as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4366See \`config.log' for more details" "$LINENO" 5; }
4367fi
4368
4369ac_ext=c
4370ac_cpp='$CPP $CPPFLAGS'
4371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373ac_compiler_gnu=$ac_cv_c_compiler_gnu
4374
4375
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4377$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4378if ${ac_cv_path_GREP+:} false; then :
4379  $as_echo_n "(cached) " >&6
4380else
4381  if test -z "$GREP"; then
4382  ac_path_GREP_found=false
4383  # Loop through the user's path and test for each of PROGNAME-LIST
4384  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4386do
4387  IFS=$as_save_IFS
4388  test -z "$as_dir" && as_dir=.
4389    for ac_prog in grep ggrep; do
4390    for ac_exec_ext in '' $ac_executable_extensions; do
4391      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4392      as_fn_executable_p "$ac_path_GREP" || continue
4393# Check for GNU ac_path_GREP and select it if it is found.
4394  # Check for GNU $ac_path_GREP
4395case `"$ac_path_GREP" --version 2>&1` in
4396*GNU*)
4397  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4398*)
4399  ac_count=0
4400  $as_echo_n 0123456789 >"conftest.in"
4401  while :
4402  do
4403    cat "conftest.in" "conftest.in" >"conftest.tmp"
4404    mv "conftest.tmp" "conftest.in"
4405    cp "conftest.in" "conftest.nl"
4406    $as_echo 'GREP' >> "conftest.nl"
4407    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4408    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4409    as_fn_arith $ac_count + 1 && ac_count=$as_val
4410    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4411      # Best one so far, save it but keep looking for a better one
4412      ac_cv_path_GREP="$ac_path_GREP"
4413      ac_path_GREP_max=$ac_count
4414    fi
4415    # 10*(2^10) chars as input seems more than enough
4416    test $ac_count -gt 10 && break
4417  done
4418  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4419esac
4420
4421      $ac_path_GREP_found && break 3
4422    done
4423  done
4424  done
4425IFS=$as_save_IFS
4426  if test -z "$ac_cv_path_GREP"; then
4427    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4428  fi
4429else
4430  ac_cv_path_GREP=$GREP
4431fi
4432
4433fi
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4435$as_echo "$ac_cv_path_GREP" >&6; }
4436 GREP="$ac_cv_path_GREP"
4437
4438
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4440$as_echo_n "checking for egrep... " >&6; }
4441if ${ac_cv_path_EGREP+:} false; then :
4442  $as_echo_n "(cached) " >&6
4443else
4444  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4445   then ac_cv_path_EGREP="$GREP -E"
4446   else
4447     if test -z "$EGREP"; then
4448  ac_path_EGREP_found=false
4449  # Loop through the user's path and test for each of PROGNAME-LIST
4450  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4452do
4453  IFS=$as_save_IFS
4454  test -z "$as_dir" && as_dir=.
4455    for ac_prog in egrep; do
4456    for ac_exec_ext in '' $ac_executable_extensions; do
4457      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4458      as_fn_executable_p "$ac_path_EGREP" || continue
4459# Check for GNU ac_path_EGREP and select it if it is found.
4460  # Check for GNU $ac_path_EGREP
4461case `"$ac_path_EGREP" --version 2>&1` in
4462*GNU*)
4463  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4464*)
4465  ac_count=0
4466  $as_echo_n 0123456789 >"conftest.in"
4467  while :
4468  do
4469    cat "conftest.in" "conftest.in" >"conftest.tmp"
4470    mv "conftest.tmp" "conftest.in"
4471    cp "conftest.in" "conftest.nl"
4472    $as_echo 'EGREP' >> "conftest.nl"
4473    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4474    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4475    as_fn_arith $ac_count + 1 && ac_count=$as_val
4476    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4477      # Best one so far, save it but keep looking for a better one
4478      ac_cv_path_EGREP="$ac_path_EGREP"
4479      ac_path_EGREP_max=$ac_count
4480    fi
4481    # 10*(2^10) chars as input seems more than enough
4482    test $ac_count -gt 10 && break
4483  done
4484  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4485esac
4486
4487      $ac_path_EGREP_found && break 3
4488    done
4489  done
4490  done
4491IFS=$as_save_IFS
4492  if test -z "$ac_cv_path_EGREP"; then
4493    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4494  fi
4495else
4496  ac_cv_path_EGREP=$EGREP
4497fi
4498
4499   fi
4500fi
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4502$as_echo "$ac_cv_path_EGREP" >&6; }
4503 EGREP="$ac_cv_path_EGREP"
4504
4505
4506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4507$as_echo_n "checking for ANSI C header files... " >&6; }
4508if ${ac_cv_header_stdc+:} false; then :
4509  $as_echo_n "(cached) " >&6
4510else
4511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512/* end confdefs.h.  */
4513#include <stdlib.h>
4514#include <stdarg.h>
4515#include <string.h>
4516#include <float.h>
4517
4518int
4519main ()
4520{
4521
4522  ;
4523  return 0;
4524}
4525_ACEOF
4526if ac_fn_c_try_compile "$LINENO"; then :
4527  ac_cv_header_stdc=yes
4528else
4529  ac_cv_header_stdc=no
4530fi
4531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4532
4533if test $ac_cv_header_stdc = yes; then
4534  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536/* end confdefs.h.  */
4537#include <string.h>
4538
4539_ACEOF
4540if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4541  $EGREP "memchr" >/dev/null 2>&1; then :
4542
4543else
4544  ac_cv_header_stdc=no
4545fi
4546rm -f conftest*
4547
4548fi
4549
4550if test $ac_cv_header_stdc = yes; then
4551  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553/* end confdefs.h.  */
4554#include <stdlib.h>
4555
4556_ACEOF
4557if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4558  $EGREP "free" >/dev/null 2>&1; then :
4559
4560else
4561  ac_cv_header_stdc=no
4562fi
4563rm -f conftest*
4564
4565fi
4566
4567if test $ac_cv_header_stdc = yes; then
4568  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4569  if test "$cross_compiling" = yes; then :
4570  :
4571else
4572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573/* end confdefs.h.  */
4574#include <ctype.h>
4575#include <stdlib.h>
4576#if ((' ' & 0x0FF) == 0x020)
4577# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4578# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4579#else
4580# define ISLOWER(c) \
4581		   (('a' <= (c) && (c) <= 'i') \
4582		     || ('j' <= (c) && (c) <= 'r') \
4583		     || ('s' <= (c) && (c) <= 'z'))
4584# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4585#endif
4586
4587#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4588int
4589main ()
4590{
4591  int i;
4592  for (i = 0; i < 256; i++)
4593    if (XOR (islower (i), ISLOWER (i))
4594	|| toupper (i) != TOUPPER (i))
4595      return 2;
4596  return 0;
4597}
4598_ACEOF
4599if ac_fn_c_try_run "$LINENO"; then :
4600
4601else
4602  ac_cv_header_stdc=no
4603fi
4604rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4605  conftest.$ac_objext conftest.beam conftest.$ac_ext
4606fi
4607
4608fi
4609fi
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4611$as_echo "$ac_cv_header_stdc" >&6; }
4612if test $ac_cv_header_stdc = yes; then
4613
4614$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4615
4616fi
4617
4618
4619# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4620for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4621		  inttypes.h stdint.h unistd.h
4622do :
4623  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4624ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4625"
4626if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4627  cat >>confdefs.h <<_ACEOF
4628#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4629_ACEOF
4630
4631fi
4632
4633done
4634
4635
4636# The cast to long int works around a bug in the HP C Compiler
4637# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4638# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4639# This bug is HP SR number 8606223364.
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4641$as_echo_n "checking size of int... " >&6; }
4642if ${ac_cv_sizeof_int+:} false; then :
4643  $as_echo_n "(cached) " >&6
4644else
4645  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
4646
4647else
4648  if test "$ac_cv_type_int" = yes; then
4649     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4651as_fn_error 77 "cannot compute sizeof (int)
4652See \`config.log' for more details" "$LINENO" 5; }
4653   else
4654     ac_cv_sizeof_int=0
4655   fi
4656fi
4657
4658fi
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4660$as_echo "$ac_cv_sizeof_int" >&6; }
4661
4662
4663
4664cat >>confdefs.h <<_ACEOF
4665#define SIZEOF_INT $ac_cv_sizeof_int
4666_ACEOF
4667
4668
4669# The cast to long int works around a bug in the HP C Compiler
4670# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4671# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4672# This bug is HP SR number 8606223364.
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4674$as_echo_n "checking size of long... " >&6; }
4675if ${ac_cv_sizeof_long+:} false; then :
4676  $as_echo_n "(cached) " >&6
4677else
4678  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
4679
4680else
4681  if test "$ac_cv_type_long" = yes; then
4682     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4683$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4684as_fn_error 77 "cannot compute sizeof (long)
4685See \`config.log' for more details" "$LINENO" 5; }
4686   else
4687     ac_cv_sizeof_long=0
4688   fi
4689fi
4690
4691fi
4692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4693$as_echo "$ac_cv_sizeof_long" >&6; }
4694
4695
4696
4697cat >>confdefs.h <<_ACEOF
4698#define SIZEOF_LONG $ac_cv_sizeof_long
4699_ACEOF
4700
4701
4702# The cast to long int works around a bug in the HP C Compiler
4703# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4704# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4705# This bug is HP SR number 8606223364.
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
4707$as_echo_n "checking size of long long... " >&6; }
4708if ${ac_cv_sizeof_long_long+:} false; then :
4709  $as_echo_n "(cached) " >&6
4710else
4711  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
4712
4713else
4714  if test "$ac_cv_type_long_long" = yes; then
4715     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4717as_fn_error 77 "cannot compute sizeof (long long)
4718See \`config.log' for more details" "$LINENO" 5; }
4719   else
4720     ac_cv_sizeof_long_long=0
4721   fi
4722fi
4723
4724fi
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
4726$as_echo "$ac_cv_sizeof_long_long" >&6; }
4727
4728
4729
4730cat >>confdefs.h <<_ACEOF
4731#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4732_ACEOF
4733
4734
4735# The cast to long int works around a bug in the HP C Compiler
4736# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4737# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4738# This bug is HP SR number 8606223364.
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
4740$as_echo_n "checking size of short... " >&6; }
4741if ${ac_cv_sizeof_short+:} false; then :
4742  $as_echo_n "(cached) " >&6
4743else
4744  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
4745
4746else
4747  if test "$ac_cv_type_short" = yes; then
4748     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4750as_fn_error 77 "cannot compute sizeof (short)
4751See \`config.log' for more details" "$LINENO" 5; }
4752   else
4753     ac_cv_sizeof_short=0
4754   fi
4755fi
4756
4757fi
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
4759$as_echo "$ac_cv_sizeof_short" >&6; }
4760
4761
4762
4763cat >>confdefs.h <<_ACEOF
4764#define SIZEOF_SHORT $ac_cv_sizeof_short
4765_ACEOF
4766
4767
4768
4769CFLAGS="${CFLAGS=}"
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
4771$as_echo_n "checking whether to enable debugging... " >&6; }
4772debug_default="yes"
4773# Check whether --enable-debug was given.
4774if test "${enable_debug+set}" = set; then :
4775  enableval=$enable_debug;
4776else
4777  enable_debug=$debug_default
4778fi
4779
4780if test "x$enable_debug" = "xyes"; then
4781  CPPFLAGS="$CPPFLAGS -g -DDEBUG"
4782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4783$as_echo "yes" >&6; }
4784else
4785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786$as_echo "no" >&6; }
4787fi
4788
4789
4790# Check whether --with-postgresql was given.
4791if test "${with_postgresql+set}" = set; then :
4792  withval=$with_postgresql; postgresql_prefix="$withval"
4793else
4794  postgresql_prefix="/usr"
4795fi
4796
4797
4798# Check whether --with-afpfsng was given.
4799if test "${with_afpfsng+set}" = set; then :
4800  withval=$with_afpfsng; afpfsng_prefix="$withval"
4801else
4802  afpfsng_prefix="/usr"
4803fi
4804
4805
4806if test -d "/usr/local/lib"
4807  then LDFLAGS="$LDFLAGS -L/usr/local/lib"
4808fi
4809
4810CPPFLAGS="$CPPFLAGS -fPIC"
4811CPPFLAGS="$CPPFLAGS -I/usr/include -I/usr/local/include -I${postgresql_prefix}/include/postgresql -I${postgresql_prefix}/include/pgsql -I${afpfsng_prefix}/include/afpfs-ng"
4812
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread support..." >&5
4814$as_echo "$as_me: checking for pthread support..." >&6;}
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
4816$as_echo_n "checking for main in -lpthread... " >&6; }
4817if ${ac_cv_lib_pthread_main+:} false; then :
4818  $as_echo_n "(cached) " >&6
4819else
4820  ac_check_lib_save_LIBS=$LIBS
4821LIBS="-lpthread  $LIBS"
4822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823/* end confdefs.h.  */
4824
4825
4826int
4827main ()
4828{
4829return main ();
4830  ;
4831  return 0;
4832}
4833_ACEOF
4834if ac_fn_c_try_link "$LINENO"; then :
4835  ac_cv_lib_pthread_main=yes
4836else
4837  ac_cv_lib_pthread_main=no
4838fi
4839rm -f core conftest.err conftest.$ac_objext \
4840    conftest$ac_exeext conftest.$ac_ext
4841LIBS=$ac_check_lib_save_LIBS
4842fi
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
4844$as_echo "$ac_cv_lib_pthread_main" >&6; }
4845if test "x$ac_cv_lib_pthread_main" = xyes; then :
4846  cat >>confdefs.h <<_ACEOF
4847#define HAVE_LIBPTHREAD 1
4848_ACEOF
4849
4850  LIBS="-lpthread $LIBS"
4851
4852else
4853  as_fn_error $? " *** Application requires pthread support *** " "$LINENO" 5
4854fi
4855
4856
4857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen/dlclose..." >&5
4858$as_echo "$as_me: checking for dlopen/dlclose..." >&6;}
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlclose in -ldl" >&5
4860$as_echo_n "checking for dlclose in -ldl... " >&6; }
4861if ${ac_cv_lib_dl_dlclose+:} false; then :
4862  $as_echo_n "(cached) " >&6
4863else
4864  ac_check_lib_save_LIBS=$LIBS
4865LIBS="-ldl  $LIBS"
4866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867/* end confdefs.h.  */
4868
4869/* Override any GCC internal prototype to avoid an error.
4870   Use char because int might match the return type of a GCC
4871   builtin and then its argument prototype would still apply.  */
4872#ifdef __cplusplus
4873extern "C"
4874#endif
4875char dlclose ();
4876int
4877main ()
4878{
4879return dlclose ();
4880  ;
4881  return 0;
4882}
4883_ACEOF
4884if ac_fn_c_try_link "$LINENO"; then :
4885  ac_cv_lib_dl_dlclose=yes
4886else
4887  ac_cv_lib_dl_dlclose=no
4888fi
4889rm -f core conftest.err conftest.$ac_objext \
4890    conftest$ac_exeext conftest.$ac_ext
4891LIBS=$ac_check_lib_save_LIBS
4892fi
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlclose" >&5
4894$as_echo "$ac_cv_lib_dl_dlclose" >&6; }
4895if test "x$ac_cv_lib_dl_dlclose" = xyes; then :
4896  cat >>confdefs.h <<_ACEOF
4897#define HAVE_LIBDL 1
4898_ACEOF
4899
4900  LIBS="-ldl $LIBS"
4901
4902else
4903  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlclose in -lc" >&5
4904$as_echo_n "checking for dlclose in -lc... " >&6; }
4905if ${ac_cv_lib_c_dlclose+:} false; then :
4906  $as_echo_n "(cached) " >&6
4907else
4908  ac_check_lib_save_LIBS=$LIBS
4909LIBS="-lc  $LIBS"
4910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911/* end confdefs.h.  */
4912
4913/* Override any GCC internal prototype to avoid an error.
4914   Use char because int might match the return type of a GCC
4915   builtin and then its argument prototype would still apply.  */
4916#ifdef __cplusplus
4917extern "C"
4918#endif
4919char dlclose ();
4920int
4921main ()
4922{
4923return dlclose ();
4924  ;
4925  return 0;
4926}
4927_ACEOF
4928if ac_fn_c_try_link "$LINENO"; then :
4929  ac_cv_lib_c_dlclose=yes
4930else
4931  ac_cv_lib_c_dlclose=no
4932fi
4933rm -f core conftest.err conftest.$ac_objext \
4934    conftest$ac_exeext conftest.$ac_ext
4935LIBS=$ac_check_lib_save_LIBS
4936fi
4937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlclose" >&5
4938$as_echo "$ac_cv_lib_c_dlclose" >&6; }
4939if test "x$ac_cv_lib_c_dlclose" = xyes; then :
4940  cat >>confdefs.h <<_ACEOF
4941#define HAVE_LIBC 1
4942_ACEOF
4943
4944  LIBS="-lc $LIBS"
4945
4946else
4947  as_fn_error $? " *** Application requires dlopen/dlclose (e.g. libdl) *** " "$LINENO" 5
4948fi
4949
4950
4951
4952fi
4953
4954
4955if test -d "/opt/local"; then
4956  CPPFLAGS="$CPPFLAGS -I/opt/local/include"
4957  LDFLAGS="$LDFLAGS -L/opt/local/lib"
4958fi
4959
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
4961$as_echo_n "checking for library containing clock_gettime... " >&6; }
4962if ${ac_cv_search_clock_gettime+:} false; then :
4963  $as_echo_n "(cached) " >&6
4964else
4965  ac_func_search_save_LIBS=$LIBS
4966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967/* end confdefs.h.  */
4968
4969/* Override any GCC internal prototype to avoid an error.
4970   Use char because int might match the return type of a GCC
4971   builtin and then its argument prototype would still apply.  */
4972#ifdef __cplusplus
4973extern "C"
4974#endif
4975char clock_gettime ();
4976int
4977main ()
4978{
4979return clock_gettime ();
4980  ;
4981  return 0;
4982}
4983_ACEOF
4984for ac_lib in '' rt; do
4985  if test -z "$ac_lib"; then
4986    ac_res="none required"
4987  else
4988    ac_res=-l$ac_lib
4989    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4990  fi
4991  if ac_fn_c_try_link "$LINENO"; then :
4992  ac_cv_search_clock_gettime=$ac_res
4993fi
4994rm -f core conftest.err conftest.$ac_objext \
4995    conftest$ac_exeext
4996  if ${ac_cv_search_clock_gettime+:} false; then :
4997  break
4998fi
4999done
5000if ${ac_cv_search_clock_gettime+:} false; then :
5001
5002else
5003  ac_cv_search_clock_gettime=no
5004fi
5005rm conftest.$ac_ext
5006LIBS=$ac_func_search_save_LIBS
5007fi
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5009$as_echo "$ac_cv_search_clock_gettime" >&6; }
5010ac_res=$ac_cv_search_clock_gettime
5011if test "$ac_res" != no; then :
5012  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5013
5014fi
5015
5016for ac_func in clock_gettime
5017do :
5018  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5019if test "x$ac_cv_func_clock_gettime" = xyes; then :
5020  cat >>confdefs.h <<_ACEOF
5021#define HAVE_CLOCK_GETTIME 1
5022_ACEOF
5023
5024else
5025  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  No clock_gettime(), using gettimeofday() instead " >&5
5026$as_echo "$as_me: WARNING:  No clock_gettime(), using gettimeofday() instead " >&2;}
5027fi
5028done
5029
5030
5031check_libssl="false"
5032
5033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL Library and Header files..." >&5
5034$as_echo "$as_me: checking for OpenSSL Library and Header files..." >&6;}
5035
5036check_ssl_dir() { :
5037  { $as_echo "$as_me:${as_lineno-$LINENO}: checking $1/include/openssl/ssh.h" >&5
5038$as_echo_n "checking $1/include/openssl/ssh.h... " >&6; }
5039  if test -f "$1/include/openssl/ssl.h"
5040  then
5041    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
5042$as_echo "found" >&6; }
5043    CPPFLAGS="$CPPFLAGS -I$1/include"
5044    LDFLAGS="$LDFLAGS -L$1/lib"
5045    return 0
5046  else
5047    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5048$as_echo "not found" >&6; }
5049    return 1
5050  fi
5051}
5052
5053
5054# Check whether --with-ssl was given.
5055if test "${with_ssl+set}" = set; then :
5056  withval=$with_ssl; check_ssl_dir "$withval"
5057else
5058
5059    for main_dir in /usr /usr/local /usr/lib /usr/pkg /opt/local /usr/local/opt /opt; do
5060      for sub_dir in / /ssl /openssl; do
5061        check_ssl_dir "$main_dir$sub_dir" && break 2
5062      done
5063    done
5064
5065
5066fi
5067
5068
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_lock in -lcrypto" >&5
5070$as_echo_n "checking for CRYPTO_lock in -lcrypto... " >&6; }
5071if ${ac_cv_lib_crypto_CRYPTO_lock+:} false; then :
5072  $as_echo_n "(cached) " >&6
5073else
5074  ac_check_lib_save_LIBS=$LIBS
5075LIBS="-lcrypto  $LIBS"
5076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077/* end confdefs.h.  */
5078
5079/* Override any GCC internal prototype to avoid an error.
5080   Use char because int might match the return type of a GCC
5081   builtin and then its argument prototype would still apply.  */
5082#ifdef __cplusplus
5083extern "C"
5084#endif
5085char CRYPTO_lock ();
5086int
5087main ()
5088{
5089return CRYPTO_lock ();
5090  ;
5091  return 0;
5092}
5093_ACEOF
5094if ac_fn_c_try_link "$LINENO"; then :
5095  ac_cv_lib_crypto_CRYPTO_lock=yes
5096else
5097  ac_cv_lib_crypto_CRYPTO_lock=no
5098fi
5099rm -f core conftest.err conftest.$ac_objext \
5100    conftest$ac_exeext conftest.$ac_ext
5101LIBS=$ac_check_lib_save_LIBS
5102fi
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
5104$as_echo "$ac_cv_lib_crypto_CRYPTO_lock" >&6; }
5105if test "x$ac_cv_lib_crypto_CRYPTO_lock" = xyes; then :
5106  cat >>confdefs.h <<_ACEOF
5107#define HAVE_LIBCRYPTO 1
5108_ACEOF
5109
5110  LIBS="-lcrypto $LIBS"
5111
5112else
5113  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  *** LibCrypto may be required for *BSD ***" >&5
5114$as_echo "$as_me: WARNING:  *** LibCrypto may be required for *BSD ***" >&2;}
5115fi
5116
5117ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
5118if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
5119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lssl" >&5
5120$as_echo_n "checking for main in -lssl... " >&6; }
5121if ${ac_cv_lib_ssl_main+:} false; then :
5122  $as_echo_n "(cached) " >&6
5123else
5124  ac_check_lib_save_LIBS=$LIBS
5125LIBS="-lssl  $LIBS"
5126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127/* end confdefs.h.  */
5128
5129
5130int
5131main ()
5132{
5133return main ();
5134  ;
5135  return 0;
5136}
5137_ACEOF
5138if ac_fn_c_try_link "$LINENO"; then :
5139  ac_cv_lib_ssl_main=yes
5140else
5141  ac_cv_lib_ssl_main=no
5142fi
5143rm -f core conftest.err conftest.$ac_objext \
5144    conftest$ac_exeext conftest.$ac_ext
5145LIBS=$ac_check_lib_save_LIBS
5146fi
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_main" >&5
5148$as_echo "$ac_cv_lib_ssl_main" >&6; }
5149if test "x$ac_cv_lib_ssl_main" = xyes; then :
5150
5151$as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
5152 LIBS="$LIBS -lssl -lcrypto" check_libssl="true"
5153else
5154  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  *** OpenSSL library required for SSL support. ***
5155
5156      Many of the Medusa modules depend on the OpenSSL library and header files. If
5157      multiple modules are unexpectedly disabled, this is likely the cause. Make sure
5158      to install libssl-dev, openssl-devel or whatever package your distribution uses
5159      to distribute these files.
5160
5161      If the headers are installed in a non-standard location, specify the path with
5162      \"--with-ssl\".
5163
5164    " >&5
5165$as_echo "$as_me: WARNING:  *** OpenSSL library required for SSL support. ***
5166
5167      Many of the Medusa modules depend on the OpenSSL library and header files. If
5168      multiple modules are unexpectedly disabled, this is likely the cause. Make sure
5169      to install libssl-dev, openssl-devel or whatever package your distribution uses
5170      to distribute these files.
5171
5172      If the headers are installed in a non-standard location, specify the path with
5173      \"--with-ssl\".
5174
5175    " >&2;}
5176
5177fi
5178
5179else
5180  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  *** OpenSSL header files required for SSL support. ***
5181
5182    Many of the Medusa modules depend on the OpenSSL library and header files. If
5183    multiple modules are unexpectedly disabled, this is likely the cause. Make sure
5184    to install libssl-dev, openssl-devel or whatever package your distribution uses
5185    to distribute these files.
5186
5187    If the headers are installed in a non-standard location, specify the path with
5188    \"--with-ssl\".
5189
5190  " >&5
5191$as_echo "$as_me: WARNING:  *** OpenSSL header files required for SSL support. ***
5192
5193    Many of the Medusa modules depend on the OpenSSL library and header files. If
5194    multiple modules are unexpectedly disabled, this is likely the cause. Make sure
5195    to install libssl-dev, openssl-devel or whatever package your distribution uses
5196    to distribute these files.
5197
5198    If the headers are installed in a non-standard location, specify the path with
5199    \"--with-ssl\".
5200
5201  " >&2;}
5202
5203fi
5204
5205
5206
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: *** Checking module dependencies and enabling accordingly ***" >&5
5208$as_echo "$as_me: *** Checking module dependencies and enabling accordingly ***" >&6;}
5209
5210check_module_afp="false"
5211
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AFPFS-NG Library and Header files..." >&5
5213$as_echo "$as_me: checking for AFPFS-NG Library and Header files..." >&6;}
5214ac_fn_c_check_header_mongrel "$LINENO" "afpfs-ng/afp_protocol.h" "ac_cv_header_afpfs_ng_afp_protocol_h" "$ac_includes_default"
5215if test "x$ac_cv_header_afpfs_ng_afp_protocol_h" = xyes; then :
5216  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lafpclient" >&5
5217$as_echo_n "checking for main in -lafpclient... " >&6; }
5218if ${ac_cv_lib_afpclient_main+:} false; then :
5219  $as_echo_n "(cached) " >&6
5220else
5221  ac_check_lib_save_LIBS=$LIBS
5222LIBS="-lafpclient  $LIBS"
5223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224/* end confdefs.h.  */
5225
5226
5227int
5228main ()
5229{
5230return main ();
5231  ;
5232  return 0;
5233}
5234_ACEOF
5235if ac_fn_c_try_link "$LINENO"; then :
5236  ac_cv_lib_afpclient_main=yes
5237else
5238  ac_cv_lib_afpclient_main=no
5239fi
5240rm -f core conftest.err conftest.$ac_objext \
5241    conftest$ac_exeext conftest.$ac_ext
5242LIBS=$ac_check_lib_save_LIBS
5243fi
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_afpclient_main" >&5
5245$as_echo "$ac_cv_lib_afpclient_main" >&6; }
5246if test "x$ac_cv_lib_afpclient_main" = xyes; then :
5247
5248$as_echo "#define HAVE_LIBAFPFS 1" >>confdefs.h
5249 MODULE_LIBS="$MODULE_LIBS -lafpclient" check_module_afp="true"
5250else
5251  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  *** AFPFS-NG library required for AFP module. ***
5252
5253      The AFPFS-NG package must be installed for the AFP module to function. This includes
5254      both the library and header files. AFPFS-NG is available at the following site:
5255      http://alexthepuffin.googlepages.com/. The AFP module will NOT be built.
5256
5257    " >&5
5258$as_echo "$as_me: WARNING:  *** AFPFS-NG library required for AFP module. ***
5259
5260      The AFPFS-NG package must be installed for the AFP module to function. This includes
5261      both the library and header files. AFPFS-NG is available at the following site:
5262      http://alexthepuffin.googlepages.com/. The AFP module will NOT be built.
5263
5264    " >&2;}
5265
5266fi
5267
5268else
5269  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  *** AFPFS-NG header files required for AFP module. ***
5270
5271    The AFPFS-NG package must be installed for the AFP module to function. This includes
5272    both the library and header files. AFPFS-NG is available at the following site:
5273    http://alexthepuffin.googlepages.com/. The AFP module will NOT be built.
5274
5275  " >&5
5276$as_echo "$as_me: WARNING:  *** AFPFS-NG header files required for AFP module. ***
5277
5278    The AFPFS-NG package must be installed for the AFP module to function. This includes
5279    both the library and header files. AFPFS-NG is available at the following site:
5280    http://alexthepuffin.googlepages.com/. The AFP module will NOT be built.
5281
5282  " >&2;}
5283
5284fi
5285
5286
5287
5288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable AFP module" >&5
5289$as_echo_n "checking whether to enable AFP module... " >&6; }
5290# Check whether --enable-module-afp was given.
5291if test "${enable_module_afp+set}" = set; then :
5292  enableval=$enable_module_afp; case "${enableval}" in
5293                yes) enable_module_afp=true ;;
5294                no)  enable_module_afp=false ;;
5295                *)   as_fn_error $? "bad value ${enableval} for --enable-module-afp" "$LINENO" 5 ;;
5296              esac
5297else
5298  enable_module_afp=$check_module_afp
5299fi
5300
5301
5302 if test x"$enable_module_afp" = "xtrue"; then
5303  BUILD_MODULE_AFP_TRUE=
5304  BUILD_MODULE_AFP_FALSE='#'
5305else
5306  BUILD_MODULE_AFP_TRUE='#'
5307  BUILD_MODULE_AFP_FALSE=
5308fi
5309
5310if test x"$enable_module_afp" = "xtrue"; then
5311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5312$as_echo "yes" >&6; }
5313else
5314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315$as_echo "no" >&6; }
5316fi
5317
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable CVS module" >&5
5319$as_echo_n "checking whether to enable CVS module... " >&6; }
5320# Check whether --enable-module-cvs was given.
5321if test "${enable_module_cvs+set}" = set; then :
5322  enableval=$enable_module_cvs; case "${enableval}" in
5323                yes) enable_module_cvs=true ;;
5324                no)  enable_module_cvs=false ;;
5325                *)   as_fn_error $? "bad value ${enableval} for --enable-module-cvs" "$LINENO" 5 ;;
5326              esac
5327else
5328  enable_module_cvs="true"
5329fi
5330
5331
5332 if test x"$enable_module_cvs" = "xtrue"; then
5333  BUILD_MODULE_CVS_TRUE=
5334  BUILD_MODULE_CVS_FALSE='#'
5335else
5336  BUILD_MODULE_CVS_TRUE='#'
5337  BUILD_MODULE_CVS_FALSE=
5338fi
5339
5340if test x"$enable_module_cvs" = "xtrue"; then
5341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5342$as_echo "yes" >&6; }
5343else
5344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345$as_echo "no" >&6; }
5346fi
5347
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable FTP module" >&5
5349$as_echo_n "checking whether to enable FTP module... " >&6; }
5350# Check whether --enable-module-ftp was given.
5351if test "${enable_module_ftp+set}" = set; then :
5352  enableval=$enable_module_ftp; case "${enableval}" in
5353                yes) enable_module_ftp=true ;;
5354                no)  enable_module_ftp=false ;;
5355                *)   as_fn_error $? "bad value ${enableval} for --enable-module-ftp" "$LINENO" 5 ;;
5356              esac
5357else
5358  enable_module_ftp="true"
5359fi
5360
5361
5362 if test x"$enable_module_ftp" = "xtrue"; then
5363  BUILD_MODULE_FTP_TRUE=
5364  BUILD_MODULE_FTP_FALSE='#'
5365else
5366  BUILD_MODULE_FTP_TRUE='#'
5367  BUILD_MODULE_FTP_FALSE=
5368fi
5369
5370if test x"$enable_module_ftp" = "xtrue"; then
5371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5372$as_echo "yes" >&6; }
5373else
5374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375$as_echo "no" >&6; }
5376fi
5377
5378check_module_http=$check_libssl
5379
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable HTTP module" >&5
5381$as_echo_n "checking whether to enable HTTP module... " >&6; }
5382# Check whether --enable-module-http was given.
5383if test "${enable_module_http+set}" = set; then :
5384  enableval=$enable_module_http; case "${enableval}" in
5385                yes) enable_module_http=true ;;
5386                no)  enable_module_http=false ;;
5387                *)   as_fn_error $? "bad value ${enableval} for --enable-module-http" "$LINENO" 5 ;;
5388              esac
5389else
5390  enable_module_http=$check_module_http
5391fi
5392
5393
5394 if test x"$enable_module_http" = "xtrue"; then
5395  BUILD_MODULE_HTTP_TRUE=
5396  BUILD_MODULE_HTTP_FALSE='#'
5397else
5398  BUILD_MODULE_HTTP_TRUE='#'
5399  BUILD_MODULE_HTTP_FALSE=
5400fi
5401
5402if test x"$enable_module_http" = "xtrue"; then
5403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5404$as_echo "yes" >&6; }
5405else
5406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407$as_echo "no" >&6; }
5408fi
5409
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IMAP module" >&5
5411$as_echo_n "checking whether to enable IMAP module... " >&6; }
5412# Check whether --enable-module-imap was given.
5413if test "${enable_module_imap+set}" = set; then :
5414  enableval=$enable_module_imap; case "${enableval}" in
5415                yes) enable_module_imap=true ;;
5416                no)  enable_module_imap=false ;;
5417                *)   as_fn_error $? "bad value ${enableval} for --enable-module-imap" "$LINENO" 5 ;;
5418              esac
5419else
5420  enable_module_imap="true"
5421fi
5422
5423
5424 if test x"$enable_module_imap" = "xtrue"; then
5425  BUILD_MODULE_IMAP_TRUE=
5426  BUILD_MODULE_IMAP_FALSE='#'
5427else
5428  BUILD_MODULE_IMAP_TRUE='#'
5429  BUILD_MODULE_IMAP_FALSE=
5430fi
5431
5432if test x"$enable_module_imap" = "xtrue"; then
5433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5434$as_echo "yes" >&6; }
5435else
5436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437$as_echo "no" >&6; }
5438fi
5439
5440check_module_mssql=$check_libssl
5441
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable MSSQL module" >&5
5443$as_echo_n "checking whether to enable MSSQL module... " >&6; }
5444# Check whether --enable-module-mssql was given.
5445if test "${enable_module_mssql+set}" = set; then :
5446  enableval=$enable_module_mssql; case "${enableval}" in
5447                yes) enable_module_mssql=true ;;
5448                no)  enable_module_mssql=false ;;
5449                *)   as_fn_error $? "bad value ${enableval} for --enable-module-mssql" "$LINENO" 5 ;;
5450              esac
5451else
5452  enable_module_mssql=$check_module_mssql
5453fi
5454
5455
5456 if test x"$enable_module_mssql" = "xtrue"; then
5457  BUILD_MODULE_MSSQL_TRUE=
5458  BUILD_MODULE_MSSQL_FALSE='#'
5459else
5460  BUILD_MODULE_MSSQL_TRUE='#'
5461  BUILD_MODULE_MSSQL_FALSE=
5462fi
5463
5464if test x"$enable_module_mssql" = "xtrue"; then
5465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5466$as_echo "yes" >&6; }
5467else
5468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469$as_echo "no" >&6; }
5470fi
5471
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable MYSQL module" >&5
5473$as_echo_n "checking whether to enable MYSQL module... " >&6; }
5474# Check whether --enable-module-mysql was given.
5475if test "${enable_module_mysql+set}" = set; then :
5476  enableval=$enable_module_mysql; case "${enableval}" in
5477                yes) enable_module_mysql=true ;;
5478                no)  enable_module_mysql=false ;;
5479                *)   as_fn_error $? "bad value ${enableval} for --enable-module-mysql" "$LINENO" 5 ;;
5480              esac
5481else
5482  enable_module_mysql="true"
5483fi
5484
5485
5486 if test x"$enable_module_mysql" = "xtrue"; then
5487  BUILD_MODULE_MYSQL_TRUE=
5488  BUILD_MODULE_MYSQL_FALSE='#'
5489else
5490  BUILD_MODULE_MYSQL_TRUE='#'
5491  BUILD_MODULE_MYSQL_FALSE=
5492fi
5493
5494if test x"$enable_module_mysql" = "xtrue"; then
5495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5496$as_echo "yes" >&6; }
5497else
5498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499$as_echo "no" >&6; }
5500fi
5501
5502check_module_ncp="false"
5503
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NCPFS Library and Header files..." >&5
5505$as_echo "$as_me: checking for NCPFS Library and Header files..." >&6;}
5506ac_fn_c_check_header_mongrel "$LINENO" "ncp/nwcalls.h" "ac_cv_header_ncp_nwcalls_h" "$ac_includes_default"
5507if test "x$ac_cv_header_ncp_nwcalls_h" = xyes; then :
5508  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lncp" >&5
5509$as_echo_n "checking for main in -lncp... " >&6; }
5510if ${ac_cv_lib_ncp_main+:} false; then :
5511  $as_echo_n "(cached) " >&6
5512else
5513  ac_check_lib_save_LIBS=$LIBS
5514LIBS="-lncp  $LIBS"
5515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516/* end confdefs.h.  */
5517
5518
5519int
5520main ()
5521{
5522return main ();
5523  ;
5524  return 0;
5525}
5526_ACEOF
5527if ac_fn_c_try_link "$LINENO"; then :
5528  ac_cv_lib_ncp_main=yes
5529else
5530  ac_cv_lib_ncp_main=no
5531fi
5532rm -f core conftest.err conftest.$ac_objext \
5533    conftest$ac_exeext conftest.$ac_ext
5534LIBS=$ac_check_lib_save_LIBS
5535fi
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncp_main" >&5
5537$as_echo "$ac_cv_lib_ncp_main" >&6; }
5538if test "x$ac_cv_lib_ncp_main" = xyes; then :
5539
5540$as_echo "#define HAVE_LIBNCP 1" >>confdefs.h
5541 MODULE_LIBS="$MODULE_LIBS -lncp" check_module_ncp="true"
5542else
5543  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  *** NCPFS library required for NCP module. ***
5544
5545      The NCPFS package must be installed for the NCP module to function. This includes
5546      both the library and header files. If your distribution does not include these
5547      files or offer a ncpfs-devel package, the files can be manually installed using
5548      \"make install-dev\" within the NCPFS source. The NCP module will NOT be built.
5549
5550    " >&5
5551$as_echo "$as_me: WARNING:  *** NCPFS library required for NCP module. ***
5552
5553      The NCPFS package must be installed for the NCP module to function. This includes
5554      both the library and header files. If your distribution does not include these
5555      files or offer a ncpfs-devel package, the files can be manually installed using
5556      \"make install-dev\" within the NCPFS source. The NCP module will NOT be built.
5557
5558    " >&2;}
5559
5560fi
5561
5562else
5563  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  *** NCPFS header files required for NCP module. ***
5564
5565    The NCPFS package must be installed for the NCP module to function. This includes
5566    both the library and header files. If your distribution does not include these
5567    files or offer a ncpfs-devel package, the files can be manually installed using
5568    \"make install-dev\" within the NCPFS source. The NCP module will NOT be built.
5569
5570  " >&5
5571$as_echo "$as_me: WARNING:  *** NCPFS header files required for NCP module. ***
5572
5573    The NCPFS package must be installed for the NCP module to function. This includes
5574    both the library and header files. If your distribution does not include these
5575    files or offer a ncpfs-devel package, the files can be manually installed using
5576    \"make install-dev\" within the NCPFS source. The NCP module will NOT be built.
5577
5578  " >&2;}
5579
5580fi
5581
5582
5583
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NCP module" >&5
5585$as_echo_n "checking whether to enable NCP module... " >&6; }
5586# Check whether --enable-module-ncp was given.
5587if test "${enable_module_ncp+set}" = set; then :
5588  enableval=$enable_module_ncp; case "${enableval}" in
5589                yes) enable_module_ncp=true ;;
5590                no)  enable_module_ncp=false ;;
5591                *)   as_fn_error $? "bad value ${enableval} for --enable-module-ncp" "$LINENO" 5 ;;
5592              esac
5593else
5594  enable_module_ncp=$check_module_ncp
5595fi
5596
5597
5598 if test x"$enable_module_ncp" = "xtrue"; then
5599  BUILD_MODULE_NCP_TRUE=
5600  BUILD_MODULE_NCP_FALSE='#'
5601else
5602  BUILD_MODULE_NCP_TRUE='#'
5603  BUILD_MODULE_NCP_FALSE=
5604fi
5605
5606if test x"$enable_module_ncp" = "xtrue"; then
5607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5608$as_echo "yes" >&6; }
5609else
5610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611$as_echo "no" >&6; }
5612fi
5613
5614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NNTP module" >&5
5615$as_echo_n "checking whether to enable NNTP module... " >&6; }
5616# Check whether --enable-module-nntp was given.
5617if test "${enable_module_nntp+set}" = set; then :
5618  enableval=$enable_module_nntp; case "${enableval}" in
5619                yes) enable_module_nntp=true ;;
5620                no)  enable_module_nntp=false ;;
5621                *)   as_fn_error $? "bad value ${enableval} for --enable-module-nntp" "$LINENO" 5 ;;
5622              esac
5623else
5624  enable_module_nntp="true"
5625fi
5626
5627
5628 if test x"$enable_module_nntp" = "xtrue"; then
5629  BUILD_MODULE_NNTP_TRUE=
5630  BUILD_MODULE_NNTP_FALSE='#'
5631else
5632  BUILD_MODULE_NNTP_TRUE='#'
5633  BUILD_MODULE_NNTP_FALSE=
5634fi
5635
5636if test x"$enable_module_nntp" = "xtrue"; then
5637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5638$as_echo "yes" >&6; }
5639else
5640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641$as_echo "no" >&6; }
5642fi
5643
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PCANYWHERE module" >&5
5645$as_echo_n "checking whether to enable PCANYWHERE module... " >&6; }
5646# Check whether --enable-module-pcanywhere was given.
5647if test "${enable_module_pcanywhere+set}" = set; then :
5648  enableval=$enable_module_pcanywhere; case "${enableval}" in
5649                yes) enable_module_pcanywhere=true ;;
5650                no)  enable_module_pcanywhere=false ;;
5651                *)   as_fn_error $? "bad value ${enableval} for --enable-module-pcanywhere" "$LINENO" 5 ;;
5652              esac
5653else
5654  enable_module_pcanywhere="true"
5655fi
5656
5657
5658 if test x"$enable_module_pcanywhere" = "xtrue"; then
5659  BUILD_MODULE_PCANYWHERE_TRUE=
5660  BUILD_MODULE_PCANYWHERE_FALSE='#'
5661else
5662  BUILD_MODULE_PCANYWHERE_TRUE='#'
5663  BUILD_MODULE_PCANYWHERE_FALSE=
5664fi
5665
5666if test x"$enable_module_pcanywhere" = "xtrue"; then
5667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5668$as_echo "yes" >&6; }
5669else
5670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671$as_echo "no" >&6; }
5672fi
5673
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable POP3 module" >&5
5675$as_echo_n "checking whether to enable POP3 module... " >&6; }
5676# Check whether --enable-module-pop3 was given.
5677if test "${enable_module_pop3+set}" = set; then :
5678  enableval=$enable_module_pop3; case "${enableval}" in
5679                yes) enable_module_pop3=true ;;
5680                no)  enable_module_pop3=false ;;
5681                *)   as_fn_error $? "bad value ${enableval} for --enable-module-pop3" "$LINENO" 5 ;;
5682              esac
5683else
5684  enable_module_pop3="true"
5685fi
5686
5687
5688 if test x"$enable_module_pop3" = "xtrue"; then
5689  BUILD_MODULE_POP3_TRUE=
5690  BUILD_MODULE_POP3_FALSE='#'
5691else
5692  BUILD_MODULE_POP3_TRUE='#'
5693  BUILD_MODULE_POP3_FALSE=
5694fi
5695
5696if test x"$enable_module_pop3" = "xtrue"; then
5697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5698$as_echo "yes" >&6; }
5699else
5700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701$as_echo "no" >&6; }
5702fi
5703
5704check_module_postgres="false"
5705
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL Library and Header files..." >&5
5707$as_echo "$as_me: checking for PostgreSQL Library and Header files..." >&6;}
5708ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
5709if test "x$ac_cv_header_libpq_fe_h" = xyes; then :
5710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpq" >&5
5711$as_echo_n "checking for main in -lpq... " >&6; }
5712if ${ac_cv_lib_pq_main+:} false; then :
5713  $as_echo_n "(cached) " >&6
5714else
5715  ac_check_lib_save_LIBS=$LIBS
5716LIBS="-lpq  $LIBS"
5717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718/* end confdefs.h.  */
5719
5720
5721int
5722main ()
5723{
5724return main ();
5725  ;
5726  return 0;
5727}
5728_ACEOF
5729if ac_fn_c_try_link "$LINENO"; then :
5730  ac_cv_lib_pq_main=yes
5731else
5732  ac_cv_lib_pq_main=no
5733fi
5734rm -f core conftest.err conftest.$ac_objext \
5735    conftest$ac_exeext conftest.$ac_ext
5736LIBS=$ac_check_lib_save_LIBS
5737fi
5738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_main" >&5
5739$as_echo "$ac_cv_lib_pq_main" >&6; }
5740if test "x$ac_cv_lib_pq_main" = xyes; then :
5741
5742$as_echo "#define HAVE_LIBPQ 1" >>confdefs.h
5743 MODULE_LIBS="$MODULE_LIBS -lpq" check_module_postgres="true"
5744else
5745  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  *** LIBPQ library required for PostgreSQL module. ***
5746
5747      The PostgreSQL package must be installed for the PostgreSQL module to function. This
5748      includes both the library and header files. Your distribution may offer a package
5749      such as libpq-devel or postgresql-devel, which will provide these files.
5750
5751    " >&5
5752$as_echo "$as_me: WARNING:  *** LIBPQ library required for PostgreSQL module. ***
5753
5754      The PostgreSQL package must be installed for the PostgreSQL module to function. This
5755      includes both the library and header files. Your distribution may offer a package
5756      such as libpq-devel or postgresql-devel, which will provide these files.
5757
5758    " >&2;}
5759
5760fi
5761
5762else
5763  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  *** LIBPQ header files required for PostgreSQL module. ***
5764
5765      The PostgreSQL package must be installed for PostgreSQL module to function. This
5766      includes both the library and header files. Your distribution may offer a package
5767      such as libpq-devel or postgresql-devel, which will provide these files.
5768
5769  " >&5
5770$as_echo "$as_me: WARNING:  *** LIBPQ header files required for PostgreSQL module. ***
5771
5772      The PostgreSQL package must be installed for PostgreSQL module to function. This
5773      includes both the library and header files. Your distribution may offer a package
5774      such as libpq-devel or postgresql-devel, which will provide these files.
5775
5776  " >&2;}
5777
5778fi
5779
5780
5781
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable POSTGRES module" >&5
5783$as_echo_n "checking whether to enable POSTGRES module... " >&6; }
5784# Check whether --enable-module-postgres was given.
5785if test "${enable_module_postgres+set}" = set; then :
5786  enableval=$enable_module_postgres; case "${enableval}" in
5787                yes) enable_module_postgres=true ;;
5788                no)  enable_module_postgres=false ;;
5789                *)   as_fn_error $? "bad value ${enableval} for --enable-module-postgres" "$LINENO" 5 ;;
5790              esac
5791else
5792  enable_module_postgres=$check_module_postgres
5793fi
5794
5795
5796 if test x"$enable_module_postgres" = "xtrue"; then
5797  BUILD_MODULE_POSTGRES_TRUE=
5798  BUILD_MODULE_POSTGRES_FALSE='#'
5799else
5800  BUILD_MODULE_POSTGRES_TRUE='#'
5801  BUILD_MODULE_POSTGRES_FALSE=
5802fi
5803
5804if test x"$enable_module_postgres" = "xtrue"; then
5805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5806$as_echo "yes" >&6; }
5807else
5808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809$as_echo "no" >&6; }
5810fi
5811
5812check_module_rdp="false"
5813module_rdp_headers="false"
5814
5815if test -d "/opt/freerdp-nightly"; then
5816  CPPFLAGS="$CPPFLAGS -I/opt/freerdp-nightly/include"
5817  LDFLAGS="$LDFLAGS -L/opt/freerdp-nightly/lib"
5818fi
5819
5820case "$target" in
5821  *apple-darwin*)
5822    LDFLAGS="$LDFLAGS -L/usr/local/lib/freerdp"
5823    RDP_LIBS="-lfreerdp -lwinpr -lfreerdp-client -laudin-client -ldisp-client -lecho-client -lrdpei-client -lrdpgfx-client -ltsmf-client -lcliprdr-client -ldrdynvc-client -lencomsp-client -lrail-client -lrdpdr-client -lrdpsnd-client -lremdesk-client -ldrive-client -lparallel-client -lserial-client -lsmartcard-client"
5824    ;;
5825  *)
5826    ;;
5827esac
5828MODULE_LIBS="$MODULE_LIBS $RDP_LIBS"
5829
5830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeRDP Library and Header files..." >&5
5831$as_echo "$as_me: checking for FreeRDP Library and Header files..." >&6;}
5832module_rdp_headers="false"
5833
5834ac_fn_c_check_header_mongrel "$LINENO" "freerdp/freerdp.h" "ac_cv_header_freerdp_freerdp_h" "$ac_includes_default"
5835if test "x$ac_cv_header_freerdp_freerdp_h" = xyes; then :
5836  module_rdp_headers="true"
5837else
5838
5839    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  *** FreeRDP header files required for RDP module. ***
5840
5841        The FreeRDP package must be installed for RDP module to function. This
5842        includes both the library and header files. Your distribution may offer
5843        packages such as freerdp and libfreerdp-dev, which will provide these files.
5844
5845    " >&5
5846$as_echo "$as_me: WARNING:  *** FreeRDP header files required for RDP module. ***
5847
5848        The FreeRDP package must be installed for RDP module to function. This
5849        includes both the library and header files. Your distribution may offer
5850        packages such as freerdp and libfreerdp-dev, which will provide these files.
5851
5852    " >&2;}
5853
5854
5855fi
5856
5857
5858
5859if test x"$module_rdp_headers" = "xtrue"; then
5860  { $as_echo "$as_me:${as_lineno-$LINENO}:  *** Checking for FreeRDP libraries. *** " >&5
5861$as_echo "$as_me:  *** Checking for FreeRDP libraries. *** " >&6;}
5862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwinpr" >&5
5863$as_echo_n "checking for main in -lwinpr... " >&6; }
5864if ${ac_cv_lib_winpr_main+:} false; then :
5865  $as_echo_n "(cached) " >&6
5866else
5867  ac_check_lib_save_LIBS=$LIBS
5868LIBS="-lwinpr  $LIBS"
5869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870/* end confdefs.h.  */
5871
5872
5873int
5874main ()
5875{
5876return main ();
5877  ;
5878  return 0;
5879}
5880_ACEOF
5881if ac_fn_c_try_link "$LINENO"; then :
5882  ac_cv_lib_winpr_main=yes
5883else
5884  ac_cv_lib_winpr_main=no
5885fi
5886rm -f core conftest.err conftest.$ac_objext \
5887    conftest$ac_exeext conftest.$ac_ext
5888LIBS=$ac_check_lib_save_LIBS
5889fi
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winpr_main" >&5
5891$as_echo "$ac_cv_lib_winpr_main" >&6; }
5892if test "x$ac_cv_lib_winpr_main" = xyes; then :
5893  cat >>confdefs.h <<_ACEOF
5894#define HAVE_LIBWINPR 1
5895_ACEOF
5896
5897  LIBS="-lwinpr $LIBS"
5898
5899fi
5900
5901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lfreerdp" >&5
5902$as_echo_n "checking for main in -lfreerdp... " >&6; }
5903if ${ac_cv_lib_freerdp_main+:} false; then :
5904  $as_echo_n "(cached) " >&6
5905else
5906  ac_check_lib_save_LIBS=$LIBS
5907LIBS="-lfreerdp  $LIBS"
5908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909/* end confdefs.h.  */
5910
5911
5912int
5913main ()
5914{
5915return main ();
5916  ;
5917  return 0;
5918}
5919_ACEOF
5920if ac_fn_c_try_link "$LINENO"; then :
5921  ac_cv_lib_freerdp_main=yes
5922else
5923  ac_cv_lib_freerdp_main=no
5924fi
5925rm -f core conftest.err conftest.$ac_objext \
5926    conftest$ac_exeext conftest.$ac_ext
5927LIBS=$ac_check_lib_save_LIBS
5928fi
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freerdp_main" >&5
5930$as_echo "$ac_cv_lib_freerdp_main" >&6; }
5931if test "x$ac_cv_lib_freerdp_main" = xyes; then :
5932  cat >>confdefs.h <<_ACEOF
5933#define HAVE_LIBFREERDP 1
5934_ACEOF
5935
5936  LIBS="-lfreerdp $LIBS"
5937
5938fi
5939
5940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lfreerdp-channels" >&5
5941$as_echo_n "checking for main in -lfreerdp-channels... " >&6; }
5942if ${ac_cv_lib_freerdp_channels_main+:} false; then :
5943  $as_echo_n "(cached) " >&6
5944else
5945  ac_check_lib_save_LIBS=$LIBS
5946LIBS="-lfreerdp-channels  $LIBS"
5947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948/* end confdefs.h.  */
5949
5950
5951int
5952main ()
5953{
5954return main ();
5955  ;
5956  return 0;
5957}
5958_ACEOF
5959if ac_fn_c_try_link "$LINENO"; then :
5960  ac_cv_lib_freerdp_channels_main=yes
5961else
5962  ac_cv_lib_freerdp_channels_main=no
5963fi
5964rm -f core conftest.err conftest.$ac_objext \
5965    conftest$ac_exeext conftest.$ac_ext
5966LIBS=$ac_check_lib_save_LIBS
5967fi
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freerdp_channels_main" >&5
5969$as_echo "$ac_cv_lib_freerdp_channels_main" >&6; }
5970if test "x$ac_cv_lib_freerdp_channels_main" = xyes; then :
5971  cat >>confdefs.h <<_ACEOF
5972#define HAVE_LIBFREERDP_CHANNELS 1
5973_ACEOF
5974
5975  LIBS="-lfreerdp-channels $LIBS"
5976
5977fi
5978
5979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lfreerdp-client" >&5
5980$as_echo_n "checking for main in -lfreerdp-client... " >&6; }
5981if ${ac_cv_lib_freerdp_client_main+:} false; then :
5982  $as_echo_n "(cached) " >&6
5983else
5984  ac_check_lib_save_LIBS=$LIBS
5985LIBS="-lfreerdp-client  $LIBS"
5986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987/* end confdefs.h.  */
5988
5989
5990int
5991main ()
5992{
5993return main ();
5994  ;
5995  return 0;
5996}
5997_ACEOF
5998if ac_fn_c_try_link "$LINENO"; then :
5999  ac_cv_lib_freerdp_client_main=yes
6000else
6001  ac_cv_lib_freerdp_client_main=no
6002fi
6003rm -f core conftest.err conftest.$ac_objext \
6004    conftest$ac_exeext conftest.$ac_ext
6005LIBS=$ac_check_lib_save_LIBS
6006fi
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freerdp_client_main" >&5
6008$as_echo "$ac_cv_lib_freerdp_client_main" >&6; }
6009if test "x$ac_cv_lib_freerdp_client_main" = xyes; then :
6010  cat >>confdefs.h <<_ACEOF
6011#define HAVE_LIBFREERDP_CLIENT 1
6012_ACEOF
6013
6014  LIBS="-lfreerdp-client $LIBS"
6015
6016fi
6017
6018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lfreerdp-core" >&5
6019$as_echo_n "checking for main in -lfreerdp-core... " >&6; }
6020if ${ac_cv_lib_freerdp_core_main+:} false; then :
6021  $as_echo_n "(cached) " >&6
6022else
6023  ac_check_lib_save_LIBS=$LIBS
6024LIBS="-lfreerdp-core  $LIBS"
6025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026/* end confdefs.h.  */
6027
6028
6029int
6030main ()
6031{
6032return main ();
6033  ;
6034  return 0;
6035}
6036_ACEOF
6037if ac_fn_c_try_link "$LINENO"; then :
6038  ac_cv_lib_freerdp_core_main=yes
6039else
6040  ac_cv_lib_freerdp_core_main=no
6041fi
6042rm -f core conftest.err conftest.$ac_objext \
6043    conftest$ac_exeext conftest.$ac_ext
6044LIBS=$ac_check_lib_save_LIBS
6045fi
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freerdp_core_main" >&5
6047$as_echo "$ac_cv_lib_freerdp_core_main" >&6; }
6048if test "x$ac_cv_lib_freerdp_core_main" = xyes; then :
6049  cat >>confdefs.h <<_ACEOF
6050#define HAVE_LIBFREERDP_CORE 1
6051_ACEOF
6052
6053  LIBS="-lfreerdp-core $LIBS"
6054
6055fi
6056
6057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lfreerdp-gdi" >&5
6058$as_echo_n "checking for main in -lfreerdp-gdi... " >&6; }
6059if ${ac_cv_lib_freerdp_gdi_main+:} false; then :
6060  $as_echo_n "(cached) " >&6
6061else
6062  ac_check_lib_save_LIBS=$LIBS
6063LIBS="-lfreerdp-gdi  $LIBS"
6064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065/* end confdefs.h.  */
6066
6067
6068int
6069main ()
6070{
6071return main ();
6072  ;
6073  return 0;
6074}
6075_ACEOF
6076if ac_fn_c_try_link "$LINENO"; then :
6077  ac_cv_lib_freerdp_gdi_main=yes
6078else
6079  ac_cv_lib_freerdp_gdi_main=no
6080fi
6081rm -f core conftest.err conftest.$ac_objext \
6082    conftest$ac_exeext conftest.$ac_ext
6083LIBS=$ac_check_lib_save_LIBS
6084fi
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freerdp_gdi_main" >&5
6086$as_echo "$ac_cv_lib_freerdp_gdi_main" >&6; }
6087if test "x$ac_cv_lib_freerdp_gdi_main" = xyes; then :
6088  cat >>confdefs.h <<_ACEOF
6089#define HAVE_LIBFREERDP_GDI 1
6090_ACEOF
6091
6092  LIBS="-lfreerdp-gdi $LIBS"
6093
6094fi
6095
6096
6097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeRDP library version 1.2..." >&5
6098$as_echo "$as_me: checking for FreeRDP library version 1.2..." >&6;}
6099  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing WLog_CallbackAppender_SetCallbacks" >&5
6100$as_echo_n "checking for library containing WLog_CallbackAppender_SetCallbacks... " >&6; }
6101if ${ac_cv_search_WLog_CallbackAppender_SetCallbacks+:} false; then :
6102  $as_echo_n "(cached) " >&6
6103else
6104  ac_func_search_save_LIBS=$LIBS
6105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106/* end confdefs.h.  */
6107
6108/* Override any GCC internal prototype to avoid an error.
6109   Use char because int might match the return type of a GCC
6110   builtin and then its argument prototype would still apply.  */
6111#ifdef __cplusplus
6112extern "C"
6113#endif
6114char WLog_CallbackAppender_SetCallbacks ();
6115int
6116main ()
6117{
6118return WLog_CallbackAppender_SetCallbacks ();
6119  ;
6120  return 0;
6121}
6122_ACEOF
6123for ac_lib in '' winpr; do
6124  if test -z "$ac_lib"; then
6125    ac_res="none required"
6126  else
6127    ac_res=-l$ac_lib
6128    LIBS="-l$ac_lib $MODULE_LIBS $RDP_LIBS
6129   $ac_func_search_save_LIBS"
6130  fi
6131  if ac_fn_c_try_link "$LINENO"; then :
6132  ac_cv_search_WLog_CallbackAppender_SetCallbacks=$ac_res
6133fi
6134rm -f core conftest.err conftest.$ac_objext \
6135    conftest$ac_exeext
6136  if ${ac_cv_search_WLog_CallbackAppender_SetCallbacks+:} false; then :
6137  break
6138fi
6139done
6140if ${ac_cv_search_WLog_CallbackAppender_SetCallbacks+:} false; then :
6141
6142else
6143  ac_cv_search_WLog_CallbackAppender_SetCallbacks=no
6144fi
6145rm conftest.$ac_ext
6146LIBS=$ac_func_search_save_LIBS
6147fi
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_WLog_CallbackAppender_SetCallbacks" >&5
6149$as_echo "$ac_cv_search_WLog_CallbackAppender_SetCallbacks" >&6; }
6150ac_res=$ac_cv_search_WLog_CallbackAppender_SetCallbacks
6151if test "$ac_res" != no; then :
6152  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6153
6154
6155$as_echo "#define HAVE_LIBFREERDP12 1" >>confdefs.h
6156
6157      { $as_echo "$as_me:${as_lineno-$LINENO}:  *** Detected FreeRDP library version 1.2. *** " >&5
6158$as_echo "$as_me:  *** Detected FreeRDP library version 1.2. *** " >&6;}
6159      check_module_rdp="true"
6160
6161fi
6162
6163
6164  if test x"$check_module_rdp" = "xfalse"; then
6165    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeRDP library version 1.1 (with pass-the-hash)..." >&5
6166$as_echo "$as_me: checking for FreeRDP library version 1.1 (with pass-the-hash)..." >&6;}
6167    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nego_set_restricted_admin_mode_required" >&5
6168$as_echo_n "checking for library containing nego_set_restricted_admin_mode_required... " >&6; }
6169if ${ac_cv_search_nego_set_restricted_admin_mode_required+:} false; then :
6170  $as_echo_n "(cached) " >&6
6171else
6172  ac_func_search_save_LIBS=$LIBS
6173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174/* end confdefs.h.  */
6175
6176/* Override any GCC internal prototype to avoid an error.
6177   Use char because int might match the return type of a GCC
6178   builtin and then its argument prototype would still apply.  */
6179#ifdef __cplusplus
6180extern "C"
6181#endif
6182char nego_set_restricted_admin_mode_required ();
6183int
6184main ()
6185{
6186return nego_set_restricted_admin_mode_required ();
6187  ;
6188  return 0;
6189}
6190_ACEOF
6191for ac_lib in '' freerdp-client; do
6192  if test -z "$ac_lib"; then
6193    ac_res="none required"
6194  else
6195    ac_res=-l$ac_lib
6196    LIBS="-l$ac_lib $MODULE_LIBS $RDP_LIBS
6197     $ac_func_search_save_LIBS"
6198  fi
6199  if ac_fn_c_try_link "$LINENO"; then :
6200  ac_cv_search_nego_set_restricted_admin_mode_required=$ac_res
6201fi
6202rm -f core conftest.err conftest.$ac_objext \
6203    conftest$ac_exeext
6204  if ${ac_cv_search_nego_set_restricted_admin_mode_required+:} false; then :
6205  break
6206fi
6207done
6208if ${ac_cv_search_nego_set_restricted_admin_mode_required+:} false; then :
6209
6210else
6211  ac_cv_search_nego_set_restricted_admin_mode_required=no
6212fi
6213rm conftest.$ac_ext
6214LIBS=$ac_func_search_save_LIBS
6215fi
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nego_set_restricted_admin_mode_required" >&5
6217$as_echo "$ac_cv_search_nego_set_restricted_admin_mode_required" >&6; }
6218ac_res=$ac_cv_search_nego_set_restricted_admin_mode_required
6219if test "$ac_res" != no; then :
6220  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6221
6222
6223$as_echo "#define HAVE_LIBFREERDP11PTH 1" >>confdefs.h
6224
6225        { $as_echo "$as_me:${as_lineno-$LINENO}:  *** Detected FreeRDP library version 1.1 (with pass-the-hash). *** " >&5
6226$as_echo "$as_me:  *** Detected FreeRDP library version 1.1 (with pass-the-hash). *** " >&6;}
6227        check_module_rdp="true"
6228
6229fi
6230
6231  fi
6232
6233  if test x"$check_module_rdp" = "xfalse"; then
6234    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeRDP library version 1.1..." >&5
6235$as_echo "$as_me: checking for FreeRDP library version 1.1..." >&6;}
6236    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lfreerdp-client" >&5
6237$as_echo_n "checking for main in -lfreerdp-client... " >&6; }
6238if ${ac_cv_lib_freerdp_client_main+:} false; then :
6239  $as_echo_n "(cached) " >&6
6240else
6241  ac_check_lib_save_LIBS=$LIBS
6242LIBS="-lfreerdp-client  $LIBS"
6243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244/* end confdefs.h.  */
6245
6246
6247int
6248main ()
6249{
6250return main ();
6251  ;
6252  return 0;
6253}
6254_ACEOF
6255if ac_fn_c_try_link "$LINENO"; then :
6256  ac_cv_lib_freerdp_client_main=yes
6257else
6258  ac_cv_lib_freerdp_client_main=no
6259fi
6260rm -f core conftest.err conftest.$ac_objext \
6261    conftest$ac_exeext conftest.$ac_ext
6262LIBS=$ac_check_lib_save_LIBS
6263fi
6264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freerdp_client_main" >&5
6265$as_echo "$ac_cv_lib_freerdp_client_main" >&6; }
6266if test "x$ac_cv_lib_freerdp_client_main" = xyes; then :
6267
6268
6269$as_echo "#define HAVE_LIBFREERDP11 1" >>confdefs.h
6270
6271        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  *** Detected FreeRDP library version 1.1. ***
6272
6273            FreeRDP introduced pass-the-hash support with version 1.2. The version
6274            detected on this system is prior to that release. The RDP module will
6275            function, but the pass-the-hash option will be disabled.
6276
6277        " >&5
6278$as_echo "$as_me: WARNING:  *** Detected FreeRDP library version 1.1. ***
6279
6280            FreeRDP introduced pass-the-hash support with version 1.2. The version
6281            detected on this system is prior to that release. The RDP module will
6282            function, but the pass-the-hash option will be disabled.
6283
6284        " >&2;}
6285        check_module_rdp="true"
6286
6287fi
6288
6289  fi
6290
6291  if test x"$check_module_rdp" = "xfalse"; then
6292    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeRDP library version 1.0..." >&5
6293$as_echo "$as_me: checking for FreeRDP library version 1.0..." >&6;}
6294    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lfreerdp-core" >&5
6295$as_echo_n "checking for main in -lfreerdp-core... " >&6; }
6296if ${ac_cv_lib_freerdp_core_main+:} false; then :
6297  $as_echo_n "(cached) " >&6
6298else
6299  ac_check_lib_save_LIBS=$LIBS
6300LIBS="-lfreerdp-core  $LIBS"
6301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302/* end confdefs.h.  */
6303
6304
6305int
6306main ()
6307{
6308return main ();
6309  ;
6310  return 0;
6311}
6312_ACEOF
6313if ac_fn_c_try_link "$LINENO"; then :
6314  ac_cv_lib_freerdp_core_main=yes
6315else
6316  ac_cv_lib_freerdp_core_main=no
6317fi
6318rm -f core conftest.err conftest.$ac_objext \
6319    conftest$ac_exeext conftest.$ac_ext
6320LIBS=$ac_check_lib_save_LIBS
6321fi
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freerdp_core_main" >&5
6323$as_echo "$ac_cv_lib_freerdp_core_main" >&6; }
6324if test "x$ac_cv_lib_freerdp_core_main" = xyes; then :
6325
6326
6327$as_echo "#define HAVE_LIBFREERDP10 1" >>confdefs.h
6328
6329        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  *** Detected FreeRDP library version 1.0. ***
6330
6331            FreeRDP introduced pass-the-hash support with version 1.2. The version
6332            detected on this system is prior to that release. The RDP module will
6333            function, but the pass-the-hash option will be disabled.
6334
6335            It should also be noted that FreeRDP 1.0 prints all error messages
6336            to stdout. Medusa is unable to suppress these, which can lead to
6337            extraneous information being displayed.
6338
6339        " >&5
6340$as_echo "$as_me: WARNING:  *** Detected FreeRDP library version 1.0. ***
6341
6342            FreeRDP introduced pass-the-hash support with version 1.2. The version
6343            detected on this system is prior to that release. The RDP module will
6344            function, but the pass-the-hash option will be disabled.
6345
6346            It should also be noted that FreeRDP 1.0 prints all error messages
6347            to stdout. Medusa is unable to suppress these, which can lead to
6348            extraneous information being displayed.
6349
6350        " >&2;}
6351        check_module_rdp="true"
6352
6353else
6354
6355        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  *** FreeRDP library required for RDP module. ***
6356
6357            The FreeRDP package must be installed for the RDP module to function. This
6358            includes both the library and header files. Your distribution may offer
6359            packages such as freerdp and libfreerdp-dev, which will provide these files.
6360
6361        " >&5
6362$as_echo "$as_me: WARNING:  *** FreeRDP library required for RDP module. ***
6363
6364            The FreeRDP package must be installed for the RDP module to function. This
6365            includes both the library and header files. Your distribution may offer
6366            packages such as freerdp and libfreerdp-dev, which will provide these files.
6367
6368        " >&2;}
6369
6370
6371fi
6372
6373  fi
6374fi
6375
6376case "$target" in
6377  *apple-darwin*)
6378    { $as_echo "$as_me:${as_lineno-$LINENO}: RDP module is currently broken on OS X and disabled by default." >&5
6379$as_echo "$as_me: RDP module is currently broken on OS X and disabled by default." >&6;}
6380    check_module_rdp="false"
6381    ;;
6382esac
6383
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable RDP module" >&5
6385$as_echo_n "checking whether to enable RDP module... " >&6; }
6386# Check whether --enable-module-rdp was given.
6387if test "${enable_module_rdp+set}" = set; then :
6388  enableval=$enable_module_rdp; case "${enableval}" in
6389                yes) enable_module_rdp=true ;;
6390                no)  enable_module_rdp=false ;;
6391                *)   as_fn_error $? "bad value ${enableval} for --enable-module-rdp" "$LINENO" 5 ;;
6392              esac
6393else
6394  enable_module_rdp=$check_module_rdp
6395fi
6396
6397
6398 if test x"$enable_module_rdp" = "xtrue"; then
6399  BUILD_MODULE_RDP_TRUE=
6400  BUILD_MODULE_RDP_FALSE='#'
6401else
6402  BUILD_MODULE_RDP_TRUE='#'
6403  BUILD_MODULE_RDP_FALSE=
6404fi
6405
6406if test x"$enable_module_rdp" = "xtrue"; then
6407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6408$as_echo "yes" >&6; }
6409else
6410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411$as_echo "no" >&6; }
6412fi
6413
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable REXEC module" >&5
6415$as_echo_n "checking whether to enable REXEC module... " >&6; }
6416# Check whether --enable-module-rexec was given.
6417if test "${enable_module_rexec+set}" = set; then :
6418  enableval=$enable_module_rexec; case "${enableval}" in
6419                yes) enable_module_rexec=true ;;
6420                no)  enable_module_rexec=false ;;
6421                *)   as_fn_error $? "bad value ${enableval} for --enable-module-rexec" "$LINENO" 5 ;;
6422              esac
6423else
6424  enable_module_rexec="true"
6425fi
6426
6427
6428 if test x"$enable_module_rexec" = "xtrue"; then
6429  BUILD_MODULE_REXEC_TRUE=
6430  BUILD_MODULE_REXEC_FALSE='#'
6431else
6432  BUILD_MODULE_REXEC_TRUE='#'
6433  BUILD_MODULE_REXEC_FALSE=
6434fi
6435
6436if test x"$enable_module_rexec" = "xtrue"; then
6437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6438$as_echo "yes" >&6; }
6439else
6440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441$as_echo "no" >&6; }
6442fi
6443
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable RLOGIN module" >&5
6445$as_echo_n "checking whether to enable RLOGIN module... " >&6; }
6446# Check whether --enable-module-rlogin was given.
6447if test "${enable_module_rlogin+set}" = set; then :
6448  enableval=$enable_module_rlogin; case "${enableval}" in
6449                yes) enable_module_rlogin=true ;;
6450                no)  enable_module_rlogin=false ;;
6451                *)   as_fn_error $? "bad value ${enableval} for --enable-module-rlogin" "$LINENO" 5 ;;
6452              esac
6453else
6454  enable_module_rlogin="true"
6455fi
6456
6457
6458 if test x"$enable_module_rlogin" = "xtrue"; then
6459  BUILD_MODULE_RLOGIN_TRUE=
6460  BUILD_MODULE_RLOGIN_FALSE='#'
6461else
6462  BUILD_MODULE_RLOGIN_TRUE='#'
6463  BUILD_MODULE_RLOGIN_FALSE=
6464fi
6465
6466if test x"$enable_module_rlogin" = "xtrue"; then
6467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6468$as_echo "yes" >&6; }
6469else
6470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471$as_echo "no" >&6; }
6472fi
6473
6474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable RSH module" >&5
6475$as_echo_n "checking whether to enable RSH module... " >&6; }
6476# Check whether --enable-module-rsh was given.
6477if test "${enable_module_rsh+set}" = set; then :
6478  enableval=$enable_module_rsh; case "${enableval}" in
6479                yes) enable_module_rsh=true ;;
6480                no)  enable_module_rsh=false ;;
6481                *)   as_fn_error $? "bad value ${enableval} for --enable-module-rsh" "$LINENO" 5 ;;
6482              esac
6483else
6484  enable_module_rsh="true"
6485fi
6486
6487
6488 if test x"$enable_module_rsh" = "xtrue"; then
6489  BUILD_MODULE_RSH_TRUE=
6490  BUILD_MODULE_RSH_FALSE='#'
6491else
6492  BUILD_MODULE_RSH_TRUE='#'
6493  BUILD_MODULE_RSH_FALSE=
6494fi
6495
6496if test x"$enable_module_rsh" = "xtrue"; then
6497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6498$as_echo "yes" >&6; }
6499else
6500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501$as_echo "no" >&6; }
6502fi
6503
6504check_module_smbnt=$check_libssl
6505
6506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SMBNT module" >&5
6507$as_echo_n "checking whether to enable SMBNT module... " >&6; }
6508# Check whether --enable-module-smbnt was given.
6509if test "${enable_module_smbnt+set}" = set; then :
6510  enableval=$enable_module_smbnt; case "${enableval}" in
6511                yes) enable_module_smbnt=true ;;
6512                no)  enable_module_smbnt=false ;;
6513                *)   as_fn_error $? "bad value ${enableval} for --enable-module-smbnt" "$LINENO" 5 ;;
6514              esac
6515else
6516  enable_module_smbnt=$check_module_smbnt
6517fi
6518
6519
6520 if test x"$enable_module_smbnt" = "xtrue"; then
6521  BUILD_MODULE_SMBNT_TRUE=
6522  BUILD_MODULE_SMBNT_FALSE='#'
6523else
6524  BUILD_MODULE_SMBNT_TRUE='#'
6525  BUILD_MODULE_SMBNT_FALSE=
6526fi
6527
6528if test x"$enable_module_smbnt" = "xtrue"; then
6529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6530$as_echo "yes" >&6; }
6531else
6532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533$as_echo "no" >&6; }
6534fi
6535
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SMTP module" >&5
6537$as_echo_n "checking whether to enable SMTP module... " >&6; }
6538# Check whether --enable-module-smtp was given.
6539if test "${enable_module_smtp+set}" = set; then :
6540  enableval=$enable_module_smtp; case "${enableval}" in
6541                yes) enable_module_smtp=true ;;
6542                no)  enable_module_smtp=false ;;
6543                *)   as_fn_error $? "bad value ${enableval} for --enable-module-smtp" "$LINENO" 5 ;;
6544              esac
6545else
6546  enable_module_smtp="true"
6547fi
6548
6549
6550 if test x"$enable_module_smtp" = "xtrue"; then
6551  BUILD_MODULE_SMTP_TRUE=
6552  BUILD_MODULE_SMTP_FALSE='#'
6553else
6554  BUILD_MODULE_SMTP_TRUE='#'
6555  BUILD_MODULE_SMTP_FALSE=
6556fi
6557
6558if test x"$enable_module_smtp" = "xtrue"; then
6559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6560$as_echo "yes" >&6; }
6561else
6562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563$as_echo "no" >&6; }
6564fi
6565
6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SMTP-VRFY module" >&5
6567$as_echo_n "checking whether to enable SMTP-VRFY module... " >&6; }
6568# Check whether --enable-module-smtp-vrfy was given.
6569if test "${enable_module_smtp_vrfy+set}" = set; then :
6570  enableval=$enable_module_smtp_vrfy; case "${enableval}" in
6571                yes) enable_module_smtp_vrfy=true ;;
6572                no)  enable_module_smtp_vrfy=false ;;
6573                *)   as_fn_error $? "bad value ${enableval} for --enable-module-smtp-vrfy" "$LINENO" 5 ;;
6574              esac
6575else
6576  enable_module_smtp_vrfy="true"
6577fi
6578
6579
6580 if test x"$enable_module_smtp_vrfy" = "xtrue"; then
6581  BUILD_MODULE_SMTP_VRFY_TRUE=
6582  BUILD_MODULE_SMTP_VRFY_FALSE='#'
6583else
6584  BUILD_MODULE_SMTP_VRFY_TRUE='#'
6585  BUILD_MODULE_SMTP_VRFY_FALSE=
6586fi
6587
6588if test x"$enable_module_smtp_vrfy" = "xtrue"; then
6589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6590$as_echo "yes" >&6; }
6591else
6592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6593$as_echo "no" >&6; }
6594fi
6595
6596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SNMP module" >&5
6597$as_echo_n "checking whether to enable SNMP module... " >&6; }
6598# Check whether --enable-module-snmp was given.
6599if test "${enable_module_snmp+set}" = set; then :
6600  enableval=$enable_module_snmp; case "${enableval}" in
6601                yes) enable_module_snmp=true ;;
6602                no)  enable_module_snmp=false ;;
6603                *)   as_fn_error $? "bad value ${enableval} for --enable-module-snmp" "$LINENO" 5 ;;
6604              esac
6605else
6606  enable_module_snmp="true"
6607fi
6608
6609
6610 if test x"$enable_module_snmp" = "xtrue"; then
6611  BUILD_MODULE_SNMP_TRUE=
6612  BUILD_MODULE_SNMP_FALSE='#'
6613else
6614  BUILD_MODULE_SNMP_TRUE='#'
6615  BUILD_MODULE_SNMP_FALSE=
6616fi
6617
6618if test x"$enable_module_snmp" = "xtrue"; then
6619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6620$as_echo "yes" >&6; }
6621else
6622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623$as_echo "no" >&6; }
6624fi
6625
6626check_module_ssh="false"
6627
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Libssh2 Library files..." >&5
6629$as_echo "$as_me: checking for Libssh2 Library files..." >&6;}
6630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lssh2" >&5
6631$as_echo_n "checking for main in -lssh2... " >&6; }
6632if ${ac_cv_lib_ssh2_main+:} false; then :
6633  $as_echo_n "(cached) " >&6
6634else
6635  ac_check_lib_save_LIBS=$LIBS
6636LIBS="-lssh2  $LIBS"
6637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638/* end confdefs.h.  */
6639
6640
6641int
6642main ()
6643{
6644return main ();
6645  ;
6646  return 0;
6647}
6648_ACEOF
6649if ac_fn_c_try_link "$LINENO"; then :
6650  ac_cv_lib_ssh2_main=yes
6651else
6652  ac_cv_lib_ssh2_main=no
6653fi
6654rm -f core conftest.err conftest.$ac_objext \
6655    conftest$ac_exeext conftest.$ac_ext
6656LIBS=$ac_check_lib_save_LIBS
6657fi
6658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_main" >&5
6659$as_echo "$ac_cv_lib_ssh2_main" >&6; }
6660if test "x$ac_cv_lib_ssh2_main" = xyes; then :
6661
6662$as_echo "#define HAVE_LIBSSH2 1" >>confdefs.h
6663 MODULE_LIBS="$MODULE_LIBS -lssh2" check_module_ssh="true"
6664else
6665  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  *** Libssh2 required for SSH2 module. ***
6666
6667  Libssh2 (http://www.libssh2.org) is not the same as libssh (http://0xbadc0de.be).
6668  Make sure you have the correct library. The SSH2 module will NOT be built.
6669
6670  " >&5
6671$as_echo "$as_me: WARNING:  *** Libssh2 required for SSH2 module. ***
6672
6673  Libssh2 (http://www.libssh2.org) is not the same as libssh (http://0xbadc0de.be).
6674  Make sure you have the correct library. The SSH2 module will NOT be built.
6675
6676  " >&2;}
6677
6678fi
6679
6680
6681if test x"$check_module_ssh" = "xtrue"; then
6682  check_libgcrypt="false"
6683
6684  if test -f "/usr/lib/libssh2.so"; then
6685    LIBSSH2_PATH="/usr/lib/libssh2.so"
6686  elif test -f "/usr/local/lib/libssh2.so"; then
6687    LIBSSH2_PATH="/usr/local/lib/libssh2.so"
6688  elif test -f "/usr/lib/x86_64-linux-gnu/libssh2.so"; then
6689    LIBSSH2_PATH="/usr/lib/x86_64-linux-gnu/libssh2.so"
6690  elif test -f "/opt/local/lib/libssh2.dylib"; then
6691    LIBSSH2_PATH="/opt/local/lib/libssh2.dylib"
6692  elif test -f "/usr/local/lib/libssh2.dylib"; then
6693    LIBSSH2_PATH="/usr/local/lib/libssh2.dylib"
6694  else
6695    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  LIBSSH2 path not found. Assuming it was... " >&5
6696$as_echo "$as_me: WARNING:  LIBSSH2 path not found. Assuming it was... " >&2;}
6697  fi
6698
6699    if test -f "`which ldd`"; then
6700    LDD="ldd"
6701  elif test -f "`which otool`"; then
6702    LDD="otool -L"
6703  else
6704    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  No ldd detected. Unable to test whether Libssh2 was compiled to use libgcrypt. Assuming it was... " >&5
6705$as_echo "$as_me: WARNING:  No ldd detected. Unable to test whether Libssh2 was compiled to use libgcrypt. Assuming it was... " >&2;}
6706    check_libgcrypt="true"
6707  fi
6708
6709  if test ! -z "`$LDD $LIBSSH2_PATH |grep libgcrypt`"; then
6710    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  Libssh2 compiled using libgcrypt. Checking additional dependencies. " >&5
6711$as_echo "$as_me: WARNING:  Libssh2 compiled using libgcrypt. Checking additional dependencies. " >&2;}
6712    check_libgcrypt="true"
6713  fi
6714
6715 if test x"$check_libgcrypt" = "xtrue"; then
6716    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Libgrcypt Library files..." >&5
6717$as_echo "$as_me: checking for Libgrcypt Library files..." >&6;}
6718    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
6719$as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
6720if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
6721  $as_echo_n "(cached) " >&6
6722else
6723  ac_check_lib_save_LIBS=$LIBS
6724LIBS="-lgcrypt  $LIBS"
6725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726/* end confdefs.h.  */
6727
6728/* Override any GCC internal prototype to avoid an error.
6729   Use char because int might match the return type of a GCC
6730   builtin and then its argument prototype would still apply.  */
6731#ifdef __cplusplus
6732extern "C"
6733#endif
6734char gcry_control ();
6735int
6736main ()
6737{
6738return gcry_control ();
6739  ;
6740  return 0;
6741}
6742_ACEOF
6743if ac_fn_c_try_link "$LINENO"; then :
6744  ac_cv_lib_gcrypt_gcry_control=yes
6745else
6746  ac_cv_lib_gcrypt_gcry_control=no
6747fi
6748rm -f core conftest.err conftest.$ac_objext \
6749    conftest$ac_exeext conftest.$ac_ext
6750LIBS=$ac_check_lib_save_LIBS
6751fi
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
6753$as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
6754if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
6755
6756$as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
6757 LIBS="$LIBS -lgcrypt"
6758else
6759  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  *** Libgcrypt required for installed version of Libssh2 ***
6760
6761        The default build of Libssh2 is to use OpenSSL for crypto. Several Linux
6762        distributions (e.g. Debian, Ubuntu) build it to use Libgcrypt. In order to
6763        use libssh2 in a thread-safe manner, we need to link to Libgcrypt and
6764        properly initialize it.
6765
6766        Make sure you have the Libgcrypt/GnuTLS libraries and headers (e.g. libgcrypt11-dev).
6767        The SSH2 module will NOT be built.
6768
6769      " >&5
6770$as_echo "$as_me: WARNING:  *** Libgcrypt required for installed version of Libssh2 ***
6771
6772        The default build of Libssh2 is to use OpenSSL for crypto. Several Linux
6773        distributions (e.g. Debian, Ubuntu) build it to use Libgcrypt. In order to
6774        use libssh2 in a thread-safe manner, we need to link to Libgcrypt and
6775        properly initialize it.
6776
6777        Make sure you have the Libgcrypt/GnuTLS libraries and headers (e.g. libgcrypt11-dev).
6778        The SSH2 module will NOT be built.
6779
6780      " >&2;}
6781      check_module_ssh="false"
6782
6783fi
6784
6785
6786    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS Library files..." >&5
6787$as_echo "$as_me: checking for GnuTLS Library files..." >&6;}
6788    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_handshake in -lgnutls" >&5
6789$as_echo_n "checking for gnutls_handshake in -lgnutls... " >&6; }
6790if ${ac_cv_lib_gnutls_gnutls_handshake+:} false; then :
6791  $as_echo_n "(cached) " >&6
6792else
6793  ac_check_lib_save_LIBS=$LIBS
6794LIBS="-lgnutls  $LIBS"
6795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796/* end confdefs.h.  */
6797
6798/* Override any GCC internal prototype to avoid an error.
6799   Use char because int might match the return type of a GCC
6800   builtin and then its argument prototype would still apply.  */
6801#ifdef __cplusplus
6802extern "C"
6803#endif
6804char gnutls_handshake ();
6805int
6806main ()
6807{
6808return gnutls_handshake ();
6809  ;
6810  return 0;
6811}
6812_ACEOF
6813if ac_fn_c_try_link "$LINENO"; then :
6814  ac_cv_lib_gnutls_gnutls_handshake=yes
6815else
6816  ac_cv_lib_gnutls_gnutls_handshake=no
6817fi
6818rm -f core conftest.err conftest.$ac_objext \
6819    conftest$ac_exeext conftest.$ac_ext
6820LIBS=$ac_check_lib_save_LIBS
6821fi
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_handshake" >&5
6823$as_echo "$ac_cv_lib_gnutls_gnutls_handshake" >&6; }
6824if test "x$ac_cv_lib_gnutls_gnutls_handshake" = xyes; then :
6825
6826$as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
6827 LIBS="$LIBS -lgnutls"
6828else
6829  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  *** GnuTLS required for installed version of Libssh2 ***
6830
6831        The default build of Libssh2 is to use OpenSSL for crypto. Several Linux
6832        distributions (e.g. Debian, Ubuntu) build it to use Libgcrypt. In order to
6833        use libssh2 in a thread-safe manner, we need to link to Libgcrypt and
6834        properly initialize it.
6835
6836        Make sure you have the Libgcrypt/GnuTLS libraries and headers (e.g. libgnutls-dev).
6837        The SSH2 module will NOT be built.
6838
6839      " >&5
6840$as_echo "$as_me: WARNING:  *** GnuTLS required for installed version of Libssh2 ***
6841
6842        The default build of Libssh2 is to use OpenSSL for crypto. Several Linux
6843        distributions (e.g. Debian, Ubuntu) build it to use Libgcrypt. In order to
6844        use libssh2 in a thread-safe manner, we need to link to Libgcrypt and
6845        properly initialize it.
6846
6847        Make sure you have the Libgcrypt/GnuTLS libraries and headers (e.g. libgnutls-dev).
6848        The SSH2 module will NOT be built.
6849
6850      " >&2;}
6851      check_module_ssh="false"
6852
6853fi
6854
6855  fi
6856fi
6857
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSH module" >&5
6859$as_echo_n "checking whether to enable SSH module... " >&6; }
6860# Check whether --enable-module-ssh was given.
6861if test "${enable_module_ssh+set}" = set; then :
6862  enableval=$enable_module_ssh; case "${enableval}" in
6863                yes) enable_module_ssh=true ;;
6864                no)  enable_module_ssh=false ;;
6865                *)   as_fn_error $? "bad value ${enableval} for --enable-module-ssh" "$LINENO" 5 ;;
6866              esac
6867else
6868  enable_module_ssh=$check_module_ssh
6869fi
6870
6871
6872 if test x"$enable_module_ssh" = "xtrue"; then
6873  BUILD_MODULE_SSH_TRUE=
6874  BUILD_MODULE_SSH_FALSE='#'
6875else
6876  BUILD_MODULE_SSH_TRUE='#'
6877  BUILD_MODULE_SSH_FALSE=
6878fi
6879
6880if test x"$enable_module_ssh" = "xtrue"; then
6881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6882$as_echo "yes" >&6; }
6883else
6884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885$as_echo "no" >&6; }
6886fi
6887
6888check_module_svn="false"
6889
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Subversion Library and Header files..." >&5
6891$as_echo "$as_me: checking for Subversion Library and Header files..." >&6;}
6892# Extract the first word of "apr-1-config", so it can be a program name with args.
6893set dummy apr-1-config; ac_word=$2
6894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895$as_echo_n "checking for $ac_word... " >&6; }
6896if ${ac_cv_path_APR_CONFIG+:} false; then :
6897  $as_echo_n "(cached) " >&6
6898else
6899  case $APR_CONFIG in
6900  [\\/]* | ?:[\\/]*)
6901  ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
6902  ;;
6903  *)
6904  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905for as_dir in $PATH
6906do
6907  IFS=$as_save_IFS
6908  test -z "$as_dir" && as_dir=.
6909    for ac_exec_ext in '' $ac_executable_extensions; do
6910  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6911    ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6912    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6913    break 2
6914  fi
6915done
6916  done
6917IFS=$as_save_IFS
6918
6919  ;;
6920esac
6921fi
6922APR_CONFIG=$ac_cv_path_APR_CONFIG
6923if test -n "$APR_CONFIG"; then
6924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APR_CONFIG" >&5
6925$as_echo "$APR_CONFIG" >&6; }
6926else
6927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928$as_echo "no" >&6; }
6929fi
6930
6931
6932if test -z "$APR_CONFIG"; then
6933  # Extract the first word of "apr-config", so it can be a program name with args.
6934set dummy apr-config; ac_word=$2
6935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936$as_echo_n "checking for $ac_word... " >&6; }
6937if ${ac_cv_path_APR_CONFIG+:} false; then :
6938  $as_echo_n "(cached) " >&6
6939else
6940  case $APR_CONFIG in
6941  [\\/]* | ?:[\\/]*)
6942  ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
6943  ;;
6944  *)
6945  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948  IFS=$as_save_IFS
6949  test -z "$as_dir" && as_dir=.
6950    for ac_exec_ext in '' $ac_executable_extensions; do
6951  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6952    ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6954    break 2
6955  fi
6956done
6957  done
6958IFS=$as_save_IFS
6959
6960  ;;
6961esac
6962fi
6963APR_CONFIG=$ac_cv_path_APR_CONFIG
6964if test -n "$APR_CONFIG"; then
6965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APR_CONFIG" >&5
6966$as_echo "$APR_CONFIG" >&6; }
6967else
6968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969$as_echo "no" >&6; }
6970fi
6971
6972
6973  if test -z "$APR_CONFIG"; then
6974    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  *** apr-config/apr-1-config not found and required for SVN module ***
6975
6976      Make sure to install libapr1-dev or whatever package your distribution uses
6977      to distribute this file.
6978
6979    " >&5
6980$as_echo "$as_me: WARNING:  *** apr-config/apr-1-config not found and required for SVN module ***
6981
6982      Make sure to install libapr1-dev or whatever package your distribution uses
6983      to distribute this file.
6984
6985    " >&2;}
6986  fi
6987fi
6988
6989if test -n "$APR_CONFIG"; then
6990
6991  if test x`$APR_CONFIG --cc` = "xcc"; then
6992    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  *** Apache (apr) was compiled using Sun C compiler and not GNU gcc. ***
6993
6994    \"$APR_CONFIG --cc\" responded with \"cc\", which usually means that your build of Apache
6995    was compiled with Sun C compiler and not with gcc. This means that the version of libtool
6996    embedded within Apache installation is also configured for Sun C compiler and not gcc.
6997    The Sun C compiler setup is incompatible because the options to each compiler are
6998    different for building shared objects and libraries. Specifically, the Sun compiler
6999    supports the \"-mt\" flag, whereas gcc does not. In order to build the SVN Medusa
7000    module, rebuild $APR_CONFIG using gcc, or remove the \"-mt\" CPPFLAGS flag from the
7001    autogenerated Medusa configuration files.
7002
7003    " >&5
7004$as_echo "$as_me: WARNING:  *** Apache (apr) was compiled using Sun C compiler and not GNU gcc. ***
7005
7006    \"$APR_CONFIG --cc\" responded with \"cc\", which usually means that your build of Apache
7007    was compiled with Sun C compiler and not with gcc. This means that the version of libtool
7008    embedded within Apache installation is also configured for Sun C compiler and not gcc.
7009    The Sun C compiler setup is incompatible because the options to each compiler are
7010    different for building shared objects and libraries. Specifically, the Sun compiler
7011    supports the \"-mt\" flag, whereas gcc does not. In order to build the SVN Medusa
7012    module, rebuild $APR_CONFIG using gcc, or remove the \"-mt\" CPPFLAGS flag from the
7013    autogenerated Medusa configuration files.
7014
7015    " >&2;}
7016  else
7017    APR_INCLUDE_DIR=`$APR_CONFIG --includedir`
7018
7019    CPPFLAGS="$CPPFLAGS `$APR_CONFIG --includes --cppflags`"
7020
7021    as_ac_Header=`$as_echo "ac_cv_header_$APR_INCLUDE_DIR/apr_tables.h" | $as_tr_sh`
7022ac_fn_c_check_header_mongrel "$LINENO" "$APR_INCLUDE_DIR/apr_tables.h" "$as_ac_Header" "$ac_includes_default"
7023if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7024  ac_fn_c_check_header_mongrel "$LINENO" "subversion-1/svn_client.h" "ac_cv_header_subversion_1_svn_client_h" "$ac_includes_default"
7025if test "x$ac_cv_header_subversion_1_svn_client_h" = xyes; then :
7026  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsvn_client-1" >&5
7027$as_echo_n "checking for main in -lsvn_client-1... " >&6; }
7028if ${ac_cv_lib_svn_client_1_main+:} false; then :
7029  $as_echo_n "(cached) " >&6
7030else
7031  ac_check_lib_save_LIBS=$LIBS
7032LIBS="-lsvn_client-1  $LIBS"
7033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034/* end confdefs.h.  */
7035
7036
7037int
7038main ()
7039{
7040return main ();
7041  ;
7042  return 0;
7043}
7044_ACEOF
7045if ac_fn_c_try_link "$LINENO"; then :
7046  ac_cv_lib_svn_client_1_main=yes
7047else
7048  ac_cv_lib_svn_client_1_main=no
7049fi
7050rm -f core conftest.err conftest.$ac_objext \
7051    conftest$ac_exeext conftest.$ac_ext
7052LIBS=$ac_check_lib_save_LIBS
7053fi
7054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svn_client_1_main" >&5
7055$as_echo "$ac_cv_lib_svn_client_1_main" >&6; }
7056if test "x$ac_cv_lib_svn_client_1_main" = xyes; then :
7057
7058$as_echo "#define HAVE_LIBSVN_CLIENT_1 1" >>confdefs.h
7059 MODULE_LIBS="$MODULE_LIBS -lsvn_client-1" check_module_svn="true"
7060else
7061  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  *** Subversion libsvn library required for SVN module. *** " >&5
7062$as_echo "$as_me: WARNING:  *** Subversion libsvn library required for SVN module. *** " >&2;}
7063
7064fi
7065
7066else
7067  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  *** Subversion header files required for SVN module. (e.g., libsvn-dev) *** " >&5
7068$as_echo "$as_me: WARNING:  *** Subversion header files required for SVN module. (e.g., libsvn-dev) *** " >&2;}
7069fi
7070
7071
7072else
7073  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  *** APR header files required for SVN module. (e.g., libapr1-dev) *** " >&5
7074$as_echo "$as_me: WARNING:  *** APR header files required for SVN module. (e.g., libapr1-dev) *** " >&2;}
7075
7076fi
7077
7078
7079  fi
7080else
7081  check_module_svn="false"
7082fi
7083
7084if test x"$check_module_svn" = "xtrue"; then
7085  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for svn_client_list3 in -lsvn_client-1" >&5
7086$as_echo_n "checking for svn_client_list3 in -lsvn_client-1... " >&6; }
7087if ${ac_cv_lib_svn_client_1_svn_client_list3+:} false; then :
7088  $as_echo_n "(cached) " >&6
7089else
7090  ac_check_lib_save_LIBS=$LIBS
7091LIBS="-lsvn_client-1  $LIBS"
7092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093/* end confdefs.h.  */
7094
7095/* Override any GCC internal prototype to avoid an error.
7096   Use char because int might match the return type of a GCC
7097   builtin and then its argument prototype would still apply.  */
7098#ifdef __cplusplus
7099extern "C"
7100#endif
7101char svn_client_list3 ();
7102int
7103main ()
7104{
7105return svn_client_list3 ();
7106  ;
7107  return 0;
7108}
7109_ACEOF
7110if ac_fn_c_try_link "$LINENO"; then :
7111  ac_cv_lib_svn_client_1_svn_client_list3=yes
7112else
7113  ac_cv_lib_svn_client_1_svn_client_list3=no
7114fi
7115rm -f core conftest.err conftest.$ac_objext \
7116    conftest$ac_exeext conftest.$ac_ext
7117LIBS=$ac_check_lib_save_LIBS
7118fi
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svn_client_1_svn_client_list3" >&5
7120$as_echo "$ac_cv_lib_svn_client_1_svn_client_list3" >&6; }
7121if test "x$ac_cv_lib_svn_client_1_svn_client_list3" = xyes; then :
7122
7123$as_echo "#define HAVE_SVN_CLIENT_LIST3 1" >>confdefs.h
7124
7125else
7126  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found SVN Library older than version 1.8" >&5
7127$as_echo "$as_me: WARNING: Found SVN Library older than version 1.8" >&2;}
7128
7129fi
7130
7131fi
7132
7133
7134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SVN module" >&5
7135$as_echo_n "checking whether to enable SVN module... " >&6; }
7136# Check whether --enable-module-svn was given.
7137if test "${enable_module_svn+set}" = set; then :
7138  enableval=$enable_module_svn; case "${enableval}" in
7139                yes) enable_module_svn=true ;;
7140                no)  enable_module_svn=false ;;
7141                *)   as_fn_error $? "bad value ${enableval} for --enable-module-svn" "$LINENO" 5 ;;
7142              esac
7143else
7144  enable_module_svn=$check_module_svn
7145fi
7146
7147
7148 if test x"$enable_module_svn" = "xtrue"; then
7149  BUILD_MODULE_SVN_TRUE=
7150  BUILD_MODULE_SVN_FALSE='#'
7151else
7152  BUILD_MODULE_SVN_TRUE='#'
7153  BUILD_MODULE_SVN_FALSE=
7154fi
7155
7156if test x"$enable_module_svn" = "xtrue"; then
7157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7158$as_echo "yes" >&6; }
7159else
7160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161$as_echo "no" >&6; }
7162fi
7163
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TELNET module" >&5
7165$as_echo_n "checking whether to enable TELNET module... " >&6; }
7166# Check whether --enable-module-telnet was given.
7167if test "${enable_module_telnet+set}" = set; then :
7168  enableval=$enable_module_telnet; case "${enableval}" in
7169                yes) enable_module_telnet=true ;;
7170                no)  enable_module_telnet=false ;;
7171                *)   as_fn_error $? "bad value ${enableval} for --enable-module-telnet" "$LINENO" 5 ;;
7172              esac
7173else
7174  enable_module_telnet="true"
7175fi
7176
7177
7178 if test x"$enable_module_telnet" = "xtrue"; then
7179  BUILD_MODULE_TELNET_TRUE=
7180  BUILD_MODULE_TELNET_FALSE='#'
7181else
7182  BUILD_MODULE_TELNET_TRUE='#'
7183  BUILD_MODULE_TELNET_FALSE=
7184fi
7185
7186if test x"$enable_module_telnet" = "xtrue"; then
7187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7188$as_echo "yes" >&6; }
7189else
7190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191$as_echo "no" >&6; }
7192fi
7193
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable VMAUTHD module" >&5
7195$as_echo_n "checking whether to enable VMAUTHD module... " >&6; }
7196# Check whether --enable-module-vmauthd was given.
7197if test "${enable_module_vmauthd+set}" = set; then :
7198  enableval=$enable_module_vmauthd; case "${enableval}" in
7199                yes) enable_module_vmauthd=true ;;
7200                no)  enable_module_vmauthd=false ;;
7201                *)   as_fn_error $? "bad value ${enableval} for --enable-module-vmauthd" "$LINENO" 5 ;;
7202              esac
7203else
7204  enable_module_vmauthd="true"
7205fi
7206
7207
7208 if test x"$enable_module_vmauthd" = "xtrue"; then
7209  BUILD_MODULE_VMAUTHD_TRUE=
7210  BUILD_MODULE_VMAUTHD_FALSE='#'
7211else
7212  BUILD_MODULE_VMAUTHD_TRUE='#'
7213  BUILD_MODULE_VMAUTHD_FALSE=
7214fi
7215
7216if test x"$enable_module_vmauthd" = "xtrue"; then
7217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7218$as_echo "yes" >&6; }
7219else
7220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221$as_echo "no" >&6; }
7222fi
7223
7224check_module_vnc=$check_libssl
7225
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable VNC module" >&5
7227$as_echo_n "checking whether to enable VNC module... " >&6; }
7228# Check whether --enable-module-vnc was given.
7229if test "${enable_module_vnc+set}" = set; then :
7230  enableval=$enable_module_vnc; case "${enableval}" in
7231                yes) enable_module_vnc=true ;;
7232                no)  enable_module_vnc=false ;;
7233                *)   as_fn_error $? "bad value ${enableval} for --enable-module-vnc" "$LINENO" 5 ;;
7234              esac
7235else
7236  enable_module_vnc=$check_module_vnc
7237fi
7238
7239
7240 if test x"$enable_module_vnc" = "xtrue"; then
7241  BUILD_MODULE_VNC_TRUE=
7242  BUILD_MODULE_VNC_FALSE='#'
7243else
7244  BUILD_MODULE_VNC_TRUE='#'
7245  BUILD_MODULE_VNC_FALSE=
7246fi
7247
7248if test x"$enable_module_vnc" = "xtrue"; then
7249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7250$as_echo "yes" >&6; }
7251else
7252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253$as_echo "no" >&6; }
7254fi
7255
7256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable WRAPPER module" >&5
7257$as_echo_n "checking whether to enable WRAPPER module... " >&6; }
7258# Check whether --enable-module-wrapper was given.
7259if test "${enable_module_wrapper+set}" = set; then :
7260  enableval=$enable_module_wrapper; case "${enableval}" in
7261                yes) enable_module_wrapper=true ;;
7262                no)  enable_module_wrapper=false ;;
7263                *)   as_fn_error $? "bad value ${enableval} for --enable-module-wrapper" "$LINENO" 5 ;;
7264              esac
7265else
7266  enable_module_wrapper="true"
7267fi
7268
7269
7270 if test x"$enable_module_wrapper" = "xtrue"; then
7271  BUILD_MODULE_WRAPPER_TRUE=
7272  BUILD_MODULE_WRAPPER_FALSE='#'
7273else
7274  BUILD_MODULE_WRAPPER_TRUE='#'
7275  BUILD_MODULE_WRAPPER_FALSE=
7276fi
7277
7278if test x"$enable_module_wrapper" = "xtrue"; then
7279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7280$as_echo "yes" >&6; }
7281else
7282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283$as_echo "no" >&6; }
7284fi
7285
7286check_module_web_form=$check_libssl
7287
7288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable WEB-FORM module" >&5
7289$as_echo_n "checking whether to enable WEB-FORM module... " >&6; }
7290# Check whether --enable-module-web-form was given.
7291if test "${enable_module_web_form+set}" = set; then :
7292  enableval=$enable_module_web_form; case "${enableval}" in
7293                yes) enable_module_web_form=true ;;
7294                no)  enable_module_web_form=false ;;
7295                *)   as_fn_error $? "bad value ${enableval} for --enable-module-web-form" "$LINENO" 5 ;;
7296              esac
7297else
7298  enable_module_web_form=$check_module_web_form
7299fi
7300
7301
7302 if test x"$enable_module_web_form" = "xtrue"; then
7303  BUILD_MODULE_WEB_FORM_TRUE=
7304  BUILD_MODULE_WEB_FORM_FALSE='#'
7305else
7306  BUILD_MODULE_WEB_FORM_TRUE='#'
7307  BUILD_MODULE_WEB_FORM_FALSE=
7308fi
7309
7310if test x"$enable_module_web_form" = "xtrue"; then
7311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7312$as_echo "yes" >&6; }
7313else
7314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315$as_echo "no" >&6; }
7316fi
7317
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
7319$as_echo "$as_me: " >&6;}
7320{ $as_echo "$as_me:${as_lineno-$LINENO}: *******************************************************" >&5
7321$as_echo "$as_me: *******************************************************" >&6;}
7322{ $as_echo "$as_me:${as_lineno-$LINENO}:     Medusa Module Build Summary" >&5
7323$as_echo "$as_me:     Medusa Module Build Summary" >&6;}
7324{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
7325$as_echo "$as_me: " >&6;}
7326
7327show_build_status()
7328{
7329  if test "$1" = "true" ; then
7330    { $as_echo "$as_me:${as_lineno-$LINENO}: $2 Enabled" >&5
7331$as_echo "$as_me: $2 Enabled" >&6;}
7332  else
7333    { $as_echo "$as_me:${as_lineno-$LINENO}: $2 ** Disabled **" >&5
7334$as_echo "$as_me: $2 ** Disabled **" >&6;}
7335  fi
7336}
7337
7338show_build_status "${enable_module_afp}"        "    AFP            "
7339show_build_status "${enable_module_cvs}"        "    CVS            "
7340show_build_status "${enable_module_ftp}"        "    FTP            "
7341show_build_status "${enable_module_http}"       "    HTTP           "
7342show_build_status "${enable_module_imap}"       "    IMAP           "
7343show_build_status "${enable_module_mssql}"      "    MSSQL          "
7344show_build_status "${enable_module_mysql}"      "    MYSQL          "
7345show_build_status "${enable_module_ncp}"        "    NCP            "
7346show_build_status "${enable_module_nntp}"       "    NNTP           "
7347show_build_status "${enable_module_pcanywhere}" "    PCANYWHERE     "
7348show_build_status "${enable_module_pop3}"       "    POP3           "
7349show_build_status "${enable_module_postgres}"   "    POSTGRES       "
7350show_build_status "${enable_module_rdp}"        "    RDP            "
7351show_build_status "${enable_module_rexec}"      "    REXEC          "
7352show_build_status "${enable_module_rlogin}"     "    RLOGIN         "
7353show_build_status "${enable_module_rsh}"        "    RSH            "
7354show_build_status "${enable_module_smbnt}"      "    SMBNT          "
7355show_build_status "${enable_module_smtp}"       "    SMTP           "
7356show_build_status "${enable_module_smtp_vrfy}"  "    SMTP-VRFY      "
7357show_build_status "${enable_module_snmp}"       "    SNMP           "
7358show_build_status "${enable_module_ssh}"        "    SSH            "
7359show_build_status "${enable_module_svn}"        "    SVN            "
7360show_build_status "${enable_module_telnet}"     "    TELNET         "
7361show_build_status "${enable_module_vmauthd}"    "    VMAUTHD        "
7362show_build_status "${enable_module_vnc}"        "    VNC            "
7363show_build_status "${enable_module_wrapper}"    "    WRAPPER        "
7364show_build_status "${enable_module_web_form}"   "    WEB-FORM       "
7365
7366{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
7367$as_echo "$as_me: " >&6;}
7368{ $as_echo "$as_me:${as_lineno-$LINENO}:  If a module is unexpectedly marked as disabled, check " >&5
7369$as_echo "$as_me:  If a module is unexpectedly marked as disabled, check " >&6;}
7370{ $as_echo "$as_me:${as_lineno-$LINENO}:  above output and verify dependancies were satisfied. " >&5
7371$as_echo "$as_me:  above output and verify dependancies were satisfied. " >&6;}
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
7373$as_echo "$as_me: " >&6;}
7374{ $as_echo "$as_me:${as_lineno-$LINENO}:  It should also be noted that, by default, not all of " >&5
7375$as_echo "$as_me:  It should also be noted that, by default, not all of " >&6;}
7376{ $as_echo "$as_me:${as_lineno-$LINENO}:  the modules are built. Incomplete modules or modules " >&5
7377$as_echo "$as_me:  the modules are built. Incomplete modules or modules " >&6;}
7378{ $as_echo "$as_me:${as_lineno-$LINENO}:  which have not been sufficiently tested may be " >&5
7379$as_echo "$as_me:  which have not been sufficiently tested may be " >&6;}
7380{ $as_echo "$as_me:${as_lineno-$LINENO}:  disabled. To enable non-default modules, use the " >&5
7381$as_echo "$as_me:  disabled. To enable non-default modules, use the " >&6;}
7382{ $as_echo "$as_me:${as_lineno-$LINENO}:  \"--enable-module-MODULE_NAME\" configure option." >&5
7383$as_echo "$as_me:  \"--enable-module-MODULE_NAME\" configure option." >&6;}
7384{ $as_echo "$as_me:${as_lineno-$LINENO}: *******************************************************" >&5
7385$as_echo "$as_me: *******************************************************" >&6;}
7386{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
7387$as_echo "$as_me: " >&6;}
7388
7389for ac_func in strcasestr
7390do :
7391  ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
7392if test "x$ac_cv_func_strcasestr" = xyes; then :
7393  cat >>confdefs.h <<_ACEOF
7394#define HAVE_STRCASESTR 1
7395_ACEOF
7396
7397fi
7398done
7399
7400for ac_func in asprintf
7401do :
7402  ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
7403if test "x$ac_cv_func_asprintf" = xyes; then :
7404  cat >>confdefs.h <<_ACEOF
7405#define HAVE_ASPRINTF 1
7406_ACEOF
7407
7408fi
7409done
7410
7411for ac_func in vasprintf
7412do :
7413  ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
7414if test "x$ac_cv_func_vasprintf" = xyes; then :
7415  cat >>confdefs.h <<_ACEOF
7416#define HAVE_VASPRINTF 1
7417_ACEOF
7418
7419fi
7420done
7421
7422
7423
7424case "$target" in
7425  *linux*)
7426    LIBDL="-ldl -lrt -lm"
7427    RDYNAMIC="-rdynamic"
7428    MODULE_LIBS="$MODULE_LIBS -shared"
7429    EXTRA_LDFLAGS=""
7430    ;;
7431  *freebsd*)
7432    LIBDL="-lm"
7433    RDYNAMIC="-rdynamic"
7434    MODULE_LIBS="$MODULE_LIBS -shared"
7435    EXTRA_LDFLAGS=""
7436    ;;
7437  *netbsd*)
7438    LIBDL="-lm"
7439    RDYNAMIC="-rdynamic"
7440    MODULE_LIBS="$MODULE_LIBS -shared"
7441    EXTRA_LDFLAGS=""
7442    ;;
7443  *openbsd*)
7444    LIBDL="-lm"
7445    RDYNAMIC="-rdynamic"
7446    MODULE_LIBS="$MODULE_LIBS -shared"
7447    EXTRA_LDFLAGS="-g -Wl,-E"
7448    ;;
7449  *apple-darwin*)
7450    # Modules will segfault when executed (show usage works) if medusa core
7451    # is not linked to CoreFoundation (starting with 10.6). This is believed to
7452    # be due to libsvn linking to CoreFoundation and our modules linked via
7453    # "-lsvn_client-1". See http://www.openradar.me/7209349 for more info.
7454    LIBDL="-ldl -framework CoreFoundation"
7455    # OS X Lion marked OpenSSL as deprecated. We're disabling these warnings
7456    # for now. We'll need to figure out if it's worth supporting Common Crypto
7457    # or simply requiring users to install their own OpenSSL in the future.
7458    CFLAGS="$CFLAGS -Wno-deprecated-declarations"
7459    RDYNAMIC=""
7460    MODULE_LIBS="$MODULE_LIBS -bundle -flat_namespace -undefined suppress"
7461    EXTRA_LDFLAGS=""
7462    ;;
7463  *solaris*)
7464    CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7465    LDFLAGS="$LDFLAGS -R/usr/local/lib -R/usr/local/ssl/lib -L/usr/local/ssl/lib"
7466    LIBDL="-ldl -lm -lrt -lnsl -lsocket"
7467    RDYNAMIC="-Rdynamic"
7468    EXTRA_LDFLAGS=""
7469    MODULE_LIBS="$MODULE_LIBS -G"
7470    ;;
7471  *cygwin*)
7472    CPPFLAGS="$CPPFLAGS -DCYGWIN"
7473    LIBDL="-ldl"
7474    RDYNAMIC=""
7475    MODULE_LIBS="$MODULE_LIBS -shared"
7476    ;;
7477  *)
7478    LIBDL="-ldl -lm"
7479    RDYNAMIC="-rdynamic"
7480    MODULE_LIBS="$MODULE_LIBS -shared"
7481    EXTRA_LDFLAGS=""
7482    ;;
7483esac
7484
7485
7486LDFLAGS="$LDFLAGS $RDYNAMIC $EXTRA_LDFLAGS"
7487LIBS="$LIBS $LIBDL"
7488
7489test "$prefix" = NONE && prefix=${ac_default_prefix}
7490_default_mod_path="${prefix}/lib/medusa/modules"
7491
7492# Check whether --with-default-mod-path was given.
7493if test "${with_default_mod_path+set}" = set; then :
7494  withval=$with_default_mod_path; _default_mod_path="$withval"
7495fi
7496
7497
7498cat >>confdefs.h <<_ACEOF
7499#define DEFAULT_MOD_PATH "$_default_mod_path"
7500_ACEOF
7501
7502
7503
7504ac_config_files="$ac_config_files Makefile src/Makefile src/modsrc/Makefile"
7505
7506cat >confcache <<\_ACEOF
7507# This file is a shell script that caches the results of configure
7508# tests run on this system so they can be shared between configure
7509# scripts and configure runs, see configure's option --config-cache.
7510# It is not useful on other systems.  If it contains results you don't
7511# want to keep, you may remove or edit it.
7512#
7513# config.status only pays attention to the cache file if you give it
7514# the --recheck option to rerun configure.
7515#
7516# `ac_cv_env_foo' variables (set or unset) will be overridden when
7517# loading this file, other *unset* `ac_cv_foo' will be assigned the
7518# following values.
7519
7520_ACEOF
7521
7522# The following way of writing the cache mishandles newlines in values,
7523# but we know of no workaround that is simple, portable, and efficient.
7524# So, we kill variables containing newlines.
7525# Ultrix sh set writes to stderr and can't be redirected directly,
7526# and sets the high bit in the cache file unless we assign to the vars.
7527(
7528  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7529    eval ac_val=\$$ac_var
7530    case $ac_val in #(
7531    *${as_nl}*)
7532      case $ac_var in #(
7533      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7534$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7535      esac
7536      case $ac_var in #(
7537      _ | IFS | as_nl) ;; #(
7538      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7539      *) { eval $ac_var=; unset $ac_var;} ;;
7540      esac ;;
7541    esac
7542  done
7543
7544  (set) 2>&1 |
7545    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7546    *${as_nl}ac_space=\ *)
7547      # `set' does not quote correctly, so add quotes: double-quote
7548      # substitution turns \\\\ into \\, and sed turns \\ into \.
7549      sed -n \
7550	"s/'/'\\\\''/g;
7551	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7552      ;; #(
7553    *)
7554      # `set' quotes correctly as required by POSIX, so do not add quotes.
7555      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7556      ;;
7557    esac |
7558    sort
7559) |
7560  sed '
7561     /^ac_cv_env_/b end
7562     t clear
7563     :clear
7564     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7565     t end
7566     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7567     :end' >>confcache
7568if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7569  if test -w "$cache_file"; then
7570    if test "x$cache_file" != "x/dev/null"; then
7571      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7572$as_echo "$as_me: updating cache $cache_file" >&6;}
7573      if test ! -f "$cache_file" || test -h "$cache_file"; then
7574	cat confcache >"$cache_file"
7575      else
7576        case $cache_file in #(
7577        */* | ?:*)
7578	  mv -f confcache "$cache_file"$$ &&
7579	  mv -f "$cache_file"$$ "$cache_file" ;; #(
7580        *)
7581	  mv -f confcache "$cache_file" ;;
7582	esac
7583      fi
7584    fi
7585  else
7586    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7587$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7588  fi
7589fi
7590rm -f confcache
7591
7592test "x$prefix" = xNONE && prefix=$ac_default_prefix
7593# Let make expand exec_prefix.
7594test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7595
7596DEFS=-DHAVE_CONFIG_H
7597
7598ac_libobjs=
7599ac_ltlibobjs=
7600for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7601  # 1. Remove the extension, and $U if already installed.
7602  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7603  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7604  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7605  #    will be set to the directory where LIBOBJS objects are built.
7606  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7607  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7608done
7609LIBOBJS=$ac_libobjs
7610
7611LTLIBOBJS=$ac_ltlibobjs
7612
7613
7614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7615$as_echo_n "checking that generated files are newer than configure... " >&6; }
7616   if test -n "$am_sleep_pid"; then
7617     # Hide warnings about reused PIDs.
7618     wait $am_sleep_pid 2>/dev/null
7619   fi
7620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7621$as_echo "done" >&6; }
7622 if test -n "$EXEEXT"; then
7623  am__EXEEXT_TRUE=
7624  am__EXEEXT_FALSE='#'
7625else
7626  am__EXEEXT_TRUE='#'
7627  am__EXEEXT_FALSE=
7628fi
7629
7630if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7631  as_fn_error $? "conditional \"AMDEP\" was never defined.
7632Usually this means the macro was only invoked conditionally." "$LINENO" 5
7633fi
7634if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7635  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7636Usually this means the macro was only invoked conditionally." "$LINENO" 5
7637fi
7638if test -z "${BUILD_MODULE_AFP_TRUE}" && test -z "${BUILD_MODULE_AFP_FALSE}"; then
7639  as_fn_error $? "conditional \"BUILD_MODULE_AFP\" was never defined.
7640Usually this means the macro was only invoked conditionally." "$LINENO" 5
7641fi
7642if test -z "${BUILD_MODULE_CVS_TRUE}" && test -z "${BUILD_MODULE_CVS_FALSE}"; then
7643  as_fn_error $? "conditional \"BUILD_MODULE_CVS\" was never defined.
7644Usually this means the macro was only invoked conditionally." "$LINENO" 5
7645fi
7646if test -z "${BUILD_MODULE_FTP_TRUE}" && test -z "${BUILD_MODULE_FTP_FALSE}"; then
7647  as_fn_error $? "conditional \"BUILD_MODULE_FTP\" was never defined.
7648Usually this means the macro was only invoked conditionally." "$LINENO" 5
7649fi
7650if test -z "${BUILD_MODULE_HTTP_TRUE}" && test -z "${BUILD_MODULE_HTTP_FALSE}"; then
7651  as_fn_error $? "conditional \"BUILD_MODULE_HTTP\" was never defined.
7652Usually this means the macro was only invoked conditionally." "$LINENO" 5
7653fi
7654if test -z "${BUILD_MODULE_IMAP_TRUE}" && test -z "${BUILD_MODULE_IMAP_FALSE}"; then
7655  as_fn_error $? "conditional \"BUILD_MODULE_IMAP\" was never defined.
7656Usually this means the macro was only invoked conditionally." "$LINENO" 5
7657fi
7658if test -z "${BUILD_MODULE_MSSQL_TRUE}" && test -z "${BUILD_MODULE_MSSQL_FALSE}"; then
7659  as_fn_error $? "conditional \"BUILD_MODULE_MSSQL\" was never defined.
7660Usually this means the macro was only invoked conditionally." "$LINENO" 5
7661fi
7662if test -z "${BUILD_MODULE_MYSQL_TRUE}" && test -z "${BUILD_MODULE_MYSQL_FALSE}"; then
7663  as_fn_error $? "conditional \"BUILD_MODULE_MYSQL\" was never defined.
7664Usually this means the macro was only invoked conditionally." "$LINENO" 5
7665fi
7666if test -z "${BUILD_MODULE_NCP_TRUE}" && test -z "${BUILD_MODULE_NCP_FALSE}"; then
7667  as_fn_error $? "conditional \"BUILD_MODULE_NCP\" was never defined.
7668Usually this means the macro was only invoked conditionally." "$LINENO" 5
7669fi
7670if test -z "${BUILD_MODULE_NNTP_TRUE}" && test -z "${BUILD_MODULE_NNTP_FALSE}"; then
7671  as_fn_error $? "conditional \"BUILD_MODULE_NNTP\" was never defined.
7672Usually this means the macro was only invoked conditionally." "$LINENO" 5
7673fi
7674if test -z "${BUILD_MODULE_PCANYWHERE_TRUE}" && test -z "${BUILD_MODULE_PCANYWHERE_FALSE}"; then
7675  as_fn_error $? "conditional \"BUILD_MODULE_PCANYWHERE\" was never defined.
7676Usually this means the macro was only invoked conditionally." "$LINENO" 5
7677fi
7678if test -z "${BUILD_MODULE_POP3_TRUE}" && test -z "${BUILD_MODULE_POP3_FALSE}"; then
7679  as_fn_error $? "conditional \"BUILD_MODULE_POP3\" was never defined.
7680Usually this means the macro was only invoked conditionally." "$LINENO" 5
7681fi
7682if test -z "${BUILD_MODULE_POSTGRES_TRUE}" && test -z "${BUILD_MODULE_POSTGRES_FALSE}"; then
7683  as_fn_error $? "conditional \"BUILD_MODULE_POSTGRES\" was never defined.
7684Usually this means the macro was only invoked conditionally." "$LINENO" 5
7685fi
7686if test -z "${BUILD_MODULE_RDP_TRUE}" && test -z "${BUILD_MODULE_RDP_FALSE}"; then
7687  as_fn_error $? "conditional \"BUILD_MODULE_RDP\" was never defined.
7688Usually this means the macro was only invoked conditionally." "$LINENO" 5
7689fi
7690if test -z "${BUILD_MODULE_REXEC_TRUE}" && test -z "${BUILD_MODULE_REXEC_FALSE}"; then
7691  as_fn_error $? "conditional \"BUILD_MODULE_REXEC\" was never defined.
7692Usually this means the macro was only invoked conditionally." "$LINENO" 5
7693fi
7694if test -z "${BUILD_MODULE_RLOGIN_TRUE}" && test -z "${BUILD_MODULE_RLOGIN_FALSE}"; then
7695  as_fn_error $? "conditional \"BUILD_MODULE_RLOGIN\" was never defined.
7696Usually this means the macro was only invoked conditionally." "$LINENO" 5
7697fi
7698if test -z "${BUILD_MODULE_RSH_TRUE}" && test -z "${BUILD_MODULE_RSH_FALSE}"; then
7699  as_fn_error $? "conditional \"BUILD_MODULE_RSH\" was never defined.
7700Usually this means the macro was only invoked conditionally." "$LINENO" 5
7701fi
7702if test -z "${BUILD_MODULE_SMBNT_TRUE}" && test -z "${BUILD_MODULE_SMBNT_FALSE}"; then
7703  as_fn_error $? "conditional \"BUILD_MODULE_SMBNT\" was never defined.
7704Usually this means the macro was only invoked conditionally." "$LINENO" 5
7705fi
7706if test -z "${BUILD_MODULE_SMTP_TRUE}" && test -z "${BUILD_MODULE_SMTP_FALSE}"; then
7707  as_fn_error $? "conditional \"BUILD_MODULE_SMTP\" was never defined.
7708Usually this means the macro was only invoked conditionally." "$LINENO" 5
7709fi
7710if test -z "${BUILD_MODULE_SMTP_VRFY_TRUE}" && test -z "${BUILD_MODULE_SMTP_VRFY_FALSE}"; then
7711  as_fn_error $? "conditional \"BUILD_MODULE_SMTP_VRFY\" was never defined.
7712Usually this means the macro was only invoked conditionally." "$LINENO" 5
7713fi
7714if test -z "${BUILD_MODULE_SNMP_TRUE}" && test -z "${BUILD_MODULE_SNMP_FALSE}"; then
7715  as_fn_error $? "conditional \"BUILD_MODULE_SNMP\" was never defined.
7716Usually this means the macro was only invoked conditionally." "$LINENO" 5
7717fi
7718if test -z "${BUILD_MODULE_SSH_TRUE}" && test -z "${BUILD_MODULE_SSH_FALSE}"; then
7719  as_fn_error $? "conditional \"BUILD_MODULE_SSH\" was never defined.
7720Usually this means the macro was only invoked conditionally." "$LINENO" 5
7721fi
7722if test -z "${BUILD_MODULE_SVN_TRUE}" && test -z "${BUILD_MODULE_SVN_FALSE}"; then
7723  as_fn_error $? "conditional \"BUILD_MODULE_SVN\" was never defined.
7724Usually this means the macro was only invoked conditionally." "$LINENO" 5
7725fi
7726if test -z "${BUILD_MODULE_TELNET_TRUE}" && test -z "${BUILD_MODULE_TELNET_FALSE}"; then
7727  as_fn_error $? "conditional \"BUILD_MODULE_TELNET\" was never defined.
7728Usually this means the macro was only invoked conditionally." "$LINENO" 5
7729fi
7730if test -z "${BUILD_MODULE_VMAUTHD_TRUE}" && test -z "${BUILD_MODULE_VMAUTHD_FALSE}"; then
7731  as_fn_error $? "conditional \"BUILD_MODULE_VMAUTHD\" was never defined.
7732Usually this means the macro was only invoked conditionally." "$LINENO" 5
7733fi
7734if test -z "${BUILD_MODULE_VNC_TRUE}" && test -z "${BUILD_MODULE_VNC_FALSE}"; then
7735  as_fn_error $? "conditional \"BUILD_MODULE_VNC\" was never defined.
7736Usually this means the macro was only invoked conditionally." "$LINENO" 5
7737fi
7738if test -z "${BUILD_MODULE_WRAPPER_TRUE}" && test -z "${BUILD_MODULE_WRAPPER_FALSE}"; then
7739  as_fn_error $? "conditional \"BUILD_MODULE_WRAPPER\" was never defined.
7740Usually this means the macro was only invoked conditionally." "$LINENO" 5
7741fi
7742if test -z "${BUILD_MODULE_WEB_FORM_TRUE}" && test -z "${BUILD_MODULE_WEB_FORM_FALSE}"; then
7743  as_fn_error $? "conditional \"BUILD_MODULE_WEB_FORM\" was never defined.
7744Usually this means the macro was only invoked conditionally." "$LINENO" 5
7745fi
7746
7747: "${CONFIG_STATUS=./config.status}"
7748ac_write_fail=0
7749ac_clean_files_save=$ac_clean_files
7750ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7751{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7752$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7753as_write_fail=0
7754cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7755#! $SHELL
7756# Generated by $as_me.
7757# Run this file to recreate the current configuration.
7758# Compiler output produced by configure, useful for debugging
7759# configure, is in config.log if it exists.
7760
7761debug=false
7762ac_cs_recheck=false
7763ac_cs_silent=false
7764
7765SHELL=\${CONFIG_SHELL-$SHELL}
7766export SHELL
7767_ASEOF
7768cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7769## -------------------- ##
7770## M4sh Initialization. ##
7771## -------------------- ##
7772
7773# Be more Bourne compatible
7774DUALCASE=1; export DUALCASE # for MKS sh
7775if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7776  emulate sh
7777  NULLCMD=:
7778  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7779  # is contrary to our usage.  Disable this feature.
7780  alias -g '${1+"$@"}'='"$@"'
7781  setopt NO_GLOB_SUBST
7782else
7783  case `(set -o) 2>/dev/null` in #(
7784  *posix*) :
7785    set -o posix ;; #(
7786  *) :
7787     ;;
7788esac
7789fi
7790
7791
7792as_nl='
7793'
7794export as_nl
7795# Printing a long string crashes Solaris 7 /usr/bin/printf.
7796as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7797as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7798as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7799# Prefer a ksh shell builtin over an external printf program on Solaris,
7800# but without wasting forks for bash or zsh.
7801if test -z "$BASH_VERSION$ZSH_VERSION" \
7802    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7803  as_echo='print -r --'
7804  as_echo_n='print -rn --'
7805elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7806  as_echo='printf %s\n'
7807  as_echo_n='printf %s'
7808else
7809  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7810    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7811    as_echo_n='/usr/ucb/echo -n'
7812  else
7813    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7814    as_echo_n_body='eval
7815      arg=$1;
7816      case $arg in #(
7817      *"$as_nl"*)
7818	expr "X$arg" : "X\\(.*\\)$as_nl";
7819	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7820      esac;
7821      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7822    '
7823    export as_echo_n_body
7824    as_echo_n='sh -c $as_echo_n_body as_echo'
7825  fi
7826  export as_echo_body
7827  as_echo='sh -c $as_echo_body as_echo'
7828fi
7829
7830# The user is always right.
7831if test "${PATH_SEPARATOR+set}" != set; then
7832  PATH_SEPARATOR=:
7833  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7834    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7835      PATH_SEPARATOR=';'
7836  }
7837fi
7838
7839
7840# IFS
7841# We need space, tab and new line, in precisely that order.  Quoting is
7842# there to prevent editors from complaining about space-tab.
7843# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7844# splitting by setting IFS to empty value.)
7845IFS=" ""	$as_nl"
7846
7847# Find who we are.  Look in the path if we contain no directory separator.
7848as_myself=
7849case $0 in #((
7850  *[\\/]* ) as_myself=$0 ;;
7851  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852for as_dir in $PATH
7853do
7854  IFS=$as_save_IFS
7855  test -z "$as_dir" && as_dir=.
7856    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7857  done
7858IFS=$as_save_IFS
7859
7860     ;;
7861esac
7862# We did not find ourselves, most probably we were run as `sh COMMAND'
7863# in which case we are not to be found in the path.
7864if test "x$as_myself" = x; then
7865  as_myself=$0
7866fi
7867if test ! -f "$as_myself"; then
7868  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7869  exit 1
7870fi
7871
7872# Unset variables that we do not need and which cause bugs (e.g. in
7873# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7874# suppresses any "Segmentation fault" message there.  '((' could
7875# trigger a bug in pdksh 5.2.14.
7876for as_var in BASH_ENV ENV MAIL MAILPATH
7877do eval test x\${$as_var+set} = xset \
7878  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7879done
7880PS1='$ '
7881PS2='> '
7882PS4='+ '
7883
7884# NLS nuisances.
7885LC_ALL=C
7886export LC_ALL
7887LANGUAGE=C
7888export LANGUAGE
7889
7890# CDPATH.
7891(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7892
7893
7894# as_fn_error STATUS ERROR [LINENO LOG_FD]
7895# ----------------------------------------
7896# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7897# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7898# script with STATUS, using 1 if that was 0.
7899as_fn_error ()
7900{
7901  as_status=$1; test $as_status -eq 0 && as_status=1
7902  if test "$4"; then
7903    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7904    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7905  fi
7906  $as_echo "$as_me: error: $2" >&2
7907  as_fn_exit $as_status
7908} # as_fn_error
7909
7910
7911# as_fn_set_status STATUS
7912# -----------------------
7913# Set $? to STATUS, without forking.
7914as_fn_set_status ()
7915{
7916  return $1
7917} # as_fn_set_status
7918
7919# as_fn_exit STATUS
7920# -----------------
7921# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7922as_fn_exit ()
7923{
7924  set +e
7925  as_fn_set_status $1
7926  exit $1
7927} # as_fn_exit
7928
7929# as_fn_unset VAR
7930# ---------------
7931# Portably unset VAR.
7932as_fn_unset ()
7933{
7934  { eval $1=; unset $1;}
7935}
7936as_unset=as_fn_unset
7937# as_fn_append VAR VALUE
7938# ----------------------
7939# Append the text in VALUE to the end of the definition contained in VAR. Take
7940# advantage of any shell optimizations that allow amortized linear growth over
7941# repeated appends, instead of the typical quadratic growth present in naive
7942# implementations.
7943if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7944  eval 'as_fn_append ()
7945  {
7946    eval $1+=\$2
7947  }'
7948else
7949  as_fn_append ()
7950  {
7951    eval $1=\$$1\$2
7952  }
7953fi # as_fn_append
7954
7955# as_fn_arith ARG...
7956# ------------------
7957# Perform arithmetic evaluation on the ARGs, and store the result in the
7958# global $as_val. Take advantage of shells that can avoid forks. The arguments
7959# must be portable across $(()) and expr.
7960if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7961  eval 'as_fn_arith ()
7962  {
7963    as_val=$(( $* ))
7964  }'
7965else
7966  as_fn_arith ()
7967  {
7968    as_val=`expr "$@" || test $? -eq 1`
7969  }
7970fi # as_fn_arith
7971
7972
7973if expr a : '\(a\)' >/dev/null 2>&1 &&
7974   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7975  as_expr=expr
7976else
7977  as_expr=false
7978fi
7979
7980if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7981  as_basename=basename
7982else
7983  as_basename=false
7984fi
7985
7986if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7987  as_dirname=dirname
7988else
7989  as_dirname=false
7990fi
7991
7992as_me=`$as_basename -- "$0" ||
7993$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7994	 X"$0" : 'X\(//\)$' \| \
7995	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7996$as_echo X/"$0" |
7997    sed '/^.*\/\([^/][^/]*\)\/*$/{
7998	    s//\1/
7999	    q
8000	  }
8001	  /^X\/\(\/\/\)$/{
8002	    s//\1/
8003	    q
8004	  }
8005	  /^X\/\(\/\).*/{
8006	    s//\1/
8007	    q
8008	  }
8009	  s/.*/./; q'`
8010
8011# Avoid depending upon Character Ranges.
8012as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8013as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8014as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8015as_cr_digits='0123456789'
8016as_cr_alnum=$as_cr_Letters$as_cr_digits
8017
8018ECHO_C= ECHO_N= ECHO_T=
8019case `echo -n x` in #(((((
8020-n*)
8021  case `echo 'xy\c'` in
8022  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
8023  xy)  ECHO_C='\c';;
8024  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
8025       ECHO_T='	';;
8026  esac;;
8027*)
8028  ECHO_N='-n';;
8029esac
8030
8031rm -f conf$$ conf$$.exe conf$$.file
8032if test -d conf$$.dir; then
8033  rm -f conf$$.dir/conf$$.file
8034else
8035  rm -f conf$$.dir
8036  mkdir conf$$.dir 2>/dev/null
8037fi
8038if (echo >conf$$.file) 2>/dev/null; then
8039  if ln -s conf$$.file conf$$ 2>/dev/null; then
8040    as_ln_s='ln -s'
8041    # ... but there are two gotchas:
8042    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8043    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8044    # In both cases, we have to default to `cp -pR'.
8045    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8046      as_ln_s='cp -pR'
8047  elif ln conf$$.file conf$$ 2>/dev/null; then
8048    as_ln_s=ln
8049  else
8050    as_ln_s='cp -pR'
8051  fi
8052else
8053  as_ln_s='cp -pR'
8054fi
8055rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8056rmdir conf$$.dir 2>/dev/null
8057
8058
8059# as_fn_mkdir_p
8060# -------------
8061# Create "$as_dir" as a directory, including parents if necessary.
8062as_fn_mkdir_p ()
8063{
8064
8065  case $as_dir in #(
8066  -*) as_dir=./$as_dir;;
8067  esac
8068  test -d "$as_dir" || eval $as_mkdir_p || {
8069    as_dirs=
8070    while :; do
8071      case $as_dir in #(
8072      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8073      *) as_qdir=$as_dir;;
8074      esac
8075      as_dirs="'$as_qdir' $as_dirs"
8076      as_dir=`$as_dirname -- "$as_dir" ||
8077$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8078	 X"$as_dir" : 'X\(//\)[^/]' \| \
8079	 X"$as_dir" : 'X\(//\)$' \| \
8080	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8081$as_echo X"$as_dir" |
8082    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8083	    s//\1/
8084	    q
8085	  }
8086	  /^X\(\/\/\)[^/].*/{
8087	    s//\1/
8088	    q
8089	  }
8090	  /^X\(\/\/\)$/{
8091	    s//\1/
8092	    q
8093	  }
8094	  /^X\(\/\).*/{
8095	    s//\1/
8096	    q
8097	  }
8098	  s/.*/./; q'`
8099      test -d "$as_dir" && break
8100    done
8101    test -z "$as_dirs" || eval "mkdir $as_dirs"
8102  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8103
8104
8105} # as_fn_mkdir_p
8106if mkdir -p . 2>/dev/null; then
8107  as_mkdir_p='mkdir -p "$as_dir"'
8108else
8109  test -d ./-p && rmdir ./-p
8110  as_mkdir_p=false
8111fi
8112
8113
8114# as_fn_executable_p FILE
8115# -----------------------
8116# Test if FILE is an executable regular file.
8117as_fn_executable_p ()
8118{
8119  test -f "$1" && test -x "$1"
8120} # as_fn_executable_p
8121as_test_x='test -x'
8122as_executable_p=as_fn_executable_p
8123
8124# Sed expression to map a string onto a valid CPP name.
8125as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8126
8127# Sed expression to map a string onto a valid variable name.
8128as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8129
8130
8131exec 6>&1
8132## ----------------------------------- ##
8133## Main body of $CONFIG_STATUS script. ##
8134## ----------------------------------- ##
8135_ASEOF
8136test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8137
8138cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8139# Save the log message, to keep $0 and so on meaningful, and to
8140# report actual input values of CONFIG_FILES etc. instead of their
8141# values after options handling.
8142ac_log="
8143This file was extended by medusa $as_me 2.2, which was
8144generated by GNU Autoconf 2.69.  Invocation command line was
8145
8146  CONFIG_FILES    = $CONFIG_FILES
8147  CONFIG_HEADERS  = $CONFIG_HEADERS
8148  CONFIG_LINKS    = $CONFIG_LINKS
8149  CONFIG_COMMANDS = $CONFIG_COMMANDS
8150  $ $0 $@
8151
8152on `(hostname || uname -n) 2>/dev/null | sed 1q`
8153"
8154
8155_ACEOF
8156
8157case $ac_config_files in *"
8158"*) set x $ac_config_files; shift; ac_config_files=$*;;
8159esac
8160
8161case $ac_config_headers in *"
8162"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8163esac
8164
8165
8166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8167# Files that config.status was made for.
8168config_files="$ac_config_files"
8169config_headers="$ac_config_headers"
8170config_commands="$ac_config_commands"
8171
8172_ACEOF
8173
8174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8175ac_cs_usage="\
8176\`$as_me' instantiates files and other configuration actions
8177from templates according to the current configuration.  Unless the files
8178and actions are specified as TAGs, all are instantiated by default.
8179
8180Usage: $0 [OPTION]... [TAG]...
8181
8182  -h, --help       print this help, then exit
8183  -V, --version    print version number and configuration settings, then exit
8184      --config     print configuration, then exit
8185  -q, --quiet, --silent
8186                   do not print progress messages
8187  -d, --debug      don't remove temporary files
8188      --recheck    update $as_me by reconfiguring in the same conditions
8189      --file=FILE[:TEMPLATE]
8190                   instantiate the configuration file FILE
8191      --header=FILE[:TEMPLATE]
8192                   instantiate the configuration header FILE
8193
8194Configuration files:
8195$config_files
8196
8197Configuration headers:
8198$config_headers
8199
8200Configuration commands:
8201$config_commands
8202
8203Report bugs to the package provider."
8204
8205_ACEOF
8206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8207ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8208ac_cs_version="\\
8209medusa config.status 2.2
8210configured by $0, generated by GNU Autoconf 2.69,
8211  with options \\"\$ac_cs_config\\"
8212
8213Copyright (C) 2012 Free Software Foundation, Inc.
8214This config.status script is free software; the Free Software Foundation
8215gives unlimited permission to copy, distribute and modify it."
8216
8217ac_pwd='$ac_pwd'
8218srcdir='$srcdir'
8219INSTALL='$INSTALL'
8220MKDIR_P='$MKDIR_P'
8221AWK='$AWK'
8222test -n "\$AWK" || AWK=awk
8223_ACEOF
8224
8225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8226# The default lists apply if the user does not specify any file.
8227ac_need_defaults=:
8228while test $# != 0
8229do
8230  case $1 in
8231  --*=?*)
8232    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8233    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8234    ac_shift=:
8235    ;;
8236  --*=)
8237    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8238    ac_optarg=
8239    ac_shift=:
8240    ;;
8241  *)
8242    ac_option=$1
8243    ac_optarg=$2
8244    ac_shift=shift
8245    ;;
8246  esac
8247
8248  case $ac_option in
8249  # Handling of the options.
8250  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8251    ac_cs_recheck=: ;;
8252  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8253    $as_echo "$ac_cs_version"; exit ;;
8254  --config | --confi | --conf | --con | --co | --c )
8255    $as_echo "$ac_cs_config"; exit ;;
8256  --debug | --debu | --deb | --de | --d | -d )
8257    debug=: ;;
8258  --file | --fil | --fi | --f )
8259    $ac_shift
8260    case $ac_optarg in
8261    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8262    '') as_fn_error $? "missing file argument" ;;
8263    esac
8264    as_fn_append CONFIG_FILES " '$ac_optarg'"
8265    ac_need_defaults=false;;
8266  --header | --heade | --head | --hea )
8267    $ac_shift
8268    case $ac_optarg in
8269    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8270    esac
8271    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8272    ac_need_defaults=false;;
8273  --he | --h)
8274    # Conflict between --help and --header
8275    as_fn_error $? "ambiguous option: \`$1'
8276Try \`$0 --help' for more information.";;
8277  --help | --hel | -h )
8278    $as_echo "$ac_cs_usage"; exit ;;
8279  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8280  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8281    ac_cs_silent=: ;;
8282
8283  # This is an error.
8284  -*) as_fn_error $? "unrecognized option: \`$1'
8285Try \`$0 --help' for more information." ;;
8286
8287  *) as_fn_append ac_config_targets " $1"
8288     ac_need_defaults=false ;;
8289
8290  esac
8291  shift
8292done
8293
8294ac_configure_extra_args=
8295
8296if $ac_cs_silent; then
8297  exec 6>/dev/null
8298  ac_configure_extra_args="$ac_configure_extra_args --silent"
8299fi
8300
8301_ACEOF
8302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8303if \$ac_cs_recheck; then
8304  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8305  shift
8306  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8307  CONFIG_SHELL='$SHELL'
8308  export CONFIG_SHELL
8309  exec "\$@"
8310fi
8311
8312_ACEOF
8313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8314exec 5>>config.log
8315{
8316  echo
8317  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8318## Running $as_me. ##
8319_ASBOX
8320  $as_echo "$ac_log"
8321} >&5
8322
8323_ACEOF
8324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8325#
8326# INIT-COMMANDS
8327#
8328AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8329
8330_ACEOF
8331
8332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8333
8334# Handling of arguments.
8335for ac_config_target in $ac_config_targets
8336do
8337  case $ac_config_target in
8338    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8339    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8340    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8341    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8342    "src/modsrc/Makefile") CONFIG_FILES="$CONFIG_FILES src/modsrc/Makefile" ;;
8343
8344  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8345  esac
8346done
8347
8348
8349# If the user did not use the arguments to specify the items to instantiate,
8350# then the envvar interface is used.  Set only those that are not.
8351# We use the long form for the default assignment because of an extremely
8352# bizarre bug on SunOS 4.1.3.
8353if $ac_need_defaults; then
8354  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8355  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8356  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8357fi
8358
8359# Have a temporary directory for convenience.  Make it in the build tree
8360# simply because there is no reason against having it here, and in addition,
8361# creating and moving files from /tmp can sometimes cause problems.
8362# Hook for its removal unless debugging.
8363# Note that there is a small window in which the directory will not be cleaned:
8364# after its creation but before its name has been assigned to `$tmp'.
8365$debug ||
8366{
8367  tmp= ac_tmp=
8368  trap 'exit_status=$?
8369  : "${ac_tmp:=$tmp}"
8370  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8371' 0
8372  trap 'as_fn_exit 1' 1 2 13 15
8373}
8374# Create a (secure) tmp directory for tmp files.
8375
8376{
8377  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8378  test -d "$tmp"
8379}  ||
8380{
8381  tmp=./conf$$-$RANDOM
8382  (umask 077 && mkdir "$tmp")
8383} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8384ac_tmp=$tmp
8385
8386# Set up the scripts for CONFIG_FILES section.
8387# No need to generate them if there are no CONFIG_FILES.
8388# This happens for instance with `./config.status config.h'.
8389if test -n "$CONFIG_FILES"; then
8390
8391
8392ac_cr=`echo X | tr X '\015'`
8393# On cygwin, bash can eat \r inside `` if the user requested igncr.
8394# But we know of no other shell where ac_cr would be empty at this
8395# point, so we can use a bashism as a fallback.
8396if test "x$ac_cr" = x; then
8397  eval ac_cr=\$\'\\r\'
8398fi
8399ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8400if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8401  ac_cs_awk_cr='\\r'
8402else
8403  ac_cs_awk_cr=$ac_cr
8404fi
8405
8406echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8407_ACEOF
8408
8409
8410{
8411  echo "cat >conf$$subs.awk <<_ACEOF" &&
8412  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8413  echo "_ACEOF"
8414} >conf$$subs.sh ||
8415  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8416ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8417ac_delim='%!_!# '
8418for ac_last_try in false false false false false :; do
8419  . ./conf$$subs.sh ||
8420    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8421
8422  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8423  if test $ac_delim_n = $ac_delim_num; then
8424    break
8425  elif $ac_last_try; then
8426    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8427  else
8428    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8429  fi
8430done
8431rm -f conf$$subs.sh
8432
8433cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8434cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8435_ACEOF
8436sed -n '
8437h
8438s/^/S["/; s/!.*/"]=/
8439p
8440g
8441s/^[^!]*!//
8442:repl
8443t repl
8444s/'"$ac_delim"'$//
8445t delim
8446:nl
8447h
8448s/\(.\{148\}\)..*/\1/
8449t more1
8450s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8451p
8452n
8453b repl
8454:more1
8455s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8456p
8457g
8458s/.\{148\}//
8459t nl
8460:delim
8461h
8462s/\(.\{148\}\)..*/\1/
8463t more2
8464s/["\\]/\\&/g; s/^/"/; s/$/"/
8465p
8466b
8467:more2
8468s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8469p
8470g
8471s/.\{148\}//
8472t delim
8473' <conf$$subs.awk | sed '
8474/^[^""]/{
8475  N
8476  s/\n//
8477}
8478' >>$CONFIG_STATUS || ac_write_fail=1
8479rm -f conf$$subs.awk
8480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8481_ACAWK
8482cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8483  for (key in S) S_is_set[key] = 1
8484  FS = ""
8485
8486}
8487{
8488  line = $ 0
8489  nfields = split(line, field, "@")
8490  substed = 0
8491  len = length(field[1])
8492  for (i = 2; i < nfields; i++) {
8493    key = field[i]
8494    keylen = length(key)
8495    if (S_is_set[key]) {
8496      value = S[key]
8497      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8498      len += length(value) + length(field[++i])
8499      substed = 1
8500    } else
8501      len += 1 + keylen
8502  }
8503
8504  print line
8505}
8506
8507_ACAWK
8508_ACEOF
8509cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8510if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8511  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8512else
8513  cat
8514fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8515  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8516_ACEOF
8517
8518# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8519# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8520# trailing colons and then remove the whole line if VPATH becomes empty
8521# (actually we leave an empty line to preserve line numbers).
8522if test "x$srcdir" = x.; then
8523  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
8524h
8525s///
8526s/^/:/
8527s/[	 ]*$/:/
8528s/:\$(srcdir):/:/g
8529s/:\${srcdir}:/:/g
8530s/:@srcdir@:/:/g
8531s/^:*//
8532s/:*$//
8533x
8534s/\(=[	 ]*\).*/\1/
8535G
8536s/\n//
8537s/^[^=]*=[	 ]*$//
8538}'
8539fi
8540
8541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8542fi # test -n "$CONFIG_FILES"
8543
8544# Set up the scripts for CONFIG_HEADERS section.
8545# No need to generate them if there are no CONFIG_HEADERS.
8546# This happens for instance with `./config.status Makefile'.
8547if test -n "$CONFIG_HEADERS"; then
8548cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8549BEGIN {
8550_ACEOF
8551
8552# Transform confdefs.h into an awk script `defines.awk', embedded as
8553# here-document in config.status, that substitutes the proper values into
8554# config.h.in to produce config.h.
8555
8556# Create a delimiter string that does not exist in confdefs.h, to ease
8557# handling of long lines.
8558ac_delim='%!_!# '
8559for ac_last_try in false false :; do
8560  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8561  if test -z "$ac_tt"; then
8562    break
8563  elif $ac_last_try; then
8564    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8565  else
8566    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8567  fi
8568done
8569
8570# For the awk script, D is an array of macro values keyed by name,
8571# likewise P contains macro parameters if any.  Preserve backslash
8572# newline sequences.
8573
8574ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8575sed -n '
8576s/.\{148\}/&'"$ac_delim"'/g
8577t rset
8578:rset
8579s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
8580t def
8581d
8582:def
8583s/\\$//
8584t bsnl
8585s/["\\]/\\&/g
8586s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
8587D["\1"]=" \3"/p
8588s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
8589d
8590:bsnl
8591s/["\\]/\\&/g
8592s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
8593D["\1"]=" \3\\\\\\n"\\/p
8594t cont
8595s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8596t cont
8597d
8598:cont
8599n
8600s/.\{148\}/&'"$ac_delim"'/g
8601t clear
8602:clear
8603s/\\$//
8604t bsnlc
8605s/["\\]/\\&/g; s/^/"/; s/$/"/p
8606d
8607:bsnlc
8608s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8609b cont
8610' <confdefs.h | sed '
8611s/'"$ac_delim"'/"\\\
8612"/g' >>$CONFIG_STATUS || ac_write_fail=1
8613
8614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8615  for (key in D) D_is_set[key] = 1
8616  FS = ""
8617}
8618/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8619  line = \$ 0
8620  split(line, arg, " ")
8621  if (arg[1] == "#") {
8622    defundef = arg[2]
8623    mac1 = arg[3]
8624  } else {
8625    defundef = substr(arg[1], 2)
8626    mac1 = arg[2]
8627  }
8628  split(mac1, mac2, "(") #)
8629  macro = mac2[1]
8630  prefix = substr(line, 1, index(line, defundef) - 1)
8631  if (D_is_set[macro]) {
8632    # Preserve the white space surrounding the "#".
8633    print prefix "define", macro P[macro] D[macro]
8634    next
8635  } else {
8636    # Replace #undef with comments.  This is necessary, for example,
8637    # in the case of _POSIX_SOURCE, which is predefined and required
8638    # on some systems where configure will not decide to define it.
8639    if (defundef == "undef") {
8640      print "/*", prefix defundef, macro, "*/"
8641      next
8642    }
8643  }
8644}
8645{ print }
8646_ACAWK
8647_ACEOF
8648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8649  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8650fi # test -n "$CONFIG_HEADERS"
8651
8652
8653eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
8654shift
8655for ac_tag
8656do
8657  case $ac_tag in
8658  :[FHLC]) ac_mode=$ac_tag; continue;;
8659  esac
8660  case $ac_mode$ac_tag in
8661  :[FHL]*:*);;
8662  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8663  :[FH]-) ac_tag=-:-;;
8664  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8665  esac
8666  ac_save_IFS=$IFS
8667  IFS=:
8668  set x $ac_tag
8669  IFS=$ac_save_IFS
8670  shift
8671  ac_file=$1
8672  shift
8673
8674  case $ac_mode in
8675  :L) ac_source=$1;;
8676  :[FH])
8677    ac_file_inputs=
8678    for ac_f
8679    do
8680      case $ac_f in
8681      -) ac_f="$ac_tmp/stdin";;
8682      *) # Look for the file first in the build tree, then in the source tree
8683	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
8684	 # because $ac_f cannot contain `:'.
8685	 test -f "$ac_f" ||
8686	   case $ac_f in
8687	   [\\/$]*) false;;
8688	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8689	   esac ||
8690	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8691      esac
8692      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8693      as_fn_append ac_file_inputs " '$ac_f'"
8694    done
8695
8696    # Let's still pretend it is `configure' which instantiates (i.e., don't
8697    # use $as_me), people would be surprised to read:
8698    #    /* config.h.  Generated by config.status.  */
8699    configure_input='Generated from '`
8700	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8701	`' by configure.'
8702    if test x"$ac_file" != x-; then
8703      configure_input="$ac_file.  $configure_input"
8704      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8705$as_echo "$as_me: creating $ac_file" >&6;}
8706    fi
8707    # Neutralize special characters interpreted by sed in replacement strings.
8708    case $configure_input in #(
8709    *\&* | *\|* | *\\* )
8710       ac_sed_conf_input=`$as_echo "$configure_input" |
8711       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8712    *) ac_sed_conf_input=$configure_input;;
8713    esac
8714
8715    case $ac_tag in
8716    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8717      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8718    esac
8719    ;;
8720  esac
8721
8722  ac_dir=`$as_dirname -- "$ac_file" ||
8723$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8724	 X"$ac_file" : 'X\(//\)[^/]' \| \
8725	 X"$ac_file" : 'X\(//\)$' \| \
8726	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8727$as_echo X"$ac_file" |
8728    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8729	    s//\1/
8730	    q
8731	  }
8732	  /^X\(\/\/\)[^/].*/{
8733	    s//\1/
8734	    q
8735	  }
8736	  /^X\(\/\/\)$/{
8737	    s//\1/
8738	    q
8739	  }
8740	  /^X\(\/\).*/{
8741	    s//\1/
8742	    q
8743	  }
8744	  s/.*/./; q'`
8745  as_dir="$ac_dir"; as_fn_mkdir_p
8746  ac_builddir=.
8747
8748case "$ac_dir" in
8749.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8750*)
8751  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8752  # A ".." for each directory in $ac_dir_suffix.
8753  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8754  case $ac_top_builddir_sub in
8755  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8756  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8757  esac ;;
8758esac
8759ac_abs_top_builddir=$ac_pwd
8760ac_abs_builddir=$ac_pwd$ac_dir_suffix
8761# for backward compatibility:
8762ac_top_builddir=$ac_top_build_prefix
8763
8764case $srcdir in
8765  .)  # We are building in place.
8766    ac_srcdir=.
8767    ac_top_srcdir=$ac_top_builddir_sub
8768    ac_abs_top_srcdir=$ac_pwd ;;
8769  [\\/]* | ?:[\\/]* )  # Absolute name.
8770    ac_srcdir=$srcdir$ac_dir_suffix;
8771    ac_top_srcdir=$srcdir
8772    ac_abs_top_srcdir=$srcdir ;;
8773  *) # Relative name.
8774    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8775    ac_top_srcdir=$ac_top_build_prefix$srcdir
8776    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8777esac
8778ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8779
8780
8781  case $ac_mode in
8782  :F)
8783  #
8784  # CONFIG_FILE
8785  #
8786
8787  case $INSTALL in
8788  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8789  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8790  esac
8791  ac_MKDIR_P=$MKDIR_P
8792  case $MKDIR_P in
8793  [\\/$]* | ?:[\\/]* ) ;;
8794  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8795  esac
8796_ACEOF
8797
8798cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8799# If the template does not know about datarootdir, expand it.
8800# FIXME: This hack should be removed a few years after 2.60.
8801ac_datarootdir_hack=; ac_datarootdir_seen=
8802ac_sed_dataroot='
8803/datarootdir/ {
8804  p
8805  q
8806}
8807/@datadir@/p
8808/@docdir@/p
8809/@infodir@/p
8810/@localedir@/p
8811/@mandir@/p'
8812case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8813*datarootdir*) ac_datarootdir_seen=yes;;
8814*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8815  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8816$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8817_ACEOF
8818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8819  ac_datarootdir_hack='
8820  s&@datadir@&$datadir&g
8821  s&@docdir@&$docdir&g
8822  s&@infodir@&$infodir&g
8823  s&@localedir@&$localedir&g
8824  s&@mandir@&$mandir&g
8825  s&\\\${datarootdir}&$datarootdir&g' ;;
8826esac
8827_ACEOF
8828
8829# Neutralize VPATH when `$srcdir' = `.'.
8830# Shell code in configure.ac might set extrasub.
8831# FIXME: do we really want to maintain this feature?
8832cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8833ac_sed_extra="$ac_vpsub
8834$extrasub
8835_ACEOF
8836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8837:t
8838/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8839s|@configure_input@|$ac_sed_conf_input|;t t
8840s&@top_builddir@&$ac_top_builddir_sub&;t t
8841s&@top_build_prefix@&$ac_top_build_prefix&;t t
8842s&@srcdir@&$ac_srcdir&;t t
8843s&@abs_srcdir@&$ac_abs_srcdir&;t t
8844s&@top_srcdir@&$ac_top_srcdir&;t t
8845s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8846s&@builddir@&$ac_builddir&;t t
8847s&@abs_builddir@&$ac_abs_builddir&;t t
8848s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8849s&@INSTALL@&$ac_INSTALL&;t t
8850s&@MKDIR_P@&$ac_MKDIR_P&;t t
8851$ac_datarootdir_hack
8852"
8853eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8854  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8855
8856test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8857  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8858  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
8859      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8860  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8861which seems to be undefined.  Please make sure it is defined" >&5
8862$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8863which seems to be undefined.  Please make sure it is defined" >&2;}
8864
8865  rm -f "$ac_tmp/stdin"
8866  case $ac_file in
8867  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8868  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8869  esac \
8870  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8871 ;;
8872  :H)
8873  #
8874  # CONFIG_HEADER
8875  #
8876  if test x"$ac_file" != x-; then
8877    {
8878      $as_echo "/* $configure_input  */" \
8879      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8880    } >"$ac_tmp/config.h" \
8881      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8882    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8883      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8884$as_echo "$as_me: $ac_file is unchanged" >&6;}
8885    else
8886      rm -f "$ac_file"
8887      mv "$ac_tmp/config.h" "$ac_file" \
8888	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
8889    fi
8890  else
8891    $as_echo "/* $configure_input  */" \
8892      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8893      || as_fn_error $? "could not create -" "$LINENO" 5
8894  fi
8895# Compute "$ac_file"'s index in $config_headers.
8896_am_arg="$ac_file"
8897_am_stamp_count=1
8898for _am_header in $config_headers :; do
8899  case $_am_header in
8900    $_am_arg | $_am_arg:* )
8901      break ;;
8902    * )
8903      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8904  esac
8905done
8906echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8907$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8908	 X"$_am_arg" : 'X\(//\)[^/]' \| \
8909	 X"$_am_arg" : 'X\(//\)$' \| \
8910	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8911$as_echo X"$_am_arg" |
8912    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8913	    s//\1/
8914	    q
8915	  }
8916	  /^X\(\/\/\)[^/].*/{
8917	    s//\1/
8918	    q
8919	  }
8920	  /^X\(\/\/\)$/{
8921	    s//\1/
8922	    q
8923	  }
8924	  /^X\(\/\).*/{
8925	    s//\1/
8926	    q
8927	  }
8928	  s/.*/./; q'`/stamp-h$_am_stamp_count
8929 ;;
8930
8931  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8932$as_echo "$as_me: executing $ac_file commands" >&6;}
8933 ;;
8934  esac
8935
8936
8937  case $ac_file$ac_mode in
8938    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8939  # Older Autoconf quotes --file arguments for eval, but not when files
8940  # are listed without --file.  Let's play safe and only enable the eval
8941  # if we detect the quoting.
8942  case $CONFIG_FILES in
8943  *\'*) eval set x "$CONFIG_FILES" ;;
8944  *)   set x $CONFIG_FILES ;;
8945  esac
8946  shift
8947  for mf
8948  do
8949    # Strip MF so we end up with the name of the file.
8950    mf=`echo "$mf" | sed -e 's/:.*$//'`
8951    # Check whether this is an Automake generated Makefile or not.
8952    # We used to match only the files named 'Makefile.in', but
8953    # some people rename them; so instead we look at the file content.
8954    # Grep'ing the first line is not enough: some people post-process
8955    # each Makefile.in and add a new line on top of each file to say so.
8956    # Grep'ing the whole file is not good either: AIX grep has a line
8957    # limit of 2048, but all sed's we know have understand at least 4000.
8958    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8959      dirpart=`$as_dirname -- "$mf" ||
8960$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8961	 X"$mf" : 'X\(//\)[^/]' \| \
8962	 X"$mf" : 'X\(//\)$' \| \
8963	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8964$as_echo X"$mf" |
8965    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8966	    s//\1/
8967	    q
8968	  }
8969	  /^X\(\/\/\)[^/].*/{
8970	    s//\1/
8971	    q
8972	  }
8973	  /^X\(\/\/\)$/{
8974	    s//\1/
8975	    q
8976	  }
8977	  /^X\(\/\).*/{
8978	    s//\1/
8979	    q
8980	  }
8981	  s/.*/./; q'`
8982    else
8983      continue
8984    fi
8985    # Extract the definition of DEPDIR, am__include, and am__quote
8986    # from the Makefile without running 'make'.
8987    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8988    test -z "$DEPDIR" && continue
8989    am__include=`sed -n 's/^am__include = //p' < "$mf"`
8990    test -z "$am__include" && continue
8991    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8992    # Find all dependency output files, they are included files with
8993    # $(DEPDIR) in their names.  We invoke sed twice because it is the
8994    # simplest approach to changing $(DEPDIR) to its actual value in the
8995    # expansion.
8996    for file in `sed -n "
8997      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8998	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8999      # Make sure the directory exists.
9000      test -f "$dirpart/$file" && continue
9001      fdir=`$as_dirname -- "$file" ||
9002$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9003	 X"$file" : 'X\(//\)[^/]' \| \
9004	 X"$file" : 'X\(//\)$' \| \
9005	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9006$as_echo X"$file" |
9007    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9008	    s//\1/
9009	    q
9010	  }
9011	  /^X\(\/\/\)[^/].*/{
9012	    s//\1/
9013	    q
9014	  }
9015	  /^X\(\/\/\)$/{
9016	    s//\1/
9017	    q
9018	  }
9019	  /^X\(\/\).*/{
9020	    s//\1/
9021	    q
9022	  }
9023	  s/.*/./; q'`
9024      as_dir=$dirpart/$fdir; as_fn_mkdir_p
9025      # echo "creating $dirpart/$file"
9026      echo '# dummy' > "$dirpart/$file"
9027    done
9028  done
9029}
9030 ;;
9031
9032  esac
9033done # for ac_tag
9034
9035
9036as_fn_exit 0
9037_ACEOF
9038ac_clean_files=$ac_clean_files_save
9039
9040test $ac_write_fail = 0 ||
9041  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9042
9043
9044# configure is writing to config.log, and then calls config.status.
9045# config.status does its own redirection, appending to config.log.
9046# Unfortunately, on DOS this fails, as config.log is still kept open
9047# by configure, so config.status won't be able to write to it; its
9048# output is simply discarded.  So we exec the FD to /dev/null,
9049# effectively closing config.log, so it can be properly (re)opened and
9050# appended to by config.status.  When coming back to configure, we
9051# need to make the FD available again.
9052if test "$no_create" != yes; then
9053  ac_cs_success=:
9054  ac_config_status_args=
9055  test "$silent" = yes &&
9056    ac_config_status_args="$ac_config_status_args --quiet"
9057  exec 5>/dev/null
9058  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9059  exec 5>>config.log
9060  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9061  # would make configure fail if this is the last instruction.
9062  $ac_cs_success || as_fn_exit 1
9063fi
9064if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9065  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9066$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9067fi
9068
9069