xref: /freebsd/contrib/ntp/sntp/libevent/configure (revision 61e21613)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libevent 2.1.12-stable.
4#
5#
6# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7# Inc.
8#
9#
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## -------------------- ##
13## M4sh Initialization. ##
14## -------------------- ##
15
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18as_nop=:
19if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20then :
21  emulate sh
22  NULLCMD=:
23  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24  # is contrary to our usage.  Disable this feature.
25  alias -g '${1+"$@"}'='"$@"'
26  setopt NO_GLOB_SUBST
27else $as_nop
28  case `(set -o) 2>/dev/null` in #(
29  *posix*) :
30    set -o posix ;; #(
31  *) :
32     ;;
33esac
34fi
35
36
37
38# Reset variables that may have inherited troublesome values from
39# the environment.
40
41# IFS needs to be set, to space, tab, and newline, in precisely that order.
42# (If _AS_PATH_WALK were called with IFS unset, it would have the
43# side effect of setting IFS to empty, thus disabling word splitting.)
44# Quoting is to prevent editors from complaining about space-tab.
45as_nl='
46'
47export as_nl
48IFS=" ""	$as_nl"
49
50PS1='$ '
51PS2='> '
52PS4='+ '
53
54# Ensure predictable behavior from utilities with locale-dependent output.
55LC_ALL=C
56export LC_ALL
57LANGUAGE=C
58export LANGUAGE
59
60# We cannot yet rely on "unset" to work, but we need these variables
61# to be unset--not just set to an empty or harmless value--now, to
62# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
63# also avoids known problems related to "unset" and subshell syntax
64# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66do eval test \${$as_var+y} \
67  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68done
69
70# Ensure that fds 0, 1, and 2 are open.
71if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
74
75# The user is always right.
76if ${PATH_SEPARATOR+false} :; then
77  PATH_SEPARATOR=:
78  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80      PATH_SEPARATOR=';'
81  }
82fi
83
84
85# Find who we are.  Look in the path if we contain no directory separator.
86as_myself=
87case $0 in #((
88  *[\\/]* ) as_myself=$0 ;;
89  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90for as_dir in $PATH
91do
92  IFS=$as_save_IFS
93  case $as_dir in #(((
94    '') as_dir=./ ;;
95    */) ;;
96    *) as_dir=$as_dir/ ;;
97  esac
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  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114
115# Use a proper internal environment variable to ensure we don't fall
116  # into an infinite loop, continuously re-executing ourselves.
117  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118    _as_can_reexec=no; export _as_can_reexec;
119    # We cannot yet assume a decent shell, so we have to provide a
120# neutralization value for shells without unset; and this also
121# works around shells that cannot unset nonexistent variables.
122# Preserve -v and -x to the replacement shell.
123BASH_ENV=/dev/null
124ENV=/dev/null
125(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126case $- in # ((((
127  *v*x* | *x*v* ) as_opts=-vx ;;
128  *v* ) as_opts=-v ;;
129  *x* ) as_opts=-x ;;
130  * ) as_opts= ;;
131esac
132exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133# Admittedly, this is quite paranoid, since all the known shells bail
134# out after a failed `exec'.
135printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136exit 255
137  fi
138  # We don't want this to propagate to other subprocesses.
139          { _as_can_reexec=; unset _as_can_reexec;}
140if test "x$CONFIG_SHELL" = x; then
141  as_bourne_compatible="as_nop=:
142if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143then :
144  emulate sh
145  NULLCMD=:
146  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147  # is contrary to our usage.  Disable this feature.
148  alias -g '\${1+\"\$@\"}'='\"\$@\"'
149  setopt NO_GLOB_SUBST
150else \$as_nop
151  case \`(set -o) 2>/dev/null\` in #(
152  *posix*) :
153    set -o posix ;; #(
154  *) :
155     ;;
156esac
157fi
158"
159  as_required="as_fn_return () { (exit \$1); }
160as_fn_success () { as_fn_return 0; }
161as_fn_failure () { as_fn_return 1; }
162as_fn_ret_success () { return 0; }
163as_fn_ret_failure () { return 1; }
164
165exitcode=0
166as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171then :
172
173else \$as_nop
174  exitcode=1; echo positional parameters were not saved.
175fi
176test x\$exitcode = x0 || exit 1
177blah=\$(echo \$(echo blah))
178test x\"\$blah\" = xblah || exit 1
179test -x / || exit 1"
180  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184test \$(( 1 + 1 )) = 2 || exit 1
185
186  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
187    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
188    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    PATH=/empty FPATH=/empty; export PATH FPATH
191    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
192      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
193  if (eval "$as_required") 2>/dev/null
194then :
195  as_have_required=yes
196else $as_nop
197  as_have_required=no
198fi
199  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
200then :
201
202else $as_nop
203  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
204as_found=false
205for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
206do
207  IFS=$as_save_IFS
208  case $as_dir in #(((
209    '') as_dir=./ ;;
210    */) ;;
211    *) as_dir=$as_dir/ ;;
212  esac
213  as_found=:
214  case $as_dir in #(
215	 /*)
216	   for as_base in sh bash ksh sh5; do
217	     # Try only shells that exist, to save several forks.
218	     as_shell=$as_dir$as_base
219	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
221then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
224then :
225  break 2
226fi
227fi
228	   done;;
229       esac
230  as_found=false
231done
232IFS=$as_save_IFS
233if $as_found
234then :
235
236else $as_nop
237  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
238	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
239then :
240  CONFIG_SHELL=$SHELL as_have_required=yes
241fi
242fi
243
244
245      if test "x$CONFIG_SHELL" != x
246then :
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'.
264printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno
269then :
270  printf "%s\n" "$0: This script requires a shell more modern than all"
271  printf "%s\n" "$0: the shells that I found on your system."
272  if test ${ZSH_VERSION+y} ; then
273    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
275  else
276    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
277$0: including any error possibly output before this
278$0: message. Then install a modern shell, or manually run
279$0: the script under such a shell if you do have one."
280  fi
281  exit 1
282fi
283fi
284fi
285SHELL=${CONFIG_SHELL-/bin/sh}
286export SHELL
287# Unset more variables known to interfere with behavior of common tools.
288CLICOLOR_FORCE= GREP_OPTIONS=
289unset CLICOLOR_FORCE GREP_OPTIONS
290
291## --------------------- ##
292## M4sh Shell Functions. ##
293## --------------------- ##
294# as_fn_unset VAR
295# ---------------
296# Portably unset VAR.
297as_fn_unset ()
298{
299  { eval $1=; unset $1;}
300}
301as_unset=as_fn_unset
302
303
304# as_fn_set_status STATUS
305# -----------------------
306# Set $? to STATUS, without forking.
307as_fn_set_status ()
308{
309  return $1
310} # as_fn_set_status
311
312# as_fn_exit STATUS
313# -----------------
314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315as_fn_exit ()
316{
317  set +e
318  as_fn_set_status $1
319  exit $1
320} # as_fn_exit
321# as_fn_nop
322# ---------
323# Do nothing but, unlike ":", preserve the value of $?.
324as_fn_nop ()
325{
326  return $?
327}
328as_nop=as_fn_nop
329
330# as_fn_mkdir_p
331# -------------
332# Create "$as_dir" as a directory, including parents if necessary.
333as_fn_mkdir_p ()
334{
335
336  case $as_dir in #(
337  -*) as_dir=./$as_dir;;
338  esac
339  test -d "$as_dir" || eval $as_mkdir_p || {
340    as_dirs=
341    while :; do
342      case $as_dir in #(
343      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344      *) as_qdir=$as_dir;;
345      esac
346      as_dirs="'$as_qdir' $as_dirs"
347      as_dir=`$as_dirname -- "$as_dir" ||
348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349	 X"$as_dir" : 'X\(//\)[^/]' \| \
350	 X"$as_dir" : 'X\(//\)$' \| \
351	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352printf "%s\n" X"$as_dir" |
353    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\/\)[^/].*/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)$/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\).*/{
366	    s//\1/
367	    q
368	  }
369	  s/.*/./; q'`
370      test -d "$as_dir" && break
371    done
372    test -z "$as_dirs" || eval "mkdir $as_dirs"
373  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376} # as_fn_mkdir_p
377
378# as_fn_executable_p FILE
379# -----------------------
380# Test if FILE is an executable regular file.
381as_fn_executable_p ()
382{
383  test -f "$1" && test -x "$1"
384} # as_fn_executable_p
385# as_fn_append VAR VALUE
386# ----------------------
387# Append the text in VALUE to the end of the definition contained in VAR. Take
388# advantage of any shell optimizations that allow amortized linear growth over
389# repeated appends, instead of the typical quadratic growth present in naive
390# implementations.
391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392then :
393  eval 'as_fn_append ()
394  {
395    eval $1+=\$2
396  }'
397else $as_nop
398  as_fn_append ()
399  {
400    eval $1=\$$1\$2
401  }
402fi # as_fn_append
403
404# as_fn_arith ARG...
405# ------------------
406# Perform arithmetic evaluation on the ARGs, and store the result in the
407# global $as_val. Take advantage of shells that can avoid forks. The arguments
408# must be portable across $(()) and expr.
409if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410then :
411  eval 'as_fn_arith ()
412  {
413    as_val=$(( $* ))
414  }'
415else $as_nop
416  as_fn_arith ()
417  {
418    as_val=`expr "$@" || test $? -eq 1`
419  }
420fi # as_fn_arith
421
422# as_fn_nop
423# ---------
424# Do nothing but, unlike ":", preserve the value of $?.
425as_fn_nop ()
426{
427  return $?
428}
429as_nop=as_fn_nop
430
431# as_fn_error STATUS ERROR [LINENO LOG_FD]
432# ----------------------------------------
433# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
434# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
435# script with STATUS, using 1 if that was 0.
436as_fn_error ()
437{
438  as_status=$1; test $as_status -eq 0 && as_status=1
439  if test "$4"; then
440    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
441    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
442  fi
443  printf "%s\n" "$as_me: error: $2" >&2
444  as_fn_exit $as_status
445} # as_fn_error
446
447if expr a : '\(a\)' >/dev/null 2>&1 &&
448   test "X`expr 00001 : '.*\(...\)'`" = X001; then
449  as_expr=expr
450else
451  as_expr=false
452fi
453
454if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455  as_basename=basename
456else
457  as_basename=false
458fi
459
460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461  as_dirname=dirname
462else
463  as_dirname=false
464fi
465
466as_me=`$as_basename -- "$0" ||
467$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
468	 X"$0" : 'X\(//\)$' \| \
469	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
470printf "%s\n" X/"$0" |
471    sed '/^.*\/\([^/][^/]*\)\/*$/{
472	    s//\1/
473	    q
474	  }
475	  /^X\/\(\/\/\)$/{
476	    s//\1/
477	    q
478	  }
479	  /^X\/\(\/\).*/{
480	    s//\1/
481	    q
482	  }
483	  s/.*/./; q'`
484
485# Avoid depending upon Character Ranges.
486as_cr_letters='abcdefghijklmnopqrstuvwxyz'
487as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
488as_cr_Letters=$as_cr_letters$as_cr_LETTERS
489as_cr_digits='0123456789'
490as_cr_alnum=$as_cr_Letters$as_cr_digits
491
492
493  as_lineno_1=$LINENO as_lineno_1a=$LINENO
494  as_lineno_2=$LINENO as_lineno_2a=$LINENO
495  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
496  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
497  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
498  sed -n '
499    p
500    /[$]LINENO/=
501  ' <$as_myself |
502    sed '
503      s/[$]LINENO.*/&-/
504      t lineno
505      b
506      :lineno
507      N
508      :loop
509      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
510      t loop
511      s/-\n.*//
512    ' >$as_me.lineno &&
513  chmod +x "$as_me.lineno" ||
514    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
515
516  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
517  # already done that, so ensure we don't try to do so again and fall
518  # in an infinite loop.  This has already happened in practice.
519  _as_can_reexec=no; export _as_can_reexec
520  # Don't try to exec as it changes $[0], causing all sort of problems
521  # (the dirname of $[0] is not the place where we might find the
522  # original and so on.  Autoconf is especially sensitive to this).
523  . "./$as_me.lineno"
524  # Exit status is that of the last command.
525  exit
526}
527
528
529# Determine whether it's possible to make 'echo' print without a newline.
530# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
531# for compatibility with existing Makefiles.
532ECHO_C= ECHO_N= ECHO_T=
533case `echo -n x` in #(((((
534-n*)
535  case `echo 'xy\c'` in
536  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
537  xy)  ECHO_C='\c';;
538  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
539       ECHO_T='	';;
540  esac;;
541*)
542  ECHO_N='-n';;
543esac
544
545# For backward compatibility with old third-party macros, we provide
546# the shell variables $as_echo and $as_echo_n.  New code should use
547# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
548as_echo='printf %s\n'
549as_echo_n='printf %s'
550
551
552rm -f conf$$ conf$$.exe conf$$.file
553if test -d conf$$.dir; then
554  rm -f conf$$.dir/conf$$.file
555else
556  rm -f conf$$.dir
557  mkdir conf$$.dir 2>/dev/null
558fi
559if (echo >conf$$.file) 2>/dev/null; then
560  if ln -s conf$$.file conf$$ 2>/dev/null; then
561    as_ln_s='ln -s'
562    # ... but there are two gotchas:
563    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
564    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
565    # In both cases, we have to default to `cp -pR'.
566    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
567      as_ln_s='cp -pR'
568  elif ln conf$$.file conf$$ 2>/dev/null; then
569    as_ln_s=ln
570  else
571    as_ln_s='cp -pR'
572  fi
573else
574  as_ln_s='cp -pR'
575fi
576rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
577rmdir conf$$.dir 2>/dev/null
578
579if mkdir -p . 2>/dev/null; then
580  as_mkdir_p='mkdir -p "$as_dir"'
581else
582  test -d ./-p && rmdir ./-p
583  as_mkdir_p=false
584fi
585
586as_test_x='test -x'
587as_executable_p=as_fn_executable_p
588
589# Sed expression to map a string onto a valid CPP name.
590as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
591
592# Sed expression to map a string onto a valid variable name.
593as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
594
595SHELL=${CONFIG_SHELL-/bin/sh}
596
597
598test -n "$DJDIR" || exec 7<&0 </dev/null
599exec 6>&1
600
601# Name of the host.
602# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
603# so uname gets run too.
604ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
605
606#
607# Initializations.
608#
609ac_default_prefix=/usr/local
610ac_clean_files=
611ac_config_libobj_dir=.
612LIBOBJS=
613cross_compiling=no
614subdirs=
615MFLAGS=
616MAKEFLAGS=
617
618# Identity of this package.
619PACKAGE_NAME='libevent'
620PACKAGE_TARNAME='libevent'
621PACKAGE_VERSION='2.1.12-stable'
622PACKAGE_STRING='libevent 2.1.12-stable'
623PACKAGE_BUGREPORT=''
624PACKAGE_URL=''
625
626ac_unique_file="event.c"
627ac_default_prefix=/usr/local
628# Factoring default headers for most tests.
629ac_includes_default="\
630#include <stddef.h>
631#ifdef HAVE_STDIO_H
632# include <stdio.h>
633#endif
634#ifdef HAVE_STDLIB_H
635# include <stdlib.h>
636#endif
637#ifdef HAVE_STRING_H
638# include <string.h>
639#endif
640#ifdef HAVE_INTTYPES_H
641# include <inttypes.h>
642#endif
643#ifdef HAVE_STDINT_H
644# include <stdint.h>
645#endif
646#ifdef HAVE_STRINGS_H
647# include <strings.h>
648#endif
649#ifdef HAVE_SYS_TYPES_H
650# include <sys/types.h>
651#endif
652#ifdef HAVE_SYS_STAT_H
653# include <sys/stat.h>
654#endif
655#ifdef HAVE_UNISTD_H
656# include <unistd.h>
657#endif"
658
659ac_header_c_list=
660ac_subst_vars='am__EXEEXT_FALSE
661am__EXEEXT_TRUE
662LTLIBOBJS
663ENABLE_DOXYGEN_MAN_FALSE
664ENABLE_DOXYGEN_MAN_TRUE
665ENABLE_DOXYGEN_FALSE
666ENABLE_DOXYGEN_TRUE
667DX_RULES
668PAPER_SIZE
669DOXYGEN_PAPER_SIZE
670GENERATE_LATEX
671DX_PDFLATEX
672DX_FLAG_pdf
673DX_EGREP
674DX_DVIPS
675DX_MAKEINDEX
676DX_LATEX
677DX_FLAG_ps
678DX_FLAG_html
679GENERATE_CHI
680DX_FLAG_chi
681GENERATE_HTMLHELP
682GENERATE_HTML
683HHC_PATH
684DX_HHC
685DX_FLAG_chm
686GENERATE_XML
687DX_FLAG_xml
688GENERATE_RTF
689DX_FLAG_rtf
690GENERATE_MAN
691DX_FLAG_man
692DOT_PATH
693HAVE_DOT
694DX_DOT
695DX_FLAG_dot
696PERL_PATH
697DX_PERL
698DX_DOXYGEN
699DX_FLAG_doc
700PROJECT
701SRCDIR
702DX_ENV
703DX_DOCDIR
704DX_CONFIG
705DX_PROJECT
706INSTALL_LIBEVENT_FALSE
707INSTALL_LIBEVENT_TRUE
708LIBEVENT_GC_SECTIONS
709PTHREADS_FALSE
710PTHREADS_TRUE
711THREADS_FALSE
712THREADS_TRUE
713PTHREAD_CFLAGS
714PTHREAD_LIBS
715PTHREAD_CC
716acx_pthread_config
717SIGNAL_SUPPORT_FALSE
718SIGNAL_SUPPORT_TRUE
719EVPORT_BACKEND_FALSE
720EVPORT_BACKEND_TRUE
721EPOLL_BACKEND_FALSE
722EPOLL_BACKEND_TRUE
723LIBOBJS
724KQUEUE_BACKEND_FALSE
725KQUEUE_BACKEND_TRUE
726DEVPOLL_BACKEND_FALSE
727DEVPOLL_BACKEND_TRUE
728POLL_BACKEND_FALSE
729POLL_BACKEND_TRUE
730SELECT_BACKEND_FALSE
731SELECT_BACKEND_TRUE
732STRLCPY_IMPL_FALSE
733STRLCPY_IMPL_TRUE
734BUILD_WITH_NO_UNDEFINED_FALSE
735BUILD_WITH_NO_UNDEFINED_TRUE
736BUILD_MIDIPIX_FALSE
737BUILD_MIDIPIX_TRUE
738BUILD_CYGWIN_FALSE
739BUILD_CYGWIN_TRUE
740BUILD_WIN32_FALSE
741BUILD_WIN32_TRUE
742OPENSSL_FALSE
743OPENSSL_TRUE
744OPENSSL_LIBS
745OPENSSL_INCS
746PKG_CONFIG
747OPENSSL_LIBADD
748EV_LIB_GDI
749EV_LIB_WS32
750ZLIB_REGRESS_FALSE
751ZLIB_REGRESS_TRUE
752ZLIB_LIBS
753BUILD_REGRESS_FALSE
754BUILD_REGRESS_TRUE
755BUILD_SAMPLES_FALSE
756BUILD_SAMPLES_TRUE
757LIBTOOL_DEPS
758LT_SYS_LIBRARY_PATH
759OTOOL64
760OTOOL
761LIPO
762NMEDIT
763DSYMUTIL
764MANIFEST_TOOL
765RANLIB
766ac_ct_AR
767AR
768DLLTOOL
769OBJDUMP
770NM
771ac_ct_DUMPBIN
772DUMPBIN
773LD
774FGREP
775LIBTOOL
776EGREP
777GREP
778CPP
779SED
780LN_S
781host_os
782host_vendor
783host_cpu
784host
785build_os
786build_vendor
787build_cpu
788build
789am__fastdepCC_FALSE
790am__fastdepCC_TRUE
791CCDEPMODE
792am__nodep
793AMDEPBACKSLASH
794AMDEP_FALSE
795AMDEP_TRUE
796am__include
797DEPDIR
798OBJEXT
799EXEEXT
800ac_ct_CC
801CPPFLAGS
802LDFLAGS
803CFLAGS
804CC
805AM_BACKSLASH
806AM_DEFAULT_VERBOSITY
807AM_DEFAULT_V
808AM_V
809CSCOPE
810ETAGS
811CTAGS
812am__untar
813am__tar
814AMTAR
815am__leading_dot
816SET_MAKE
817AWK
818mkdir_p
819MKDIR_P
820INSTALL_STRIP_PROGRAM
821STRIP
822install_sh
823MAKEINFO
824AUTOHEADER
825AUTOMAKE
826AUTOCONF
827ACLOCAL
828VERSION
829PACKAGE
830CYGPATH_W
831am__isrc
832INSTALL_DATA
833INSTALL_SCRIPT
834INSTALL_PROGRAM
835target_alias
836host_alias
837build_alias
838LIBS
839ECHO_T
840ECHO_N
841ECHO_C
842DEFS
843mandir
844localedir
845libdir
846psdir
847pdfdir
848dvidir
849htmldir
850infodir
851docdir
852oldincludedir
853includedir
854runstatedir
855localstatedir
856sharedstatedir
857sysconfdir
858datadir
859datarootdir
860libexecdir
861sbindir
862bindir
863program_transform_name
864prefix
865exec_prefix
866PACKAGE_URL
867PACKAGE_BUGREPORT
868PACKAGE_STRING
869PACKAGE_VERSION
870PACKAGE_TARNAME
871PACKAGE_NAME
872PATH_SEPARATOR
873SHELL
874am__quote'
875ac_subst_files=''
876ac_user_opts='
877enable_option_checking
878enable_silent_rules
879enable_dependency_tracking
880enable_gcc_warnings
881enable_gcc_hardening
882enable_thread_support
883enable_malloc_replacement
884enable_openssl
885enable_debug_mode
886enable_libevent_install
887enable_libevent_regress
888enable_samples
889enable_function_sections
890enable_verbose_debug
891enable_clock_gettime
892enable_shared
893enable_static
894with_pic
895enable_fast_install
896with_aix_soname
897with_gnu_ld
898with_sysroot
899enable_libtool_lock
900enable_largefile
901enable_doxygen_doc
902enable_doxygen_dot
903enable_doxygen_man
904enable_doxygen_rtf
905enable_doxygen_xml
906enable_doxygen_chm
907enable_doxygen_chi
908enable_doxygen_html
909enable_doxygen_ps
910enable_doxygen_pdf
911'
912      ac_precious_vars='build_alias
913host_alias
914target_alias
915CC
916CFLAGS
917LDFLAGS
918LIBS
919CPPFLAGS
920CPP
921LT_SYS_LIBRARY_PATH
922DOXYGEN_PAPER_SIZE'
923
924
925# Initialize some variables set by options.
926ac_init_help=
927ac_init_version=false
928ac_unrecognized_opts=
929ac_unrecognized_sep=
930# The variables have the same names as the options, with
931# dashes changed to underlines.
932cache_file=/dev/null
933exec_prefix=NONE
934no_create=
935no_recursion=
936prefix=NONE
937program_prefix=NONE
938program_suffix=NONE
939program_transform_name=s,x,x,
940silent=
941site=
942srcdir=
943verbose=
944x_includes=NONE
945x_libraries=NONE
946
947# Installation directory options.
948# These are left unexpanded so users can "make install exec_prefix=/foo"
949# and all the variables that are supposed to be based on exec_prefix
950# by default will actually change.
951# Use braces instead of parens because sh, perl, etc. also accept them.
952# (The list follows the same order as the GNU Coding Standards.)
953bindir='${exec_prefix}/bin'
954sbindir='${exec_prefix}/sbin'
955libexecdir='${exec_prefix}/libexec'
956datarootdir='${prefix}/share'
957datadir='${datarootdir}'
958sysconfdir='${prefix}/etc'
959sharedstatedir='${prefix}/com'
960localstatedir='${prefix}/var'
961runstatedir='${localstatedir}/run'
962includedir='${prefix}/include'
963oldincludedir='/usr/include'
964docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
965infodir='${datarootdir}/info'
966htmldir='${docdir}'
967dvidir='${docdir}'
968pdfdir='${docdir}'
969psdir='${docdir}'
970libdir='${exec_prefix}/lib'
971localedir='${datarootdir}/locale'
972mandir='${datarootdir}/man'
973
974ac_prev=
975ac_dashdash=
976for ac_option
977do
978  # If the previous option needs an argument, assign it.
979  if test -n "$ac_prev"; then
980    eval $ac_prev=\$ac_option
981    ac_prev=
982    continue
983  fi
984
985  case $ac_option in
986  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
987  *=)   ac_optarg= ;;
988  *)    ac_optarg=yes ;;
989  esac
990
991  case $ac_dashdash$ac_option in
992  --)
993    ac_dashdash=yes ;;
994
995  -bindir | --bindir | --bindi | --bind | --bin | --bi)
996    ac_prev=bindir ;;
997  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
998    bindir=$ac_optarg ;;
999
1000  -build | --build | --buil | --bui | --bu)
1001    ac_prev=build_alias ;;
1002  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1003    build_alias=$ac_optarg ;;
1004
1005  -cache-file | --cache-file | --cache-fil | --cache-fi \
1006  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1007    ac_prev=cache_file ;;
1008  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1009  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1010    cache_file=$ac_optarg ;;
1011
1012  --config-cache | -C)
1013    cache_file=config.cache ;;
1014
1015  -datadir | --datadir | --datadi | --datad)
1016    ac_prev=datadir ;;
1017  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1018    datadir=$ac_optarg ;;
1019
1020  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1021  | --dataroo | --dataro | --datar)
1022    ac_prev=datarootdir ;;
1023  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1024  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1025    datarootdir=$ac_optarg ;;
1026
1027  -disable-* | --disable-*)
1028    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1029    # Reject names that are not valid shell variable names.
1030    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1032    ac_useropt_orig=$ac_useropt
1033    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1034    case $ac_user_opts in
1035      *"
1036"enable_$ac_useropt"
1037"*) ;;
1038      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1039	 ac_unrecognized_sep=', ';;
1040    esac
1041    eval enable_$ac_useropt=no ;;
1042
1043  -docdir | --docdir | --docdi | --doc | --do)
1044    ac_prev=docdir ;;
1045  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1046    docdir=$ac_optarg ;;
1047
1048  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1049    ac_prev=dvidir ;;
1050  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1051    dvidir=$ac_optarg ;;
1052
1053  -enable-* | --enable-*)
1054    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055    # Reject names that are not valid shell variable names.
1056    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1058    ac_useropt_orig=$ac_useropt
1059    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1060    case $ac_user_opts in
1061      *"
1062"enable_$ac_useropt"
1063"*) ;;
1064      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1065	 ac_unrecognized_sep=', ';;
1066    esac
1067    eval enable_$ac_useropt=\$ac_optarg ;;
1068
1069  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1070  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1071  | --exec | --exe | --ex)
1072    ac_prev=exec_prefix ;;
1073  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1074  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1075  | --exec=* | --exe=* | --ex=*)
1076    exec_prefix=$ac_optarg ;;
1077
1078  -gas | --gas | --ga | --g)
1079    # Obsolete; use --with-gas.
1080    with_gas=yes ;;
1081
1082  -help | --help | --hel | --he | -h)
1083    ac_init_help=long ;;
1084  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1085    ac_init_help=recursive ;;
1086  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1087    ac_init_help=short ;;
1088
1089  -host | --host | --hos | --ho)
1090    ac_prev=host_alias ;;
1091  -host=* | --host=* | --hos=* | --ho=*)
1092    host_alias=$ac_optarg ;;
1093
1094  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1095    ac_prev=htmldir ;;
1096  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1097  | --ht=*)
1098    htmldir=$ac_optarg ;;
1099
1100  -includedir | --includedir | --includedi | --included | --include \
1101  | --includ | --inclu | --incl | --inc)
1102    ac_prev=includedir ;;
1103  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1104  | --includ=* | --inclu=* | --incl=* | --inc=*)
1105    includedir=$ac_optarg ;;
1106
1107  -infodir | --infodir | --infodi | --infod | --info | --inf)
1108    ac_prev=infodir ;;
1109  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1110    infodir=$ac_optarg ;;
1111
1112  -libdir | --libdir | --libdi | --libd)
1113    ac_prev=libdir ;;
1114  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1115    libdir=$ac_optarg ;;
1116
1117  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1118  | --libexe | --libex | --libe)
1119    ac_prev=libexecdir ;;
1120  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1121  | --libexe=* | --libex=* | --libe=*)
1122    libexecdir=$ac_optarg ;;
1123
1124  -localedir | --localedir | --localedi | --localed | --locale)
1125    ac_prev=localedir ;;
1126  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1127    localedir=$ac_optarg ;;
1128
1129  -localstatedir | --localstatedir | --localstatedi | --localstated \
1130  | --localstate | --localstat | --localsta | --localst | --locals)
1131    ac_prev=localstatedir ;;
1132  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1133  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1134    localstatedir=$ac_optarg ;;
1135
1136  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1137    ac_prev=mandir ;;
1138  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1139    mandir=$ac_optarg ;;
1140
1141  -nfp | --nfp | --nf)
1142    # Obsolete; use --without-fp.
1143    with_fp=no ;;
1144
1145  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1146  | --no-cr | --no-c | -n)
1147    no_create=yes ;;
1148
1149  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1150  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1151    no_recursion=yes ;;
1152
1153  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1154  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1155  | --oldin | --oldi | --old | --ol | --o)
1156    ac_prev=oldincludedir ;;
1157  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1158  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1159  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1160    oldincludedir=$ac_optarg ;;
1161
1162  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1163    ac_prev=prefix ;;
1164  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1165    prefix=$ac_optarg ;;
1166
1167  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1168  | --program-pre | --program-pr | --program-p)
1169    ac_prev=program_prefix ;;
1170  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1171  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1172    program_prefix=$ac_optarg ;;
1173
1174  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1175  | --program-suf | --program-su | --program-s)
1176    ac_prev=program_suffix ;;
1177  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1178  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1179    program_suffix=$ac_optarg ;;
1180
1181  -program-transform-name | --program-transform-name \
1182  | --program-transform-nam | --program-transform-na \
1183  | --program-transform-n | --program-transform- \
1184  | --program-transform | --program-transfor \
1185  | --program-transfo | --program-transf \
1186  | --program-trans | --program-tran \
1187  | --progr-tra | --program-tr | --program-t)
1188    ac_prev=program_transform_name ;;
1189  -program-transform-name=* | --program-transform-name=* \
1190  | --program-transform-nam=* | --program-transform-na=* \
1191  | --program-transform-n=* | --program-transform-=* \
1192  | --program-transform=* | --program-transfor=* \
1193  | --program-transfo=* | --program-transf=* \
1194  | --program-trans=* | --program-tran=* \
1195  | --progr-tra=* | --program-tr=* | --program-t=*)
1196    program_transform_name=$ac_optarg ;;
1197
1198  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1199    ac_prev=pdfdir ;;
1200  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1201    pdfdir=$ac_optarg ;;
1202
1203  -psdir | --psdir | --psdi | --psd | --ps)
1204    ac_prev=psdir ;;
1205  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1206    psdir=$ac_optarg ;;
1207
1208  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209  | -silent | --silent | --silen | --sile | --sil)
1210    silent=yes ;;
1211
1212  -runstatedir | --runstatedir | --runstatedi | --runstated \
1213  | --runstate | --runstat | --runsta | --runst | --runs \
1214  | --run | --ru | --r)
1215    ac_prev=runstatedir ;;
1216  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1217  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1218  | --run=* | --ru=* | --r=*)
1219    runstatedir=$ac_optarg ;;
1220
1221  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1222    ac_prev=sbindir ;;
1223  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1224  | --sbi=* | --sb=*)
1225    sbindir=$ac_optarg ;;
1226
1227  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229  | --sharedst | --shareds | --shared | --share | --shar \
1230  | --sha | --sh)
1231    ac_prev=sharedstatedir ;;
1232  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1235  | --sha=* | --sh=*)
1236    sharedstatedir=$ac_optarg ;;
1237
1238  -site | --site | --sit)
1239    ac_prev=site ;;
1240  -site=* | --site=* | --sit=*)
1241    site=$ac_optarg ;;
1242
1243  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1244    ac_prev=srcdir ;;
1245  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246    srcdir=$ac_optarg ;;
1247
1248  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249  | --syscon | --sysco | --sysc | --sys | --sy)
1250    ac_prev=sysconfdir ;;
1251  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253    sysconfdir=$ac_optarg ;;
1254
1255  -target | --target | --targe | --targ | --tar | --ta | --t)
1256    ac_prev=target_alias ;;
1257  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258    target_alias=$ac_optarg ;;
1259
1260  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1261    verbose=yes ;;
1262
1263  -version | --version | --versio | --versi | --vers | -V)
1264    ac_init_version=: ;;
1265
1266  -with-* | --with-*)
1267    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268    # Reject names that are not valid shell variable names.
1269    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270      as_fn_error $? "invalid package name: \`$ac_useropt'"
1271    ac_useropt_orig=$ac_useropt
1272    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1273    case $ac_user_opts in
1274      *"
1275"with_$ac_useropt"
1276"*) ;;
1277      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1278	 ac_unrecognized_sep=', ';;
1279    esac
1280    eval with_$ac_useropt=\$ac_optarg ;;
1281
1282  -without-* | --without-*)
1283    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1284    # Reject names that are not valid shell variable names.
1285    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286      as_fn_error $? "invalid package name: \`$ac_useropt'"
1287    ac_useropt_orig=$ac_useropt
1288    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1289    case $ac_user_opts in
1290      *"
1291"with_$ac_useropt"
1292"*) ;;
1293      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1294	 ac_unrecognized_sep=', ';;
1295    esac
1296    eval with_$ac_useropt=no ;;
1297
1298  --x)
1299    # Obsolete; use --with-x.
1300    with_x=yes ;;
1301
1302  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1303  | --x-incl | --x-inc | --x-in | --x-i)
1304    ac_prev=x_includes ;;
1305  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1306  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1307    x_includes=$ac_optarg ;;
1308
1309  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1310  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1311    ac_prev=x_libraries ;;
1312  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1313  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1314    x_libraries=$ac_optarg ;;
1315
1316  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1317Try \`$0 --help' for more information"
1318    ;;
1319
1320  *=*)
1321    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322    # Reject names that are not valid shell variable names.
1323    case $ac_envvar in #(
1324      '' | [0-9]* | *[!_$as_cr_alnum]* )
1325      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1326    esac
1327    eval $ac_envvar=\$ac_optarg
1328    export $ac_envvar ;;
1329
1330  *)
1331    # FIXME: should be removed in autoconf 3.0.
1332    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1333    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1334      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1335    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1336    ;;
1337
1338  esac
1339done
1340
1341if test -n "$ac_prev"; then
1342  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1343  as_fn_error $? "missing argument to $ac_option"
1344fi
1345
1346if test -n "$ac_unrecognized_opts"; then
1347  case $enable_option_checking in
1348    no) ;;
1349    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1350    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1351  esac
1352fi
1353
1354# Check all directory arguments for consistency.
1355for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1356		datadir sysconfdir sharedstatedir localstatedir includedir \
1357		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1358		libdir localedir mandir runstatedir
1359do
1360  eval ac_val=\$$ac_var
1361  # Remove trailing slashes.
1362  case $ac_val in
1363    */ )
1364      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1365      eval $ac_var=\$ac_val;;
1366  esac
1367  # Be sure to have absolute directory names.
1368  case $ac_val in
1369    [\\/$]* | ?:[\\/]* )  continue;;
1370    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1371  esac
1372  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1373done
1374
1375# There might be people who depend on the old broken behavior: `$host'
1376# used to hold the argument of --host etc.
1377# FIXME: To remove some day.
1378build=$build_alias
1379host=$host_alias
1380target=$target_alias
1381
1382# FIXME: To remove some day.
1383if test "x$host_alias" != x; then
1384  if test "x$build_alias" = x; then
1385    cross_compiling=maybe
1386  elif test "x$build_alias" != "x$host_alias"; then
1387    cross_compiling=yes
1388  fi
1389fi
1390
1391ac_tool_prefix=
1392test -n "$host_alias" && ac_tool_prefix=$host_alias-
1393
1394test "$silent" = yes && exec 6>/dev/null
1395
1396
1397ac_pwd=`pwd` && test -n "$ac_pwd" &&
1398ac_ls_di=`ls -di .` &&
1399ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1400  as_fn_error $? "working directory cannot be determined"
1401test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1402  as_fn_error $? "pwd does not report name of working directory"
1403
1404
1405# Find the source files, if location was not specified.
1406if test -z "$srcdir"; then
1407  ac_srcdir_defaulted=yes
1408  # Try the directory containing this script, then the parent directory.
1409  ac_confdir=`$as_dirname -- "$as_myself" ||
1410$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1411	 X"$as_myself" : 'X\(//\)[^/]' \| \
1412	 X"$as_myself" : 'X\(//\)$' \| \
1413	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1414printf "%s\n" X"$as_myself" |
1415    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1416	    s//\1/
1417	    q
1418	  }
1419	  /^X\(\/\/\)[^/].*/{
1420	    s//\1/
1421	    q
1422	  }
1423	  /^X\(\/\/\)$/{
1424	    s//\1/
1425	    q
1426	  }
1427	  /^X\(\/\).*/{
1428	    s//\1/
1429	    q
1430	  }
1431	  s/.*/./; q'`
1432  srcdir=$ac_confdir
1433  if test ! -r "$srcdir/$ac_unique_file"; then
1434    srcdir=..
1435  fi
1436else
1437  ac_srcdir_defaulted=no
1438fi
1439if test ! -r "$srcdir/$ac_unique_file"; then
1440  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1441  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1442fi
1443ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1444ac_abs_confdir=`(
1445	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1446	pwd)`
1447# When building in place, set srcdir=.
1448if test "$ac_abs_confdir" = "$ac_pwd"; then
1449  srcdir=.
1450fi
1451# Remove unnecessary trailing slashes from srcdir.
1452# Double slashes in file names in object file debugging info
1453# mess up M-x gdb in Emacs.
1454case $srcdir in
1455*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1456esac
1457for ac_var in $ac_precious_vars; do
1458  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1459  eval ac_env_${ac_var}_value=\$${ac_var}
1460  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1461  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1462done
1463
1464#
1465# Report the --help message.
1466#
1467if test "$ac_init_help" = "long"; then
1468  # Omit some internal or obsolete options to make the list less imposing.
1469  # This message is too long to be a string in the A/UX 3.1 sh.
1470  cat <<_ACEOF
1471\`configure' configures libevent 2.1.12-stable to adapt to many kinds of systems.
1472
1473Usage: $0 [OPTION]... [VAR=VALUE]...
1474
1475To assign environment variables (e.g., CC, CFLAGS...), specify them as
1476VAR=VALUE.  See below for descriptions of some of the useful variables.
1477
1478Defaults for the options are specified in brackets.
1479
1480Configuration:
1481  -h, --help              display this help and exit
1482      --help=short        display options specific to this package
1483      --help=recursive    display the short help of all the included packages
1484  -V, --version           display version information and exit
1485  -q, --quiet, --silent   do not print \`checking ...' messages
1486      --cache-file=FILE   cache test results in FILE [disabled]
1487  -C, --config-cache      alias for \`--cache-file=config.cache'
1488  -n, --no-create         do not create output files
1489      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1490
1491Installation directories:
1492  --prefix=PREFIX         install architecture-independent files in PREFIX
1493                          [$ac_default_prefix]
1494  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1495                          [PREFIX]
1496
1497By default, \`make install' will install all the files in
1498\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1499an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1500for instance \`--prefix=\$HOME'.
1501
1502For better control, use the options below.
1503
1504Fine tuning of the installation directories:
1505  --bindir=DIR            user executables [EPREFIX/bin]
1506  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1507  --libexecdir=DIR        program executables [EPREFIX/libexec]
1508  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1509  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1510  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1511  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1512  --libdir=DIR            object code libraries [EPREFIX/lib]
1513  --includedir=DIR        C header files [PREFIX/include]
1514  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1515  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1516  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1517  --infodir=DIR           info documentation [DATAROOTDIR/info]
1518  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1519  --mandir=DIR            man documentation [DATAROOTDIR/man]
1520  --docdir=DIR            documentation root [DATAROOTDIR/doc/libevent]
1521  --htmldir=DIR           html documentation [DOCDIR]
1522  --dvidir=DIR            dvi documentation [DOCDIR]
1523  --pdfdir=DIR            pdf documentation [DOCDIR]
1524  --psdir=DIR             ps documentation [DOCDIR]
1525_ACEOF
1526
1527  cat <<\_ACEOF
1528
1529Program names:
1530  --program-prefix=PREFIX            prepend PREFIX to installed program names
1531  --program-suffix=SUFFIX            append SUFFIX to installed program names
1532  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1533
1534System types:
1535  --build=BUILD     configure for building on BUILD [guessed]
1536  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1537_ACEOF
1538fi
1539
1540if test -n "$ac_init_help"; then
1541  case $ac_init_help in
1542     short | recursive ) echo "Configuration of libevent 2.1.12-stable:";;
1543   esac
1544  cat <<\_ACEOF
1545
1546Optional Features:
1547  --disable-option-checking  ignore unrecognized --enable/--with options
1548  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1549  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1550  --enable-silent-rules   less verbose build output (undo: "make V=1")
1551  --disable-silent-rules  verbose build output (undo: "make V=0")
1552  --enable-dependency-tracking
1553                          do not reject slow dependency extractors
1554  --disable-dependency-tracking
1555                          speeds up one-time build
1556  --disable-gcc-warnings  disable verbose warnings with GCC
1557  --enable-gcc-hardening  enable compiler security checks
1558  --disable-thread-support
1559                          disable support for threading
1560  --disable-malloc-replacement
1561                          disable support for replacing the memory mgt
1562                          functions
1563  --disable-openssl       disable support for openssl encryption
1564  --disable-debug-mode    disable support for running in debug mode
1565  --disable-libevent-install, disable installation of libevent
1566
1567  --disable-libevent-regress, skip regress in make check
1568
1569  --disable-samples, skip building of sample programs
1570
1571  --enable-function-sections, make static library allow smaller binaries with --gc-sections
1572
1573  --enable-verbose-debug, verbose debug logging
1574
1575  --disable-clock-gettime do not use clock_gettime even if it is available
1576  --enable-shared[=PKGS]  build shared libraries [default=yes]
1577  --enable-static[=PKGS]  build static libraries [default=yes]
1578  --enable-fast-install[=PKGS]
1579                          optimize for fast installation [default=yes]
1580  --disable-libtool-lock  avoid locking (might break parallel builds)
1581  --disable-largefile     omit support for large files
1582  --enable-doxygen-doc    generate any doxygen documentation
1583  --enable-doxygen-dot    generate graphics for doxygen documentation
1584  --enable-doxygen-man    generate doxygen manual pages
1585  --enable-doxygen-rtf    generate doxygen RTF documentation
1586  --enable-doxygen-xml    generate doxygen XML documentation
1587  --enable-doxygen-chm    generate doxygen compressed HTML help documentation
1588  --enable-doxygen-chi    generate doxygen separate compressed HTML help index
1589                          file
1590  --disable-doxygen-html  don't generate doxygen plain HTML documentation
1591  --enable-doxygen-ps     generate doxygen PostScript documentation
1592  --enable-doxygen-pdf    generate doxygen PDF documentation
1593
1594Optional Packages:
1595  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1596  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1597  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1598                          both]
1599  --with-aix-soname=aix|svr4|both
1600                          shared library versioning (aka "SONAME") variant to
1601                          provide on AIX, [default=aix].
1602  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1603  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1604                          compiler's sysroot if not specified).
1605
1606Some influential environment variables:
1607  CC          C compiler command
1608  CFLAGS      C compiler flags
1609  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1610              nonstandard directory <lib dir>
1611  LIBS        libraries to pass to the linker, e.g. -l<library>
1612  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1613              you have headers in a nonstandard directory <include dir>
1614  CPP         C preprocessor
1615  LT_SYS_LIBRARY_PATH
1616              User-defined run-time library search path.
1617  DOXYGEN_PAPER_SIZE
1618              a4wide (default), a4, letter, legal or executive
1619
1620Use these variables to override the choices made by `configure' or to help
1621it to find libraries and programs with nonstandard names/locations.
1622
1623Report bugs to the package provider.
1624_ACEOF
1625ac_status=$?
1626fi
1627
1628if test "$ac_init_help" = "recursive"; then
1629  # If there are subdirs, report their specific --help.
1630  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1631    test -d "$ac_dir" ||
1632      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1633      continue
1634    ac_builddir=.
1635
1636case "$ac_dir" in
1637.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638*)
1639  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1640  # A ".." for each directory in $ac_dir_suffix.
1641  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1642  case $ac_top_builddir_sub in
1643  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1645  esac ;;
1646esac
1647ac_abs_top_builddir=$ac_pwd
1648ac_abs_builddir=$ac_pwd$ac_dir_suffix
1649# for backward compatibility:
1650ac_top_builddir=$ac_top_build_prefix
1651
1652case $srcdir in
1653  .)  # We are building in place.
1654    ac_srcdir=.
1655    ac_top_srcdir=$ac_top_builddir_sub
1656    ac_abs_top_srcdir=$ac_pwd ;;
1657  [\\/]* | ?:[\\/]* )  # Absolute name.
1658    ac_srcdir=$srcdir$ac_dir_suffix;
1659    ac_top_srcdir=$srcdir
1660    ac_abs_top_srcdir=$srcdir ;;
1661  *) # Relative name.
1662    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1663    ac_top_srcdir=$ac_top_build_prefix$srcdir
1664    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1665esac
1666ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667
1668    cd "$ac_dir" || { ac_status=$?; continue; }
1669    # Check for configure.gnu first; this name is used for a wrapper for
1670    # Metaconfig's "Configure" on case-insensitive file systems.
1671    if test -f "$ac_srcdir/configure.gnu"; then
1672      echo &&
1673      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1674    elif test -f "$ac_srcdir/configure"; then
1675      echo &&
1676      $SHELL "$ac_srcdir/configure" --help=recursive
1677    else
1678      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1679    fi || ac_status=$?
1680    cd "$ac_pwd" || { ac_status=$?; break; }
1681  done
1682fi
1683
1684test -n "$ac_init_help" && exit $ac_status
1685if $ac_init_version; then
1686  cat <<\_ACEOF
1687libevent configure 2.1.12-stable
1688generated by GNU Autoconf 2.71
1689
1690Copyright (C) 2021 Free Software Foundation, Inc.
1691This configure script is free software; the Free Software Foundation
1692gives unlimited permission to copy, distribute and modify it.
1693_ACEOF
1694  exit
1695fi
1696
1697## ------------------------ ##
1698## Autoconf initialization. ##
1699## ------------------------ ##
1700
1701# ac_fn_c_try_compile LINENO
1702# --------------------------
1703# Try to compile conftest.$ac_ext, and return whether this succeeded.
1704ac_fn_c_try_compile ()
1705{
1706  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707  rm -f conftest.$ac_objext conftest.beam
1708  if { { ac_try="$ac_compile"
1709case "(($ac_try" in
1710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711  *) ac_try_echo=$ac_try;;
1712esac
1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714printf "%s\n" "$ac_try_echo"; } >&5
1715  (eval "$ac_compile") 2>conftest.err
1716  ac_status=$?
1717  if test -s conftest.err; then
1718    grep -v '^ *+' conftest.err >conftest.er1
1719    cat conftest.er1 >&5
1720    mv -f conftest.er1 conftest.err
1721  fi
1722  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723  test $ac_status = 0; } && {
1724	 test -z "$ac_c_werror_flag" ||
1725	 test ! -s conftest.err
1726       } && test -s conftest.$ac_objext
1727then :
1728  ac_retval=0
1729else $as_nop
1730  printf "%s\n" "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
1732
1733	ac_retval=1
1734fi
1735  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736  as_fn_set_status $ac_retval
1737
1738} # ac_fn_c_try_compile
1739
1740# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1741# -------------------------------------------------------
1742# Tests whether HEADER exists and can be compiled using the include files in
1743# INCLUDES, setting the cache variable VAR accordingly.
1744ac_fn_c_check_header_compile ()
1745{
1746  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748printf %s "checking for $2... " >&6; }
1749if eval test \${$3+y}
1750then :
1751  printf %s "(cached) " >&6
1752else $as_nop
1753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h.  */
1755$4
1756#include <$2>
1757_ACEOF
1758if ac_fn_c_try_compile "$LINENO"
1759then :
1760  eval "$3=yes"
1761else $as_nop
1762  eval "$3=no"
1763fi
1764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1765fi
1766eval ac_res=\$$3
1767	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768printf "%s\n" "$ac_res" >&6; }
1769  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770
1771} # ac_fn_c_check_header_compile
1772
1773# ac_fn_c_try_cpp LINENO
1774# ----------------------
1775# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1776ac_fn_c_try_cpp ()
1777{
1778  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779  if { { ac_try="$ac_cpp conftest.$ac_ext"
1780case "(($ac_try" in
1781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782  *) ac_try_echo=$ac_try;;
1783esac
1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785printf "%s\n" "$ac_try_echo"; } >&5
1786  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1787  ac_status=$?
1788  if test -s conftest.err; then
1789    grep -v '^ *+' conftest.err >conftest.er1
1790    cat conftest.er1 >&5
1791    mv -f conftest.er1 conftest.err
1792  fi
1793  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794  test $ac_status = 0; } > conftest.i && {
1795	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1796	 test ! -s conftest.err
1797       }
1798then :
1799  ac_retval=0
1800else $as_nop
1801  printf "%s\n" "$as_me: failed program was:" >&5
1802sed 's/^/| /' conftest.$ac_ext >&5
1803
1804    ac_retval=1
1805fi
1806  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807  as_fn_set_status $ac_retval
1808
1809} # ac_fn_c_try_cpp
1810
1811# ac_fn_c_try_link LINENO
1812# -----------------------
1813# Try to link conftest.$ac_ext, and return whether this succeeded.
1814ac_fn_c_try_link ()
1815{
1816  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1818  if { { ac_try="$ac_link"
1819case "(($ac_try" in
1820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821  *) ac_try_echo=$ac_try;;
1822esac
1823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824printf "%s\n" "$ac_try_echo"; } >&5
1825  (eval "$ac_link") 2>conftest.err
1826  ac_status=$?
1827  if test -s conftest.err; then
1828    grep -v '^ *+' conftest.err >conftest.er1
1829    cat conftest.er1 >&5
1830    mv -f conftest.er1 conftest.err
1831  fi
1832  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833  test $ac_status = 0; } && {
1834	 test -z "$ac_c_werror_flag" ||
1835	 test ! -s conftest.err
1836       } && test -s conftest$ac_exeext && {
1837	 test "$cross_compiling" = yes ||
1838	 test -x conftest$ac_exeext
1839       }
1840then :
1841  ac_retval=0
1842else $as_nop
1843  printf "%s\n" "$as_me: failed program was:" >&5
1844sed 's/^/| /' conftest.$ac_ext >&5
1845
1846	ac_retval=1
1847fi
1848  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1849  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1850  # interfere with the next link command; also delete a directory that is
1851  # left behind by Apple's compiler.  We do this before executing the actions.
1852  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1853  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854  as_fn_set_status $ac_retval
1855
1856} # ac_fn_c_try_link
1857
1858# ac_fn_c_check_func LINENO FUNC VAR
1859# ----------------------------------
1860# Tests whether FUNC exists, setting the cache variable VAR accordingly
1861ac_fn_c_check_func ()
1862{
1863  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865printf %s "checking for $2... " >&6; }
1866if eval test \${$3+y}
1867then :
1868  printf %s "(cached) " >&6
1869else $as_nop
1870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871/* end confdefs.h.  */
1872/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1873   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1874#define $2 innocuous_$2
1875
1876/* System header to define __stub macros and hopefully few prototypes,
1877   which can conflict with char $2 (); below.  */
1878
1879#include <limits.h>
1880#undef $2
1881
1882/* Override any GCC internal prototype to avoid an error.
1883   Use char because int might match the return type of a GCC
1884   builtin and then its argument prototype would still apply.  */
1885#ifdef __cplusplus
1886extern "C"
1887#endif
1888char $2 ();
1889/* The GNU C library defines this for functions which it implements
1890    to always fail with ENOSYS.  Some functions are actually named
1891    something starting with __ and the normal name is an alias.  */
1892#if defined __stub_$2 || defined __stub___$2
1893choke me
1894#endif
1895
1896int
1897main (void)
1898{
1899return $2 ();
1900  ;
1901  return 0;
1902}
1903_ACEOF
1904if ac_fn_c_try_link "$LINENO"
1905then :
1906  eval "$3=yes"
1907else $as_nop
1908  eval "$3=no"
1909fi
1910rm -f core conftest.err conftest.$ac_objext conftest.beam \
1911    conftest$ac_exeext conftest.$ac_ext
1912fi
1913eval ac_res=\$$3
1914	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915printf "%s\n" "$ac_res" >&6; }
1916  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917
1918} # ac_fn_c_check_func
1919
1920# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1921# ------------------------------------------------------------------
1922# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1923# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1924ac_fn_check_decl ()
1925{
1926  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927  as_decl_name=`echo $2|sed 's/ *(.*//'`
1928  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1929printf %s "checking whether $as_decl_name is declared... " >&6; }
1930if eval test \${$3+y}
1931then :
1932  printf %s "(cached) " >&6
1933else $as_nop
1934  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1935  eval ac_save_FLAGS=\$$6
1936  as_fn_append $6 " $5"
1937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938/* end confdefs.h.  */
1939$4
1940int
1941main (void)
1942{
1943#ifndef $as_decl_name
1944#ifdef __cplusplus
1945  (void) $as_decl_use;
1946#else
1947  (void) $as_decl_name;
1948#endif
1949#endif
1950
1951  ;
1952  return 0;
1953}
1954_ACEOF
1955if ac_fn_c_try_compile "$LINENO"
1956then :
1957  eval "$3=yes"
1958else $as_nop
1959  eval "$3=no"
1960fi
1961rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1962  eval $6=\$ac_save_FLAGS
1963
1964fi
1965eval ac_res=\$$3
1966	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967printf "%s\n" "$ac_res" >&6; }
1968  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969
1970} # ac_fn_check_decl
1971
1972# ac_fn_c_try_run LINENO
1973# ----------------------
1974# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1975# executables *can* be run.
1976ac_fn_c_try_run ()
1977{
1978  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979  if { { ac_try="$ac_link"
1980case "(($ac_try" in
1981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982  *) ac_try_echo=$ac_try;;
1983esac
1984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985printf "%s\n" "$ac_try_echo"; } >&5
1986  (eval "$ac_link") 2>&5
1987  ac_status=$?
1988  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1990  { { case "(($ac_try" in
1991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992  *) ac_try_echo=$ac_try;;
1993esac
1994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995printf "%s\n" "$ac_try_echo"; } >&5
1996  (eval "$ac_try") 2>&5
1997  ac_status=$?
1998  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999  test $ac_status = 0; }; }
2000then :
2001  ac_retval=0
2002else $as_nop
2003  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2004       printf "%s\n" "$as_me: failed program was:" >&5
2005sed 's/^/| /' conftest.$ac_ext >&5
2006
2007       ac_retval=$ac_status
2008fi
2009  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2010  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011  as_fn_set_status $ac_retval
2012
2013} # ac_fn_c_try_run
2014
2015# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2016# -------------------------------------------
2017# Tests whether TYPE exists after having included INCLUDES, setting cache
2018# variable VAR accordingly.
2019ac_fn_c_check_type ()
2020{
2021  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023printf %s "checking for $2... " >&6; }
2024if eval test \${$3+y}
2025then :
2026  printf %s "(cached) " >&6
2027else $as_nop
2028  eval "$3=no"
2029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030/* end confdefs.h.  */
2031$4
2032int
2033main (void)
2034{
2035if (sizeof ($2))
2036	 return 0;
2037  ;
2038  return 0;
2039}
2040_ACEOF
2041if ac_fn_c_try_compile "$LINENO"
2042then :
2043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044/* end confdefs.h.  */
2045$4
2046int
2047main (void)
2048{
2049if (sizeof (($2)))
2050	    return 0;
2051  ;
2052  return 0;
2053}
2054_ACEOF
2055if ac_fn_c_try_compile "$LINENO"
2056then :
2057
2058else $as_nop
2059  eval "$3=yes"
2060fi
2061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2062fi
2063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2064fi
2065eval ac_res=\$$3
2066	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067printf "%s\n" "$ac_res" >&6; }
2068  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069
2070} # ac_fn_c_check_type
2071
2072# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2073# --------------------------------------------
2074# Tries to find the compile-time value of EXPR in a program that includes
2075# INCLUDES, setting VAR accordingly. Returns whether the value could be
2076# computed
2077ac_fn_c_compute_int ()
2078{
2079  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080  if test "$cross_compiling" = yes; then
2081    # Depending upon the size, compute the lo and hi bounds.
2082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083/* end confdefs.h.  */
2084$4
2085int
2086main (void)
2087{
2088static int test_array [1 - 2 * !(($2) >= 0)];
2089test_array [0] = 0;
2090return test_array [0];
2091
2092  ;
2093  return 0;
2094}
2095_ACEOF
2096if ac_fn_c_try_compile "$LINENO"
2097then :
2098  ac_lo=0 ac_mid=0
2099  while :; do
2100    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101/* end confdefs.h.  */
2102$4
2103int
2104main (void)
2105{
2106static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2107test_array [0] = 0;
2108return test_array [0];
2109
2110  ;
2111  return 0;
2112}
2113_ACEOF
2114if ac_fn_c_try_compile "$LINENO"
2115then :
2116  ac_hi=$ac_mid; break
2117else $as_nop
2118  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2119			if test $ac_lo -le $ac_mid; then
2120			  ac_lo= ac_hi=
2121			  break
2122			fi
2123			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2124fi
2125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2126  done
2127else $as_nop
2128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129/* end confdefs.h.  */
2130$4
2131int
2132main (void)
2133{
2134static int test_array [1 - 2 * !(($2) < 0)];
2135test_array [0] = 0;
2136return test_array [0];
2137
2138  ;
2139  return 0;
2140}
2141_ACEOF
2142if ac_fn_c_try_compile "$LINENO"
2143then :
2144  ac_hi=-1 ac_mid=-1
2145  while :; do
2146    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147/* end confdefs.h.  */
2148$4
2149int
2150main (void)
2151{
2152static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2153test_array [0] = 0;
2154return test_array [0];
2155
2156  ;
2157  return 0;
2158}
2159_ACEOF
2160if ac_fn_c_try_compile "$LINENO"
2161then :
2162  ac_lo=$ac_mid; break
2163else $as_nop
2164  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2165			if test $ac_mid -le $ac_hi; then
2166			  ac_lo= ac_hi=
2167			  break
2168			fi
2169			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2170fi
2171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2172  done
2173else $as_nop
2174  ac_lo= ac_hi=
2175fi
2176rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2177fi
2178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2179# Binary search between lo and hi bounds.
2180while test "x$ac_lo" != "x$ac_hi"; do
2181  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183/* end confdefs.h.  */
2184$4
2185int
2186main (void)
2187{
2188static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2189test_array [0] = 0;
2190return test_array [0];
2191
2192  ;
2193  return 0;
2194}
2195_ACEOF
2196if ac_fn_c_try_compile "$LINENO"
2197then :
2198  ac_hi=$ac_mid
2199else $as_nop
2200  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2201fi
2202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2203done
2204case $ac_lo in #((
2205?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2206'') ac_retval=1 ;;
2207esac
2208  else
2209    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210/* end confdefs.h.  */
2211$4
2212static long int longval (void) { return $2; }
2213static unsigned long int ulongval (void) { return $2; }
2214#include <stdio.h>
2215#include <stdlib.h>
2216int
2217main (void)
2218{
2219
2220  FILE *f = fopen ("conftest.val", "w");
2221  if (! f)
2222    return 1;
2223  if (($2) < 0)
2224    {
2225      long int i = longval ();
2226      if (i != ($2))
2227	return 1;
2228      fprintf (f, "%ld", i);
2229    }
2230  else
2231    {
2232      unsigned long int i = ulongval ();
2233      if (i != ($2))
2234	return 1;
2235      fprintf (f, "%lu", i);
2236    }
2237  /* Do not output a trailing newline, as this causes \r\n confusion
2238     on some platforms.  */
2239  return ferror (f) || fclose (f) != 0;
2240
2241  ;
2242  return 0;
2243}
2244_ACEOF
2245if ac_fn_c_try_run "$LINENO"
2246then :
2247  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2248else $as_nop
2249  ac_retval=1
2250fi
2251rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2252  conftest.$ac_objext conftest.beam conftest.$ac_ext
2253rm -f conftest.val
2254
2255  fi
2256  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257  as_fn_set_status $ac_retval
2258
2259} # ac_fn_c_compute_int
2260
2261# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2262# ----------------------------------------------------
2263# Tries to find if the field MEMBER exists in type AGGR, after including
2264# INCLUDES, setting cache variable VAR accordingly.
2265ac_fn_c_check_member ()
2266{
2267  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2269printf %s "checking for $2.$3... " >&6; }
2270if eval test \${$4+y}
2271then :
2272  printf %s "(cached) " >&6
2273else $as_nop
2274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275/* end confdefs.h.  */
2276$5
2277int
2278main (void)
2279{
2280static $2 ac_aggr;
2281if (ac_aggr.$3)
2282return 0;
2283  ;
2284  return 0;
2285}
2286_ACEOF
2287if ac_fn_c_try_compile "$LINENO"
2288then :
2289  eval "$4=yes"
2290else $as_nop
2291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292/* end confdefs.h.  */
2293$5
2294int
2295main (void)
2296{
2297static $2 ac_aggr;
2298if (sizeof ac_aggr.$3)
2299return 0;
2300  ;
2301  return 0;
2302}
2303_ACEOF
2304if ac_fn_c_try_compile "$LINENO"
2305then :
2306  eval "$4=yes"
2307else $as_nop
2308  eval "$4=no"
2309fi
2310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2311fi
2312rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2313fi
2314eval ac_res=\$$4
2315	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2316printf "%s\n" "$ac_res" >&6; }
2317  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2318
2319} # ac_fn_c_check_member
2320ac_configure_args_raw=
2321for ac_arg
2322do
2323  case $ac_arg in
2324  *\'*)
2325    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2326  esac
2327  as_fn_append ac_configure_args_raw " '$ac_arg'"
2328done
2329
2330case $ac_configure_args_raw in
2331  *$as_nl*)
2332    ac_safe_unquote= ;;
2333  *)
2334    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2335    ac_unsafe_a="$ac_unsafe_z#~"
2336    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2337    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2338esac
2339
2340cat >config.log <<_ACEOF
2341This file contains any messages produced by compilers while
2342running configure, to aid debugging if configure makes a mistake.
2343
2344It was created by libevent $as_me 2.1.12-stable, which was
2345generated by GNU Autoconf 2.71.  Invocation command line was
2346
2347  $ $0$ac_configure_args_raw
2348
2349_ACEOF
2350exec 5>>config.log
2351{
2352cat <<_ASUNAME
2353## --------- ##
2354## Platform. ##
2355## --------- ##
2356
2357hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2358uname -m = `(uname -m) 2>/dev/null || echo unknown`
2359uname -r = `(uname -r) 2>/dev/null || echo unknown`
2360uname -s = `(uname -s) 2>/dev/null || echo unknown`
2361uname -v = `(uname -v) 2>/dev/null || echo unknown`
2362
2363/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2364/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2365
2366/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2367/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2368/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2369/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2370/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2371/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2372/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2373
2374_ASUNAME
2375
2376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377for as_dir in $PATH
2378do
2379  IFS=$as_save_IFS
2380  case $as_dir in #(((
2381    '') as_dir=./ ;;
2382    */) ;;
2383    *) as_dir=$as_dir/ ;;
2384  esac
2385    printf "%s\n" "PATH: $as_dir"
2386  done
2387IFS=$as_save_IFS
2388
2389} >&5
2390
2391cat >&5 <<_ACEOF
2392
2393
2394## ----------- ##
2395## Core tests. ##
2396## ----------- ##
2397
2398_ACEOF
2399
2400
2401# Keep a trace of the command line.
2402# Strip out --no-create and --no-recursion so they do not pile up.
2403# Strip out --silent because we don't want to record it for future runs.
2404# Also quote any args containing shell meta-characters.
2405# Make two passes to allow for proper duplicate-argument suppression.
2406ac_configure_args=
2407ac_configure_args0=
2408ac_configure_args1=
2409ac_must_keep_next=false
2410for ac_pass in 1 2
2411do
2412  for ac_arg
2413  do
2414    case $ac_arg in
2415    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2416    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2417    | -silent | --silent | --silen | --sile | --sil)
2418      continue ;;
2419    *\'*)
2420      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2421    esac
2422    case $ac_pass in
2423    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2424    2)
2425      as_fn_append ac_configure_args1 " '$ac_arg'"
2426      if test $ac_must_keep_next = true; then
2427	ac_must_keep_next=false # Got value, back to normal.
2428      else
2429	case $ac_arg in
2430	  *=* | --config-cache | -C | -disable-* | --disable-* \
2431	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2432	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2433	  | -with-* | --with-* | -without-* | --without-* | --x)
2434	    case "$ac_configure_args0 " in
2435	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2436	    esac
2437	    ;;
2438	  -* ) ac_must_keep_next=true ;;
2439	esac
2440      fi
2441      as_fn_append ac_configure_args " '$ac_arg'"
2442      ;;
2443    esac
2444  done
2445done
2446{ ac_configure_args0=; unset ac_configure_args0;}
2447{ ac_configure_args1=; unset ac_configure_args1;}
2448
2449# When interrupted or exit'd, cleanup temporary files, and complete
2450# config.log.  We remove comments because anyway the quotes in there
2451# would cause problems or look ugly.
2452# WARNING: Use '\'' to represent an apostrophe within the trap.
2453# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2454trap 'exit_status=$?
2455  # Sanitize IFS.
2456  IFS=" ""	$as_nl"
2457  # Save into config.log some information that might help in debugging.
2458  {
2459    echo
2460
2461    printf "%s\n" "## ---------------- ##
2462## Cache variables. ##
2463## ---------------- ##"
2464    echo
2465    # The following way of writing the cache mishandles newlines in values,
2466(
2467  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2468    eval ac_val=\$$ac_var
2469    case $ac_val in #(
2470    *${as_nl}*)
2471      case $ac_var in #(
2472      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2473printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2474      esac
2475      case $ac_var in #(
2476      _ | IFS | as_nl) ;; #(
2477      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2478      *) { eval $ac_var=; unset $ac_var;} ;;
2479      esac ;;
2480    esac
2481  done
2482  (set) 2>&1 |
2483    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2484    *${as_nl}ac_space=\ *)
2485      sed -n \
2486	"s/'\''/'\''\\\\'\'''\''/g;
2487	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2488      ;; #(
2489    *)
2490      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2491      ;;
2492    esac |
2493    sort
2494)
2495    echo
2496
2497    printf "%s\n" "## ----------------- ##
2498## Output variables. ##
2499## ----------------- ##"
2500    echo
2501    for ac_var in $ac_subst_vars
2502    do
2503      eval ac_val=\$$ac_var
2504      case $ac_val in
2505      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2506      esac
2507      printf "%s\n" "$ac_var='\''$ac_val'\''"
2508    done | sort
2509    echo
2510
2511    if test -n "$ac_subst_files"; then
2512      printf "%s\n" "## ------------------- ##
2513## File substitutions. ##
2514## ------------------- ##"
2515      echo
2516      for ac_var in $ac_subst_files
2517      do
2518	eval ac_val=\$$ac_var
2519	case $ac_val in
2520	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2521	esac
2522	printf "%s\n" "$ac_var='\''$ac_val'\''"
2523      done | sort
2524      echo
2525    fi
2526
2527    if test -s confdefs.h; then
2528      printf "%s\n" "## ----------- ##
2529## confdefs.h. ##
2530## ----------- ##"
2531      echo
2532      cat confdefs.h
2533      echo
2534    fi
2535    test "$ac_signal" != 0 &&
2536      printf "%s\n" "$as_me: caught signal $ac_signal"
2537    printf "%s\n" "$as_me: exit $exit_status"
2538  } >&5
2539  rm -f core *.core core.conftest.* &&
2540    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2541    exit $exit_status
2542' 0
2543for ac_signal in 1 2 13 15; do
2544  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2545done
2546ac_signal=0
2547
2548# confdefs.h avoids OS command line length limits that DEFS can exceed.
2549rm -f -r conftest* confdefs.h
2550
2551printf "%s\n" "/* confdefs.h */" > confdefs.h
2552
2553# Predefined preprocessor variables.
2554
2555printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2556
2557printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2558
2559printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2560
2561printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2562
2563printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2564
2565printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2566
2567
2568# Let the site file select an alternate cache file if it wants to.
2569# Prefer an explicitly selected file to automatically selected ones.
2570if test -n "$CONFIG_SITE"; then
2571  ac_site_files="$CONFIG_SITE"
2572elif test "x$prefix" != xNONE; then
2573  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2574else
2575  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2576fi
2577
2578for ac_site_file in $ac_site_files
2579do
2580  case $ac_site_file in #(
2581  */*) :
2582     ;; #(
2583  *) :
2584    ac_site_file=./$ac_site_file ;;
2585esac
2586  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2587    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2588printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2589    sed 's/^/| /' "$ac_site_file" >&5
2590    . "$ac_site_file" \
2591      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2592printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2593as_fn_error $? "failed to load site script $ac_site_file
2594See \`config.log' for more details" "$LINENO" 5; }
2595  fi
2596done
2597
2598if test -r "$cache_file"; then
2599  # Some versions of bash will fail to source /dev/null (special files
2600  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2601  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2602    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2603printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2604    case $cache_file in
2605      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2606      *)                      . "./$cache_file";;
2607    esac
2608  fi
2609else
2610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2611printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2612  >$cache_file
2613fi
2614
2615as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2616# Test code for whether the C compiler supports C89 (global declarations)
2617ac_c_conftest_c89_globals='
2618/* Does the compiler advertise C89 conformance?
2619   Do not test the value of __STDC__, because some compilers set it to 0
2620   while being otherwise adequately conformant. */
2621#if !defined __STDC__
2622# error "Compiler does not advertise C89 conformance"
2623#endif
2624
2625#include <stddef.h>
2626#include <stdarg.h>
2627struct stat;
2628/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2629struct buf { int x; };
2630struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2631static char *e (p, i)
2632     char **p;
2633     int i;
2634{
2635  return p[i];
2636}
2637static char *f (char * (*g) (char **, int), char **p, ...)
2638{
2639  char *s;
2640  va_list v;
2641  va_start (v,p);
2642  s = g (p, va_arg (v,int));
2643  va_end (v);
2644  return s;
2645}
2646
2647/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2648   function prototypes and stuff, but not \xHH hex character constants.
2649   These do not provoke an error unfortunately, instead are silently treated
2650   as an "x".  The following induces an error, until -std is added to get
2651   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2652   array size at least.  It is necessary to write \x00 == 0 to get something
2653   that is true only with -std.  */
2654int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2655
2656/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2657   inside strings and character constants.  */
2658#define FOO(x) '\''x'\''
2659int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2660
2661int test (int i, double x);
2662struct s1 {int (*f) (int a);};
2663struct s2 {int (*f) (double a);};
2664int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2665               int, int);'
2666
2667# Test code for whether the C compiler supports C89 (body of main).
2668ac_c_conftest_c89_main='
2669ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2670'
2671
2672# Test code for whether the C compiler supports C99 (global declarations)
2673ac_c_conftest_c99_globals='
2674// Does the compiler advertise C99 conformance?
2675#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2676# error "Compiler does not advertise C99 conformance"
2677#endif
2678
2679#include <stdbool.h>
2680extern int puts (const char *);
2681extern int printf (const char *, ...);
2682extern int dprintf (int, const char *, ...);
2683extern void *malloc (size_t);
2684
2685// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2686// dprintf is used instead of fprintf to avoid needing to declare
2687// FILE and stderr.
2688#define debug(...) dprintf (2, __VA_ARGS__)
2689#define showlist(...) puts (#__VA_ARGS__)
2690#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2691static void
2692test_varargs_macros (void)
2693{
2694  int x = 1234;
2695  int y = 5678;
2696  debug ("Flag");
2697  debug ("X = %d\n", x);
2698  showlist (The first, second, and third items.);
2699  report (x>y, "x is %d but y is %d", x, y);
2700}
2701
2702// Check long long types.
2703#define BIG64 18446744073709551615ull
2704#define BIG32 4294967295ul
2705#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2706#if !BIG_OK
2707  #error "your preprocessor is broken"
2708#endif
2709#if BIG_OK
2710#else
2711  #error "your preprocessor is broken"
2712#endif
2713static long long int bignum = -9223372036854775807LL;
2714static unsigned long long int ubignum = BIG64;
2715
2716struct incomplete_array
2717{
2718  int datasize;
2719  double data[];
2720};
2721
2722struct named_init {
2723  int number;
2724  const wchar_t *name;
2725  double average;
2726};
2727
2728typedef const char *ccp;
2729
2730static inline int
2731test_restrict (ccp restrict text)
2732{
2733  // See if C++-style comments work.
2734  // Iterate through items via the restricted pointer.
2735  // Also check for declarations in for loops.
2736  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2737    continue;
2738  return 0;
2739}
2740
2741// Check varargs and va_copy.
2742static bool
2743test_varargs (const char *format, ...)
2744{
2745  va_list args;
2746  va_start (args, format);
2747  va_list args_copy;
2748  va_copy (args_copy, args);
2749
2750  const char *str = "";
2751  int number = 0;
2752  float fnumber = 0;
2753
2754  while (*format)
2755    {
2756      switch (*format++)
2757	{
2758	case '\''s'\'': // string
2759	  str = va_arg (args_copy, const char *);
2760	  break;
2761	case '\''d'\'': // int
2762	  number = va_arg (args_copy, int);
2763	  break;
2764	case '\''f'\'': // float
2765	  fnumber = va_arg (args_copy, double);
2766	  break;
2767	default:
2768	  break;
2769	}
2770    }
2771  va_end (args_copy);
2772  va_end (args);
2773
2774  return *str && number && fnumber;
2775}
2776'
2777
2778# Test code for whether the C compiler supports C99 (body of main).
2779ac_c_conftest_c99_main='
2780  // Check bool.
2781  _Bool success = false;
2782  success |= (argc != 0);
2783
2784  // Check restrict.
2785  if (test_restrict ("String literal") == 0)
2786    success = true;
2787  char *restrict newvar = "Another string";
2788
2789  // Check varargs.
2790  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2791  test_varargs_macros ();
2792
2793  // Check flexible array members.
2794  struct incomplete_array *ia =
2795    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2796  ia->datasize = 10;
2797  for (int i = 0; i < ia->datasize; ++i)
2798    ia->data[i] = i * 1.234;
2799
2800  // Check named initializers.
2801  struct named_init ni = {
2802    .number = 34,
2803    .name = L"Test wide string",
2804    .average = 543.34343,
2805  };
2806
2807  ni.number = 58;
2808
2809  int dynamic_array[ni.number];
2810  dynamic_array[0] = argv[0][0];
2811  dynamic_array[ni.number - 1] = 543;
2812
2813  // work around unused variable warnings
2814  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2815	 || dynamic_array[ni.number - 1] != 543);
2816'
2817
2818# Test code for whether the C compiler supports C11 (global declarations)
2819ac_c_conftest_c11_globals='
2820// Does the compiler advertise C11 conformance?
2821#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2822# error "Compiler does not advertise C11 conformance"
2823#endif
2824
2825// Check _Alignas.
2826char _Alignas (double) aligned_as_double;
2827char _Alignas (0) no_special_alignment;
2828extern char aligned_as_int;
2829char _Alignas (0) _Alignas (int) aligned_as_int;
2830
2831// Check _Alignof.
2832enum
2833{
2834  int_alignment = _Alignof (int),
2835  int_array_alignment = _Alignof (int[100]),
2836  char_alignment = _Alignof (char)
2837};
2838_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2839
2840// Check _Noreturn.
2841int _Noreturn does_not_return (void) { for (;;) continue; }
2842
2843// Check _Static_assert.
2844struct test_static_assert
2845{
2846  int x;
2847  _Static_assert (sizeof (int) <= sizeof (long int),
2848                  "_Static_assert does not work in struct");
2849  long int y;
2850};
2851
2852// Check UTF-8 literals.
2853#define u8 syntax error!
2854char const utf8_literal[] = u8"happens to be ASCII" "another string";
2855
2856// Check duplicate typedefs.
2857typedef long *long_ptr;
2858typedef long int *long_ptr;
2859typedef long_ptr long_ptr;
2860
2861// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2862struct anonymous
2863{
2864  union {
2865    struct { int i; int j; };
2866    struct { int k; long int l; } w;
2867  };
2868  int m;
2869} v1;
2870'
2871
2872# Test code for whether the C compiler supports C11 (body of main).
2873ac_c_conftest_c11_main='
2874  _Static_assert ((offsetof (struct anonymous, i)
2875		   == offsetof (struct anonymous, w.k)),
2876		  "Anonymous union alignment botch");
2877  v1.i = 2;
2878  v1.w.k = 5;
2879  ok |= v1.i != 5;
2880'
2881
2882# Test code for whether the C compiler supports C11 (complete).
2883ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2884${ac_c_conftest_c99_globals}
2885${ac_c_conftest_c11_globals}
2886
2887int
2888main (int argc, char **argv)
2889{
2890  int ok = 0;
2891  ${ac_c_conftest_c89_main}
2892  ${ac_c_conftest_c99_main}
2893  ${ac_c_conftest_c11_main}
2894  return ok;
2895}
2896"
2897
2898# Test code for whether the C compiler supports C99 (complete).
2899ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2900${ac_c_conftest_c99_globals}
2901
2902int
2903main (int argc, char **argv)
2904{
2905  int ok = 0;
2906  ${ac_c_conftest_c89_main}
2907  ${ac_c_conftest_c99_main}
2908  return ok;
2909}
2910"
2911
2912# Test code for whether the C compiler supports C89 (complete).
2913ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2914
2915int
2916main (int argc, char **argv)
2917{
2918  int ok = 0;
2919  ${ac_c_conftest_c89_main}
2920  return ok;
2921}
2922"
2923
2924as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2925as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2926as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2927as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2928as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2929as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2930as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2931as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2932as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2933as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2934as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
2935
2936# Auxiliary files required by this configure script.
2937ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2938
2939# Locations in which to look for auxiliary files.
2940ac_aux_dir_candidates="${srcdir}/build-aux"
2941
2942# Search for a directory containing all of the required auxiliary files,
2943# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2944# If we don't find one directory that contains all the files we need,
2945# we report the set of missing files from the *first* directory in
2946# $ac_aux_dir_candidates and give up.
2947ac_missing_aux_files=""
2948ac_first_candidate=:
2949printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951as_found=false
2952for as_dir in $ac_aux_dir_candidates
2953do
2954  IFS=$as_save_IFS
2955  case $as_dir in #(((
2956    '') as_dir=./ ;;
2957    */) ;;
2958    *) as_dir=$as_dir/ ;;
2959  esac
2960  as_found=:
2961
2962  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2963  ac_aux_dir_found=yes
2964  ac_install_sh=
2965  for ac_aux in $ac_aux_files
2966  do
2967    # As a special case, if "install-sh" is required, that requirement
2968    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2969    # and $ac_install_sh is set appropriately for whichever one is found.
2970    if test x"$ac_aux" = x"install-sh"
2971    then
2972      if test -f "${as_dir}install-sh"; then
2973        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2974        ac_install_sh="${as_dir}install-sh -c"
2975      elif test -f "${as_dir}install.sh"; then
2976        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2977        ac_install_sh="${as_dir}install.sh -c"
2978      elif test -f "${as_dir}shtool"; then
2979        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2980        ac_install_sh="${as_dir}shtool install -c"
2981      else
2982        ac_aux_dir_found=no
2983        if $ac_first_candidate; then
2984          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2985        else
2986          break
2987        fi
2988      fi
2989    else
2990      if test -f "${as_dir}${ac_aux}"; then
2991        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2992      else
2993        ac_aux_dir_found=no
2994        if $ac_first_candidate; then
2995          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2996        else
2997          break
2998        fi
2999      fi
3000    fi
3001  done
3002  if test "$ac_aux_dir_found" = yes; then
3003    ac_aux_dir="$as_dir"
3004    break
3005  fi
3006  ac_first_candidate=false
3007
3008  as_found=false
3009done
3010IFS=$as_save_IFS
3011if $as_found
3012then :
3013
3014else $as_nop
3015  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3016fi
3017
3018
3019# These three variables are undocumented and unsupported,
3020# and are intended to be withdrawn in a future Autoconf release.
3021# They can cause serious problems if a builder's source tree is in a directory
3022# whose full name contains unusual characters.
3023if test -f "${ac_aux_dir}config.guess"; then
3024  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3025fi
3026if test -f "${ac_aux_dir}config.sub"; then
3027  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3028fi
3029if test -f "$ac_aux_dir/configure"; then
3030  ac_configure="$SHELL ${ac_aux_dir}configure"
3031fi
3032
3033# Check that the precious variables saved in the cache have kept the same
3034# value.
3035ac_cache_corrupted=false
3036for ac_var in $ac_precious_vars; do
3037  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3038  eval ac_new_set=\$ac_env_${ac_var}_set
3039  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3040  eval ac_new_val=\$ac_env_${ac_var}_value
3041  case $ac_old_set,$ac_new_set in
3042    set,)
3043      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3044printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3045      ac_cache_corrupted=: ;;
3046    ,set)
3047      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3048printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3049      ac_cache_corrupted=: ;;
3050    ,);;
3051    *)
3052      if test "x$ac_old_val" != "x$ac_new_val"; then
3053	# differences in whitespace do not lead to failure.
3054	ac_old_val_w=`echo x $ac_old_val`
3055	ac_new_val_w=`echo x $ac_new_val`
3056	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3057	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3058printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3059	  ac_cache_corrupted=:
3060	else
3061	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3062printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3063	  eval $ac_var=\$ac_old_val
3064	fi
3065	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3066printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3067	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3068printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3069      fi;;
3070  esac
3071  # Pass precious variables to config.status.
3072  if test "$ac_new_set" = set; then
3073    case $ac_new_val in
3074    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3075    *) ac_arg=$ac_var=$ac_new_val ;;
3076    esac
3077    case " $ac_configure_args " in
3078      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3079      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3080    esac
3081  fi
3082done
3083if $ac_cache_corrupted; then
3084  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3087printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3088  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3089	    and start over" "$LINENO" 5
3090fi
3091## -------------------- ##
3092## Main body of script. ##
3093## -------------------- ##
3094
3095ac_ext=c
3096ac_cpp='$CPP $CPPFLAGS'
3097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100
3101
3102
3103
3104
3105
3106
3107am__api_version='1.16'
3108
3109
3110
3111  # Find a good install program.  We prefer a C program (faster),
3112# so one script is as good as another.  But avoid the broken or
3113# incompatible versions:
3114# SysV /etc/install, /usr/sbin/install
3115# SunOS /usr/etc/install
3116# IRIX /sbin/install
3117# AIX /bin/install
3118# AmigaOS /C/install, which installs bootblocks on floppy discs
3119# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3120# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3121# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3122# OS/2's system install, which has a completely different semantic
3123# ./install, which can be erroneously created by make from ./install.sh.
3124# Reject install programs that cannot install multiple files.
3125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3126printf %s "checking for a BSD-compatible install... " >&6; }
3127if test -z "$INSTALL"; then
3128if test ${ac_cv_path_install+y}
3129then :
3130  printf %s "(cached) " >&6
3131else $as_nop
3132  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133for as_dir in $PATH
3134do
3135  IFS=$as_save_IFS
3136  case $as_dir in #(((
3137    '') as_dir=./ ;;
3138    */) ;;
3139    *) as_dir=$as_dir/ ;;
3140  esac
3141    # Account for fact that we put trailing slashes in our PATH walk.
3142case $as_dir in #((
3143  ./ | /[cC]/* | \
3144  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3145  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3146  /usr/ucb/* ) ;;
3147  *)
3148    # OSF1 and SCO ODT 3.0 have their own names for install.
3149    # Don't use installbsd from OSF since it installs stuff as root
3150    # by default.
3151    for ac_prog in ginstall scoinst install; do
3152      for ac_exec_ext in '' $ac_executable_extensions; do
3153	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3154	  if test $ac_prog = install &&
3155	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3156	    # AIX install.  It has an incompatible calling convention.
3157	    :
3158	  elif test $ac_prog = install &&
3159	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3160	    # program-specific install script used by HP pwplus--don't use.
3161	    :
3162	  else
3163	    rm -rf conftest.one conftest.two conftest.dir
3164	    echo one > conftest.one
3165	    echo two > conftest.two
3166	    mkdir conftest.dir
3167	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3168	      test -s conftest.one && test -s conftest.two &&
3169	      test -s conftest.dir/conftest.one &&
3170	      test -s conftest.dir/conftest.two
3171	    then
3172	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3173	      break 3
3174	    fi
3175	  fi
3176	fi
3177      done
3178    done
3179    ;;
3180esac
3181
3182  done
3183IFS=$as_save_IFS
3184
3185rm -rf conftest.one conftest.two conftest.dir
3186
3187fi
3188  if test ${ac_cv_path_install+y}; then
3189    INSTALL=$ac_cv_path_install
3190  else
3191    # As a last resort, use the slow shell script.  Don't cache a
3192    # value for INSTALL within a source directory, because that will
3193    # break other packages using the cache if that directory is
3194    # removed, or if the value is a relative name.
3195    INSTALL=$ac_install_sh
3196  fi
3197fi
3198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3199printf "%s\n" "$INSTALL" >&6; }
3200
3201# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3202# It thinks the first close brace ends the variable substitution.
3203test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3204
3205test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3206
3207test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3208
3209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3210printf %s "checking whether build environment is sane... " >&6; }
3211# Reject unsafe characters in $srcdir or the absolute working directory
3212# name.  Accept space and tab only in the latter.
3213am_lf='
3214'
3215case `pwd` in
3216  *[\\\"\#\$\&\'\`$am_lf]*)
3217    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3218esac
3219case $srcdir in
3220  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3221    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3222esac
3223
3224# Do 'set' in a subshell so we don't clobber the current shell's
3225# arguments.  Must try -L first in case configure is actually a
3226# symlink; some systems play weird games with the mod time of symlinks
3227# (eg FreeBSD returns the mod time of the symlink's containing
3228# directory).
3229if (
3230   am_has_slept=no
3231   for am_try in 1 2; do
3232     echo "timestamp, slept: $am_has_slept" > conftest.file
3233     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3234     if test "$*" = "X"; then
3235	# -L didn't work.
3236	set X `ls -t "$srcdir/configure" conftest.file`
3237     fi
3238     if test "$*" != "X $srcdir/configure conftest.file" \
3239	&& test "$*" != "X conftest.file $srcdir/configure"; then
3240
3241	# If neither matched, then we have a broken ls.  This can happen
3242	# if, for instance, CONFIG_SHELL is bash and it inherits a
3243	# broken ls alias from the environment.  This has actually
3244	# happened.  Such a system could not be considered "sane".
3245	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3246  alias in your environment" "$LINENO" 5
3247     fi
3248     if test "$2" = conftest.file || test $am_try -eq 2; then
3249       break
3250     fi
3251     # Just in case.
3252     sleep 1
3253     am_has_slept=yes
3254   done
3255   test "$2" = conftest.file
3256   )
3257then
3258   # Ok.
3259   :
3260else
3261   as_fn_error $? "newly created file is older than distributed files!
3262Check your system clock" "$LINENO" 5
3263fi
3264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3265printf "%s\n" "yes" >&6; }
3266# If we didn't sleep, we still need to ensure time stamps of config.status and
3267# generated files are strictly newer.
3268am_sleep_pid=
3269if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3270  ( sleep 1 ) &
3271  am_sleep_pid=$!
3272fi
3273
3274rm -f conftest.file
3275
3276test "$program_prefix" != NONE &&
3277  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3278# Use a double $ so make ignores it.
3279test "$program_suffix" != NONE &&
3280  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3281# Double any \ or $.
3282# By default was `s,x,x', remove it if useless.
3283ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3284program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3285
3286
3287# Expand $ac_aux_dir to an absolute path.
3288am_aux_dir=`cd "$ac_aux_dir" && pwd`
3289
3290
3291  if test x"${MISSING+set}" != xset; then
3292  MISSING="\${SHELL} '$am_aux_dir/missing'"
3293fi
3294# Use eval to expand $SHELL
3295if eval "$MISSING --is-lightweight"; then
3296  am_missing_run="$MISSING "
3297else
3298  am_missing_run=
3299  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3300printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3301fi
3302
3303if test x"${install_sh+set}" != xset; then
3304  case $am_aux_dir in
3305  *\ * | *\	*)
3306    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3307  *)
3308    install_sh="\${SHELL} $am_aux_dir/install-sh"
3309  esac
3310fi
3311
3312# Installed binaries are usually stripped using 'strip' when the user
3313# run "make install-strip".  However 'strip' might not be the right
3314# tool to use in cross-compilation environments, therefore Automake
3315# will honor the 'STRIP' environment variable to overrule this program.
3316if test "$cross_compiling" != no; then
3317  if test -n "$ac_tool_prefix"; then
3318  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3319set dummy ${ac_tool_prefix}strip; ac_word=$2
3320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321printf %s "checking for $ac_word... " >&6; }
3322if test ${ac_cv_prog_STRIP+y}
3323then :
3324  printf %s "(cached) " >&6
3325else $as_nop
3326  if test -n "$STRIP"; then
3327  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3328else
3329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330for as_dir in $PATH
3331do
3332  IFS=$as_save_IFS
3333  case $as_dir in #(((
3334    '') as_dir=./ ;;
3335    */) ;;
3336    *) as_dir=$as_dir/ ;;
3337  esac
3338    for ac_exec_ext in '' $ac_executable_extensions; do
3339  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3340    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3341    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3342    break 2
3343  fi
3344done
3345  done
3346IFS=$as_save_IFS
3347
3348fi
3349fi
3350STRIP=$ac_cv_prog_STRIP
3351if test -n "$STRIP"; then
3352  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3353printf "%s\n" "$STRIP" >&6; }
3354else
3355  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356printf "%s\n" "no" >&6; }
3357fi
3358
3359
3360fi
3361if test -z "$ac_cv_prog_STRIP"; then
3362  ac_ct_STRIP=$STRIP
3363  # Extract the first word of "strip", so it can be a program name with args.
3364set dummy strip; ac_word=$2
3365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366printf %s "checking for $ac_word... " >&6; }
3367if test ${ac_cv_prog_ac_ct_STRIP+y}
3368then :
3369  printf %s "(cached) " >&6
3370else $as_nop
3371  if test -n "$ac_ct_STRIP"; then
3372  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3373else
3374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375for as_dir in $PATH
3376do
3377  IFS=$as_save_IFS
3378  case $as_dir in #(((
3379    '') as_dir=./ ;;
3380    */) ;;
3381    *) as_dir=$as_dir/ ;;
3382  esac
3383    for ac_exec_ext in '' $ac_executable_extensions; do
3384  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3385    ac_cv_prog_ac_ct_STRIP="strip"
3386    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3387    break 2
3388  fi
3389done
3390  done
3391IFS=$as_save_IFS
3392
3393fi
3394fi
3395ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3396if test -n "$ac_ct_STRIP"; then
3397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3398printf "%s\n" "$ac_ct_STRIP" >&6; }
3399else
3400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401printf "%s\n" "no" >&6; }
3402fi
3403
3404  if test "x$ac_ct_STRIP" = x; then
3405    STRIP=":"
3406  else
3407    case $cross_compiling:$ac_tool_warned in
3408yes:)
3409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3410printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3411ac_tool_warned=yes ;;
3412esac
3413    STRIP=$ac_ct_STRIP
3414  fi
3415else
3416  STRIP="$ac_cv_prog_STRIP"
3417fi
3418
3419fi
3420INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3421
3422
3423  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3424printf %s "checking for a race-free mkdir -p... " >&6; }
3425if test -z "$MKDIR_P"; then
3426  if test ${ac_cv_path_mkdir+y}
3427then :
3428  printf %s "(cached) " >&6
3429else $as_nop
3430  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3432do
3433  IFS=$as_save_IFS
3434  case $as_dir in #(((
3435    '') as_dir=./ ;;
3436    */) ;;
3437    *) as_dir=$as_dir/ ;;
3438  esac
3439    for ac_prog in mkdir gmkdir; do
3440	 for ac_exec_ext in '' $ac_executable_extensions; do
3441	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3442	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3443	     'mkdir ('*'coreutils) '* | \
3444	     'BusyBox '* | \
3445	     'mkdir (fileutils) '4.1*)
3446	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3447	       break 3;;
3448	   esac
3449	 done
3450       done
3451  done
3452IFS=$as_save_IFS
3453
3454fi
3455
3456  test -d ./--version && rmdir ./--version
3457  if test ${ac_cv_path_mkdir+y}; then
3458    MKDIR_P="$ac_cv_path_mkdir -p"
3459  else
3460    # As a last resort, use the slow shell script.  Don't cache a
3461    # value for MKDIR_P within a source directory, because that will
3462    # break other packages using the cache if that directory is
3463    # removed, or if the value is a relative name.
3464    MKDIR_P="$ac_install_sh -d"
3465  fi
3466fi
3467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3468printf "%s\n" "$MKDIR_P" >&6; }
3469
3470for ac_prog in gawk mawk nawk awk
3471do
3472  # Extract the first word of "$ac_prog", so it can be a program name with args.
3473set dummy $ac_prog; ac_word=$2
3474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475printf %s "checking for $ac_word... " >&6; }
3476if test ${ac_cv_prog_AWK+y}
3477then :
3478  printf %s "(cached) " >&6
3479else $as_nop
3480  if test -n "$AWK"; then
3481  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3482else
3483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484for as_dir in $PATH
3485do
3486  IFS=$as_save_IFS
3487  case $as_dir in #(((
3488    '') as_dir=./ ;;
3489    */) ;;
3490    *) as_dir=$as_dir/ ;;
3491  esac
3492    for ac_exec_ext in '' $ac_executable_extensions; do
3493  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3494    ac_cv_prog_AWK="$ac_prog"
3495    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3496    break 2
3497  fi
3498done
3499  done
3500IFS=$as_save_IFS
3501
3502fi
3503fi
3504AWK=$ac_cv_prog_AWK
3505if test -n "$AWK"; then
3506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3507printf "%s\n" "$AWK" >&6; }
3508else
3509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510printf "%s\n" "no" >&6; }
3511fi
3512
3513
3514  test -n "$AWK" && break
3515done
3516
3517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3518printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3519set x ${MAKE-make}
3520ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3521if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3522then :
3523  printf %s "(cached) " >&6
3524else $as_nop
3525  cat >conftest.make <<\_ACEOF
3526SHELL = /bin/sh
3527all:
3528	@echo '@@@%%%=$(MAKE)=@@@%%%'
3529_ACEOF
3530# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3531case `${MAKE-make} -f conftest.make 2>/dev/null` in
3532  *@@@%%%=?*=@@@%%%*)
3533    eval ac_cv_prog_make_${ac_make}_set=yes;;
3534  *)
3535    eval ac_cv_prog_make_${ac_make}_set=no;;
3536esac
3537rm -f conftest.make
3538fi
3539if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3540  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3541printf "%s\n" "yes" >&6; }
3542  SET_MAKE=
3543else
3544  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545printf "%s\n" "no" >&6; }
3546  SET_MAKE="MAKE=${MAKE-make}"
3547fi
3548
3549rm -rf .tst 2>/dev/null
3550mkdir .tst 2>/dev/null
3551if test -d .tst; then
3552  am__leading_dot=.
3553else
3554  am__leading_dot=_
3555fi
3556rmdir .tst 2>/dev/null
3557
3558# Check whether --enable-silent-rules was given.
3559if test ${enable_silent_rules+y}
3560then :
3561  enableval=$enable_silent_rules;
3562fi
3563
3564case $enable_silent_rules in # (((
3565  yes) AM_DEFAULT_VERBOSITY=0;;
3566   no) AM_DEFAULT_VERBOSITY=1;;
3567    *) AM_DEFAULT_VERBOSITY=1;;
3568esac
3569am_make=${MAKE-make}
3570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3571printf %s "checking whether $am_make supports nested variables... " >&6; }
3572if test ${am_cv_make_support_nested_variables+y}
3573then :
3574  printf %s "(cached) " >&6
3575else $as_nop
3576  if printf "%s\n" 'TRUE=$(BAR$(V))
3577BAR0=false
3578BAR1=true
3579V=1
3580am__doit:
3581	@$(TRUE)
3582.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3583  am_cv_make_support_nested_variables=yes
3584else
3585  am_cv_make_support_nested_variables=no
3586fi
3587fi
3588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3589printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3590if test $am_cv_make_support_nested_variables = yes; then
3591    AM_V='$(V)'
3592  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3593else
3594  AM_V=$AM_DEFAULT_VERBOSITY
3595  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3596fi
3597AM_BACKSLASH='\'
3598
3599if test "`cd $srcdir && pwd`" != "`pwd`"; then
3600  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3601  # is not polluted with repeated "-I."
3602  am__isrc=' -I$(srcdir)'
3603  # test to see if srcdir already configured
3604  if test -f $srcdir/config.status; then
3605    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3606  fi
3607fi
3608
3609# test whether we have cygpath
3610if test -z "$CYGPATH_W"; then
3611  if (cygpath --version) >/dev/null 2>/dev/null; then
3612    CYGPATH_W='cygpath -w'
3613  else
3614    CYGPATH_W=echo
3615  fi
3616fi
3617
3618
3619# Define the identity of the package.
3620 PACKAGE='libevent'
3621 VERSION='2.1.12-stable'
3622
3623
3624printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3625
3626
3627printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3628
3629# Some tools Automake needs.
3630
3631ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3632
3633
3634AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3635
3636
3637AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3638
3639
3640AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3641
3642
3643MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3644
3645# For better backward compatibility.  To be removed once Automake 1.9.x
3646# dies out for good.  For more background, see:
3647# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3648# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3649mkdir_p='$(MKDIR_P)'
3650
3651# We need awk for the "check" target (and possibly the TAP driver).  The
3652# system "awk" is bad on some platforms.
3653# Always define AMTAR for backward compatibility.  Yes, it's still used
3654# in the wild :-(  We should find a proper way to deprecate it ...
3655AMTAR='$${TAR-tar}'
3656
3657
3658# We'll loop over all known methods to create a tar archive until one works.
3659_am_tools='gnutar  pax cpio none'
3660
3661am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3662
3663
3664
3665
3666
3667# Variables for tags utilities; see am/tags.am
3668if test -z "$CTAGS"; then
3669  CTAGS=ctags
3670fi
3671
3672if test -z "$ETAGS"; then
3673  ETAGS=etags
3674fi
3675
3676if test -z "$CSCOPE"; then
3677  CSCOPE=cscope
3678fi
3679
3680
3681
3682# POSIX will say in a future version that running "rm -f" with no argument
3683# is OK; and we want to be able to make that assumption in our Makefile
3684# recipes.  So use an aggressive probe to check that the usage we want is
3685# actually supported "in the wild" to an acceptable degree.
3686# See automake bug#10828.
3687# To make any issue more visible, cause the running configure to be aborted
3688# by default if the 'rm' program in use doesn't match our expectations; the
3689# user can still override this though.
3690if rm -f && rm -fr && rm -rf; then : OK; else
3691  cat >&2 <<'END'
3692Oops!
3693
3694Your 'rm' program seems unable to run without file operands specified
3695on the command line, even when the '-f' option is present.  This is contrary
3696to the behaviour of most rm programs out there, and not conforming with
3697the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3698
3699Please tell bug-automake@gnu.org about your system, including the value
3700of your $PATH and any error possibly output before this message.  This
3701can help us improve future automake versions.
3702
3703END
3704  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3705    echo 'Configuration will proceed anyway, since you have set the' >&2
3706    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3707    echo >&2
3708  else
3709    cat >&2 <<'END'
3710Aborting the configuration process, to ensure you take notice of the issue.
3711
3712You can download and install GNU coreutils to get an 'rm' implementation
3713that behaves properly: <https://www.gnu.org/software/coreutils/>.
3714
3715If you want to complete the configuration process using your problematic
3716'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3717to "yes", and re-run configure.
3718
3719END
3720    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3721  fi
3722fi
3723
3724# Check whether --enable-silent-rules was given.
3725if test ${enable_silent_rules+y}
3726then :
3727  enableval=$enable_silent_rules;
3728fi
3729
3730case $enable_silent_rules in # (((
3731  yes) AM_DEFAULT_VERBOSITY=0;;
3732   no) AM_DEFAULT_VERBOSITY=1;;
3733    *) AM_DEFAULT_VERBOSITY=0;;
3734esac
3735am_make=${MAKE-make}
3736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3737printf %s "checking whether $am_make supports nested variables... " >&6; }
3738if test ${am_cv_make_support_nested_variables+y}
3739then :
3740  printf %s "(cached) " >&6
3741else $as_nop
3742  if printf "%s\n" 'TRUE=$(BAR$(V))
3743BAR0=false
3744BAR1=true
3745V=1
3746am__doit:
3747	@$(TRUE)
3748.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3749  am_cv_make_support_nested_variables=yes
3750else
3751  am_cv_make_support_nested_variables=no
3752fi
3753fi
3754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3755printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3756if test $am_cv_make_support_nested_variables = yes; then
3757    AM_V='$(V)'
3758  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3759else
3760  AM_V=$AM_DEFAULT_VERBOSITY
3761  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3762fi
3763AM_BACKSLASH='\'
3764
3765ac_config_headers="$ac_config_headers config.h evconfig-private.h:evconfig-private.h.in"
3766
3767
3768printf "%s\n" "#define NUMERIC_VERSION 0x02010c00" >>confdefs.h
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782DEPDIR="${am__leading_dot}deps"
3783
3784ac_config_commands="$ac_config_commands depfiles"
3785
3786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3787printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3788cat > confinc.mk << 'END'
3789am__doit:
3790	@echo this is the am__doit target >confinc.out
3791.PHONY: am__doit
3792END
3793am__include="#"
3794am__quote=
3795# BSD make does it like this.
3796echo '.include "confinc.mk" # ignored' > confmf.BSD
3797# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3798echo 'include confinc.mk # ignored' > confmf.GNU
3799_am_result=no
3800for s in GNU BSD; do
3801  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3802   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3803   ac_status=$?
3804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805   (exit $ac_status); }
3806  case $?:`cat confinc.out 2>/dev/null` in #(
3807  '0:this is the am__doit target') :
3808    case $s in #(
3809  BSD) :
3810    am__include='.include' am__quote='"' ;; #(
3811  *) :
3812    am__include='include' am__quote='' ;;
3813esac ;; #(
3814  *) :
3815     ;;
3816esac
3817  if test "$am__include" != "#"; then
3818    _am_result="yes ($s style)"
3819    break
3820  fi
3821done
3822rm -f confinc.* confmf.*
3823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3824printf "%s\n" "${_am_result}" >&6; }
3825
3826# Check whether --enable-dependency-tracking was given.
3827if test ${enable_dependency_tracking+y}
3828then :
3829  enableval=$enable_dependency_tracking;
3830fi
3831
3832if test "x$enable_dependency_tracking" != xno; then
3833  am_depcomp="$ac_aux_dir/depcomp"
3834  AMDEPBACKSLASH='\'
3835  am__nodep='_no'
3836fi
3837 if test "x$enable_dependency_tracking" != xno; then
3838  AMDEP_TRUE=
3839  AMDEP_FALSE='#'
3840else
3841  AMDEP_TRUE='#'
3842  AMDEP_FALSE=
3843fi
3844
3845
3846ac_ext=c
3847ac_cpp='$CPP $CPPFLAGS'
3848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850ac_compiler_gnu=$ac_cv_c_compiler_gnu
3851if test -n "$ac_tool_prefix"; then
3852  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3853set dummy ${ac_tool_prefix}gcc; ac_word=$2
3854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855printf %s "checking for $ac_word... " >&6; }
3856if test ${ac_cv_prog_CC+y}
3857then :
3858  printf %s "(cached) " >&6
3859else $as_nop
3860  if test -n "$CC"; then
3861  ac_cv_prog_CC="$CC" # Let the user override the test.
3862else
3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH
3865do
3866  IFS=$as_save_IFS
3867  case $as_dir in #(((
3868    '') as_dir=./ ;;
3869    */) ;;
3870    *) as_dir=$as_dir/ ;;
3871  esac
3872    for ac_exec_ext in '' $ac_executable_extensions; do
3873  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3874    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3875    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3876    break 2
3877  fi
3878done
3879  done
3880IFS=$as_save_IFS
3881
3882fi
3883fi
3884CC=$ac_cv_prog_CC
3885if test -n "$CC"; then
3886  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3887printf "%s\n" "$CC" >&6; }
3888else
3889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890printf "%s\n" "no" >&6; }
3891fi
3892
3893
3894fi
3895if test -z "$ac_cv_prog_CC"; then
3896  ac_ct_CC=$CC
3897  # Extract the first word of "gcc", so it can be a program name with args.
3898set dummy gcc; ac_word=$2
3899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3900printf %s "checking for $ac_word... " >&6; }
3901if test ${ac_cv_prog_ac_ct_CC+y}
3902then :
3903  printf %s "(cached) " >&6
3904else $as_nop
3905  if test -n "$ac_ct_CC"; then
3906  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3907else
3908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909for as_dir in $PATH
3910do
3911  IFS=$as_save_IFS
3912  case $as_dir in #(((
3913    '') as_dir=./ ;;
3914    */) ;;
3915    *) as_dir=$as_dir/ ;;
3916  esac
3917    for ac_exec_ext in '' $ac_executable_extensions; do
3918  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3919    ac_cv_prog_ac_ct_CC="gcc"
3920    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3921    break 2
3922  fi
3923done
3924  done
3925IFS=$as_save_IFS
3926
3927fi
3928fi
3929ac_ct_CC=$ac_cv_prog_ac_ct_CC
3930if test -n "$ac_ct_CC"; then
3931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3932printf "%s\n" "$ac_ct_CC" >&6; }
3933else
3934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935printf "%s\n" "no" >&6; }
3936fi
3937
3938  if test "x$ac_ct_CC" = x; then
3939    CC=""
3940  else
3941    case $cross_compiling:$ac_tool_warned in
3942yes:)
3943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3944printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3945ac_tool_warned=yes ;;
3946esac
3947    CC=$ac_ct_CC
3948  fi
3949else
3950  CC="$ac_cv_prog_CC"
3951fi
3952
3953if test -z "$CC"; then
3954          if test -n "$ac_tool_prefix"; then
3955    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3956set dummy ${ac_tool_prefix}cc; ac_word=$2
3957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958printf %s "checking for $ac_word... " >&6; }
3959if test ${ac_cv_prog_CC+y}
3960then :
3961  printf %s "(cached) " >&6
3962else $as_nop
3963  if test -n "$CC"; then
3964  ac_cv_prog_CC="$CC" # Let the user override the test.
3965else
3966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967for as_dir in $PATH
3968do
3969  IFS=$as_save_IFS
3970  case $as_dir in #(((
3971    '') as_dir=./ ;;
3972    */) ;;
3973    *) as_dir=$as_dir/ ;;
3974  esac
3975    for ac_exec_ext in '' $ac_executable_extensions; do
3976  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3977    ac_cv_prog_CC="${ac_tool_prefix}cc"
3978    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3979    break 2
3980  fi
3981done
3982  done
3983IFS=$as_save_IFS
3984
3985fi
3986fi
3987CC=$ac_cv_prog_CC
3988if test -n "$CC"; then
3989  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3990printf "%s\n" "$CC" >&6; }
3991else
3992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993printf "%s\n" "no" >&6; }
3994fi
3995
3996
3997  fi
3998fi
3999if test -z "$CC"; then
4000  # Extract the first word of "cc", so it can be a program name with args.
4001set dummy cc; ac_word=$2
4002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4003printf %s "checking for $ac_word... " >&6; }
4004if test ${ac_cv_prog_CC+y}
4005then :
4006  printf %s "(cached) " >&6
4007else $as_nop
4008  if test -n "$CC"; then
4009  ac_cv_prog_CC="$CC" # Let the user override the test.
4010else
4011  ac_prog_rejected=no
4012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013for as_dir in $PATH
4014do
4015  IFS=$as_save_IFS
4016  case $as_dir in #(((
4017    '') as_dir=./ ;;
4018    */) ;;
4019    *) as_dir=$as_dir/ ;;
4020  esac
4021    for ac_exec_ext in '' $ac_executable_extensions; do
4022  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4023    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4024       ac_prog_rejected=yes
4025       continue
4026     fi
4027    ac_cv_prog_CC="cc"
4028    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4029    break 2
4030  fi
4031done
4032  done
4033IFS=$as_save_IFS
4034
4035if test $ac_prog_rejected = yes; then
4036  # We found a bogon in the path, so make sure we never use it.
4037  set dummy $ac_cv_prog_CC
4038  shift
4039  if test $# != 0; then
4040    # We chose a different compiler from the bogus one.
4041    # However, it has the same basename, so the bogon will be chosen
4042    # first if we set CC to just the basename; use the full file name.
4043    shift
4044    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4045  fi
4046fi
4047fi
4048fi
4049CC=$ac_cv_prog_CC
4050if test -n "$CC"; then
4051  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4052printf "%s\n" "$CC" >&6; }
4053else
4054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055printf "%s\n" "no" >&6; }
4056fi
4057
4058
4059fi
4060if test -z "$CC"; then
4061  if test -n "$ac_tool_prefix"; then
4062  for ac_prog in cl.exe
4063  do
4064    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4065set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4067printf %s "checking for $ac_word... " >&6; }
4068if test ${ac_cv_prog_CC+y}
4069then :
4070  printf %s "(cached) " >&6
4071else $as_nop
4072  if test -n "$CC"; then
4073  ac_cv_prog_CC="$CC" # Let the user override the test.
4074else
4075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076for as_dir in $PATH
4077do
4078  IFS=$as_save_IFS
4079  case $as_dir in #(((
4080    '') as_dir=./ ;;
4081    */) ;;
4082    *) as_dir=$as_dir/ ;;
4083  esac
4084    for ac_exec_ext in '' $ac_executable_extensions; do
4085  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4086    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4087    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4088    break 2
4089  fi
4090done
4091  done
4092IFS=$as_save_IFS
4093
4094fi
4095fi
4096CC=$ac_cv_prog_CC
4097if test -n "$CC"; then
4098  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4099printf "%s\n" "$CC" >&6; }
4100else
4101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102printf "%s\n" "no" >&6; }
4103fi
4104
4105
4106    test -n "$CC" && break
4107  done
4108fi
4109if test -z "$CC"; then
4110  ac_ct_CC=$CC
4111  for ac_prog in cl.exe
4112do
4113  # Extract the first word of "$ac_prog", so it can be a program name with args.
4114set dummy $ac_prog; ac_word=$2
4115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116printf %s "checking for $ac_word... " >&6; }
4117if test ${ac_cv_prog_ac_ct_CC+y}
4118then :
4119  printf %s "(cached) " >&6
4120else $as_nop
4121  if test -n "$ac_ct_CC"; then
4122  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4123else
4124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125for as_dir in $PATH
4126do
4127  IFS=$as_save_IFS
4128  case $as_dir in #(((
4129    '') as_dir=./ ;;
4130    */) ;;
4131    *) as_dir=$as_dir/ ;;
4132  esac
4133    for ac_exec_ext in '' $ac_executable_extensions; do
4134  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4135    ac_cv_prog_ac_ct_CC="$ac_prog"
4136    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4137    break 2
4138  fi
4139done
4140  done
4141IFS=$as_save_IFS
4142
4143fi
4144fi
4145ac_ct_CC=$ac_cv_prog_ac_ct_CC
4146if test -n "$ac_ct_CC"; then
4147  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4148printf "%s\n" "$ac_ct_CC" >&6; }
4149else
4150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151printf "%s\n" "no" >&6; }
4152fi
4153
4154
4155  test -n "$ac_ct_CC" && break
4156done
4157
4158  if test "x$ac_ct_CC" = x; then
4159    CC=""
4160  else
4161    case $cross_compiling:$ac_tool_warned in
4162yes:)
4163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4164printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4165ac_tool_warned=yes ;;
4166esac
4167    CC=$ac_ct_CC
4168  fi
4169fi
4170
4171fi
4172if test -z "$CC"; then
4173  if test -n "$ac_tool_prefix"; then
4174  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4175set dummy ${ac_tool_prefix}clang; ac_word=$2
4176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177printf %s "checking for $ac_word... " >&6; }
4178if test ${ac_cv_prog_CC+y}
4179then :
4180  printf %s "(cached) " >&6
4181else $as_nop
4182  if test -n "$CC"; then
4183  ac_cv_prog_CC="$CC" # Let the user override the test.
4184else
4185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186for as_dir in $PATH
4187do
4188  IFS=$as_save_IFS
4189  case $as_dir in #(((
4190    '') as_dir=./ ;;
4191    */) ;;
4192    *) as_dir=$as_dir/ ;;
4193  esac
4194    for ac_exec_ext in '' $ac_executable_extensions; do
4195  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4196    ac_cv_prog_CC="${ac_tool_prefix}clang"
4197    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4198    break 2
4199  fi
4200done
4201  done
4202IFS=$as_save_IFS
4203
4204fi
4205fi
4206CC=$ac_cv_prog_CC
4207if test -n "$CC"; then
4208  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4209printf "%s\n" "$CC" >&6; }
4210else
4211  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212printf "%s\n" "no" >&6; }
4213fi
4214
4215
4216fi
4217if test -z "$ac_cv_prog_CC"; then
4218  ac_ct_CC=$CC
4219  # Extract the first word of "clang", so it can be a program name with args.
4220set dummy clang; ac_word=$2
4221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222printf %s "checking for $ac_word... " >&6; }
4223if test ${ac_cv_prog_ac_ct_CC+y}
4224then :
4225  printf %s "(cached) " >&6
4226else $as_nop
4227  if test -n "$ac_ct_CC"; then
4228  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4229else
4230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231for as_dir in $PATH
4232do
4233  IFS=$as_save_IFS
4234  case $as_dir in #(((
4235    '') as_dir=./ ;;
4236    */) ;;
4237    *) as_dir=$as_dir/ ;;
4238  esac
4239    for ac_exec_ext in '' $ac_executable_extensions; do
4240  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4241    ac_cv_prog_ac_ct_CC="clang"
4242    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4243    break 2
4244  fi
4245done
4246  done
4247IFS=$as_save_IFS
4248
4249fi
4250fi
4251ac_ct_CC=$ac_cv_prog_ac_ct_CC
4252if test -n "$ac_ct_CC"; then
4253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4254printf "%s\n" "$ac_ct_CC" >&6; }
4255else
4256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257printf "%s\n" "no" >&6; }
4258fi
4259
4260  if test "x$ac_ct_CC" = x; then
4261    CC=""
4262  else
4263    case $cross_compiling:$ac_tool_warned in
4264yes:)
4265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4266printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4267ac_tool_warned=yes ;;
4268esac
4269    CC=$ac_ct_CC
4270  fi
4271else
4272  CC="$ac_cv_prog_CC"
4273fi
4274
4275fi
4276
4277
4278test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4279printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4280as_fn_error $? "no acceptable C compiler found in \$PATH
4281See \`config.log' for more details" "$LINENO" 5; }
4282
4283# Provide some information about the compiler.
4284printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4285set X $ac_compile
4286ac_compiler=$2
4287for ac_option in --version -v -V -qversion -version; do
4288  { { ac_try="$ac_compiler $ac_option >&5"
4289case "(($ac_try" in
4290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291  *) ac_try_echo=$ac_try;;
4292esac
4293eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4294printf "%s\n" "$ac_try_echo"; } >&5
4295  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4296  ac_status=$?
4297  if test -s conftest.err; then
4298    sed '10a\
4299... rest of stderr output deleted ...
4300         10q' conftest.err >conftest.er1
4301    cat conftest.er1 >&5
4302  fi
4303  rm -f conftest.er1 conftest.err
4304  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4305  test $ac_status = 0; }
4306done
4307
4308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309/* end confdefs.h.  */
4310
4311int
4312main (void)
4313{
4314
4315  ;
4316  return 0;
4317}
4318_ACEOF
4319ac_clean_files_save=$ac_clean_files
4320ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4321# Try to create an executable without -o first, disregard a.out.
4322# It will help us diagnose broken compilers, and finding out an intuition
4323# of exeext.
4324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4325printf %s "checking whether the C compiler works... " >&6; }
4326ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4327
4328# The possible output files:
4329ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4330
4331ac_rmfiles=
4332for ac_file in $ac_files
4333do
4334  case $ac_file in
4335    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4336    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4337  esac
4338done
4339rm -f $ac_rmfiles
4340
4341if { { ac_try="$ac_link_default"
4342case "(($ac_try" in
4343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344  *) ac_try_echo=$ac_try;;
4345esac
4346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4347printf "%s\n" "$ac_try_echo"; } >&5
4348  (eval "$ac_link_default") 2>&5
4349  ac_status=$?
4350  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351  test $ac_status = 0; }
4352then :
4353  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4354# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4355# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4356# so that the user can short-circuit this test for compilers unknown to
4357# Autoconf.
4358for ac_file in $ac_files ''
4359do
4360  test -f "$ac_file" || continue
4361  case $ac_file in
4362    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4363	;;
4364    [ab].out )
4365	# We found the default executable, but exeext='' is most
4366	# certainly right.
4367	break;;
4368    *.* )
4369	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4370	then :; else
4371	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4372	fi
4373	# We set ac_cv_exeext here because the later test for it is not
4374	# safe: cross compilers may not add the suffix if given an `-o'
4375	# argument, so we may need to know it at that point already.
4376	# Even if this section looks crufty: it has the advantage of
4377	# actually working.
4378	break;;
4379    * )
4380	break;;
4381  esac
4382done
4383test "$ac_cv_exeext" = no && ac_cv_exeext=
4384
4385else $as_nop
4386  ac_file=''
4387fi
4388if test -z "$ac_file"
4389then :
4390  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391printf "%s\n" "no" >&6; }
4392printf "%s\n" "$as_me: failed program was:" >&5
4393sed 's/^/| /' conftest.$ac_ext >&5
4394
4395{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4396printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4397as_fn_error 77 "C compiler cannot create executables
4398See \`config.log' for more details" "$LINENO" 5; }
4399else $as_nop
4400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4401printf "%s\n" "yes" >&6; }
4402fi
4403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4404printf %s "checking for C compiler default output file name... " >&6; }
4405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4406printf "%s\n" "$ac_file" >&6; }
4407ac_exeext=$ac_cv_exeext
4408
4409rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4410ac_clean_files=$ac_clean_files_save
4411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4412printf %s "checking for suffix of executables... " >&6; }
4413if { { ac_try="$ac_link"
4414case "(($ac_try" in
4415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416  *) ac_try_echo=$ac_try;;
4417esac
4418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4419printf "%s\n" "$ac_try_echo"; } >&5
4420  (eval "$ac_link") 2>&5
4421  ac_status=$?
4422  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4423  test $ac_status = 0; }
4424then :
4425  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4426# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4427# work properly (i.e., refer to `conftest.exe'), while it won't with
4428# `rm'.
4429for ac_file in conftest.exe conftest conftest.*; do
4430  test -f "$ac_file" || continue
4431  case $ac_file in
4432    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4433    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4434	  break;;
4435    * ) break;;
4436  esac
4437done
4438else $as_nop
4439  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4440printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4441as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4442See \`config.log' for more details" "$LINENO" 5; }
4443fi
4444rm -f conftest conftest$ac_cv_exeext
4445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4446printf "%s\n" "$ac_cv_exeext" >&6; }
4447
4448rm -f conftest.$ac_ext
4449EXEEXT=$ac_cv_exeext
4450ac_exeext=$EXEEXT
4451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452/* end confdefs.h.  */
4453#include <stdio.h>
4454int
4455main (void)
4456{
4457FILE *f = fopen ("conftest.out", "w");
4458 return ferror (f) || fclose (f) != 0;
4459
4460  ;
4461  return 0;
4462}
4463_ACEOF
4464ac_clean_files="$ac_clean_files conftest.out"
4465# Check that the compiler produces executables we can run.  If not, either
4466# the compiler is broken, or we cross compile.
4467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4468printf %s "checking whether we are cross compiling... " >&6; }
4469if test "$cross_compiling" != yes; then
4470  { { ac_try="$ac_link"
4471case "(($ac_try" in
4472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473  *) ac_try_echo=$ac_try;;
4474esac
4475eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4476printf "%s\n" "$ac_try_echo"; } >&5
4477  (eval "$ac_link") 2>&5
4478  ac_status=$?
4479  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4480  test $ac_status = 0; }
4481  if { ac_try='./conftest$ac_cv_exeext'
4482  { { case "(($ac_try" in
4483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484  *) ac_try_echo=$ac_try;;
4485esac
4486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4487printf "%s\n" "$ac_try_echo"; } >&5
4488  (eval "$ac_try") 2>&5
4489  ac_status=$?
4490  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4491  test $ac_status = 0; }; }; then
4492    cross_compiling=no
4493  else
4494    if test "$cross_compiling" = maybe; then
4495	cross_compiling=yes
4496    else
4497	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4498printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4499as_fn_error 77 "cannot run C compiled programs.
4500If you meant to cross compile, use \`--host'.
4501See \`config.log' for more details" "$LINENO" 5; }
4502    fi
4503  fi
4504fi
4505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4506printf "%s\n" "$cross_compiling" >&6; }
4507
4508rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4509ac_clean_files=$ac_clean_files_save
4510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4511printf %s "checking for suffix of object files... " >&6; }
4512if test ${ac_cv_objext+y}
4513then :
4514  printf %s "(cached) " >&6
4515else $as_nop
4516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517/* end confdefs.h.  */
4518
4519int
4520main (void)
4521{
4522
4523  ;
4524  return 0;
4525}
4526_ACEOF
4527rm -f conftest.o conftest.obj
4528if { { ac_try="$ac_compile"
4529case "(($ac_try" in
4530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531  *) ac_try_echo=$ac_try;;
4532esac
4533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4534printf "%s\n" "$ac_try_echo"; } >&5
4535  (eval "$ac_compile") 2>&5
4536  ac_status=$?
4537  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4538  test $ac_status = 0; }
4539then :
4540  for ac_file in conftest.o conftest.obj conftest.*; do
4541  test -f "$ac_file" || continue;
4542  case $ac_file in
4543    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4544    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4545       break;;
4546  esac
4547done
4548else $as_nop
4549  printf "%s\n" "$as_me: failed program was:" >&5
4550sed 's/^/| /' conftest.$ac_ext >&5
4551
4552{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4553printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4554as_fn_error $? "cannot compute suffix of object files: cannot compile
4555See \`config.log' for more details" "$LINENO" 5; }
4556fi
4557rm -f conftest.$ac_cv_objext conftest.$ac_ext
4558fi
4559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4560printf "%s\n" "$ac_cv_objext" >&6; }
4561OBJEXT=$ac_cv_objext
4562ac_objext=$OBJEXT
4563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4564printf %s "checking whether the compiler supports GNU C... " >&6; }
4565if test ${ac_cv_c_compiler_gnu+y}
4566then :
4567  printf %s "(cached) " >&6
4568else $as_nop
4569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570/* end confdefs.h.  */
4571
4572int
4573main (void)
4574{
4575#ifndef __GNUC__
4576       choke me
4577#endif
4578
4579  ;
4580  return 0;
4581}
4582_ACEOF
4583if ac_fn_c_try_compile "$LINENO"
4584then :
4585  ac_compiler_gnu=yes
4586else $as_nop
4587  ac_compiler_gnu=no
4588fi
4589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4590ac_cv_c_compiler_gnu=$ac_compiler_gnu
4591
4592fi
4593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4594printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4595ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596
4597if test $ac_compiler_gnu = yes; then
4598  GCC=yes
4599else
4600  GCC=
4601fi
4602ac_test_CFLAGS=${CFLAGS+y}
4603ac_save_CFLAGS=$CFLAGS
4604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4605printf %s "checking whether $CC accepts -g... " >&6; }
4606if test ${ac_cv_prog_cc_g+y}
4607then :
4608  printf %s "(cached) " >&6
4609else $as_nop
4610  ac_save_c_werror_flag=$ac_c_werror_flag
4611   ac_c_werror_flag=yes
4612   ac_cv_prog_cc_g=no
4613   CFLAGS="-g"
4614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615/* end confdefs.h.  */
4616
4617int
4618main (void)
4619{
4620
4621  ;
4622  return 0;
4623}
4624_ACEOF
4625if ac_fn_c_try_compile "$LINENO"
4626then :
4627  ac_cv_prog_cc_g=yes
4628else $as_nop
4629  CFLAGS=""
4630      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631/* end confdefs.h.  */
4632
4633int
4634main (void)
4635{
4636
4637  ;
4638  return 0;
4639}
4640_ACEOF
4641if ac_fn_c_try_compile "$LINENO"
4642then :
4643
4644else $as_nop
4645  ac_c_werror_flag=$ac_save_c_werror_flag
4646	 CFLAGS="-g"
4647	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648/* end confdefs.h.  */
4649
4650int
4651main (void)
4652{
4653
4654  ;
4655  return 0;
4656}
4657_ACEOF
4658if ac_fn_c_try_compile "$LINENO"
4659then :
4660  ac_cv_prog_cc_g=yes
4661fi
4662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4663fi
4664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4665fi
4666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4667   ac_c_werror_flag=$ac_save_c_werror_flag
4668fi
4669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4670printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4671if test $ac_test_CFLAGS; then
4672  CFLAGS=$ac_save_CFLAGS
4673elif test $ac_cv_prog_cc_g = yes; then
4674  if test "$GCC" = yes; then
4675    CFLAGS="-g -O2"
4676  else
4677    CFLAGS="-g"
4678  fi
4679else
4680  if test "$GCC" = yes; then
4681    CFLAGS="-O2"
4682  else
4683    CFLAGS=
4684  fi
4685fi
4686ac_prog_cc_stdc=no
4687if test x$ac_prog_cc_stdc = xno
4688then :
4689  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4690printf %s "checking for $CC option to enable C11 features... " >&6; }
4691if test ${ac_cv_prog_cc_c11+y}
4692then :
4693  printf %s "(cached) " >&6
4694else $as_nop
4695  ac_cv_prog_cc_c11=no
4696ac_save_CC=$CC
4697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698/* end confdefs.h.  */
4699$ac_c_conftest_c11_program
4700_ACEOF
4701for ac_arg in '' -std=gnu11
4702do
4703  CC="$ac_save_CC $ac_arg"
4704  if ac_fn_c_try_compile "$LINENO"
4705then :
4706  ac_cv_prog_cc_c11=$ac_arg
4707fi
4708rm -f core conftest.err conftest.$ac_objext conftest.beam
4709  test "x$ac_cv_prog_cc_c11" != "xno" && break
4710done
4711rm -f conftest.$ac_ext
4712CC=$ac_save_CC
4713fi
4714
4715if test "x$ac_cv_prog_cc_c11" = xno
4716then :
4717  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4718printf "%s\n" "unsupported" >&6; }
4719else $as_nop
4720  if test "x$ac_cv_prog_cc_c11" = x
4721then :
4722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4723printf "%s\n" "none needed" >&6; }
4724else $as_nop
4725  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4726printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4727     CC="$CC $ac_cv_prog_cc_c11"
4728fi
4729  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4730  ac_prog_cc_stdc=c11
4731fi
4732fi
4733if test x$ac_prog_cc_stdc = xno
4734then :
4735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4736printf %s "checking for $CC option to enable C99 features... " >&6; }
4737if test ${ac_cv_prog_cc_c99+y}
4738then :
4739  printf %s "(cached) " >&6
4740else $as_nop
4741  ac_cv_prog_cc_c99=no
4742ac_save_CC=$CC
4743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744/* end confdefs.h.  */
4745$ac_c_conftest_c99_program
4746_ACEOF
4747for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4748do
4749  CC="$ac_save_CC $ac_arg"
4750  if ac_fn_c_try_compile "$LINENO"
4751then :
4752  ac_cv_prog_cc_c99=$ac_arg
4753fi
4754rm -f core conftest.err conftest.$ac_objext conftest.beam
4755  test "x$ac_cv_prog_cc_c99" != "xno" && break
4756done
4757rm -f conftest.$ac_ext
4758CC=$ac_save_CC
4759fi
4760
4761if test "x$ac_cv_prog_cc_c99" = xno
4762then :
4763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4764printf "%s\n" "unsupported" >&6; }
4765else $as_nop
4766  if test "x$ac_cv_prog_cc_c99" = x
4767then :
4768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4769printf "%s\n" "none needed" >&6; }
4770else $as_nop
4771  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4772printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4773     CC="$CC $ac_cv_prog_cc_c99"
4774fi
4775  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4776  ac_prog_cc_stdc=c99
4777fi
4778fi
4779if test x$ac_prog_cc_stdc = xno
4780then :
4781  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4782printf %s "checking for $CC option to enable C89 features... " >&6; }
4783if test ${ac_cv_prog_cc_c89+y}
4784then :
4785  printf %s "(cached) " >&6
4786else $as_nop
4787  ac_cv_prog_cc_c89=no
4788ac_save_CC=$CC
4789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790/* end confdefs.h.  */
4791$ac_c_conftest_c89_program
4792_ACEOF
4793for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4794do
4795  CC="$ac_save_CC $ac_arg"
4796  if ac_fn_c_try_compile "$LINENO"
4797then :
4798  ac_cv_prog_cc_c89=$ac_arg
4799fi
4800rm -f core conftest.err conftest.$ac_objext conftest.beam
4801  test "x$ac_cv_prog_cc_c89" != "xno" && break
4802done
4803rm -f conftest.$ac_ext
4804CC=$ac_save_CC
4805fi
4806
4807if test "x$ac_cv_prog_cc_c89" = xno
4808then :
4809  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4810printf "%s\n" "unsupported" >&6; }
4811else $as_nop
4812  if test "x$ac_cv_prog_cc_c89" = x
4813then :
4814  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4815printf "%s\n" "none needed" >&6; }
4816else $as_nop
4817  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4818printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4819     CC="$CC $ac_cv_prog_cc_c89"
4820fi
4821  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4822  ac_prog_cc_stdc=c89
4823fi
4824fi
4825
4826ac_ext=c
4827ac_cpp='$CPP $CPPFLAGS'
4828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4830ac_compiler_gnu=$ac_cv_c_compiler_gnu
4831
4832
4833  ac_ext=c
4834ac_cpp='$CPP $CPPFLAGS'
4835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837ac_compiler_gnu=$ac_cv_c_compiler_gnu
4838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4839printf %s "checking whether $CC understands -c and -o together... " >&6; }
4840if test ${am_cv_prog_cc_c_o+y}
4841then :
4842  printf %s "(cached) " >&6
4843else $as_nop
4844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845/* end confdefs.h.  */
4846
4847int
4848main (void)
4849{
4850
4851  ;
4852  return 0;
4853}
4854_ACEOF
4855  # Make sure it works both with $CC and with simple cc.
4856  # Following AC_PROG_CC_C_O, we do the test twice because some
4857  # compilers refuse to overwrite an existing .o file with -o,
4858  # though they will create one.
4859  am_cv_prog_cc_c_o=yes
4860  for am_i in 1 2; do
4861    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4862   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4863   ac_status=$?
4864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865   (exit $ac_status); } \
4866         && test -f conftest2.$ac_objext; then
4867      : OK
4868    else
4869      am_cv_prog_cc_c_o=no
4870      break
4871    fi
4872  done
4873  rm -f core conftest*
4874  unset am_i
4875fi
4876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4877printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4878if test "$am_cv_prog_cc_c_o" != yes; then
4879   # Losing compiler, so override with the script.
4880   # FIXME: It is wrong to rewrite CC.
4881   # But if we don't then we get into trouble of one sort or another.
4882   # A longer-term fix would be to have automake use am__CC in this case,
4883   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4884   CC="$am_aux_dir/compile $CC"
4885fi
4886ac_ext=c
4887ac_cpp='$CPP $CPPFLAGS'
4888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4890ac_compiler_gnu=$ac_cv_c_compiler_gnu
4891
4892
4893depcc="$CC"   am_compiler_list=
4894
4895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4896printf %s "checking dependency style of $depcc... " >&6; }
4897if test ${am_cv_CC_dependencies_compiler_type+y}
4898then :
4899  printf %s "(cached) " >&6
4900else $as_nop
4901  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4902  # We make a subdir and do the tests there.  Otherwise we can end up
4903  # making bogus files that we don't know about and never remove.  For
4904  # instance it was reported that on HP-UX the gcc test will end up
4905  # making a dummy file named 'D' -- because '-MD' means "put the output
4906  # in D".
4907  rm -rf conftest.dir
4908  mkdir conftest.dir
4909  # Copy depcomp to subdir because otherwise we won't find it if we're
4910  # using a relative directory.
4911  cp "$am_depcomp" conftest.dir
4912  cd conftest.dir
4913  # We will build objects and dependencies in a subdirectory because
4914  # it helps to detect inapplicable dependency modes.  For instance
4915  # both Tru64's cc and ICC support -MD to output dependencies as a
4916  # side effect of compilation, but ICC will put the dependencies in
4917  # the current directory while Tru64 will put them in the object
4918  # directory.
4919  mkdir sub
4920
4921  am_cv_CC_dependencies_compiler_type=none
4922  if test "$am_compiler_list" = ""; then
4923     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4924  fi
4925  am__universal=false
4926  case " $depcc " in #(
4927     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4928     esac
4929
4930  for depmode in $am_compiler_list; do
4931    # Setup a source with many dependencies, because some compilers
4932    # like to wrap large dependency lists on column 80 (with \), and
4933    # we should not choose a depcomp mode which is confused by this.
4934    #
4935    # We need to recreate these files for each test, as the compiler may
4936    # overwrite some of them when testing with obscure command lines.
4937    # This happens at least with the AIX C compiler.
4938    : > sub/conftest.c
4939    for i in 1 2 3 4 5 6; do
4940      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4941      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4942      # Solaris 10 /bin/sh.
4943      echo '/* dummy */' > sub/conftst$i.h
4944    done
4945    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4946
4947    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4948    # mode.  It turns out that the SunPro C++ compiler does not properly
4949    # handle '-M -o', and we need to detect this.  Also, some Intel
4950    # versions had trouble with output in subdirs.
4951    am__obj=sub/conftest.${OBJEXT-o}
4952    am__minus_obj="-o $am__obj"
4953    case $depmode in
4954    gcc)
4955      # This depmode causes a compiler race in universal mode.
4956      test "$am__universal" = false || continue
4957      ;;
4958    nosideeffect)
4959      # After this tag, mechanisms are not by side-effect, so they'll
4960      # only be used when explicitly requested.
4961      if test "x$enable_dependency_tracking" = xyes; then
4962	continue
4963      else
4964	break
4965      fi
4966      ;;
4967    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4968      # This compiler won't grok '-c -o', but also, the minuso test has
4969      # not run yet.  These depmodes are late enough in the game, and
4970      # so weak that their functioning should not be impacted.
4971      am__obj=conftest.${OBJEXT-o}
4972      am__minus_obj=
4973      ;;
4974    none) break ;;
4975    esac
4976    if depmode=$depmode \
4977       source=sub/conftest.c object=$am__obj \
4978       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4979       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4980         >/dev/null 2>conftest.err &&
4981       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4982       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4983       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4984       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4985      # icc doesn't choke on unknown options, it will just issue warnings
4986      # or remarks (even with -Werror).  So we grep stderr for any message
4987      # that says an option was ignored or not supported.
4988      # When given -MP, icc 7.0 and 7.1 complain thusly:
4989      #   icc: Command line warning: ignoring option '-M'; no argument required
4990      # The diagnosis changed in icc 8.0:
4991      #   icc: Command line remark: option '-MP' not supported
4992      if (grep 'ignoring option' conftest.err ||
4993          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4994        am_cv_CC_dependencies_compiler_type=$depmode
4995        break
4996      fi
4997    fi
4998  done
4999
5000  cd ..
5001  rm -rf conftest.dir
5002else
5003  am_cv_CC_dependencies_compiler_type=none
5004fi
5005
5006fi
5007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5008printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5009CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5010
5011 if
5012  test "x$enable_dependency_tracking" != xno \
5013  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5014  am__fastdepCC_TRUE=
5015  am__fastdepCC_FALSE='#'
5016else
5017  am__fastdepCC_TRUE='#'
5018  am__fastdepCC_FALSE=
5019fi
5020
5021
5022
5023ac_header= ac_cache=
5024for ac_item in $ac_header_c_list
5025do
5026  if test $ac_cache; then
5027    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5028    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5029      printf "%s\n" "#define $ac_item 1" >> confdefs.h
5030    fi
5031    ac_header= ac_cache=
5032  elif test $ac_header; then
5033    ac_cache=$ac_item
5034  else
5035    ac_header=$ac_item
5036  fi
5037done
5038
5039
5040
5041
5042
5043
5044
5045
5046if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5047then :
5048
5049printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5050
5051fi
5052
5053
5054
5055
5056
5057
5058  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5059printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5060if test ${ac_cv_safe_to_define___extensions__+y}
5061then :
5062  printf %s "(cached) " >&6
5063else $as_nop
5064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065/* end confdefs.h.  */
5066
5067#         define __EXTENSIONS__ 1
5068          $ac_includes_default
5069int
5070main (void)
5071{
5072
5073  ;
5074  return 0;
5075}
5076_ACEOF
5077if ac_fn_c_try_compile "$LINENO"
5078then :
5079  ac_cv_safe_to_define___extensions__=yes
5080else $as_nop
5081  ac_cv_safe_to_define___extensions__=no
5082fi
5083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5084fi
5085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5086printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5087
5088  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5089printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5090if test ${ac_cv_should_define__xopen_source+y}
5091then :
5092  printf %s "(cached) " >&6
5093else $as_nop
5094  ac_cv_should_define__xopen_source=no
5095    if test $ac_cv_header_wchar_h = yes
5096then :
5097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098/* end confdefs.h.  */
5099
5100          #include <wchar.h>
5101          mbstate_t x;
5102int
5103main (void)
5104{
5105
5106  ;
5107  return 0;
5108}
5109_ACEOF
5110if ac_fn_c_try_compile "$LINENO"
5111then :
5112
5113else $as_nop
5114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115/* end confdefs.h.  */
5116
5117            #define _XOPEN_SOURCE 500
5118            #include <wchar.h>
5119            mbstate_t x;
5120int
5121main (void)
5122{
5123
5124  ;
5125  return 0;
5126}
5127_ACEOF
5128if ac_fn_c_try_compile "$LINENO"
5129then :
5130  ac_cv_should_define__xopen_source=yes
5131fi
5132rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5133fi
5134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5135fi
5136fi
5137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5138printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5139
5140  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5141
5142  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5143
5144  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5145
5146  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5147
5148  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5149
5150  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5151
5152  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5153
5154  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5155
5156  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5157
5158  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5159
5160  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5161
5162  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5163
5164  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5165
5166  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5167
5168  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5169
5170  if test $ac_cv_header_minix_config_h = yes
5171then :
5172  MINIX=yes
5173    printf "%s\n" "#define _MINIX 1" >>confdefs.h
5174
5175    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5176
5177    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5178
5179else $as_nop
5180  MINIX=
5181fi
5182  if test $ac_cv_safe_to_define___extensions__ = yes
5183then :
5184  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5185
5186fi
5187  if test $ac_cv_should_define__xopen_source = yes
5188then :
5189  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5190
5191fi
5192
5193
5194
5195
5196  # Make sure we can run config.sub.
5197$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5198  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5199
5200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5201printf %s "checking build system type... " >&6; }
5202if test ${ac_cv_build+y}
5203then :
5204  printf %s "(cached) " >&6
5205else $as_nop
5206  ac_build_alias=$build_alias
5207test "x$ac_build_alias" = x &&
5208  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5209test "x$ac_build_alias" = x &&
5210  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5211ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5212  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5213
5214fi
5215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5216printf "%s\n" "$ac_cv_build" >&6; }
5217case $ac_cv_build in
5218*-*-*) ;;
5219*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5220esac
5221build=$ac_cv_build
5222ac_save_IFS=$IFS; IFS='-'
5223set x $ac_cv_build
5224shift
5225build_cpu=$1
5226build_vendor=$2
5227shift; shift
5228# Remember, the first character of IFS is used to create $*,
5229# except with old shells:
5230build_os=$*
5231IFS=$ac_save_IFS
5232case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5233
5234
5235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5236printf %s "checking host system type... " >&6; }
5237if test ${ac_cv_host+y}
5238then :
5239  printf %s "(cached) " >&6
5240else $as_nop
5241  if test "x$host_alias" = x; then
5242  ac_cv_host=$ac_cv_build
5243else
5244  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5245    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5246fi
5247
5248fi
5249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5250printf "%s\n" "$ac_cv_host" >&6; }
5251case $ac_cv_host in
5252*-*-*) ;;
5253*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5254esac
5255host=$ac_cv_host
5256ac_save_IFS=$IFS; IFS='-'
5257set x $ac_cv_host
5258shift
5259host_cpu=$1
5260host_vendor=$2
5261shift; shift
5262# Remember, the first character of IFS is used to create $*,
5263# except with old shells:
5264host_os=$*
5265IFS=$ac_save_IFS
5266case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5267
5268
5269
5270#case "$host_os" in
5271#
5272# osf5*)
5273#    CFLAGS="$CFLAGS -D_OSF_SOURCE"
5274#    ;;
5275#esac
5276
5277
5278
5279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5280printf %s "checking whether ln -s works... " >&6; }
5281LN_S=$as_ln_s
5282if test "$LN_S" = "ln -s"; then
5283  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5284printf "%s\n" "yes" >&6; }
5285else
5286  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5287printf "%s\n" "no, using $LN_S" >&6; }
5288fi
5289
5290# AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
5291
5292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5293printf %s "checking for a sed that does not truncate output... " >&6; }
5294if test ${ac_cv_path_SED+y}
5295then :
5296  printf %s "(cached) " >&6
5297else $as_nop
5298            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5299     for ac_i in 1 2 3 4 5 6 7; do
5300       ac_script="$ac_script$as_nl$ac_script"
5301     done
5302     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5303     { ac_script=; unset ac_script;}
5304     if test -z "$SED"; then
5305  ac_path_SED_found=false
5306  # Loop through the user's path and test for each of PROGNAME-LIST
5307  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308for as_dir in $PATH
5309do
5310  IFS=$as_save_IFS
5311  case $as_dir in #(((
5312    '') as_dir=./ ;;
5313    */) ;;
5314    *) as_dir=$as_dir/ ;;
5315  esac
5316    for ac_prog in sed gsed
5317   do
5318    for ac_exec_ext in '' $ac_executable_extensions; do
5319      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5320      as_fn_executable_p "$ac_path_SED" || continue
5321# Check for GNU ac_path_SED and select it if it is found.
5322  # Check for GNU $ac_path_SED
5323case `"$ac_path_SED" --version 2>&1` in
5324*GNU*)
5325  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5326*)
5327  ac_count=0
5328  printf %s 0123456789 >"conftest.in"
5329  while :
5330  do
5331    cat "conftest.in" "conftest.in" >"conftest.tmp"
5332    mv "conftest.tmp" "conftest.in"
5333    cp "conftest.in" "conftest.nl"
5334    printf "%s\n" '' >> "conftest.nl"
5335    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5336    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5337    as_fn_arith $ac_count + 1 && ac_count=$as_val
5338    if test $ac_count -gt ${ac_path_SED_max-0}; then
5339      # Best one so far, save it but keep looking for a better one
5340      ac_cv_path_SED="$ac_path_SED"
5341      ac_path_SED_max=$ac_count
5342    fi
5343    # 10*(2^10) chars as input seems more than enough
5344    test $ac_count -gt 10 && break
5345  done
5346  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5347esac
5348
5349      $ac_path_SED_found && break 3
5350    done
5351  done
5352  done
5353IFS=$as_save_IFS
5354  if test -z "$ac_cv_path_SED"; then
5355    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5356  fi
5357else
5358  ac_cv_path_SED=$SED
5359fi
5360
5361fi
5362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5363printf "%s\n" "$ac_cv_path_SED" >&6; }
5364 SED="$ac_cv_path_SED"
5365  rm -f conftest.sed
5366
5367
5368ac_ext=c
5369ac_cpp='$CPP $CPPFLAGS'
5370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5372ac_compiler_gnu=$ac_cv_c_compiler_gnu
5373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5374printf %s "checking how to run the C preprocessor... " >&6; }
5375# On Suns, sometimes $CPP names a directory.
5376if test -n "$CPP" && test -d "$CPP"; then
5377  CPP=
5378fi
5379if test -z "$CPP"; then
5380  if test ${ac_cv_prog_CPP+y}
5381then :
5382  printf %s "(cached) " >&6
5383else $as_nop
5384      # Double quotes because $CC needs to be expanded
5385    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5386    do
5387      ac_preproc_ok=false
5388for ac_c_preproc_warn_flag in '' yes
5389do
5390  # Use a header file that comes with gcc, so configuring glibc
5391  # with a fresh cross-compiler works.
5392  # On the NeXT, cc -E runs the code through the compiler's parser,
5393  # not just through cpp. "Syntax error" is here to catch this case.
5394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395/* end confdefs.h.  */
5396#include <limits.h>
5397		     Syntax error
5398_ACEOF
5399if ac_fn_c_try_cpp "$LINENO"
5400then :
5401
5402else $as_nop
5403  # Broken: fails on valid input.
5404continue
5405fi
5406rm -f conftest.err conftest.i conftest.$ac_ext
5407
5408  # OK, works on sane cases.  Now check whether nonexistent headers
5409  # can be detected and how.
5410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411/* end confdefs.h.  */
5412#include <ac_nonexistent.h>
5413_ACEOF
5414if ac_fn_c_try_cpp "$LINENO"
5415then :
5416  # Broken: success on invalid input.
5417continue
5418else $as_nop
5419  # Passes both tests.
5420ac_preproc_ok=:
5421break
5422fi
5423rm -f conftest.err conftest.i conftest.$ac_ext
5424
5425done
5426# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5427rm -f conftest.i conftest.err conftest.$ac_ext
5428if $ac_preproc_ok
5429then :
5430  break
5431fi
5432
5433    done
5434    ac_cv_prog_CPP=$CPP
5435
5436fi
5437  CPP=$ac_cv_prog_CPP
5438else
5439  ac_cv_prog_CPP=$CPP
5440fi
5441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5442printf "%s\n" "$CPP" >&6; }
5443ac_preproc_ok=false
5444for ac_c_preproc_warn_flag in '' yes
5445do
5446  # Use a header file that comes with gcc, so configuring glibc
5447  # with a fresh cross-compiler works.
5448  # On the NeXT, cc -E runs the code through the compiler's parser,
5449  # not just through cpp. "Syntax error" is here to catch this case.
5450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451/* end confdefs.h.  */
5452#include <limits.h>
5453		     Syntax error
5454_ACEOF
5455if ac_fn_c_try_cpp "$LINENO"
5456then :
5457
5458else $as_nop
5459  # Broken: fails on valid input.
5460continue
5461fi
5462rm -f conftest.err conftest.i conftest.$ac_ext
5463
5464  # OK, works on sane cases.  Now check whether nonexistent headers
5465  # can be detected and how.
5466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467/* end confdefs.h.  */
5468#include <ac_nonexistent.h>
5469_ACEOF
5470if ac_fn_c_try_cpp "$LINENO"
5471then :
5472  # Broken: success on invalid input.
5473continue
5474else $as_nop
5475  # Passes both tests.
5476ac_preproc_ok=:
5477break
5478fi
5479rm -f conftest.err conftest.i conftest.$ac_ext
5480
5481done
5482# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5483rm -f conftest.i conftest.err conftest.$ac_ext
5484if $ac_preproc_ok
5485then :
5486
5487else $as_nop
5488  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5489printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5490as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5491See \`config.log' for more details" "$LINENO" 5; }
5492fi
5493
5494ac_ext=c
5495ac_cpp='$CPP $CPPFLAGS'
5496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5498ac_compiler_gnu=$ac_cv_c_compiler_gnu
5499
5500
5501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5502printf %s "checking for grep that handles long lines and -e... " >&6; }
5503if test ${ac_cv_path_GREP+y}
5504then :
5505  printf %s "(cached) " >&6
5506else $as_nop
5507  if test -z "$GREP"; then
5508  ac_path_GREP_found=false
5509  # Loop through the user's path and test for each of PROGNAME-LIST
5510  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5512do
5513  IFS=$as_save_IFS
5514  case $as_dir in #(((
5515    '') as_dir=./ ;;
5516    */) ;;
5517    *) as_dir=$as_dir/ ;;
5518  esac
5519    for ac_prog in grep ggrep
5520   do
5521    for ac_exec_ext in '' $ac_executable_extensions; do
5522      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5523      as_fn_executable_p "$ac_path_GREP" || continue
5524# Check for GNU ac_path_GREP and select it if it is found.
5525  # Check for GNU $ac_path_GREP
5526case `"$ac_path_GREP" --version 2>&1` in
5527*GNU*)
5528  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5529*)
5530  ac_count=0
5531  printf %s 0123456789 >"conftest.in"
5532  while :
5533  do
5534    cat "conftest.in" "conftest.in" >"conftest.tmp"
5535    mv "conftest.tmp" "conftest.in"
5536    cp "conftest.in" "conftest.nl"
5537    printf "%s\n" 'GREP' >> "conftest.nl"
5538    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5539    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5540    as_fn_arith $ac_count + 1 && ac_count=$as_val
5541    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5542      # Best one so far, save it but keep looking for a better one
5543      ac_cv_path_GREP="$ac_path_GREP"
5544      ac_path_GREP_max=$ac_count
5545    fi
5546    # 10*(2^10) chars as input seems more than enough
5547    test $ac_count -gt 10 && break
5548  done
5549  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5550esac
5551
5552      $ac_path_GREP_found && break 3
5553    done
5554  done
5555  done
5556IFS=$as_save_IFS
5557  if test -z "$ac_cv_path_GREP"; then
5558    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5559  fi
5560else
5561  ac_cv_path_GREP=$GREP
5562fi
5563
5564fi
5565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5566printf "%s\n" "$ac_cv_path_GREP" >&6; }
5567 GREP="$ac_cv_path_GREP"
5568
5569
5570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5571printf %s "checking for egrep... " >&6; }
5572if test ${ac_cv_path_EGREP+y}
5573then :
5574  printf %s "(cached) " >&6
5575else $as_nop
5576  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5577   then ac_cv_path_EGREP="$GREP -E"
5578   else
5579     if test -z "$EGREP"; then
5580  ac_path_EGREP_found=false
5581  # Loop through the user's path and test for each of PROGNAME-LIST
5582  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5584do
5585  IFS=$as_save_IFS
5586  case $as_dir in #(((
5587    '') as_dir=./ ;;
5588    */) ;;
5589    *) as_dir=$as_dir/ ;;
5590  esac
5591    for ac_prog in egrep
5592   do
5593    for ac_exec_ext in '' $ac_executable_extensions; do
5594      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5595      as_fn_executable_p "$ac_path_EGREP" || continue
5596# Check for GNU ac_path_EGREP and select it if it is found.
5597  # Check for GNU $ac_path_EGREP
5598case `"$ac_path_EGREP" --version 2>&1` in
5599*GNU*)
5600  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5601*)
5602  ac_count=0
5603  printf %s 0123456789 >"conftest.in"
5604  while :
5605  do
5606    cat "conftest.in" "conftest.in" >"conftest.tmp"
5607    mv "conftest.tmp" "conftest.in"
5608    cp "conftest.in" "conftest.nl"
5609    printf "%s\n" 'EGREP' >> "conftest.nl"
5610    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5611    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5612    as_fn_arith $ac_count + 1 && ac_count=$as_val
5613    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5614      # Best one so far, save it but keep looking for a better one
5615      ac_cv_path_EGREP="$ac_path_EGREP"
5616      ac_path_EGREP_max=$ac_count
5617    fi
5618    # 10*(2^10) chars as input seems more than enough
5619    test $ac_count -gt 10 && break
5620  done
5621  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5622esac
5623
5624      $ac_path_EGREP_found && break 3
5625    done
5626  done
5627  done
5628IFS=$as_save_IFS
5629  if test -z "$ac_cv_path_EGREP"; then
5630    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5631  fi
5632else
5633  ac_cv_path_EGREP=$EGREP
5634fi
5635
5636   fi
5637fi
5638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5639printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5640 EGREP="$ac_cv_path_EGREP"
5641
5642
5643if test $ac_cv_c_compiler_gnu = yes; then
5644    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5645printf %s "checking whether $CC needs -traditional... " >&6; }
5646if test ${ac_cv_prog_gcc_traditional+y}
5647then :
5648  printf %s "(cached) " >&6
5649else $as_nop
5650    ac_pattern="Autoconf.*'x'"
5651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652/* end confdefs.h.  */
5653#include <sgtty.h>
5654Autoconf TIOCGETP
5655_ACEOF
5656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5657  $EGREP "$ac_pattern" >/dev/null 2>&1
5658then :
5659  ac_cv_prog_gcc_traditional=yes
5660else $as_nop
5661  ac_cv_prog_gcc_traditional=no
5662fi
5663rm -rf conftest*
5664
5665
5666  if test $ac_cv_prog_gcc_traditional = no; then
5667    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668/* end confdefs.h.  */
5669#include <termio.h>
5670Autoconf TCGETA
5671_ACEOF
5672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5673  $EGREP "$ac_pattern" >/dev/null 2>&1
5674then :
5675  ac_cv_prog_gcc_traditional=yes
5676fi
5677rm -rf conftest*
5678
5679  fi
5680fi
5681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5682printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; }
5683  if test $ac_cv_prog_gcc_traditional = yes; then
5684    CC="$CC -traditional"
5685  fi
5686fi
5687
5688
5689# We need to test for at least gcc 2.95 here, because older versions don't
5690# have -fno-strict-aliasing
5691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692/* end confdefs.h.  */
5693
5694int
5695main (void)
5696{
5697
5698#if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
5699#error
5700#endif
5701  ;
5702  return 0;
5703}
5704_ACEOF
5705if ac_fn_c_try_compile "$LINENO"
5706then :
5707  have_gcc295=yes
5708else $as_nop
5709  have_gcc295=no
5710fi
5711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5712
5713if test "$GCC" = "yes" ; then
5714        # Enable many gcc warnings by default...
5715        CFLAGS="$CFLAGS -Wall"
5716	# And disable the strict-aliasing optimization, since it breaks
5717	# our sockaddr-handling code in strange ways.
5718	if test x$have_gcc295 = xyes; then
5719		CFLAGS="$CFLAGS -fno-strict-aliasing"
5720	fi
5721fi
5722
5723# OS X Lion started deprecating the system openssl. Let's just disable
5724# all deprecation warnings on OS X; but do so only for gcc...
5725if test "$GCC" = "yes" ; then
5726	case "$host_os" in
5727	 darwin*)
5728	    CFLAGS="$CFLAGS -Wno-deprecated-declarations"
5729	    ;;
5730	esac
5731fi
5732
5733# Check whether --enable-gcc-warnings was given.
5734if test ${enable_gcc_warnings+y}
5735then :
5736  enableval=$enable_gcc_warnings;
5737fi
5738
5739
5740# Check whether --enable-gcc-hardening was given.
5741if test ${enable_gcc_hardening+y}
5742then :
5743  enableval=$enable_gcc_hardening; if test x$enableval = xyes; then
5744    CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all"
5745    CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector"
5746    CFLAGS="$CFLAGS --param ssp-buffer-size=1"
5747fi
5748fi
5749
5750
5751# Check whether --enable-thread-support was given.
5752if test ${enable_thread_support+y}
5753then :
5754  enableval=$enable_thread_support;
5755else $as_nop
5756  enable_thread_support=yes
5757fi
5758
5759# Check whether --enable-malloc-replacement was given.
5760if test ${enable_malloc_replacement+y}
5761then :
5762  enableval=$enable_malloc_replacement;
5763else $as_nop
5764  enable_malloc_replacement=yes
5765fi
5766
5767# Check whether --enable-openssl was given.
5768if test ${enable_openssl+y}
5769then :
5770  enableval=$enable_openssl;
5771else $as_nop
5772  enable_openssl=yes
5773fi
5774
5775# Check whether --enable-debug-mode was given.
5776if test ${enable_debug_mode+y}
5777then :
5778  enableval=$enable_debug_mode;
5779else $as_nop
5780  enable_debug_mode=yes
5781fi
5782
5783# Check whether --enable-libevent-install was given.
5784if test ${enable_libevent_install+y}
5785then :
5786  enableval=$enable_libevent_install;
5787else $as_nop
5788  enable_libevent_install=yes
5789fi
5790
5791# Check whether --enable-libevent-regress was given.
5792if test ${enable_libevent_regress+y}
5793then :
5794  enableval=$enable_libevent_regress;
5795else $as_nop
5796  enable_libevent_regress=yes
5797fi
5798
5799# Check whether --enable-samples was given.
5800if test ${enable_samples+y}
5801then :
5802  enableval=$enable_samples;
5803else $as_nop
5804  enable_samples=yes
5805fi
5806
5807# Check whether --enable-function-sections was given.
5808if test ${enable_function_sections+y}
5809then :
5810  enableval=$enable_function_sections;
5811else $as_nop
5812  enable_function_sections=no
5813fi
5814
5815# Check whether --enable-verbose-debug was given.
5816if test ${enable_verbose_debug+y}
5817then :
5818  enableval=$enable_verbose_debug;
5819else $as_nop
5820  enable_verbose_debug=no
5821fi
5822
5823# Check whether --enable-clock-gettime was given.
5824if test ${enable_clock_gettime+y}
5825then :
5826  enableval=$enable_clock_gettime;
5827else $as_nop
5828  enable_clock_gettime=yes
5829fi
5830
5831
5832
5833
5834case `pwd` in
5835  *\ * | *\	*)
5836    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5837printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5838esac
5839
5840
5841
5842macro_version='2.4.6'
5843macro_revision='2.4.6'
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858ltmain=$ac_aux_dir/ltmain.sh
5859
5860# Backslashify metacharacters that are still active within
5861# double-quoted strings.
5862sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5863
5864# Same as above, but do not quote variable references.
5865double_quote_subst='s/\(["`\\]\)/\\\1/g'
5866
5867# Sed substitution to delay expansion of an escaped shell variable in a
5868# double_quote_subst'ed string.
5869delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5870
5871# Sed substitution to delay expansion of an escaped single quote.
5872delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5873
5874# Sed substitution to avoid accidental globbing in evaled expressions
5875no_glob_subst='s/\*/\\\*/g'
5876
5877ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5878ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5879ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5880
5881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5882printf %s "checking how to print strings... " >&6; }
5883# Test print first, because it will be a builtin if present.
5884if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5885   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5886  ECHO='print -r --'
5887elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5888  ECHO='printf %s\n'
5889else
5890  # Use this function as a fallback that always works.
5891  func_fallback_echo ()
5892  {
5893    eval 'cat <<_LTECHO_EOF
5894$1
5895_LTECHO_EOF'
5896  }
5897  ECHO='func_fallback_echo'
5898fi
5899
5900# func_echo_all arg...
5901# Invoke $ECHO with all args, space-separated.
5902func_echo_all ()
5903{
5904    $ECHO ""
5905}
5906
5907case $ECHO in
5908  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5909printf "%s\n" "printf" >&6; } ;;
5910  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5911printf "%s\n" "print -r" >&6; } ;;
5912  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5913printf "%s\n" "cat" >&6; } ;;
5914esac
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5930printf %s "checking for a sed that does not truncate output... " >&6; }
5931if test ${ac_cv_path_SED+y}
5932then :
5933  printf %s "(cached) " >&6
5934else $as_nop
5935            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5936     for ac_i in 1 2 3 4 5 6 7; do
5937       ac_script="$ac_script$as_nl$ac_script"
5938     done
5939     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5940     { ac_script=; unset ac_script;}
5941     if test -z "$SED"; then
5942  ac_path_SED_found=false
5943  # Loop through the user's path and test for each of PROGNAME-LIST
5944  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945for as_dir in $PATH
5946do
5947  IFS=$as_save_IFS
5948  case $as_dir in #(((
5949    '') as_dir=./ ;;
5950    */) ;;
5951    *) as_dir=$as_dir/ ;;
5952  esac
5953    for ac_prog in sed gsed
5954   do
5955    for ac_exec_ext in '' $ac_executable_extensions; do
5956      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5957      as_fn_executable_p "$ac_path_SED" || continue
5958# Check for GNU ac_path_SED and select it if it is found.
5959  # Check for GNU $ac_path_SED
5960case `"$ac_path_SED" --version 2>&1` in
5961*GNU*)
5962  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5963*)
5964  ac_count=0
5965  printf %s 0123456789 >"conftest.in"
5966  while :
5967  do
5968    cat "conftest.in" "conftest.in" >"conftest.tmp"
5969    mv "conftest.tmp" "conftest.in"
5970    cp "conftest.in" "conftest.nl"
5971    printf "%s\n" '' >> "conftest.nl"
5972    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5973    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5974    as_fn_arith $ac_count + 1 && ac_count=$as_val
5975    if test $ac_count -gt ${ac_path_SED_max-0}; then
5976      # Best one so far, save it but keep looking for a better one
5977      ac_cv_path_SED="$ac_path_SED"
5978      ac_path_SED_max=$ac_count
5979    fi
5980    # 10*(2^10) chars as input seems more than enough
5981    test $ac_count -gt 10 && break
5982  done
5983  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5984esac
5985
5986      $ac_path_SED_found && break 3
5987    done
5988  done
5989  done
5990IFS=$as_save_IFS
5991  if test -z "$ac_cv_path_SED"; then
5992    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5993  fi
5994else
5995  ac_cv_path_SED=$SED
5996fi
5997
5998fi
5999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6000printf "%s\n" "$ac_cv_path_SED" >&6; }
6001 SED="$ac_cv_path_SED"
6002  rm -f conftest.sed
6003
6004test -z "$SED" && SED=sed
6005Xsed="$SED -e 1s/^X//"
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6018printf %s "checking for fgrep... " >&6; }
6019if test ${ac_cv_path_FGREP+y}
6020then :
6021  printf %s "(cached) " >&6
6022else $as_nop
6023  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6024   then ac_cv_path_FGREP="$GREP -F"
6025   else
6026     if test -z "$FGREP"; then
6027  ac_path_FGREP_found=false
6028  # Loop through the user's path and test for each of PROGNAME-LIST
6029  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6031do
6032  IFS=$as_save_IFS
6033  case $as_dir in #(((
6034    '') as_dir=./ ;;
6035    */) ;;
6036    *) as_dir=$as_dir/ ;;
6037  esac
6038    for ac_prog in fgrep
6039   do
6040    for ac_exec_ext in '' $ac_executable_extensions; do
6041      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6042      as_fn_executable_p "$ac_path_FGREP" || continue
6043# Check for GNU ac_path_FGREP and select it if it is found.
6044  # Check for GNU $ac_path_FGREP
6045case `"$ac_path_FGREP" --version 2>&1` in
6046*GNU*)
6047  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6048*)
6049  ac_count=0
6050  printf %s 0123456789 >"conftest.in"
6051  while :
6052  do
6053    cat "conftest.in" "conftest.in" >"conftest.tmp"
6054    mv "conftest.tmp" "conftest.in"
6055    cp "conftest.in" "conftest.nl"
6056    printf "%s\n" 'FGREP' >> "conftest.nl"
6057    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6058    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6059    as_fn_arith $ac_count + 1 && ac_count=$as_val
6060    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6061      # Best one so far, save it but keep looking for a better one
6062      ac_cv_path_FGREP="$ac_path_FGREP"
6063      ac_path_FGREP_max=$ac_count
6064    fi
6065    # 10*(2^10) chars as input seems more than enough
6066    test $ac_count -gt 10 && break
6067  done
6068  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6069esac
6070
6071      $ac_path_FGREP_found && break 3
6072    done
6073  done
6074  done
6075IFS=$as_save_IFS
6076  if test -z "$ac_cv_path_FGREP"; then
6077    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6078  fi
6079else
6080  ac_cv_path_FGREP=$FGREP
6081fi
6082
6083   fi
6084fi
6085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6086printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6087 FGREP="$ac_cv_path_FGREP"
6088
6089
6090test -z "$GREP" && GREP=grep
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110# Check whether --with-gnu-ld was given.
6111if test ${with_gnu_ld+y}
6112then :
6113  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6114else $as_nop
6115  with_gnu_ld=no
6116fi
6117
6118ac_prog=ld
6119if test yes = "$GCC"; then
6120  # Check if gcc -print-prog-name=ld gives a path.
6121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6122printf %s "checking for ld used by $CC... " >&6; }
6123  case $host in
6124  *-*-mingw*)
6125    # gcc leaves a trailing carriage return, which upsets mingw
6126    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6127  *)
6128    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6129  esac
6130  case $ac_prog in
6131    # Accept absolute paths.
6132    [\\/]* | ?:[\\/]*)
6133      re_direlt='/[^/][^/]*/\.\./'
6134      # Canonicalize the pathname of ld
6135      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6136      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6137	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6138      done
6139      test -z "$LD" && LD=$ac_prog
6140      ;;
6141  "")
6142    # If it fails, then pretend we aren't using GCC.
6143    ac_prog=ld
6144    ;;
6145  *)
6146    # If it is relative, then search for the first ld in PATH.
6147    with_gnu_ld=unknown
6148    ;;
6149  esac
6150elif test yes = "$with_gnu_ld"; then
6151  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6152printf %s "checking for GNU ld... " >&6; }
6153else
6154  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6155printf %s "checking for non-GNU ld... " >&6; }
6156fi
6157if test ${lt_cv_path_LD+y}
6158then :
6159  printf %s "(cached) " >&6
6160else $as_nop
6161  if test -z "$LD"; then
6162  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6163  for ac_dir in $PATH; do
6164    IFS=$lt_save_ifs
6165    test -z "$ac_dir" && ac_dir=.
6166    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6167      lt_cv_path_LD=$ac_dir/$ac_prog
6168      # Check to see if the program is GNU ld.  I'd rather use --version,
6169      # but apparently some variants of GNU ld only accept -v.
6170      # Break only if it was the GNU/non-GNU ld that we prefer.
6171      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6172      *GNU* | *'with BFD'*)
6173	test no != "$with_gnu_ld" && break
6174	;;
6175      *)
6176	test yes != "$with_gnu_ld" && break
6177	;;
6178      esac
6179    fi
6180  done
6181  IFS=$lt_save_ifs
6182else
6183  lt_cv_path_LD=$LD # Let the user override the test with a path.
6184fi
6185fi
6186
6187LD=$lt_cv_path_LD
6188if test -n "$LD"; then
6189  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6190printf "%s\n" "$LD" >&6; }
6191else
6192  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6193printf "%s\n" "no" >&6; }
6194fi
6195test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6197printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6198if test ${lt_cv_prog_gnu_ld+y}
6199then :
6200  printf %s "(cached) " >&6
6201else $as_nop
6202  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6203case `$LD -v 2>&1 </dev/null` in
6204*GNU* | *'with BFD'*)
6205  lt_cv_prog_gnu_ld=yes
6206  ;;
6207*)
6208  lt_cv_prog_gnu_ld=no
6209  ;;
6210esac
6211fi
6212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6213printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6214with_gnu_ld=$lt_cv_prog_gnu_ld
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6225printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6226if test ${lt_cv_path_NM+y}
6227then :
6228  printf %s "(cached) " >&6
6229else $as_nop
6230  if test -n "$NM"; then
6231  # Let the user override the test.
6232  lt_cv_path_NM=$NM
6233else
6234  lt_nm_to_check=${ac_tool_prefix}nm
6235  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6236    lt_nm_to_check="$lt_nm_to_check nm"
6237  fi
6238  for lt_tmp_nm in $lt_nm_to_check; do
6239    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6240    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6241      IFS=$lt_save_ifs
6242      test -z "$ac_dir" && ac_dir=.
6243      tmp_nm=$ac_dir/$lt_tmp_nm
6244      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6245	# Check to see if the nm accepts a BSD-compat flag.
6246	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6247	#   nm: unknown option "B" ignored
6248	# Tru64's nm complains that /dev/null is an invalid object file
6249	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6250	case $build_os in
6251	mingw*) lt_bad_file=conftest.nm/nofile ;;
6252	*) lt_bad_file=/dev/null ;;
6253	esac
6254	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6255	*$lt_bad_file* | *'Invalid file or object type'*)
6256	  lt_cv_path_NM="$tmp_nm -B"
6257	  break 2
6258	  ;;
6259	*)
6260	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6261	  */dev/null*)
6262	    lt_cv_path_NM="$tmp_nm -p"
6263	    break 2
6264	    ;;
6265	  *)
6266	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6267	    continue # so that we can try to find one that supports BSD flags
6268	    ;;
6269	  esac
6270	  ;;
6271	esac
6272      fi
6273    done
6274    IFS=$lt_save_ifs
6275  done
6276  : ${lt_cv_path_NM=no}
6277fi
6278fi
6279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6280printf "%s\n" "$lt_cv_path_NM" >&6; }
6281if test no != "$lt_cv_path_NM"; then
6282  NM=$lt_cv_path_NM
6283else
6284  # Didn't find any BSD compatible name lister, look for dumpbin.
6285  if test -n "$DUMPBIN"; then :
6286    # Let the user override the test.
6287  else
6288    if test -n "$ac_tool_prefix"; then
6289  for ac_prog in dumpbin "link -dump"
6290  do
6291    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6292set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294printf %s "checking for $ac_word... " >&6; }
6295if test ${ac_cv_prog_DUMPBIN+y}
6296then :
6297  printf %s "(cached) " >&6
6298else $as_nop
6299  if test -n "$DUMPBIN"; then
6300  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6301else
6302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303for as_dir in $PATH
6304do
6305  IFS=$as_save_IFS
6306  case $as_dir in #(((
6307    '') as_dir=./ ;;
6308    */) ;;
6309    *) as_dir=$as_dir/ ;;
6310  esac
6311    for ac_exec_ext in '' $ac_executable_extensions; do
6312  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6313    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6314    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6315    break 2
6316  fi
6317done
6318  done
6319IFS=$as_save_IFS
6320
6321fi
6322fi
6323DUMPBIN=$ac_cv_prog_DUMPBIN
6324if test -n "$DUMPBIN"; then
6325  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6326printf "%s\n" "$DUMPBIN" >&6; }
6327else
6328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329printf "%s\n" "no" >&6; }
6330fi
6331
6332
6333    test -n "$DUMPBIN" && break
6334  done
6335fi
6336if test -z "$DUMPBIN"; then
6337  ac_ct_DUMPBIN=$DUMPBIN
6338  for ac_prog in dumpbin "link -dump"
6339do
6340  # Extract the first word of "$ac_prog", so it can be a program name with args.
6341set dummy $ac_prog; ac_word=$2
6342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343printf %s "checking for $ac_word... " >&6; }
6344if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6345then :
6346  printf %s "(cached) " >&6
6347else $as_nop
6348  if test -n "$ac_ct_DUMPBIN"; then
6349  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6350else
6351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352for as_dir in $PATH
6353do
6354  IFS=$as_save_IFS
6355  case $as_dir in #(((
6356    '') as_dir=./ ;;
6357    */) ;;
6358    *) as_dir=$as_dir/ ;;
6359  esac
6360    for ac_exec_ext in '' $ac_executable_extensions; do
6361  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6362    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6363    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6364    break 2
6365  fi
6366done
6367  done
6368IFS=$as_save_IFS
6369
6370fi
6371fi
6372ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6373if test -n "$ac_ct_DUMPBIN"; then
6374  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6375printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6376else
6377  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378printf "%s\n" "no" >&6; }
6379fi
6380
6381
6382  test -n "$ac_ct_DUMPBIN" && break
6383done
6384
6385  if test "x$ac_ct_DUMPBIN" = x; then
6386    DUMPBIN=":"
6387  else
6388    case $cross_compiling:$ac_tool_warned in
6389yes:)
6390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6391printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6392ac_tool_warned=yes ;;
6393esac
6394    DUMPBIN=$ac_ct_DUMPBIN
6395  fi
6396fi
6397
6398    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6399    *COFF*)
6400      DUMPBIN="$DUMPBIN -symbols -headers"
6401      ;;
6402    *)
6403      DUMPBIN=:
6404      ;;
6405    esac
6406  fi
6407
6408  if test : != "$DUMPBIN"; then
6409    NM=$DUMPBIN
6410  fi
6411fi
6412test -z "$NM" && NM=nm
6413
6414
6415
6416
6417
6418
6419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6420printf %s "checking the name lister ($NM) interface... " >&6; }
6421if test ${lt_cv_nm_interface+y}
6422then :
6423  printf %s "(cached) " >&6
6424else $as_nop
6425  lt_cv_nm_interface="BSD nm"
6426  echo "int some_variable = 0;" > conftest.$ac_ext
6427  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6428  (eval "$ac_compile" 2>conftest.err)
6429  cat conftest.err >&5
6430  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6431  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6432  cat conftest.err >&5
6433  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6434  cat conftest.out >&5
6435  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6436    lt_cv_nm_interface="MS dumpbin"
6437  fi
6438  rm -f conftest*
6439fi
6440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6441printf "%s\n" "$lt_cv_nm_interface" >&6; }
6442
6443# find the maximum length of command line arguments
6444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6445printf %s "checking the maximum length of command line arguments... " >&6; }
6446if test ${lt_cv_sys_max_cmd_len+y}
6447then :
6448  printf %s "(cached) " >&6
6449else $as_nop
6450    i=0
6451  teststring=ABCD
6452
6453  case $build_os in
6454  msdosdjgpp*)
6455    # On DJGPP, this test can blow up pretty badly due to problems in libc
6456    # (any single argument exceeding 2000 bytes causes a buffer overrun
6457    # during glob expansion).  Even if it were fixed, the result of this
6458    # check would be larger than it should be.
6459    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6460    ;;
6461
6462  gnu*)
6463    # Under GNU Hurd, this test is not required because there is
6464    # no limit to the length of command line arguments.
6465    # Libtool will interpret -1 as no limit whatsoever
6466    lt_cv_sys_max_cmd_len=-1;
6467    ;;
6468
6469  cygwin* | mingw* | cegcc*)
6470    # On Win9x/ME, this test blows up -- it succeeds, but takes
6471    # about 5 minutes as the teststring grows exponentially.
6472    # Worse, since 9x/ME are not pre-emptively multitasking,
6473    # you end up with a "frozen" computer, even though with patience
6474    # the test eventually succeeds (with a max line length of 256k).
6475    # Instead, let's just punt: use the minimum linelength reported by
6476    # all of the supported platforms: 8192 (on NT/2K/XP).
6477    lt_cv_sys_max_cmd_len=8192;
6478    ;;
6479
6480  mint*)
6481    # On MiNT this can take a long time and run out of memory.
6482    lt_cv_sys_max_cmd_len=8192;
6483    ;;
6484
6485  amigaos*)
6486    # On AmigaOS with pdksh, this test takes hours, literally.
6487    # So we just punt and use a minimum line length of 8192.
6488    lt_cv_sys_max_cmd_len=8192;
6489    ;;
6490
6491  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6492    # This has been around since 386BSD, at least.  Likely further.
6493    if test -x /sbin/sysctl; then
6494      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6495    elif test -x /usr/sbin/sysctl; then
6496      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6497    else
6498      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6499    fi
6500    # And add a safety zone
6501    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6502    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6503    ;;
6504
6505  interix*)
6506    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6507    lt_cv_sys_max_cmd_len=196608
6508    ;;
6509
6510  os2*)
6511    # The test takes a long time on OS/2.
6512    lt_cv_sys_max_cmd_len=8192
6513    ;;
6514
6515  osf*)
6516    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6517    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6518    # nice to cause kernel panics so lets avoid the loop below.
6519    # First set a reasonable default.
6520    lt_cv_sys_max_cmd_len=16384
6521    #
6522    if test -x /sbin/sysconfig; then
6523      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6524        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6525      esac
6526    fi
6527    ;;
6528  sco3.2v5*)
6529    lt_cv_sys_max_cmd_len=102400
6530    ;;
6531  sysv5* | sco5v6* | sysv4.2uw2*)
6532    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6533    if test -n "$kargmax"; then
6534      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6535    else
6536      lt_cv_sys_max_cmd_len=32768
6537    fi
6538    ;;
6539  *)
6540    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6541    if test -n "$lt_cv_sys_max_cmd_len" && \
6542       test undefined != "$lt_cv_sys_max_cmd_len"; then
6543      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6544      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6545    else
6546      # Make teststring a little bigger before we do anything with it.
6547      # a 1K string should be a reasonable start.
6548      for i in 1 2 3 4 5 6 7 8; do
6549        teststring=$teststring$teststring
6550      done
6551      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6552      # If test is not a shell built-in, we'll probably end up computing a
6553      # maximum length that is only half of the actual maximum length, but
6554      # we can't tell.
6555      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6556	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6557	      test 17 != "$i" # 1/2 MB should be enough
6558      do
6559        i=`expr $i + 1`
6560        teststring=$teststring$teststring
6561      done
6562      # Only check the string length outside the loop.
6563      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6564      teststring=
6565      # Add a significant safety factor because C++ compilers can tack on
6566      # massive amounts of additional arguments before passing them to the
6567      # linker.  It appears as though 1/2 is a usable value.
6568      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6569    fi
6570    ;;
6571  esac
6572
6573fi
6574
6575if test -n "$lt_cv_sys_max_cmd_len"; then
6576  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6577printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6578else
6579  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6580printf "%s\n" "none" >&6; }
6581fi
6582max_cmd_len=$lt_cv_sys_max_cmd_len
6583
6584
6585
6586
6587
6588
6589: ${CP="cp -f"}
6590: ${MV="mv -f"}
6591: ${RM="rm -f"}
6592
6593if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6594  lt_unset=unset
6595else
6596  lt_unset=false
6597fi
6598
6599
6600
6601
6602
6603# test EBCDIC or ASCII
6604case `echo X|tr X '\101'` in
6605 A) # ASCII based system
6606    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6607  lt_SP2NL='tr \040 \012'
6608  lt_NL2SP='tr \015\012 \040\040'
6609  ;;
6610 *) # EBCDIC based system
6611  lt_SP2NL='tr \100 \n'
6612  lt_NL2SP='tr \r\n \100\100'
6613  ;;
6614esac
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6625printf %s "checking how to convert $build file names to $host format... " >&6; }
6626if test ${lt_cv_to_host_file_cmd+y}
6627then :
6628  printf %s "(cached) " >&6
6629else $as_nop
6630  case $host in
6631  *-*-mingw* )
6632    case $build in
6633      *-*-mingw* ) # actually msys
6634        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6635        ;;
6636      *-*-cygwin* )
6637        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6638        ;;
6639      * ) # otherwise, assume *nix
6640        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6641        ;;
6642    esac
6643    ;;
6644  *-*-cygwin* )
6645    case $build in
6646      *-*-mingw* ) # actually msys
6647        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6648        ;;
6649      *-*-cygwin* )
6650        lt_cv_to_host_file_cmd=func_convert_file_noop
6651        ;;
6652      * ) # otherwise, assume *nix
6653        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6654        ;;
6655    esac
6656    ;;
6657  * ) # unhandled hosts (and "normal" native builds)
6658    lt_cv_to_host_file_cmd=func_convert_file_noop
6659    ;;
6660esac
6661
6662fi
6663
6664to_host_file_cmd=$lt_cv_to_host_file_cmd
6665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6666printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6667
6668
6669
6670
6671
6672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6673printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6674if test ${lt_cv_to_tool_file_cmd+y}
6675then :
6676  printf %s "(cached) " >&6
6677else $as_nop
6678  #assume ordinary cross tools, or native build.
6679lt_cv_to_tool_file_cmd=func_convert_file_noop
6680case $host in
6681  *-*-mingw* )
6682    case $build in
6683      *-*-mingw* ) # actually msys
6684        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6685        ;;
6686    esac
6687    ;;
6688esac
6689
6690fi
6691
6692to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6694printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6695
6696
6697
6698
6699
6700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6701printf %s "checking for $LD option to reload object files... " >&6; }
6702if test ${lt_cv_ld_reload_flag+y}
6703then :
6704  printf %s "(cached) " >&6
6705else $as_nop
6706  lt_cv_ld_reload_flag='-r'
6707fi
6708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6709printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6710reload_flag=$lt_cv_ld_reload_flag
6711case $reload_flag in
6712"" | " "*) ;;
6713*) reload_flag=" $reload_flag" ;;
6714esac
6715reload_cmds='$LD$reload_flag -o $output$reload_objs'
6716case $host_os in
6717  cygwin* | mingw* | pw32* | cegcc*)
6718    if test yes != "$GCC"; then
6719      reload_cmds=false
6720    fi
6721    ;;
6722  darwin*)
6723    if test yes = "$GCC"; then
6724      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6725    else
6726      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6727    fi
6728    ;;
6729esac
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739if test -n "$ac_tool_prefix"; then
6740  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6741set dummy ${ac_tool_prefix}objdump; ac_word=$2
6742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743printf %s "checking for $ac_word... " >&6; }
6744if test ${ac_cv_prog_OBJDUMP+y}
6745then :
6746  printf %s "(cached) " >&6
6747else $as_nop
6748  if test -n "$OBJDUMP"; then
6749  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6750else
6751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752for as_dir in $PATH
6753do
6754  IFS=$as_save_IFS
6755  case $as_dir in #(((
6756    '') as_dir=./ ;;
6757    */) ;;
6758    *) as_dir=$as_dir/ ;;
6759  esac
6760    for ac_exec_ext in '' $ac_executable_extensions; do
6761  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6762    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6763    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6764    break 2
6765  fi
6766done
6767  done
6768IFS=$as_save_IFS
6769
6770fi
6771fi
6772OBJDUMP=$ac_cv_prog_OBJDUMP
6773if test -n "$OBJDUMP"; then
6774  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6775printf "%s\n" "$OBJDUMP" >&6; }
6776else
6777  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778printf "%s\n" "no" >&6; }
6779fi
6780
6781
6782fi
6783if test -z "$ac_cv_prog_OBJDUMP"; then
6784  ac_ct_OBJDUMP=$OBJDUMP
6785  # Extract the first word of "objdump", so it can be a program name with args.
6786set dummy objdump; ac_word=$2
6787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788printf %s "checking for $ac_word... " >&6; }
6789if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6790then :
6791  printf %s "(cached) " >&6
6792else $as_nop
6793  if test -n "$ac_ct_OBJDUMP"; then
6794  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6795else
6796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797for as_dir in $PATH
6798do
6799  IFS=$as_save_IFS
6800  case $as_dir in #(((
6801    '') as_dir=./ ;;
6802    */) ;;
6803    *) as_dir=$as_dir/ ;;
6804  esac
6805    for ac_exec_ext in '' $ac_executable_extensions; do
6806  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6807    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6808    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6809    break 2
6810  fi
6811done
6812  done
6813IFS=$as_save_IFS
6814
6815fi
6816fi
6817ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6818if test -n "$ac_ct_OBJDUMP"; then
6819  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6820printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6821else
6822  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823printf "%s\n" "no" >&6; }
6824fi
6825
6826  if test "x$ac_ct_OBJDUMP" = x; then
6827    OBJDUMP="false"
6828  else
6829    case $cross_compiling:$ac_tool_warned in
6830yes:)
6831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6832printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6833ac_tool_warned=yes ;;
6834esac
6835    OBJDUMP=$ac_ct_OBJDUMP
6836  fi
6837else
6838  OBJDUMP="$ac_cv_prog_OBJDUMP"
6839fi
6840
6841test -z "$OBJDUMP" && OBJDUMP=objdump
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6852printf %s "checking how to recognize dependent libraries... " >&6; }
6853if test ${lt_cv_deplibs_check_method+y}
6854then :
6855  printf %s "(cached) " >&6
6856else $as_nop
6857  lt_cv_file_magic_cmd='$MAGIC_CMD'
6858lt_cv_file_magic_test_file=
6859lt_cv_deplibs_check_method='unknown'
6860# Need to set the preceding variable on all platforms that support
6861# interlibrary dependencies.
6862# 'none' -- dependencies not supported.
6863# 'unknown' -- same as none, but documents that we really don't know.
6864# 'pass_all' -- all dependencies passed with no checks.
6865# 'test_compile' -- check by making test program.
6866# 'file_magic [[regex]]' -- check by looking for files in library path
6867# that responds to the $file_magic_cmd with a given extended regex.
6868# If you have 'file' or equivalent on your system and you're not sure
6869# whether 'pass_all' will *always* work, you probably want this one.
6870
6871case $host_os in
6872aix[4-9]*)
6873  lt_cv_deplibs_check_method=pass_all
6874  ;;
6875
6876beos*)
6877  lt_cv_deplibs_check_method=pass_all
6878  ;;
6879
6880bsdi[45]*)
6881  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6882  lt_cv_file_magic_cmd='/usr/bin/file -L'
6883  lt_cv_file_magic_test_file=/shlib/libc.so
6884  ;;
6885
6886cygwin*)
6887  # func_win32_libid is a shell function defined in ltmain.sh
6888  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6889  lt_cv_file_magic_cmd='func_win32_libid'
6890  ;;
6891
6892mingw* | pw32*)
6893  # Base MSYS/MinGW do not provide the 'file' command needed by
6894  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6895  # unless we find 'file', for example because we are cross-compiling.
6896  if ( file / ) >/dev/null 2>&1; then
6897    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6898    lt_cv_file_magic_cmd='func_win32_libid'
6899  else
6900    # Keep this pattern in sync with the one in func_win32_libid.
6901    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6902    lt_cv_file_magic_cmd='$OBJDUMP -f'
6903  fi
6904  ;;
6905
6906cegcc*)
6907  # use the weaker test based on 'objdump'. See mingw*.
6908  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6909  lt_cv_file_magic_cmd='$OBJDUMP -f'
6910  ;;
6911
6912darwin* | rhapsody*)
6913  lt_cv_deplibs_check_method=pass_all
6914  ;;
6915
6916freebsd* | dragonfly*)
6917  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6918    case $host_cpu in
6919    i*86 )
6920      # Not sure whether the presence of OpenBSD here was a mistake.
6921      # Let's accept both of them until this is cleared up.
6922      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6923      lt_cv_file_magic_cmd=/usr/bin/file
6924      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6925      ;;
6926    esac
6927  else
6928    lt_cv_deplibs_check_method=pass_all
6929  fi
6930  ;;
6931
6932haiku*)
6933  lt_cv_deplibs_check_method=pass_all
6934  ;;
6935
6936hpux10.20* | hpux11*)
6937  lt_cv_file_magic_cmd=/usr/bin/file
6938  case $host_cpu in
6939  ia64*)
6940    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6941    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6942    ;;
6943  hppa*64*)
6944    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]'
6945    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6946    ;;
6947  *)
6948    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6949    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6950    ;;
6951  esac
6952  ;;
6953
6954interix[3-9]*)
6955  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6956  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6957  ;;
6958
6959irix5* | irix6* | nonstopux*)
6960  case $LD in
6961  *-32|*"-32 ") libmagic=32-bit;;
6962  *-n32|*"-n32 ") libmagic=N32;;
6963  *-64|*"-64 ") libmagic=64-bit;;
6964  *) libmagic=never-match;;
6965  esac
6966  lt_cv_deplibs_check_method=pass_all
6967  ;;
6968
6969# This must be glibc/ELF.
6970linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6971  lt_cv_deplibs_check_method=pass_all
6972  ;;
6973
6974netbsd*)
6975  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6976    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6977  else
6978    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6979  fi
6980  ;;
6981
6982newos6*)
6983  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6984  lt_cv_file_magic_cmd=/usr/bin/file
6985  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6986  ;;
6987
6988*nto* | *qnx*)
6989  lt_cv_deplibs_check_method=pass_all
6990  ;;
6991
6992openbsd* | bitrig*)
6993  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6994    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6995  else
6996    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6997  fi
6998  ;;
6999
7000osf3* | osf4* | osf5*)
7001  lt_cv_deplibs_check_method=pass_all
7002  ;;
7003
7004rdos*)
7005  lt_cv_deplibs_check_method=pass_all
7006  ;;
7007
7008solaris*)
7009  lt_cv_deplibs_check_method=pass_all
7010  ;;
7011
7012sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7013  lt_cv_deplibs_check_method=pass_all
7014  ;;
7015
7016sysv4 | sysv4.3*)
7017  case $host_vendor in
7018  motorola)
7019    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]'
7020    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7021    ;;
7022  ncr)
7023    lt_cv_deplibs_check_method=pass_all
7024    ;;
7025  sequent)
7026    lt_cv_file_magic_cmd='/bin/file'
7027    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7028    ;;
7029  sni)
7030    lt_cv_file_magic_cmd='/bin/file'
7031    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7032    lt_cv_file_magic_test_file=/lib/libc.so
7033    ;;
7034  siemens)
7035    lt_cv_deplibs_check_method=pass_all
7036    ;;
7037  pc)
7038    lt_cv_deplibs_check_method=pass_all
7039    ;;
7040  esac
7041  ;;
7042
7043tpf*)
7044  lt_cv_deplibs_check_method=pass_all
7045  ;;
7046os2*)
7047  lt_cv_deplibs_check_method=pass_all
7048  ;;
7049esac
7050
7051fi
7052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7053printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7054
7055file_magic_glob=
7056want_nocaseglob=no
7057if test "$build" = "$host"; then
7058  case $host_os in
7059  mingw* | pw32*)
7060    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7061      want_nocaseglob=yes
7062    else
7063      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7064    fi
7065    ;;
7066  esac
7067fi
7068
7069file_magic_cmd=$lt_cv_file_magic_cmd
7070deplibs_check_method=$lt_cv_deplibs_check_method
7071test -z "$deplibs_check_method" && deplibs_check_method=unknown
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094if test -n "$ac_tool_prefix"; then
7095  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7096set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098printf %s "checking for $ac_word... " >&6; }
7099if test ${ac_cv_prog_DLLTOOL+y}
7100then :
7101  printf %s "(cached) " >&6
7102else $as_nop
7103  if test -n "$DLLTOOL"; then
7104  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7105else
7106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107for as_dir in $PATH
7108do
7109  IFS=$as_save_IFS
7110  case $as_dir in #(((
7111    '') as_dir=./ ;;
7112    */) ;;
7113    *) as_dir=$as_dir/ ;;
7114  esac
7115    for ac_exec_ext in '' $ac_executable_extensions; do
7116  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7117    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7118    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7119    break 2
7120  fi
7121done
7122  done
7123IFS=$as_save_IFS
7124
7125fi
7126fi
7127DLLTOOL=$ac_cv_prog_DLLTOOL
7128if test -n "$DLLTOOL"; then
7129  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7130printf "%s\n" "$DLLTOOL" >&6; }
7131else
7132  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133printf "%s\n" "no" >&6; }
7134fi
7135
7136
7137fi
7138if test -z "$ac_cv_prog_DLLTOOL"; then
7139  ac_ct_DLLTOOL=$DLLTOOL
7140  # Extract the first word of "dlltool", so it can be a program name with args.
7141set dummy dlltool; ac_word=$2
7142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7143printf %s "checking for $ac_word... " >&6; }
7144if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7145then :
7146  printf %s "(cached) " >&6
7147else $as_nop
7148  if test -n "$ac_ct_DLLTOOL"; then
7149  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7150else
7151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152for as_dir in $PATH
7153do
7154  IFS=$as_save_IFS
7155  case $as_dir in #(((
7156    '') as_dir=./ ;;
7157    */) ;;
7158    *) as_dir=$as_dir/ ;;
7159  esac
7160    for ac_exec_ext in '' $ac_executable_extensions; do
7161  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7162    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7163    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7164    break 2
7165  fi
7166done
7167  done
7168IFS=$as_save_IFS
7169
7170fi
7171fi
7172ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7173if test -n "$ac_ct_DLLTOOL"; then
7174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7175printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7176else
7177  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178printf "%s\n" "no" >&6; }
7179fi
7180
7181  if test "x$ac_ct_DLLTOOL" = x; then
7182    DLLTOOL="false"
7183  else
7184    case $cross_compiling:$ac_tool_warned in
7185yes:)
7186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7187printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7188ac_tool_warned=yes ;;
7189esac
7190    DLLTOOL=$ac_ct_DLLTOOL
7191  fi
7192else
7193  DLLTOOL="$ac_cv_prog_DLLTOOL"
7194fi
7195
7196test -z "$DLLTOOL" && DLLTOOL=dlltool
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7208printf %s "checking how to associate runtime and link libraries... " >&6; }
7209if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7210then :
7211  printf %s "(cached) " >&6
7212else $as_nop
7213  lt_cv_sharedlib_from_linklib_cmd='unknown'
7214
7215case $host_os in
7216cygwin* | mingw* | pw32* | cegcc*)
7217  # two different shell functions defined in ltmain.sh;
7218  # decide which one to use based on capabilities of $DLLTOOL
7219  case `$DLLTOOL --help 2>&1` in
7220  *--identify-strict*)
7221    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7222    ;;
7223  *)
7224    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7225    ;;
7226  esac
7227  ;;
7228*)
7229  # fallback: assume linklib IS sharedlib
7230  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7231  ;;
7232esac
7233
7234fi
7235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7236printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7237sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7238test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7239
7240
7241
7242
7243
7244
7245
7246if test -n "$ac_tool_prefix"; then
7247  for ac_prog in ar
7248  do
7249    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7250set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252printf %s "checking for $ac_word... " >&6; }
7253if test ${ac_cv_prog_AR+y}
7254then :
7255  printf %s "(cached) " >&6
7256else $as_nop
7257  if test -n "$AR"; then
7258  ac_cv_prog_AR="$AR" # Let the user override the test.
7259else
7260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261for as_dir in $PATH
7262do
7263  IFS=$as_save_IFS
7264  case $as_dir in #(((
7265    '') as_dir=./ ;;
7266    */) ;;
7267    *) as_dir=$as_dir/ ;;
7268  esac
7269    for ac_exec_ext in '' $ac_executable_extensions; do
7270  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7271    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7272    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7273    break 2
7274  fi
7275done
7276  done
7277IFS=$as_save_IFS
7278
7279fi
7280fi
7281AR=$ac_cv_prog_AR
7282if test -n "$AR"; then
7283  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7284printf "%s\n" "$AR" >&6; }
7285else
7286  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287printf "%s\n" "no" >&6; }
7288fi
7289
7290
7291    test -n "$AR" && break
7292  done
7293fi
7294if test -z "$AR"; then
7295  ac_ct_AR=$AR
7296  for ac_prog in ar
7297do
7298  # Extract the first word of "$ac_prog", so it can be a program name with args.
7299set dummy $ac_prog; ac_word=$2
7300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301printf %s "checking for $ac_word... " >&6; }
7302if test ${ac_cv_prog_ac_ct_AR+y}
7303then :
7304  printf %s "(cached) " >&6
7305else $as_nop
7306  if test -n "$ac_ct_AR"; then
7307  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7308else
7309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310for as_dir in $PATH
7311do
7312  IFS=$as_save_IFS
7313  case $as_dir in #(((
7314    '') as_dir=./ ;;
7315    */) ;;
7316    *) as_dir=$as_dir/ ;;
7317  esac
7318    for ac_exec_ext in '' $ac_executable_extensions; do
7319  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7320    ac_cv_prog_ac_ct_AR="$ac_prog"
7321    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7322    break 2
7323  fi
7324done
7325  done
7326IFS=$as_save_IFS
7327
7328fi
7329fi
7330ac_ct_AR=$ac_cv_prog_ac_ct_AR
7331if test -n "$ac_ct_AR"; then
7332  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7333printf "%s\n" "$ac_ct_AR" >&6; }
7334else
7335  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336printf "%s\n" "no" >&6; }
7337fi
7338
7339
7340  test -n "$ac_ct_AR" && break
7341done
7342
7343  if test "x$ac_ct_AR" = x; then
7344    AR="false"
7345  else
7346    case $cross_compiling:$ac_tool_warned in
7347yes:)
7348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7349printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7350ac_tool_warned=yes ;;
7351esac
7352    AR=$ac_ct_AR
7353  fi
7354fi
7355
7356: ${AR=ar}
7357: ${AR_FLAGS=cru}
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7370printf %s "checking for archiver @FILE support... " >&6; }
7371if test ${lt_cv_ar_at_file+y}
7372then :
7373  printf %s "(cached) " >&6
7374else $as_nop
7375  lt_cv_ar_at_file=no
7376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7377/* end confdefs.h.  */
7378
7379int
7380main (void)
7381{
7382
7383  ;
7384  return 0;
7385}
7386_ACEOF
7387if ac_fn_c_try_compile "$LINENO"
7388then :
7389  echo conftest.$ac_objext > conftest.lst
7390      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7391      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7392  (eval $lt_ar_try) 2>&5
7393  ac_status=$?
7394  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7395  test $ac_status = 0; }
7396      if test 0 -eq "$ac_status"; then
7397	# Ensure the archiver fails upon bogus file names.
7398	rm -f conftest.$ac_objext libconftest.a
7399	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7400  (eval $lt_ar_try) 2>&5
7401  ac_status=$?
7402  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7403  test $ac_status = 0; }
7404	if test 0 -ne "$ac_status"; then
7405          lt_cv_ar_at_file=@
7406        fi
7407      fi
7408      rm -f conftest.* libconftest.a
7409
7410fi
7411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7412
7413fi
7414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7415printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7416
7417if test no = "$lt_cv_ar_at_file"; then
7418  archiver_list_spec=
7419else
7420  archiver_list_spec=$lt_cv_ar_at_file
7421fi
7422
7423
7424
7425
7426
7427
7428
7429if test -n "$ac_tool_prefix"; then
7430  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7431set dummy ${ac_tool_prefix}strip; ac_word=$2
7432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433printf %s "checking for $ac_word... " >&6; }
7434if test ${ac_cv_prog_STRIP+y}
7435then :
7436  printf %s "(cached) " >&6
7437else $as_nop
7438  if test -n "$STRIP"; then
7439  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7440else
7441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $PATH
7443do
7444  IFS=$as_save_IFS
7445  case $as_dir in #(((
7446    '') as_dir=./ ;;
7447    */) ;;
7448    *) as_dir=$as_dir/ ;;
7449  esac
7450    for ac_exec_ext in '' $ac_executable_extensions; do
7451  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7452    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7453    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7454    break 2
7455  fi
7456done
7457  done
7458IFS=$as_save_IFS
7459
7460fi
7461fi
7462STRIP=$ac_cv_prog_STRIP
7463if test -n "$STRIP"; then
7464  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7465printf "%s\n" "$STRIP" >&6; }
7466else
7467  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468printf "%s\n" "no" >&6; }
7469fi
7470
7471
7472fi
7473if test -z "$ac_cv_prog_STRIP"; then
7474  ac_ct_STRIP=$STRIP
7475  # Extract the first word of "strip", so it can be a program name with args.
7476set dummy strip; ac_word=$2
7477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478printf %s "checking for $ac_word... " >&6; }
7479if test ${ac_cv_prog_ac_ct_STRIP+y}
7480then :
7481  printf %s "(cached) " >&6
7482else $as_nop
7483  if test -n "$ac_ct_STRIP"; then
7484  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7485else
7486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487for as_dir in $PATH
7488do
7489  IFS=$as_save_IFS
7490  case $as_dir in #(((
7491    '') as_dir=./ ;;
7492    */) ;;
7493    *) as_dir=$as_dir/ ;;
7494  esac
7495    for ac_exec_ext in '' $ac_executable_extensions; do
7496  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7497    ac_cv_prog_ac_ct_STRIP="strip"
7498    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7499    break 2
7500  fi
7501done
7502  done
7503IFS=$as_save_IFS
7504
7505fi
7506fi
7507ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7508if test -n "$ac_ct_STRIP"; then
7509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7510printf "%s\n" "$ac_ct_STRIP" >&6; }
7511else
7512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513printf "%s\n" "no" >&6; }
7514fi
7515
7516  if test "x$ac_ct_STRIP" = x; then
7517    STRIP=":"
7518  else
7519    case $cross_compiling:$ac_tool_warned in
7520yes:)
7521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7522printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7523ac_tool_warned=yes ;;
7524esac
7525    STRIP=$ac_ct_STRIP
7526  fi
7527else
7528  STRIP="$ac_cv_prog_STRIP"
7529fi
7530
7531test -z "$STRIP" && STRIP=:
7532
7533
7534
7535
7536
7537
7538if test -n "$ac_tool_prefix"; then
7539  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7540set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542printf %s "checking for $ac_word... " >&6; }
7543if test ${ac_cv_prog_RANLIB+y}
7544then :
7545  printf %s "(cached) " >&6
7546else $as_nop
7547  if test -n "$RANLIB"; then
7548  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7549else
7550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551for as_dir in $PATH
7552do
7553  IFS=$as_save_IFS
7554  case $as_dir in #(((
7555    '') as_dir=./ ;;
7556    */) ;;
7557    *) as_dir=$as_dir/ ;;
7558  esac
7559    for ac_exec_ext in '' $ac_executable_extensions; do
7560  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7561    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7562    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7563    break 2
7564  fi
7565done
7566  done
7567IFS=$as_save_IFS
7568
7569fi
7570fi
7571RANLIB=$ac_cv_prog_RANLIB
7572if test -n "$RANLIB"; then
7573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7574printf "%s\n" "$RANLIB" >&6; }
7575else
7576  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577printf "%s\n" "no" >&6; }
7578fi
7579
7580
7581fi
7582if test -z "$ac_cv_prog_RANLIB"; then
7583  ac_ct_RANLIB=$RANLIB
7584  # Extract the first word of "ranlib", so it can be a program name with args.
7585set dummy ranlib; ac_word=$2
7586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587printf %s "checking for $ac_word... " >&6; }
7588if test ${ac_cv_prog_ac_ct_RANLIB+y}
7589then :
7590  printf %s "(cached) " >&6
7591else $as_nop
7592  if test -n "$ac_ct_RANLIB"; then
7593  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7594else
7595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596for as_dir in $PATH
7597do
7598  IFS=$as_save_IFS
7599  case $as_dir in #(((
7600    '') as_dir=./ ;;
7601    */) ;;
7602    *) as_dir=$as_dir/ ;;
7603  esac
7604    for ac_exec_ext in '' $ac_executable_extensions; do
7605  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7606    ac_cv_prog_ac_ct_RANLIB="ranlib"
7607    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7608    break 2
7609  fi
7610done
7611  done
7612IFS=$as_save_IFS
7613
7614fi
7615fi
7616ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7617if test -n "$ac_ct_RANLIB"; then
7618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7619printf "%s\n" "$ac_ct_RANLIB" >&6; }
7620else
7621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622printf "%s\n" "no" >&6; }
7623fi
7624
7625  if test "x$ac_ct_RANLIB" = x; then
7626    RANLIB=":"
7627  else
7628    case $cross_compiling:$ac_tool_warned in
7629yes:)
7630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7631printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7632ac_tool_warned=yes ;;
7633esac
7634    RANLIB=$ac_ct_RANLIB
7635  fi
7636else
7637  RANLIB="$ac_cv_prog_RANLIB"
7638fi
7639
7640test -z "$RANLIB" && RANLIB=:
7641
7642
7643
7644
7645
7646
7647# Determine commands to create old-style static archives.
7648old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7649old_postinstall_cmds='chmod 644 $oldlib'
7650old_postuninstall_cmds=
7651
7652if test -n "$RANLIB"; then
7653  case $host_os in
7654  bitrig* | openbsd*)
7655    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7656    ;;
7657  *)
7658    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7659    ;;
7660  esac
7661  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7662fi
7663
7664case $host_os in
7665  darwin*)
7666    lock_old_archive_extraction=yes ;;
7667  *)
7668    lock_old_archive_extraction=no ;;
7669esac
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709# If no C compiler was specified, use CC.
7710LTCC=${LTCC-"$CC"}
7711
7712# If no C compiler flags were specified, use CFLAGS.
7713LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7714
7715# Allow CC to be a program name with arguments.
7716compiler=$CC
7717
7718
7719# Check for command to grab the raw symbol name followed by C symbol from nm.
7720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7721printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7722if test ${lt_cv_sys_global_symbol_pipe+y}
7723then :
7724  printf %s "(cached) " >&6
7725else $as_nop
7726
7727# These are sane defaults that work on at least a few old systems.
7728# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7729
7730# Character class describing NM global symbol codes.
7731symcode='[BCDEGRST]'
7732
7733# Regexp to match symbols that can be accessed directly from C.
7734sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7735
7736# Define system-specific variables.
7737case $host_os in
7738aix*)
7739  symcode='[BCDT]'
7740  ;;
7741cygwin* | mingw* | pw32* | cegcc*)
7742  symcode='[ABCDGISTW]'
7743  ;;
7744hpux*)
7745  if test ia64 = "$host_cpu"; then
7746    symcode='[ABCDEGRST]'
7747  fi
7748  ;;
7749irix* | nonstopux*)
7750  symcode='[BCDEGRST]'
7751  ;;
7752osf*)
7753  symcode='[BCDEGQRST]'
7754  ;;
7755solaris*)
7756  symcode='[BDRT]'
7757  ;;
7758sco3.2v5*)
7759  symcode='[DT]'
7760  ;;
7761sysv4.2uw2*)
7762  symcode='[DT]'
7763  ;;
7764sysv5* | sco5v6* | unixware* | OpenUNIX*)
7765  symcode='[ABDT]'
7766  ;;
7767sysv4)
7768  symcode='[DFNSTU]'
7769  ;;
7770esac
7771
7772# If we're using GNU nm, then use its standard symbol codes.
7773case `$NM -V 2>&1` in
7774*GNU* | *'with BFD'*)
7775  symcode='[ABCDGIRSTW]' ;;
7776esac
7777
7778if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7779  # Gets list of data symbols to import.
7780  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7781  # Adjust the below global symbol transforms to fixup imported variables.
7782  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7783  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7784  lt_c_name_lib_hook="\
7785  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7786  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7787else
7788  # Disable hooks by default.
7789  lt_cv_sys_global_symbol_to_import=
7790  lt_cdecl_hook=
7791  lt_c_name_hook=
7792  lt_c_name_lib_hook=
7793fi
7794
7795# Transform an extracted symbol line into a proper C declaration.
7796# Some systems (esp. on ia64) link data and code symbols differently,
7797# so use this general approach.
7798lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7799$lt_cdecl_hook\
7800" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7801" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7802
7803# Transform an extracted symbol line into symbol name and symbol address
7804lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7805$lt_c_name_hook\
7806" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7807" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7808
7809# Transform an extracted symbol line into symbol name with lib prefix and
7810# symbol address.
7811lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7812$lt_c_name_lib_hook\
7813" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7814" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7815" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7816
7817# Handle CRLF in mingw tool chain
7818opt_cr=
7819case $build_os in
7820mingw*)
7821  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7822  ;;
7823esac
7824
7825# Try without a prefix underscore, then with it.
7826for ac_symprfx in "" "_"; do
7827
7828  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7829  symxfrm="\\1 $ac_symprfx\\2 \\2"
7830
7831  # Write the raw and C identifiers.
7832  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7833    # Fake it for dumpbin and say T for any non-static function,
7834    # D for any global variable and I for any imported variable.
7835    # Also find C++ and __fastcall symbols from MSVC++,
7836    # which start with @ or ?.
7837    lt_cv_sys_global_symbol_pipe="$AWK '"\
7838"     {last_section=section; section=\$ 3};"\
7839"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7840"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7841"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7842"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7843"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7844"     \$ 0!~/External *\|/{next};"\
7845"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7846"     {if(hide[section]) next};"\
7847"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7848"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7849"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7850"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7851"     ' prfx=^$ac_symprfx"
7852  else
7853    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7854  fi
7855  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7856
7857  # Check to see that the pipe works correctly.
7858  pipe_works=no
7859
7860  rm -f conftest*
7861  cat > conftest.$ac_ext <<_LT_EOF
7862#ifdef __cplusplus
7863extern "C" {
7864#endif
7865char nm_test_var;
7866void nm_test_func(void);
7867void nm_test_func(void){}
7868#ifdef __cplusplus
7869}
7870#endif
7871int main(){nm_test_var='a';nm_test_func();return(0);}
7872_LT_EOF
7873
7874  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7875  (eval $ac_compile) 2>&5
7876  ac_status=$?
7877  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7878  test $ac_status = 0; }; then
7879    # Now try to grab the symbols.
7880    nlist=conftest.nm
7881    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7882  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7883  ac_status=$?
7884  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7885  test $ac_status = 0; } && test -s "$nlist"; then
7886      # Try sorting and uniquifying the output.
7887      if sort "$nlist" | uniq > "$nlist"T; then
7888	mv -f "$nlist"T "$nlist"
7889      else
7890	rm -f "$nlist"T
7891      fi
7892
7893      # Make sure that we snagged all the symbols we need.
7894      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7895	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7896	  cat <<_LT_EOF > conftest.$ac_ext
7897/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7898#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7899/* DATA imports from DLLs on WIN32 can't be const, because runtime
7900   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7901# define LT_DLSYM_CONST
7902#elif defined __osf__
7903/* This system does not cope well with relocations in const data.  */
7904# define LT_DLSYM_CONST
7905#else
7906# define LT_DLSYM_CONST const
7907#endif
7908
7909#ifdef __cplusplus
7910extern "C" {
7911#endif
7912
7913_LT_EOF
7914	  # Now generate the symbol file.
7915	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7916
7917	  cat <<_LT_EOF >> conftest.$ac_ext
7918
7919/* The mapping between symbol names and symbols.  */
7920LT_DLSYM_CONST struct {
7921  const char *name;
7922  void       *address;
7923}
7924lt__PROGRAM__LTX_preloaded_symbols[] =
7925{
7926  { "@PROGRAM@", (void *) 0 },
7927_LT_EOF
7928	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7929	  cat <<\_LT_EOF >> conftest.$ac_ext
7930  {0, (void *) 0}
7931};
7932
7933/* This works around a problem in FreeBSD linker */
7934#ifdef FREEBSD_WORKAROUND
7935static const void *lt_preloaded_setup() {
7936  return lt__PROGRAM__LTX_preloaded_symbols;
7937}
7938#endif
7939
7940#ifdef __cplusplus
7941}
7942#endif
7943_LT_EOF
7944	  # Now try linking the two files.
7945	  mv conftest.$ac_objext conftstm.$ac_objext
7946	  lt_globsym_save_LIBS=$LIBS
7947	  lt_globsym_save_CFLAGS=$CFLAGS
7948	  LIBS=conftstm.$ac_objext
7949	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7950	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7951  (eval $ac_link) 2>&5
7952  ac_status=$?
7953  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7954  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7955	    pipe_works=yes
7956	  fi
7957	  LIBS=$lt_globsym_save_LIBS
7958	  CFLAGS=$lt_globsym_save_CFLAGS
7959	else
7960	  echo "cannot find nm_test_func in $nlist" >&5
7961	fi
7962      else
7963	echo "cannot find nm_test_var in $nlist" >&5
7964      fi
7965    else
7966      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7967    fi
7968  else
7969    echo "$progname: failed program was:" >&5
7970    cat conftest.$ac_ext >&5
7971  fi
7972  rm -rf conftest* conftst*
7973
7974  # Do not use the global_symbol_pipe unless it works.
7975  if test yes = "$pipe_works"; then
7976    break
7977  else
7978    lt_cv_sys_global_symbol_pipe=
7979  fi
7980done
7981
7982fi
7983
7984if test -z "$lt_cv_sys_global_symbol_pipe"; then
7985  lt_cv_sys_global_symbol_to_cdecl=
7986fi
7987if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7989printf "%s\n" "failed" >&6; }
7990else
7991  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7992printf "%s\n" "ok" >&6; }
7993fi
7994
7995# Response file support.
7996if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7997  nm_file_list_spec='@'
7998elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7999  nm_file_list_spec='@'
8000fi
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8039printf %s "checking for sysroot... " >&6; }
8040
8041# Check whether --with-sysroot was given.
8042if test ${with_sysroot+y}
8043then :
8044  withval=$with_sysroot;
8045else $as_nop
8046  with_sysroot=no
8047fi
8048
8049
8050lt_sysroot=
8051case $with_sysroot in #(
8052 yes)
8053   if test yes = "$GCC"; then
8054     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8055   fi
8056   ;; #(
8057 /*)
8058   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8059   ;; #(
8060 no|'')
8061   ;; #(
8062 *)
8063   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8064printf "%s\n" "$with_sysroot" >&6; }
8065   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8066   ;;
8067esac
8068
8069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8070printf "%s\n" "${lt_sysroot:-no}" >&6; }
8071
8072
8073
8074
8075
8076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8077printf %s "checking for a working dd... " >&6; }
8078if test ${ac_cv_path_lt_DD+y}
8079then :
8080  printf %s "(cached) " >&6
8081else $as_nop
8082  printf 0123456789abcdef0123456789abcdef >conftest.i
8083cat conftest.i conftest.i >conftest2.i
8084: ${lt_DD:=$DD}
8085if test -z "$lt_DD"; then
8086  ac_path_lt_DD_found=false
8087  # Loop through the user's path and test for each of PROGNAME-LIST
8088  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8089for as_dir in $PATH
8090do
8091  IFS=$as_save_IFS
8092  case $as_dir in #(((
8093    '') as_dir=./ ;;
8094    */) ;;
8095    *) as_dir=$as_dir/ ;;
8096  esac
8097    for ac_prog in dd
8098   do
8099    for ac_exec_ext in '' $ac_executable_extensions; do
8100      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8101      as_fn_executable_p "$ac_path_lt_DD" || continue
8102if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8103  cmp -s conftest.i conftest.out \
8104  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8105fi
8106      $ac_path_lt_DD_found && break 3
8107    done
8108  done
8109  done
8110IFS=$as_save_IFS
8111  if test -z "$ac_cv_path_lt_DD"; then
8112    :
8113  fi
8114else
8115  ac_cv_path_lt_DD=$lt_DD
8116fi
8117
8118rm -f conftest.i conftest2.i conftest.out
8119fi
8120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8121printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8122
8123
8124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8125printf %s "checking how to truncate binary pipes... " >&6; }
8126if test ${lt_cv_truncate_bin+y}
8127then :
8128  printf %s "(cached) " >&6
8129else $as_nop
8130  printf 0123456789abcdef0123456789abcdef >conftest.i
8131cat conftest.i conftest.i >conftest2.i
8132lt_cv_truncate_bin=
8133if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8134  cmp -s conftest.i conftest.out \
8135  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8136fi
8137rm -f conftest.i conftest2.i conftest.out
8138test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8139fi
8140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8141printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8142
8143
8144
8145
8146
8147
8148
8149# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8150func_cc_basename ()
8151{
8152    for cc_temp in $*""; do
8153      case $cc_temp in
8154        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8155        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8156        \-*) ;;
8157        *) break;;
8158      esac
8159    done
8160    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8161}
8162
8163# Check whether --enable-libtool-lock was given.
8164if test ${enable_libtool_lock+y}
8165then :
8166  enableval=$enable_libtool_lock;
8167fi
8168
8169test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8170
8171# Some flags need to be propagated to the compiler or linker for good
8172# libtool support.
8173case $host in
8174ia64-*-hpux*)
8175  # Find out what ABI is being produced by ac_compile, and set mode
8176  # options accordingly.
8177  echo 'int i;' > conftest.$ac_ext
8178  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8179  (eval $ac_compile) 2>&5
8180  ac_status=$?
8181  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8182  test $ac_status = 0; }; then
8183    case `/usr/bin/file conftest.$ac_objext` in
8184      *ELF-32*)
8185	HPUX_IA64_MODE=32
8186	;;
8187      *ELF-64*)
8188	HPUX_IA64_MODE=64
8189	;;
8190    esac
8191  fi
8192  rm -rf conftest*
8193  ;;
8194*-*-irix6*)
8195  # Find out what ABI is being produced by ac_compile, and set linker
8196  # options accordingly.
8197  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8198  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8199  (eval $ac_compile) 2>&5
8200  ac_status=$?
8201  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8202  test $ac_status = 0; }; then
8203    if test yes = "$lt_cv_prog_gnu_ld"; then
8204      case `/usr/bin/file conftest.$ac_objext` in
8205	*32-bit*)
8206	  LD="${LD-ld} -melf32bsmip"
8207	  ;;
8208	*N32*)
8209	  LD="${LD-ld} -melf32bmipn32"
8210	  ;;
8211	*64-bit*)
8212	  LD="${LD-ld} -melf64bmip"
8213	;;
8214      esac
8215    else
8216      case `/usr/bin/file conftest.$ac_objext` in
8217	*32-bit*)
8218	  LD="${LD-ld} -32"
8219	  ;;
8220	*N32*)
8221	  LD="${LD-ld} -n32"
8222	  ;;
8223	*64-bit*)
8224	  LD="${LD-ld} -64"
8225	  ;;
8226      esac
8227    fi
8228  fi
8229  rm -rf conftest*
8230  ;;
8231
8232mips64*-*linux*)
8233  # Find out what ABI is being produced by ac_compile, and set linker
8234  # options accordingly.
8235  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8236  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8237  (eval $ac_compile) 2>&5
8238  ac_status=$?
8239  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8240  test $ac_status = 0; }; then
8241    emul=elf
8242    case `/usr/bin/file conftest.$ac_objext` in
8243      *32-bit*)
8244	emul="${emul}32"
8245	;;
8246      *64-bit*)
8247	emul="${emul}64"
8248	;;
8249    esac
8250    case `/usr/bin/file conftest.$ac_objext` in
8251      *MSB*)
8252	emul="${emul}btsmip"
8253	;;
8254      *LSB*)
8255	emul="${emul}ltsmip"
8256	;;
8257    esac
8258    case `/usr/bin/file conftest.$ac_objext` in
8259      *N32*)
8260	emul="${emul}n32"
8261	;;
8262    esac
8263    LD="${LD-ld} -m $emul"
8264  fi
8265  rm -rf conftest*
8266  ;;
8267
8268x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8269s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8270  # Find out what ABI is being produced by ac_compile, and set linker
8271  # options accordingly.  Note that the listed cases only cover the
8272  # situations where additional linker options are needed (such as when
8273  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8274  # vice versa); the common cases where no linker options are needed do
8275  # not appear in the list.
8276  echo 'int i;' > conftest.$ac_ext
8277  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8278  (eval $ac_compile) 2>&5
8279  ac_status=$?
8280  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8281  test $ac_status = 0; }; then
8282    case `/usr/bin/file conftest.o` in
8283      *32-bit*)
8284	case $host in
8285	  x86_64-*kfreebsd*-gnu)
8286	    LD="${LD-ld} -m elf_i386_fbsd"
8287	    ;;
8288	  x86_64-*linux*)
8289	    case `/usr/bin/file conftest.o` in
8290	      *x86-64*)
8291		LD="${LD-ld} -m elf32_x86_64"
8292		;;
8293	      *)
8294		LD="${LD-ld} -m elf_i386"
8295		;;
8296	    esac
8297	    ;;
8298	  powerpc64le-*linux*)
8299	    LD="${LD-ld} -m elf32lppclinux"
8300	    ;;
8301	  powerpc64-*linux*)
8302	    LD="${LD-ld} -m elf32ppclinux"
8303	    ;;
8304	  s390x-*linux*)
8305	    LD="${LD-ld} -m elf_s390"
8306	    ;;
8307	  sparc64-*linux*)
8308	    LD="${LD-ld} -m elf32_sparc"
8309	    ;;
8310	esac
8311	;;
8312      *64-bit*)
8313	case $host in
8314	  x86_64-*kfreebsd*-gnu)
8315	    LD="${LD-ld} -m elf_x86_64_fbsd"
8316	    ;;
8317	  x86_64-*linux*)
8318	    LD="${LD-ld} -m elf_x86_64"
8319	    ;;
8320	  powerpcle-*linux*)
8321	    LD="${LD-ld} -m elf64lppc"
8322	    ;;
8323	  powerpc-*linux*)
8324	    LD="${LD-ld} -m elf64ppc"
8325	    ;;
8326	  s390*-*linux*|s390*-*tpf*)
8327	    LD="${LD-ld} -m elf64_s390"
8328	    ;;
8329	  sparc*-*linux*)
8330	    LD="${LD-ld} -m elf64_sparc"
8331	    ;;
8332	esac
8333	;;
8334    esac
8335  fi
8336  rm -rf conftest*
8337  ;;
8338
8339*-*-sco3.2v5*)
8340  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8341  SAVE_CFLAGS=$CFLAGS
8342  CFLAGS="$CFLAGS -belf"
8343  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8344printf %s "checking whether the C compiler needs -belf... " >&6; }
8345if test ${lt_cv_cc_needs_belf+y}
8346then :
8347  printf %s "(cached) " >&6
8348else $as_nop
8349  ac_ext=c
8350ac_cpp='$CPP $CPPFLAGS'
8351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8353ac_compiler_gnu=$ac_cv_c_compiler_gnu
8354
8355     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356/* end confdefs.h.  */
8357
8358int
8359main (void)
8360{
8361
8362  ;
8363  return 0;
8364}
8365_ACEOF
8366if ac_fn_c_try_link "$LINENO"
8367then :
8368  lt_cv_cc_needs_belf=yes
8369else $as_nop
8370  lt_cv_cc_needs_belf=no
8371fi
8372rm -f core conftest.err conftest.$ac_objext conftest.beam \
8373    conftest$ac_exeext conftest.$ac_ext
8374     ac_ext=c
8375ac_cpp='$CPP $CPPFLAGS'
8376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8378ac_compiler_gnu=$ac_cv_c_compiler_gnu
8379
8380fi
8381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8382printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8383  if test yes != "$lt_cv_cc_needs_belf"; then
8384    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8385    CFLAGS=$SAVE_CFLAGS
8386  fi
8387  ;;
8388*-*solaris*)
8389  # Find out what ABI is being produced by ac_compile, and set linker
8390  # options accordingly.
8391  echo 'int i;' > conftest.$ac_ext
8392  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8393  (eval $ac_compile) 2>&5
8394  ac_status=$?
8395  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8396  test $ac_status = 0; }; then
8397    case `/usr/bin/file conftest.o` in
8398    *64-bit*)
8399      case $lt_cv_prog_gnu_ld in
8400      yes*)
8401        case $host in
8402        i?86-*-solaris*|x86_64-*-solaris*)
8403          LD="${LD-ld} -m elf_x86_64"
8404          ;;
8405        sparc*-*-solaris*)
8406          LD="${LD-ld} -m elf64_sparc"
8407          ;;
8408        esac
8409        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8410        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8411          LD=${LD-ld}_sol2
8412        fi
8413        ;;
8414      *)
8415	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8416	  LD="${LD-ld} -64"
8417	fi
8418	;;
8419      esac
8420      ;;
8421    esac
8422  fi
8423  rm -rf conftest*
8424  ;;
8425esac
8426
8427need_locks=$enable_libtool_lock
8428
8429if test -n "$ac_tool_prefix"; then
8430  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8431set dummy ${ac_tool_prefix}mt; ac_word=$2
8432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8433printf %s "checking for $ac_word... " >&6; }
8434if test ${ac_cv_prog_MANIFEST_TOOL+y}
8435then :
8436  printf %s "(cached) " >&6
8437else $as_nop
8438  if test -n "$MANIFEST_TOOL"; then
8439  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8440else
8441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442for as_dir in $PATH
8443do
8444  IFS=$as_save_IFS
8445  case $as_dir in #(((
8446    '') as_dir=./ ;;
8447    */) ;;
8448    *) as_dir=$as_dir/ ;;
8449  esac
8450    for ac_exec_ext in '' $ac_executable_extensions; do
8451  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8452    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8453    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8454    break 2
8455  fi
8456done
8457  done
8458IFS=$as_save_IFS
8459
8460fi
8461fi
8462MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8463if test -n "$MANIFEST_TOOL"; then
8464  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8465printf "%s\n" "$MANIFEST_TOOL" >&6; }
8466else
8467  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468printf "%s\n" "no" >&6; }
8469fi
8470
8471
8472fi
8473if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8474  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8475  # Extract the first word of "mt", so it can be a program name with args.
8476set dummy mt; ac_word=$2
8477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8478printf %s "checking for $ac_word... " >&6; }
8479if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8480then :
8481  printf %s "(cached) " >&6
8482else $as_nop
8483  if test -n "$ac_ct_MANIFEST_TOOL"; then
8484  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8485else
8486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8487for as_dir in $PATH
8488do
8489  IFS=$as_save_IFS
8490  case $as_dir in #(((
8491    '') as_dir=./ ;;
8492    */) ;;
8493    *) as_dir=$as_dir/ ;;
8494  esac
8495    for ac_exec_ext in '' $ac_executable_extensions; do
8496  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8497    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8498    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8499    break 2
8500  fi
8501done
8502  done
8503IFS=$as_save_IFS
8504
8505fi
8506fi
8507ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8508if test -n "$ac_ct_MANIFEST_TOOL"; then
8509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8510printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8511else
8512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8513printf "%s\n" "no" >&6; }
8514fi
8515
8516  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8517    MANIFEST_TOOL=":"
8518  else
8519    case $cross_compiling:$ac_tool_warned in
8520yes:)
8521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8522printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8523ac_tool_warned=yes ;;
8524esac
8525    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8526  fi
8527else
8528  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8529fi
8530
8531test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8533printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8534if test ${lt_cv_path_mainfest_tool+y}
8535then :
8536  printf %s "(cached) " >&6
8537else $as_nop
8538  lt_cv_path_mainfest_tool=no
8539  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8540  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8541  cat conftest.err >&5
8542  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8543    lt_cv_path_mainfest_tool=yes
8544  fi
8545  rm -f conftest*
8546fi
8547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8548printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8549if test yes != "$lt_cv_path_mainfest_tool"; then
8550  MANIFEST_TOOL=:
8551fi
8552
8553
8554
8555
8556
8557
8558  case $host_os in
8559    rhapsody* | darwin*)
8560    if test -n "$ac_tool_prefix"; then
8561  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8562set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564printf %s "checking for $ac_word... " >&6; }
8565if test ${ac_cv_prog_DSYMUTIL+y}
8566then :
8567  printf %s "(cached) " >&6
8568else $as_nop
8569  if test -n "$DSYMUTIL"; then
8570  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8571else
8572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8573for as_dir in $PATH
8574do
8575  IFS=$as_save_IFS
8576  case $as_dir in #(((
8577    '') as_dir=./ ;;
8578    */) ;;
8579    *) as_dir=$as_dir/ ;;
8580  esac
8581    for ac_exec_ext in '' $ac_executable_extensions; do
8582  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8583    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8584    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8585    break 2
8586  fi
8587done
8588  done
8589IFS=$as_save_IFS
8590
8591fi
8592fi
8593DSYMUTIL=$ac_cv_prog_DSYMUTIL
8594if test -n "$DSYMUTIL"; then
8595  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8596printf "%s\n" "$DSYMUTIL" >&6; }
8597else
8598  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599printf "%s\n" "no" >&6; }
8600fi
8601
8602
8603fi
8604if test -z "$ac_cv_prog_DSYMUTIL"; then
8605  ac_ct_DSYMUTIL=$DSYMUTIL
8606  # Extract the first word of "dsymutil", so it can be a program name with args.
8607set dummy dsymutil; ac_word=$2
8608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609printf %s "checking for $ac_word... " >&6; }
8610if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8611then :
8612  printf %s "(cached) " >&6
8613else $as_nop
8614  if test -n "$ac_ct_DSYMUTIL"; then
8615  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8616else
8617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8618for as_dir in $PATH
8619do
8620  IFS=$as_save_IFS
8621  case $as_dir in #(((
8622    '') as_dir=./ ;;
8623    */) ;;
8624    *) as_dir=$as_dir/ ;;
8625  esac
8626    for ac_exec_ext in '' $ac_executable_extensions; do
8627  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8628    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8629    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8630    break 2
8631  fi
8632done
8633  done
8634IFS=$as_save_IFS
8635
8636fi
8637fi
8638ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8639if test -n "$ac_ct_DSYMUTIL"; then
8640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8641printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8642else
8643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8644printf "%s\n" "no" >&6; }
8645fi
8646
8647  if test "x$ac_ct_DSYMUTIL" = x; then
8648    DSYMUTIL=":"
8649  else
8650    case $cross_compiling:$ac_tool_warned in
8651yes:)
8652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8653printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8654ac_tool_warned=yes ;;
8655esac
8656    DSYMUTIL=$ac_ct_DSYMUTIL
8657  fi
8658else
8659  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8660fi
8661
8662    if test -n "$ac_tool_prefix"; then
8663  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8664set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8666printf %s "checking for $ac_word... " >&6; }
8667if test ${ac_cv_prog_NMEDIT+y}
8668then :
8669  printf %s "(cached) " >&6
8670else $as_nop
8671  if test -n "$NMEDIT"; then
8672  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8673else
8674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675for as_dir in $PATH
8676do
8677  IFS=$as_save_IFS
8678  case $as_dir in #(((
8679    '') as_dir=./ ;;
8680    */) ;;
8681    *) as_dir=$as_dir/ ;;
8682  esac
8683    for ac_exec_ext in '' $ac_executable_extensions; do
8684  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8685    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8686    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8687    break 2
8688  fi
8689done
8690  done
8691IFS=$as_save_IFS
8692
8693fi
8694fi
8695NMEDIT=$ac_cv_prog_NMEDIT
8696if test -n "$NMEDIT"; then
8697  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8698printf "%s\n" "$NMEDIT" >&6; }
8699else
8700  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8701printf "%s\n" "no" >&6; }
8702fi
8703
8704
8705fi
8706if test -z "$ac_cv_prog_NMEDIT"; then
8707  ac_ct_NMEDIT=$NMEDIT
8708  # Extract the first word of "nmedit", so it can be a program name with args.
8709set dummy nmedit; ac_word=$2
8710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8711printf %s "checking for $ac_word... " >&6; }
8712if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8713then :
8714  printf %s "(cached) " >&6
8715else $as_nop
8716  if test -n "$ac_ct_NMEDIT"; then
8717  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8718else
8719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8720for as_dir in $PATH
8721do
8722  IFS=$as_save_IFS
8723  case $as_dir in #(((
8724    '') as_dir=./ ;;
8725    */) ;;
8726    *) as_dir=$as_dir/ ;;
8727  esac
8728    for ac_exec_ext in '' $ac_executable_extensions; do
8729  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8730    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8731    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8732    break 2
8733  fi
8734done
8735  done
8736IFS=$as_save_IFS
8737
8738fi
8739fi
8740ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8741if test -n "$ac_ct_NMEDIT"; then
8742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8743printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8744else
8745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746printf "%s\n" "no" >&6; }
8747fi
8748
8749  if test "x$ac_ct_NMEDIT" = x; then
8750    NMEDIT=":"
8751  else
8752    case $cross_compiling:$ac_tool_warned in
8753yes:)
8754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8755printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8756ac_tool_warned=yes ;;
8757esac
8758    NMEDIT=$ac_ct_NMEDIT
8759  fi
8760else
8761  NMEDIT="$ac_cv_prog_NMEDIT"
8762fi
8763
8764    if test -n "$ac_tool_prefix"; then
8765  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8766set dummy ${ac_tool_prefix}lipo; ac_word=$2
8767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8768printf %s "checking for $ac_word... " >&6; }
8769if test ${ac_cv_prog_LIPO+y}
8770then :
8771  printf %s "(cached) " >&6
8772else $as_nop
8773  if test -n "$LIPO"; then
8774  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8775else
8776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8777for as_dir in $PATH
8778do
8779  IFS=$as_save_IFS
8780  case $as_dir in #(((
8781    '') as_dir=./ ;;
8782    */) ;;
8783    *) as_dir=$as_dir/ ;;
8784  esac
8785    for ac_exec_ext in '' $ac_executable_extensions; do
8786  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8787    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8788    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8789    break 2
8790  fi
8791done
8792  done
8793IFS=$as_save_IFS
8794
8795fi
8796fi
8797LIPO=$ac_cv_prog_LIPO
8798if test -n "$LIPO"; then
8799  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8800printf "%s\n" "$LIPO" >&6; }
8801else
8802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803printf "%s\n" "no" >&6; }
8804fi
8805
8806
8807fi
8808if test -z "$ac_cv_prog_LIPO"; then
8809  ac_ct_LIPO=$LIPO
8810  # Extract the first word of "lipo", so it can be a program name with args.
8811set dummy lipo; ac_word=$2
8812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8813printf %s "checking for $ac_word... " >&6; }
8814if test ${ac_cv_prog_ac_ct_LIPO+y}
8815then :
8816  printf %s "(cached) " >&6
8817else $as_nop
8818  if test -n "$ac_ct_LIPO"; then
8819  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8820else
8821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8822for as_dir in $PATH
8823do
8824  IFS=$as_save_IFS
8825  case $as_dir in #(((
8826    '') as_dir=./ ;;
8827    */) ;;
8828    *) as_dir=$as_dir/ ;;
8829  esac
8830    for ac_exec_ext in '' $ac_executable_extensions; do
8831  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8832    ac_cv_prog_ac_ct_LIPO="lipo"
8833    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8834    break 2
8835  fi
8836done
8837  done
8838IFS=$as_save_IFS
8839
8840fi
8841fi
8842ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8843if test -n "$ac_ct_LIPO"; then
8844  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8845printf "%s\n" "$ac_ct_LIPO" >&6; }
8846else
8847  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8848printf "%s\n" "no" >&6; }
8849fi
8850
8851  if test "x$ac_ct_LIPO" = x; then
8852    LIPO=":"
8853  else
8854    case $cross_compiling:$ac_tool_warned in
8855yes:)
8856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8857printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8858ac_tool_warned=yes ;;
8859esac
8860    LIPO=$ac_ct_LIPO
8861  fi
8862else
8863  LIPO="$ac_cv_prog_LIPO"
8864fi
8865
8866    if test -n "$ac_tool_prefix"; then
8867  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8868set dummy ${ac_tool_prefix}otool; ac_word=$2
8869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8870printf %s "checking for $ac_word... " >&6; }
8871if test ${ac_cv_prog_OTOOL+y}
8872then :
8873  printf %s "(cached) " >&6
8874else $as_nop
8875  if test -n "$OTOOL"; then
8876  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8877else
8878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8879for as_dir in $PATH
8880do
8881  IFS=$as_save_IFS
8882  case $as_dir in #(((
8883    '') as_dir=./ ;;
8884    */) ;;
8885    *) as_dir=$as_dir/ ;;
8886  esac
8887    for ac_exec_ext in '' $ac_executable_extensions; do
8888  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8889    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8890    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8891    break 2
8892  fi
8893done
8894  done
8895IFS=$as_save_IFS
8896
8897fi
8898fi
8899OTOOL=$ac_cv_prog_OTOOL
8900if test -n "$OTOOL"; then
8901  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8902printf "%s\n" "$OTOOL" >&6; }
8903else
8904  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905printf "%s\n" "no" >&6; }
8906fi
8907
8908
8909fi
8910if test -z "$ac_cv_prog_OTOOL"; then
8911  ac_ct_OTOOL=$OTOOL
8912  # Extract the first word of "otool", so it can be a program name with args.
8913set dummy otool; ac_word=$2
8914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8915printf %s "checking for $ac_word... " >&6; }
8916if test ${ac_cv_prog_ac_ct_OTOOL+y}
8917then :
8918  printf %s "(cached) " >&6
8919else $as_nop
8920  if test -n "$ac_ct_OTOOL"; then
8921  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8922else
8923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8924for as_dir in $PATH
8925do
8926  IFS=$as_save_IFS
8927  case $as_dir in #(((
8928    '') as_dir=./ ;;
8929    */) ;;
8930    *) as_dir=$as_dir/ ;;
8931  esac
8932    for ac_exec_ext in '' $ac_executable_extensions; do
8933  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8934    ac_cv_prog_ac_ct_OTOOL="otool"
8935    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8936    break 2
8937  fi
8938done
8939  done
8940IFS=$as_save_IFS
8941
8942fi
8943fi
8944ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8945if test -n "$ac_ct_OTOOL"; then
8946  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8947printf "%s\n" "$ac_ct_OTOOL" >&6; }
8948else
8949  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8950printf "%s\n" "no" >&6; }
8951fi
8952
8953  if test "x$ac_ct_OTOOL" = x; then
8954    OTOOL=":"
8955  else
8956    case $cross_compiling:$ac_tool_warned in
8957yes:)
8958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8959printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8960ac_tool_warned=yes ;;
8961esac
8962    OTOOL=$ac_ct_OTOOL
8963  fi
8964else
8965  OTOOL="$ac_cv_prog_OTOOL"
8966fi
8967
8968    if test -n "$ac_tool_prefix"; then
8969  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8970set dummy ${ac_tool_prefix}otool64; ac_word=$2
8971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8972printf %s "checking for $ac_word... " >&6; }
8973if test ${ac_cv_prog_OTOOL64+y}
8974then :
8975  printf %s "(cached) " >&6
8976else $as_nop
8977  if test -n "$OTOOL64"; then
8978  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8979else
8980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8981for as_dir in $PATH
8982do
8983  IFS=$as_save_IFS
8984  case $as_dir in #(((
8985    '') as_dir=./ ;;
8986    */) ;;
8987    *) as_dir=$as_dir/ ;;
8988  esac
8989    for ac_exec_ext in '' $ac_executable_extensions; do
8990  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8991    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8992    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8993    break 2
8994  fi
8995done
8996  done
8997IFS=$as_save_IFS
8998
8999fi
9000fi
9001OTOOL64=$ac_cv_prog_OTOOL64
9002if test -n "$OTOOL64"; then
9003  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9004printf "%s\n" "$OTOOL64" >&6; }
9005else
9006  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9007printf "%s\n" "no" >&6; }
9008fi
9009
9010
9011fi
9012if test -z "$ac_cv_prog_OTOOL64"; then
9013  ac_ct_OTOOL64=$OTOOL64
9014  # Extract the first word of "otool64", so it can be a program name with args.
9015set dummy otool64; ac_word=$2
9016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9017printf %s "checking for $ac_word... " >&6; }
9018if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9019then :
9020  printf %s "(cached) " >&6
9021else $as_nop
9022  if test -n "$ac_ct_OTOOL64"; then
9023  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9024else
9025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026for as_dir in $PATH
9027do
9028  IFS=$as_save_IFS
9029  case $as_dir in #(((
9030    '') as_dir=./ ;;
9031    */) ;;
9032    *) as_dir=$as_dir/ ;;
9033  esac
9034    for ac_exec_ext in '' $ac_executable_extensions; do
9035  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9036    ac_cv_prog_ac_ct_OTOOL64="otool64"
9037    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9038    break 2
9039  fi
9040done
9041  done
9042IFS=$as_save_IFS
9043
9044fi
9045fi
9046ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9047if test -n "$ac_ct_OTOOL64"; then
9048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9049printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9050else
9051  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052printf "%s\n" "no" >&6; }
9053fi
9054
9055  if test "x$ac_ct_OTOOL64" = x; then
9056    OTOOL64=":"
9057  else
9058    case $cross_compiling:$ac_tool_warned in
9059yes:)
9060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9061printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9062ac_tool_warned=yes ;;
9063esac
9064    OTOOL64=$ac_ct_OTOOL64
9065  fi
9066else
9067  OTOOL64="$ac_cv_prog_OTOOL64"
9068fi
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9097printf %s "checking for -single_module linker flag... " >&6; }
9098if test ${lt_cv_apple_cc_single_mod+y}
9099then :
9100  printf %s "(cached) " >&6
9101else $as_nop
9102  lt_cv_apple_cc_single_mod=no
9103      if test -z "$LT_MULTI_MODULE"; then
9104	# By default we will add the -single_module flag. You can override
9105	# by either setting the environment variable LT_MULTI_MODULE
9106	# non-empty at configure time, or by adding -multi_module to the
9107	# link flags.
9108	rm -rf libconftest.dylib*
9109	echo "int foo(void){return 1;}" > conftest.c
9110	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9111-dynamiclib -Wl,-single_module conftest.c" >&5
9112	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9113	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9114        _lt_result=$?
9115	# If there is a non-empty error log, and "single_module"
9116	# appears in it, assume the flag caused a linker warning
9117        if test -s conftest.err && $GREP single_module conftest.err; then
9118	  cat conftest.err >&5
9119	# Otherwise, if the output was created with a 0 exit code from
9120	# the compiler, it worked.
9121	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9122	  lt_cv_apple_cc_single_mod=yes
9123	else
9124	  cat conftest.err >&5
9125	fi
9126	rm -rf libconftest.dylib*
9127	rm -f conftest.*
9128      fi
9129fi
9130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9131printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9132
9133    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9134printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9135if test ${lt_cv_ld_exported_symbols_list+y}
9136then :
9137  printf %s "(cached) " >&6
9138else $as_nop
9139  lt_cv_ld_exported_symbols_list=no
9140      save_LDFLAGS=$LDFLAGS
9141      echo "_main" > conftest.sym
9142      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9143      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144/* end confdefs.h.  */
9145
9146int
9147main (void)
9148{
9149
9150  ;
9151  return 0;
9152}
9153_ACEOF
9154if ac_fn_c_try_link "$LINENO"
9155then :
9156  lt_cv_ld_exported_symbols_list=yes
9157else $as_nop
9158  lt_cv_ld_exported_symbols_list=no
9159fi
9160rm -f core conftest.err conftest.$ac_objext conftest.beam \
9161    conftest$ac_exeext conftest.$ac_ext
9162	LDFLAGS=$save_LDFLAGS
9163
9164fi
9165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9166printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9167
9168    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9169printf %s "checking for -force_load linker flag... " >&6; }
9170if test ${lt_cv_ld_force_load+y}
9171then :
9172  printf %s "(cached) " >&6
9173else $as_nop
9174  lt_cv_ld_force_load=no
9175      cat > conftest.c << _LT_EOF
9176int forced_loaded() { return 2;}
9177_LT_EOF
9178      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9179      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9180      echo "$AR cru libconftest.a conftest.o" >&5
9181      $AR cru libconftest.a conftest.o 2>&5
9182      echo "$RANLIB libconftest.a" >&5
9183      $RANLIB libconftest.a 2>&5
9184      cat > conftest.c << _LT_EOF
9185int main() { return 0;}
9186_LT_EOF
9187      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9188      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9189      _lt_result=$?
9190      if test -s conftest.err && $GREP force_load conftest.err; then
9191	cat conftest.err >&5
9192      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9193	lt_cv_ld_force_load=yes
9194      else
9195	cat conftest.err >&5
9196      fi
9197        rm -f conftest.err libconftest.a conftest conftest.c
9198        rm -rf conftest.dSYM
9199
9200fi
9201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9202printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9203    case $host_os in
9204    rhapsody* | darwin1.[012])
9205      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9206    darwin1.*)
9207      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9208    darwin*) # darwin 5.x on
9209      # if running on 10.5 or later, the deployment target defaults
9210      # to the OS version, if on x86, and 10.4, the deployment
9211      # target defaults to 10.4. Don't you love it?
9212      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9213	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9214	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9215	10.[012][,.]*)
9216	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9217	10.*)
9218	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9219      esac
9220    ;;
9221  esac
9222    if test yes = "$lt_cv_apple_cc_single_mod"; then
9223      _lt_dar_single_mod='$single_module'
9224    fi
9225    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9226      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9227    else
9228      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9229    fi
9230    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9231      _lt_dsymutil='~$DSYMUTIL $lib || :'
9232    else
9233      _lt_dsymutil=
9234    fi
9235    ;;
9236  esac
9237
9238# func_munge_path_list VARIABLE PATH
9239# -----------------------------------
9240# VARIABLE is name of variable containing _space_ separated list of
9241# directories to be munged by the contents of PATH, which is string
9242# having a format:
9243# "DIR[:DIR]:"
9244#       string "DIR[ DIR]" will be prepended to VARIABLE
9245# ":DIR[:DIR]"
9246#       string "DIR[ DIR]" will be appended to VARIABLE
9247# "DIRP[:DIRP]::[DIRA:]DIRA"
9248#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9249#       "DIRA[ DIRA]" will be appended to VARIABLE
9250# "DIR[:DIR]"
9251#       VARIABLE will be replaced by "DIR[ DIR]"
9252func_munge_path_list ()
9253{
9254    case x$2 in
9255    x)
9256        ;;
9257    *:)
9258        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9259        ;;
9260    x:*)
9261        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9262        ;;
9263    *::*)
9264        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9265        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9266        ;;
9267    *)
9268        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9269        ;;
9270    esac
9271}
9272
9273ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9274"
9275if test "x$ac_cv_header_dlfcn_h" = xyes
9276then :
9277  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9278
9279fi
9280
9281
9282
9283
9284
9285# Set options
9286
9287
9288
9289        enable_dlopen=no
9290
9291
9292  enable_win32_dll=no
9293
9294
9295            # Check whether --enable-shared was given.
9296if test ${enable_shared+y}
9297then :
9298  enableval=$enable_shared; p=${PACKAGE-default}
9299    case $enableval in
9300    yes) enable_shared=yes ;;
9301    no) enable_shared=no ;;
9302    *)
9303      enable_shared=no
9304      # Look at the argument we got.  We use all the common list separators.
9305      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9306      for pkg in $enableval; do
9307	IFS=$lt_save_ifs
9308	if test "X$pkg" = "X$p"; then
9309	  enable_shared=yes
9310	fi
9311      done
9312      IFS=$lt_save_ifs
9313      ;;
9314    esac
9315else $as_nop
9316  enable_shared=yes
9317fi
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327  # Check whether --enable-static was given.
9328if test ${enable_static+y}
9329then :
9330  enableval=$enable_static; p=${PACKAGE-default}
9331    case $enableval in
9332    yes) enable_static=yes ;;
9333    no) enable_static=no ;;
9334    *)
9335     enable_static=no
9336      # Look at the argument we got.  We use all the common list separators.
9337      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9338      for pkg in $enableval; do
9339	IFS=$lt_save_ifs
9340	if test "X$pkg" = "X$p"; then
9341	  enable_static=yes
9342	fi
9343      done
9344      IFS=$lt_save_ifs
9345      ;;
9346    esac
9347else $as_nop
9348  enable_static=yes
9349fi
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360# Check whether --with-pic was given.
9361if test ${with_pic+y}
9362then :
9363  withval=$with_pic; lt_p=${PACKAGE-default}
9364    case $withval in
9365    yes|no) pic_mode=$withval ;;
9366    *)
9367      pic_mode=default
9368      # Look at the argument we got.  We use all the common list separators.
9369      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9370      for lt_pkg in $withval; do
9371	IFS=$lt_save_ifs
9372	if test "X$lt_pkg" = "X$lt_p"; then
9373	  pic_mode=yes
9374	fi
9375      done
9376      IFS=$lt_save_ifs
9377      ;;
9378    esac
9379else $as_nop
9380  pic_mode=default
9381fi
9382
9383
9384
9385
9386
9387
9388
9389
9390  # Check whether --enable-fast-install was given.
9391if test ${enable_fast_install+y}
9392then :
9393  enableval=$enable_fast_install; p=${PACKAGE-default}
9394    case $enableval in
9395    yes) enable_fast_install=yes ;;
9396    no) enable_fast_install=no ;;
9397    *)
9398      enable_fast_install=no
9399      # Look at the argument we got.  We use all the common list separators.
9400      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9401      for pkg in $enableval; do
9402	IFS=$lt_save_ifs
9403	if test "X$pkg" = "X$p"; then
9404	  enable_fast_install=yes
9405	fi
9406      done
9407      IFS=$lt_save_ifs
9408      ;;
9409    esac
9410else $as_nop
9411  enable_fast_install=yes
9412fi
9413
9414
9415
9416
9417
9418
9419
9420
9421  shared_archive_member_spec=
9422case $host,$enable_shared in
9423power*-*-aix[5-9]*,yes)
9424  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9425printf %s "checking which variant of shared library versioning to provide... " >&6; }
9426
9427# Check whether --with-aix-soname was given.
9428if test ${with_aix_soname+y}
9429then :
9430  withval=$with_aix_soname; case $withval in
9431    aix|svr4|both)
9432      ;;
9433    *)
9434      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9435      ;;
9436    esac
9437    lt_cv_with_aix_soname=$with_aix_soname
9438else $as_nop
9439  if test ${lt_cv_with_aix_soname+y}
9440then :
9441  printf %s "(cached) " >&6
9442else $as_nop
9443  lt_cv_with_aix_soname=aix
9444fi
9445
9446    with_aix_soname=$lt_cv_with_aix_soname
9447fi
9448
9449  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9450printf "%s\n" "$with_aix_soname" >&6; }
9451  if test aix != "$with_aix_soname"; then
9452    # For the AIX way of multilib, we name the shared archive member
9453    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9454    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9455    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9456    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9457    if test 64 = "${OBJECT_MODE-32}"; then
9458      shared_archive_member_spec=shr_64
9459    else
9460      shared_archive_member_spec=shr
9461    fi
9462  fi
9463  ;;
9464*)
9465  with_aix_soname=aix
9466  ;;
9467esac
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478# This can be used to rebuild libtool when needed
9479LIBTOOL_DEPS=$ltmain
9480
9481# Always use our own libtool.
9482LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513test -z "$LN_S" && LN_S="ln -s"
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528if test -n "${ZSH_VERSION+set}"; then
9529   setopt NO_GLOB_SUBST
9530fi
9531
9532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9533printf %s "checking for objdir... " >&6; }
9534if test ${lt_cv_objdir+y}
9535then :
9536  printf %s "(cached) " >&6
9537else $as_nop
9538  rm -f .libs 2>/dev/null
9539mkdir .libs 2>/dev/null
9540if test -d .libs; then
9541  lt_cv_objdir=.libs
9542else
9543  # MS-DOS does not allow filenames that begin with a dot.
9544  lt_cv_objdir=_libs
9545fi
9546rmdir .libs 2>/dev/null
9547fi
9548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9549printf "%s\n" "$lt_cv_objdir" >&6; }
9550objdir=$lt_cv_objdir
9551
9552
9553
9554
9555
9556printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9557
9558
9559
9560
9561case $host_os in
9562aix3*)
9563  # AIX sometimes has problems with the GCC collect2 program.  For some
9564  # reason, if we set the COLLECT_NAMES environment variable, the problems
9565  # vanish in a puff of smoke.
9566  if test set != "${COLLECT_NAMES+set}"; then
9567    COLLECT_NAMES=
9568    export COLLECT_NAMES
9569  fi
9570  ;;
9571esac
9572
9573# Global variables:
9574ofile=libtool
9575can_build_shared=yes
9576
9577# All known linkers require a '.a' archive for static linking (except MSVC,
9578# which needs '.lib').
9579libext=a
9580
9581with_gnu_ld=$lt_cv_prog_gnu_ld
9582
9583old_CC=$CC
9584old_CFLAGS=$CFLAGS
9585
9586# Set sane defaults for various variables
9587test -z "$CC" && CC=cc
9588test -z "$LTCC" && LTCC=$CC
9589test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9590test -z "$LD" && LD=ld
9591test -z "$ac_objext" && ac_objext=o
9592
9593func_cc_basename $compiler
9594cc_basename=$func_cc_basename_result
9595
9596
9597# Only perform the check for file, if the check method requires it
9598test -z "$MAGIC_CMD" && MAGIC_CMD=file
9599case $deplibs_check_method in
9600file_magic*)
9601  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9602    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9603printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9604if test ${lt_cv_path_MAGIC_CMD+y}
9605then :
9606  printf %s "(cached) " >&6
9607else $as_nop
9608  case $MAGIC_CMD in
9609[\\/*] |  ?:[\\/]*)
9610  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9611  ;;
9612*)
9613  lt_save_MAGIC_CMD=$MAGIC_CMD
9614  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9615  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9616  for ac_dir in $ac_dummy; do
9617    IFS=$lt_save_ifs
9618    test -z "$ac_dir" && ac_dir=.
9619    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9620      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9621      if test -n "$file_magic_test_file"; then
9622	case $deplibs_check_method in
9623	"file_magic "*)
9624	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9625	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9626	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9627	    $EGREP "$file_magic_regex" > /dev/null; then
9628	    :
9629	  else
9630	    cat <<_LT_EOF 1>&2
9631
9632*** Warning: the command libtool uses to detect shared libraries,
9633*** $file_magic_cmd, produces output that libtool cannot recognize.
9634*** The result is that libtool may fail to recognize shared libraries
9635*** as such.  This will affect the creation of libtool libraries that
9636*** depend on shared libraries, but programs linked with such libtool
9637*** libraries will work regardless of this problem.  Nevertheless, you
9638*** may want to report the problem to your system manager and/or to
9639*** bug-libtool@gnu.org
9640
9641_LT_EOF
9642	  fi ;;
9643	esac
9644      fi
9645      break
9646    fi
9647  done
9648  IFS=$lt_save_ifs
9649  MAGIC_CMD=$lt_save_MAGIC_CMD
9650  ;;
9651esac
9652fi
9653
9654MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9655if test -n "$MAGIC_CMD"; then
9656  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9657printf "%s\n" "$MAGIC_CMD" >&6; }
9658else
9659  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9660printf "%s\n" "no" >&6; }
9661fi
9662
9663
9664
9665
9666
9667if test -z "$lt_cv_path_MAGIC_CMD"; then
9668  if test -n "$ac_tool_prefix"; then
9669    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9670printf %s "checking for file... " >&6; }
9671if test ${lt_cv_path_MAGIC_CMD+y}
9672then :
9673  printf %s "(cached) " >&6
9674else $as_nop
9675  case $MAGIC_CMD in
9676[\\/*] |  ?:[\\/]*)
9677  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9678  ;;
9679*)
9680  lt_save_MAGIC_CMD=$MAGIC_CMD
9681  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9682  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9683  for ac_dir in $ac_dummy; do
9684    IFS=$lt_save_ifs
9685    test -z "$ac_dir" && ac_dir=.
9686    if test -f "$ac_dir/file"; then
9687      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9688      if test -n "$file_magic_test_file"; then
9689	case $deplibs_check_method in
9690	"file_magic "*)
9691	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9692	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9693	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9694	    $EGREP "$file_magic_regex" > /dev/null; then
9695	    :
9696	  else
9697	    cat <<_LT_EOF 1>&2
9698
9699*** Warning: the command libtool uses to detect shared libraries,
9700*** $file_magic_cmd, produces output that libtool cannot recognize.
9701*** The result is that libtool may fail to recognize shared libraries
9702*** as such.  This will affect the creation of libtool libraries that
9703*** depend on shared libraries, but programs linked with such libtool
9704*** libraries will work regardless of this problem.  Nevertheless, you
9705*** may want to report the problem to your system manager and/or to
9706*** bug-libtool@gnu.org
9707
9708_LT_EOF
9709	  fi ;;
9710	esac
9711      fi
9712      break
9713    fi
9714  done
9715  IFS=$lt_save_ifs
9716  MAGIC_CMD=$lt_save_MAGIC_CMD
9717  ;;
9718esac
9719fi
9720
9721MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9722if test -n "$MAGIC_CMD"; then
9723  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9724printf "%s\n" "$MAGIC_CMD" >&6; }
9725else
9726  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9727printf "%s\n" "no" >&6; }
9728fi
9729
9730
9731  else
9732    MAGIC_CMD=:
9733  fi
9734fi
9735
9736  fi
9737  ;;
9738esac
9739
9740# Use C for the default configuration in the libtool script
9741
9742lt_save_CC=$CC
9743ac_ext=c
9744ac_cpp='$CPP $CPPFLAGS'
9745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9747ac_compiler_gnu=$ac_cv_c_compiler_gnu
9748
9749
9750# Source file extension for C test sources.
9751ac_ext=c
9752
9753# Object file extension for compiled C test sources.
9754objext=o
9755objext=$objext
9756
9757# Code to be used in simple compile tests
9758lt_simple_compile_test_code="int some_variable = 0;"
9759
9760# Code to be used in simple link tests
9761lt_simple_link_test_code='int main(){return(0);}'
9762
9763
9764
9765
9766
9767
9768
9769# If no C compiler was specified, use CC.
9770LTCC=${LTCC-"$CC"}
9771
9772# If no C compiler flags were specified, use CFLAGS.
9773LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9774
9775# Allow CC to be a program name with arguments.
9776compiler=$CC
9777
9778# Save the default compiler, since it gets overwritten when the other
9779# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9780compiler_DEFAULT=$CC
9781
9782# save warnings/boilerplate of simple test code
9783ac_outfile=conftest.$ac_objext
9784echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9785eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9786_lt_compiler_boilerplate=`cat conftest.err`
9787$RM conftest*
9788
9789ac_outfile=conftest.$ac_objext
9790echo "$lt_simple_link_test_code" >conftest.$ac_ext
9791eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9792_lt_linker_boilerplate=`cat conftest.err`
9793$RM -r conftest*
9794
9795
9796## CAVEAT EMPTOR:
9797## There is no encapsulation within the following macros, do not change
9798## the running order or otherwise move them around unless you know exactly
9799## what you are doing...
9800if test -n "$compiler"; then
9801
9802lt_prog_compiler_no_builtin_flag=
9803
9804if test yes = "$GCC"; then
9805  case $cc_basename in
9806  nvcc*)
9807    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9808  *)
9809    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9810  esac
9811
9812  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9813printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9814if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9815then :
9816  printf %s "(cached) " >&6
9817else $as_nop
9818  lt_cv_prog_compiler_rtti_exceptions=no
9819   ac_outfile=conftest.$ac_objext
9820   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9821   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9822   # Insert the option either (1) after the last *FLAGS variable, or
9823   # (2) before a word containing "conftest.", or (3) at the end.
9824   # Note that $ac_compile itself does not contain backslashes and begins
9825   # with a dollar sign (not a hyphen), so the echo should work correctly.
9826   # The option is referenced via a variable to avoid confusing sed.
9827   lt_compile=`echo "$ac_compile" | $SED \
9828   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9829   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9830   -e 's:$: $lt_compiler_flag:'`
9831   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9832   (eval "$lt_compile" 2>conftest.err)
9833   ac_status=$?
9834   cat conftest.err >&5
9835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836   if (exit $ac_status) && test -s "$ac_outfile"; then
9837     # The compiler can only warn and ignore the option if not recognized
9838     # So say no if there are warnings other than the usual output.
9839     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9840     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9841     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9842       lt_cv_prog_compiler_rtti_exceptions=yes
9843     fi
9844   fi
9845   $RM conftest*
9846
9847fi
9848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9849printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9850
9851if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9852    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9853else
9854    :
9855fi
9856
9857fi
9858
9859
9860
9861
9862
9863
9864  lt_prog_compiler_wl=
9865lt_prog_compiler_pic=
9866lt_prog_compiler_static=
9867
9868
9869  if test yes = "$GCC"; then
9870    lt_prog_compiler_wl='-Wl,'
9871    lt_prog_compiler_static='-static'
9872
9873    case $host_os in
9874      aix*)
9875      # All AIX code is PIC.
9876      if test ia64 = "$host_cpu"; then
9877	# AIX 5 now supports IA64 processor
9878	lt_prog_compiler_static='-Bstatic'
9879      fi
9880      lt_prog_compiler_pic='-fPIC'
9881      ;;
9882
9883    amigaos*)
9884      case $host_cpu in
9885      powerpc)
9886            # see comment about AmigaOS4 .so support
9887            lt_prog_compiler_pic='-fPIC'
9888        ;;
9889      m68k)
9890            # FIXME: we need at least 68020 code to build shared libraries, but
9891            # adding the '-m68020' flag to GCC prevents building anything better,
9892            # like '-m68040'.
9893            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9894        ;;
9895      esac
9896      ;;
9897
9898    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9899      # PIC is the default for these OSes.
9900      ;;
9901
9902    mingw* | cygwin* | pw32* | os2* | cegcc*)
9903      # This hack is so that the source file can tell whether it is being
9904      # built for inclusion in a dll (and should export symbols for example).
9905      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9906      # (--disable-auto-import) libraries
9907      lt_prog_compiler_pic='-DDLL_EXPORT'
9908      case $host_os in
9909      os2*)
9910	lt_prog_compiler_static='$wl-static'
9911	;;
9912      esac
9913      ;;
9914
9915    darwin* | rhapsody*)
9916      # PIC is the default on this platform
9917      # Common symbols not allowed in MH_DYLIB files
9918      lt_prog_compiler_pic='-fno-common'
9919      ;;
9920
9921    haiku*)
9922      # PIC is the default for Haiku.
9923      # The "-static" flag exists, but is broken.
9924      lt_prog_compiler_static=
9925      ;;
9926
9927    hpux*)
9928      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9929      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9930      # sets the default TLS model and affects inlining.
9931      case $host_cpu in
9932      hppa*64*)
9933	# +Z the default
9934	;;
9935      *)
9936	lt_prog_compiler_pic='-fPIC'
9937	;;
9938      esac
9939      ;;
9940
9941    interix[3-9]*)
9942      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9943      # Instead, we relocate shared libraries at runtime.
9944      ;;
9945
9946    msdosdjgpp*)
9947      # Just because we use GCC doesn't mean we suddenly get shared libraries
9948      # on systems that don't support them.
9949      lt_prog_compiler_can_build_shared=no
9950      enable_shared=no
9951      ;;
9952
9953    *nto* | *qnx*)
9954      # QNX uses GNU C++, but need to define -shared option too, otherwise
9955      # it will coredump.
9956      lt_prog_compiler_pic='-fPIC -shared'
9957      ;;
9958
9959    sysv4*MP*)
9960      if test -d /usr/nec; then
9961	lt_prog_compiler_pic=-Kconform_pic
9962      fi
9963      ;;
9964
9965    *)
9966      lt_prog_compiler_pic='-fPIC'
9967      ;;
9968    esac
9969
9970    case $cc_basename in
9971    nvcc*) # Cuda Compiler Driver 2.2
9972      lt_prog_compiler_wl='-Xlinker '
9973      if test -n "$lt_prog_compiler_pic"; then
9974        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9975      fi
9976      ;;
9977    esac
9978  else
9979    # PORTME Check for flag to pass linker flags through the system compiler.
9980    case $host_os in
9981    aix*)
9982      lt_prog_compiler_wl='-Wl,'
9983      if test ia64 = "$host_cpu"; then
9984	# AIX 5 now supports IA64 processor
9985	lt_prog_compiler_static='-Bstatic'
9986      else
9987	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9988      fi
9989      ;;
9990
9991    darwin* | rhapsody*)
9992      # PIC is the default on this platform
9993      # Common symbols not allowed in MH_DYLIB files
9994      lt_prog_compiler_pic='-fno-common'
9995      case $cc_basename in
9996      nagfor*)
9997        # NAG Fortran compiler
9998        lt_prog_compiler_wl='-Wl,-Wl,,'
9999        lt_prog_compiler_pic='-PIC'
10000        lt_prog_compiler_static='-Bstatic'
10001        ;;
10002      esac
10003      ;;
10004
10005    mingw* | cygwin* | pw32* | os2* | cegcc*)
10006      # This hack is so that the source file can tell whether it is being
10007      # built for inclusion in a dll (and should export symbols for example).
10008      lt_prog_compiler_pic='-DDLL_EXPORT'
10009      case $host_os in
10010      os2*)
10011	lt_prog_compiler_static='$wl-static'
10012	;;
10013      esac
10014      ;;
10015
10016    hpux9* | hpux10* | hpux11*)
10017      lt_prog_compiler_wl='-Wl,'
10018      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10019      # not for PA HP-UX.
10020      case $host_cpu in
10021      hppa*64*|ia64*)
10022	# +Z the default
10023	;;
10024      *)
10025	lt_prog_compiler_pic='+Z'
10026	;;
10027      esac
10028      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10029      lt_prog_compiler_static='$wl-a ${wl}archive'
10030      ;;
10031
10032    irix5* | irix6* | nonstopux*)
10033      lt_prog_compiler_wl='-Wl,'
10034      # PIC (with -KPIC) is the default.
10035      lt_prog_compiler_static='-non_shared'
10036      ;;
10037
10038    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10039      case $cc_basename in
10040      # old Intel for x86_64, which still supported -KPIC.
10041      ecc*)
10042	lt_prog_compiler_wl='-Wl,'
10043	lt_prog_compiler_pic='-KPIC'
10044	lt_prog_compiler_static='-static'
10045        ;;
10046      # icc used to be incompatible with GCC.
10047      # ICC 10 doesn't accept -KPIC any more.
10048      icc* | ifort*)
10049	lt_prog_compiler_wl='-Wl,'
10050	lt_prog_compiler_pic='-fPIC'
10051	lt_prog_compiler_static='-static'
10052        ;;
10053      # Lahey Fortran 8.1.
10054      lf95*)
10055	lt_prog_compiler_wl='-Wl,'
10056	lt_prog_compiler_pic='--shared'
10057	lt_prog_compiler_static='--static'
10058	;;
10059      nagfor*)
10060	# NAG Fortran compiler
10061	lt_prog_compiler_wl='-Wl,-Wl,,'
10062	lt_prog_compiler_pic='-PIC'
10063	lt_prog_compiler_static='-Bstatic'
10064	;;
10065      tcc*)
10066	# Fabrice Bellard et al's Tiny C Compiler
10067	lt_prog_compiler_wl='-Wl,'
10068	lt_prog_compiler_pic='-fPIC'
10069	lt_prog_compiler_static='-static'
10070	;;
10071      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10072        # Portland Group compilers (*not* the Pentium gcc compiler,
10073	# which looks to be a dead project)
10074	lt_prog_compiler_wl='-Wl,'
10075	lt_prog_compiler_pic='-fpic'
10076	lt_prog_compiler_static='-Bstatic'
10077        ;;
10078      ccc*)
10079        lt_prog_compiler_wl='-Wl,'
10080        # All Alpha code is PIC.
10081        lt_prog_compiler_static='-non_shared'
10082        ;;
10083      xl* | bgxl* | bgf* | mpixl*)
10084	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10085	lt_prog_compiler_wl='-Wl,'
10086	lt_prog_compiler_pic='-qpic'
10087	lt_prog_compiler_static='-qstaticlink'
10088	;;
10089      *)
10090	case `$CC -V 2>&1 | sed 5q` in
10091	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10092	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10093	  lt_prog_compiler_pic='-KPIC'
10094	  lt_prog_compiler_static='-Bstatic'
10095	  lt_prog_compiler_wl=''
10096	  ;;
10097	*Sun\ F* | *Sun*Fortran*)
10098	  lt_prog_compiler_pic='-KPIC'
10099	  lt_prog_compiler_static='-Bstatic'
10100	  lt_prog_compiler_wl='-Qoption ld '
10101	  ;;
10102	*Sun\ C*)
10103	  # Sun C 5.9
10104	  lt_prog_compiler_pic='-KPIC'
10105	  lt_prog_compiler_static='-Bstatic'
10106	  lt_prog_compiler_wl='-Wl,'
10107	  ;;
10108        *Intel*\ [CF]*Compiler*)
10109	  lt_prog_compiler_wl='-Wl,'
10110	  lt_prog_compiler_pic='-fPIC'
10111	  lt_prog_compiler_static='-static'
10112	  ;;
10113	*Portland\ Group*)
10114	  lt_prog_compiler_wl='-Wl,'
10115	  lt_prog_compiler_pic='-fpic'
10116	  lt_prog_compiler_static='-Bstatic'
10117	  ;;
10118	esac
10119	;;
10120      esac
10121      ;;
10122
10123    newsos6)
10124      lt_prog_compiler_pic='-KPIC'
10125      lt_prog_compiler_static='-Bstatic'
10126      ;;
10127
10128    *nto* | *qnx*)
10129      # QNX uses GNU C++, but need to define -shared option too, otherwise
10130      # it will coredump.
10131      lt_prog_compiler_pic='-fPIC -shared'
10132      ;;
10133
10134    osf3* | osf4* | osf5*)
10135      lt_prog_compiler_wl='-Wl,'
10136      # All OSF/1 code is PIC.
10137      lt_prog_compiler_static='-non_shared'
10138      ;;
10139
10140    rdos*)
10141      lt_prog_compiler_static='-non_shared'
10142      ;;
10143
10144    solaris*)
10145      lt_prog_compiler_pic='-KPIC'
10146      lt_prog_compiler_static='-Bstatic'
10147      case $cc_basename in
10148      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10149	lt_prog_compiler_wl='-Qoption ld ';;
10150      *)
10151	lt_prog_compiler_wl='-Wl,';;
10152      esac
10153      ;;
10154
10155    sunos4*)
10156      lt_prog_compiler_wl='-Qoption ld '
10157      lt_prog_compiler_pic='-PIC'
10158      lt_prog_compiler_static='-Bstatic'
10159      ;;
10160
10161    sysv4 | sysv4.2uw2* | sysv4.3*)
10162      lt_prog_compiler_wl='-Wl,'
10163      lt_prog_compiler_pic='-KPIC'
10164      lt_prog_compiler_static='-Bstatic'
10165      ;;
10166
10167    sysv4*MP*)
10168      if test -d /usr/nec; then
10169	lt_prog_compiler_pic='-Kconform_pic'
10170	lt_prog_compiler_static='-Bstatic'
10171      fi
10172      ;;
10173
10174    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10175      lt_prog_compiler_wl='-Wl,'
10176      lt_prog_compiler_pic='-KPIC'
10177      lt_prog_compiler_static='-Bstatic'
10178      ;;
10179
10180    unicos*)
10181      lt_prog_compiler_wl='-Wl,'
10182      lt_prog_compiler_can_build_shared=no
10183      ;;
10184
10185    uts4*)
10186      lt_prog_compiler_pic='-pic'
10187      lt_prog_compiler_static='-Bstatic'
10188      ;;
10189
10190    *)
10191      lt_prog_compiler_can_build_shared=no
10192      ;;
10193    esac
10194  fi
10195
10196case $host_os in
10197  # For platforms that do not support PIC, -DPIC is meaningless:
10198  *djgpp*)
10199    lt_prog_compiler_pic=
10200    ;;
10201  *)
10202    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10203    ;;
10204esac
10205
10206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10207printf %s "checking for $compiler option to produce PIC... " >&6; }
10208if test ${lt_cv_prog_compiler_pic+y}
10209then :
10210  printf %s "(cached) " >&6
10211else $as_nop
10212  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10213fi
10214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10215printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10216lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10217
10218#
10219# Check to make sure the PIC flag actually works.
10220#
10221if test -n "$lt_prog_compiler_pic"; then
10222  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10223printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10224if test ${lt_cv_prog_compiler_pic_works+y}
10225then :
10226  printf %s "(cached) " >&6
10227else $as_nop
10228  lt_cv_prog_compiler_pic_works=no
10229   ac_outfile=conftest.$ac_objext
10230   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10231   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10232   # Insert the option either (1) after the last *FLAGS variable, or
10233   # (2) before a word containing "conftest.", or (3) at the end.
10234   # Note that $ac_compile itself does not contain backslashes and begins
10235   # with a dollar sign (not a hyphen), so the echo should work correctly.
10236   # The option is referenced via a variable to avoid confusing sed.
10237   lt_compile=`echo "$ac_compile" | $SED \
10238   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10239   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10240   -e 's:$: $lt_compiler_flag:'`
10241   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10242   (eval "$lt_compile" 2>conftest.err)
10243   ac_status=$?
10244   cat conftest.err >&5
10245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246   if (exit $ac_status) && test -s "$ac_outfile"; then
10247     # The compiler can only warn and ignore the option if not recognized
10248     # So say no if there are warnings other than the usual output.
10249     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10250     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10251     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10252       lt_cv_prog_compiler_pic_works=yes
10253     fi
10254   fi
10255   $RM conftest*
10256
10257fi
10258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10259printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10260
10261if test yes = "$lt_cv_prog_compiler_pic_works"; then
10262    case $lt_prog_compiler_pic in
10263     "" | " "*) ;;
10264     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10265     esac
10266else
10267    lt_prog_compiler_pic=
10268     lt_prog_compiler_can_build_shared=no
10269fi
10270
10271fi
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283#
10284# Check to make sure the static flag actually works.
10285#
10286wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10288printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10289if test ${lt_cv_prog_compiler_static_works+y}
10290then :
10291  printf %s "(cached) " >&6
10292else $as_nop
10293  lt_cv_prog_compiler_static_works=no
10294   save_LDFLAGS=$LDFLAGS
10295   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10296   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10297   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10298     # The linker can only warn and ignore the option if not recognized
10299     # So say no if there are warnings
10300     if test -s conftest.err; then
10301       # Append any errors to the config.log.
10302       cat conftest.err 1>&5
10303       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10304       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10305       if diff conftest.exp conftest.er2 >/dev/null; then
10306         lt_cv_prog_compiler_static_works=yes
10307       fi
10308     else
10309       lt_cv_prog_compiler_static_works=yes
10310     fi
10311   fi
10312   $RM -r conftest*
10313   LDFLAGS=$save_LDFLAGS
10314
10315fi
10316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10317printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10318
10319if test yes = "$lt_cv_prog_compiler_static_works"; then
10320    :
10321else
10322    lt_prog_compiler_static=
10323fi
10324
10325
10326
10327
10328
10329
10330
10331  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10332printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10333if test ${lt_cv_prog_compiler_c_o+y}
10334then :
10335  printf %s "(cached) " >&6
10336else $as_nop
10337  lt_cv_prog_compiler_c_o=no
10338   $RM -r conftest 2>/dev/null
10339   mkdir conftest
10340   cd conftest
10341   mkdir out
10342   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10343
10344   lt_compiler_flag="-o out/conftest2.$ac_objext"
10345   # Insert the option either (1) after the last *FLAGS variable, or
10346   # (2) before a word containing "conftest.", or (3) at the end.
10347   # Note that $ac_compile itself does not contain backslashes and begins
10348   # with a dollar sign (not a hyphen), so the echo should work correctly.
10349   lt_compile=`echo "$ac_compile" | $SED \
10350   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10351   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10352   -e 's:$: $lt_compiler_flag:'`
10353   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10354   (eval "$lt_compile" 2>out/conftest.err)
10355   ac_status=$?
10356   cat out/conftest.err >&5
10357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10359   then
10360     # The compiler can only warn and ignore the option if not recognized
10361     # So say no if there are warnings
10362     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10363     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10364     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10365       lt_cv_prog_compiler_c_o=yes
10366     fi
10367   fi
10368   chmod u+w . 2>&5
10369   $RM conftest*
10370   # SGI C++ compiler will create directory out/ii_files/ for
10371   # template instantiation
10372   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10373   $RM out/* && rmdir out
10374   cd ..
10375   $RM -r conftest
10376   $RM conftest*
10377
10378fi
10379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10380printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10381
10382
10383
10384
10385
10386
10387  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10388printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10389if test ${lt_cv_prog_compiler_c_o+y}
10390then :
10391  printf %s "(cached) " >&6
10392else $as_nop
10393  lt_cv_prog_compiler_c_o=no
10394   $RM -r conftest 2>/dev/null
10395   mkdir conftest
10396   cd conftest
10397   mkdir out
10398   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10399
10400   lt_compiler_flag="-o out/conftest2.$ac_objext"
10401   # Insert the option either (1) after the last *FLAGS variable, or
10402   # (2) before a word containing "conftest.", or (3) at the end.
10403   # Note that $ac_compile itself does not contain backslashes and begins
10404   # with a dollar sign (not a hyphen), so the echo should work correctly.
10405   lt_compile=`echo "$ac_compile" | $SED \
10406   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10407   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10408   -e 's:$: $lt_compiler_flag:'`
10409   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10410   (eval "$lt_compile" 2>out/conftest.err)
10411   ac_status=$?
10412   cat out/conftest.err >&5
10413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10415   then
10416     # The compiler can only warn and ignore the option if not recognized
10417     # So say no if there are warnings
10418     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10419     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10420     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10421       lt_cv_prog_compiler_c_o=yes
10422     fi
10423   fi
10424   chmod u+w . 2>&5
10425   $RM conftest*
10426   # SGI C++ compiler will create directory out/ii_files/ for
10427   # template instantiation
10428   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10429   $RM out/* && rmdir out
10430   cd ..
10431   $RM -r conftest
10432   $RM conftest*
10433
10434fi
10435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10436printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10437
10438
10439
10440
10441hard_links=nottested
10442if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10443  # do not overwrite the value of need_locks provided by the user
10444  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10445printf %s "checking if we can lock with hard links... " >&6; }
10446  hard_links=yes
10447  $RM conftest*
10448  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10449  touch conftest.a
10450  ln conftest.a conftest.b 2>&5 || hard_links=no
10451  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10452  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10453printf "%s\n" "$hard_links" >&6; }
10454  if test no = "$hard_links"; then
10455    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10456printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10457    need_locks=warn
10458  fi
10459else
10460  need_locks=no
10461fi
10462
10463
10464
10465
10466
10467
10468  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10469printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10470
10471  runpath_var=
10472  allow_undefined_flag=
10473  always_export_symbols=no
10474  archive_cmds=
10475  archive_expsym_cmds=
10476  compiler_needs_object=no
10477  enable_shared_with_static_runtimes=no
10478  export_dynamic_flag_spec=
10479  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10480  hardcode_automatic=no
10481  hardcode_direct=no
10482  hardcode_direct_absolute=no
10483  hardcode_libdir_flag_spec=
10484  hardcode_libdir_separator=
10485  hardcode_minus_L=no
10486  hardcode_shlibpath_var=unsupported
10487  inherit_rpath=no
10488  link_all_deplibs=unknown
10489  module_cmds=
10490  module_expsym_cmds=
10491  old_archive_from_new_cmds=
10492  old_archive_from_expsyms_cmds=
10493  thread_safe_flag_spec=
10494  whole_archive_flag_spec=
10495  # include_expsyms should be a list of space-separated symbols to be *always*
10496  # included in the symbol list
10497  include_expsyms=
10498  # exclude_expsyms can be an extended regexp of symbols to exclude
10499  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10500  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10501  # as well as any symbol that contains 'd'.
10502  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10503  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10504  # platforms (ab)use it in PIC code, but their linkers get confused if
10505  # the symbol is explicitly referenced.  Since portable code cannot
10506  # rely on this symbol name, it's probably fine to never include it in
10507  # preloaded symbol tables.
10508  # Exclude shared library initialization/finalization symbols.
10509  extract_expsyms_cmds=
10510
10511  case $host_os in
10512  cygwin* | mingw* | pw32* | cegcc*)
10513    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10514    # When not using gcc, we currently assume that we are using
10515    # Microsoft Visual C++.
10516    if test yes != "$GCC"; then
10517      with_gnu_ld=no
10518    fi
10519    ;;
10520  interix*)
10521    # we just hope/assume this is gcc and not c89 (= MSVC++)
10522    with_gnu_ld=yes
10523    ;;
10524  openbsd* | bitrig*)
10525    with_gnu_ld=no
10526    ;;
10527  esac
10528
10529  ld_shlibs=yes
10530
10531  # On some targets, GNU ld is compatible enough with the native linker
10532  # that we're better off using the native interface for both.
10533  lt_use_gnu_ld_interface=no
10534  if test yes = "$with_gnu_ld"; then
10535    case $host_os in
10536      aix*)
10537	# The AIX port of GNU ld has always aspired to compatibility
10538	# with the native linker.  However, as the warning in the GNU ld
10539	# block says, versions before 2.19.5* couldn't really create working
10540	# shared libraries, regardless of the interface used.
10541	case `$LD -v 2>&1` in
10542	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10543	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10544	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10545	  *)
10546	    lt_use_gnu_ld_interface=yes
10547	    ;;
10548	esac
10549	;;
10550      *)
10551	lt_use_gnu_ld_interface=yes
10552	;;
10553    esac
10554  fi
10555
10556  if test yes = "$lt_use_gnu_ld_interface"; then
10557    # If archive_cmds runs LD, not CC, wlarc should be empty
10558    wlarc='$wl'
10559
10560    # Set some defaults for GNU ld with shared library support. These
10561    # are reset later if shared libraries are not supported. Putting them
10562    # here allows them to be overridden if necessary.
10563    runpath_var=LD_RUN_PATH
10564    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10565    export_dynamic_flag_spec='$wl--export-dynamic'
10566    # ancient GNU ld didn't support --whole-archive et. al.
10567    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10568      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10569    else
10570      whole_archive_flag_spec=
10571    fi
10572    supports_anon_versioning=no
10573    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10574      *GNU\ gold*) supports_anon_versioning=yes ;;
10575      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10576      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10577      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10578      *\ 2.11.*) ;; # other 2.11 versions
10579      *) supports_anon_versioning=yes ;;
10580    esac
10581
10582    # See if GNU ld supports shared libraries.
10583    case $host_os in
10584    aix[3-9]*)
10585      # On AIX/PPC, the GNU linker is very broken
10586      if test ia64 != "$host_cpu"; then
10587	ld_shlibs=no
10588	cat <<_LT_EOF 1>&2
10589
10590*** Warning: the GNU linker, at least up to release 2.19, is reported
10591*** to be unable to reliably create shared libraries on AIX.
10592*** Therefore, libtool is disabling shared libraries support.  If you
10593*** really care for shared libraries, you may want to install binutils
10594*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10595*** You will then need to restart the configuration process.
10596
10597_LT_EOF
10598      fi
10599      ;;
10600
10601    amigaos*)
10602      case $host_cpu in
10603      powerpc)
10604            # see comment about AmigaOS4 .so support
10605            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10606            archive_expsym_cmds=''
10607        ;;
10608      m68k)
10609            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10610            hardcode_libdir_flag_spec='-L$libdir'
10611            hardcode_minus_L=yes
10612        ;;
10613      esac
10614      ;;
10615
10616    beos*)
10617      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10618	allow_undefined_flag=unsupported
10619	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10620	# support --undefined.  This deserves some investigation.  FIXME
10621	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10622      else
10623	ld_shlibs=no
10624      fi
10625      ;;
10626
10627    cygwin* | mingw* | pw32* | cegcc*)
10628      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10629      # as there is no search path for DLLs.
10630      hardcode_libdir_flag_spec='-L$libdir'
10631      export_dynamic_flag_spec='$wl--export-all-symbols'
10632      allow_undefined_flag=unsupported
10633      always_export_symbols=no
10634      enable_shared_with_static_runtimes=yes
10635      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10636      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10637
10638      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10639        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10640	# If the export-symbols file already is a .def file, use it as
10641	# is; otherwise, prepend EXPORTS...
10642	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10643          cp $export_symbols $output_objdir/$soname.def;
10644        else
10645          echo EXPORTS > $output_objdir/$soname.def;
10646          cat $export_symbols >> $output_objdir/$soname.def;
10647        fi~
10648        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10649      else
10650	ld_shlibs=no
10651      fi
10652      ;;
10653
10654    haiku*)
10655      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10656      link_all_deplibs=yes
10657      ;;
10658
10659    os2*)
10660      hardcode_libdir_flag_spec='-L$libdir'
10661      hardcode_minus_L=yes
10662      allow_undefined_flag=unsupported
10663      shrext_cmds=.dll
10664      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10665	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10666	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10667	$ECHO EXPORTS >> $output_objdir/$libname.def~
10668	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10669	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10670	emximp -o $lib $output_objdir/$libname.def'
10671      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10672	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10673	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10674	$ECHO EXPORTS >> $output_objdir/$libname.def~
10675	prefix_cmds="$SED"~
10676	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10677	  prefix_cmds="$prefix_cmds -e 1d";
10678	fi~
10679	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10680	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10681	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10682	emximp -o $lib $output_objdir/$libname.def'
10683      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10684      enable_shared_with_static_runtimes=yes
10685      ;;
10686
10687    interix[3-9]*)
10688      hardcode_direct=no
10689      hardcode_shlibpath_var=no
10690      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10691      export_dynamic_flag_spec='$wl-E'
10692      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10693      # Instead, shared libraries are loaded at an image base (0x10000000 by
10694      # default) and relocated if they conflict, which is a slow very memory
10695      # consuming and fragmenting process.  To avoid this, we pick a random,
10696      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10697      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10698      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10699      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10700      ;;
10701
10702    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10703      tmp_diet=no
10704      if test linux-dietlibc = "$host_os"; then
10705	case $cc_basename in
10706	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10707	esac
10708      fi
10709      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10710	 && test no = "$tmp_diet"
10711      then
10712	tmp_addflag=' $pic_flag'
10713	tmp_sharedflag='-shared'
10714	case $cc_basename,$host_cpu in
10715        pgcc*)				# Portland Group C compiler
10716	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10717	  tmp_addflag=' $pic_flag'
10718	  ;;
10719	pgf77* | pgf90* | pgf95* | pgfortran*)
10720					# Portland Group f77 and f90 compilers
10721	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10722	  tmp_addflag=' $pic_flag -Mnomain' ;;
10723	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10724	  tmp_addflag=' -i_dynamic' ;;
10725	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10726	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10727	ifc* | ifort*)			# Intel Fortran compiler
10728	  tmp_addflag=' -nofor_main' ;;
10729	lf95*)				# Lahey Fortran 8.1
10730	  whole_archive_flag_spec=
10731	  tmp_sharedflag='--shared' ;;
10732        nagfor*)                        # NAGFOR 5.3
10733          tmp_sharedflag='-Wl,-shared' ;;
10734	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10735	  tmp_sharedflag='-qmkshrobj'
10736	  tmp_addflag= ;;
10737	nvcc*)	# Cuda Compiler Driver 2.2
10738	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10739	  compiler_needs_object=yes
10740	  ;;
10741	esac
10742	case `$CC -V 2>&1 | sed 5q` in
10743	*Sun\ C*)			# Sun C 5.9
10744	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10745	  compiler_needs_object=yes
10746	  tmp_sharedflag='-G' ;;
10747	*Sun\ F*)			# Sun Fortran 8.3
10748	  tmp_sharedflag='-G' ;;
10749	esac
10750	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10751
10752        if test yes = "$supports_anon_versioning"; then
10753          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10754            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10755            echo "local: *; };" >> $output_objdir/$libname.ver~
10756            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10757        fi
10758
10759	case $cc_basename in
10760	tcc*)
10761	  export_dynamic_flag_spec='-rdynamic'
10762	  ;;
10763	xlf* | bgf* | bgxlf* | mpixlf*)
10764	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10765	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10766	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10767	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10768	  if test yes = "$supports_anon_versioning"; then
10769	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10770              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10771              echo "local: *; };" >> $output_objdir/$libname.ver~
10772              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10773	  fi
10774	  ;;
10775	esac
10776      else
10777        ld_shlibs=no
10778      fi
10779      ;;
10780
10781    netbsd*)
10782      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10783	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10784	wlarc=
10785      else
10786	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10787	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10788      fi
10789      ;;
10790
10791    solaris*)
10792      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10793	ld_shlibs=no
10794	cat <<_LT_EOF 1>&2
10795
10796*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10797*** create shared libraries on Solaris systems.  Therefore, libtool
10798*** is disabling shared libraries support.  We urge you to upgrade GNU
10799*** binutils to release 2.9.1 or newer.  Another option is to modify
10800*** your PATH or compiler configuration so that the native linker is
10801*** used, and then restart.
10802
10803_LT_EOF
10804      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10805	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10806	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10807      else
10808	ld_shlibs=no
10809      fi
10810      ;;
10811
10812    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10813      case `$LD -v 2>&1` in
10814        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10815	ld_shlibs=no
10816	cat <<_LT_EOF 1>&2
10817
10818*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10819*** reliably create shared libraries on SCO systems.  Therefore, libtool
10820*** is disabling shared libraries support.  We urge you to upgrade GNU
10821*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10822*** your PATH or compiler configuration so that the native linker is
10823*** used, and then restart.
10824
10825_LT_EOF
10826	;;
10827	*)
10828	  # For security reasons, it is highly recommended that you always
10829	  # use absolute paths for naming shared libraries, and exclude the
10830	  # DT_RUNPATH tag from executables and libraries.  But doing so
10831	  # requires that you compile everything twice, which is a pain.
10832	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10833	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10834	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10835	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10836	  else
10837	    ld_shlibs=no
10838	  fi
10839	;;
10840      esac
10841      ;;
10842
10843    sunos4*)
10844      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10845      wlarc=
10846      hardcode_direct=yes
10847      hardcode_shlibpath_var=no
10848      ;;
10849
10850    *)
10851      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10852	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10853	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10854      else
10855	ld_shlibs=no
10856      fi
10857      ;;
10858    esac
10859
10860    if test no = "$ld_shlibs"; then
10861      runpath_var=
10862      hardcode_libdir_flag_spec=
10863      export_dynamic_flag_spec=
10864      whole_archive_flag_spec=
10865    fi
10866  else
10867    # PORTME fill in a description of your system's linker (not GNU ld)
10868    case $host_os in
10869    aix3*)
10870      allow_undefined_flag=unsupported
10871      always_export_symbols=yes
10872      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10873      # Note: this linker hardcodes the directories in LIBPATH if there
10874      # are no directories specified by -L.
10875      hardcode_minus_L=yes
10876      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10877	# Neither direct hardcoding nor static linking is supported with a
10878	# broken collect2.
10879	hardcode_direct=unsupported
10880      fi
10881      ;;
10882
10883    aix[4-9]*)
10884      if test ia64 = "$host_cpu"; then
10885	# On IA64, the linker does run time linking by default, so we don't
10886	# have to do anything special.
10887	aix_use_runtimelinking=no
10888	exp_sym_flag='-Bexport'
10889	no_entry_flag=
10890      else
10891	# If we're using GNU nm, then we don't want the "-C" option.
10892	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10893	# Without the "-l" option, or with the "-B" option, AIX nm treats
10894	# weak defined symbols like other global defined symbols, whereas
10895	# GNU nm marks them as "W".
10896	# While the 'weak' keyword is ignored in the Export File, we need
10897	# it in the Import File for the 'aix-soname' feature, so we have
10898	# to replace the "-B" option with "-P" for AIX nm.
10899	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10900	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10901	else
10902	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10903	fi
10904	aix_use_runtimelinking=no
10905
10906	# Test if we are trying to use run time linking or normal
10907	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10908	# have runtime linking enabled, and use it for executables.
10909	# For shared libraries, we enable/disable runtime linking
10910	# depending on the kind of the shared library created -
10911	# when "with_aix_soname,aix_use_runtimelinking" is:
10912	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10913	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10914	#            lib.a           static archive
10915	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10916	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10917	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10918	#            lib.a(lib.so.V) shared, rtl:no
10919	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10920	#            lib.a           static archive
10921	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10922	  for ld_flag in $LDFLAGS; do
10923	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10924	    aix_use_runtimelinking=yes
10925	    break
10926	  fi
10927	  done
10928	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10929	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10930	    # so we don't have lib.a shared libs to link our executables.
10931	    # We have to force runtime linking in this case.
10932	    aix_use_runtimelinking=yes
10933	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10934	  fi
10935	  ;;
10936	esac
10937
10938	exp_sym_flag='-bexport'
10939	no_entry_flag='-bnoentry'
10940      fi
10941
10942      # When large executables or shared objects are built, AIX ld can
10943      # have problems creating the table of contents.  If linking a library
10944      # or program results in "error TOC overflow" add -mminimal-toc to
10945      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10946      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10947
10948      archive_cmds=''
10949      hardcode_direct=yes
10950      hardcode_direct_absolute=yes
10951      hardcode_libdir_separator=':'
10952      link_all_deplibs=yes
10953      file_list_spec='$wl-f,'
10954      case $with_aix_soname,$aix_use_runtimelinking in
10955      aix,*) ;; # traditional, no import file
10956      svr4,* | *,yes) # use import file
10957	# The Import File defines what to hardcode.
10958	hardcode_direct=no
10959	hardcode_direct_absolute=no
10960	;;
10961      esac
10962
10963      if test yes = "$GCC"; then
10964	case $host_os in aix4.[012]|aix4.[012].*)
10965	# We only want to do this on AIX 4.2 and lower, the check
10966	# below for broken collect2 doesn't work under 4.3+
10967	  collect2name=`$CC -print-prog-name=collect2`
10968	  if test -f "$collect2name" &&
10969	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10970	  then
10971	  # We have reworked collect2
10972	  :
10973	  else
10974	  # We have old collect2
10975	  hardcode_direct=unsupported
10976	  # It fails to find uninstalled libraries when the uninstalled
10977	  # path is not listed in the libpath.  Setting hardcode_minus_L
10978	  # to unsupported forces relinking
10979	  hardcode_minus_L=yes
10980	  hardcode_libdir_flag_spec='-L$libdir'
10981	  hardcode_libdir_separator=
10982	  fi
10983	  ;;
10984	esac
10985	shared_flag='-shared'
10986	if test yes = "$aix_use_runtimelinking"; then
10987	  shared_flag="$shared_flag "'$wl-G'
10988	fi
10989	# Need to ensure runtime linking is disabled for the traditional
10990	# shared library, or the linker may eventually find shared libraries
10991	# /with/ Import File - we do not want to mix them.
10992	shared_flag_aix='-shared'
10993	shared_flag_svr4='-shared $wl-G'
10994      else
10995	# not using gcc
10996	if test ia64 = "$host_cpu"; then
10997	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10998	# chokes on -Wl,-G. The following line is correct:
10999	  shared_flag='-G'
11000	else
11001	  if test yes = "$aix_use_runtimelinking"; then
11002	    shared_flag='$wl-G'
11003	  else
11004	    shared_flag='$wl-bM:SRE'
11005	  fi
11006	  shared_flag_aix='$wl-bM:SRE'
11007	  shared_flag_svr4='$wl-G'
11008	fi
11009      fi
11010
11011      export_dynamic_flag_spec='$wl-bexpall'
11012      # It seems that -bexpall does not export symbols beginning with
11013      # underscore (_), so it is better to generate a list of symbols to export.
11014      always_export_symbols=yes
11015      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11016	# Warning - without using the other runtime loading flags (-brtl),
11017	# -berok will link without error, but may produce a broken library.
11018	allow_undefined_flag='-berok'
11019        # Determine the default libpath from the value encoded in an
11020        # empty executable.
11021        if test set = "${lt_cv_aix_libpath+set}"; then
11022  aix_libpath=$lt_cv_aix_libpath
11023else
11024  if test ${lt_cv_aix_libpath_+y}
11025then :
11026  printf %s "(cached) " >&6
11027else $as_nop
11028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029/* end confdefs.h.  */
11030
11031int
11032main (void)
11033{
11034
11035  ;
11036  return 0;
11037}
11038_ACEOF
11039if ac_fn_c_try_link "$LINENO"
11040then :
11041
11042  lt_aix_libpath_sed='
11043      /Import File Strings/,/^$/ {
11044	  /^0/ {
11045	      s/^0  *\([^ ]*\) *$/\1/
11046	      p
11047	  }
11048      }'
11049  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11050  # Check for a 64-bit object if we didn't find anything.
11051  if test -z "$lt_cv_aix_libpath_"; then
11052    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11053  fi
11054fi
11055rm -f core conftest.err conftest.$ac_objext conftest.beam \
11056    conftest$ac_exeext conftest.$ac_ext
11057  if test -z "$lt_cv_aix_libpath_"; then
11058    lt_cv_aix_libpath_=/usr/lib:/lib
11059  fi
11060
11061fi
11062
11063  aix_libpath=$lt_cv_aix_libpath_
11064fi
11065
11066        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11067        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11068      else
11069	if test ia64 = "$host_cpu"; then
11070	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11071	  allow_undefined_flag="-z nodefs"
11072	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
11073	else
11074	 # Determine the default libpath from the value encoded in an
11075	 # empty executable.
11076	 if test set = "${lt_cv_aix_libpath+set}"; then
11077  aix_libpath=$lt_cv_aix_libpath
11078else
11079  if test ${lt_cv_aix_libpath_+y}
11080then :
11081  printf %s "(cached) " >&6
11082else $as_nop
11083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084/* end confdefs.h.  */
11085
11086int
11087main (void)
11088{
11089
11090  ;
11091  return 0;
11092}
11093_ACEOF
11094if ac_fn_c_try_link "$LINENO"
11095then :
11096
11097  lt_aix_libpath_sed='
11098      /Import File Strings/,/^$/ {
11099	  /^0/ {
11100	      s/^0  *\([^ ]*\) *$/\1/
11101	      p
11102	  }
11103      }'
11104  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11105  # Check for a 64-bit object if we didn't find anything.
11106  if test -z "$lt_cv_aix_libpath_"; then
11107    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11108  fi
11109fi
11110rm -f core conftest.err conftest.$ac_objext conftest.beam \
11111    conftest$ac_exeext conftest.$ac_ext
11112  if test -z "$lt_cv_aix_libpath_"; then
11113    lt_cv_aix_libpath_=/usr/lib:/lib
11114  fi
11115
11116fi
11117
11118  aix_libpath=$lt_cv_aix_libpath_
11119fi
11120
11121	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11122	  # Warning - without using the other run time loading flags,
11123	  # -berok will link without error, but may produce a broken library.
11124	  no_undefined_flag=' $wl-bernotok'
11125	  allow_undefined_flag=' $wl-berok'
11126	  if test yes = "$with_gnu_ld"; then
11127	    # We only use this code for GNU lds that support --whole-archive.
11128	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11129	  else
11130	    # Exported symbols can be pulled into shared objects from archives
11131	    whole_archive_flag_spec='$convenience'
11132	  fi
11133	  archive_cmds_need_lc=yes
11134	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11135	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11136	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11137	  if test svr4 != "$with_aix_soname"; then
11138	    # This is similar to how AIX traditionally builds its shared libraries.
11139	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11140	  fi
11141	  if test aix != "$with_aix_soname"; then
11142	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11143	  else
11144	    # used by -dlpreopen to get the symbols
11145	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11146	  fi
11147	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11148	fi
11149      fi
11150      ;;
11151
11152    amigaos*)
11153      case $host_cpu in
11154      powerpc)
11155            # see comment about AmigaOS4 .so support
11156            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11157            archive_expsym_cmds=''
11158        ;;
11159      m68k)
11160            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11161            hardcode_libdir_flag_spec='-L$libdir'
11162            hardcode_minus_L=yes
11163        ;;
11164      esac
11165      ;;
11166
11167    bsdi[45]*)
11168      export_dynamic_flag_spec=-rdynamic
11169      ;;
11170
11171    cygwin* | mingw* | pw32* | cegcc*)
11172      # When not using gcc, we currently assume that we are using
11173      # Microsoft Visual C++.
11174      # hardcode_libdir_flag_spec is actually meaningless, as there is
11175      # no search path for DLLs.
11176      case $cc_basename in
11177      cl*)
11178	# Native MSVC
11179	hardcode_libdir_flag_spec=' '
11180	allow_undefined_flag=unsupported
11181	always_export_symbols=yes
11182	file_list_spec='@'
11183	# Tell ltmain to make .lib files, not .a files.
11184	libext=lib
11185	# Tell ltmain to make .dll files, not .so files.
11186	shrext_cmds=.dll
11187	# FIXME: Setting linknames here is a bad hack.
11188	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11189	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11190            cp "$export_symbols" "$output_objdir/$soname.def";
11191            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11192          else
11193            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11194          fi~
11195          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11196          linknames='
11197	# The linker will not automatically build a static lib if we build a DLL.
11198	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11199	enable_shared_with_static_runtimes=yes
11200	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11201	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11202	# Don't use ranlib
11203	old_postinstall_cmds='chmod 644 $oldlib'
11204	postlink_cmds='lt_outputfile="@OUTPUT@"~
11205          lt_tool_outputfile="@TOOL_OUTPUT@"~
11206          case $lt_outputfile in
11207            *.exe|*.EXE) ;;
11208            *)
11209              lt_outputfile=$lt_outputfile.exe
11210              lt_tool_outputfile=$lt_tool_outputfile.exe
11211              ;;
11212          esac~
11213          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11214            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11215            $RM "$lt_outputfile.manifest";
11216          fi'
11217	;;
11218      *)
11219	# Assume MSVC wrapper
11220	hardcode_libdir_flag_spec=' '
11221	allow_undefined_flag=unsupported
11222	# Tell ltmain to make .lib files, not .a files.
11223	libext=lib
11224	# Tell ltmain to make .dll files, not .so files.
11225	shrext_cmds=.dll
11226	# FIXME: Setting linknames here is a bad hack.
11227	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11228	# The linker will automatically build a .lib file if we build a DLL.
11229	old_archive_from_new_cmds='true'
11230	# FIXME: Should let the user specify the lib program.
11231	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11232	enable_shared_with_static_runtimes=yes
11233	;;
11234      esac
11235      ;;
11236
11237    darwin* | rhapsody*)
11238
11239
11240  archive_cmds_need_lc=no
11241  hardcode_direct=no
11242  hardcode_automatic=yes
11243  hardcode_shlibpath_var=unsupported
11244  if test yes = "$lt_cv_ld_force_load"; then
11245    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11246
11247  else
11248    whole_archive_flag_spec=''
11249  fi
11250  link_all_deplibs=yes
11251  allow_undefined_flag=$_lt_dar_allow_undefined
11252  case $cc_basename in
11253     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11254     *) _lt_dar_can_shared=$GCC ;;
11255  esac
11256  if test yes = "$_lt_dar_can_shared"; then
11257    output_verbose_link_cmd=func_echo_all
11258    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11259    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11260    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
11261    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
11262
11263  else
11264  ld_shlibs=no
11265  fi
11266
11267      ;;
11268
11269    dgux*)
11270      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11271      hardcode_libdir_flag_spec='-L$libdir'
11272      hardcode_shlibpath_var=no
11273      ;;
11274
11275    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11276    # support.  Future versions do this automatically, but an explicit c++rt0.o
11277    # does not break anything, and helps significantly (at the cost of a little
11278    # extra space).
11279    freebsd2.2*)
11280      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11281      hardcode_libdir_flag_spec='-R$libdir'
11282      hardcode_direct=yes
11283      hardcode_shlibpath_var=no
11284      ;;
11285
11286    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11287    freebsd2.*)
11288      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11289      hardcode_direct=yes
11290      hardcode_minus_L=yes
11291      hardcode_shlibpath_var=no
11292      ;;
11293
11294    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11295    freebsd* | dragonfly*)
11296      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11297      hardcode_libdir_flag_spec='-R$libdir'
11298      hardcode_direct=yes
11299      hardcode_shlibpath_var=no
11300      ;;
11301
11302    hpux9*)
11303      if test yes = "$GCC"; then
11304	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11305      else
11306	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11307      fi
11308      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11309      hardcode_libdir_separator=:
11310      hardcode_direct=yes
11311
11312      # hardcode_minus_L: Not really in the search PATH,
11313      # but as the default location of the library.
11314      hardcode_minus_L=yes
11315      export_dynamic_flag_spec='$wl-E'
11316      ;;
11317
11318    hpux10*)
11319      if test yes,no = "$GCC,$with_gnu_ld"; then
11320	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11321      else
11322	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11323      fi
11324      if test no = "$with_gnu_ld"; then
11325	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11326	hardcode_libdir_separator=:
11327	hardcode_direct=yes
11328	hardcode_direct_absolute=yes
11329	export_dynamic_flag_spec='$wl-E'
11330	# hardcode_minus_L: Not really in the search PATH,
11331	# but as the default location of the library.
11332	hardcode_minus_L=yes
11333      fi
11334      ;;
11335
11336    hpux11*)
11337      if test yes,no = "$GCC,$with_gnu_ld"; then
11338	case $host_cpu in
11339	hppa*64*)
11340	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11341	  ;;
11342	ia64*)
11343	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11344	  ;;
11345	*)
11346	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11347	  ;;
11348	esac
11349      else
11350	case $host_cpu in
11351	hppa*64*)
11352	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11353	  ;;
11354	ia64*)
11355	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11356	  ;;
11357	*)
11358
11359	  # Older versions of the 11.00 compiler do not understand -b yet
11360	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11361	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11362printf %s "checking if $CC understands -b... " >&6; }
11363if test ${lt_cv_prog_compiler__b+y}
11364then :
11365  printf %s "(cached) " >&6
11366else $as_nop
11367  lt_cv_prog_compiler__b=no
11368   save_LDFLAGS=$LDFLAGS
11369   LDFLAGS="$LDFLAGS -b"
11370   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11371   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11372     # The linker can only warn and ignore the option if not recognized
11373     # So say no if there are warnings
11374     if test -s conftest.err; then
11375       # Append any errors to the config.log.
11376       cat conftest.err 1>&5
11377       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11378       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11379       if diff conftest.exp conftest.er2 >/dev/null; then
11380         lt_cv_prog_compiler__b=yes
11381       fi
11382     else
11383       lt_cv_prog_compiler__b=yes
11384     fi
11385   fi
11386   $RM -r conftest*
11387   LDFLAGS=$save_LDFLAGS
11388
11389fi
11390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11391printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11392
11393if test yes = "$lt_cv_prog_compiler__b"; then
11394    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11395else
11396    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11397fi
11398
11399	  ;;
11400	esac
11401      fi
11402      if test no = "$with_gnu_ld"; then
11403	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11404	hardcode_libdir_separator=:
11405
11406	case $host_cpu in
11407	hppa*64*|ia64*)
11408	  hardcode_direct=no
11409	  hardcode_shlibpath_var=no
11410	  ;;
11411	*)
11412	  hardcode_direct=yes
11413	  hardcode_direct_absolute=yes
11414	  export_dynamic_flag_spec='$wl-E'
11415
11416	  # hardcode_minus_L: Not really in the search PATH,
11417	  # but as the default location of the library.
11418	  hardcode_minus_L=yes
11419	  ;;
11420	esac
11421      fi
11422      ;;
11423
11424    irix5* | irix6* | nonstopux*)
11425      if test yes = "$GCC"; then
11426	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11427	# Try to use the -exported_symbol ld option, if it does not
11428	# work, assume that -exports_file does not work either and
11429	# implicitly export all symbols.
11430	# This should be the same for all languages, so no per-tag cache variable.
11431	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11432printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11433if test ${lt_cv_irix_exported_symbol+y}
11434then :
11435  printf %s "(cached) " >&6
11436else $as_nop
11437  save_LDFLAGS=$LDFLAGS
11438	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11439	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440/* end confdefs.h.  */
11441int foo (void) { return 0; }
11442_ACEOF
11443if ac_fn_c_try_link "$LINENO"
11444then :
11445  lt_cv_irix_exported_symbol=yes
11446else $as_nop
11447  lt_cv_irix_exported_symbol=no
11448fi
11449rm -f core conftest.err conftest.$ac_objext conftest.beam \
11450    conftest$ac_exeext conftest.$ac_ext
11451           LDFLAGS=$save_LDFLAGS
11452fi
11453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11454printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11455	if test yes = "$lt_cv_irix_exported_symbol"; then
11456          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11457	fi
11458      else
11459	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11460	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11461      fi
11462      archive_cmds_need_lc='no'
11463      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11464      hardcode_libdir_separator=:
11465      inherit_rpath=yes
11466      link_all_deplibs=yes
11467      ;;
11468
11469    linux*)
11470      case $cc_basename in
11471      tcc*)
11472	# Fabrice Bellard et al's Tiny C Compiler
11473	ld_shlibs=yes
11474	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11475	;;
11476      esac
11477      ;;
11478
11479    netbsd*)
11480      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11481	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11482      else
11483	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11484      fi
11485      hardcode_libdir_flag_spec='-R$libdir'
11486      hardcode_direct=yes
11487      hardcode_shlibpath_var=no
11488      ;;
11489
11490    newsos6)
11491      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11492      hardcode_direct=yes
11493      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11494      hardcode_libdir_separator=:
11495      hardcode_shlibpath_var=no
11496      ;;
11497
11498    *nto* | *qnx*)
11499      ;;
11500
11501    openbsd* | bitrig*)
11502      if test -f /usr/libexec/ld.so; then
11503	hardcode_direct=yes
11504	hardcode_shlibpath_var=no
11505	hardcode_direct_absolute=yes
11506	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11507	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11508	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11509	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11510	  export_dynamic_flag_spec='$wl-E'
11511	else
11512	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11513	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11514	fi
11515      else
11516	ld_shlibs=no
11517      fi
11518      ;;
11519
11520    os2*)
11521      hardcode_libdir_flag_spec='-L$libdir'
11522      hardcode_minus_L=yes
11523      allow_undefined_flag=unsupported
11524      shrext_cmds=.dll
11525      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11526	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11527	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11528	$ECHO EXPORTS >> $output_objdir/$libname.def~
11529	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11530	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11531	emximp -o $lib $output_objdir/$libname.def'
11532      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11533	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11534	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11535	$ECHO EXPORTS >> $output_objdir/$libname.def~
11536	prefix_cmds="$SED"~
11537	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11538	  prefix_cmds="$prefix_cmds -e 1d";
11539	fi~
11540	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11541	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11542	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11543	emximp -o $lib $output_objdir/$libname.def'
11544      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11545      enable_shared_with_static_runtimes=yes
11546      ;;
11547
11548    osf3*)
11549      if test yes = "$GCC"; then
11550	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11551	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11552      else
11553	allow_undefined_flag=' -expect_unresolved \*'
11554	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11555      fi
11556      archive_cmds_need_lc='no'
11557      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11558      hardcode_libdir_separator=:
11559      ;;
11560
11561    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11562      if test yes = "$GCC"; then
11563	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11564	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11565	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11566      else
11567	allow_undefined_flag=' -expect_unresolved \*'
11568	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11569	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11570          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11571
11572	# Both c and cxx compiler support -rpath directly
11573	hardcode_libdir_flag_spec='-rpath $libdir'
11574      fi
11575      archive_cmds_need_lc='no'
11576      hardcode_libdir_separator=:
11577      ;;
11578
11579    solaris*)
11580      no_undefined_flag=' -z defs'
11581      if test yes = "$GCC"; then
11582	wlarc='$wl'
11583	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11584	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11585          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11586      else
11587	case `$CC -V 2>&1` in
11588	*"Compilers 5.0"*)
11589	  wlarc=''
11590	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11591	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11592            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11593	  ;;
11594	*)
11595	  wlarc='$wl'
11596	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11597	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11598            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11599	  ;;
11600	esac
11601      fi
11602      hardcode_libdir_flag_spec='-R$libdir'
11603      hardcode_shlibpath_var=no
11604      case $host_os in
11605      solaris2.[0-5] | solaris2.[0-5].*) ;;
11606      *)
11607	# The compiler driver will combine and reorder linker options,
11608	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11609	# but is careful enough not to reorder.
11610	# Supported since Solaris 2.6 (maybe 2.5.1?)
11611	if test yes = "$GCC"; then
11612	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11613	else
11614	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11615	fi
11616	;;
11617      esac
11618      link_all_deplibs=yes
11619      ;;
11620
11621    sunos4*)
11622      if test sequent = "$host_vendor"; then
11623	# Use $CC to link under sequent, because it throws in some extra .o
11624	# files that make .init and .fini sections work.
11625	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11626      else
11627	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11628      fi
11629      hardcode_libdir_flag_spec='-L$libdir'
11630      hardcode_direct=yes
11631      hardcode_minus_L=yes
11632      hardcode_shlibpath_var=no
11633      ;;
11634
11635    sysv4)
11636      case $host_vendor in
11637	sni)
11638	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11639	  hardcode_direct=yes # is this really true???
11640	;;
11641	siemens)
11642	  ## LD is ld it makes a PLAMLIB
11643	  ## CC just makes a GrossModule.
11644	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11645	  reload_cmds='$CC -r -o $output$reload_objs'
11646	  hardcode_direct=no
11647        ;;
11648	motorola)
11649	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11650	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11651	;;
11652      esac
11653      runpath_var='LD_RUN_PATH'
11654      hardcode_shlibpath_var=no
11655      ;;
11656
11657    sysv4.3*)
11658      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11659      hardcode_shlibpath_var=no
11660      export_dynamic_flag_spec='-Bexport'
11661      ;;
11662
11663    sysv4*MP*)
11664      if test -d /usr/nec; then
11665	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11666	hardcode_shlibpath_var=no
11667	runpath_var=LD_RUN_PATH
11668	hardcode_runpath_var=yes
11669	ld_shlibs=yes
11670      fi
11671      ;;
11672
11673    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11674      no_undefined_flag='$wl-z,text'
11675      archive_cmds_need_lc=no
11676      hardcode_shlibpath_var=no
11677      runpath_var='LD_RUN_PATH'
11678
11679      if test yes = "$GCC"; then
11680	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11681	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11682      else
11683	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11684	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11685      fi
11686      ;;
11687
11688    sysv5* | sco3.2v5* | sco5v6*)
11689      # Note: We CANNOT use -z defs as we might desire, because we do not
11690      # link with -lc, and that would cause any symbols used from libc to
11691      # always be unresolved, which means just about no library would
11692      # ever link correctly.  If we're not using GNU ld we use -z text
11693      # though, which does catch some bad symbols but isn't as heavy-handed
11694      # as -z defs.
11695      no_undefined_flag='$wl-z,text'
11696      allow_undefined_flag='$wl-z,nodefs'
11697      archive_cmds_need_lc=no
11698      hardcode_shlibpath_var=no
11699      hardcode_libdir_flag_spec='$wl-R,$libdir'
11700      hardcode_libdir_separator=':'
11701      link_all_deplibs=yes
11702      export_dynamic_flag_spec='$wl-Bexport'
11703      runpath_var='LD_RUN_PATH'
11704
11705      if test yes = "$GCC"; then
11706	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11707	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11708      else
11709	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11710	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11711      fi
11712      ;;
11713
11714    uts4*)
11715      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11716      hardcode_libdir_flag_spec='-L$libdir'
11717      hardcode_shlibpath_var=no
11718      ;;
11719
11720    *)
11721      ld_shlibs=no
11722      ;;
11723    esac
11724
11725    if test sni = "$host_vendor"; then
11726      case $host in
11727      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11728	export_dynamic_flag_spec='$wl-Blargedynsym'
11729	;;
11730      esac
11731    fi
11732  fi
11733
11734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11735printf "%s\n" "$ld_shlibs" >&6; }
11736test no = "$ld_shlibs" && can_build_shared=no
11737
11738with_gnu_ld=$with_gnu_ld
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754#
11755# Do we need to explicitly link libc?
11756#
11757case "x$archive_cmds_need_lc" in
11758x|xyes)
11759  # Assume -lc should be added
11760  archive_cmds_need_lc=yes
11761
11762  if test yes,yes = "$GCC,$enable_shared"; then
11763    case $archive_cmds in
11764    *'~'*)
11765      # FIXME: we may have to deal with multi-command sequences.
11766      ;;
11767    '$CC '*)
11768      # Test whether the compiler implicitly links with -lc since on some
11769      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11770      # to ld, don't add -lc before -lgcc.
11771      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11772printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11773if test ${lt_cv_archive_cmds_need_lc+y}
11774then :
11775  printf %s "(cached) " >&6
11776else $as_nop
11777  $RM conftest*
11778	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11779
11780	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11781  (eval $ac_compile) 2>&5
11782  ac_status=$?
11783  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11784  test $ac_status = 0; } 2>conftest.err; then
11785	  soname=conftest
11786	  lib=conftest
11787	  libobjs=conftest.$ac_objext
11788	  deplibs=
11789	  wl=$lt_prog_compiler_wl
11790	  pic_flag=$lt_prog_compiler_pic
11791	  compiler_flags=-v
11792	  linker_flags=-v
11793	  verstring=
11794	  output_objdir=.
11795	  libname=conftest
11796	  lt_save_allow_undefined_flag=$allow_undefined_flag
11797	  allow_undefined_flag=
11798	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11799  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11800  ac_status=$?
11801  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11802  test $ac_status = 0; }
11803	  then
11804	    lt_cv_archive_cmds_need_lc=no
11805	  else
11806	    lt_cv_archive_cmds_need_lc=yes
11807	  fi
11808	  allow_undefined_flag=$lt_save_allow_undefined_flag
11809	else
11810	  cat conftest.err 1>&5
11811	fi
11812	$RM conftest*
11813
11814fi
11815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11816printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11817      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11818      ;;
11819    esac
11820  fi
11821  ;;
11822esac
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11976printf %s "checking dynamic linker characteristics... " >&6; }
11977
11978if test yes = "$GCC"; then
11979  case $host_os in
11980    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11981    *) lt_awk_arg='/^libraries:/' ;;
11982  esac
11983  case $host_os in
11984    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11985    *) lt_sed_strip_eq='s|=/|/|g' ;;
11986  esac
11987  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11988  case $lt_search_path_spec in
11989  *\;*)
11990    # if the path contains ";" then we assume it to be the separator
11991    # otherwise default to the standard path separator (i.e. ":") - it is
11992    # assumed that no part of a normal pathname contains ";" but that should
11993    # okay in the real world where ";" in dirpaths is itself problematic.
11994    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11995    ;;
11996  *)
11997    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11998    ;;
11999  esac
12000  # Ok, now we have the path, separated by spaces, we can step through it
12001  # and add multilib dir if necessary...
12002  lt_tmp_lt_search_path_spec=
12003  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12004  # ...but if some path component already ends with the multilib dir we assume
12005  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12006  case "$lt_multi_os_dir; $lt_search_path_spec " in
12007  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12008    lt_multi_os_dir=
12009    ;;
12010  esac
12011  for lt_sys_path in $lt_search_path_spec; do
12012    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12013      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12014    elif test -n "$lt_multi_os_dir"; then
12015      test -d "$lt_sys_path" && \
12016	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12017    fi
12018  done
12019  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12020BEGIN {RS = " "; FS = "/|\n";} {
12021  lt_foo = "";
12022  lt_count = 0;
12023  for (lt_i = NF; lt_i > 0; lt_i--) {
12024    if ($lt_i != "" && $lt_i != ".") {
12025      if ($lt_i == "..") {
12026        lt_count++;
12027      } else {
12028        if (lt_count == 0) {
12029          lt_foo = "/" $lt_i lt_foo;
12030        } else {
12031          lt_count--;
12032        }
12033      }
12034    }
12035  }
12036  if (lt_foo != "") { lt_freq[lt_foo]++; }
12037  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12038}'`
12039  # AWK program above erroneously prepends '/' to C:/dos/paths
12040  # for these hosts.
12041  case $host_os in
12042    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12043      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12044  esac
12045  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12046else
12047  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12048fi
12049library_names_spec=
12050libname_spec='lib$name'
12051soname_spec=
12052shrext_cmds=.so
12053postinstall_cmds=
12054postuninstall_cmds=
12055finish_cmds=
12056finish_eval=
12057shlibpath_var=
12058shlibpath_overrides_runpath=unknown
12059version_type=none
12060dynamic_linker="$host_os ld.so"
12061sys_lib_dlsearch_path_spec="/lib /usr/lib"
12062need_lib_prefix=unknown
12063hardcode_into_libs=no
12064
12065# when you set need_version to no, make sure it does not cause -set_version
12066# flags to be left without arguments
12067need_version=unknown
12068
12069
12070
12071case $host_os in
12072aix3*)
12073  version_type=linux # correct to gnu/linux during the next big refactor
12074  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12075  shlibpath_var=LIBPATH
12076
12077  # AIX 3 has no versioning support, so we append a major version to the name.
12078  soname_spec='$libname$release$shared_ext$major'
12079  ;;
12080
12081aix[4-9]*)
12082  version_type=linux # correct to gnu/linux during the next big refactor
12083  need_lib_prefix=no
12084  need_version=no
12085  hardcode_into_libs=yes
12086  if test ia64 = "$host_cpu"; then
12087    # AIX 5 supports IA64
12088    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12089    shlibpath_var=LD_LIBRARY_PATH
12090  else
12091    # With GCC up to 2.95.x, collect2 would create an import file
12092    # for dependence libraries.  The import file would start with
12093    # the line '#! .'.  This would cause the generated library to
12094    # depend on '.', always an invalid library.  This was fixed in
12095    # development snapshots of GCC prior to 3.0.
12096    case $host_os in
12097      aix4 | aix4.[01] | aix4.[01].*)
12098      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12099	   echo ' yes '
12100	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12101	:
12102      else
12103	can_build_shared=no
12104      fi
12105      ;;
12106    esac
12107    # Using Import Files as archive members, it is possible to support
12108    # filename-based versioning of shared library archives on AIX. While
12109    # this would work for both with and without runtime linking, it will
12110    # prevent static linking of such archives. So we do filename-based
12111    # shared library versioning with .so extension only, which is used
12112    # when both runtime linking and shared linking is enabled.
12113    # Unfortunately, runtime linking may impact performance, so we do
12114    # not want this to be the default eventually. Also, we use the
12115    # versioned .so libs for executables only if there is the -brtl
12116    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12117    # To allow for filename-based versioning support, we need to create
12118    # libNAME.so.V as an archive file, containing:
12119    # *) an Import File, referring to the versioned filename of the
12120    #    archive as well as the shared archive member, telling the
12121    #    bitwidth (32 or 64) of that shared object, and providing the
12122    #    list of exported symbols of that shared object, eventually
12123    #    decorated with the 'weak' keyword
12124    # *) the shared object with the F_LOADONLY flag set, to really avoid
12125    #    it being seen by the linker.
12126    # At run time we better use the real file rather than another symlink,
12127    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12128
12129    case $with_aix_soname,$aix_use_runtimelinking in
12130    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12131    # soname into executable. Probably we can add versioning support to
12132    # collect2, so additional links can be useful in future.
12133    aix,yes) # traditional libtool
12134      dynamic_linker='AIX unversionable lib.so'
12135      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12136      # instead of lib<name>.a to let people know that these are not
12137      # typical AIX shared libraries.
12138      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12139      ;;
12140    aix,no) # traditional AIX only
12141      dynamic_linker='AIX lib.a(lib.so.V)'
12142      # We preserve .a as extension for shared libraries through AIX4.2
12143      # and later when we are not doing run time linking.
12144      library_names_spec='$libname$release.a $libname.a'
12145      soname_spec='$libname$release$shared_ext$major'
12146      ;;
12147    svr4,*) # full svr4 only
12148      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12149      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12150      # We do not specify a path in Import Files, so LIBPATH fires.
12151      shlibpath_overrides_runpath=yes
12152      ;;
12153    *,yes) # both, prefer svr4
12154      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12155      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12156      # unpreferred sharedlib libNAME.a needs extra handling
12157      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12158      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12159      # We do not specify a path in Import Files, so LIBPATH fires.
12160      shlibpath_overrides_runpath=yes
12161      ;;
12162    *,no) # both, prefer aix
12163      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12164      library_names_spec='$libname$release.a $libname.a'
12165      soname_spec='$libname$release$shared_ext$major'
12166      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12167      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12168      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12169      ;;
12170    esac
12171    shlibpath_var=LIBPATH
12172  fi
12173  ;;
12174
12175amigaos*)
12176  case $host_cpu in
12177  powerpc)
12178    # Since July 2007 AmigaOS4 officially supports .so libraries.
12179    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12180    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12181    ;;
12182  m68k)
12183    library_names_spec='$libname.ixlibrary $libname.a'
12184    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12185    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12186    ;;
12187  esac
12188  ;;
12189
12190beos*)
12191  library_names_spec='$libname$shared_ext'
12192  dynamic_linker="$host_os ld.so"
12193  shlibpath_var=LIBRARY_PATH
12194  ;;
12195
12196bsdi[45]*)
12197  version_type=linux # correct to gnu/linux during the next big refactor
12198  need_version=no
12199  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12200  soname_spec='$libname$release$shared_ext$major'
12201  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12202  shlibpath_var=LD_LIBRARY_PATH
12203  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12204  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12205  # the default ld.so.conf also contains /usr/contrib/lib and
12206  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12207  # libtool to hard-code these into programs
12208  ;;
12209
12210cygwin* | mingw* | pw32* | cegcc*)
12211  version_type=windows
12212  shrext_cmds=.dll
12213  need_version=no
12214  need_lib_prefix=no
12215
12216  case $GCC,$cc_basename in
12217  yes,*)
12218    # gcc
12219    library_names_spec='$libname.dll.a'
12220    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12221    postinstall_cmds='base_file=`basename \$file`~
12222      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12223      dldir=$destdir/`dirname \$dlpath`~
12224      test -d \$dldir || mkdir -p \$dldir~
12225      $install_prog $dir/$dlname \$dldir/$dlname~
12226      chmod a+x \$dldir/$dlname~
12227      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12228        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12229      fi'
12230    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12231      dlpath=$dir/\$dldll~
12232       $RM \$dlpath'
12233    shlibpath_overrides_runpath=yes
12234
12235    case $host_os in
12236    cygwin*)
12237      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12238      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12239
12240      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12241      ;;
12242    mingw* | cegcc*)
12243      # MinGW DLLs use traditional 'lib' prefix
12244      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12245      ;;
12246    pw32*)
12247      # pw32 DLLs use 'pw' prefix rather than 'lib'
12248      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12249      ;;
12250    esac
12251    dynamic_linker='Win32 ld.exe'
12252    ;;
12253
12254  *,cl*)
12255    # Native MSVC
12256    libname_spec='$name'
12257    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12258    library_names_spec='$libname.dll.lib'
12259
12260    case $build_os in
12261    mingw*)
12262      sys_lib_search_path_spec=
12263      lt_save_ifs=$IFS
12264      IFS=';'
12265      for lt_path in $LIB
12266      do
12267        IFS=$lt_save_ifs
12268        # Let DOS variable expansion print the short 8.3 style file name.
12269        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12270        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12271      done
12272      IFS=$lt_save_ifs
12273      # Convert to MSYS style.
12274      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12275      ;;
12276    cygwin*)
12277      # Convert to unix form, then to dos form, then back to unix form
12278      # but this time dos style (no spaces!) so that the unix form looks
12279      # like /cygdrive/c/PROGRA~1:/cygdr...
12280      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12281      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12282      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12283      ;;
12284    *)
12285      sys_lib_search_path_spec=$LIB
12286      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12287        # It is most probably a Windows format PATH.
12288        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12289      else
12290        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12291      fi
12292      # FIXME: find the short name or the path components, as spaces are
12293      # common. (e.g. "Program Files" -> "PROGRA~1")
12294      ;;
12295    esac
12296
12297    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12298    postinstall_cmds='base_file=`basename \$file`~
12299      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12300      dldir=$destdir/`dirname \$dlpath`~
12301      test -d \$dldir || mkdir -p \$dldir~
12302      $install_prog $dir/$dlname \$dldir/$dlname'
12303    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12304      dlpath=$dir/\$dldll~
12305       $RM \$dlpath'
12306    shlibpath_overrides_runpath=yes
12307    dynamic_linker='Win32 link.exe'
12308    ;;
12309
12310  *)
12311    # Assume MSVC wrapper
12312    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12313    dynamic_linker='Win32 ld.exe'
12314    ;;
12315  esac
12316  # FIXME: first we should search . and the directory the executable is in
12317  shlibpath_var=PATH
12318  ;;
12319
12320darwin* | rhapsody*)
12321  dynamic_linker="$host_os dyld"
12322  version_type=darwin
12323  need_lib_prefix=no
12324  need_version=no
12325  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12326  soname_spec='$libname$release$major$shared_ext'
12327  shlibpath_overrides_runpath=yes
12328  shlibpath_var=DYLD_LIBRARY_PATH
12329  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12330
12331  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12332  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12333  ;;
12334
12335dgux*)
12336  version_type=linux # correct to gnu/linux during the next big refactor
12337  need_lib_prefix=no
12338  need_version=no
12339  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12340  soname_spec='$libname$release$shared_ext$major'
12341  shlibpath_var=LD_LIBRARY_PATH
12342  ;;
12343
12344freebsd* | dragonfly*)
12345  # DragonFly does not have aout.  When/if they implement a new
12346  # versioning mechanism, adjust this.
12347  if test -x /usr/bin/objformat; then
12348    objformat=`/usr/bin/objformat`
12349  else
12350    case $host_os in
12351    freebsd[23].*) objformat=aout ;;
12352    *) objformat=elf ;;
12353    esac
12354  fi
12355  version_type=freebsd-$objformat
12356  case $version_type in
12357    freebsd-elf*)
12358      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12359      soname_spec='$libname$release$shared_ext$major'
12360      need_version=no
12361      need_lib_prefix=no
12362      ;;
12363    freebsd-*)
12364      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12365      need_version=yes
12366      ;;
12367  esac
12368  shlibpath_var=LD_LIBRARY_PATH
12369  case $host_os in
12370  freebsd2.*)
12371    shlibpath_overrides_runpath=yes
12372    ;;
12373  freebsd3.[01]* | freebsdelf3.[01]*)
12374    shlibpath_overrides_runpath=yes
12375    hardcode_into_libs=yes
12376    ;;
12377  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12378  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12379    shlibpath_overrides_runpath=no
12380    hardcode_into_libs=yes
12381    ;;
12382  *) # from 4.6 on, and DragonFly
12383    shlibpath_overrides_runpath=yes
12384    hardcode_into_libs=yes
12385    ;;
12386  esac
12387  ;;
12388
12389haiku*)
12390  version_type=linux # correct to gnu/linux during the next big refactor
12391  need_lib_prefix=no
12392  need_version=no
12393  dynamic_linker="$host_os runtime_loader"
12394  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12395  soname_spec='$libname$release$shared_ext$major'
12396  shlibpath_var=LIBRARY_PATH
12397  shlibpath_overrides_runpath=no
12398  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12399  hardcode_into_libs=yes
12400  ;;
12401
12402hpux9* | hpux10* | hpux11*)
12403  # Give a soname corresponding to the major version so that dld.sl refuses to
12404  # link against other versions.
12405  version_type=sunos
12406  need_lib_prefix=no
12407  need_version=no
12408  case $host_cpu in
12409  ia64*)
12410    shrext_cmds='.so'
12411    hardcode_into_libs=yes
12412    dynamic_linker="$host_os dld.so"
12413    shlibpath_var=LD_LIBRARY_PATH
12414    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12415    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12416    soname_spec='$libname$release$shared_ext$major'
12417    if test 32 = "$HPUX_IA64_MODE"; then
12418      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12419      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12420    else
12421      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12422      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12423    fi
12424    ;;
12425  hppa*64*)
12426    shrext_cmds='.sl'
12427    hardcode_into_libs=yes
12428    dynamic_linker="$host_os dld.sl"
12429    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12430    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12431    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12432    soname_spec='$libname$release$shared_ext$major'
12433    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12434    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12435    ;;
12436  *)
12437    shrext_cmds='.sl'
12438    dynamic_linker="$host_os dld.sl"
12439    shlibpath_var=SHLIB_PATH
12440    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12441    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12442    soname_spec='$libname$release$shared_ext$major'
12443    ;;
12444  esac
12445  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12446  postinstall_cmds='chmod 555 $lib'
12447  # or fails outright, so override atomically:
12448  install_override_mode=555
12449  ;;
12450
12451interix[3-9]*)
12452  version_type=linux # correct to gnu/linux during the next big refactor
12453  need_lib_prefix=no
12454  need_version=no
12455  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12456  soname_spec='$libname$release$shared_ext$major'
12457  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12458  shlibpath_var=LD_LIBRARY_PATH
12459  shlibpath_overrides_runpath=no
12460  hardcode_into_libs=yes
12461  ;;
12462
12463irix5* | irix6* | nonstopux*)
12464  case $host_os in
12465    nonstopux*) version_type=nonstopux ;;
12466    *)
12467	if test yes = "$lt_cv_prog_gnu_ld"; then
12468		version_type=linux # correct to gnu/linux during the next big refactor
12469	else
12470		version_type=irix
12471	fi ;;
12472  esac
12473  need_lib_prefix=no
12474  need_version=no
12475  soname_spec='$libname$release$shared_ext$major'
12476  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12477  case $host_os in
12478  irix5* | nonstopux*)
12479    libsuff= shlibsuff=
12480    ;;
12481  *)
12482    case $LD in # libtool.m4 will add one of these switches to LD
12483    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12484      libsuff= shlibsuff= libmagic=32-bit;;
12485    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12486      libsuff=32 shlibsuff=N32 libmagic=N32;;
12487    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12488      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12489    *) libsuff= shlibsuff= libmagic=never-match;;
12490    esac
12491    ;;
12492  esac
12493  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12494  shlibpath_overrides_runpath=no
12495  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12496  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12497  hardcode_into_libs=yes
12498  ;;
12499
12500# No shared lib support for Linux oldld, aout, or coff.
12501linux*oldld* | linux*aout* | linux*coff*)
12502  dynamic_linker=no
12503  ;;
12504
12505linux*android*)
12506  version_type=none # Android doesn't support versioned libraries.
12507  need_lib_prefix=no
12508  need_version=no
12509  library_names_spec='$libname$release$shared_ext'
12510  soname_spec='$libname$release$shared_ext'
12511  finish_cmds=
12512  shlibpath_var=LD_LIBRARY_PATH
12513  shlibpath_overrides_runpath=yes
12514
12515  # This implies no fast_install, which is unacceptable.
12516  # Some rework will be needed to allow for fast_install
12517  # before this can be enabled.
12518  hardcode_into_libs=yes
12519
12520  dynamic_linker='Android linker'
12521  # Don't embed -rpath directories since the linker doesn't support them.
12522  hardcode_libdir_flag_spec='-L$libdir'
12523  ;;
12524
12525# This must be glibc/ELF.
12526linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12527  version_type=linux # correct to gnu/linux during the next big refactor
12528  need_lib_prefix=no
12529  need_version=no
12530  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12531  soname_spec='$libname$release$shared_ext$major'
12532  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12533  shlibpath_var=LD_LIBRARY_PATH
12534  shlibpath_overrides_runpath=no
12535
12536  # Some binutils ld are patched to set DT_RUNPATH
12537  if test ${lt_cv_shlibpath_overrides_runpath+y}
12538then :
12539  printf %s "(cached) " >&6
12540else $as_nop
12541  lt_cv_shlibpath_overrides_runpath=no
12542    save_LDFLAGS=$LDFLAGS
12543    save_libdir=$libdir
12544    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12545	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12546    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547/* end confdefs.h.  */
12548
12549int
12550main (void)
12551{
12552
12553  ;
12554  return 0;
12555}
12556_ACEOF
12557if ac_fn_c_try_link "$LINENO"
12558then :
12559  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12560then :
12561  lt_cv_shlibpath_overrides_runpath=yes
12562fi
12563fi
12564rm -f core conftest.err conftest.$ac_objext conftest.beam \
12565    conftest$ac_exeext conftest.$ac_ext
12566    LDFLAGS=$save_LDFLAGS
12567    libdir=$save_libdir
12568
12569fi
12570
12571  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12572
12573  # This implies no fast_install, which is unacceptable.
12574  # Some rework will be needed to allow for fast_install
12575  # before this can be enabled.
12576  hardcode_into_libs=yes
12577
12578  # Ideally, we could use ldconfig to report *all* directores which are
12579  # searched for libraries, however this is still not possible.  Aside from not
12580  # being certain /sbin/ldconfig is available, command
12581  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12582  # even though it is searched at run-time.  Try to do the best guess by
12583  # appending ld.so.conf contents (and includes) to the search path.
12584  if test -f /etc/ld.so.conf; then
12585    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12586    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12587  fi
12588
12589  # We used to test for /lib/ld.so.1 and disable shared libraries on
12590  # powerpc, because MkLinux only supported shared libraries with the
12591  # GNU dynamic linker.  Since this was broken with cross compilers,
12592  # most powerpc-linux boxes support dynamic linking these days and
12593  # people can always --disable-shared, the test was removed, and we
12594  # assume the GNU/Linux dynamic linker is in use.
12595  dynamic_linker='GNU/Linux ld.so'
12596  ;;
12597
12598netbsd*)
12599  version_type=sunos
12600  need_lib_prefix=no
12601  need_version=no
12602  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12603    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12604    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12605    dynamic_linker='NetBSD (a.out) ld.so'
12606  else
12607    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12608    soname_spec='$libname$release$shared_ext$major'
12609    dynamic_linker='NetBSD ld.elf_so'
12610  fi
12611  shlibpath_var=LD_LIBRARY_PATH
12612  shlibpath_overrides_runpath=yes
12613  hardcode_into_libs=yes
12614  ;;
12615
12616newsos6)
12617  version_type=linux # correct to gnu/linux during the next big refactor
12618  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12619  shlibpath_var=LD_LIBRARY_PATH
12620  shlibpath_overrides_runpath=yes
12621  ;;
12622
12623*nto* | *qnx*)
12624  version_type=qnx
12625  need_lib_prefix=no
12626  need_version=no
12627  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12628  soname_spec='$libname$release$shared_ext$major'
12629  shlibpath_var=LD_LIBRARY_PATH
12630  shlibpath_overrides_runpath=no
12631  hardcode_into_libs=yes
12632  dynamic_linker='ldqnx.so'
12633  ;;
12634
12635openbsd* | bitrig*)
12636  version_type=sunos
12637  sys_lib_dlsearch_path_spec=/usr/lib
12638  need_lib_prefix=no
12639  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12640    need_version=no
12641  else
12642    need_version=yes
12643  fi
12644  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12645  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12646  shlibpath_var=LD_LIBRARY_PATH
12647  shlibpath_overrides_runpath=yes
12648  ;;
12649
12650os2*)
12651  libname_spec='$name'
12652  version_type=windows
12653  shrext_cmds=.dll
12654  need_version=no
12655  need_lib_prefix=no
12656  # OS/2 can only load a DLL with a base name of 8 characters or less.
12657  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12658    v=$($ECHO $release$versuffix | tr -d .-);
12659    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12660    $ECHO $n$v`$shared_ext'
12661  library_names_spec='${libname}_dll.$libext'
12662  dynamic_linker='OS/2 ld.exe'
12663  shlibpath_var=BEGINLIBPATH
12664  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12665  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12666  postinstall_cmds='base_file=`basename \$file`~
12667    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12668    dldir=$destdir/`dirname \$dlpath`~
12669    test -d \$dldir || mkdir -p \$dldir~
12670    $install_prog $dir/$dlname \$dldir/$dlname~
12671    chmod a+x \$dldir/$dlname~
12672    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12673      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12674    fi'
12675  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12676    dlpath=$dir/\$dldll~
12677    $RM \$dlpath'
12678  ;;
12679
12680osf3* | osf4* | osf5*)
12681  version_type=osf
12682  need_lib_prefix=no
12683  need_version=no
12684  soname_spec='$libname$release$shared_ext$major'
12685  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12686  shlibpath_var=LD_LIBRARY_PATH
12687  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12688  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12689  ;;
12690
12691rdos*)
12692  dynamic_linker=no
12693  ;;
12694
12695solaris*)
12696  version_type=linux # correct to gnu/linux during the next big refactor
12697  need_lib_prefix=no
12698  need_version=no
12699  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12700  soname_spec='$libname$release$shared_ext$major'
12701  shlibpath_var=LD_LIBRARY_PATH
12702  shlibpath_overrides_runpath=yes
12703  hardcode_into_libs=yes
12704  # ldd complains unless libraries are executable
12705  postinstall_cmds='chmod +x $lib'
12706  ;;
12707
12708sunos4*)
12709  version_type=sunos
12710  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12711  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12712  shlibpath_var=LD_LIBRARY_PATH
12713  shlibpath_overrides_runpath=yes
12714  if test yes = "$with_gnu_ld"; then
12715    need_lib_prefix=no
12716  fi
12717  need_version=yes
12718  ;;
12719
12720sysv4 | sysv4.3*)
12721  version_type=linux # correct to gnu/linux during the next big refactor
12722  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12723  soname_spec='$libname$release$shared_ext$major'
12724  shlibpath_var=LD_LIBRARY_PATH
12725  case $host_vendor in
12726    sni)
12727      shlibpath_overrides_runpath=no
12728      need_lib_prefix=no
12729      runpath_var=LD_RUN_PATH
12730      ;;
12731    siemens)
12732      need_lib_prefix=no
12733      ;;
12734    motorola)
12735      need_lib_prefix=no
12736      need_version=no
12737      shlibpath_overrides_runpath=no
12738      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12739      ;;
12740  esac
12741  ;;
12742
12743sysv4*MP*)
12744  if test -d /usr/nec; then
12745    version_type=linux # correct to gnu/linux during the next big refactor
12746    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12747    soname_spec='$libname$shared_ext.$major'
12748    shlibpath_var=LD_LIBRARY_PATH
12749  fi
12750  ;;
12751
12752sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12753  version_type=sco
12754  need_lib_prefix=no
12755  need_version=no
12756  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12757  soname_spec='$libname$release$shared_ext$major'
12758  shlibpath_var=LD_LIBRARY_PATH
12759  shlibpath_overrides_runpath=yes
12760  hardcode_into_libs=yes
12761  if test yes = "$with_gnu_ld"; then
12762    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12763  else
12764    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12765    case $host_os in
12766      sco3.2v5*)
12767        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12768	;;
12769    esac
12770  fi
12771  sys_lib_dlsearch_path_spec='/usr/lib'
12772  ;;
12773
12774tpf*)
12775  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12776  version_type=linux # correct to gnu/linux during the next big refactor
12777  need_lib_prefix=no
12778  need_version=no
12779  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12780  shlibpath_var=LD_LIBRARY_PATH
12781  shlibpath_overrides_runpath=no
12782  hardcode_into_libs=yes
12783  ;;
12784
12785uts4*)
12786  version_type=linux # correct to gnu/linux during the next big refactor
12787  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12788  soname_spec='$libname$release$shared_ext$major'
12789  shlibpath_var=LD_LIBRARY_PATH
12790  ;;
12791
12792*)
12793  dynamic_linker=no
12794  ;;
12795esac
12796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12797printf "%s\n" "$dynamic_linker" >&6; }
12798test no = "$dynamic_linker" && can_build_shared=no
12799
12800variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12801if test yes = "$GCC"; then
12802  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12803fi
12804
12805if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12806  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12807fi
12808
12809if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12810  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12811fi
12812
12813# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12814configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12815
12816# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12817func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12818
12819# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12820configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12919printf %s "checking how to hardcode library paths into programs... " >&6; }
12920hardcode_action=
12921if test -n "$hardcode_libdir_flag_spec" ||
12922   test -n "$runpath_var" ||
12923   test yes = "$hardcode_automatic"; then
12924
12925  # We can hardcode non-existent directories.
12926  if test no != "$hardcode_direct" &&
12927     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12928     # have to relink, otherwise we might link with an installed library
12929     # when we should be linking with a yet-to-be-installed one
12930     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12931     test no != "$hardcode_minus_L"; then
12932    # Linking always hardcodes the temporary library directory.
12933    hardcode_action=relink
12934  else
12935    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12936    hardcode_action=immediate
12937  fi
12938else
12939  # We cannot hardcode anything, or else we can only hardcode existing
12940  # directories.
12941  hardcode_action=unsupported
12942fi
12943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12944printf "%s\n" "$hardcode_action" >&6; }
12945
12946if test relink = "$hardcode_action" ||
12947   test yes = "$inherit_rpath"; then
12948  # Fast installation is not supported
12949  enable_fast_install=no
12950elif test yes = "$shlibpath_overrides_runpath" ||
12951     test no = "$enable_shared"; then
12952  # Fast installation is not necessary
12953  enable_fast_install=needless
12954fi
12955
12956
12957
12958
12959
12960
12961  if test yes != "$enable_dlopen"; then
12962  enable_dlopen=unknown
12963  enable_dlopen_self=unknown
12964  enable_dlopen_self_static=unknown
12965else
12966  lt_cv_dlopen=no
12967  lt_cv_dlopen_libs=
12968
12969  case $host_os in
12970  beos*)
12971    lt_cv_dlopen=load_add_on
12972    lt_cv_dlopen_libs=
12973    lt_cv_dlopen_self=yes
12974    ;;
12975
12976  mingw* | pw32* | cegcc*)
12977    lt_cv_dlopen=LoadLibrary
12978    lt_cv_dlopen_libs=
12979    ;;
12980
12981  cygwin*)
12982    lt_cv_dlopen=dlopen
12983    lt_cv_dlopen_libs=
12984    ;;
12985
12986  darwin*)
12987    # if libdl is installed we need to link against it
12988    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12989printf %s "checking for dlopen in -ldl... " >&6; }
12990if test ${ac_cv_lib_dl_dlopen+y}
12991then :
12992  printf %s "(cached) " >&6
12993else $as_nop
12994  ac_check_lib_save_LIBS=$LIBS
12995LIBS="-ldl  $LIBS"
12996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997/* end confdefs.h.  */
12998
12999/* Override any GCC internal prototype to avoid an error.
13000   Use char because int might match the return type of a GCC
13001   builtin and then its argument prototype would still apply.  */
13002char dlopen ();
13003int
13004main (void)
13005{
13006return dlopen ();
13007  ;
13008  return 0;
13009}
13010_ACEOF
13011if ac_fn_c_try_link "$LINENO"
13012then :
13013  ac_cv_lib_dl_dlopen=yes
13014else $as_nop
13015  ac_cv_lib_dl_dlopen=no
13016fi
13017rm -f core conftest.err conftest.$ac_objext conftest.beam \
13018    conftest$ac_exeext conftest.$ac_ext
13019LIBS=$ac_check_lib_save_LIBS
13020fi
13021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13022printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13023if test "x$ac_cv_lib_dl_dlopen" = xyes
13024then :
13025  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13026else $as_nop
13027
13028    lt_cv_dlopen=dyld
13029    lt_cv_dlopen_libs=
13030    lt_cv_dlopen_self=yes
13031
13032fi
13033
13034    ;;
13035
13036  tpf*)
13037    # Don't try to run any link tests for TPF.  We know it's impossible
13038    # because TPF is a cross-compiler, and we know how we open DSOs.
13039    lt_cv_dlopen=dlopen
13040    lt_cv_dlopen_libs=
13041    lt_cv_dlopen_self=no
13042    ;;
13043
13044  *)
13045    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13046if test "x$ac_cv_func_shl_load" = xyes
13047then :
13048  lt_cv_dlopen=shl_load
13049else $as_nop
13050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13051printf %s "checking for shl_load in -ldld... " >&6; }
13052if test ${ac_cv_lib_dld_shl_load+y}
13053then :
13054  printf %s "(cached) " >&6
13055else $as_nop
13056  ac_check_lib_save_LIBS=$LIBS
13057LIBS="-ldld  $LIBS"
13058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059/* end confdefs.h.  */
13060
13061/* Override any GCC internal prototype to avoid an error.
13062   Use char because int might match the return type of a GCC
13063   builtin and then its argument prototype would still apply.  */
13064char shl_load ();
13065int
13066main (void)
13067{
13068return shl_load ();
13069  ;
13070  return 0;
13071}
13072_ACEOF
13073if ac_fn_c_try_link "$LINENO"
13074then :
13075  ac_cv_lib_dld_shl_load=yes
13076else $as_nop
13077  ac_cv_lib_dld_shl_load=no
13078fi
13079rm -f core conftest.err conftest.$ac_objext conftest.beam \
13080    conftest$ac_exeext conftest.$ac_ext
13081LIBS=$ac_check_lib_save_LIBS
13082fi
13083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13084printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13085if test "x$ac_cv_lib_dld_shl_load" = xyes
13086then :
13087  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13088else $as_nop
13089  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13090if test "x$ac_cv_func_dlopen" = xyes
13091then :
13092  lt_cv_dlopen=dlopen
13093else $as_nop
13094  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13095printf %s "checking for dlopen in -ldl... " >&6; }
13096if test ${ac_cv_lib_dl_dlopen+y}
13097then :
13098  printf %s "(cached) " >&6
13099else $as_nop
13100  ac_check_lib_save_LIBS=$LIBS
13101LIBS="-ldl  $LIBS"
13102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13103/* end confdefs.h.  */
13104
13105/* Override any GCC internal prototype to avoid an error.
13106   Use char because int might match the return type of a GCC
13107   builtin and then its argument prototype would still apply.  */
13108char dlopen ();
13109int
13110main (void)
13111{
13112return dlopen ();
13113  ;
13114  return 0;
13115}
13116_ACEOF
13117if ac_fn_c_try_link "$LINENO"
13118then :
13119  ac_cv_lib_dl_dlopen=yes
13120else $as_nop
13121  ac_cv_lib_dl_dlopen=no
13122fi
13123rm -f core conftest.err conftest.$ac_objext conftest.beam \
13124    conftest$ac_exeext conftest.$ac_ext
13125LIBS=$ac_check_lib_save_LIBS
13126fi
13127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13128printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13129if test "x$ac_cv_lib_dl_dlopen" = xyes
13130then :
13131  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13132else $as_nop
13133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13134printf %s "checking for dlopen in -lsvld... " >&6; }
13135if test ${ac_cv_lib_svld_dlopen+y}
13136then :
13137  printf %s "(cached) " >&6
13138else $as_nop
13139  ac_check_lib_save_LIBS=$LIBS
13140LIBS="-lsvld  $LIBS"
13141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142/* end confdefs.h.  */
13143
13144/* Override any GCC internal prototype to avoid an error.
13145   Use char because int might match the return type of a GCC
13146   builtin and then its argument prototype would still apply.  */
13147char dlopen ();
13148int
13149main (void)
13150{
13151return dlopen ();
13152  ;
13153  return 0;
13154}
13155_ACEOF
13156if ac_fn_c_try_link "$LINENO"
13157then :
13158  ac_cv_lib_svld_dlopen=yes
13159else $as_nop
13160  ac_cv_lib_svld_dlopen=no
13161fi
13162rm -f core conftest.err conftest.$ac_objext conftest.beam \
13163    conftest$ac_exeext conftest.$ac_ext
13164LIBS=$ac_check_lib_save_LIBS
13165fi
13166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13167printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13168if test "x$ac_cv_lib_svld_dlopen" = xyes
13169then :
13170  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13171else $as_nop
13172  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13173printf %s "checking for dld_link in -ldld... " >&6; }
13174if test ${ac_cv_lib_dld_dld_link+y}
13175then :
13176  printf %s "(cached) " >&6
13177else $as_nop
13178  ac_check_lib_save_LIBS=$LIBS
13179LIBS="-ldld  $LIBS"
13180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13181/* end confdefs.h.  */
13182
13183/* Override any GCC internal prototype to avoid an error.
13184   Use char because int might match the return type of a GCC
13185   builtin and then its argument prototype would still apply.  */
13186char dld_link ();
13187int
13188main (void)
13189{
13190return dld_link ();
13191  ;
13192  return 0;
13193}
13194_ACEOF
13195if ac_fn_c_try_link "$LINENO"
13196then :
13197  ac_cv_lib_dld_dld_link=yes
13198else $as_nop
13199  ac_cv_lib_dld_dld_link=no
13200fi
13201rm -f core conftest.err conftest.$ac_objext conftest.beam \
13202    conftest$ac_exeext conftest.$ac_ext
13203LIBS=$ac_check_lib_save_LIBS
13204fi
13205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13206printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13207if test "x$ac_cv_lib_dld_dld_link" = xyes
13208then :
13209  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13210fi
13211
13212
13213fi
13214
13215
13216fi
13217
13218
13219fi
13220
13221
13222fi
13223
13224
13225fi
13226
13227    ;;
13228  esac
13229
13230  if test no = "$lt_cv_dlopen"; then
13231    enable_dlopen=no
13232  else
13233    enable_dlopen=yes
13234  fi
13235
13236  case $lt_cv_dlopen in
13237  dlopen)
13238    save_CPPFLAGS=$CPPFLAGS
13239    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13240
13241    save_LDFLAGS=$LDFLAGS
13242    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13243
13244    save_LIBS=$LIBS
13245    LIBS="$lt_cv_dlopen_libs $LIBS"
13246
13247    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13248printf %s "checking whether a program can dlopen itself... " >&6; }
13249if test ${lt_cv_dlopen_self+y}
13250then :
13251  printf %s "(cached) " >&6
13252else $as_nop
13253  	  if test yes = "$cross_compiling"; then :
13254  lt_cv_dlopen_self=cross
13255else
13256  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13257  lt_status=$lt_dlunknown
13258  cat > conftest.$ac_ext <<_LT_EOF
13259#line $LINENO "configure"
13260#include "confdefs.h"
13261
13262#if HAVE_DLFCN_H
13263#include <dlfcn.h>
13264#endif
13265
13266#include <stdio.h>
13267
13268#ifdef RTLD_GLOBAL
13269#  define LT_DLGLOBAL		RTLD_GLOBAL
13270#else
13271#  ifdef DL_GLOBAL
13272#    define LT_DLGLOBAL		DL_GLOBAL
13273#  else
13274#    define LT_DLGLOBAL		0
13275#  endif
13276#endif
13277
13278/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13279   find out it does not work in some platform. */
13280#ifndef LT_DLLAZY_OR_NOW
13281#  ifdef RTLD_LAZY
13282#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13283#  else
13284#    ifdef DL_LAZY
13285#      define LT_DLLAZY_OR_NOW		DL_LAZY
13286#    else
13287#      ifdef RTLD_NOW
13288#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13289#      else
13290#        ifdef DL_NOW
13291#          define LT_DLLAZY_OR_NOW	DL_NOW
13292#        else
13293#          define LT_DLLAZY_OR_NOW	0
13294#        endif
13295#      endif
13296#    endif
13297#  endif
13298#endif
13299
13300/* When -fvisibility=hidden is used, assume the code has been annotated
13301   correspondingly for the symbols needed.  */
13302#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13303int fnord () __attribute__((visibility("default")));
13304#endif
13305
13306int fnord () { return 42; }
13307int main ()
13308{
13309  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13310  int status = $lt_dlunknown;
13311
13312  if (self)
13313    {
13314      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13315      else
13316        {
13317	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13318          else puts (dlerror ());
13319	}
13320      /* dlclose (self); */
13321    }
13322  else
13323    puts (dlerror ());
13324
13325  return status;
13326}
13327_LT_EOF
13328  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13329  (eval $ac_link) 2>&5
13330  ac_status=$?
13331  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13332  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13333    (./conftest; exit; ) >&5 2>/dev/null
13334    lt_status=$?
13335    case x$lt_status in
13336      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13337      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13338      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13339    esac
13340  else :
13341    # compilation failed
13342    lt_cv_dlopen_self=no
13343  fi
13344fi
13345rm -fr conftest*
13346
13347
13348fi
13349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13350printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13351
13352    if test yes = "$lt_cv_dlopen_self"; then
13353      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13354      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13355printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13356if test ${lt_cv_dlopen_self_static+y}
13357then :
13358  printf %s "(cached) " >&6
13359else $as_nop
13360  	  if test yes = "$cross_compiling"; then :
13361  lt_cv_dlopen_self_static=cross
13362else
13363  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13364  lt_status=$lt_dlunknown
13365  cat > conftest.$ac_ext <<_LT_EOF
13366#line $LINENO "configure"
13367#include "confdefs.h"
13368
13369#if HAVE_DLFCN_H
13370#include <dlfcn.h>
13371#endif
13372
13373#include <stdio.h>
13374
13375#ifdef RTLD_GLOBAL
13376#  define LT_DLGLOBAL		RTLD_GLOBAL
13377#else
13378#  ifdef DL_GLOBAL
13379#    define LT_DLGLOBAL		DL_GLOBAL
13380#  else
13381#    define LT_DLGLOBAL		0
13382#  endif
13383#endif
13384
13385/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13386   find out it does not work in some platform. */
13387#ifndef LT_DLLAZY_OR_NOW
13388#  ifdef RTLD_LAZY
13389#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13390#  else
13391#    ifdef DL_LAZY
13392#      define LT_DLLAZY_OR_NOW		DL_LAZY
13393#    else
13394#      ifdef RTLD_NOW
13395#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13396#      else
13397#        ifdef DL_NOW
13398#          define LT_DLLAZY_OR_NOW	DL_NOW
13399#        else
13400#          define LT_DLLAZY_OR_NOW	0
13401#        endif
13402#      endif
13403#    endif
13404#  endif
13405#endif
13406
13407/* When -fvisibility=hidden is used, assume the code has been annotated
13408   correspondingly for the symbols needed.  */
13409#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13410int fnord () __attribute__((visibility("default")));
13411#endif
13412
13413int fnord () { return 42; }
13414int main ()
13415{
13416  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13417  int status = $lt_dlunknown;
13418
13419  if (self)
13420    {
13421      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13422      else
13423        {
13424	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13425          else puts (dlerror ());
13426	}
13427      /* dlclose (self); */
13428    }
13429  else
13430    puts (dlerror ());
13431
13432  return status;
13433}
13434_LT_EOF
13435  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13436  (eval $ac_link) 2>&5
13437  ac_status=$?
13438  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13439  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13440    (./conftest; exit; ) >&5 2>/dev/null
13441    lt_status=$?
13442    case x$lt_status in
13443      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13444      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13445      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13446    esac
13447  else :
13448    # compilation failed
13449    lt_cv_dlopen_self_static=no
13450  fi
13451fi
13452rm -fr conftest*
13453
13454
13455fi
13456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13457printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13458    fi
13459
13460    CPPFLAGS=$save_CPPFLAGS
13461    LDFLAGS=$save_LDFLAGS
13462    LIBS=$save_LIBS
13463    ;;
13464  esac
13465
13466  case $lt_cv_dlopen_self in
13467  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13468  *) enable_dlopen_self=unknown ;;
13469  esac
13470
13471  case $lt_cv_dlopen_self_static in
13472  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13473  *) enable_dlopen_self_static=unknown ;;
13474  esac
13475fi
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493striplib=
13494old_striplib=
13495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13496printf %s "checking whether stripping libraries is possible... " >&6; }
13497if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13498  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13499  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13501printf "%s\n" "yes" >&6; }
13502else
13503# FIXME - insert some real tests, host_os isn't really good enough
13504  case $host_os in
13505  darwin*)
13506    if test -n "$STRIP"; then
13507      striplib="$STRIP -x"
13508      old_striplib="$STRIP -S"
13509      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13510printf "%s\n" "yes" >&6; }
13511    else
13512      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13513printf "%s\n" "no" >&6; }
13514    fi
13515    ;;
13516  *)
13517    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13518printf "%s\n" "no" >&6; }
13519    ;;
13520  esac
13521fi
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534  # Report what library types will actually be built
13535  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13536printf %s "checking if libtool supports shared libraries... " >&6; }
13537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13538printf "%s\n" "$can_build_shared" >&6; }
13539
13540  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13541printf %s "checking whether to build shared libraries... " >&6; }
13542  test no = "$can_build_shared" && enable_shared=no
13543
13544  # On AIX, shared libraries and static libraries use the same namespace, and
13545  # are all built from PIC.
13546  case $host_os in
13547  aix3*)
13548    test yes = "$enable_shared" && enable_static=no
13549    if test -n "$RANLIB"; then
13550      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13551      postinstall_cmds='$RANLIB $lib'
13552    fi
13553    ;;
13554
13555  aix[4-9]*)
13556    if test ia64 != "$host_cpu"; then
13557      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13558      yes,aix,yes) ;;			# shared object as lib.so file only
13559      yes,svr4,*) ;;			# shared object as lib.so archive member only
13560      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13561      esac
13562    fi
13563    ;;
13564  esac
13565  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13566printf "%s\n" "$enable_shared" >&6; }
13567
13568  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13569printf %s "checking whether to build static libraries... " >&6; }
13570  # Make sure either enable_shared or enable_static is yes.
13571  test yes = "$enable_shared" || enable_static=yes
13572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13573printf "%s\n" "$enable_static" >&6; }
13574
13575
13576
13577
13578fi
13579ac_ext=c
13580ac_cpp='$CPP $CPPFLAGS'
13581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13583ac_compiler_gnu=$ac_cv_c_compiler_gnu
13584
13585CC=$lt_save_CC
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601        ac_config_commands="$ac_config_commands libtool"
13602
13603
13604
13605
13606# Only expand once:
13607
13608
13609
13610
13611
13612 if test "$enable_samples" = "yes"; then
13613  BUILD_SAMPLES_TRUE=
13614  BUILD_SAMPLES_FALSE='#'
13615else
13616  BUILD_SAMPLES_TRUE='#'
13617  BUILD_SAMPLES_FALSE=
13618fi
13619
13620 if test "$enable_libevent_regress" = "yes"; then
13621  BUILD_REGRESS_TRUE=
13622  BUILD_REGRESS_FALSE='#'
13623else
13624  BUILD_REGRESS_TRUE='#'
13625  BUILD_REGRESS_FALSE=
13626fi
13627
13628
13629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
13630printf %s "checking for library containing inet_ntoa... " >&6; }
13631if test ${ac_cv_search_inet_ntoa+y}
13632then :
13633  printf %s "(cached) " >&6
13634else $as_nop
13635  ac_func_search_save_LIBS=$LIBS
13636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13637/* end confdefs.h.  */
13638
13639/* Override any GCC internal prototype to avoid an error.
13640   Use char because int might match the return type of a GCC
13641   builtin and then its argument prototype would still apply.  */
13642char inet_ntoa ();
13643int
13644main (void)
13645{
13646return inet_ntoa ();
13647  ;
13648  return 0;
13649}
13650_ACEOF
13651for ac_lib in '' nsl
13652do
13653  if test -z "$ac_lib"; then
13654    ac_res="none required"
13655  else
13656    ac_res=-l$ac_lib
13657    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13658  fi
13659  if ac_fn_c_try_link "$LINENO"
13660then :
13661  ac_cv_search_inet_ntoa=$ac_res
13662fi
13663rm -f core conftest.err conftest.$ac_objext conftest.beam \
13664    conftest$ac_exeext
13665  if test ${ac_cv_search_inet_ntoa+y}
13666then :
13667  break
13668fi
13669done
13670if test ${ac_cv_search_inet_ntoa+y}
13671then :
13672
13673else $as_nop
13674  ac_cv_search_inet_ntoa=no
13675fi
13676rm conftest.$ac_ext
13677LIBS=$ac_func_search_save_LIBS
13678fi
13679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
13680printf "%s\n" "$ac_cv_search_inet_ntoa" >&6; }
13681ac_res=$ac_cv_search_inet_ntoa
13682if test "$ac_res" != no
13683then :
13684  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13685
13686fi
13687
13688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13689printf %s "checking for library containing socket... " >&6; }
13690if test ${ac_cv_search_socket+y}
13691then :
13692  printf %s "(cached) " >&6
13693else $as_nop
13694  ac_func_search_save_LIBS=$LIBS
13695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696/* end confdefs.h.  */
13697
13698/* Override any GCC internal prototype to avoid an error.
13699   Use char because int might match the return type of a GCC
13700   builtin and then its argument prototype would still apply.  */
13701char socket ();
13702int
13703main (void)
13704{
13705return socket ();
13706  ;
13707  return 0;
13708}
13709_ACEOF
13710for ac_lib in '' socket
13711do
13712  if test -z "$ac_lib"; then
13713    ac_res="none required"
13714  else
13715    ac_res=-l$ac_lib
13716    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13717  fi
13718  if ac_fn_c_try_link "$LINENO"
13719then :
13720  ac_cv_search_socket=$ac_res
13721fi
13722rm -f core conftest.err conftest.$ac_objext conftest.beam \
13723    conftest$ac_exeext
13724  if test ${ac_cv_search_socket+y}
13725then :
13726  break
13727fi
13728done
13729if test ${ac_cv_search_socket+y}
13730then :
13731
13732else $as_nop
13733  ac_cv_search_socket=no
13734fi
13735rm conftest.$ac_ext
13736LIBS=$ac_func_search_save_LIBS
13737fi
13738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13739printf "%s\n" "$ac_cv_search_socket" >&6; }
13740ac_res=$ac_cv_search_socket
13741if test "$ac_res" != no
13742then :
13743  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13744
13745fi
13746
13747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13748printf %s "checking for library containing inet_aton... " >&6; }
13749if test ${ac_cv_search_inet_aton+y}
13750then :
13751  printf %s "(cached) " >&6
13752else $as_nop
13753  ac_func_search_save_LIBS=$LIBS
13754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755/* end confdefs.h.  */
13756
13757/* Override any GCC internal prototype to avoid an error.
13758   Use char because int might match the return type of a GCC
13759   builtin and then its argument prototype would still apply.  */
13760char inet_aton ();
13761int
13762main (void)
13763{
13764return inet_aton ();
13765  ;
13766  return 0;
13767}
13768_ACEOF
13769for ac_lib in '' resolv
13770do
13771  if test -z "$ac_lib"; then
13772    ac_res="none required"
13773  else
13774    ac_res=-l$ac_lib
13775    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13776  fi
13777  if ac_fn_c_try_link "$LINENO"
13778then :
13779  ac_cv_search_inet_aton=$ac_res
13780fi
13781rm -f core conftest.err conftest.$ac_objext conftest.beam \
13782    conftest$ac_exeext
13783  if test ${ac_cv_search_inet_aton+y}
13784then :
13785  break
13786fi
13787done
13788if test ${ac_cv_search_inet_aton+y}
13789then :
13790
13791else $as_nop
13792  ac_cv_search_inet_aton=no
13793fi
13794rm conftest.$ac_ext
13795LIBS=$ac_func_search_save_LIBS
13796fi
13797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13798printf "%s\n" "$ac_cv_search_inet_aton" >&6; }
13799ac_res=$ac_cv_search_inet_aton
13800if test "$ac_res" != no
13801then :
13802  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13803
13804fi
13805
13806if test "x$enable_clock_gettime" = "xyes"; then
13807  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13808printf %s "checking for library containing clock_gettime... " >&6; }
13809if test ${ac_cv_search_clock_gettime+y}
13810then :
13811  printf %s "(cached) " >&6
13812else $as_nop
13813  ac_func_search_save_LIBS=$LIBS
13814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815/* end confdefs.h.  */
13816
13817/* Override any GCC internal prototype to avoid an error.
13818   Use char because int might match the return type of a GCC
13819   builtin and then its argument prototype would still apply.  */
13820char clock_gettime ();
13821int
13822main (void)
13823{
13824return clock_gettime ();
13825  ;
13826  return 0;
13827}
13828_ACEOF
13829for ac_lib in '' rt
13830do
13831  if test -z "$ac_lib"; then
13832    ac_res="none required"
13833  else
13834    ac_res=-l$ac_lib
13835    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13836  fi
13837  if ac_fn_c_try_link "$LINENO"
13838then :
13839  ac_cv_search_clock_gettime=$ac_res
13840fi
13841rm -f core conftest.err conftest.$ac_objext conftest.beam \
13842    conftest$ac_exeext
13843  if test ${ac_cv_search_clock_gettime+y}
13844then :
13845  break
13846fi
13847done
13848if test ${ac_cv_search_clock_gettime+y}
13849then :
13850
13851else $as_nop
13852  ac_cv_search_clock_gettime=no
13853fi
13854rm conftest.$ac_ext
13855LIBS=$ac_func_search_save_LIBS
13856fi
13857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13858printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
13859ac_res=$ac_cv_search_clock_gettime
13860if test "$ac_res" != no
13861then :
13862  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13863
13864fi
13865
13866  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13867if test "x$ac_cv_func_clock_gettime" = xyes
13868then :
13869  printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13870
13871fi
13872
13873fi
13874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
13875printf %s "checking for library containing sendfile... " >&6; }
13876if test ${ac_cv_search_sendfile+y}
13877then :
13878  printf %s "(cached) " >&6
13879else $as_nop
13880  ac_func_search_save_LIBS=$LIBS
13881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882/* end confdefs.h.  */
13883
13884/* Override any GCC internal prototype to avoid an error.
13885   Use char because int might match the return type of a GCC
13886   builtin and then its argument prototype would still apply.  */
13887char sendfile ();
13888int
13889main (void)
13890{
13891return sendfile ();
13892  ;
13893  return 0;
13894}
13895_ACEOF
13896for ac_lib in '' sendfile
13897do
13898  if test -z "$ac_lib"; then
13899    ac_res="none required"
13900  else
13901    ac_res=-l$ac_lib
13902    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13903  fi
13904  if ac_fn_c_try_link "$LINENO"
13905then :
13906  ac_cv_search_sendfile=$ac_res
13907fi
13908rm -f core conftest.err conftest.$ac_objext conftest.beam \
13909    conftest$ac_exeext
13910  if test ${ac_cv_search_sendfile+y}
13911then :
13912  break
13913fi
13914done
13915if test ${ac_cv_search_sendfile+y}
13916then :
13917
13918else $as_nop
13919  ac_cv_search_sendfile=no
13920fi
13921rm conftest.$ac_ext
13922LIBS=$ac_func_search_save_LIBS
13923fi
13924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
13925printf "%s\n" "$ac_cv_search_sendfile" >&6; }
13926ac_res=$ac_cv_search_sendfile
13927if test "$ac_res" != no
13928then :
13929  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13930
13931fi
13932
13933
13934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
13935printf %s "checking for WIN32... " >&6; }
13936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937/* end confdefs.h.  */
13938
13939int
13940main (void)
13941{
13942
13943#ifndef _WIN32
13944die horribly
13945#endif
13946
13947
13948  ;
13949  return 0;
13950}
13951_ACEOF
13952if ac_fn_c_try_compile "$LINENO"
13953then :
13954  bwin32=true; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13955printf "%s\n" "yes" >&6; }
13956else $as_nop
13957  bwin32=false; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13958printf "%s\n" "no" >&6; }
13959
13960fi
13961rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13962
13963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MIDIPIX" >&5
13964printf %s "checking for MIDIPIX... " >&6; }
13965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966/* end confdefs.h.  */
13967
13968int
13969main (void)
13970{
13971
13972#ifndef __midipix__
13973die horribly
13974#endif
13975
13976
13977  ;
13978  return 0;
13979}
13980_ACEOF
13981if ac_fn_c_try_compile "$LINENO"
13982then :
13983  midipix=true; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13984printf "%s\n" "yes" >&6; }
13985else $as_nop
13986  midipix=false; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13987printf "%s\n" "no" >&6; }
13988
13989fi
13990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13991
13992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
13993printf %s "checking for CYGWIN... " >&6; }
13994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13995/* end confdefs.h.  */
13996
13997int
13998main (void)
13999{
14000
14001#ifndef __CYGWIN__
14002die horribly
14003#endif
14004
14005
14006  ;
14007  return 0;
14008}
14009_ACEOF
14010if ac_fn_c_try_compile "$LINENO"
14011then :
14012  cygwin=true; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14013printf "%s\n" "yes" >&6; }
14014else $as_nop
14015  cygwin=false; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14016printf "%s\n" "no" >&6; }
14017
14018fi
14019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14020
14021ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
14022if test "x$ac_cv_header_zlib_h" = xyes
14023then :
14024  printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
14025
14026fi
14027
14028
14029if test "x$ac_cv_header_zlib_h" = "xyes"; then
14030save_LIBS="$LIBS"
14031LIBS=""
14032ZLIB_LIBS=""
14033have_zlib=no
14034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
14035printf %s "checking for library containing inflateEnd... " >&6; }
14036if test ${ac_cv_search_inflateEnd+y}
14037then :
14038  printf %s "(cached) " >&6
14039else $as_nop
14040  ac_func_search_save_LIBS=$LIBS
14041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042/* end confdefs.h.  */
14043
14044/* Override any GCC internal prototype to avoid an error.
14045   Use char because int might match the return type of a GCC
14046   builtin and then its argument prototype would still apply.  */
14047char inflateEnd ();
14048int
14049main (void)
14050{
14051return inflateEnd ();
14052  ;
14053  return 0;
14054}
14055_ACEOF
14056for ac_lib in '' z
14057do
14058  if test -z "$ac_lib"; then
14059    ac_res="none required"
14060  else
14061    ac_res=-l$ac_lib
14062    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14063  fi
14064  if ac_fn_c_try_link "$LINENO"
14065then :
14066  ac_cv_search_inflateEnd=$ac_res
14067fi
14068rm -f core conftest.err conftest.$ac_objext conftest.beam \
14069    conftest$ac_exeext
14070  if test ${ac_cv_search_inflateEnd+y}
14071then :
14072  break
14073fi
14074done
14075if test ${ac_cv_search_inflateEnd+y}
14076then :
14077
14078else $as_nop
14079  ac_cv_search_inflateEnd=no
14080fi
14081rm conftest.$ac_ext
14082LIBS=$ac_func_search_save_LIBS
14083fi
14084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
14085printf "%s\n" "$ac_cv_search_inflateEnd" >&6; }
14086ac_res=$ac_cv_search_inflateEnd
14087if test "$ac_res" != no
14088then :
14089  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14090  have_zlib=yes
14091	ZLIB_LIBS="$LIBS"
14092
14093printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
14094
14095fi
14096
14097LIBS="$save_LIBS"
14098
14099fi
14100 if test "$have_zlib" = "yes"; then
14101  ZLIB_REGRESS_TRUE=
14102  ZLIB_REGRESS_FALSE='#'
14103else
14104  ZLIB_REGRESS_TRUE='#'
14105  ZLIB_REGRESS_FALSE=
14106fi
14107
14108
14109if test "$bwin32" = true; then
14110  EV_LIB_WS32=-lws2_32
14111  EV_LIB_GDI=-lgdi32
14112else
14113  EV_LIB_WS32=
14114  EV_LIB_GDI=
14115fi
14116
14117
14118
14119
14120# Check whether --enable-largefile was given.
14121if test ${enable_largefile+y}
14122then :
14123  enableval=$enable_largefile;
14124fi
14125
14126if test "$enable_largefile" != no; then
14127
14128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14129printf %s "checking for special C compiler options needed for large files... " >&6; }
14130if test ${ac_cv_sys_largefile_CC+y}
14131then :
14132  printf %s "(cached) " >&6
14133else $as_nop
14134  ac_cv_sys_largefile_CC=no
14135     if test "$GCC" != yes; then
14136       ac_save_CC=$CC
14137       while :; do
14138	 # IRIX 6.2 and later do not support large files by default,
14139	 # so use the C compiler's -n32 option if that helps.
14140	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141/* end confdefs.h.  */
14142#include <sys/types.h>
14143 /* Check that off_t can represent 2**63 - 1 correctly.
14144    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14145    since some C++ compilers masquerading as C compilers
14146    incorrectly reject 9223372036854775807.  */
14147#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14148  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14149		       && LARGE_OFF_T % 2147483647 == 1)
14150		      ? 1 : -1];
14151int
14152main (void)
14153{
14154
14155  ;
14156  return 0;
14157}
14158_ACEOF
14159	 if ac_fn_c_try_compile "$LINENO"
14160then :
14161  break
14162fi
14163rm -f core conftest.err conftest.$ac_objext conftest.beam
14164	 CC="$CC -n32"
14165	 if ac_fn_c_try_compile "$LINENO"
14166then :
14167  ac_cv_sys_largefile_CC=' -n32'; break
14168fi
14169rm -f core conftest.err conftest.$ac_objext conftest.beam
14170	 break
14171       done
14172       CC=$ac_save_CC
14173       rm -f conftest.$ac_ext
14174    fi
14175fi
14176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14177printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
14178  if test "$ac_cv_sys_largefile_CC" != no; then
14179    CC=$CC$ac_cv_sys_largefile_CC
14180  fi
14181
14182  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14183printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14184if test ${ac_cv_sys_file_offset_bits+y}
14185then :
14186  printf %s "(cached) " >&6
14187else $as_nop
14188  while :; do
14189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14190/* end confdefs.h.  */
14191#include <sys/types.h>
14192 /* Check that off_t can represent 2**63 - 1 correctly.
14193    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14194    since some C++ compilers masquerading as C compilers
14195    incorrectly reject 9223372036854775807.  */
14196#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14197  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14198		       && LARGE_OFF_T % 2147483647 == 1)
14199		      ? 1 : -1];
14200int
14201main (void)
14202{
14203
14204  ;
14205  return 0;
14206}
14207_ACEOF
14208if ac_fn_c_try_compile "$LINENO"
14209then :
14210  ac_cv_sys_file_offset_bits=no; break
14211fi
14212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214/* end confdefs.h.  */
14215#define _FILE_OFFSET_BITS 64
14216#include <sys/types.h>
14217 /* Check that off_t can represent 2**63 - 1 correctly.
14218    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14219    since some C++ compilers masquerading as C compilers
14220    incorrectly reject 9223372036854775807.  */
14221#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14222  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14223		       && LARGE_OFF_T % 2147483647 == 1)
14224		      ? 1 : -1];
14225int
14226main (void)
14227{
14228
14229  ;
14230  return 0;
14231}
14232_ACEOF
14233if ac_fn_c_try_compile "$LINENO"
14234then :
14235  ac_cv_sys_file_offset_bits=64; break
14236fi
14237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14238  ac_cv_sys_file_offset_bits=unknown
14239  break
14240done
14241fi
14242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14243printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
14244case $ac_cv_sys_file_offset_bits in #(
14245  no | unknown) ;;
14246  *)
14247printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
14248;;
14249esac
14250rm -rf conftest*
14251  if test $ac_cv_sys_file_offset_bits = unknown; then
14252    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14253printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
14254if test ${ac_cv_sys_large_files+y}
14255then :
14256  printf %s "(cached) " >&6
14257else $as_nop
14258  while :; do
14259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260/* end confdefs.h.  */
14261#include <sys/types.h>
14262 /* Check that off_t can represent 2**63 - 1 correctly.
14263    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14264    since some C++ compilers masquerading as C compilers
14265    incorrectly reject 9223372036854775807.  */
14266#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14267  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14268		       && LARGE_OFF_T % 2147483647 == 1)
14269		      ? 1 : -1];
14270int
14271main (void)
14272{
14273
14274  ;
14275  return 0;
14276}
14277_ACEOF
14278if ac_fn_c_try_compile "$LINENO"
14279then :
14280  ac_cv_sys_large_files=no; break
14281fi
14282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284/* end confdefs.h.  */
14285#define _LARGE_FILES 1
14286#include <sys/types.h>
14287 /* Check that off_t can represent 2**63 - 1 correctly.
14288    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14289    since some C++ compilers masquerading as C compilers
14290    incorrectly reject 9223372036854775807.  */
14291#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14292  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14293		       && LARGE_OFF_T % 2147483647 == 1)
14294		      ? 1 : -1];
14295int
14296main (void)
14297{
14298
14299  ;
14300  return 0;
14301}
14302_ACEOF
14303if ac_fn_c_try_compile "$LINENO"
14304then :
14305  ac_cv_sys_large_files=1; break
14306fi
14307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14308  ac_cv_sys_large_files=unknown
14309  break
14310done
14311fi
14312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14313printf "%s\n" "$ac_cv_sys_large_files" >&6; }
14314case $ac_cv_sys_large_files in #(
14315  no | unknown) ;;
14316  *)
14317printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
14318;;
14319esac
14320rm -rf conftest*
14321  fi
14322fi
14323
14324
14325
14326
14327ntp_pkgconfig_min_version='0.15.0'
14328if test -n "$ac_tool_prefix"; then
14329  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14330set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14332printf %s "checking for $ac_word... " >&6; }
14333if test ${ac_cv_path_PKG_CONFIG+y}
14334then :
14335  printf %s "(cached) " >&6
14336else $as_nop
14337  case $PKG_CONFIG in
14338  [\\/]* | ?:[\\/]*)
14339  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14340  ;;
14341  *)
14342  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14343for as_dir in $PATH
14344do
14345  IFS=$as_save_IFS
14346  case $as_dir in #(((
14347    '') as_dir=./ ;;
14348    */) ;;
14349    *) as_dir=$as_dir/ ;;
14350  esac
14351    for ac_exec_ext in '' $ac_executable_extensions; do
14352  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14353    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14354    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14355    break 2
14356  fi
14357done
14358  done
14359IFS=$as_save_IFS
14360
14361  ;;
14362esac
14363fi
14364PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14365if test -n "$PKG_CONFIG"; then
14366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14367printf "%s\n" "$PKG_CONFIG" >&6; }
14368else
14369  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14370printf "%s\n" "no" >&6; }
14371fi
14372
14373
14374fi
14375if test -z "$ac_cv_path_PKG_CONFIG"; then
14376  ac_pt_PKG_CONFIG=$PKG_CONFIG
14377  # Extract the first word of "pkg-config", so it can be a program name with args.
14378set dummy pkg-config; ac_word=$2
14379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14380printf %s "checking for $ac_word... " >&6; }
14381if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
14382then :
14383  printf %s "(cached) " >&6
14384else $as_nop
14385  case $ac_pt_PKG_CONFIG in
14386  [\\/]* | ?:[\\/]*)
14387  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14388  ;;
14389  *)
14390  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14391for as_dir in $PATH
14392do
14393  IFS=$as_save_IFS
14394  case $as_dir in #(((
14395    '') as_dir=./ ;;
14396    */) ;;
14397    *) as_dir=$as_dir/ ;;
14398  esac
14399    for ac_exec_ext in '' $ac_executable_extensions; do
14400  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14401    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14402    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14403    break 2
14404  fi
14405done
14406  done
14407IFS=$as_save_IFS
14408
14409  ;;
14410esac
14411fi
14412ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14413if test -n "$ac_pt_PKG_CONFIG"; then
14414  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14415printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14416else
14417  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14418printf "%s\n" "no" >&6; }
14419fi
14420
14421  if test "x$ac_pt_PKG_CONFIG" = x; then
14422    PKG_CONFIG=""
14423  else
14424    case $cross_compiling:$ac_tool_warned in
14425yes:)
14426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14427printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14428ac_tool_warned=yes ;;
14429esac
14430    PKG_CONFIG=$ac_pt_PKG_CONFIG
14431  fi
14432else
14433  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14434fi
14435
14436{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
14437{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
14438
14439case "$PKG_CONFIG" in
14440 /*)
14441    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
14442printf %s "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
14443    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
14444	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14445printf "%s\n" "yes" >&6; }
14446    else
14447	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14448printf "%s\n" "no" >&6; }
14449	PKG_CONFIG=""
14450    fi
14451    ;;
14452esac
14453
14454
14455
14456
14457case "$enable_openssl" in
14458 yes)
14459    have_openssl=no
14460    case "$PKG_CONFIG" in
14461     '')
14462	;;
14463     *)
14464	OPENSSL_LIBS=`$PKG_CONFIG --libs openssl 2>/dev/null`
14465	case "$OPENSSL_LIBS" in
14466	 '') ;;
14467	 *) OPENSSL_LIBS="$OPENSSL_LIBS $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
14468	    have_openssl=yes
14469	    ;;
14470	esac
14471	OPENSSL_INCS=`$PKG_CONFIG --cflags openssl 2>/dev/null`
14472	;;
14473    esac
14474    case "$have_openssl" in
14475     yes) ;;
14476     *)
14477	save_LIBS="$LIBS"
14478	LIBS=""
14479	OPENSSL_LIBS=""
14480	for lib in crypto eay32; do
14481		# clear cache
14482		unset ac_cv_search_SSL_new
14483		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
14484printf %s "checking for library containing SSL_new... " >&6; }
14485if test ${ac_cv_search_SSL_new+y}
14486then :
14487  printf %s "(cached) " >&6
14488else $as_nop
14489  ac_func_search_save_LIBS=$LIBS
14490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491/* end confdefs.h.  */
14492
14493/* Override any GCC internal prototype to avoid an error.
14494   Use char because int might match the return type of a GCC
14495   builtin and then its argument prototype would still apply.  */
14496char SSL_new ();
14497int
14498main (void)
14499{
14500return SSL_new ();
14501  ;
14502  return 0;
14503}
14504_ACEOF
14505for ac_lib in '' ssl ssl32
14506do
14507  if test -z "$ac_lib"; then
14508    ac_res="none required"
14509  else
14510    ac_res=-l$ac_lib
14511    LIBS="-l$ac_lib -l$lib $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
14512  fi
14513  if ac_fn_c_try_link "$LINENO"
14514then :
14515  ac_cv_search_SSL_new=$ac_res
14516fi
14517rm -f core conftest.err conftest.$ac_objext conftest.beam \
14518    conftest$ac_exeext
14519  if test ${ac_cv_search_SSL_new+y}
14520then :
14521  break
14522fi
14523done
14524if test ${ac_cv_search_SSL_new+y}
14525then :
14526
14527else $as_nop
14528  ac_cv_search_SSL_new=no
14529fi
14530rm conftest.$ac_ext
14531LIBS=$ac_func_search_save_LIBS
14532fi
14533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
14534printf "%s\n" "$ac_cv_search_SSL_new" >&6; }
14535ac_res=$ac_cv_search_SSL_new
14536if test "$ac_res" != no
14537then :
14538  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14539  have_openssl=yes
14540		    OPENSSL_LIBS="$LIBS -l$lib $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
14541else $as_nop
14542  have_openssl=no
14543fi
14544
14545		LIBS="$save_LIBS"
14546		test "$have_openssl" = "yes" && break
14547	done
14548	;;
14549    esac
14550    CPPFLAGS_SAVE=$CPPFLAGS
14551    CPPFLAGS="$CPPFLAGS $OPENSSL_INCS"
14552           for ac_header in openssl/ssl.h
14553do :
14554  ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
14555if test "x$ac_cv_header_openssl_ssl_h" = xyes
14556then :
14557  printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
14558
14559else $as_nop
14560  have_openssl=no
14561fi
14562
14563done
14564    CPPFLAGS=$CPPFLAGS_SAVE
14565
14566
14567    case "$have_openssl" in
14568     yes)
14569printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h
14570 ;;
14571     *) as_fn_error $? "openssl is a must but can not be found. You should add the \
14572directory containing \`openssl.pc' to the \`PKG_CONFIG_PATH' environment variable, \
14573or set \`CFLAGS' and \`LDFLAGS' directly for openssl, or use \`--disable-openssl' \
14574to disable support for openssl encryption" "$LINENO" 5
14575	;;
14576    esac
14577    ;;
14578esac
14579
14580# check if we have and should use openssl
14581 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
14582  OPENSSL_TRUE=
14583  OPENSSL_FALSE='#'
14584else
14585  OPENSSL_TRUE='#'
14586  OPENSSL_FALSE=
14587fi
14588
14589
14590
14591ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14592if test "x$ac_cv_header_arpa_inet_h" = xyes
14593then :
14594  printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
14595
14596fi
14597ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
14598if test "x$ac_cv_header_fcntl_h" = xyes
14599then :
14600  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
14601
14602fi
14603ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
14604if test "x$ac_cv_header_ifaddrs_h" = xyes
14605then :
14606  printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h
14607
14608fi
14609ac_fn_c_check_header_compile "$LINENO" "mach/mach_time.h" "ac_cv_header_mach_mach_time_h" "$ac_includes_default"
14610if test "x$ac_cv_header_mach_mach_time_h" = xyes
14611then :
14612  printf "%s\n" "#define HAVE_MACH_MACH_TIME_H 1" >>confdefs.h
14613
14614fi
14615ac_fn_c_check_header_compile "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
14616if test "x$ac_cv_header_mach_mach_h" = xyes
14617then :
14618  printf "%s\n" "#define HAVE_MACH_MACH_H 1" >>confdefs.h
14619
14620fi
14621ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
14622if test "x$ac_cv_header_netdb_h" = xyes
14623then :
14624  printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
14625
14626fi
14627ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14628if test "x$ac_cv_header_netinet_in_h" = xyes
14629then :
14630  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
14631
14632fi
14633ac_fn_c_check_header_compile "$LINENO" "netinet/in6.h" "ac_cv_header_netinet_in6_h" "$ac_includes_default"
14634if test "x$ac_cv_header_netinet_in6_h" = xyes
14635then :
14636  printf "%s\n" "#define HAVE_NETINET_IN6_H 1" >>confdefs.h
14637
14638fi
14639ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
14640if test "x$ac_cv_header_netinet_tcp_h" = xyes
14641then :
14642  printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
14643
14644fi
14645ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14646if test "x$ac_cv_header_sys_un_h" = xyes
14647then :
14648  printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
14649
14650fi
14651ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
14652if test "x$ac_cv_header_poll_h" = xyes
14653then :
14654  printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
14655
14656fi
14657ac_fn_c_check_header_compile "$LINENO" "port.h" "ac_cv_header_port_h" "$ac_includes_default"
14658if test "x$ac_cv_header_port_h" = xyes
14659then :
14660  printf "%s\n" "#define HAVE_PORT_H 1" >>confdefs.h
14661
14662fi
14663ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
14664if test "x$ac_cv_header_stdarg_h" = xyes
14665then :
14666  printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
14667
14668fi
14669ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
14670if test "x$ac_cv_header_stddef_h" = xyes
14671then :
14672  printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
14673
14674fi
14675ac_fn_c_check_header_compile "$LINENO" "sys/devpoll.h" "ac_cv_header_sys_devpoll_h" "$ac_includes_default"
14676if test "x$ac_cv_header_sys_devpoll_h" = xyes
14677then :
14678  printf "%s\n" "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14679
14680fi
14681ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default"
14682if test "x$ac_cv_header_sys_epoll_h" = xyes
14683then :
14684  printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h
14685
14686fi
14687ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
14688if test "x$ac_cv_header_sys_event_h" = xyes
14689then :
14690  printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h
14691
14692fi
14693ac_fn_c_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default"
14694if test "x$ac_cv_header_sys_eventfd_h" = xyes
14695then :
14696  printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h
14697
14698fi
14699ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
14700if test "x$ac_cv_header_sys_ioctl_h" = xyes
14701then :
14702  printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
14703
14704fi
14705ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14706if test "x$ac_cv_header_sys_mman_h" = xyes
14707then :
14708  printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
14709
14710fi
14711ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
14712if test "x$ac_cv_header_sys_param_h" = xyes
14713then :
14714  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
14715
14716fi
14717ac_fn_c_check_header_compile "$LINENO" "sys/queue.h" "ac_cv_header_sys_queue_h" "$ac_includes_default"
14718if test "x$ac_cv_header_sys_queue_h" = xyes
14719then :
14720  printf "%s\n" "#define HAVE_SYS_QUEUE_H 1" >>confdefs.h
14721
14722fi
14723ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
14724if test "x$ac_cv_header_sys_resource_h" = xyes
14725then :
14726  printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
14727
14728fi
14729ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
14730if test "x$ac_cv_header_sys_select_h" = xyes
14731then :
14732  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
14733
14734fi
14735ac_fn_c_check_header_compile "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default"
14736if test "x$ac_cv_header_sys_sendfile_h" = xyes
14737then :
14738  printf "%s\n" "#define HAVE_SYS_SENDFILE_H 1" >>confdefs.h
14739
14740fi
14741ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
14742if test "x$ac_cv_header_sys_socket_h" = xyes
14743then :
14744  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
14745
14746fi
14747ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
14748if test "x$ac_cv_header_sys_stat_h" = xyes
14749then :
14750  printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
14751
14752fi
14753ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
14754if test "x$ac_cv_header_sys_time_h" = xyes
14755then :
14756  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
14757
14758fi
14759ac_fn_c_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
14760if test "x$ac_cv_header_sys_timerfd_h" = xyes
14761then :
14762  printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h
14763
14764fi
14765ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
14766if test "x$ac_cv_header_sys_uio_h" = xyes
14767then :
14768  printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
14769
14770fi
14771ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
14772if test "x$ac_cv_header_sys_wait_h" = xyes
14773then :
14774  printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
14775
14776fi
14777ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
14778if test "x$ac_cv_header_sys_random_h" = xyes
14779then :
14780  printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
14781
14782fi
14783ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
14784if test "x$ac_cv_header_errno_h" = xyes
14785then :
14786  printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
14787
14788fi
14789ac_fn_c_check_header_compile "$LINENO" "afunix.h" "ac_cv_header_afunix_h" "$ac_includes_default"
14790if test "x$ac_cv_header_afunix_h" = xyes
14791then :
14792  printf "%s\n" "#define HAVE_AFUNIX_H 1" >>confdefs.h
14793
14794fi
14795
14796
14797case "${host_os}" in
14798    linux*) ;;
14799    *)
14800        ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
14801        #ifdef HAVE_SYS_PARAM_H
14802        #include <sys/param.h>
14803        #endif
14804
14805"
14806if test "x$ac_cv_header_sys_sysctl_h" = xyes
14807then :
14808  printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
14809
14810fi
14811
14812esac
14813
14814if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
14815	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
14816printf %s "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
14817	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14818/* end confdefs.h.  */
14819
14820#include <sys/queue.h>
14821#ifdef TAILQ_FOREACH
14822 yes
14823#endif
14824
14825_ACEOF
14826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14827  $EGREP "yes" >/dev/null 2>&1
14828then :
14829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14830printf "%s\n" "yes" >&6; }
14831
14832printf "%s\n" "#define HAVE_TAILQFOREACH 1" >>confdefs.h
14833
14834else $as_nop
14835  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14836printf "%s\n" "no" >&6; }
14837
14838fi
14839rm -rf conftest*
14840
14841fi
14842
14843if test "x$ac_cv_header_sys_time_h" = "xyes"; then
14844	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
14845printf %s "checking for timeradd in sys/time.h... " >&6; }
14846	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847/* end confdefs.h.  */
14848
14849#include <sys/time.h>
14850#ifdef timeradd
14851 yes
14852#endif
14853
14854_ACEOF
14855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14856  $EGREP "yes" >/dev/null 2>&1
14857then :
14858
14859printf "%s\n" "#define HAVE_TIMERADD 1" >>confdefs.h
14860
14861	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14862printf "%s\n" "yes" >&6; }
14863else $as_nop
14864  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14865printf "%s\n" "no" >&6; }
14866
14867fi
14868rm -rf conftest*
14869
14870fi
14871
14872if test "x$ac_cv_header_sys_time_h" = "xyes"; then
14873	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
14874printf %s "checking for timercmp in sys/time.h... " >&6; }
14875	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14876/* end confdefs.h.  */
14877
14878#include <sys/time.h>
14879#ifdef timercmp
14880 yes
14881#endif
14882
14883_ACEOF
14884if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14885  $EGREP "yes" >/dev/null 2>&1
14886then :
14887
14888printf "%s\n" "#define HAVE_TIMERCMP 1" >>confdefs.h
14889
14890	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14891printf "%s\n" "yes" >&6; }
14892else $as_nop
14893  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14894printf "%s\n" "no" >&6; }
14895
14896fi
14897rm -rf conftest*
14898
14899fi
14900
14901if test "x$ac_cv_header_sys_time_h" = "xyes"; then
14902	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
14903printf %s "checking for timerclear in sys/time.h... " >&6; }
14904	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905/* end confdefs.h.  */
14906
14907#include <sys/time.h>
14908#ifdef timerclear
14909 yes
14910#endif
14911
14912_ACEOF
14913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14914  $EGREP "yes" >/dev/null 2>&1
14915then :
14916
14917printf "%s\n" "#define HAVE_TIMERCLEAR 1" >>confdefs.h
14918
14919	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14920printf "%s\n" "yes" >&6; }
14921else $as_nop
14922  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14923printf "%s\n" "no" >&6; }
14924
14925fi
14926rm -rf conftest*
14927
14928fi
14929
14930if test "x$ac_cv_header_sys_time_h" = "xyes"; then
14931	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
14932printf %s "checking for timerisset in sys/time.h... " >&6; }
14933	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14934/* end confdefs.h.  */
14935
14936#include <sys/time.h>
14937#ifdef timerisset
14938 yes
14939#endif
14940
14941_ACEOF
14942if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14943  $EGREP "yes" >/dev/null 2>&1
14944then :
14945
14946printf "%s\n" "#define HAVE_TIMERISSET 1" >>confdefs.h
14947
14948	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14949printf "%s\n" "yes" >&6; }
14950else $as_nop
14951  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14952printf "%s\n" "no" >&6; }
14953
14954fi
14955rm -rf conftest*
14956
14957fi
14958
14959if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
14960	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
14961printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
14962if test ${ac_cv_c_undeclared_builtin_options+y}
14963then :
14964  printf %s "(cached) " >&6
14965else $as_nop
14966  ac_save_CFLAGS=$CFLAGS
14967   ac_cv_c_undeclared_builtin_options='cannot detect'
14968   for ac_arg in '' -fno-builtin; do
14969     CFLAGS="$ac_save_CFLAGS $ac_arg"
14970     # This test program should *not* compile successfully.
14971     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14972/* end confdefs.h.  */
14973
14974int
14975main (void)
14976{
14977(void) strchr;
14978  ;
14979  return 0;
14980}
14981_ACEOF
14982if ac_fn_c_try_compile "$LINENO"
14983then :
14984
14985else $as_nop
14986  # This test program should compile successfully.
14987        # No library function is consistently available on
14988        # freestanding implementations, so test against a dummy
14989        # declaration.  Include always-available headers on the
14990        # off chance that they somehow elicit warnings.
14991        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14992/* end confdefs.h.  */
14993#include <float.h>
14994#include <limits.h>
14995#include <stdarg.h>
14996#include <stddef.h>
14997extern void ac_decl (int, char *);
14998
14999int
15000main (void)
15001{
15002(void) ac_decl (0, (char *) 0);
15003  (void) ac_decl;
15004
15005  ;
15006  return 0;
15007}
15008_ACEOF
15009if ac_fn_c_try_compile "$LINENO"
15010then :
15011  if test x"$ac_arg" = x
15012then :
15013  ac_cv_c_undeclared_builtin_options='none needed'
15014else $as_nop
15015  ac_cv_c_undeclared_builtin_options=$ac_arg
15016fi
15017          break
15018fi
15019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15020fi
15021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15022    done
15023    CFLAGS=$ac_save_CFLAGS
15024
15025fi
15026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
15027printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
15028  case $ac_cv_c_undeclared_builtin_options in #(
15029  'cannot detect') :
15030    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15031printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15032as_fn_error $? "cannot make $CC report undeclared builtins
15033See \`config.log' for more details" "$LINENO" 5; } ;; #(
15034  'none needed') :
15035    ac_c_undeclared_builtin_options='' ;; #(
15036  *) :
15037    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
15038esac
15039
15040ac_fn_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
15041	     #include <sys/sysctl.h>
15042
15043" "$ac_c_undeclared_builtin_options" "CFLAGS"
15044if test "x$ac_cv_have_decl_CTL_KERN" = xyes
15045then :
15046  ac_have_decl=1
15047else $as_nop
15048  ac_have_decl=0
15049fi
15050printf "%s\n" "#define HAVE_DECL_CTL_KERN $ac_have_decl" >>confdefs.h
15051ac_fn_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
15052	     #include <sys/sysctl.h>
15053
15054" "$ac_c_undeclared_builtin_options" "CFLAGS"
15055if test "x$ac_cv_have_decl_KERN_ARND" = xyes
15056then :
15057  ac_have_decl=1
15058else $as_nop
15059  ac_have_decl=0
15060fi
15061printf "%s\n" "#define HAVE_DECL_KERN_ARND $ac_have_decl" >>confdefs.h
15062
15063fi
15064
15065 if test x$bwin32 = xtrue; then
15066  BUILD_WIN32_TRUE=
15067  BUILD_WIN32_FALSE='#'
15068else
15069  BUILD_WIN32_TRUE='#'
15070  BUILD_WIN32_FALSE=
15071fi
15072
15073 if test x$cygwin = xtrue; then
15074  BUILD_CYGWIN_TRUE=
15075  BUILD_CYGWIN_FALSE='#'
15076else
15077  BUILD_CYGWIN_TRUE='#'
15078  BUILD_CYGWIN_FALSE=
15079fi
15080
15081 if test x$midipix = xtrue; then
15082  BUILD_MIDIPIX_TRUE=
15083  BUILD_MIDIPIX_FALSE='#'
15084else
15085  BUILD_MIDIPIX_TRUE='#'
15086  BUILD_MIDIPIX_FALSE=
15087fi
15088
15089 if test x$bwin32 = xtrue || test x$cygwin = xtrue || test x$midipix = xtrue; then
15090  BUILD_WITH_NO_UNDEFINED_TRUE=
15091  BUILD_WITH_NO_UNDEFINED_FALSE='#'
15092else
15093  BUILD_WITH_NO_UNDEFINED_TRUE='#'
15094  BUILD_WITH_NO_UNDEFINED_FALSE=
15095fi
15096
15097
15098if test x$bwin32 = xtrue; then
15099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
15100printf %s "checking for main in -lws2_32... " >&6; }
15101if test ${ac_cv_lib_ws2_32_main+y}
15102then :
15103  printf %s "(cached) " >&6
15104else $as_nop
15105  ac_check_lib_save_LIBS=$LIBS
15106LIBS="-lws2_32  $LIBS"
15107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15108/* end confdefs.h.  */
15109
15110
15111int
15112main (void)
15113{
15114return main ();
15115  ;
15116  return 0;
15117}
15118_ACEOF
15119if ac_fn_c_try_link "$LINENO"
15120then :
15121  ac_cv_lib_ws2_32_main=yes
15122else $as_nop
15123  ac_cv_lib_ws2_32_main=no
15124fi
15125rm -f core conftest.err conftest.$ac_objext conftest.beam \
15126    conftest$ac_exeext conftest.$ac_ext
15127LIBS=$ac_check_lib_save_LIBS
15128fi
15129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
15130printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
15131if test "x$ac_cv_lib_ws2_32_main" = xyes
15132then :
15133  printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
15134
15135  LIBS="-lws2_32 $LIBS"
15136
15137fi
15138ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
15139
15140fi
15141
15142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15143printf %s "checking for an ANSI C-conforming const... " >&6; }
15144if test ${ac_cv_c_const+y}
15145then :
15146  printf %s "(cached) " >&6
15147else $as_nop
15148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15149/* end confdefs.h.  */
15150
15151int
15152main (void)
15153{
15154
15155#ifndef __cplusplus
15156  /* Ultrix mips cc rejects this sort of thing.  */
15157  typedef int charset[2];
15158  const charset cs = { 0, 0 };
15159  /* SunOS 4.1.1 cc rejects this.  */
15160  char const *const *pcpcc;
15161  char **ppc;
15162  /* NEC SVR4.0.2 mips cc rejects this.  */
15163  struct point {int x, y;};
15164  static struct point const zero = {0,0};
15165  /* IBM XL C 1.02.0.0 rejects this.
15166     It does not let you subtract one const X* pointer from another in
15167     an arm of an if-expression whose if-part is not a constant
15168     expression */
15169  const char *g = "string";
15170  pcpcc = &g + (g ? g-g : 0);
15171  /* HPUX 7.0 cc rejects these. */
15172  ++pcpcc;
15173  ppc = (char**) pcpcc;
15174  pcpcc = (char const *const *) ppc;
15175  { /* SCO 3.2v4 cc rejects this sort of thing.  */
15176    char tx;
15177    char *t = &tx;
15178    char const *s = 0 ? (char *) 0 : (char const *) 0;
15179
15180    *t++ = 0;
15181    if (s) return 0;
15182  }
15183  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15184    int x[] = {25, 17};
15185    const int *foo = &x[0];
15186    ++foo;
15187  }
15188  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15189    typedef const int *iptr;
15190    iptr p = 0;
15191    ++p;
15192  }
15193  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15194       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15195    struct s { int j; const int *ap[3]; } bx;
15196    struct s *b = &bx; b->j = 5;
15197  }
15198  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15199    const int foo = 10;
15200    if (!foo) return 0;
15201  }
15202  return !cs[0] && !zero.x;
15203#endif
15204
15205  ;
15206  return 0;
15207}
15208_ACEOF
15209if ac_fn_c_try_compile "$LINENO"
15210then :
15211  ac_cv_c_const=yes
15212else $as_nop
15213  ac_cv_c_const=no
15214fi
15215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15216fi
15217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15218printf "%s\n" "$ac_cv_c_const" >&6; }
15219if test $ac_cv_c_const = no; then
15220
15221printf "%s\n" "#define const /**/" >>confdefs.h
15222
15223fi
15224
15225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15226printf %s "checking for inline... " >&6; }
15227if test ${ac_cv_c_inline+y}
15228then :
15229  printf %s "(cached) " >&6
15230else $as_nop
15231  ac_cv_c_inline=no
15232for ac_kw in inline __inline__ __inline; do
15233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15234/* end confdefs.h.  */
15235#ifndef __cplusplus
15236typedef int foo_t;
15237static $ac_kw foo_t static_foo (void) {return 0; }
15238$ac_kw foo_t foo (void) {return 0; }
15239#endif
15240
15241_ACEOF
15242if ac_fn_c_try_compile "$LINENO"
15243then :
15244  ac_cv_c_inline=$ac_kw
15245fi
15246rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15247  test "$ac_cv_c_inline" != no && break
15248done
15249
15250fi
15251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15252printf "%s\n" "$ac_cv_c_inline" >&6; }
15253
15254case $ac_cv_c_inline in
15255  inline | yes) ;;
15256  *)
15257    case $ac_cv_c_inline in
15258      no) ac_val=;;
15259      *) ac_val=$ac_cv_c_inline;;
15260    esac
15261    cat >>confdefs.h <<_ACEOF
15262#ifndef __cplusplus
15263#define inline $ac_val
15264#endif
15265_ACEOF
15266    ;;
15267esac
15268
15269
15270
15271# Obsolete code to be removed.
15272if test $ac_cv_header_sys_time_h = yes; then
15273
15274printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15275
15276fi
15277# End of obsolete code.
15278
15279
15280ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
15281if test "x$ac_cv_func_accept4" = xyes
15282then :
15283  printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h
15284
15285fi
15286ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
15287if test "x$ac_cv_func_arc4random" = xyes
15288then :
15289  printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h
15290
15291fi
15292ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
15293if test "x$ac_cv_func_arc4random_buf" = xyes
15294then :
15295  printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
15296
15297fi
15298ac_fn_c_check_func "$LINENO" "arc4random_addrandom" "ac_cv_func_arc4random_addrandom"
15299if test "x$ac_cv_func_arc4random_addrandom" = xyes
15300then :
15301  printf "%s\n" "#define HAVE_ARC4RANDOM_ADDRANDOM 1" >>confdefs.h
15302
15303fi
15304ac_fn_c_check_func "$LINENO" "eventfd" "ac_cv_func_eventfd"
15305if test "x$ac_cv_func_eventfd" = xyes
15306then :
15307  printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h
15308
15309fi
15310ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1"
15311if test "x$ac_cv_func_epoll_create1" = xyes
15312then :
15313  printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
15314
15315fi
15316ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
15317if test "x$ac_cv_func_fcntl" = xyes
15318then :
15319  printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
15320
15321fi
15322ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid"
15323if test "x$ac_cv_func_getegid" = xyes
15324then :
15325  printf "%s\n" "#define HAVE_GETEGID 1" >>confdefs.h
15326
15327fi
15328ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
15329if test "x$ac_cv_func_geteuid" = xyes
15330then :
15331  printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
15332
15333fi
15334ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
15335if test "x$ac_cv_func_getifaddrs" = xyes
15336then :
15337  printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
15338
15339fi
15340ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15341if test "x$ac_cv_func_gettimeofday" = xyes
15342then :
15343  printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
15344
15345fi
15346ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
15347if test "x$ac_cv_func_issetugid" = xyes
15348then :
15349  printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h
15350
15351fi
15352ac_fn_c_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time"
15353if test "x$ac_cv_func_mach_absolute_time" = xyes
15354then :
15355  printf "%s\n" "#define HAVE_MACH_ABSOLUTE_TIME 1" >>confdefs.h
15356
15357fi
15358ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15359if test "x$ac_cv_func_mmap" = xyes
15360then :
15361  printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
15362
15363fi
15364ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
15365if test "x$ac_cv_func_nanosleep" = xyes
15366then :
15367  printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
15368
15369fi
15370ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
15371if test "x$ac_cv_func_pipe" = xyes
15372then :
15373  printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h
15374
15375fi
15376ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2"
15377if test "x$ac_cv_func_pipe2" = xyes
15378then :
15379  printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h
15380
15381fi
15382ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
15383if test "x$ac_cv_func_putenv" = xyes
15384then :
15385  printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
15386
15387fi
15388ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
15389if test "x$ac_cv_func_sendfile" = xyes
15390then :
15391  printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h
15392
15393fi
15394ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
15395if test "x$ac_cv_func_setenv" = xyes
15396then :
15397  printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
15398
15399fi
15400ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
15401if test "x$ac_cv_func_setrlimit" = xyes
15402then :
15403  printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h
15404
15405fi
15406ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
15407if test "x$ac_cv_func_sigaction" = xyes
15408then :
15409  printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
15410
15411fi
15412ac_fn_c_check_func "$LINENO" "signal" "ac_cv_func_signal"
15413if test "x$ac_cv_func_signal" = xyes
15414then :
15415  printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h
15416
15417fi
15418ac_fn_c_check_func "$LINENO" "splice" "ac_cv_func_splice"
15419if test "x$ac_cv_func_splice" = xyes
15420then :
15421  printf "%s\n" "#define HAVE_SPLICE 1" >>confdefs.h
15422
15423fi
15424ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
15425if test "x$ac_cv_func_strlcpy" = xyes
15426then :
15427  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
15428
15429fi
15430ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
15431if test "x$ac_cv_func_strsep" = xyes
15432then :
15433  printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h
15434
15435fi
15436ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
15437if test "x$ac_cv_func_strtok_r" = xyes
15438then :
15439  printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
15440
15441fi
15442ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
15443if test "x$ac_cv_func_strtoll" = xyes
15444then :
15445  printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
15446
15447fi
15448ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
15449if test "x$ac_cv_func_sysctl" = xyes
15450then :
15451  printf "%s\n" "#define HAVE_SYSCTL 1" >>confdefs.h
15452
15453fi
15454ac_fn_c_check_func "$LINENO" "timerfd_create" "ac_cv_func_timerfd_create"
15455if test "x$ac_cv_func_timerfd_create" = xyes
15456then :
15457  printf "%s\n" "#define HAVE_TIMERFD_CREATE 1" >>confdefs.h
15458
15459fi
15460ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
15461if test "x$ac_cv_func_umask" = xyes
15462then :
15463  printf "%s\n" "#define HAVE_UMASK 1" >>confdefs.h
15464
15465fi
15466ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
15467if test "x$ac_cv_func_unsetenv" = xyes
15468then :
15469  printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
15470
15471fi
15472ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
15473if test "x$ac_cv_func_usleep" = xyes
15474then :
15475  printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
15476
15477fi
15478ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
15479if test "x$ac_cv_func_vasprintf" = xyes
15480then :
15481  printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
15482
15483fi
15484ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
15485if test "x$ac_cv_func_getrandom" = xyes
15486then :
15487  printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
15488
15489fi
15490
15491
15492if test x$bwin32 = xtrue
15493then :
15494
15495  for ac_func in _gmtime64_s
15496do :
15497  ac_fn_c_check_func "$LINENO" "_gmtime64_s" "ac_cv_func__gmtime64_s"
15498if test "x$ac_cv_func__gmtime64_s" = xyes
15499then :
15500  printf "%s\n" "#define HAVE__GMTIME64_S 1" >>confdefs.h
15501
15502else $as_nop
15503  ac_fn_c_check_func "$LINENO" "_gmtime64" "ac_cv_func__gmtime64"
15504if test "x$ac_cv_func__gmtime64" = xyes
15505then :
15506  printf "%s\n" "#define HAVE__GMTIME64 1" >>confdefs.h
15507
15508fi
15509
15510fi
15511
15512done
15513
15514fi
15515
15516 if test x"$ac_cv_func_strlcpy" = xno; then
15517  STRLCPY_IMPL_TRUE=
15518  STRLCPY_IMPL_FALSE='#'
15519else
15520  STRLCPY_IMPL_TRUE='#'
15521  STRLCPY_IMPL_FALSE=
15522fi
15523
15524
15525
15526
15527if test x$bwin32 = xtrue
15528then :
15529  	if test "x#ifdef _WIN32
15530    #include <winsock2.h>
15531    #include <ws2tcpip.h>
15532    #endif" = "x"
15533then :
15534  as_fn_error $? "header not privided" "$LINENO" 5
15535fi
15536				if test "x#ifdef _WIN32
15537    #include <winsock2.h>
15538    #include <ws2tcpip.h>
15539    #endif" = "x"
15540then :
15541  as_fn_error $? "header not privided" "$LINENO" 5
15542fi
15543
15544	ac_fn_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_decl" "		#ifdef _WIN32
15545    #include <winsock2.h>
15546    #include <ws2tcpip.h>
15547    #endif
15548" "$ac_c_undeclared_builtin_options" "CFLAGS"
15549if test "x$ac_cv_have_decl_decl" = xyes
15550then :
15551
15552printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h
15553
15554fi
15555					if test "x#ifdef _WIN32
15556    #include <winsock2.h>
15557    #include <ws2tcpip.h>
15558    #endif" = "x"
15559then :
15560  as_fn_error $? "header not privided" "$LINENO" 5
15561fi
15562
15563	ac_fn_check_decl "$LINENO" "getprotobynumber" "ac_cv_have_decl_decl" "		#ifdef _WIN32
15564    #include <winsock2.h>
15565    #include <ws2tcpip.h>
15566    #endif
15567" "$ac_c_undeclared_builtin_options" "CFLAGS"
15568if test "x$ac_cv_have_decl_decl" = xyes
15569then :
15570
15571printf "%s\n" "#define HAVE_GETPROTOBYNUMBER 1" >>confdefs.h
15572
15573fi
15574					if test "x#ifdef _WIN32
15575    #include <winsock2.h>
15576    #include <ws2tcpip.h>
15577    #endif" = "x"
15578then :
15579  as_fn_error $? "header not privided" "$LINENO" 5
15580fi
15581
15582	ac_fn_check_decl "$LINENO" "getservbyname" "ac_cv_have_decl_decl" "		#ifdef _WIN32
15583    #include <winsock2.h>
15584    #include <ws2tcpip.h>
15585    #endif
15586" "$ac_c_undeclared_builtin_options" "CFLAGS"
15587if test "x$ac_cv_have_decl_decl" = xyes
15588then :
15589
15590printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h
15591
15592fi
15593					if test "x#ifdef _WIN32
15594    #include <winsock2.h>
15595    #include <ws2tcpip.h>
15596    #endif" = "x"
15597then :
15598  as_fn_error $? "header not privided" "$LINENO" 5
15599fi
15600
15601	ac_fn_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_decl" "		#ifdef _WIN32
15602    #include <winsock2.h>
15603    #include <ws2tcpip.h>
15604    #endif
15605" "$ac_c_undeclared_builtin_options" "CFLAGS"
15606if test "x$ac_cv_have_decl_decl" = xyes
15607then :
15608
15609printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
15610
15611fi
15612					if test "x#ifdef _WIN32
15613    #include <winsock2.h>
15614    #include <ws2tcpip.h>
15615    #endif" = "x"
15616then :
15617  as_fn_error $? "header not privided" "$LINENO" 5
15618fi
15619
15620	ac_fn_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_decl" "		#ifdef _WIN32
15621    #include <winsock2.h>
15622    #include <ws2tcpip.h>
15623    #endif
15624" "$ac_c_undeclared_builtin_options" "CFLAGS"
15625if test "x$ac_cv_have_decl_decl" = xyes
15626then :
15627
15628printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
15629
15630fi
15631					if test "x#ifdef _WIN32
15632    #include <winsock2.h>
15633    #include <ws2tcpip.h>
15634    #endif" = "x"
15635then :
15636  as_fn_error $? "header not privided" "$LINENO" 5
15637fi
15638
15639	ac_fn_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_decl" "		#ifdef _WIN32
15640    #include <winsock2.h>
15641    #include <ws2tcpip.h>
15642    #endif
15643" "$ac_c_undeclared_builtin_options" "CFLAGS"
15644if test "x$ac_cv_have_decl_decl" = xyes
15645then :
15646
15647printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
15648
15649fi
15650
15651
15652else $as_nop
15653  ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
15654if test "x$ac_cv_func_getnameinfo" = xyes
15655then :
15656  printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h
15657
15658fi
15659ac_fn_c_check_func "$LINENO" "getprotobynumber" "ac_cv_func_getprotobynumber"
15660if test "x$ac_cv_func_getprotobynumber" = xyes
15661then :
15662  printf "%s\n" "#define HAVE_GETPROTOBYNUMBER 1" >>confdefs.h
15663
15664fi
15665ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
15666if test "x$ac_cv_func_getservbyname" = xyes
15667then :
15668  printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h
15669
15670fi
15671ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
15672if test "x$ac_cv_func_inet_ntop" = xyes
15673then :
15674  printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
15675
15676fi
15677ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
15678if test "x$ac_cv_func_inet_pton" = xyes
15679then :
15680  printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
15681
15682fi
15683
15684
15685fi
15686
15687
15688
15689if test x$bwin32 = xfalse
15690then :
15691
15692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
15693printf %s "checking for getaddrinfo... " >&6; }
15694if test ${libevent_cv_getaddrinfo+y}
15695then :
15696  printf %s "(cached) " >&6
15697else $as_nop
15698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15699/* end confdefs.h.  */
15700
15701		#ifdef HAVE_NETDB_H
15702		#include <netdb.h>
15703		#endif
15704
15705int
15706main (void)
15707{
15708
15709		getaddrinfo;
15710
15711
15712  ;
15713  return 0;
15714}
15715_ACEOF
15716if ac_fn_c_try_link "$LINENO"
15717then :
15718  libevent_cv_getaddrinfo=yes
15719else $as_nop
15720  libevent_cv_getaddrinfo=no
15721
15722fi
15723rm -f core conftest.err conftest.$ac_objext conftest.beam \
15724    conftest$ac_exeext conftest.$ac_ext
15725
15726fi
15727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
15728printf "%s\n" "$libevent_cv_getaddrinfo" >&6; }
15729if test "$libevent_cv_getaddrinfo" = "yes" ; then
15730
15731printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
15732
15733else
15734
15735# Check for gethostbyname_r in all its glorious incompatible versions.
15736#   (This is cut-and-pasted from Tor, which based its logic on
15737#   Python's configure.in.)
15738
15739
15740ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
15741if test "x$ac_cv_func_gethostbyname_r" = xyes
15742then :
15743
15744  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
15745printf %s "checking how many arguments gethostbyname_r() wants... " >&6; }
15746  OLD_CFLAGS=$CFLAGS
15747  CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
15748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15749/* end confdefs.h.  */
15750
15751#include <netdb.h>
15752
15753int
15754main (void)
15755{
15756
15757    char *cp1, *cp2;
15758    struct hostent *h1, *h2;
15759    int i1, i2;
15760    (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
15761
15762  ;
15763  return 0;
15764}
15765_ACEOF
15766if ac_fn_c_try_compile "$LINENO"
15767then :
15768
15769    printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
15770
15771
15772printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
15773
15774    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 6" >&5
15775printf "%s\n" "6" >&6; }
15776
15777else $as_nop
15778
15779    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15780/* end confdefs.h.  */
15781
15782#include <netdb.h>
15783
15784int
15785main (void)
15786{
15787
15788      char *cp1, *cp2;
15789      struct hostent *h1;
15790      int i1, i2;
15791      (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
15792
15793  ;
15794  return 0;
15795}
15796_ACEOF
15797if ac_fn_c_try_compile "$LINENO"
15798then :
15799
15800      printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
15801
15802
15803printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
15804
15805      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 5" >&5
15806printf "%s\n" "5" >&6; }
15807
15808else $as_nop
15809
15810      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15811/* end confdefs.h.  */
15812
15813#include <netdb.h>
15814
15815int
15816main (void)
15817{
15818
15819       char *cp1;
15820       struct hostent *h1;
15821       struct hostent_data hd;
15822       (void) gethostbyname_r(cp1,h1,&hd);
15823
15824  ;
15825  return 0;
15826}
15827_ACEOF
15828if ac_fn_c_try_compile "$LINENO"
15829then :
15830
15831       printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
15832
15833
15834printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
15835
15836       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 3" >&5
15837printf "%s\n" "3" >&6; }
15838
15839else $as_nop
15840
15841       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 0" >&5
15842printf "%s\n" "0" >&6; }
15843
15844fi
15845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15846
15847fi
15848rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15849
15850fi
15851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15852 CFLAGS=$OLD_CFLAGS
15853
15854fi
15855
15856
15857fi
15858
15859fi
15860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
15861printf %s "checking for F_SETFD in fcntl.h... " >&6; }
15862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15863/* end confdefs.h.  */
15864
15865#define _GNU_SOURCE 1
15866#include <fcntl.h>
15867#ifdef F_SETFD
15868yes
15869#endif
15870
15871_ACEOF
15872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15873  $EGREP "yes" >/dev/null 2>&1
15874then :
15875
15876printf "%s\n" "#define HAVE_SETFD 1" >>confdefs.h
15877
15878	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15879printf "%s\n" "yes" >&6; }
15880else $as_nop
15881  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15882printf "%s\n" "no" >&6; }
15883fi
15884rm -rf conftest*
15885
15886
15887needsignal=no
15888haveselect=no
15889if test x$bwin32 != xtrue; then
15890
15891  for ac_func in select
15892do :
15893  ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
15894if test "x$ac_cv_func_select" = xyes
15895then :
15896  printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
15897 haveselect=yes
15898fi
15899
15900done
15901    if test "x$haveselect" = "xyes" ; then
15902 	needsignal=yes
15903    fi
15904fi
15905 if test "x$haveselect" = "xyes"; then
15906  SELECT_BACKEND_TRUE=
15907  SELECT_BACKEND_FALSE='#'
15908else
15909  SELECT_BACKEND_TRUE='#'
15910  SELECT_BACKEND_FALSE=
15911fi
15912
15913
15914havepoll=no
15915
15916  for ac_func in poll
15917do :
15918  ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
15919if test "x$ac_cv_func_poll" = xyes
15920then :
15921  printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
15922 havepoll=yes
15923fi
15924
15925done
15926if test "x$havepoll" = "xyes" ; then
15927	needsignal=yes
15928fi
15929 if test "x$havepoll" = "xyes"; then
15930  POLL_BACKEND_TRUE=
15931  POLL_BACKEND_FALSE='#'
15932else
15933  POLL_BACKEND_TRUE='#'
15934  POLL_BACKEND_FALSE=
15935fi
15936
15937
15938havedevpoll=no
15939if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
15940
15941printf "%s\n" "#define HAVE_DEVPOLL 1" >>confdefs.h
15942
15943fi
15944 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
15945  DEVPOLL_BACKEND_TRUE=
15946  DEVPOLL_BACKEND_FALSE='#'
15947else
15948  DEVPOLL_BACKEND_TRUE='#'
15949  DEVPOLL_BACKEND_FALSE=
15950fi
15951
15952
15953havekqueue=no
15954if test "x$ac_cv_header_sys_event_h" = "xyes"; then
15955
15956  for ac_func in kqueue
15957do :
15958  ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
15959if test "x$ac_cv_func_kqueue" = xyes
15960then :
15961  printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h
15962 havekqueue=yes
15963fi
15964
15965done
15966	if test "x$havekqueue" = "xyes" ; then
15967		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
15968printf %s "checking for working kqueue... " >&6; }
15969		if test "$cross_compiling" = yes
15970then :
15971  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15972printf "%s\n" "no" >&6; }
15973
15974else $as_nop
15975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976/* end confdefs.h.  */
15977
15978#ifdef HAVE_STDLIB_H
15979#include <stdlib.h>
15980#endif
15981#ifdef HAVE_STRING_H
15982#include <string.h>
15983#endif
15984#include <sys/types.h>
15985#include <sys/time.h>
15986#include <sys/event.h>
15987#include <stdio.h>
15988#include <unistd.h>
15989#include <fcntl.h>
15990
15991int
15992main (void)
15993{
15994
15995	int kq;
15996	int n;
15997	int fd[2];
15998	struct kevent ev;
15999	struct timespec ts;
16000	char buf[80000];
16001
16002	if (pipe(fd) == -1)
16003  		return 1;
16004	if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
16005		return 1;
16006
16007	while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
16008		;
16009
16010	if ((kq = kqueue()) == -1)
16011		return 1;
16012
16013	memset(&ev, 0, sizeof(ev));
16014	ev.ident = fd[1];
16015	ev.filter = EVFILT_WRITE;
16016	ev.flags = EV_ADD | EV_ENABLE;
16017	n = kevent(kq, &ev, 1, NULL, 0, NULL);
16018	if (n == -1)
16019		return 1;
16020
16021	read(fd[0], buf, sizeof(buf));
16022
16023	ts.tv_sec = 0;
16024	ts.tv_nsec = 0;
16025	n = kevent(kq, NULL, 0, &ev, 1, &ts);
16026	if (n == -1 || n == 0)
16027		return 1;
16028
16029	return 0;
16030
16031
16032  ;
16033  return 0;
16034}
16035_ACEOF
16036if ac_fn_c_try_run "$LINENO"
16037then :
16038  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16039printf "%s\n" "yes" >&6; }
16040
16041printf "%s\n" "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
16042
16043      havekqueue=yes
16044
16045else $as_nop
16046  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16047printf "%s\n" "no" >&6; }
16048fi
16049rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16050  conftest.$ac_objext conftest.beam conftest.$ac_ext
16051fi
16052
16053	fi
16054fi
16055 if test "x$havekqueue" = "xyes"; then
16056  KQUEUE_BACKEND_TRUE=
16057  KQUEUE_BACKEND_FALSE='#'
16058else
16059  KQUEUE_BACKEND_TRUE='#'
16060  KQUEUE_BACKEND_FALSE=
16061fi
16062
16063
16064haveepollsyscall=no
16065haveepoll=no
16066
16067  for ac_func in epoll_ctl
16068do :
16069  ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
16070if test "x$ac_cv_func_epoll_ctl" = xyes
16071then :
16072  printf "%s\n" "#define HAVE_EPOLL_CTL 1" >>confdefs.h
16073 haveepoll=yes
16074fi
16075
16076done
16077if test "x$haveepoll" = "xyes" ; then
16078
16079printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h
16080
16081	needsignal=yes
16082fi
16083if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
16084	if test "x$haveepoll" = "xno" ; then
16085		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
16086printf %s "checking for epoll system call... " >&6; }
16087		if test "$cross_compiling" = yes
16088then :
16089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16090printf "%s\n" "no" >&6; }
16091
16092else $as_nop
16093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16094/* end confdefs.h.  */
16095
16096#include <stdint.h>
16097#include <sys/param.h>
16098#include <sys/types.h>
16099#include <sys/syscall.h>
16100#include <sys/epoll.h>
16101#include <unistd.h>
16102
16103int
16104epoll_create(int size)
16105{
16106	return (syscall(__NR_epoll_create, size));
16107}
16108
16109int
16110main (void)
16111{
16112
16113	int epfd;
16114
16115	epfd = epoll_create(256);
16116	return (epfd == -1 ? 1 : 0);
16117
16118
16119  ;
16120  return 0;
16121}
16122_ACEOF
16123if ac_fn_c_try_run "$LINENO"
16124then :
16125  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16126printf "%s\n" "yes" >&6; }
16127
16128printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h
16129
16130      needsignal=yes
16131      have_epoll=yes
16132      case " $LIBOBJS " in
16133  *" epoll_sub.$ac_objext "* ) ;;
16134  *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
16135 ;;
16136esac
16137
16138
16139else $as_nop
16140  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16141printf "%s\n" "no" >&6; }
16142fi
16143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16144  conftest.$ac_objext conftest.beam conftest.$ac_ext
16145fi
16146
16147	fi
16148fi
16149 if test "x$haveepoll" = "xyes"; then
16150  EPOLL_BACKEND_TRUE=
16151  EPOLL_BACKEND_FALSE='#'
16152else
16153  EPOLL_BACKEND_TRUE='#'
16154  EPOLL_BACKEND_FALSE=
16155fi
16156
16157
16158haveeventports=no
16159
16160  for ac_func in port_create
16161do :
16162  ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
16163if test "x$ac_cv_func_port_create" = xyes
16164then :
16165  printf "%s\n" "#define HAVE_PORT_CREATE 1" >>confdefs.h
16166 haveeventports=yes
16167fi
16168
16169done
16170if test "x$haveeventports" = "xyes" ; then
16171
16172printf "%s\n" "#define HAVE_EVENT_PORTS 1" >>confdefs.h
16173
16174	needsignal=yes
16175fi
16176 if test "x$haveeventports" = "xyes"; then
16177  EVPORT_BACKEND_TRUE=
16178  EVPORT_BACKEND_FALSE='#'
16179else
16180  EVPORT_BACKEND_TRUE='#'
16181  EVPORT_BACKEND_FALSE=
16182fi
16183
16184
16185if test "x$bwin32" = "xtrue"; then
16186	needsignal=yes
16187fi
16188
16189 if test "x$needsignal" = "xyes"; then
16190  SIGNAL_SUPPORT_TRUE=
16191  SIGNAL_SUPPORT_FALSE='#'
16192else
16193  SIGNAL_SUPPORT_TRUE='#'
16194  SIGNAL_SUPPORT_FALSE=
16195fi
16196
16197
16198
16199  ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
16200"
16201if test "x$ac_cv_type_pid_t" = xyes
16202then :
16203
16204else $as_nop
16205                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16206/* end confdefs.h.  */
16207
16208          #if defined _WIN64 && !defined __CYGWIN__
16209          LLP64
16210          #endif
16211
16212int
16213main (void)
16214{
16215
16216  ;
16217  return 0;
16218}
16219
16220_ACEOF
16221if ac_fn_c_try_compile "$LINENO"
16222then :
16223  ac_pid_type='int'
16224else $as_nop
16225  ac_pid_type='__int64'
16226fi
16227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16228
16229printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
16230
16231
16232fi
16233
16234
16235ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16236if test "x$ac_cv_type_size_t" = xyes
16237then :
16238
16239else $as_nop
16240
16241printf "%s\n" "#define size_t unsigned int" >>confdefs.h
16242
16243fi
16244
16245ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
16246if test "x$ac_cv_type_ssize_t" = xyes
16247then :
16248
16249else $as_nop
16250
16251printf "%s\n" "#define ssize_t int" >>confdefs.h
16252
16253fi
16254
16255
16256ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
16257#include <stdint.h>
16258#elif defined(HAVE_INTTYPES_H)
16259#include <inttypes.h>
16260#endif
16261#ifdef HAVE_SYS_TYPES_H
16262#include <sys/types.h>
16263#endif
16264"
16265if test "x$ac_cv_type_uint64_t" = xyes
16266then :
16267
16268printf "%s\n" "#define HAVE_UINT64_T 1" >>confdefs.h
16269
16270
16271fi
16272ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
16273#include <stdint.h>
16274#elif defined(HAVE_INTTYPES_H)
16275#include <inttypes.h>
16276#endif
16277#ifdef HAVE_SYS_TYPES_H
16278#include <sys/types.h>
16279#endif
16280"
16281if test "x$ac_cv_type_uint32_t" = xyes
16282then :
16283
16284printf "%s\n" "#define HAVE_UINT32_T 1" >>confdefs.h
16285
16286
16287fi
16288ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
16289#include <stdint.h>
16290#elif defined(HAVE_INTTYPES_H)
16291#include <inttypes.h>
16292#endif
16293#ifdef HAVE_SYS_TYPES_H
16294#include <sys/types.h>
16295#endif
16296"
16297if test "x$ac_cv_type_uint16_t" = xyes
16298then :
16299
16300printf "%s\n" "#define HAVE_UINT16_T 1" >>confdefs.h
16301
16302
16303fi
16304ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
16305#include <stdint.h>
16306#elif defined(HAVE_INTTYPES_H)
16307#include <inttypes.h>
16308#endif
16309#ifdef HAVE_SYS_TYPES_H
16310#include <sys/types.h>
16311#endif
16312"
16313if test "x$ac_cv_type_uint8_t" = xyes
16314then :
16315
16316printf "%s\n" "#define HAVE_UINT8_T 1" >>confdefs.h
16317
16318
16319fi
16320ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
16321#include <stdint.h>
16322#elif defined(HAVE_INTTYPES_H)
16323#include <inttypes.h>
16324#endif
16325#ifdef HAVE_SYS_TYPES_H
16326#include <sys/types.h>
16327#endif
16328"
16329if test "x$ac_cv_type_uintptr_t" = xyes
16330then :
16331
16332printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
16333
16334
16335fi
16336
16337
16338ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
16339#include <sys/types.h>
16340#endif
16341#ifdef HAVE_SYS_SELECT_H
16342#include <sys/select.h>
16343#endif
16344"
16345if test "x$ac_cv_type_fd_mask" = xyes
16346then :
16347
16348printf "%s\n" "#define HAVE_FD_MASK 1" >>confdefs.h
16349
16350
16351fi
16352
16353
16354# The cast to long int works around a bug in the HP C Compiler
16355# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16356# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16357# This bug is HP SR number 8606223364.
16358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
16359printf %s "checking size of long long... " >&6; }
16360if test ${ac_cv_sizeof_long_long+y}
16361then :
16362  printf %s "(cached) " >&6
16363else $as_nop
16364  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"
16365then :
16366
16367else $as_nop
16368  if test "$ac_cv_type_long_long" = yes; then
16369     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16370printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16371as_fn_error 77 "cannot compute sizeof (long long)
16372See \`config.log' for more details" "$LINENO" 5; }
16373   else
16374     ac_cv_sizeof_long_long=0
16375   fi
16376fi
16377
16378fi
16379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
16380printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
16381
16382
16383
16384printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
16385
16386
16387# The cast to long int works around a bug in the HP C Compiler
16388# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16389# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16390# This bug is HP SR number 8606223364.
16391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16392printf %s "checking size of long... " >&6; }
16393if test ${ac_cv_sizeof_long+y}
16394then :
16395  printf %s "(cached) " >&6
16396else $as_nop
16397  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"
16398then :
16399
16400else $as_nop
16401  if test "$ac_cv_type_long" = yes; then
16402     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16403printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16404as_fn_error 77 "cannot compute sizeof (long)
16405See \`config.log' for more details" "$LINENO" 5; }
16406   else
16407     ac_cv_sizeof_long=0
16408   fi
16409fi
16410
16411fi
16412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16413printf "%s\n" "$ac_cv_sizeof_long" >&6; }
16414
16415
16416
16417printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
16418
16419
16420# The cast to long int works around a bug in the HP C Compiler
16421# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16422# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16423# This bug is HP SR number 8606223364.
16424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16425printf %s "checking size of int... " >&6; }
16426if test ${ac_cv_sizeof_int+y}
16427then :
16428  printf %s "(cached) " >&6
16429else $as_nop
16430  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"
16431then :
16432
16433else $as_nop
16434  if test "$ac_cv_type_int" = yes; then
16435     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16436printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16437as_fn_error 77 "cannot compute sizeof (int)
16438See \`config.log' for more details" "$LINENO" 5; }
16439   else
16440     ac_cv_sizeof_int=0
16441   fi
16442fi
16443
16444fi
16445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16446printf "%s\n" "$ac_cv_sizeof_int" >&6; }
16447
16448
16449
16450printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
16451
16452
16453# The cast to long int works around a bug in the HP C Compiler
16454# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16455# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16456# This bug is HP SR number 8606223364.
16457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16458printf %s "checking size of short... " >&6; }
16459if test ${ac_cv_sizeof_short+y}
16460then :
16461  printf %s "(cached) " >&6
16462else $as_nop
16463  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"
16464then :
16465
16466else $as_nop
16467  if test "$ac_cv_type_short" = yes; then
16468     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16469printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16470as_fn_error 77 "cannot compute sizeof (short)
16471See \`config.log' for more details" "$LINENO" 5; }
16472   else
16473     ac_cv_sizeof_short=0
16474   fi
16475fi
16476
16477fi
16478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16479printf "%s\n" "$ac_cv_sizeof_short" >&6; }
16480
16481
16482
16483printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
16484
16485
16486# The cast to long int works around a bug in the HP C Compiler
16487# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16488# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16489# This bug is HP SR number 8606223364.
16490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
16491printf %s "checking size of size_t... " >&6; }
16492if test ${ac_cv_sizeof_size_t+y}
16493then :
16494  printf %s "(cached) " >&6
16495else $as_nop
16496  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"
16497then :
16498
16499else $as_nop
16500  if test "$ac_cv_type_size_t" = yes; then
16501     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16502printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16503as_fn_error 77 "cannot compute sizeof (size_t)
16504See \`config.log' for more details" "$LINENO" 5; }
16505   else
16506     ac_cv_sizeof_size_t=0
16507   fi
16508fi
16509
16510fi
16511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
16512printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
16513
16514
16515
16516printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
16517
16518
16519# The cast to long int works around a bug in the HP C Compiler
16520# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16521# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16522# This bug is HP SR number 8606223364.
16523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16524printf %s "checking size of void *... " >&6; }
16525if test ${ac_cv_sizeof_void_p+y}
16526then :
16527  printf %s "(cached) " >&6
16528else $as_nop
16529  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"
16530then :
16531
16532else $as_nop
16533  if test "$ac_cv_type_void_p" = yes; then
16534     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16535printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16536as_fn_error 77 "cannot compute sizeof (void *)
16537See \`config.log' for more details" "$LINENO" 5; }
16538   else
16539     ac_cv_sizeof_void_p=0
16540   fi
16541fi
16542
16543fi
16544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16545printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
16546
16547
16548
16549printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
16550
16551
16552# The cast to long int works around a bug in the HP C Compiler
16553# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16554# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16555# This bug is HP SR number 8606223364.
16556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
16557printf %s "checking size of off_t... " >&6; }
16558if test ${ac_cv_sizeof_off_t+y}
16559then :
16560  printf %s "(cached) " >&6
16561else $as_nop
16562  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"
16563then :
16564
16565else $as_nop
16566  if test "$ac_cv_type_off_t" = yes; then
16567     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16568printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16569as_fn_error 77 "cannot compute sizeof (off_t)
16570See \`config.log' for more details" "$LINENO" 5; }
16571   else
16572     ac_cv_sizeof_off_t=0
16573   fi
16574fi
16575
16576fi
16577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
16578printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
16579
16580
16581
16582printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
16583
16584
16585# The cast to long int works around a bug in the HP C Compiler
16586# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16587# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16588# This bug is HP SR number 8606223364.
16589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
16590printf %s "checking size of time_t... " >&6; }
16591if test ${ac_cv_sizeof_time_t+y}
16592then :
16593  printf %s "(cached) " >&6
16594else $as_nop
16595  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"
16596then :
16597
16598else $as_nop
16599  if test "$ac_cv_type_time_t" = yes; then
16600     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16601printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16602as_fn_error 77 "cannot compute sizeof (time_t)
16603See \`config.log' for more details" "$LINENO" 5; }
16604   else
16605     ac_cv_sizeof_time_t=0
16606   fi
16607fi
16608
16609fi
16610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
16611printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
16612
16613
16614
16615printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
16616
16617
16618
16619ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE 1
16620#include <sys/types.h>
16621#ifdef HAVE_NETINET_IN_H
16622#include <netinet/in.h>
16623#endif
16624#ifdef HAVE_NETINET_IN6_H
16625#include <netinet/in6.h>
16626#endif
16627#ifdef HAVE_SYS_UN_H
16628#include <sys/un.h>
16629#endif
16630#ifdef HAVE_SYS_SOCKET_H
16631#include <sys/socket.h>
16632#endif
16633#ifdef HAVE_NETDB_H
16634#include <netdb.h>
16635#endif
16636#ifdef _WIN32
16637#define WIN32_WINNT 0x400
16638#define _WIN32_WINNT 0x400
16639#define WIN32_LEAN_AND_MEAN
16640#if defined(_MSC_VER) && (_MSC_VER < 1300)
16641#include <winsock.h>
16642#else
16643#include <winsock2.h>
16644#include <ws2tcpip.h>
16645#endif
16646#endif
16647
16648"
16649if test "x$ac_cv_type_struct_in6_addr" = xyes
16650then :
16651
16652printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
16653
16654
16655fi
16656ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE 1
16657#include <sys/types.h>
16658#ifdef HAVE_NETINET_IN_H
16659#include <netinet/in.h>
16660#endif
16661#ifdef HAVE_NETINET_IN6_H
16662#include <netinet/in6.h>
16663#endif
16664#ifdef HAVE_SYS_UN_H
16665#include <sys/un.h>
16666#endif
16667#ifdef HAVE_SYS_SOCKET_H
16668#include <sys/socket.h>
16669#endif
16670#ifdef HAVE_NETDB_H
16671#include <netdb.h>
16672#endif
16673#ifdef _WIN32
16674#define WIN32_WINNT 0x400
16675#define _WIN32_WINNT 0x400
16676#define WIN32_LEAN_AND_MEAN
16677#if defined(_MSC_VER) && (_MSC_VER < 1300)
16678#include <winsock.h>
16679#else
16680#include <winsock2.h>
16681#include <ws2tcpip.h>
16682#endif
16683#endif
16684
16685"
16686if test "x$ac_cv_type_struct_sockaddr_in6" = xyes
16687then :
16688
16689printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
16690
16691
16692fi
16693ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#define _GNU_SOURCE 1
16694#include <sys/types.h>
16695#ifdef HAVE_NETINET_IN_H
16696#include <netinet/in.h>
16697#endif
16698#ifdef HAVE_NETINET_IN6_H
16699#include <netinet/in6.h>
16700#endif
16701#ifdef HAVE_SYS_UN_H
16702#include <sys/un.h>
16703#endif
16704#ifdef HAVE_SYS_SOCKET_H
16705#include <sys/socket.h>
16706#endif
16707#ifdef HAVE_NETDB_H
16708#include <netdb.h>
16709#endif
16710#ifdef _WIN32
16711#define WIN32_WINNT 0x400
16712#define _WIN32_WINNT 0x400
16713#define WIN32_LEAN_AND_MEAN
16714#if defined(_MSC_VER) && (_MSC_VER < 1300)
16715#include <winsock.h>
16716#else
16717#include <winsock2.h>
16718#include <ws2tcpip.h>
16719#endif
16720#endif
16721
16722"
16723if test "x$ac_cv_type_struct_sockaddr_un" = xyes
16724then :
16725
16726printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_UN 1" >>confdefs.h
16727
16728
16729fi
16730ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE 1
16731#include <sys/types.h>
16732#ifdef HAVE_NETINET_IN_H
16733#include <netinet/in.h>
16734#endif
16735#ifdef HAVE_NETINET_IN6_H
16736#include <netinet/in6.h>
16737#endif
16738#ifdef HAVE_SYS_UN_H
16739#include <sys/un.h>
16740#endif
16741#ifdef HAVE_SYS_SOCKET_H
16742#include <sys/socket.h>
16743#endif
16744#ifdef HAVE_NETDB_H
16745#include <netdb.h>
16746#endif
16747#ifdef _WIN32
16748#define WIN32_WINNT 0x400
16749#define _WIN32_WINNT 0x400
16750#define WIN32_LEAN_AND_MEAN
16751#if defined(_MSC_VER) && (_MSC_VER < 1300)
16752#include <winsock.h>
16753#else
16754#include <winsock2.h>
16755#include <ws2tcpip.h>
16756#endif
16757#endif
16758
16759"
16760if test "x$ac_cv_type_sa_family_t" = xyes
16761then :
16762
16763printf "%s\n" "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
16764
16765
16766fi
16767ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE 1
16768#include <sys/types.h>
16769#ifdef HAVE_NETINET_IN_H
16770#include <netinet/in.h>
16771#endif
16772#ifdef HAVE_NETINET_IN6_H
16773#include <netinet/in6.h>
16774#endif
16775#ifdef HAVE_SYS_UN_H
16776#include <sys/un.h>
16777#endif
16778#ifdef HAVE_SYS_SOCKET_H
16779#include <sys/socket.h>
16780#endif
16781#ifdef HAVE_NETDB_H
16782#include <netdb.h>
16783#endif
16784#ifdef _WIN32
16785#define WIN32_WINNT 0x400
16786#define _WIN32_WINNT 0x400
16787#define WIN32_LEAN_AND_MEAN
16788#if defined(_MSC_VER) && (_MSC_VER < 1300)
16789#include <winsock.h>
16790#else
16791#include <winsock2.h>
16792#include <ws2tcpip.h>
16793#endif
16794#endif
16795
16796"
16797if test "x$ac_cv_type_struct_addrinfo" = xyes
16798then :
16799
16800printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
16801
16802
16803fi
16804ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE 1
16805#include <sys/types.h>
16806#ifdef HAVE_NETINET_IN_H
16807#include <netinet/in.h>
16808#endif
16809#ifdef HAVE_NETINET_IN6_H
16810#include <netinet/in6.h>
16811#endif
16812#ifdef HAVE_SYS_UN_H
16813#include <sys/un.h>
16814#endif
16815#ifdef HAVE_SYS_SOCKET_H
16816#include <sys/socket.h>
16817#endif
16818#ifdef HAVE_NETDB_H
16819#include <netdb.h>
16820#endif
16821#ifdef _WIN32
16822#define WIN32_WINNT 0x400
16823#define _WIN32_WINNT 0x400
16824#define WIN32_LEAN_AND_MEAN
16825#if defined(_MSC_VER) && (_MSC_VER < 1300)
16826#include <winsock.h>
16827#else
16828#include <winsock2.h>
16829#include <ws2tcpip.h>
16830#endif
16831#endif
16832
16833"
16834if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
16835then :
16836
16837printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
16838
16839
16840fi
16841
16842ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
16843#ifdef HAVE_NETINET_IN_H
16844#include <netinet/in.h>
16845#endif
16846#ifdef HAVE_NETINET_IN6_H
16847#include <netinet/in6.h>
16848#endif
16849#ifdef HAVE_SYS_SOCKET_H
16850#include <sys/socket.h>
16851#endif
16852#ifdef _WIN32
16853#define WIN32_WINNT 0x400
16854#define _WIN32_WINNT 0x400
16855#define WIN32_LEAN_AND_MEAN
16856#if defined(_MSC_VER) && (_MSC_VER < 1300)
16857#include <winsock.h>
16858#else
16859#include <winsock2.h>
16860#include <ws2tcpip.h>
16861#endif
16862#endif
16863
16864"
16865if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes
16866then :
16867
16868printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1" >>confdefs.h
16869
16870
16871fi
16872ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
16873#ifdef HAVE_NETINET_IN_H
16874#include <netinet/in.h>
16875#endif
16876#ifdef HAVE_NETINET_IN6_H
16877#include <netinet/in6.h>
16878#endif
16879#ifdef HAVE_SYS_SOCKET_H
16880#include <sys/socket.h>
16881#endif
16882#ifdef _WIN32
16883#define WIN32_WINNT 0x400
16884#define _WIN32_WINNT 0x400
16885#define WIN32_LEAN_AND_MEAN
16886#if defined(_MSC_VER) && (_MSC_VER < 1300)
16887#include <winsock.h>
16888#else
16889#include <winsock2.h>
16890#include <ws2tcpip.h>
16891#endif
16892#endif
16893
16894"
16895if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes
16896then :
16897
16898printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1" >>confdefs.h
16899
16900
16901fi
16902ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
16903#ifdef HAVE_NETINET_IN_H
16904#include <netinet/in.h>
16905#endif
16906#ifdef HAVE_NETINET_IN6_H
16907#include <netinet/in6.h>
16908#endif
16909#ifdef HAVE_SYS_SOCKET_H
16910#include <sys/socket.h>
16911#endif
16912#ifdef _WIN32
16913#define WIN32_WINNT 0x400
16914#define _WIN32_WINNT 0x400
16915#define WIN32_LEAN_AND_MEAN
16916#if defined(_MSC_VER) && (_MSC_VER < 1300)
16917#include <winsock.h>
16918#else
16919#include <winsock2.h>
16920#include <ws2tcpip.h>
16921#endif
16922#endif
16923
16924"
16925if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
16926then :
16927
16928printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
16929
16930
16931fi
16932ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
16933#ifdef HAVE_NETINET_IN_H
16934#include <netinet/in.h>
16935#endif
16936#ifdef HAVE_NETINET_IN6_H
16937#include <netinet/in6.h>
16938#endif
16939#ifdef HAVE_SYS_SOCKET_H
16940#include <sys/socket.h>
16941#endif
16942#ifdef _WIN32
16943#define WIN32_WINNT 0x400
16944#define _WIN32_WINNT 0x400
16945#define WIN32_LEAN_AND_MEAN
16946#if defined(_MSC_VER) && (_MSC_VER < 1300)
16947#include <winsock.h>
16948#else
16949#include <winsock2.h>
16950#include <ws2tcpip.h>
16951#endif
16952#endif
16953
16954"
16955if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes
16956then :
16957
16958printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1" >>confdefs.h
16959
16960
16961fi
16962ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
16963#ifdef HAVE_NETINET_IN_H
16964#include <netinet/in.h>
16965#endif
16966#ifdef HAVE_NETINET_IN6_H
16967#include <netinet/in6.h>
16968#endif
16969#ifdef HAVE_SYS_SOCKET_H
16970#include <sys/socket.h>
16971#endif
16972#ifdef _WIN32
16973#define WIN32_WINNT 0x400
16974#define _WIN32_WINNT 0x400
16975#define WIN32_LEAN_AND_MEAN
16976#if defined(_MSC_VER) && (_MSC_VER < 1300)
16977#include <winsock.h>
16978#else
16979#include <winsock2.h>
16980#include <ws2tcpip.h>
16981#endif
16982#endif
16983
16984"
16985if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
16986then :
16987
16988printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1" >>confdefs.h
16989
16990
16991fi
16992ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
16993#ifdef HAVE_NETINET_IN_H
16994#include <netinet/in.h>
16995#endif
16996#ifdef HAVE_NETINET_IN6_H
16997#include <netinet/in6.h>
16998#endif
16999#ifdef HAVE_SYS_SOCKET_H
17000#include <sys/socket.h>
17001#endif
17002#ifdef _WIN32
17003#define WIN32_WINNT 0x400
17004#define _WIN32_WINNT 0x400
17005#define WIN32_LEAN_AND_MEAN
17006#if defined(_MSC_VER) && (_MSC_VER < 1300)
17007#include <winsock.h>
17008#else
17009#include <winsock2.h>
17010#include <ws2tcpip.h>
17011#endif
17012#endif
17013
17014"
17015if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes
17016then :
17017
17018printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1" >>confdefs.h
17019
17020
17021fi
17022
17023
17024ac_fn_c_check_type "$LINENO" "struct linger" "ac_cv_type_struct_linger" "
17025#ifdef HAVE_SYS_SOCKET_H
17026#include <sys/socket.h>
17027#endif
17028#ifdef _WIN32
17029#include <winsock2.h>
17030#endif
17031
17032"
17033if test "x$ac_cv_type_struct_linger" = xyes
17034then :
17035
17036printf "%s\n" "#define HAVE_STRUCT_LINGER 1" >>confdefs.h
17037
17038
17039fi
17040
17041
17042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
17043printf %s "checking for socklen_t... " >&6; }
17044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17045/* end confdefs.h.  */
17046
17047 #include <sys/types.h>
17048 #ifdef _WIN32
17049 #include <ws2tcpip.h>
17050 #else
17051 #include <sys/socket.h>
17052 #endif
17053
17054int
17055main (void)
17056{
17057socklen_t x;
17058
17059  ;
17060  return 0;
17061}
17062_ACEOF
17063if ac_fn_c_try_compile "$LINENO"
17064then :
17065  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17066printf "%s\n" "yes" >&6; }
17067else $as_nop
17068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17069printf "%s\n" "no" >&6; }
17070
17071printf "%s\n" "#define socklen_t unsigned int" >>confdefs.h
17072
17073
17074fi
17075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17076
17077# __func__/__FUNCTION__ is not a macros in general
17078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
17079printf %s "checking whether our compiler supports __func__... " >&6; }
17080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17081/* end confdefs.h.  */
17082
17083int
17084main (void)
17085{
17086 const char *cp = __func__;
17087
17088  ;
17089  return 0;
17090}
17091_ACEOF
17092if ac_fn_c_try_compile "$LINENO"
17093then :
17094
17095printf "%s\n" "#define HAVE___func__ 1" >>confdefs.h
17096
17097    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17098printf "%s\n" "yes" >&6; }
17099
17100else $as_nop
17101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17102printf "%s\n" "no" >&6; }
17103
17104fi
17105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
17107printf %s "checking whether our compiler supports __FUNCTION__... " >&6; }
17108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17109/* end confdefs.h.  */
17110
17111int
17112main (void)
17113{
17114 const char *cp = __FUNCTION__;
17115
17116  ;
17117  return 0;
17118}
17119_ACEOF
17120if ac_fn_c_try_compile "$LINENO"
17121then :
17122
17123printf "%s\n" "#define HAVE___FUNCTION__ 1" >>confdefs.h
17124
17125    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17126printf "%s\n" "yes" >&6; }
17127
17128else $as_nop
17129  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17130printf "%s\n" "no" >&6; }
17131
17132fi
17133rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17134
17135# check if we can compile with pthreads
17136have_pthreads=no
17137if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
17138
17139
17140
17141ac_ext=c
17142ac_cpp='$CPP $CPPFLAGS'
17143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17145ac_compiler_gnu=$ac_cv_c_compiler_gnu
17146
17147acx_pthread_ok=no
17148
17149# We used to check for pthread.h first, but this fails if pthread.h
17150# requires special compiler flags (e.g. on True64 or Sequent).
17151# It gets checked for in the link test anyway.
17152
17153# First of all, check if the user has set any of the PTHREAD_LIBS,
17154# etcetera environment variables, and if threads linking works using
17155# them:
17156if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17157        save_CFLAGS="$CFLAGS"
17158        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17159        save_LIBS="$LIBS"
17160        LIBS="$PTHREAD_LIBS $LIBS"
17161        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17162printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
17163        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17164/* end confdefs.h.  */
17165
17166/* Override any GCC internal prototype to avoid an error.
17167   Use char because int might match the return type of a GCC
17168   builtin and then its argument prototype would still apply.  */
17169char pthread_join ();
17170int
17171main (void)
17172{
17173return pthread_join ();
17174  ;
17175  return 0;
17176}
17177_ACEOF
17178if ac_fn_c_try_link "$LINENO"
17179then :
17180  acx_pthread_ok=yes
17181fi
17182rm -f core conftest.err conftest.$ac_objext conftest.beam \
17183    conftest$ac_exeext conftest.$ac_ext
17184        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17185printf "%s\n" "$acx_pthread_ok" >&6; }
17186        if test x"$acx_pthread_ok" = xno; then
17187                PTHREAD_LIBS=""
17188                PTHREAD_CFLAGS=""
17189        fi
17190        LIBS="$save_LIBS"
17191        CFLAGS="$save_CFLAGS"
17192fi
17193
17194# We must check for the threads library under a number of different
17195# names; the ordering is very important because some systems
17196# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17197# libraries is broken (non-POSIX).
17198
17199# Create a list of thread flags to try.  Items starting with a "-" are
17200# C compiler flags, and other items are library names, except for "none"
17201# which indicates that we try without any flags at all, and "pthread-config"
17202# which is a program returning the flags for the Pth emulation library.
17203
17204acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17205
17206# The ordering *is* (sometimes) important.  Some notes on the
17207# individual items follow:
17208
17209# pthreads: AIX (must check this before -lpthread)
17210# none: in case threads are in libc; should be tried before -Kthread and
17211#       other compiler flags to prevent continual compiler warnings
17212# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17213# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17214# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17215# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17216# -pthreads: Solaris/gcc
17217# -mthreads: Mingw32/gcc, Lynx/gcc
17218# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17219#      doesn't hurt to check since this sometimes defines pthreads too;
17220#      also defines -D_REENTRANT)
17221#      ... -mt is also the pthreads flag for HP/aCC
17222# pthread: Linux, etcetera
17223# --thread-safe: KAI C++
17224# pthread-config: use pthread-config program (for GNU Pth library)
17225
17226case "${host_cpu}-${host_os}" in
17227        *solaris*)
17228
17229        # On Solaris (at least, for some versions), libc contains stubbed
17230        # (non-functional) versions of the pthreads routines, so link-based
17231        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
17232        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
17233        # a function called by this macro, so we could check for that, but
17234        # who knows whether they'll stub that too in a future libc.)  So,
17235        # we'll just look for -pthreads and -lpthread first:
17236
17237        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
17238        ;;
17239esac
17240
17241if test x"$acx_pthread_ok" = xno; then
17242for flag in $acx_pthread_flags; do
17243
17244        case $flag in
17245                none)
17246                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17247printf %s "checking whether pthreads work without any flags... " >&6; }
17248                ;;
17249
17250                -*)
17251                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17252printf %s "checking whether pthreads work with $flag... " >&6; }
17253                PTHREAD_CFLAGS="$flag"
17254                ;;
17255
17256		pthread-config)
17257		# Extract the first word of "pthread-config", so it can be a program name with args.
17258set dummy pthread-config; ac_word=$2
17259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17260printf %s "checking for $ac_word... " >&6; }
17261if test ${ac_cv_prog_acx_pthread_config+y}
17262then :
17263  printf %s "(cached) " >&6
17264else $as_nop
17265  if test -n "$acx_pthread_config"; then
17266  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
17267else
17268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17269for as_dir in $PATH
17270do
17271  IFS=$as_save_IFS
17272  case $as_dir in #(((
17273    '') as_dir=./ ;;
17274    */) ;;
17275    *) as_dir=$as_dir/ ;;
17276  esac
17277    for ac_exec_ext in '' $ac_executable_extensions; do
17278  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17279    ac_cv_prog_acx_pthread_config="yes"
17280    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17281    break 2
17282  fi
17283done
17284  done
17285IFS=$as_save_IFS
17286
17287  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
17288fi
17289fi
17290acx_pthread_config=$ac_cv_prog_acx_pthread_config
17291if test -n "$acx_pthread_config"; then
17292  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
17293printf "%s\n" "$acx_pthread_config" >&6; }
17294else
17295  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17296printf "%s\n" "no" >&6; }
17297fi
17298
17299
17300		if test x"$acx_pthread_config" = xno; then continue; fi
17301		PTHREAD_CFLAGS="`pthread-config --cflags`"
17302		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17303		;;
17304
17305                *)
17306                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17307printf %s "checking for the pthreads library -l$flag... " >&6; }
17308                PTHREAD_LIBS="-l$flag"
17309                ;;
17310        esac
17311
17312        save_LIBS="$LIBS"
17313        save_CFLAGS="$CFLAGS"
17314        LIBS="$PTHREAD_LIBS $LIBS"
17315        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17316
17317        # Check for various functions.  We must include pthread.h,
17318        # since some functions may be macros.  (On the Sequent, we
17319        # need a special flag -Kthread to make this header compile.)
17320        # We check for pthread_join because it is in -lpthread on IRIX
17321        # while pthread_create is in libc.  We check for pthread_attr_init
17322        # due to DEC craziness with -lpthreads.  We check for
17323        # pthread_cleanup_push because it is one of the few pthread
17324        # functions on Solaris that doesn't have a non-functional libc stub.
17325        # We try pthread_create on general principles.
17326        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17327/* end confdefs.h.  */
17328#include <pthread.h>
17329int
17330main (void)
17331{
17332pthread_t th; pthread_join(th, 0);
17333                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
17334                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17335  ;
17336  return 0;
17337}
17338_ACEOF
17339if ac_fn_c_try_link "$LINENO"
17340then :
17341  acx_pthread_ok=yes
17342fi
17343rm -f core conftest.err conftest.$ac_objext conftest.beam \
17344    conftest$ac_exeext conftest.$ac_ext
17345
17346        LIBS="$save_LIBS"
17347        CFLAGS="$save_CFLAGS"
17348
17349        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17350printf "%s\n" "$acx_pthread_ok" >&6; }
17351        if test "x$acx_pthread_ok" = xyes; then
17352                break;
17353        fi
17354
17355        PTHREAD_LIBS=""
17356        PTHREAD_CFLAGS=""
17357done
17358fi
17359
17360# Various other checks:
17361if test "x$acx_pthread_ok" = xyes; then
17362        save_LIBS="$LIBS"
17363        LIBS="$PTHREAD_LIBS $LIBS"
17364        save_CFLAGS="$CFLAGS"
17365        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17366
17367        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17368	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17369printf %s "checking for joinable pthread attribute... " >&6; }
17370	attr_name=unknown
17371	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17372	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17373/* end confdefs.h.  */
17374#include <pthread.h>
17375int
17376main (void)
17377{
17378int attr=$attr; return attr;
17379  ;
17380  return 0;
17381}
17382_ACEOF
17383if ac_fn_c_try_link "$LINENO"
17384then :
17385  attr_name=$attr; break
17386fi
17387rm -f core conftest.err conftest.$ac_objext conftest.beam \
17388    conftest$ac_exeext conftest.$ac_ext
17389	done
17390        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
17391printf "%s\n" "$attr_name" >&6; }
17392        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17393
17394printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
17395
17396        fi
17397
17398        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17399printf %s "checking if more special flags are required for pthreads... " >&6; }
17400        flag=no
17401        case "${host_cpu}-${host_os}" in
17402            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
17403            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
17404        esac
17405        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17406printf "%s\n" "${flag}" >&6; }
17407        if test "x$flag" != xno; then
17408            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17409        fi
17410
17411        LIBS="$save_LIBS"
17412        CFLAGS="$save_CFLAGS"
17413
17414        # More AIX lossage: must compile with xlc_r or cc_r
17415	if test x"$GCC" != xyes; then
17416          for ac_prog in xlc_r cc_r
17417do
17418  # Extract the first word of "$ac_prog", so it can be a program name with args.
17419set dummy $ac_prog; ac_word=$2
17420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17421printf %s "checking for $ac_word... " >&6; }
17422if test ${ac_cv_prog_PTHREAD_CC+y}
17423then :
17424  printf %s "(cached) " >&6
17425else $as_nop
17426  if test -n "$PTHREAD_CC"; then
17427  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17428else
17429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17430for as_dir in $PATH
17431do
17432  IFS=$as_save_IFS
17433  case $as_dir in #(((
17434    '') as_dir=./ ;;
17435    */) ;;
17436    *) as_dir=$as_dir/ ;;
17437  esac
17438    for ac_exec_ext in '' $ac_executable_extensions; do
17439  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17440    ac_cv_prog_PTHREAD_CC="$ac_prog"
17441    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17442    break 2
17443  fi
17444done
17445  done
17446IFS=$as_save_IFS
17447
17448fi
17449fi
17450PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17451if test -n "$PTHREAD_CC"; then
17452  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17453printf "%s\n" "$PTHREAD_CC" >&6; }
17454else
17455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17456printf "%s\n" "no" >&6; }
17457fi
17458
17459
17460  test -n "$PTHREAD_CC" && break
17461done
17462test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
17463
17464        else
17465          PTHREAD_CC=$CC
17466	fi
17467else
17468        PTHREAD_CC="$CC"
17469fi
17470
17471
17472
17473
17474
17475# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17476if test x"$acx_pthread_ok" = xyes; then
17477
17478
17479printf "%s\n" "#define HAVE_PTHREADS 1" >>confdefs.h
17480
17481	have_pthreads=yes
17482        :
17483else
17484        acx_pthread_ok=no
17485
17486fi
17487ac_ext=c
17488ac_cpp='$CPP $CPPFLAGS'
17489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17491ac_compiler_gnu=$ac_cv_c_compiler_gnu
17492
17493
17494  CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17495  # The cast to long int works around a bug in the HP C Compiler
17496# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17497# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17498# This bug is HP SR number 8606223364.
17499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
17500printf %s "checking size of pthread_t... " >&6; }
17501if test ${ac_cv_sizeof_pthread_t+y}
17502then :
17503  printf %s "(cached) " >&6
17504else $as_nop
17505  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "$ac_includes_default
17506      #include <pthread.h>
17507
17508"
17509then :
17510
17511else $as_nop
17512  if test "$ac_cv_type_pthread_t" = yes; then
17513     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17514printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17515as_fn_error 77 "cannot compute sizeof (pthread_t)
17516See \`config.log' for more details" "$LINENO" 5; }
17517   else
17518     ac_cv_sizeof_pthread_t=0
17519   fi
17520fi
17521
17522fi
17523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
17524printf "%s\n" "$ac_cv_sizeof_pthread_t" >&6; }
17525
17526
17527
17528printf "%s\n" "#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t" >>confdefs.h
17529
17530
17531fi
17532 if test "$enable_thread_support" != "no"; then
17533  THREADS_TRUE=
17534  THREADS_FALSE='#'
17535else
17536  THREADS_TRUE='#'
17537  THREADS_FALSE=
17538fi
17539
17540 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
17541  PTHREADS_TRUE=
17542  PTHREADS_FALSE='#'
17543else
17544  PTHREADS_TRUE='#'
17545  PTHREADS_FALSE=
17546fi
17547
17548
17549# check if we should compile locking into the library
17550if test x$enable_thread_support = xno; then
17551
17552printf "%s\n" "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
17553
17554fi
17555
17556# check if we should hard-code the mm functions.
17557if test x$enable_malloc_replacement = xno; then
17558
17559printf "%s\n" "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
17560
17561fi
17562
17563# check if we should hard-code debugging out
17564if test x$enable_debug_mode = xno; then
17565
17566printf "%s\n" "#define DISABLE_DEBUG_MODE 1" >>confdefs.h
17567
17568fi
17569
17570# check if we should enable verbose debugging
17571if test x$enable_verbose_debug = xyes; then
17572	CFLAGS="$CFLAGS -DUSE_DEBUG"
17573fi
17574
17575# check if we have and should use openssl
17576 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
17577  OPENSSL_TRUE=
17578  OPENSSL_FALSE='#'
17579else
17580  OPENSSL_TRUE='#'
17581  OPENSSL_FALSE=
17582fi
17583
17584
17585# Add some more warnings which we use in development but not in the
17586# released versions.  (Some relevant gcc versions can't handle these.)
17587if test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then
17588
17589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17590/* end confdefs.h.  */
17591
17592int
17593main (void)
17594{
17595
17596#if !defined(__GNUC__) || (__GNUC__ < 4)
17597#error
17598#endif
17599  ;
17600  return 0;
17601}
17602_ACEOF
17603if ac_fn_c_try_compile "$LINENO"
17604then :
17605  have_gcc4=yes
17606else $as_nop
17607  have_gcc4=no
17608fi
17609rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17610
17611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17612/* end confdefs.h.  */
17613
17614int
17615main (void)
17616{
17617
17618#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
17619#error
17620#endif
17621  ;
17622  return 0;
17623}
17624_ACEOF
17625if ac_fn_c_try_compile "$LINENO"
17626then :
17627  have_gcc42=yes
17628else $as_nop
17629  have_gcc42=no
17630fi
17631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17632
17633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17634/* end confdefs.h.  */
17635
17636int
17637main (void)
17638{
17639
17640#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
17641#error
17642#endif
17643  ;
17644  return 0;
17645}
17646_ACEOF
17647if ac_fn_c_try_compile "$LINENO"
17648then :
17649  have_gcc45=yes
17650else $as_nop
17651  have_gcc45=no
17652fi
17653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17654
17655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17656/* end confdefs.h.  */
17657
17658int
17659main (void)
17660{
17661
17662#if !defined(__clang__)
17663#error
17664#endif
17665  ;
17666  return 0;
17667}
17668_ACEOF
17669if ac_fn_c_try_compile "$LINENO"
17670then :
17671  have_clang=yes
17672else $as_nop
17673  have_clang=no
17674fi
17675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17676
17677  # -W is the same as -Wextra
17678  CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wmissing-declarations -Wnested-externs -Wbad-function-cast"
17679  if test x$enable_gcc_warnings = xyes; then
17680    CFLAGS="$CFLAGS -Werror"
17681  fi
17682
17683  CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
17684
17685  if test x$have_gcc4 = xyes ; then
17686    # These warnings break gcc 3.3.5 and work on gcc 4.0.2
17687    CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
17688    #CFLAGS="$CFLAGS -Wold-style-definition"
17689  fi
17690
17691  if test x$have_gcc42 = xyes ; then
17692    # These warnings break gcc 4.0.2 and work on gcc 4.2
17693    CFLAGS="$CFLAGS -Waddress"
17694  fi
17695
17696  if test x$have_gcc42 = xyes && test x$have_clang = xno; then
17697    # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
17698    CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
17699  fi
17700
17701  if test x$have_gcc45 = xyes ; then
17702    # These warnings work on gcc 4.5
17703    CFLAGS="$CFLAGS -Wlogical-op"
17704  fi
17705
17706  if test x$have_clang = xyes; then
17707    # Disable the unused-function warnings, because these trigger
17708    # for minheap-internal.h related code.
17709    CFLAGS="$CFLAGS -Wno-unused-function"
17710
17711    # clang on macosx emits warnings for each directory specified which
17712    # isn't "used" generating a lot of build noise (typically 3 warnings
17713    # per file
17714    case "$host_os" in
17715        darwin*)
17716            CFLAGS="$CFLAGS -Qunused-arguments"
17717        ;;
17718    esac
17719  fi
17720
17721##This will break the world on some 64-bit architectures
17722# CFLAGS="$CFLAGS -Winline"
17723
17724fi
17725
17726LIBEVENT_GC_SECTIONS=
17727if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
17728    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
17729printf %s "checking if linker supports omitting unused code and data... " >&6; }
17730if test ${libevent_cv_gc_sections_runs+y}
17731then :
17732  printf %s "(cached) " >&6
17733else $as_nop
17734
17735	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
17736	    CFLAGS="$CFLAGS -Wl,--gc-sections"
17737	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17738/* end confdefs.h.  */
17739
17740			#include <stdlib.h>
17741			#include <stdio.h>
17742
17743int
17744main (void)
17745{
17746
17747			FILE *	fpC;
17748			char	buf[32];
17749			size_t	cch;
17750			int	read_success_once;
17751
17752			fpC = fopen("conftest.c", "r");
17753			if (NULL == fpC)
17754				exit(1);
17755			do {
17756				cch = fread(buf, sizeof(buf), 1, fpC);
17757				read_success_once |= (0 != cch);
17758			} while (0 != cch);
17759			if (!read_success_once)
17760				exit(2);
17761			if (!feof(fpC))
17762				exit(3);
17763			if (0 != fclose(fpC))
17764				exit(4);
17765
17766			exit(EXIT_SUCCESS);
17767
17768
17769  ;
17770  return 0;
17771}
17772_ACEOF
17773if ac_fn_c_try_link "$LINENO"
17774then :
17775
17776                                                            		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
17777			libevent_cv_gc_sections_runs=no
17778		    else
17779			libevent_cv_gc_sections_runs=no
17780			./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
17781		    fi
17782
17783else $as_nop
17784  libevent_cv_gc_sections_runs=no
17785
17786fi
17787rm -f core conftest.err conftest.$ac_objext conftest.beam \
17788    conftest$ac_exeext conftest.$ac_ext
17789	    CFLAGS="$origCFLAGS"
17790	    { origCFLAGS=; unset origCFLAGS;}
17791
17792
17793fi
17794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
17795printf "%s\n" "$libevent_cv_gc_sections_runs" >&6; }
17796    case "$libevent_cv_gc_sections_runs" in
17797     yes)
17798	CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
17799	LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
17800	;;
17801    esac
17802fi
17803
17804
17805 if test "$enable_libevent_install" = "yes"; then
17806  INSTALL_LIBEVENT_TRUE=
17807  INSTALL_LIBEVENT_FALSE='#'
17808else
17809  INSTALL_LIBEVENT_TRUE='#'
17810  INSTALL_LIBEVENT_FALSE=
17811fi
17812
17813
17814# Doxygen support
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825# Files:
17826DX_PROJECT=libevent
17827
17828DX_CONFIG='${top_srcdir}/Doxyfile'
17829
17830DX_DOCDIR='doxygen'
17831
17832
17833# Environment variables used inside doxygen.cfg:
17834DX_ENV="$DX_ENV SRCDIR='$srcdir'"
17835SRCDIR=$srcdir
17836
17837DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
17838PROJECT=$DX_PROJECT
17839
17840DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
17841
17842
17843# Doxygen itself:
17844
17845
17846
17847    # Check whether --enable-doxygen-doc was given.
17848if test ${enable_doxygen_doc+y}
17849then :
17850  enableval=$enable_doxygen_doc;
17851case "$enableval" in
17852#(
17853y|Y|yes|Yes|YES)
17854    DX_FLAG_doc=1
17855
17856
17857;; #(
17858n|N|no|No|NO)
17859    DX_FLAG_doc=0
17860
17861;; #(
17862*)
17863    as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
17864;;
17865esac
17866
17867else $as_nop
17868
17869DX_FLAG_doc=0
17870
17871
17872
17873fi
17874
17875if test "$DX_FLAG_doc" = 1; then
17876
17877if test -n "$ac_tool_prefix"; then
17878  # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
17879set dummy ${ac_tool_prefix}doxygen; ac_word=$2
17880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17881printf %s "checking for $ac_word... " >&6; }
17882if test ${ac_cv_path_DX_DOXYGEN+y}
17883then :
17884  printf %s "(cached) " >&6
17885else $as_nop
17886  case $DX_DOXYGEN in
17887  [\\/]* | ?:[\\/]*)
17888  ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
17889  ;;
17890  *)
17891  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17892for as_dir in $PATH
17893do
17894  IFS=$as_save_IFS
17895  case $as_dir in #(((
17896    '') as_dir=./ ;;
17897    */) ;;
17898    *) as_dir=$as_dir/ ;;
17899  esac
17900    for ac_exec_ext in '' $ac_executable_extensions; do
17901  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17902    ac_cv_path_DX_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
17903    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17904    break 2
17905  fi
17906done
17907  done
17908IFS=$as_save_IFS
17909
17910  ;;
17911esac
17912fi
17913DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
17914if test -n "$DX_DOXYGEN"; then
17915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
17916printf "%s\n" "$DX_DOXYGEN" >&6; }
17917else
17918  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17919printf "%s\n" "no" >&6; }
17920fi
17921
17922
17923fi
17924if test -z "$ac_cv_path_DX_DOXYGEN"; then
17925  ac_pt_DX_DOXYGEN=$DX_DOXYGEN
17926  # Extract the first word of "doxygen", so it can be a program name with args.
17927set dummy doxygen; ac_word=$2
17928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17929printf %s "checking for $ac_word... " >&6; }
17930if test ${ac_cv_path_ac_pt_DX_DOXYGEN+y}
17931then :
17932  printf %s "(cached) " >&6
17933else $as_nop
17934  case $ac_pt_DX_DOXYGEN in
17935  [\\/]* | ?:[\\/]*)
17936  ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
17937  ;;
17938  *)
17939  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17940for as_dir in $PATH
17941do
17942  IFS=$as_save_IFS
17943  case $as_dir in #(((
17944    '') as_dir=./ ;;
17945    */) ;;
17946    *) as_dir=$as_dir/ ;;
17947  esac
17948    for ac_exec_ext in '' $ac_executable_extensions; do
17949  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17950    ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
17951    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17952    break 2
17953  fi
17954done
17955  done
17956IFS=$as_save_IFS
17957
17958  ;;
17959esac
17960fi
17961ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
17962if test -n "$ac_pt_DX_DOXYGEN"; then
17963  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
17964printf "%s\n" "$ac_pt_DX_DOXYGEN" >&6; }
17965else
17966  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17967printf "%s\n" "no" >&6; }
17968fi
17969
17970  if test "x$ac_pt_DX_DOXYGEN" = x; then
17971    DX_DOXYGEN=""
17972  else
17973    case $cross_compiling:$ac_tool_warned in
17974yes:)
17975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17976printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17977ac_tool_warned=yes ;;
17978esac
17979    DX_DOXYGEN=$ac_pt_DX_DOXYGEN
17980  fi
17981else
17982  DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
17983fi
17984
17985if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
17986    if test "xdoxygen" = "xdoxygen"; then
17987        as_fn_error $? "doxygen not found - will not generate any doxygen documentation" "$LINENO" 5
17988    else
17989        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
17990printf "%s\n" "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
17991    fi
17992    DX_FLAG_doc=0
17993
17994fi
17995
17996
17997if test -n "$ac_tool_prefix"; then
17998  # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
17999set dummy ${ac_tool_prefix}perl; ac_word=$2
18000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18001printf %s "checking for $ac_word... " >&6; }
18002if test ${ac_cv_path_DX_PERL+y}
18003then :
18004  printf %s "(cached) " >&6
18005else $as_nop
18006  case $DX_PERL in
18007  [\\/]* | ?:[\\/]*)
18008  ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
18009  ;;
18010  *)
18011  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18012for as_dir in $PATH
18013do
18014  IFS=$as_save_IFS
18015  case $as_dir in #(((
18016    '') as_dir=./ ;;
18017    */) ;;
18018    *) as_dir=$as_dir/ ;;
18019  esac
18020    for ac_exec_ext in '' $ac_executable_extensions; do
18021  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18022    ac_cv_path_DX_PERL="$as_dir$ac_word$ac_exec_ext"
18023    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18024    break 2
18025  fi
18026done
18027  done
18028IFS=$as_save_IFS
18029
18030  ;;
18031esac
18032fi
18033DX_PERL=$ac_cv_path_DX_PERL
18034if test -n "$DX_PERL"; then
18035  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
18036printf "%s\n" "$DX_PERL" >&6; }
18037else
18038  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18039printf "%s\n" "no" >&6; }
18040fi
18041
18042
18043fi
18044if test -z "$ac_cv_path_DX_PERL"; then
18045  ac_pt_DX_PERL=$DX_PERL
18046  # Extract the first word of "perl", so it can be a program name with args.
18047set dummy perl; ac_word=$2
18048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18049printf %s "checking for $ac_word... " >&6; }
18050if test ${ac_cv_path_ac_pt_DX_PERL+y}
18051then :
18052  printf %s "(cached) " >&6
18053else $as_nop
18054  case $ac_pt_DX_PERL in
18055  [\\/]* | ?:[\\/]*)
18056  ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
18057  ;;
18058  *)
18059  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18060for as_dir in $PATH
18061do
18062  IFS=$as_save_IFS
18063  case $as_dir in #(((
18064    '') as_dir=./ ;;
18065    */) ;;
18066    *) as_dir=$as_dir/ ;;
18067  esac
18068    for ac_exec_ext in '' $ac_executable_extensions; do
18069  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18070    ac_cv_path_ac_pt_DX_PERL="$as_dir$ac_word$ac_exec_ext"
18071    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18072    break 2
18073  fi
18074done
18075  done
18076IFS=$as_save_IFS
18077
18078  ;;
18079esac
18080fi
18081ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
18082if test -n "$ac_pt_DX_PERL"; then
18083  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
18084printf "%s\n" "$ac_pt_DX_PERL" >&6; }
18085else
18086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18087printf "%s\n" "no" >&6; }
18088fi
18089
18090  if test "x$ac_pt_DX_PERL" = x; then
18091    DX_PERL=""
18092  else
18093    case $cross_compiling:$ac_tool_warned in
18094yes:)
18095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18096printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18097ac_tool_warned=yes ;;
18098esac
18099    DX_PERL=$ac_pt_DX_PERL
18100  fi
18101else
18102  DX_PERL="$ac_cv_path_DX_PERL"
18103fi
18104
18105if test "$DX_FLAG_doc$DX_PERL" = 1; then
18106    if test "xperl" = "xdoxygen"; then
18107        as_fn_error $? "perl not found - will not generate any doxygen documentation" "$LINENO" 5
18108    else
18109        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
18110printf "%s\n" "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
18111    fi
18112    DX_FLAG_doc=0
18113
18114fi
18115
18116    :
18117fi
18118if test "$DX_FLAG_doc" = 1; then
18119    DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
18120PERL_PATH=$DX_PERL
18121
18122    :
18123else
18124
18125    :
18126fi
18127
18128
18129# Dot for graphics:
18130
18131
18132
18133    # Check whether --enable-doxygen-dot was given.
18134if test ${enable_doxygen_dot+y}
18135then :
18136  enableval=$enable_doxygen_dot;
18137case "$enableval" in
18138#(
18139y|Y|yes|Yes|YES)
18140    DX_FLAG_dot=1
18141
18142
18143test "$DX_FLAG_doc" = "1" \
18144|| as_fn_error $? "doxygen-dot requires doxygen-doc" "$LINENO" 5
18145
18146;; #(
18147n|N|no|No|NO)
18148    DX_FLAG_dot=0
18149
18150;; #(
18151*)
18152    as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
18153;;
18154esac
18155
18156else $as_nop
18157
18158DX_FLAG_dot=0
18159
18160
18161test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
18162
18163
18164
18165fi
18166
18167if test "$DX_FLAG_dot" = 1; then
18168
18169if test -n "$ac_tool_prefix"; then
18170  # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
18171set dummy ${ac_tool_prefix}dot; ac_word=$2
18172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18173printf %s "checking for $ac_word... " >&6; }
18174if test ${ac_cv_path_DX_DOT+y}
18175then :
18176  printf %s "(cached) " >&6
18177else $as_nop
18178  case $DX_DOT in
18179  [\\/]* | ?:[\\/]*)
18180  ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
18181  ;;
18182  *)
18183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18184for as_dir in $PATH
18185do
18186  IFS=$as_save_IFS
18187  case $as_dir in #(((
18188    '') as_dir=./ ;;
18189    */) ;;
18190    *) as_dir=$as_dir/ ;;
18191  esac
18192    for ac_exec_ext in '' $ac_executable_extensions; do
18193  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18194    ac_cv_path_DX_DOT="$as_dir$ac_word$ac_exec_ext"
18195    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18196    break 2
18197  fi
18198done
18199  done
18200IFS=$as_save_IFS
18201
18202  ;;
18203esac
18204fi
18205DX_DOT=$ac_cv_path_DX_DOT
18206if test -n "$DX_DOT"; then
18207  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
18208printf "%s\n" "$DX_DOT" >&6; }
18209else
18210  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18211printf "%s\n" "no" >&6; }
18212fi
18213
18214
18215fi
18216if test -z "$ac_cv_path_DX_DOT"; then
18217  ac_pt_DX_DOT=$DX_DOT
18218  # Extract the first word of "dot", so it can be a program name with args.
18219set dummy dot; ac_word=$2
18220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18221printf %s "checking for $ac_word... " >&6; }
18222if test ${ac_cv_path_ac_pt_DX_DOT+y}
18223then :
18224  printf %s "(cached) " >&6
18225else $as_nop
18226  case $ac_pt_DX_DOT in
18227  [\\/]* | ?:[\\/]*)
18228  ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
18229  ;;
18230  *)
18231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18232for as_dir in $PATH
18233do
18234  IFS=$as_save_IFS
18235  case $as_dir in #(((
18236    '') as_dir=./ ;;
18237    */) ;;
18238    *) as_dir=$as_dir/ ;;
18239  esac
18240    for ac_exec_ext in '' $ac_executable_extensions; do
18241  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18242    ac_cv_path_ac_pt_DX_DOT="$as_dir$ac_word$ac_exec_ext"
18243    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18244    break 2
18245  fi
18246done
18247  done
18248IFS=$as_save_IFS
18249
18250  ;;
18251esac
18252fi
18253ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
18254if test -n "$ac_pt_DX_DOT"; then
18255  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
18256printf "%s\n" "$ac_pt_DX_DOT" >&6; }
18257else
18258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18259printf "%s\n" "no" >&6; }
18260fi
18261
18262  if test "x$ac_pt_DX_DOT" = x; then
18263    DX_DOT=""
18264  else
18265    case $cross_compiling:$ac_tool_warned in
18266yes:)
18267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18268printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18269ac_tool_warned=yes ;;
18270esac
18271    DX_DOT=$ac_pt_DX_DOT
18272  fi
18273else
18274  DX_DOT="$ac_cv_path_DX_DOT"
18275fi
18276
18277if test "$DX_FLAG_dot$DX_DOT" = 1; then
18278    if test "xdot" = "xdoxygen"; then
18279        as_fn_error $? "dot not found - will not generate graphics for doxygen documentation" "$LINENO" 5
18280    else
18281        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
18282printf "%s\n" "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
18283    fi
18284    DX_FLAG_dot=0
18285
18286fi
18287
18288    :
18289fi
18290if test "$DX_FLAG_dot" = 1; then
18291    DX_ENV="$DX_ENV HAVE_DOT='YES'"
18292HAVE_DOT=YES
18293
18294             DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
18295DOT_PATH=`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`
18296
18297    :
18298else
18299    DX_ENV="$DX_ENV HAVE_DOT='NO'"
18300HAVE_DOT=NO
18301
18302    :
18303fi
18304
18305
18306# Man pages generation:
18307
18308
18309
18310    # Check whether --enable-doxygen-man was given.
18311if test ${enable_doxygen_man+y}
18312then :
18313  enableval=$enable_doxygen_man;
18314case "$enableval" in
18315#(
18316y|Y|yes|Yes|YES)
18317    DX_FLAG_man=1
18318
18319
18320test "$DX_FLAG_doc" = "1" \
18321|| as_fn_error $? "doxygen-man requires doxygen-doc" "$LINENO" 5
18322
18323;; #(
18324n|N|no|No|NO)
18325    DX_FLAG_man=0
18326
18327;; #(
18328*)
18329    as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
18330;;
18331esac
18332
18333else $as_nop
18334
18335DX_FLAG_man=0
18336
18337
18338test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
18339
18340
18341
18342fi
18343
18344if test "$DX_FLAG_man" = 1; then
18345
18346    :
18347fi
18348if test "$DX_FLAG_man" = 1; then
18349    DX_ENV="$DX_ENV GENERATE_MAN='YES'"
18350GENERATE_MAN=YES
18351
18352    :
18353else
18354    DX_ENV="$DX_ENV GENERATE_MAN='NO'"
18355GENERATE_MAN=NO
18356
18357    :
18358fi
18359
18360
18361# RTF file generation:
18362
18363
18364
18365    # Check whether --enable-doxygen-rtf was given.
18366if test ${enable_doxygen_rtf+y}
18367then :
18368  enableval=$enable_doxygen_rtf;
18369case "$enableval" in
18370#(
18371y|Y|yes|Yes|YES)
18372    DX_FLAG_rtf=1
18373
18374
18375test "$DX_FLAG_doc" = "1" \
18376|| as_fn_error $? "doxygen-rtf requires doxygen-doc" "$LINENO" 5
18377
18378;; #(
18379n|N|no|No|NO)
18380    DX_FLAG_rtf=0
18381
18382;; #(
18383*)
18384    as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
18385;;
18386esac
18387
18388else $as_nop
18389
18390DX_FLAG_rtf=0
18391
18392
18393test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
18394
18395
18396
18397fi
18398
18399if test "$DX_FLAG_rtf" = 1; then
18400
18401    :
18402fi
18403if test "$DX_FLAG_rtf" = 1; then
18404    DX_ENV="$DX_ENV GENERATE_RTF='YES'"
18405GENERATE_RTF=YES
18406
18407    :
18408else
18409    DX_ENV="$DX_ENV GENERATE_RTF='NO'"
18410GENERATE_RTF=NO
18411
18412    :
18413fi
18414
18415
18416# XML file generation:
18417
18418
18419
18420    # Check whether --enable-doxygen-xml was given.
18421if test ${enable_doxygen_xml+y}
18422then :
18423  enableval=$enable_doxygen_xml;
18424case "$enableval" in
18425#(
18426y|Y|yes|Yes|YES)
18427    DX_FLAG_xml=1
18428
18429
18430test "$DX_FLAG_doc" = "1" \
18431|| as_fn_error $? "doxygen-xml requires doxygen-doc" "$LINENO" 5
18432
18433;; #(
18434n|N|no|No|NO)
18435    DX_FLAG_xml=0
18436
18437;; #(
18438*)
18439    as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
18440;;
18441esac
18442
18443else $as_nop
18444
18445DX_FLAG_xml=0
18446
18447
18448test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
18449
18450
18451
18452fi
18453
18454if test "$DX_FLAG_xml" = 1; then
18455
18456    :
18457fi
18458if test "$DX_FLAG_xml" = 1; then
18459    DX_ENV="$DX_ENV GENERATE_XML='YES'"
18460GENERATE_XML=YES
18461
18462    :
18463else
18464    DX_ENV="$DX_ENV GENERATE_XML='NO'"
18465GENERATE_XML=NO
18466
18467    :
18468fi
18469
18470
18471# (Compressed) HTML help generation:
18472
18473
18474
18475    # Check whether --enable-doxygen-chm was given.
18476if test ${enable_doxygen_chm+y}
18477then :
18478  enableval=$enable_doxygen_chm;
18479case "$enableval" in
18480#(
18481y|Y|yes|Yes|YES)
18482    DX_FLAG_chm=1
18483
18484
18485test "$DX_FLAG_doc" = "1" \
18486|| as_fn_error $? "doxygen-chm requires doxygen-doc" "$LINENO" 5
18487
18488;; #(
18489n|N|no|No|NO)
18490    DX_FLAG_chm=0
18491
18492;; #(
18493*)
18494    as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
18495;;
18496esac
18497
18498else $as_nop
18499
18500DX_FLAG_chm=0
18501
18502
18503test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
18504
18505
18506
18507fi
18508
18509if test "$DX_FLAG_chm" = 1; then
18510
18511if test -n "$ac_tool_prefix"; then
18512  # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
18513set dummy ${ac_tool_prefix}hhc; ac_word=$2
18514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18515printf %s "checking for $ac_word... " >&6; }
18516if test ${ac_cv_path_DX_HHC+y}
18517then :
18518  printf %s "(cached) " >&6
18519else $as_nop
18520  case $DX_HHC in
18521  [\\/]* | ?:[\\/]*)
18522  ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
18523  ;;
18524  *)
18525  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18526for as_dir in $PATH
18527do
18528  IFS=$as_save_IFS
18529  case $as_dir in #(((
18530    '') as_dir=./ ;;
18531    */) ;;
18532    *) as_dir=$as_dir/ ;;
18533  esac
18534    for ac_exec_ext in '' $ac_executable_extensions; do
18535  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18536    ac_cv_path_DX_HHC="$as_dir$ac_word$ac_exec_ext"
18537    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18538    break 2
18539  fi
18540done
18541  done
18542IFS=$as_save_IFS
18543
18544  ;;
18545esac
18546fi
18547DX_HHC=$ac_cv_path_DX_HHC
18548if test -n "$DX_HHC"; then
18549  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
18550printf "%s\n" "$DX_HHC" >&6; }
18551else
18552  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18553printf "%s\n" "no" >&6; }
18554fi
18555
18556
18557fi
18558if test -z "$ac_cv_path_DX_HHC"; then
18559  ac_pt_DX_HHC=$DX_HHC
18560  # Extract the first word of "hhc", so it can be a program name with args.
18561set dummy hhc; ac_word=$2
18562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18563printf %s "checking for $ac_word... " >&6; }
18564if test ${ac_cv_path_ac_pt_DX_HHC+y}
18565then :
18566  printf %s "(cached) " >&6
18567else $as_nop
18568  case $ac_pt_DX_HHC in
18569  [\\/]* | ?:[\\/]*)
18570  ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
18571  ;;
18572  *)
18573  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18574for as_dir in $PATH
18575do
18576  IFS=$as_save_IFS
18577  case $as_dir in #(((
18578    '') as_dir=./ ;;
18579    */) ;;
18580    *) as_dir=$as_dir/ ;;
18581  esac
18582    for ac_exec_ext in '' $ac_executable_extensions; do
18583  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18584    ac_cv_path_ac_pt_DX_HHC="$as_dir$ac_word$ac_exec_ext"
18585    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18586    break 2
18587  fi
18588done
18589  done
18590IFS=$as_save_IFS
18591
18592  ;;
18593esac
18594fi
18595ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
18596if test -n "$ac_pt_DX_HHC"; then
18597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
18598printf "%s\n" "$ac_pt_DX_HHC" >&6; }
18599else
18600  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18601printf "%s\n" "no" >&6; }
18602fi
18603
18604  if test "x$ac_pt_DX_HHC" = x; then
18605    DX_HHC=""
18606  else
18607    case $cross_compiling:$ac_tool_warned in
18608yes:)
18609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18610printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18611ac_tool_warned=yes ;;
18612esac
18613    DX_HHC=$ac_pt_DX_HHC
18614  fi
18615else
18616  DX_HHC="$ac_cv_path_DX_HHC"
18617fi
18618
18619if test "$DX_FLAG_chm$DX_HHC" = 1; then
18620    if test "xhhc" = "xdoxygen"; then
18621        as_fn_error $? "hhc not found - will not generate doxygen compressed HTML help documentation" "$LINENO" 5
18622    else
18623        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
18624printf "%s\n" "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
18625    fi
18626    DX_FLAG_chm=0
18627
18628fi
18629
18630    :
18631fi
18632if test "$DX_FLAG_chm" = 1; then
18633    DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
18634HHC_PATH=$DX_HHC
18635
18636             DX_ENV="$DX_ENV GENERATE_HTML='YES'"
18637GENERATE_HTML=YES
18638
18639             DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
18640GENERATE_HTMLHELP=YES
18641
18642    :
18643else
18644    DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
18645GENERATE_HTMLHELP=NO
18646
18647    :
18648fi
18649
18650
18651# Separate CHI file generation.
18652
18653
18654
18655    # Check whether --enable-doxygen-chi was given.
18656if test ${enable_doxygen_chi+y}
18657then :
18658  enableval=$enable_doxygen_chi;
18659case "$enableval" in
18660#(
18661y|Y|yes|Yes|YES)
18662    DX_FLAG_chi=1
18663
18664
18665test "$DX_FLAG_chm" = "1" \
18666|| as_fn_error $? "doxygen-chi requires doxygen-chm" "$LINENO" 5
18667
18668;; #(
18669n|N|no|No|NO)
18670    DX_FLAG_chi=0
18671
18672;; #(
18673*)
18674    as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
18675;;
18676esac
18677
18678else $as_nop
18679
18680DX_FLAG_chi=0
18681
18682
18683test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
18684
18685
18686
18687fi
18688
18689if test "$DX_FLAG_chi" = 1; then
18690
18691    :
18692fi
18693if test "$DX_FLAG_chi" = 1; then
18694    DX_ENV="$DX_ENV GENERATE_CHI='YES'"
18695GENERATE_CHI=YES
18696
18697    :
18698else
18699    DX_ENV="$DX_ENV GENERATE_CHI='NO'"
18700GENERATE_CHI=NO
18701
18702    :
18703fi
18704
18705
18706# Plain HTML pages generation:
18707
18708
18709
18710    # Check whether --enable-doxygen-html was given.
18711if test ${enable_doxygen_html+y}
18712then :
18713  enableval=$enable_doxygen_html;
18714case "$enableval" in
18715#(
18716y|Y|yes|Yes|YES)
18717    DX_FLAG_html=1
18718
18719
18720test "$DX_FLAG_doc" = "1" \
18721|| as_fn_error $? "doxygen-html requires doxygen-doc" "$LINENO" 5
18722
18723test "$DX_FLAG_chm" = "0" \
18724|| as_fn_error $? "doxygen-html contradicts doxygen-chm" "$LINENO" 5
18725
18726;; #(
18727n|N|no|No|NO)
18728    DX_FLAG_html=0
18729
18730;; #(
18731*)
18732    as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
18733;;
18734esac
18735
18736else $as_nop
18737
18738DX_FLAG_html=1
18739
18740
18741test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
18742
18743
18744test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
18745
18746
18747
18748fi
18749
18750if test "$DX_FLAG_html" = 1; then
18751
18752    :
18753fi
18754if test "$DX_FLAG_html" = 1; then
18755    DX_ENV="$DX_ENV GENERATE_HTML='YES'"
18756GENERATE_HTML=YES
18757
18758    :
18759else
18760    test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
18761GENERATE_HTML=NO
18762
18763    :
18764fi
18765
18766
18767# PostScript file generation:
18768
18769
18770
18771    # Check whether --enable-doxygen-ps was given.
18772if test ${enable_doxygen_ps+y}
18773then :
18774  enableval=$enable_doxygen_ps;
18775case "$enableval" in
18776#(
18777y|Y|yes|Yes|YES)
18778    DX_FLAG_ps=1
18779
18780
18781test "$DX_FLAG_doc" = "1" \
18782|| as_fn_error $? "doxygen-ps requires doxygen-doc" "$LINENO" 5
18783
18784;; #(
18785n|N|no|No|NO)
18786    DX_FLAG_ps=0
18787
18788;; #(
18789*)
18790    as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
18791;;
18792esac
18793
18794else $as_nop
18795
18796DX_FLAG_ps=0
18797
18798
18799test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
18800
18801
18802
18803fi
18804
18805if test "$DX_FLAG_ps" = 1; then
18806
18807if test -n "$ac_tool_prefix"; then
18808  # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
18809set dummy ${ac_tool_prefix}latex; ac_word=$2
18810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18811printf %s "checking for $ac_word... " >&6; }
18812if test ${ac_cv_path_DX_LATEX+y}
18813then :
18814  printf %s "(cached) " >&6
18815else $as_nop
18816  case $DX_LATEX in
18817  [\\/]* | ?:[\\/]*)
18818  ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
18819  ;;
18820  *)
18821  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18822for as_dir in $PATH
18823do
18824  IFS=$as_save_IFS
18825  case $as_dir in #(((
18826    '') as_dir=./ ;;
18827    */) ;;
18828    *) as_dir=$as_dir/ ;;
18829  esac
18830    for ac_exec_ext in '' $ac_executable_extensions; do
18831  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18832    ac_cv_path_DX_LATEX="$as_dir$ac_word$ac_exec_ext"
18833    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18834    break 2
18835  fi
18836done
18837  done
18838IFS=$as_save_IFS
18839
18840  ;;
18841esac
18842fi
18843DX_LATEX=$ac_cv_path_DX_LATEX
18844if test -n "$DX_LATEX"; then
18845  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
18846printf "%s\n" "$DX_LATEX" >&6; }
18847else
18848  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18849printf "%s\n" "no" >&6; }
18850fi
18851
18852
18853fi
18854if test -z "$ac_cv_path_DX_LATEX"; then
18855  ac_pt_DX_LATEX=$DX_LATEX
18856  # Extract the first word of "latex", so it can be a program name with args.
18857set dummy latex; ac_word=$2
18858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18859printf %s "checking for $ac_word... " >&6; }
18860if test ${ac_cv_path_ac_pt_DX_LATEX+y}
18861then :
18862  printf %s "(cached) " >&6
18863else $as_nop
18864  case $ac_pt_DX_LATEX in
18865  [\\/]* | ?:[\\/]*)
18866  ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
18867  ;;
18868  *)
18869  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18870for as_dir in $PATH
18871do
18872  IFS=$as_save_IFS
18873  case $as_dir in #(((
18874    '') as_dir=./ ;;
18875    */) ;;
18876    *) as_dir=$as_dir/ ;;
18877  esac
18878    for ac_exec_ext in '' $ac_executable_extensions; do
18879  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18880    ac_cv_path_ac_pt_DX_LATEX="$as_dir$ac_word$ac_exec_ext"
18881    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18882    break 2
18883  fi
18884done
18885  done
18886IFS=$as_save_IFS
18887
18888  ;;
18889esac
18890fi
18891ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
18892if test -n "$ac_pt_DX_LATEX"; then
18893  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
18894printf "%s\n" "$ac_pt_DX_LATEX" >&6; }
18895else
18896  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18897printf "%s\n" "no" >&6; }
18898fi
18899
18900  if test "x$ac_pt_DX_LATEX" = x; then
18901    DX_LATEX=""
18902  else
18903    case $cross_compiling:$ac_tool_warned in
18904yes:)
18905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18906printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18907ac_tool_warned=yes ;;
18908esac
18909    DX_LATEX=$ac_pt_DX_LATEX
18910  fi
18911else
18912  DX_LATEX="$ac_cv_path_DX_LATEX"
18913fi
18914
18915if test "$DX_FLAG_ps$DX_LATEX" = 1; then
18916    if test "xlatex" = "xdoxygen"; then
18917        as_fn_error $? "latex not found - will not generate doxygen PostScript documentation" "$LINENO" 5
18918    else
18919        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
18920printf "%s\n" "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
18921    fi
18922    DX_FLAG_ps=0
18923
18924fi
18925
18926
18927if test -n "$ac_tool_prefix"; then
18928  # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
18929set dummy ${ac_tool_prefix}makeindex; ac_word=$2
18930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18931printf %s "checking for $ac_word... " >&6; }
18932if test ${ac_cv_path_DX_MAKEINDEX+y}
18933then :
18934  printf %s "(cached) " >&6
18935else $as_nop
18936  case $DX_MAKEINDEX in
18937  [\\/]* | ?:[\\/]*)
18938  ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
18939  ;;
18940  *)
18941  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18942for as_dir in $PATH
18943do
18944  IFS=$as_save_IFS
18945  case $as_dir in #(((
18946    '') as_dir=./ ;;
18947    */) ;;
18948    *) as_dir=$as_dir/ ;;
18949  esac
18950    for ac_exec_ext in '' $ac_executable_extensions; do
18951  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18952    ac_cv_path_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext"
18953    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18954    break 2
18955  fi
18956done
18957  done
18958IFS=$as_save_IFS
18959
18960  ;;
18961esac
18962fi
18963DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
18964if test -n "$DX_MAKEINDEX"; then
18965  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
18966printf "%s\n" "$DX_MAKEINDEX" >&6; }
18967else
18968  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18969printf "%s\n" "no" >&6; }
18970fi
18971
18972
18973fi
18974if test -z "$ac_cv_path_DX_MAKEINDEX"; then
18975  ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
18976  # Extract the first word of "makeindex", so it can be a program name with args.
18977set dummy makeindex; ac_word=$2
18978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18979printf %s "checking for $ac_word... " >&6; }
18980if test ${ac_cv_path_ac_pt_DX_MAKEINDEX+y}
18981then :
18982  printf %s "(cached) " >&6
18983else $as_nop
18984  case $ac_pt_DX_MAKEINDEX in
18985  [\\/]* | ?:[\\/]*)
18986  ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
18987  ;;
18988  *)
18989  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18990for as_dir in $PATH
18991do
18992  IFS=$as_save_IFS
18993  case $as_dir in #(((
18994    '') as_dir=./ ;;
18995    */) ;;
18996    *) as_dir=$as_dir/ ;;
18997  esac
18998    for ac_exec_ext in '' $ac_executable_extensions; do
18999  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19000    ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext"
19001    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19002    break 2
19003  fi
19004done
19005  done
19006IFS=$as_save_IFS
19007
19008  ;;
19009esac
19010fi
19011ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
19012if test -n "$ac_pt_DX_MAKEINDEX"; then
19013  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
19014printf "%s\n" "$ac_pt_DX_MAKEINDEX" >&6; }
19015else
19016  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19017printf "%s\n" "no" >&6; }
19018fi
19019
19020  if test "x$ac_pt_DX_MAKEINDEX" = x; then
19021    DX_MAKEINDEX=""
19022  else
19023    case $cross_compiling:$ac_tool_warned in
19024yes:)
19025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19026printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19027ac_tool_warned=yes ;;
19028esac
19029    DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
19030  fi
19031else
19032  DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
19033fi
19034
19035if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
19036    if test "xmakeindex" = "xdoxygen"; then
19037        as_fn_error $? "makeindex not found - will not generate doxygen PostScript documentation" "$LINENO" 5
19038    else
19039        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
19040printf "%s\n" "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
19041    fi
19042    DX_FLAG_ps=0
19043
19044fi
19045
19046
19047if test -n "$ac_tool_prefix"; then
19048  # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
19049set dummy ${ac_tool_prefix}dvips; ac_word=$2
19050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19051printf %s "checking for $ac_word... " >&6; }
19052if test ${ac_cv_path_DX_DVIPS+y}
19053then :
19054  printf %s "(cached) " >&6
19055else $as_nop
19056  case $DX_DVIPS in
19057  [\\/]* | ?:[\\/]*)
19058  ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
19059  ;;
19060  *)
19061  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19062for as_dir in $PATH
19063do
19064  IFS=$as_save_IFS
19065  case $as_dir in #(((
19066    '') as_dir=./ ;;
19067    */) ;;
19068    *) as_dir=$as_dir/ ;;
19069  esac
19070    for ac_exec_ext in '' $ac_executable_extensions; do
19071  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19072    ac_cv_path_DX_DVIPS="$as_dir$ac_word$ac_exec_ext"
19073    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19074    break 2
19075  fi
19076done
19077  done
19078IFS=$as_save_IFS
19079
19080  ;;
19081esac
19082fi
19083DX_DVIPS=$ac_cv_path_DX_DVIPS
19084if test -n "$DX_DVIPS"; then
19085  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
19086printf "%s\n" "$DX_DVIPS" >&6; }
19087else
19088  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19089printf "%s\n" "no" >&6; }
19090fi
19091
19092
19093fi
19094if test -z "$ac_cv_path_DX_DVIPS"; then
19095  ac_pt_DX_DVIPS=$DX_DVIPS
19096  # Extract the first word of "dvips", so it can be a program name with args.
19097set dummy dvips; ac_word=$2
19098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19099printf %s "checking for $ac_word... " >&6; }
19100if test ${ac_cv_path_ac_pt_DX_DVIPS+y}
19101then :
19102  printf %s "(cached) " >&6
19103else $as_nop
19104  case $ac_pt_DX_DVIPS in
19105  [\\/]* | ?:[\\/]*)
19106  ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
19107  ;;
19108  *)
19109  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19110for as_dir in $PATH
19111do
19112  IFS=$as_save_IFS
19113  case $as_dir in #(((
19114    '') as_dir=./ ;;
19115    */) ;;
19116    *) as_dir=$as_dir/ ;;
19117  esac
19118    for ac_exec_ext in '' $ac_executable_extensions; do
19119  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19120    ac_cv_path_ac_pt_DX_DVIPS="$as_dir$ac_word$ac_exec_ext"
19121    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19122    break 2
19123  fi
19124done
19125  done
19126IFS=$as_save_IFS
19127
19128  ;;
19129esac
19130fi
19131ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
19132if test -n "$ac_pt_DX_DVIPS"; then
19133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
19134printf "%s\n" "$ac_pt_DX_DVIPS" >&6; }
19135else
19136  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19137printf "%s\n" "no" >&6; }
19138fi
19139
19140  if test "x$ac_pt_DX_DVIPS" = x; then
19141    DX_DVIPS=""
19142  else
19143    case $cross_compiling:$ac_tool_warned in
19144yes:)
19145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19146printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19147ac_tool_warned=yes ;;
19148esac
19149    DX_DVIPS=$ac_pt_DX_DVIPS
19150  fi
19151else
19152  DX_DVIPS="$ac_cv_path_DX_DVIPS"
19153fi
19154
19155if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
19156    if test "xdvips" = "xdoxygen"; then
19157        as_fn_error $? "dvips not found - will not generate doxygen PostScript documentation" "$LINENO" 5
19158    else
19159        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
19160printf "%s\n" "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
19161    fi
19162    DX_FLAG_ps=0
19163
19164fi
19165
19166
19167if test -n "$ac_tool_prefix"; then
19168  # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
19169set dummy ${ac_tool_prefix}egrep; ac_word=$2
19170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19171printf %s "checking for $ac_word... " >&6; }
19172if test ${ac_cv_path_DX_EGREP+y}
19173then :
19174  printf %s "(cached) " >&6
19175else $as_nop
19176  case $DX_EGREP in
19177  [\\/]* | ?:[\\/]*)
19178  ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
19179  ;;
19180  *)
19181  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19182for as_dir in $PATH
19183do
19184  IFS=$as_save_IFS
19185  case $as_dir in #(((
19186    '') as_dir=./ ;;
19187    */) ;;
19188    *) as_dir=$as_dir/ ;;
19189  esac
19190    for ac_exec_ext in '' $ac_executable_extensions; do
19191  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19192    ac_cv_path_DX_EGREP="$as_dir$ac_word$ac_exec_ext"
19193    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19194    break 2
19195  fi
19196done
19197  done
19198IFS=$as_save_IFS
19199
19200  ;;
19201esac
19202fi
19203DX_EGREP=$ac_cv_path_DX_EGREP
19204if test -n "$DX_EGREP"; then
19205  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
19206printf "%s\n" "$DX_EGREP" >&6; }
19207else
19208  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19209printf "%s\n" "no" >&6; }
19210fi
19211
19212
19213fi
19214if test -z "$ac_cv_path_DX_EGREP"; then
19215  ac_pt_DX_EGREP=$DX_EGREP
19216  # Extract the first word of "egrep", so it can be a program name with args.
19217set dummy egrep; ac_word=$2
19218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19219printf %s "checking for $ac_word... " >&6; }
19220if test ${ac_cv_path_ac_pt_DX_EGREP+y}
19221then :
19222  printf %s "(cached) " >&6
19223else $as_nop
19224  case $ac_pt_DX_EGREP in
19225  [\\/]* | ?:[\\/]*)
19226  ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
19227  ;;
19228  *)
19229  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19230for as_dir in $PATH
19231do
19232  IFS=$as_save_IFS
19233  case $as_dir in #(((
19234    '') as_dir=./ ;;
19235    */) ;;
19236    *) as_dir=$as_dir/ ;;
19237  esac
19238    for ac_exec_ext in '' $ac_executable_extensions; do
19239  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19240    ac_cv_path_ac_pt_DX_EGREP="$as_dir$ac_word$ac_exec_ext"
19241    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19242    break 2
19243  fi
19244done
19245  done
19246IFS=$as_save_IFS
19247
19248  ;;
19249esac
19250fi
19251ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
19252if test -n "$ac_pt_DX_EGREP"; then
19253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
19254printf "%s\n" "$ac_pt_DX_EGREP" >&6; }
19255else
19256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19257printf "%s\n" "no" >&6; }
19258fi
19259
19260  if test "x$ac_pt_DX_EGREP" = x; then
19261    DX_EGREP=""
19262  else
19263    case $cross_compiling:$ac_tool_warned in
19264yes:)
19265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19266printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19267ac_tool_warned=yes ;;
19268esac
19269    DX_EGREP=$ac_pt_DX_EGREP
19270  fi
19271else
19272  DX_EGREP="$ac_cv_path_DX_EGREP"
19273fi
19274
19275if test "$DX_FLAG_ps$DX_EGREP" = 1; then
19276    if test "xegrep" = "xdoxygen"; then
19277        as_fn_error $? "egrep not found - will not generate doxygen PostScript documentation" "$LINENO" 5
19278    else
19279        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
19280printf "%s\n" "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
19281    fi
19282    DX_FLAG_ps=0
19283
19284fi
19285
19286    :
19287fi
19288if test "$DX_FLAG_ps" = 1; then
19289
19290    :
19291else
19292
19293    :
19294fi
19295
19296
19297# PDF file generation:
19298
19299
19300
19301    # Check whether --enable-doxygen-pdf was given.
19302if test ${enable_doxygen_pdf+y}
19303then :
19304  enableval=$enable_doxygen_pdf;
19305case "$enableval" in
19306#(
19307y|Y|yes|Yes|YES)
19308    DX_FLAG_pdf=1
19309
19310
19311test "$DX_FLAG_doc" = "1" \
19312|| as_fn_error $? "doxygen-pdf requires doxygen-doc" "$LINENO" 5
19313
19314;; #(
19315n|N|no|No|NO)
19316    DX_FLAG_pdf=0
19317
19318;; #(
19319*)
19320    as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
19321;;
19322esac
19323
19324else $as_nop
19325
19326DX_FLAG_pdf=0
19327
19328
19329test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
19330
19331
19332
19333fi
19334
19335if test "$DX_FLAG_pdf" = 1; then
19336
19337if test -n "$ac_tool_prefix"; then
19338  # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
19339set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
19340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19341printf %s "checking for $ac_word... " >&6; }
19342if test ${ac_cv_path_DX_PDFLATEX+y}
19343then :
19344  printf %s "(cached) " >&6
19345else $as_nop
19346  case $DX_PDFLATEX in
19347  [\\/]* | ?:[\\/]*)
19348  ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
19349  ;;
19350  *)
19351  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19352for as_dir in $PATH
19353do
19354  IFS=$as_save_IFS
19355  case $as_dir in #(((
19356    '') as_dir=./ ;;
19357    */) ;;
19358    *) as_dir=$as_dir/ ;;
19359  esac
19360    for ac_exec_ext in '' $ac_executable_extensions; do
19361  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19362    ac_cv_path_DX_PDFLATEX="$as_dir$ac_word$ac_exec_ext"
19363    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19364    break 2
19365  fi
19366done
19367  done
19368IFS=$as_save_IFS
19369
19370  ;;
19371esac
19372fi
19373DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
19374if test -n "$DX_PDFLATEX"; then
19375  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
19376printf "%s\n" "$DX_PDFLATEX" >&6; }
19377else
19378  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19379printf "%s\n" "no" >&6; }
19380fi
19381
19382
19383fi
19384if test -z "$ac_cv_path_DX_PDFLATEX"; then
19385  ac_pt_DX_PDFLATEX=$DX_PDFLATEX
19386  # Extract the first word of "pdflatex", so it can be a program name with args.
19387set dummy pdflatex; ac_word=$2
19388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19389printf %s "checking for $ac_word... " >&6; }
19390if test ${ac_cv_path_ac_pt_DX_PDFLATEX+y}
19391then :
19392  printf %s "(cached) " >&6
19393else $as_nop
19394  case $ac_pt_DX_PDFLATEX in
19395  [\\/]* | ?:[\\/]*)
19396  ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
19397  ;;
19398  *)
19399  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19400for as_dir in $PATH
19401do
19402  IFS=$as_save_IFS
19403  case $as_dir in #(((
19404    '') as_dir=./ ;;
19405    */) ;;
19406    *) as_dir=$as_dir/ ;;
19407  esac
19408    for ac_exec_ext in '' $ac_executable_extensions; do
19409  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19410    ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir$ac_word$ac_exec_ext"
19411    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19412    break 2
19413  fi
19414done
19415  done
19416IFS=$as_save_IFS
19417
19418  ;;
19419esac
19420fi
19421ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
19422if test -n "$ac_pt_DX_PDFLATEX"; then
19423  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
19424printf "%s\n" "$ac_pt_DX_PDFLATEX" >&6; }
19425else
19426  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19427printf "%s\n" "no" >&6; }
19428fi
19429
19430  if test "x$ac_pt_DX_PDFLATEX" = x; then
19431    DX_PDFLATEX=""
19432  else
19433    case $cross_compiling:$ac_tool_warned in
19434yes:)
19435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19436printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19437ac_tool_warned=yes ;;
19438esac
19439    DX_PDFLATEX=$ac_pt_DX_PDFLATEX
19440  fi
19441else
19442  DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
19443fi
19444
19445if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
19446    if test "xpdflatex" = "xdoxygen"; then
19447        as_fn_error $? "pdflatex not found - will not generate doxygen PDF documentation" "$LINENO" 5
19448    else
19449        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
19450printf "%s\n" "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
19451    fi
19452    DX_FLAG_pdf=0
19453
19454fi
19455
19456
19457if test -n "$ac_tool_prefix"; then
19458  # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
19459set dummy ${ac_tool_prefix}makeindex; ac_word=$2
19460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19461printf %s "checking for $ac_word... " >&6; }
19462if test ${ac_cv_path_DX_MAKEINDEX+y}
19463then :
19464  printf %s "(cached) " >&6
19465else $as_nop
19466  case $DX_MAKEINDEX in
19467  [\\/]* | ?:[\\/]*)
19468  ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
19469  ;;
19470  *)
19471  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19472for as_dir in $PATH
19473do
19474  IFS=$as_save_IFS
19475  case $as_dir in #(((
19476    '') as_dir=./ ;;
19477    */) ;;
19478    *) as_dir=$as_dir/ ;;
19479  esac
19480    for ac_exec_ext in '' $ac_executable_extensions; do
19481  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19482    ac_cv_path_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext"
19483    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19484    break 2
19485  fi
19486done
19487  done
19488IFS=$as_save_IFS
19489
19490  ;;
19491esac
19492fi
19493DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
19494if test -n "$DX_MAKEINDEX"; then
19495  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
19496printf "%s\n" "$DX_MAKEINDEX" >&6; }
19497else
19498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19499printf "%s\n" "no" >&6; }
19500fi
19501
19502
19503fi
19504if test -z "$ac_cv_path_DX_MAKEINDEX"; then
19505  ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
19506  # Extract the first word of "makeindex", so it can be a program name with args.
19507set dummy makeindex; ac_word=$2
19508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19509printf %s "checking for $ac_word... " >&6; }
19510if test ${ac_cv_path_ac_pt_DX_MAKEINDEX+y}
19511then :
19512  printf %s "(cached) " >&6
19513else $as_nop
19514  case $ac_pt_DX_MAKEINDEX in
19515  [\\/]* | ?:[\\/]*)
19516  ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
19517  ;;
19518  *)
19519  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19520for as_dir in $PATH
19521do
19522  IFS=$as_save_IFS
19523  case $as_dir in #(((
19524    '') as_dir=./ ;;
19525    */) ;;
19526    *) as_dir=$as_dir/ ;;
19527  esac
19528    for ac_exec_ext in '' $ac_executable_extensions; do
19529  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19530    ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext"
19531    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19532    break 2
19533  fi
19534done
19535  done
19536IFS=$as_save_IFS
19537
19538  ;;
19539esac
19540fi
19541ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
19542if test -n "$ac_pt_DX_MAKEINDEX"; then
19543  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
19544printf "%s\n" "$ac_pt_DX_MAKEINDEX" >&6; }
19545else
19546  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19547printf "%s\n" "no" >&6; }
19548fi
19549
19550  if test "x$ac_pt_DX_MAKEINDEX" = x; then
19551    DX_MAKEINDEX=""
19552  else
19553    case $cross_compiling:$ac_tool_warned in
19554yes:)
19555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19556printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19557ac_tool_warned=yes ;;
19558esac
19559    DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
19560  fi
19561else
19562  DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
19563fi
19564
19565if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
19566    if test "xmakeindex" = "xdoxygen"; then
19567        as_fn_error $? "makeindex not found - will not generate doxygen PDF documentation" "$LINENO" 5
19568    else
19569        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
19570printf "%s\n" "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
19571    fi
19572    DX_FLAG_pdf=0
19573
19574fi
19575
19576
19577if test -n "$ac_tool_prefix"; then
19578  # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
19579set dummy ${ac_tool_prefix}egrep; ac_word=$2
19580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19581printf %s "checking for $ac_word... " >&6; }
19582if test ${ac_cv_path_DX_EGREP+y}
19583then :
19584  printf %s "(cached) " >&6
19585else $as_nop
19586  case $DX_EGREP in
19587  [\\/]* | ?:[\\/]*)
19588  ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
19589  ;;
19590  *)
19591  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19592for as_dir in $PATH
19593do
19594  IFS=$as_save_IFS
19595  case $as_dir in #(((
19596    '') as_dir=./ ;;
19597    */) ;;
19598    *) as_dir=$as_dir/ ;;
19599  esac
19600    for ac_exec_ext in '' $ac_executable_extensions; do
19601  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19602    ac_cv_path_DX_EGREP="$as_dir$ac_word$ac_exec_ext"
19603    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19604    break 2
19605  fi
19606done
19607  done
19608IFS=$as_save_IFS
19609
19610  ;;
19611esac
19612fi
19613DX_EGREP=$ac_cv_path_DX_EGREP
19614if test -n "$DX_EGREP"; then
19615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
19616printf "%s\n" "$DX_EGREP" >&6; }
19617else
19618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19619printf "%s\n" "no" >&6; }
19620fi
19621
19622
19623fi
19624if test -z "$ac_cv_path_DX_EGREP"; then
19625  ac_pt_DX_EGREP=$DX_EGREP
19626  # Extract the first word of "egrep", so it can be a program name with args.
19627set dummy egrep; ac_word=$2
19628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19629printf %s "checking for $ac_word... " >&6; }
19630if test ${ac_cv_path_ac_pt_DX_EGREP+y}
19631then :
19632  printf %s "(cached) " >&6
19633else $as_nop
19634  case $ac_pt_DX_EGREP in
19635  [\\/]* | ?:[\\/]*)
19636  ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
19637  ;;
19638  *)
19639  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19640for as_dir in $PATH
19641do
19642  IFS=$as_save_IFS
19643  case $as_dir in #(((
19644    '') as_dir=./ ;;
19645    */) ;;
19646    *) as_dir=$as_dir/ ;;
19647  esac
19648    for ac_exec_ext in '' $ac_executable_extensions; do
19649  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19650    ac_cv_path_ac_pt_DX_EGREP="$as_dir$ac_word$ac_exec_ext"
19651    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19652    break 2
19653  fi
19654done
19655  done
19656IFS=$as_save_IFS
19657
19658  ;;
19659esac
19660fi
19661ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
19662if test -n "$ac_pt_DX_EGREP"; then
19663  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
19664printf "%s\n" "$ac_pt_DX_EGREP" >&6; }
19665else
19666  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19667printf "%s\n" "no" >&6; }
19668fi
19669
19670  if test "x$ac_pt_DX_EGREP" = x; then
19671    DX_EGREP=""
19672  else
19673    case $cross_compiling:$ac_tool_warned in
19674yes:)
19675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19676printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19677ac_tool_warned=yes ;;
19678esac
19679    DX_EGREP=$ac_pt_DX_EGREP
19680  fi
19681else
19682  DX_EGREP="$ac_cv_path_DX_EGREP"
19683fi
19684
19685if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
19686    if test "xegrep" = "xdoxygen"; then
19687        as_fn_error $? "egrep not found - will not generate doxygen PDF documentation" "$LINENO" 5
19688    else
19689        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
19690printf "%s\n" "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
19691    fi
19692    DX_FLAG_pdf=0
19693
19694fi
19695
19696    :
19697fi
19698if test "$DX_FLAG_pdf" = 1; then
19699
19700    :
19701else
19702
19703    :
19704fi
19705
19706
19707# LaTeX generation for PS and/or PDF:
19708if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
19709    DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
19710GENERATE_LATEX=YES
19711
19712else
19713    DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
19714GENERATE_LATEX=NO
19715
19716fi
19717
19718# Paper size for PS and/or PDF:
19719
19720case "$DOXYGEN_PAPER_SIZE" in
19721#(
19722"")
19723    DOXYGEN_PAPER_SIZE=""
19724
19725;; #(
19726a4wide|a4|letter|legal|executive)
19727    DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
19728PAPER_SIZE=$DOXYGEN_PAPER_SIZE
19729
19730;; #(
19731*)
19732    as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
19733;;
19734esac
19735
19736# Rules:
19737if test $DX_FLAG_html -eq 1
19738then :
19739  DX_SNIPPET_html="## ------------------------------- ##
19740## Rules specific for HTML output. ##
19741## ------------------------------- ##
19742
19743DX_CLEAN_HTML = \$(DX_DOCDIR)/html\\
19744                \$(DX_DOCDIR)/html
19745
19746"
19747else $as_nop
19748  DX_SNIPPET_html=""
19749fi
19750if test $DX_FLAG_chi -eq 1
19751then :
19752  DX_SNIPPET_chi="
19753DX_CLEAN_CHI = \$(DX_DOCDIR)/\$(PACKAGE).chi\\
19754               \$(DX_DOCDIR)/\$(PACKAGE).chi"
19755else $as_nop
19756  DX_SNIPPET_chi=""
19757fi
19758if test $DX_FLAG_chm -eq 1
19759then :
19760  DX_SNIPPET_chm="## ------------------------------ ##
19761## Rules specific for CHM output. ##
19762## ------------------------------ ##
19763
19764DX_CLEAN_CHM = \$(DX_DOCDIR)/chm\\
19765               \$(DX_DOCDIR)/chm\
19766${DX_SNIPPET_chi}
19767
19768"
19769else $as_nop
19770  DX_SNIPPET_chm=""
19771fi
19772if test $DX_FLAG_man -eq 1
19773then :
19774  DX_SNIPPET_man="## ------------------------------ ##
19775## Rules specific for MAN output. ##
19776## ------------------------------ ##
19777
19778DX_CLEAN_MAN = \$(DX_DOCDIR)/man\\
19779               \$(DX_DOCDIR)/man
19780
19781"
19782else $as_nop
19783  DX_SNIPPET_man=""
19784fi
19785if test $DX_FLAG_rtf -eq 1
19786then :
19787  DX_SNIPPET_rtf="## ------------------------------ ##
19788## Rules specific for RTF output. ##
19789## ------------------------------ ##
19790
19791DX_CLEAN_RTF = \$(DX_DOCDIR)/rtf\\
19792               \$(DX_DOCDIR)/rtf
19793
19794"
19795else $as_nop
19796  DX_SNIPPET_rtf=""
19797fi
19798if test $DX_FLAG_xml -eq 1
19799then :
19800  DX_SNIPPET_xml="## ------------------------------ ##
19801## Rules specific for XML output. ##
19802## ------------------------------ ##
19803
19804DX_CLEAN_XML = \$(DX_DOCDIR)/xml\\
19805               \$(DX_DOCDIR)/xml
19806
19807"
19808else $as_nop
19809  DX_SNIPPET_xml=""
19810fi
19811if test $DX_FLAG_ps -eq 1
19812then :
19813  DX_SNIPPET_ps="## ----------------------------- ##
19814## Rules specific for PS output. ##
19815## ----------------------------- ##
19816
19817DX_CLEAN_PS = \$(DX_DOCDIR)/\$(PACKAGE).ps\\
19818              \$(DX_DOCDIR)/\$(PACKAGE).ps
19819
19820DX_PS_GOAL = doxygen-ps
19821
19822doxygen-ps: \$(DX_CLEAN_PS)
19823
19824\$(DX_DOCDIR)/\$(PACKAGE).ps: \$(DX_DOCDIR)/\$(PACKAGE).tag
19825	\$(DX_V_LATEX)cd \$(DX_DOCDIR)/latex; \\
19826	rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \\
19827	\$(DX_LATEX) refman.tex; \\
19828	\$(DX_MAKEINDEX) refman.idx; \\
19829	\$(DX_LATEX) refman.tex; \\
19830	countdown=5; \\
19831	while \$(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \\
19832	                  refman.log > /dev/null 2>&1 \\
19833	   && test \$\$countdown -gt 0; do \\
19834	    \$(DX_LATEX) refman.tex; \\
19835            countdown=\`expr \$\$countdown - 1\`; \\
19836	done; \\
19837	\$(DX_DVIPS) -o ../\$(PACKAGE).ps refman.dvi
19838
19839"
19840else $as_nop
19841  DX_SNIPPET_ps=""
19842fi
19843if test $DX_FLAG_pdf -eq 1
19844then :
19845  DX_SNIPPET_pdf="## ------------------------------ ##
19846## Rules specific for PDF output. ##
19847## ------------------------------ ##
19848
19849DX_CLEAN_PDF = \$(DX_DOCDIR)/\$(PACKAGE).pdf\\
19850               \$(DX_DOCDIR)/\$(PACKAGE).pdf
19851
19852DX_PDF_GOAL = doxygen-pdf
19853
19854doxygen-pdf: \$(DX_CLEAN_PDF)
19855
19856\$(DX_DOCDIR)/\$(PACKAGE).pdf: \$(DX_DOCDIR)/\$(PACKAGE).tag
19857	\$(DX_V_LATEX)cd \$(DX_DOCDIR)/latex; \\
19858	rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \\
19859	\$(DX_PDFLATEX) refman.tex; \\
19860	\$(DX_MAKEINDEX) refman.idx; \\
19861	\$(DX_PDFLATEX) refman.tex; \\
19862	countdown=5; \\
19863	while \$(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \\
19864	                  refman.log > /dev/null 2>&1 \\
19865	   && test \$\$countdown -gt 0; do \\
19866	    \$(DX_PDFLATEX) refman.tex; \\
19867	    countdown=\`expr \$\$countdown - 1\`; \\
19868	done; \\
19869	mv refman.pdf ../\$(PACKAGE).pdf
19870
19871"
19872else $as_nop
19873  DX_SNIPPET_pdf=""
19874fi
19875if test $DX_FLAG_ps -eq 1 -o $DX_FLAG_pdf -eq 1
19876then :
19877  DX_SNIPPET_latex="## ------------------------------------------------- ##
19878## Rules specific for LaTeX (shared for PS and PDF). ##
19879## ------------------------------------------------- ##
19880
19881DX_V_LATEX = \$(_DX_v_LATEX_\$(V))
19882_DX_v_LATEX_ = \$(_DX_v_LATEX_\$(AM_DEFAULT_VERBOSITY))
19883_DX_v_LATEX_0 = @echo \"  LATEX \" \$@;
19884
19885DX_CLEAN_LATEX = \$(DX_DOCDIR)/latex\\
19886                 \$(DX_DOCDIR)/latex
19887
19888"
19889else $as_nop
19890  DX_SNIPPET_latex=""
19891fi
19892
19893if test $DX_FLAG_doc -eq 1
19894then :
19895  DX_SNIPPET_doc="## --------------------------------- ##
19896## Format-independent Doxygen rules. ##
19897## --------------------------------- ##
19898
19899${DX_SNIPPET_html}\
19900${DX_SNIPPET_chm}\
19901${DX_SNIPPET_man}\
19902${DX_SNIPPET_rtf}\
19903${DX_SNIPPET_xml}\
19904${DX_SNIPPET_ps}\
19905${DX_SNIPPET_pdf}\
19906${DX_SNIPPET_latex}\
19907DX_V_DXGEN = \$(_DX_v_DXGEN_\$(V))
19908_DX_v_DXGEN_ = \$(_DX_v_DXGEN_\$(AM_DEFAULT_VERBOSITY))
19909_DX_v_DXGEN_0 = @echo \"  DXGEN \" \$<;
19910
19911.PHONY: doxygen-run doxygen-doc \$(DX_PS_GOAL) \$(DX_PDF_GOAL)
19912
19913.INTERMEDIATE: doxygen-run \$(DX_PS_GOAL) \$(DX_PDF_GOAL)
19914
19915doxygen-run: \$(DX_DOCDIR)/\$(PACKAGE).tag
19916
19917doxygen-doc: doxygen-run \$(DX_PS_GOAL) \$(DX_PDF_GOAL)
19918
19919\$(DX_DOCDIR)/\$(PACKAGE).tag: \$(DX_CONFIG) \$(pkginclude_HEADERS)
19920	\$(A""M_V_at)rm -rf \$(DX_DOCDIR)
19921	\$(DX_V_DXGEN)\$(DX_ENV) DOCDIR=\$(DX_DOCDIR) \$(DX_DOXYGEN) \$(DX_CONFIG)
19922	\$(A""M_V_at)echo Timestamp >\$@
19923
19924DX_CLEANFILES = \\
19925	\$(DX_DOCDIR)/doxygen_sqlite3.db \\
19926	\$(DX_DOCDIR)/\$(PACKAGE).tag \\
19927	-r \\
19928	\$(DX_CLEAN_HTML) \\
19929	\$(DX_CLEAN_CHM) \\
19930	\$(DX_CLEAN_CHI) \\
19931	\$(DX_CLEAN_MAN) \\
19932	\$(DX_CLEAN_RTF) \\
19933	\$(DX_CLEAN_XML) \\
19934	\$(DX_CLEAN_PS) \\
19935	\$(DX_CLEAN_PDF) \\
19936	\$(DX_CLEAN_LATEX)
19937DX_INSTALL_DOCS = \\
19938	\$(DX_CLEAN_HTML) \\
19939	\$(DX_CLEAN_CHM) \\
19940	\$(DX_CLEAN_CHI) \\
19941	\$(DX_CLEAN_RTF) \\
19942	\$(DX_CLEAN_XML) \\
19943	\$(DX_CLEAN_PS) \\
19944	\$(DX_CLEAN_PDF) \\
19945	\$(DX_CLEAN_LATEX)
19946    "
19947else $as_nop
19948  DX_SNIPPET_doc=""
19949fi
19950DX_RULES="${DX_SNIPPET_doc}"
19951
19952
19953#For debugging:
19954#echo DX_FLAG_doc=$DX_FLAG_doc
19955#echo DX_FLAG_dot=$DX_FLAG_dot
19956#echo DX_FLAG_man=$DX_FLAG_man
19957#echo DX_FLAG_html=$DX_FLAG_html
19958#echo DX_FLAG_chm=$DX_FLAG_chm
19959#echo DX_FLAG_chi=$DX_FLAG_chi
19960#echo DX_FLAG_rtf=$DX_FLAG_rtf
19961#echo DX_FLAG_xml=$DX_FLAG_xml
19962#echo DX_FLAG_pdf=$DX_FLAG_pdf
19963#echo DX_FLAG_ps=$DX_FLAG_ps
19964#echo DX_ENV=$DX_ENV
19965
19966
19967 if test "$DX_FLAG_doc" = "1"; then
19968  ENABLE_DOXYGEN_TRUE=
19969  ENABLE_DOXYGEN_FALSE='#'
19970else
19971  ENABLE_DOXYGEN_TRUE='#'
19972  ENABLE_DOXYGEN_FALSE=
19973fi
19974
19975 if test "$DX_FLAG_man" = "1"; then
19976  ENABLE_DOXYGEN_MAN_TRUE=
19977  ENABLE_DOXYGEN_MAN_FALSE='#'
19978else
19979  ENABLE_DOXYGEN_MAN_TRUE='#'
19980  ENABLE_DOXYGEN_MAN_FALSE=
19981fi
19982
19983
19984ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc libevent_core.pc libevent_extra.pc"
19985
19986ac_config_files="$ac_config_files Makefile"
19987
19988cat >confcache <<\_ACEOF
19989# This file is a shell script that caches the results of configure
19990# tests run on this system so they can be shared between configure
19991# scripts and configure runs, see configure's option --config-cache.
19992# It is not useful on other systems.  If it contains results you don't
19993# want to keep, you may remove or edit it.
19994#
19995# config.status only pays attention to the cache file if you give it
19996# the --recheck option to rerun configure.
19997#
19998# `ac_cv_env_foo' variables (set or unset) will be overridden when
19999# loading this file, other *unset* `ac_cv_foo' will be assigned the
20000# following values.
20001
20002_ACEOF
20003
20004# The following way of writing the cache mishandles newlines in values,
20005# but we know of no workaround that is simple, portable, and efficient.
20006# So, we kill variables containing newlines.
20007# Ultrix sh set writes to stderr and can't be redirected directly,
20008# and sets the high bit in the cache file unless we assign to the vars.
20009(
20010  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20011    eval ac_val=\$$ac_var
20012    case $ac_val in #(
20013    *${as_nl}*)
20014      case $ac_var in #(
20015      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20016printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20017      esac
20018      case $ac_var in #(
20019      _ | IFS | as_nl) ;; #(
20020      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20021      *) { eval $ac_var=; unset $ac_var;} ;;
20022      esac ;;
20023    esac
20024  done
20025
20026  (set) 2>&1 |
20027    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20028    *${as_nl}ac_space=\ *)
20029      # `set' does not quote correctly, so add quotes: double-quote
20030      # substitution turns \\\\ into \\, and sed turns \\ into \.
20031      sed -n \
20032	"s/'/'\\\\''/g;
20033	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20034      ;; #(
20035    *)
20036      # `set' quotes correctly as required by POSIX, so do not add quotes.
20037      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20038      ;;
20039    esac |
20040    sort
20041) |
20042  sed '
20043     /^ac_cv_env_/b end
20044     t clear
20045     :clear
20046     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20047     t end
20048     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20049     :end' >>confcache
20050if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20051  if test -w "$cache_file"; then
20052    if test "x$cache_file" != "x/dev/null"; then
20053      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20054printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20055      if test ! -f "$cache_file" || test -h "$cache_file"; then
20056	cat confcache >"$cache_file"
20057      else
20058        case $cache_file in #(
20059        */* | ?:*)
20060	  mv -f confcache "$cache_file"$$ &&
20061	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20062        *)
20063	  mv -f confcache "$cache_file" ;;
20064	esac
20065      fi
20066    fi
20067  else
20068    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20069printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20070  fi
20071fi
20072rm -f confcache
20073
20074test "x$prefix" = xNONE && prefix=$ac_default_prefix
20075# Let make expand exec_prefix.
20076test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20077
20078DEFS=-DHAVE_CONFIG_H
20079
20080ac_libobjs=
20081ac_ltlibobjs=
20082U=
20083for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20084  # 1. Remove the extension, and $U if already installed.
20085  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20086  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20087  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20088  #    will be set to the directory where LIBOBJS objects are built.
20089  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20090  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20091done
20092LIBOBJS=$ac_libobjs
20093
20094LTLIBOBJS=$ac_ltlibobjs
20095
20096
20097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20098printf %s "checking that generated files are newer than configure... " >&6; }
20099   if test -n "$am_sleep_pid"; then
20100     # Hide warnings about reused PIDs.
20101     wait $am_sleep_pid 2>/dev/null
20102   fi
20103   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20104printf "%s\n" "done" >&6; }
20105 if test -n "$EXEEXT"; then
20106  am__EXEEXT_TRUE=
20107  am__EXEEXT_FALSE='#'
20108else
20109  am__EXEEXT_TRUE='#'
20110  am__EXEEXT_FALSE=
20111fi
20112
20113if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20114  as_fn_error $? "conditional \"AMDEP\" was never defined.
20115Usually this means the macro was only invoked conditionally." "$LINENO" 5
20116fi
20117if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20118  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20119Usually this means the macro was only invoked conditionally." "$LINENO" 5
20120fi
20121if test -z "${BUILD_SAMPLES_TRUE}" && test -z "${BUILD_SAMPLES_FALSE}"; then
20122  as_fn_error $? "conditional \"BUILD_SAMPLES\" was never defined.
20123Usually this means the macro was only invoked conditionally." "$LINENO" 5
20124fi
20125if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
20126  as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
20127Usually this means the macro was only invoked conditionally." "$LINENO" 5
20128fi
20129if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
20130  as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
20131Usually this means the macro was only invoked conditionally." "$LINENO" 5
20132fi
20133if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
20134  as_fn_error $? "conditional \"OPENSSL\" was never defined.
20135Usually this means the macro was only invoked conditionally." "$LINENO" 5
20136fi
20137if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
20138  as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
20139Usually this means the macro was only invoked conditionally." "$LINENO" 5
20140fi
20141if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
20142  as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
20143Usually this means the macro was only invoked conditionally." "$LINENO" 5
20144fi
20145if test -z "${BUILD_MIDIPIX_TRUE}" && test -z "${BUILD_MIDIPIX_FALSE}"; then
20146  as_fn_error $? "conditional \"BUILD_MIDIPIX\" was never defined.
20147Usually this means the macro was only invoked conditionally." "$LINENO" 5
20148fi
20149if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
20150  as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
20151Usually this means the macro was only invoked conditionally." "$LINENO" 5
20152fi
20153if test -z "${STRLCPY_IMPL_TRUE}" && test -z "${STRLCPY_IMPL_FALSE}"; then
20154  as_fn_error $? "conditional \"STRLCPY_IMPL\" was never defined.
20155Usually this means the macro was only invoked conditionally." "$LINENO" 5
20156fi
20157if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
20158  as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
20159Usually this means the macro was only invoked conditionally." "$LINENO" 5
20160fi
20161if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
20162  as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
20163Usually this means the macro was only invoked conditionally." "$LINENO" 5
20164fi
20165if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
20166  as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
20167Usually this means the macro was only invoked conditionally." "$LINENO" 5
20168fi
20169if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
20170  as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
20171Usually this means the macro was only invoked conditionally." "$LINENO" 5
20172fi
20173if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
20174  as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
20175Usually this means the macro was only invoked conditionally." "$LINENO" 5
20176fi
20177if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
20178  as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
20179Usually this means the macro was only invoked conditionally." "$LINENO" 5
20180fi
20181if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
20182  as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
20183Usually this means the macro was only invoked conditionally." "$LINENO" 5
20184fi
20185if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
20186  as_fn_error $? "conditional \"THREADS\" was never defined.
20187Usually this means the macro was only invoked conditionally." "$LINENO" 5
20188fi
20189if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
20190  as_fn_error $? "conditional \"PTHREADS\" was never defined.
20191Usually this means the macro was only invoked conditionally." "$LINENO" 5
20192fi
20193if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
20194  as_fn_error $? "conditional \"OPENSSL\" was never defined.
20195Usually this means the macro was only invoked conditionally." "$LINENO" 5
20196fi
20197if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
20198  as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
20199Usually this means the macro was only invoked conditionally." "$LINENO" 5
20200fi
20201if test -z "${ENABLE_DOXYGEN_TRUE}" && test -z "${ENABLE_DOXYGEN_FALSE}"; then
20202  as_fn_error $? "conditional \"ENABLE_DOXYGEN\" was never defined.
20203Usually this means the macro was only invoked conditionally." "$LINENO" 5
20204fi
20205if test -z "${ENABLE_DOXYGEN_MAN_TRUE}" && test -z "${ENABLE_DOXYGEN_MAN_FALSE}"; then
20206  as_fn_error $? "conditional \"ENABLE_DOXYGEN_MAN\" was never defined.
20207Usually this means the macro was only invoked conditionally." "$LINENO" 5
20208fi
20209
20210: "${CONFIG_STATUS=./config.status}"
20211ac_write_fail=0
20212ac_clean_files_save=$ac_clean_files
20213ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20215printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20216as_write_fail=0
20217cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20218#! $SHELL
20219# Generated by $as_me.
20220# Run this file to recreate the current configuration.
20221# Compiler output produced by configure, useful for debugging
20222# configure, is in config.log if it exists.
20223
20224debug=false
20225ac_cs_recheck=false
20226ac_cs_silent=false
20227
20228SHELL=\${CONFIG_SHELL-$SHELL}
20229export SHELL
20230_ASEOF
20231cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20232## -------------------- ##
20233## M4sh Initialization. ##
20234## -------------------- ##
20235
20236# Be more Bourne compatible
20237DUALCASE=1; export DUALCASE # for MKS sh
20238as_nop=:
20239if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20240then :
20241  emulate sh
20242  NULLCMD=:
20243  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20244  # is contrary to our usage.  Disable this feature.
20245  alias -g '${1+"$@"}'='"$@"'
20246  setopt NO_GLOB_SUBST
20247else $as_nop
20248  case `(set -o) 2>/dev/null` in #(
20249  *posix*) :
20250    set -o posix ;; #(
20251  *) :
20252     ;;
20253esac
20254fi
20255
20256
20257
20258# Reset variables that may have inherited troublesome values from
20259# the environment.
20260
20261# IFS needs to be set, to space, tab, and newline, in precisely that order.
20262# (If _AS_PATH_WALK were called with IFS unset, it would have the
20263# side effect of setting IFS to empty, thus disabling word splitting.)
20264# Quoting is to prevent editors from complaining about space-tab.
20265as_nl='
20266'
20267export as_nl
20268IFS=" ""	$as_nl"
20269
20270PS1='$ '
20271PS2='> '
20272PS4='+ '
20273
20274# Ensure predictable behavior from utilities with locale-dependent output.
20275LC_ALL=C
20276export LC_ALL
20277LANGUAGE=C
20278export LANGUAGE
20279
20280# We cannot yet rely on "unset" to work, but we need these variables
20281# to be unset--not just set to an empty or harmless value--now, to
20282# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20283# also avoids known problems related to "unset" and subshell syntax
20284# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20285for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20286do eval test \${$as_var+y} \
20287  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20288done
20289
20290# Ensure that fds 0, 1, and 2 are open.
20291if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20292if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20293if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20294
20295# The user is always right.
20296if ${PATH_SEPARATOR+false} :; then
20297  PATH_SEPARATOR=:
20298  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20299    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20300      PATH_SEPARATOR=';'
20301  }
20302fi
20303
20304
20305# Find who we are.  Look in the path if we contain no directory separator.
20306as_myself=
20307case $0 in #((
20308  *[\\/]* ) as_myself=$0 ;;
20309  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20310for as_dir in $PATH
20311do
20312  IFS=$as_save_IFS
20313  case $as_dir in #(((
20314    '') as_dir=./ ;;
20315    */) ;;
20316    *) as_dir=$as_dir/ ;;
20317  esac
20318    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20319  done
20320IFS=$as_save_IFS
20321
20322     ;;
20323esac
20324# We did not find ourselves, most probably we were run as `sh COMMAND'
20325# in which case we are not to be found in the path.
20326if test "x$as_myself" = x; then
20327  as_myself=$0
20328fi
20329if test ! -f "$as_myself"; then
20330  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20331  exit 1
20332fi
20333
20334
20335
20336# as_fn_error STATUS ERROR [LINENO LOG_FD]
20337# ----------------------------------------
20338# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20339# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20340# script with STATUS, using 1 if that was 0.
20341as_fn_error ()
20342{
20343  as_status=$1; test $as_status -eq 0 && as_status=1
20344  if test "$4"; then
20345    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20346    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20347  fi
20348  printf "%s\n" "$as_me: error: $2" >&2
20349  as_fn_exit $as_status
20350} # as_fn_error
20351
20352
20353
20354# as_fn_set_status STATUS
20355# -----------------------
20356# Set $? to STATUS, without forking.
20357as_fn_set_status ()
20358{
20359  return $1
20360} # as_fn_set_status
20361
20362# as_fn_exit STATUS
20363# -----------------
20364# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20365as_fn_exit ()
20366{
20367  set +e
20368  as_fn_set_status $1
20369  exit $1
20370} # as_fn_exit
20371
20372# as_fn_unset VAR
20373# ---------------
20374# Portably unset VAR.
20375as_fn_unset ()
20376{
20377  { eval $1=; unset $1;}
20378}
20379as_unset=as_fn_unset
20380
20381# as_fn_append VAR VALUE
20382# ----------------------
20383# Append the text in VALUE to the end of the definition contained in VAR. Take
20384# advantage of any shell optimizations that allow amortized linear growth over
20385# repeated appends, instead of the typical quadratic growth present in naive
20386# implementations.
20387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20388then :
20389  eval 'as_fn_append ()
20390  {
20391    eval $1+=\$2
20392  }'
20393else $as_nop
20394  as_fn_append ()
20395  {
20396    eval $1=\$$1\$2
20397  }
20398fi # as_fn_append
20399
20400# as_fn_arith ARG...
20401# ------------------
20402# Perform arithmetic evaluation on the ARGs, and store the result in the
20403# global $as_val. Take advantage of shells that can avoid forks. The arguments
20404# must be portable across $(()) and expr.
20405if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20406then :
20407  eval 'as_fn_arith ()
20408  {
20409    as_val=$(( $* ))
20410  }'
20411else $as_nop
20412  as_fn_arith ()
20413  {
20414    as_val=`expr "$@" || test $? -eq 1`
20415  }
20416fi # as_fn_arith
20417
20418
20419if expr a : '\(a\)' >/dev/null 2>&1 &&
20420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20421  as_expr=expr
20422else
20423  as_expr=false
20424fi
20425
20426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20427  as_basename=basename
20428else
20429  as_basename=false
20430fi
20431
20432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20433  as_dirname=dirname
20434else
20435  as_dirname=false
20436fi
20437
20438as_me=`$as_basename -- "$0" ||
20439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20440	 X"$0" : 'X\(//\)$' \| \
20441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20442printf "%s\n" X/"$0" |
20443    sed '/^.*\/\([^/][^/]*\)\/*$/{
20444	    s//\1/
20445	    q
20446	  }
20447	  /^X\/\(\/\/\)$/{
20448	    s//\1/
20449	    q
20450	  }
20451	  /^X\/\(\/\).*/{
20452	    s//\1/
20453	    q
20454	  }
20455	  s/.*/./; q'`
20456
20457# Avoid depending upon Character Ranges.
20458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20461as_cr_digits='0123456789'
20462as_cr_alnum=$as_cr_Letters$as_cr_digits
20463
20464
20465# Determine whether it's possible to make 'echo' print without a newline.
20466# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20467# for compatibility with existing Makefiles.
20468ECHO_C= ECHO_N= ECHO_T=
20469case `echo -n x` in #(((((
20470-n*)
20471  case `echo 'xy\c'` in
20472  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20473  xy)  ECHO_C='\c';;
20474  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20475       ECHO_T='	';;
20476  esac;;
20477*)
20478  ECHO_N='-n';;
20479esac
20480
20481# For backward compatibility with old third-party macros, we provide
20482# the shell variables $as_echo and $as_echo_n.  New code should use
20483# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20484as_echo='printf %s\n'
20485as_echo_n='printf %s'
20486
20487rm -f conf$$ conf$$.exe conf$$.file
20488if test -d conf$$.dir; then
20489  rm -f conf$$.dir/conf$$.file
20490else
20491  rm -f conf$$.dir
20492  mkdir conf$$.dir 2>/dev/null
20493fi
20494if (echo >conf$$.file) 2>/dev/null; then
20495  if ln -s conf$$.file conf$$ 2>/dev/null; then
20496    as_ln_s='ln -s'
20497    # ... but there are two gotchas:
20498    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20499    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20500    # In both cases, we have to default to `cp -pR'.
20501    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20502      as_ln_s='cp -pR'
20503  elif ln conf$$.file conf$$ 2>/dev/null; then
20504    as_ln_s=ln
20505  else
20506    as_ln_s='cp -pR'
20507  fi
20508else
20509  as_ln_s='cp -pR'
20510fi
20511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20512rmdir conf$$.dir 2>/dev/null
20513
20514
20515# as_fn_mkdir_p
20516# -------------
20517# Create "$as_dir" as a directory, including parents if necessary.
20518as_fn_mkdir_p ()
20519{
20520
20521  case $as_dir in #(
20522  -*) as_dir=./$as_dir;;
20523  esac
20524  test -d "$as_dir" || eval $as_mkdir_p || {
20525    as_dirs=
20526    while :; do
20527      case $as_dir in #(
20528      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20529      *) as_qdir=$as_dir;;
20530      esac
20531      as_dirs="'$as_qdir' $as_dirs"
20532      as_dir=`$as_dirname -- "$as_dir" ||
20533$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20534	 X"$as_dir" : 'X\(//\)[^/]' \| \
20535	 X"$as_dir" : 'X\(//\)$' \| \
20536	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20537printf "%s\n" X"$as_dir" |
20538    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20539	    s//\1/
20540	    q
20541	  }
20542	  /^X\(\/\/\)[^/].*/{
20543	    s//\1/
20544	    q
20545	  }
20546	  /^X\(\/\/\)$/{
20547	    s//\1/
20548	    q
20549	  }
20550	  /^X\(\/\).*/{
20551	    s//\1/
20552	    q
20553	  }
20554	  s/.*/./; q'`
20555      test -d "$as_dir" && break
20556    done
20557    test -z "$as_dirs" || eval "mkdir $as_dirs"
20558  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20559
20560
20561} # as_fn_mkdir_p
20562if mkdir -p . 2>/dev/null; then
20563  as_mkdir_p='mkdir -p "$as_dir"'
20564else
20565  test -d ./-p && rmdir ./-p
20566  as_mkdir_p=false
20567fi
20568
20569
20570# as_fn_executable_p FILE
20571# -----------------------
20572# Test if FILE is an executable regular file.
20573as_fn_executable_p ()
20574{
20575  test -f "$1" && test -x "$1"
20576} # as_fn_executable_p
20577as_test_x='test -x'
20578as_executable_p=as_fn_executable_p
20579
20580# Sed expression to map a string onto a valid CPP name.
20581as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20582
20583# Sed expression to map a string onto a valid variable name.
20584as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20585
20586
20587exec 6>&1
20588## ----------------------------------- ##
20589## Main body of $CONFIG_STATUS script. ##
20590## ----------------------------------- ##
20591_ASEOF
20592test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20593
20594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20595# Save the log message, to keep $0 and so on meaningful, and to
20596# report actual input values of CONFIG_FILES etc. instead of their
20597# values after options handling.
20598ac_log="
20599This file was extended by libevent $as_me 2.1.12-stable, which was
20600generated by GNU Autoconf 2.71.  Invocation command line was
20601
20602  CONFIG_FILES    = $CONFIG_FILES
20603  CONFIG_HEADERS  = $CONFIG_HEADERS
20604  CONFIG_LINKS    = $CONFIG_LINKS
20605  CONFIG_COMMANDS = $CONFIG_COMMANDS
20606  $ $0 $@
20607
20608on `(hostname || uname -n) 2>/dev/null | sed 1q`
20609"
20610
20611_ACEOF
20612
20613case $ac_config_files in *"
20614"*) set x $ac_config_files; shift; ac_config_files=$*;;
20615esac
20616
20617case $ac_config_headers in *"
20618"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20619esac
20620
20621
20622cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20623# Files that config.status was made for.
20624config_files="$ac_config_files"
20625config_headers="$ac_config_headers"
20626config_commands="$ac_config_commands"
20627
20628_ACEOF
20629
20630cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20631ac_cs_usage="\
20632\`$as_me' instantiates files and other configuration actions
20633from templates according to the current configuration.  Unless the files
20634and actions are specified as TAGs, all are instantiated by default.
20635
20636Usage: $0 [OPTION]... [TAG]...
20637
20638  -h, --help       print this help, then exit
20639  -V, --version    print version number and configuration settings, then exit
20640      --config     print configuration, then exit
20641  -q, --quiet, --silent
20642                   do not print progress messages
20643  -d, --debug      don't remove temporary files
20644      --recheck    update $as_me by reconfiguring in the same conditions
20645      --file=FILE[:TEMPLATE]
20646                   instantiate the configuration file FILE
20647      --header=FILE[:TEMPLATE]
20648                   instantiate the configuration header FILE
20649
20650Configuration files:
20651$config_files
20652
20653Configuration headers:
20654$config_headers
20655
20656Configuration commands:
20657$config_commands
20658
20659Report bugs to the package provider."
20660
20661_ACEOF
20662ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20663ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20664cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20665ac_cs_config='$ac_cs_config_escaped'
20666ac_cs_version="\\
20667libevent config.status 2.1.12-stable
20668configured by $0, generated by GNU Autoconf 2.71,
20669  with options \\"\$ac_cs_config\\"
20670
20671Copyright (C) 2021 Free Software Foundation, Inc.
20672This config.status script is free software; the Free Software Foundation
20673gives unlimited permission to copy, distribute and modify it."
20674
20675ac_pwd='$ac_pwd'
20676srcdir='$srcdir'
20677INSTALL='$INSTALL'
20678MKDIR_P='$MKDIR_P'
20679AWK='$AWK'
20680test -n "\$AWK" || AWK=awk
20681_ACEOF
20682
20683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20684# The default lists apply if the user does not specify any file.
20685ac_need_defaults=:
20686while test $# != 0
20687do
20688  case $1 in
20689  --*=?*)
20690    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20691    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20692    ac_shift=:
20693    ;;
20694  --*=)
20695    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20696    ac_optarg=
20697    ac_shift=:
20698    ;;
20699  *)
20700    ac_option=$1
20701    ac_optarg=$2
20702    ac_shift=shift
20703    ;;
20704  esac
20705
20706  case $ac_option in
20707  # Handling of the options.
20708  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20709    ac_cs_recheck=: ;;
20710  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20711    printf "%s\n" "$ac_cs_version"; exit ;;
20712  --config | --confi | --conf | --con | --co | --c )
20713    printf "%s\n" "$ac_cs_config"; exit ;;
20714  --debug | --debu | --deb | --de | --d | -d )
20715    debug=: ;;
20716  --file | --fil | --fi | --f )
20717    $ac_shift
20718    case $ac_optarg in
20719    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20720    '') as_fn_error $? "missing file argument" ;;
20721    esac
20722    as_fn_append CONFIG_FILES " '$ac_optarg'"
20723    ac_need_defaults=false;;
20724  --header | --heade | --head | --hea )
20725    $ac_shift
20726    case $ac_optarg in
20727    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20728    esac
20729    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20730    ac_need_defaults=false;;
20731  --he | --h)
20732    # Conflict between --help and --header
20733    as_fn_error $? "ambiguous option: \`$1'
20734Try \`$0 --help' for more information.";;
20735  --help | --hel | -h )
20736    printf "%s\n" "$ac_cs_usage"; exit ;;
20737  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20738  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20739    ac_cs_silent=: ;;
20740
20741  # This is an error.
20742  -*) as_fn_error $? "unrecognized option: \`$1'
20743Try \`$0 --help' for more information." ;;
20744
20745  *) as_fn_append ac_config_targets " $1"
20746     ac_need_defaults=false ;;
20747
20748  esac
20749  shift
20750done
20751
20752ac_configure_extra_args=
20753
20754if $ac_cs_silent; then
20755  exec 6>/dev/null
20756  ac_configure_extra_args="$ac_configure_extra_args --silent"
20757fi
20758
20759_ACEOF
20760cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20761if \$ac_cs_recheck; then
20762  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20763  shift
20764  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20765  CONFIG_SHELL='$SHELL'
20766  export CONFIG_SHELL
20767  exec "\$@"
20768fi
20769
20770_ACEOF
20771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20772exec 5>>config.log
20773{
20774  echo
20775  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20776## Running $as_me. ##
20777_ASBOX
20778  printf "%s\n" "$ac_log"
20779} >&5
20780
20781_ACEOF
20782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20783#
20784# INIT-COMMANDS
20785#
20786AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20787
20788
20789# The HP-UX ksh and POSIX shell print the target directory to stdout
20790# if CDPATH is set.
20791(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20792
20793sed_quote_subst='$sed_quote_subst'
20794double_quote_subst='$double_quote_subst'
20795delay_variable_subst='$delay_variable_subst'
20796macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20797macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20798enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20799enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20800pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20801enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20802shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20803SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20804ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20805PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20806host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20807host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20808host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20809build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20810build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20811build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20812SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20813Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20814GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20815EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20816FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20817LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20818NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20819LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20820max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20821ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20822exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20823lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20824lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20825lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20826lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20827lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20828reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20829reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20830OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20831deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20832file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20833file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20834want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20835DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20836sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20837AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20838AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20839archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20840STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20841RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20842old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20843old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20844old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20845lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20846CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20847CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20848compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20849GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20850lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20851lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20852lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20853lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20854lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
20855lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20856nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20857lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20858lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20859objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20860MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20861lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20862lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20863lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20864lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20865lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20866need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20867MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20868DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20869NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20870LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20871OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20872OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20873libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20874shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20875extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20876archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20877enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20878export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20879whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20880compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20881old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20882old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20883archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20884archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20885module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20886module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20887with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20888allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20889no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20890hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20891hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20892hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20893hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20894hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20895hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20896hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20897inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20898link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20899always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20900export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20901exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20902include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20903prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20904postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20905file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20906variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20907need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20908need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20909version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20910runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20911shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20912shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20913libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20914library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20915soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20916install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20917postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20918postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20919finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20920finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20921hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20922sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20923configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20924configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20925hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20926enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20927enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20928enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20929old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20930striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20931
20932LTCC='$LTCC'
20933LTCFLAGS='$LTCFLAGS'
20934compiler='$compiler_DEFAULT'
20935
20936# A function that is used when there is no print builtin or printf.
20937func_fallback_echo ()
20938{
20939  eval 'cat <<_LTECHO_EOF
20940\$1
20941_LTECHO_EOF'
20942}
20943
20944# Quote evaled strings.
20945for var in SHELL \
20946ECHO \
20947PATH_SEPARATOR \
20948SED \
20949GREP \
20950EGREP \
20951FGREP \
20952LD \
20953NM \
20954LN_S \
20955lt_SP2NL \
20956lt_NL2SP \
20957reload_flag \
20958OBJDUMP \
20959deplibs_check_method \
20960file_magic_cmd \
20961file_magic_glob \
20962want_nocaseglob \
20963DLLTOOL \
20964sharedlib_from_linklib_cmd \
20965AR \
20966AR_FLAGS \
20967archiver_list_spec \
20968STRIP \
20969RANLIB \
20970CC \
20971CFLAGS \
20972compiler \
20973lt_cv_sys_global_symbol_pipe \
20974lt_cv_sys_global_symbol_to_cdecl \
20975lt_cv_sys_global_symbol_to_import \
20976lt_cv_sys_global_symbol_to_c_name_address \
20977lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20978lt_cv_nm_interface \
20979nm_file_list_spec \
20980lt_cv_truncate_bin \
20981lt_prog_compiler_no_builtin_flag \
20982lt_prog_compiler_pic \
20983lt_prog_compiler_wl \
20984lt_prog_compiler_static \
20985lt_cv_prog_compiler_c_o \
20986need_locks \
20987MANIFEST_TOOL \
20988DSYMUTIL \
20989NMEDIT \
20990LIPO \
20991OTOOL \
20992OTOOL64 \
20993shrext_cmds \
20994export_dynamic_flag_spec \
20995whole_archive_flag_spec \
20996compiler_needs_object \
20997with_gnu_ld \
20998allow_undefined_flag \
20999no_undefined_flag \
21000hardcode_libdir_flag_spec \
21001hardcode_libdir_separator \
21002exclude_expsyms \
21003include_expsyms \
21004file_list_spec \
21005variables_saved_for_relink \
21006libname_spec \
21007library_names_spec \
21008soname_spec \
21009install_override_mode \
21010finish_eval \
21011old_striplib \
21012striplib; do
21013    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21014    *[\\\\\\\`\\"\\\$]*)
21015      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21016      ;;
21017    *)
21018      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21019      ;;
21020    esac
21021done
21022
21023# Double-quote double-evaled strings.
21024for var in reload_cmds \
21025old_postinstall_cmds \
21026old_postuninstall_cmds \
21027old_archive_cmds \
21028extract_expsyms_cmds \
21029old_archive_from_new_cmds \
21030old_archive_from_expsyms_cmds \
21031archive_cmds \
21032archive_expsym_cmds \
21033module_cmds \
21034module_expsym_cmds \
21035export_symbols_cmds \
21036prelink_cmds \
21037postlink_cmds \
21038postinstall_cmds \
21039postuninstall_cmds \
21040finish_cmds \
21041sys_lib_search_path_spec \
21042configure_time_dlsearch_path \
21043configure_time_lt_sys_library_path; do
21044    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21045    *[\\\\\\\`\\"\\\$]*)
21046      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21047      ;;
21048    *)
21049      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21050      ;;
21051    esac
21052done
21053
21054ac_aux_dir='$ac_aux_dir'
21055
21056# See if we are running on zsh, and set the options that allow our
21057# commands through without removal of \ escapes INIT.
21058if test -n "\${ZSH_VERSION+set}"; then
21059   setopt NO_GLOB_SUBST
21060fi
21061
21062
21063    PACKAGE='$PACKAGE'
21064    VERSION='$VERSION'
21065    RM='$RM'
21066    ofile='$ofile'
21067
21068
21069
21070
21071_ACEOF
21072
21073cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21074
21075# Handling of arguments.
21076for ac_config_target in $ac_config_targets
21077do
21078  case $ac_config_target in
21079    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21080    "evconfig-private.h") CONFIG_HEADERS="$CONFIG_HEADERS evconfig-private.h:evconfig-private.h.in" ;;
21081    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21082    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21083    "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
21084    "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
21085    "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
21086    "libevent_core.pc") CONFIG_FILES="$CONFIG_FILES libevent_core.pc" ;;
21087    "libevent_extra.pc") CONFIG_FILES="$CONFIG_FILES libevent_extra.pc" ;;
21088    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21089
21090  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21091  esac
21092done
21093
21094
21095# If the user did not use the arguments to specify the items to instantiate,
21096# then the envvar interface is used.  Set only those that are not.
21097# We use the long form for the default assignment because of an extremely
21098# bizarre bug on SunOS 4.1.3.
21099if $ac_need_defaults; then
21100  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21101  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21102  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21103fi
21104
21105# Have a temporary directory for convenience.  Make it in the build tree
21106# simply because there is no reason against having it here, and in addition,
21107# creating and moving files from /tmp can sometimes cause problems.
21108# Hook for its removal unless debugging.
21109# Note that there is a small window in which the directory will not be cleaned:
21110# after its creation but before its name has been assigned to `$tmp'.
21111$debug ||
21112{
21113  tmp= ac_tmp=
21114  trap 'exit_status=$?
21115  : "${ac_tmp:=$tmp}"
21116  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21117' 0
21118  trap 'as_fn_exit 1' 1 2 13 15
21119}
21120# Create a (secure) tmp directory for tmp files.
21121
21122{
21123  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21124  test -d "$tmp"
21125}  ||
21126{
21127  tmp=./conf$$-$RANDOM
21128  (umask 077 && mkdir "$tmp")
21129} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21130ac_tmp=$tmp
21131
21132# Set up the scripts for CONFIG_FILES section.
21133# No need to generate them if there are no CONFIG_FILES.
21134# This happens for instance with `./config.status config.h'.
21135if test -n "$CONFIG_FILES"; then
21136
21137
21138ac_cr=`echo X | tr X '\015'`
21139# On cygwin, bash can eat \r inside `` if the user requested igncr.
21140# But we know of no other shell where ac_cr would be empty at this
21141# point, so we can use a bashism as a fallback.
21142if test "x$ac_cr" = x; then
21143  eval ac_cr=\$\'\\r\'
21144fi
21145ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21146if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21147  ac_cs_awk_cr='\\r'
21148else
21149  ac_cs_awk_cr=$ac_cr
21150fi
21151
21152echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21153_ACEOF
21154
21155
21156{
21157  echo "cat >conf$$subs.awk <<_ACEOF" &&
21158  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21159  echo "_ACEOF"
21160} >conf$$subs.sh ||
21161  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21162ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21163ac_delim='%!_!# '
21164for ac_last_try in false false false false false :; do
21165  . ./conf$$subs.sh ||
21166    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21167
21168  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21169  if test $ac_delim_n = $ac_delim_num; then
21170    break
21171  elif $ac_last_try; then
21172    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21173  else
21174    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21175  fi
21176done
21177rm -f conf$$subs.sh
21178
21179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21180cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21181_ACEOF
21182sed -n '
21183h
21184s/^/S["/; s/!.*/"]=/
21185p
21186g
21187s/^[^!]*!//
21188:repl
21189t repl
21190s/'"$ac_delim"'$//
21191t delim
21192:nl
21193h
21194s/\(.\{148\}\)..*/\1/
21195t more1
21196s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21197p
21198n
21199b repl
21200:more1
21201s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21202p
21203g
21204s/.\{148\}//
21205t nl
21206:delim
21207h
21208s/\(.\{148\}\)..*/\1/
21209t more2
21210s/["\\]/\\&/g; s/^/"/; s/$/"/
21211p
21212b
21213:more2
21214s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21215p
21216g
21217s/.\{148\}//
21218t delim
21219' <conf$$subs.awk | sed '
21220/^[^""]/{
21221  N
21222  s/\n//
21223}
21224' >>$CONFIG_STATUS || ac_write_fail=1
21225rm -f conf$$subs.awk
21226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21227_ACAWK
21228cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21229  for (key in S) S_is_set[key] = 1
21230  FS = ""
21231
21232}
21233{
21234  line = $ 0
21235  nfields = split(line, field, "@")
21236  substed = 0
21237  len = length(field[1])
21238  for (i = 2; i < nfields; i++) {
21239    key = field[i]
21240    keylen = length(key)
21241    if (S_is_set[key]) {
21242      value = S[key]
21243      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21244      len += length(value) + length(field[++i])
21245      substed = 1
21246    } else
21247      len += 1 + keylen
21248  }
21249
21250  print line
21251}
21252
21253_ACAWK
21254_ACEOF
21255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21256if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21257  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21258else
21259  cat
21260fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21261  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21262_ACEOF
21263
21264# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21265# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21266# trailing colons and then remove the whole line if VPATH becomes empty
21267# (actually we leave an empty line to preserve line numbers).
21268if test "x$srcdir" = x.; then
21269  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21270h
21271s///
21272s/^/:/
21273s/[	 ]*$/:/
21274s/:\$(srcdir):/:/g
21275s/:\${srcdir}:/:/g
21276s/:@srcdir@:/:/g
21277s/^:*//
21278s/:*$//
21279x
21280s/\(=[	 ]*\).*/\1/
21281G
21282s/\n//
21283s/^[^=]*=[	 ]*$//
21284}'
21285fi
21286
21287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21288fi # test -n "$CONFIG_FILES"
21289
21290# Set up the scripts for CONFIG_HEADERS section.
21291# No need to generate them if there are no CONFIG_HEADERS.
21292# This happens for instance with `./config.status Makefile'.
21293if test -n "$CONFIG_HEADERS"; then
21294cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21295BEGIN {
21296_ACEOF
21297
21298# Transform confdefs.h into an awk script `defines.awk', embedded as
21299# here-document in config.status, that substitutes the proper values into
21300# config.h.in to produce config.h.
21301
21302# Create a delimiter string that does not exist in confdefs.h, to ease
21303# handling of long lines.
21304ac_delim='%!_!# '
21305for ac_last_try in false false :; do
21306  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21307  if test -z "$ac_tt"; then
21308    break
21309  elif $ac_last_try; then
21310    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21311  else
21312    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21313  fi
21314done
21315
21316# For the awk script, D is an array of macro values keyed by name,
21317# likewise P contains macro parameters if any.  Preserve backslash
21318# newline sequences.
21319
21320ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21321sed -n '
21322s/.\{148\}/&'"$ac_delim"'/g
21323t rset
21324:rset
21325s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21326t def
21327d
21328:def
21329s/\\$//
21330t bsnl
21331s/["\\]/\\&/g
21332s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21333D["\1"]=" \3"/p
21334s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21335d
21336:bsnl
21337s/["\\]/\\&/g
21338s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21339D["\1"]=" \3\\\\\\n"\\/p
21340t cont
21341s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21342t cont
21343d
21344:cont
21345n
21346s/.\{148\}/&'"$ac_delim"'/g
21347t clear
21348:clear
21349s/\\$//
21350t bsnlc
21351s/["\\]/\\&/g; s/^/"/; s/$/"/p
21352d
21353:bsnlc
21354s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21355b cont
21356' <confdefs.h | sed '
21357s/'"$ac_delim"'/"\\\
21358"/g' >>$CONFIG_STATUS || ac_write_fail=1
21359
21360cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21361  for (key in D) D_is_set[key] = 1
21362  FS = ""
21363}
21364/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21365  line = \$ 0
21366  split(line, arg, " ")
21367  if (arg[1] == "#") {
21368    defundef = arg[2]
21369    mac1 = arg[3]
21370  } else {
21371    defundef = substr(arg[1], 2)
21372    mac1 = arg[2]
21373  }
21374  split(mac1, mac2, "(") #)
21375  macro = mac2[1]
21376  prefix = substr(line, 1, index(line, defundef) - 1)
21377  if (D_is_set[macro]) {
21378    # Preserve the white space surrounding the "#".
21379    print prefix "define", macro P[macro] D[macro]
21380    next
21381  } else {
21382    # Replace #undef with comments.  This is necessary, for example,
21383    # in the case of _POSIX_SOURCE, which is predefined and required
21384    # on some systems where configure will not decide to define it.
21385    if (defundef == "undef") {
21386      print "/*", prefix defundef, macro, "*/"
21387      next
21388    }
21389  }
21390}
21391{ print }
21392_ACAWK
21393_ACEOF
21394cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21395  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21396fi # test -n "$CONFIG_HEADERS"
21397
21398
21399eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21400shift
21401for ac_tag
21402do
21403  case $ac_tag in
21404  :[FHLC]) ac_mode=$ac_tag; continue;;
21405  esac
21406  case $ac_mode$ac_tag in
21407  :[FHL]*:*);;
21408  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21409  :[FH]-) ac_tag=-:-;;
21410  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21411  esac
21412  ac_save_IFS=$IFS
21413  IFS=:
21414  set x $ac_tag
21415  IFS=$ac_save_IFS
21416  shift
21417  ac_file=$1
21418  shift
21419
21420  case $ac_mode in
21421  :L) ac_source=$1;;
21422  :[FH])
21423    ac_file_inputs=
21424    for ac_f
21425    do
21426      case $ac_f in
21427      -) ac_f="$ac_tmp/stdin";;
21428      *) # Look for the file first in the build tree, then in the source tree
21429	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21430	 # because $ac_f cannot contain `:'.
21431	 test -f "$ac_f" ||
21432	   case $ac_f in
21433	   [\\/$]*) false;;
21434	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21435	   esac ||
21436	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21437      esac
21438      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21439      as_fn_append ac_file_inputs " '$ac_f'"
21440    done
21441
21442    # Let's still pretend it is `configure' which instantiates (i.e., don't
21443    # use $as_me), people would be surprised to read:
21444    #    /* config.h.  Generated by config.status.  */
21445    configure_input='Generated from '`
21446	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21447	`' by configure.'
21448    if test x"$ac_file" != x-; then
21449      configure_input="$ac_file.  $configure_input"
21450      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21451printf "%s\n" "$as_me: creating $ac_file" >&6;}
21452    fi
21453    # Neutralize special characters interpreted by sed in replacement strings.
21454    case $configure_input in #(
21455    *\&* | *\|* | *\\* )
21456       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21457       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21458    *) ac_sed_conf_input=$configure_input;;
21459    esac
21460
21461    case $ac_tag in
21462    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21463      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21464    esac
21465    ;;
21466  esac
21467
21468  ac_dir=`$as_dirname -- "$ac_file" ||
21469$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21470	 X"$ac_file" : 'X\(//\)[^/]' \| \
21471	 X"$ac_file" : 'X\(//\)$' \| \
21472	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21473printf "%s\n" X"$ac_file" |
21474    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21475	    s//\1/
21476	    q
21477	  }
21478	  /^X\(\/\/\)[^/].*/{
21479	    s//\1/
21480	    q
21481	  }
21482	  /^X\(\/\/\)$/{
21483	    s//\1/
21484	    q
21485	  }
21486	  /^X\(\/\).*/{
21487	    s//\1/
21488	    q
21489	  }
21490	  s/.*/./; q'`
21491  as_dir="$ac_dir"; as_fn_mkdir_p
21492  ac_builddir=.
21493
21494case "$ac_dir" in
21495.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21496*)
21497  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21498  # A ".." for each directory in $ac_dir_suffix.
21499  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21500  case $ac_top_builddir_sub in
21501  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21502  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21503  esac ;;
21504esac
21505ac_abs_top_builddir=$ac_pwd
21506ac_abs_builddir=$ac_pwd$ac_dir_suffix
21507# for backward compatibility:
21508ac_top_builddir=$ac_top_build_prefix
21509
21510case $srcdir in
21511  .)  # We are building in place.
21512    ac_srcdir=.
21513    ac_top_srcdir=$ac_top_builddir_sub
21514    ac_abs_top_srcdir=$ac_pwd ;;
21515  [\\/]* | ?:[\\/]* )  # Absolute name.
21516    ac_srcdir=$srcdir$ac_dir_suffix;
21517    ac_top_srcdir=$srcdir
21518    ac_abs_top_srcdir=$srcdir ;;
21519  *) # Relative name.
21520    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21521    ac_top_srcdir=$ac_top_build_prefix$srcdir
21522    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21523esac
21524ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21525
21526
21527  case $ac_mode in
21528  :F)
21529  #
21530  # CONFIG_FILE
21531  #
21532
21533  case $INSTALL in
21534  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21535  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21536  esac
21537  ac_MKDIR_P=$MKDIR_P
21538  case $MKDIR_P in
21539  [\\/$]* | ?:[\\/]* ) ;;
21540  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21541  esac
21542_ACEOF
21543
21544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21545# If the template does not know about datarootdir, expand it.
21546# FIXME: This hack should be removed a few years after 2.60.
21547ac_datarootdir_hack=; ac_datarootdir_seen=
21548ac_sed_dataroot='
21549/datarootdir/ {
21550  p
21551  q
21552}
21553/@datadir@/p
21554/@docdir@/p
21555/@infodir@/p
21556/@localedir@/p
21557/@mandir@/p'
21558case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21559*datarootdir*) ac_datarootdir_seen=yes;;
21560*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21561  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21562printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21563_ACEOF
21564cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21565  ac_datarootdir_hack='
21566  s&@datadir@&$datadir&g
21567  s&@docdir@&$docdir&g
21568  s&@infodir@&$infodir&g
21569  s&@localedir@&$localedir&g
21570  s&@mandir@&$mandir&g
21571  s&\\\${datarootdir}&$datarootdir&g' ;;
21572esac
21573_ACEOF
21574
21575# Neutralize VPATH when `$srcdir' = `.'.
21576# Shell code in configure.ac might set extrasub.
21577# FIXME: do we really want to maintain this feature?
21578cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21579ac_sed_extra="$ac_vpsub
21580$extrasub
21581_ACEOF
21582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21583:t
21584/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21585s|@configure_input@|$ac_sed_conf_input|;t t
21586s&@top_builddir@&$ac_top_builddir_sub&;t t
21587s&@top_build_prefix@&$ac_top_build_prefix&;t t
21588s&@srcdir@&$ac_srcdir&;t t
21589s&@abs_srcdir@&$ac_abs_srcdir&;t t
21590s&@top_srcdir@&$ac_top_srcdir&;t t
21591s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21592s&@builddir@&$ac_builddir&;t t
21593s&@abs_builddir@&$ac_abs_builddir&;t t
21594s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21595s&@INSTALL@&$ac_INSTALL&;t t
21596s&@MKDIR_P@&$ac_MKDIR_P&;t t
21597$ac_datarootdir_hack
21598"
21599eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21600  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21601
21602test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21603  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21604  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21605      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21607which seems to be undefined.  Please make sure it is defined" >&5
21608printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21609which seems to be undefined.  Please make sure it is defined" >&2;}
21610
21611  rm -f "$ac_tmp/stdin"
21612  case $ac_file in
21613  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21614  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21615  esac \
21616  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21617 ;;
21618  :H)
21619  #
21620  # CONFIG_HEADER
21621  #
21622  if test x"$ac_file" != x-; then
21623    {
21624      printf "%s\n" "/* $configure_input  */" >&1 \
21625      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21626    } >"$ac_tmp/config.h" \
21627      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21628    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21629      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21630printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21631    else
21632      rm -f "$ac_file"
21633      mv "$ac_tmp/config.h" "$ac_file" \
21634	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21635    fi
21636  else
21637    printf "%s\n" "/* $configure_input  */" >&1 \
21638      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21639      || as_fn_error $? "could not create -" "$LINENO" 5
21640  fi
21641# Compute "$ac_file"'s index in $config_headers.
21642_am_arg="$ac_file"
21643_am_stamp_count=1
21644for _am_header in $config_headers :; do
21645  case $_am_header in
21646    $_am_arg | $_am_arg:* )
21647      break ;;
21648    * )
21649      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21650  esac
21651done
21652echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21653$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21654	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21655	 X"$_am_arg" : 'X\(//\)$' \| \
21656	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21657printf "%s\n" X"$_am_arg" |
21658    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21659	    s//\1/
21660	    q
21661	  }
21662	  /^X\(\/\/\)[^/].*/{
21663	    s//\1/
21664	    q
21665	  }
21666	  /^X\(\/\/\)$/{
21667	    s//\1/
21668	    q
21669	  }
21670	  /^X\(\/\).*/{
21671	    s//\1/
21672	    q
21673	  }
21674	  s/.*/./; q'`/stamp-h$_am_stamp_count
21675 ;;
21676
21677  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21678printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21679 ;;
21680  esac
21681
21682
21683  case $ac_file$ac_mode in
21684    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21685  # Older Autoconf quotes --file arguments for eval, but not when files
21686  # are listed without --file.  Let's play safe and only enable the eval
21687  # if we detect the quoting.
21688  # TODO: see whether this extra hack can be removed once we start
21689  # requiring Autoconf 2.70 or later.
21690  case $CONFIG_FILES in #(
21691  *\'*) :
21692    eval set x "$CONFIG_FILES" ;; #(
21693  *) :
21694    set x $CONFIG_FILES ;; #(
21695  *) :
21696     ;;
21697esac
21698  shift
21699  # Used to flag and report bootstrapping failures.
21700  am_rc=0
21701  for am_mf
21702  do
21703    # Strip MF so we end up with the name of the file.
21704    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21705    # Check whether this is an Automake generated Makefile which includes
21706    # dependency-tracking related rules and includes.
21707    # Grep'ing the whole file directly is not great: AIX grep has a line
21708    # limit of 2048, but all sed's we know have understand at least 4000.
21709    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21710      || continue
21711    am_dirpart=`$as_dirname -- "$am_mf" ||
21712$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21713	 X"$am_mf" : 'X\(//\)[^/]' \| \
21714	 X"$am_mf" : 'X\(//\)$' \| \
21715	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21716printf "%s\n" X"$am_mf" |
21717    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21718	    s//\1/
21719	    q
21720	  }
21721	  /^X\(\/\/\)[^/].*/{
21722	    s//\1/
21723	    q
21724	  }
21725	  /^X\(\/\/\)$/{
21726	    s//\1/
21727	    q
21728	  }
21729	  /^X\(\/\).*/{
21730	    s//\1/
21731	    q
21732	  }
21733	  s/.*/./; q'`
21734    am_filepart=`$as_basename -- "$am_mf" ||
21735$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21736	 X"$am_mf" : 'X\(//\)$' \| \
21737	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21738printf "%s\n" X/"$am_mf" |
21739    sed '/^.*\/\([^/][^/]*\)\/*$/{
21740	    s//\1/
21741	    q
21742	  }
21743	  /^X\/\(\/\/\)$/{
21744	    s//\1/
21745	    q
21746	  }
21747	  /^X\/\(\/\).*/{
21748	    s//\1/
21749	    q
21750	  }
21751	  s/.*/./; q'`
21752    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21753      && sed -e '/# am--include-marker/d' "$am_filepart" \
21754        | $MAKE -f - am--depfiles" >&5
21755   (cd "$am_dirpart" \
21756      && sed -e '/# am--include-marker/d' "$am_filepart" \
21757        | $MAKE -f - am--depfiles) >&5 2>&5
21758   ac_status=$?
21759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); } || am_rc=$?
21761  done
21762  if test $am_rc -ne 0; then
21763    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21764printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21765as_fn_error $? "Something went wrong bootstrapping makefile fragments
21766    for automatic dependency tracking.  If GNU make was not used, consider
21767    re-running the configure script with MAKE=\"gmake\" (or whatever is
21768    necessary).  You can also try re-running configure with the
21769    '--disable-dependency-tracking' option to at least be able to build
21770    the package (albeit without support for automatic dependency tracking).
21771See \`config.log' for more details" "$LINENO" 5; }
21772  fi
21773  { am_dirpart=; unset am_dirpart;}
21774  { am_filepart=; unset am_filepart;}
21775  { am_mf=; unset am_mf;}
21776  { am_rc=; unset am_rc;}
21777  rm -f conftest-deps.mk
21778}
21779 ;;
21780    "libtool":C)
21781
21782    # See if we are running on zsh, and set the options that allow our
21783    # commands through without removal of \ escapes.
21784    if test -n "${ZSH_VERSION+set}"; then
21785      setopt NO_GLOB_SUBST
21786    fi
21787
21788    cfgfile=${ofile}T
21789    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21790    $RM "$cfgfile"
21791
21792    cat <<_LT_EOF >> "$cfgfile"
21793#! $SHELL
21794# Generated automatically by $as_me ($PACKAGE) $VERSION
21795# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21796# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21797
21798# Provide generalized library-building support services.
21799# Written by Gordon Matzigkeit, 1996
21800
21801# Copyright (C) 2014 Free Software Foundation, Inc.
21802# This is free software; see the source for copying conditions.  There is NO
21803# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21804
21805# GNU Libtool is free software; you can redistribute it and/or modify
21806# it under the terms of the GNU General Public License as published by
21807# the Free Software Foundation; either version 2 of of the License, or
21808# (at your option) any later version.
21809#
21810# As a special exception to the GNU General Public License, if you
21811# distribute this file as part of a program or library that is built
21812# using GNU Libtool, you may include this file under the  same
21813# distribution terms that you use for the rest of that program.
21814#
21815# GNU Libtool is distributed in the hope that it will be useful, but
21816# WITHOUT ANY WARRANTY; without even the implied warranty of
21817# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21818# GNU General Public License for more details.
21819#
21820# You should have received a copy of the GNU General Public License
21821# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21822
21823
21824# The names of the tagged configurations supported by this script.
21825available_tags=''
21826
21827# Configured defaults for sys_lib_dlsearch_path munging.
21828: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21829
21830# ### BEGIN LIBTOOL CONFIG
21831
21832# Which release of libtool.m4 was used?
21833macro_version=$macro_version
21834macro_revision=$macro_revision
21835
21836# Whether or not to build shared libraries.
21837build_libtool_libs=$enable_shared
21838
21839# Whether or not to build static libraries.
21840build_old_libs=$enable_static
21841
21842# What type of objects to build.
21843pic_mode=$pic_mode
21844
21845# Whether or not to optimize for fast installation.
21846fast_install=$enable_fast_install
21847
21848# Shared archive member basename,for filename based shared library versioning on AIX.
21849shared_archive_member_spec=$shared_archive_member_spec
21850
21851# Shell to use when invoking shell scripts.
21852SHELL=$lt_SHELL
21853
21854# An echo program that protects backslashes.
21855ECHO=$lt_ECHO
21856
21857# The PATH separator for the build system.
21858PATH_SEPARATOR=$lt_PATH_SEPARATOR
21859
21860# The host system.
21861host_alias=$host_alias
21862host=$host
21863host_os=$host_os
21864
21865# The build system.
21866build_alias=$build_alias
21867build=$build
21868build_os=$build_os
21869
21870# A sed program that does not truncate output.
21871SED=$lt_SED
21872
21873# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21874Xsed="\$SED -e 1s/^X//"
21875
21876# A grep program that handles long lines.
21877GREP=$lt_GREP
21878
21879# An ERE matcher.
21880EGREP=$lt_EGREP
21881
21882# A literal string matcher.
21883FGREP=$lt_FGREP
21884
21885# A BSD- or MS-compatible name lister.
21886NM=$lt_NM
21887
21888# Whether we need soft or hard links.
21889LN_S=$lt_LN_S
21890
21891# What is the maximum length of a command?
21892max_cmd_len=$max_cmd_len
21893
21894# Object file suffix (normally "o").
21895objext=$ac_objext
21896
21897# Executable file suffix (normally "").
21898exeext=$exeext
21899
21900# whether the shell understands "unset".
21901lt_unset=$lt_unset
21902
21903# turn spaces into newlines.
21904SP2NL=$lt_lt_SP2NL
21905
21906# turn newlines into spaces.
21907NL2SP=$lt_lt_NL2SP
21908
21909# convert \$build file names to \$host format.
21910to_host_file_cmd=$lt_cv_to_host_file_cmd
21911
21912# convert \$build files to toolchain format.
21913to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21914
21915# An object symbol dumper.
21916OBJDUMP=$lt_OBJDUMP
21917
21918# Method to check whether dependent libraries are shared objects.
21919deplibs_check_method=$lt_deplibs_check_method
21920
21921# Command to use when deplibs_check_method = "file_magic".
21922file_magic_cmd=$lt_file_magic_cmd
21923
21924# How to find potential files when deplibs_check_method = "file_magic".
21925file_magic_glob=$lt_file_magic_glob
21926
21927# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21928want_nocaseglob=$lt_want_nocaseglob
21929
21930# DLL creation program.
21931DLLTOOL=$lt_DLLTOOL
21932
21933# Command to associate shared and link libraries.
21934sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21935
21936# The archiver.
21937AR=$lt_AR
21938
21939# Flags to create an archive.
21940AR_FLAGS=$lt_AR_FLAGS
21941
21942# How to feed a file listing to the archiver.
21943archiver_list_spec=$lt_archiver_list_spec
21944
21945# A symbol stripping program.
21946STRIP=$lt_STRIP
21947
21948# Commands used to install an old-style archive.
21949RANLIB=$lt_RANLIB
21950old_postinstall_cmds=$lt_old_postinstall_cmds
21951old_postuninstall_cmds=$lt_old_postuninstall_cmds
21952
21953# Whether to use a lock for old archive extraction.
21954lock_old_archive_extraction=$lock_old_archive_extraction
21955
21956# A C compiler.
21957LTCC=$lt_CC
21958
21959# LTCC compiler flags.
21960LTCFLAGS=$lt_CFLAGS
21961
21962# Take the output of nm and produce a listing of raw symbols and C names.
21963global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21964
21965# Transform the output of nm in a proper C declaration.
21966global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21967
21968# Transform the output of nm into a list of symbols to manually relocate.
21969global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21970
21971# Transform the output of nm in a C name address pair.
21972global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21973
21974# Transform the output of nm in a C name address pair when lib prefix is needed.
21975global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21976
21977# The name lister interface.
21978nm_interface=$lt_lt_cv_nm_interface
21979
21980# Specify filename containing input files for \$NM.
21981nm_file_list_spec=$lt_nm_file_list_spec
21982
21983# The root where to search for dependent libraries,and where our libraries should be installed.
21984lt_sysroot=$lt_sysroot
21985
21986# Command to truncate a binary pipe.
21987lt_truncate_bin=$lt_lt_cv_truncate_bin
21988
21989# The name of the directory that contains temporary libtool files.
21990objdir=$objdir
21991
21992# Used to examine libraries when file_magic_cmd begins with "file".
21993MAGIC_CMD=$MAGIC_CMD
21994
21995# Must we lock files when doing compilation?
21996need_locks=$lt_need_locks
21997
21998# Manifest tool.
21999MANIFEST_TOOL=$lt_MANIFEST_TOOL
22000
22001# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22002DSYMUTIL=$lt_DSYMUTIL
22003
22004# Tool to change global to local symbols on Mac OS X.
22005NMEDIT=$lt_NMEDIT
22006
22007# Tool to manipulate fat objects and archives on Mac OS X.
22008LIPO=$lt_LIPO
22009
22010# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22011OTOOL=$lt_OTOOL
22012
22013# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22014OTOOL64=$lt_OTOOL64
22015
22016# Old archive suffix (normally "a").
22017libext=$libext
22018
22019# Shared library suffix (normally ".so").
22020shrext_cmds=$lt_shrext_cmds
22021
22022# The commands to extract the exported symbol list from a shared archive.
22023extract_expsyms_cmds=$lt_extract_expsyms_cmds
22024
22025# Variables whose values should be saved in libtool wrapper scripts and
22026# restored at link time.
22027variables_saved_for_relink=$lt_variables_saved_for_relink
22028
22029# Do we need the "lib" prefix for modules?
22030need_lib_prefix=$need_lib_prefix
22031
22032# Do we need a version for libraries?
22033need_version=$need_version
22034
22035# Library versioning type.
22036version_type=$version_type
22037
22038# Shared library runtime path variable.
22039runpath_var=$runpath_var
22040
22041# Shared library path variable.
22042shlibpath_var=$shlibpath_var
22043
22044# Is shlibpath searched before the hard-coded library search path?
22045shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22046
22047# Format of library name prefix.
22048libname_spec=$lt_libname_spec
22049
22050# List of archive names.  First name is the real one, the rest are links.
22051# The last name is the one that the linker finds with -lNAME
22052library_names_spec=$lt_library_names_spec
22053
22054# The coded name of the library, if different from the real name.
22055soname_spec=$lt_soname_spec
22056
22057# Permission mode override for installation of shared libraries.
22058install_override_mode=$lt_install_override_mode
22059
22060# Command to use after installation of a shared archive.
22061postinstall_cmds=$lt_postinstall_cmds
22062
22063# Command to use after uninstallation of a shared archive.
22064postuninstall_cmds=$lt_postuninstall_cmds
22065
22066# Commands used to finish a libtool library installation in a directory.
22067finish_cmds=$lt_finish_cmds
22068
22069# As "finish_cmds", except a single script fragment to be evaled but
22070# not shown.
22071finish_eval=$lt_finish_eval
22072
22073# Whether we should hardcode library paths into libraries.
22074hardcode_into_libs=$hardcode_into_libs
22075
22076# Compile-time system search path for libraries.
22077sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22078
22079# Detected run-time system search path for libraries.
22080sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22081
22082# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22083configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22084
22085# Whether dlopen is supported.
22086dlopen_support=$enable_dlopen
22087
22088# Whether dlopen of programs is supported.
22089dlopen_self=$enable_dlopen_self
22090
22091# Whether dlopen of statically linked programs is supported.
22092dlopen_self_static=$enable_dlopen_self_static
22093
22094# Commands to strip libraries.
22095old_striplib=$lt_old_striplib
22096striplib=$lt_striplib
22097
22098
22099# The linker used to build libraries.
22100LD=$lt_LD
22101
22102# How to create reloadable object files.
22103reload_flag=$lt_reload_flag
22104reload_cmds=$lt_reload_cmds
22105
22106# Commands used to build an old-style archive.
22107old_archive_cmds=$lt_old_archive_cmds
22108
22109# A language specific compiler.
22110CC=$lt_compiler
22111
22112# Is the compiler the GNU compiler?
22113with_gcc=$GCC
22114
22115# Compiler flag to turn off builtin functions.
22116no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22117
22118# Additional compiler flags for building library objects.
22119pic_flag=$lt_lt_prog_compiler_pic
22120
22121# How to pass a linker flag through the compiler.
22122wl=$lt_lt_prog_compiler_wl
22123
22124# Compiler flag to prevent dynamic linking.
22125link_static_flag=$lt_lt_prog_compiler_static
22126
22127# Does compiler simultaneously support -c and -o options?
22128compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22129
22130# Whether or not to add -lc for building shared libraries.
22131build_libtool_need_lc=$archive_cmds_need_lc
22132
22133# Whether or not to disallow shared libs when runtime libs are static.
22134allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22135
22136# Compiler flag to allow reflexive dlopens.
22137export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22138
22139# Compiler flag to generate shared objects directly from archives.
22140whole_archive_flag_spec=$lt_whole_archive_flag_spec
22141
22142# Whether the compiler copes with passing no objects directly.
22143compiler_needs_object=$lt_compiler_needs_object
22144
22145# Create an old-style archive from a shared archive.
22146old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22147
22148# Create a temporary old-style archive to link instead of a shared archive.
22149old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22150
22151# Commands used to build a shared archive.
22152archive_cmds=$lt_archive_cmds
22153archive_expsym_cmds=$lt_archive_expsym_cmds
22154
22155# Commands used to build a loadable module if different from building
22156# a shared archive.
22157module_cmds=$lt_module_cmds
22158module_expsym_cmds=$lt_module_expsym_cmds
22159
22160# Whether we are building with GNU ld or not.
22161with_gnu_ld=$lt_with_gnu_ld
22162
22163# Flag that allows shared libraries with undefined symbols to be built.
22164allow_undefined_flag=$lt_allow_undefined_flag
22165
22166# Flag that enforces no undefined symbols.
22167no_undefined_flag=$lt_no_undefined_flag
22168
22169# Flag to hardcode \$libdir into a binary during linking.
22170# This must work even if \$libdir does not exist
22171hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22172
22173# Whether we need a single "-rpath" flag with a separated argument.
22174hardcode_libdir_separator=$lt_hardcode_libdir_separator
22175
22176# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22177# DIR into the resulting binary.
22178hardcode_direct=$hardcode_direct
22179
22180# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22181# DIR into the resulting binary and the resulting library dependency is
22182# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22183# library is relocated.
22184hardcode_direct_absolute=$hardcode_direct_absolute
22185
22186# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22187# into the resulting binary.
22188hardcode_minus_L=$hardcode_minus_L
22189
22190# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22191# into the resulting binary.
22192hardcode_shlibpath_var=$hardcode_shlibpath_var
22193
22194# Set to "yes" if building a shared library automatically hardcodes DIR
22195# into the library and all subsequent libraries and executables linked
22196# against it.
22197hardcode_automatic=$hardcode_automatic
22198
22199# Set to yes if linker adds runtime paths of dependent libraries
22200# to runtime path list.
22201inherit_rpath=$inherit_rpath
22202
22203# Whether libtool must link a program against all its dependency libraries.
22204link_all_deplibs=$link_all_deplibs
22205
22206# Set to "yes" if exported symbols are required.
22207always_export_symbols=$always_export_symbols
22208
22209# The commands to list exported symbols.
22210export_symbols_cmds=$lt_export_symbols_cmds
22211
22212# Symbols that should not be listed in the preloaded symbols.
22213exclude_expsyms=$lt_exclude_expsyms
22214
22215# Symbols that must always be exported.
22216include_expsyms=$lt_include_expsyms
22217
22218# Commands necessary for linking programs (against libraries) with templates.
22219prelink_cmds=$lt_prelink_cmds
22220
22221# Commands necessary for finishing linking programs.
22222postlink_cmds=$lt_postlink_cmds
22223
22224# Specify filename containing input files.
22225file_list_spec=$lt_file_list_spec
22226
22227# How to hardcode a shared library path into an executable.
22228hardcode_action=$hardcode_action
22229
22230# ### END LIBTOOL CONFIG
22231
22232_LT_EOF
22233
22234    cat <<'_LT_EOF' >> "$cfgfile"
22235
22236# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22237
22238# func_munge_path_list VARIABLE PATH
22239# -----------------------------------
22240# VARIABLE is name of variable containing _space_ separated list of
22241# directories to be munged by the contents of PATH, which is string
22242# having a format:
22243# "DIR[:DIR]:"
22244#       string "DIR[ DIR]" will be prepended to VARIABLE
22245# ":DIR[:DIR]"
22246#       string "DIR[ DIR]" will be appended to VARIABLE
22247# "DIRP[:DIRP]::[DIRA:]DIRA"
22248#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22249#       "DIRA[ DIRA]" will be appended to VARIABLE
22250# "DIR[:DIR]"
22251#       VARIABLE will be replaced by "DIR[ DIR]"
22252func_munge_path_list ()
22253{
22254    case x$2 in
22255    x)
22256        ;;
22257    *:)
22258        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22259        ;;
22260    x:*)
22261        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22262        ;;
22263    *::*)
22264        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22265        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22266        ;;
22267    *)
22268        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22269        ;;
22270    esac
22271}
22272
22273
22274# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22275func_cc_basename ()
22276{
22277    for cc_temp in $*""; do
22278      case $cc_temp in
22279        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22280        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22281        \-*) ;;
22282        *) break;;
22283      esac
22284    done
22285    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22286}
22287
22288
22289# ### END FUNCTIONS SHARED WITH CONFIGURE
22290
22291_LT_EOF
22292
22293  case $host_os in
22294  aix3*)
22295    cat <<\_LT_EOF >> "$cfgfile"
22296# AIX sometimes has problems with the GCC collect2 program.  For some
22297# reason, if we set the COLLECT_NAMES environment variable, the problems
22298# vanish in a puff of smoke.
22299if test set != "${COLLECT_NAMES+set}"; then
22300  COLLECT_NAMES=
22301  export COLLECT_NAMES
22302fi
22303_LT_EOF
22304    ;;
22305  esac
22306
22307
22308
22309ltmain=$ac_aux_dir/ltmain.sh
22310
22311
22312  # We use sed instead of cat because bash on DJGPP gets confused if
22313  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22314  # text mode, it properly converts lines to CR/LF.  This bash problem
22315  # is reportedly fixed, but why not run on old versions too?
22316  sed '$q' "$ltmain" >> "$cfgfile" \
22317     || (rm -f "$cfgfile"; exit 1)
22318
22319   mv -f "$cfgfile" "$ofile" ||
22320    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22321  chmod +x "$ofile"
22322
22323 ;;
22324
22325  esac
22326done # for ac_tag
22327
22328
22329as_fn_exit 0
22330_ACEOF
22331ac_clean_files=$ac_clean_files_save
22332
22333test $ac_write_fail = 0 ||
22334  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22335
22336
22337# configure is writing to config.log, and then calls config.status.
22338# config.status does its own redirection, appending to config.log.
22339# Unfortunately, on DOS this fails, as config.log is still kept open
22340# by configure, so config.status won't be able to write to it; its
22341# output is simply discarded.  So we exec the FD to /dev/null,
22342# effectively closing config.log, so it can be properly (re)opened and
22343# appended to by config.status.  When coming back to configure, we
22344# need to make the FD available again.
22345if test "$no_create" != yes; then
22346  ac_cs_success=:
22347  ac_config_status_args=
22348  test "$silent" = yes &&
22349    ac_config_status_args="$ac_config_status_args --quiet"
22350  exec 5>/dev/null
22351  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22352  exec 5>>config.log
22353  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22354  # would make configure fail if this is the last instruction.
22355  $ac_cs_success || as_fn_exit 1
22356fi
22357if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22358  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22359printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22360fi
22361
22362
22363