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