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