1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libevent 2.1.12-stable.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    PATH=/empty FPATH=/empty; export PATH FPATH
206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='libevent'
589PACKAGE_TARNAME='libevent'
590PACKAGE_VERSION='2.1.12-stable'
591PACKAGE_STRING='libevent 2.1.12-stable'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="event.c"
596ac_default_prefix=/usr/local
597# Factoring default headers for most tests.
598ac_includes_default="\
599#include <stdio.h>
600#ifdef HAVE_SYS_TYPES_H
601# include <sys/types.h>
602#endif
603#ifdef HAVE_SYS_STAT_H
604# include <sys/stat.h>
605#endif
606#ifdef STDC_HEADERS
607# include <stdlib.h>
608# include <stddef.h>
609#else
610# ifdef HAVE_STDLIB_H
611#  include <stdlib.h>
612# endif
613#endif
614#ifdef HAVE_STRING_H
615# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616#  include <memory.h>
617# endif
618# include <string.h>
619#endif
620#ifdef HAVE_STRINGS_H
621# include <strings.h>
622#endif
623#ifdef HAVE_INTTYPES_H
624# include <inttypes.h>
625#endif
626#ifdef HAVE_STDINT_H
627# include <stdint.h>
628#endif
629#ifdef HAVE_UNISTD_H
630# include <unistd.h>
631#endif"
632
633ac_subst_vars='am__EXEEXT_FALSE
634am__EXEEXT_TRUE
635LTLIBOBJS
636ENABLE_DOXYGEN_MAN_FALSE
637ENABLE_DOXYGEN_MAN_TRUE
638ENABLE_DOXYGEN_FALSE
639ENABLE_DOXYGEN_TRUE
640DX_RULES
641PAPER_SIZE
642DOXYGEN_PAPER_SIZE
643GENERATE_LATEX
644DX_PDFLATEX
645DX_FLAG_pdf
646DX_EGREP
647DX_DVIPS
648DX_MAKEINDEX
649DX_LATEX
650DX_FLAG_ps
651DX_FLAG_html
652GENERATE_CHI
653DX_FLAG_chi
654GENERATE_HTMLHELP
655GENERATE_HTML
656HHC_PATH
657DX_HHC
658DX_FLAG_chm
659GENERATE_XML
660DX_FLAG_xml
661GENERATE_RTF
662DX_FLAG_rtf
663GENERATE_MAN
664DX_FLAG_man
665DOT_PATH
666HAVE_DOT
667DX_DOT
668DX_FLAG_dot
669PERL_PATH
670DX_PERL
671DX_DOXYGEN
672DX_FLAG_doc
673PROJECT
674SRCDIR
675DX_ENV
676DX_DOCDIR
677DX_CONFIG
678DX_PROJECT
679INSTALL_LIBEVENT_FALSE
680INSTALL_LIBEVENT_TRUE
681LIBEVENT_GC_SECTIONS
682PTHREADS_FALSE
683PTHREADS_TRUE
684THREADS_FALSE
685THREADS_TRUE
686PTHREAD_CFLAGS
687PTHREAD_LIBS
688PTHREAD_CC
689acx_pthread_config
690SIGNAL_SUPPORT_FALSE
691SIGNAL_SUPPORT_TRUE
692EVPORT_BACKEND_FALSE
693EVPORT_BACKEND_TRUE
694EPOLL_BACKEND_FALSE
695EPOLL_BACKEND_TRUE
696LIBOBJS
697KQUEUE_BACKEND_FALSE
698KQUEUE_BACKEND_TRUE
699DEVPOLL_BACKEND_FALSE
700DEVPOLL_BACKEND_TRUE
701POLL_BACKEND_FALSE
702POLL_BACKEND_TRUE
703SELECT_BACKEND_FALSE
704SELECT_BACKEND_TRUE
705STRLCPY_IMPL_FALSE
706STRLCPY_IMPL_TRUE
707BUILD_WITH_NO_UNDEFINED_FALSE
708BUILD_WITH_NO_UNDEFINED_TRUE
709BUILD_MIDIPIX_FALSE
710BUILD_MIDIPIX_TRUE
711BUILD_CYGWIN_FALSE
712BUILD_CYGWIN_TRUE
713BUILD_WIN32_FALSE
714BUILD_WIN32_TRUE
715OPENSSL_FALSE
716OPENSSL_TRUE
717OPENSSL_LIBS
718OPENSSL_INCS
719PKG_CONFIG
720OPENSSL_LIBADD
721EV_LIB_GDI
722EV_LIB_WS32
723ZLIB_REGRESS_FALSE
724ZLIB_REGRESS_TRUE
725ZLIB_LIBS
726BUILD_REGRESS_FALSE
727BUILD_REGRESS_TRUE
728BUILD_SAMPLES_FALSE
729BUILD_SAMPLES_TRUE
730LIBTOOL_DEPS
731LT_SYS_LIBRARY_PATH
732OTOOL64
733OTOOL
734LIPO
735NMEDIT
736DSYMUTIL
737MANIFEST_TOOL
738RANLIB
739ac_ct_AR
740AR
741DLLTOOL
742OBJDUMP
743NM
744ac_ct_DUMPBIN
745DUMPBIN
746LD
747FGREP
748LIBTOOL
749SED
750LN_S
751host_os
752host_vendor
753host_cpu
754host
755build_os
756build_vendor
757build_cpu
758build
759EGREP
760GREP
761CPP
762am__fastdepCC_FALSE
763am__fastdepCC_TRUE
764CCDEPMODE
765am__nodep
766AMDEPBACKSLASH
767AMDEP_FALSE
768AMDEP_TRUE
769am__include
770DEPDIR
771OBJEXT
772EXEEXT
773ac_ct_CC
774CPPFLAGS
775LDFLAGS
776CFLAGS
777CC
778AM_BACKSLASH
779AM_DEFAULT_VERBOSITY
780AM_DEFAULT_V
781AM_V
782am__untar
783am__tar
784AMTAR
785am__leading_dot
786SET_MAKE
787AWK
788mkdir_p
789MKDIR_P
790INSTALL_STRIP_PROGRAM
791STRIP
792install_sh
793MAKEINFO
794AUTOHEADER
795AUTOMAKE
796AUTOCONF
797ACLOCAL
798VERSION
799PACKAGE
800CYGPATH_W
801am__isrc
802INSTALL_DATA
803INSTALL_SCRIPT
804INSTALL_PROGRAM
805target_alias
806host_alias
807build_alias
808LIBS
809ECHO_T
810ECHO_N
811ECHO_C
812DEFS
813mandir
814localedir
815libdir
816psdir
817pdfdir
818dvidir
819htmldir
820infodir
821docdir
822oldincludedir
823includedir
824runstatedir
825localstatedir
826sharedstatedir
827sysconfdir
828datadir
829datarootdir
830libexecdir
831sbindir
832bindir
833program_transform_name
834prefix
835exec_prefix
836PACKAGE_URL
837PACKAGE_BUGREPORT
838PACKAGE_STRING
839PACKAGE_VERSION
840PACKAGE_TARNAME
841PACKAGE_NAME
842PATH_SEPARATOR
843SHELL
844am__quote'
845ac_subst_files=''
846ac_user_opts='
847enable_option_checking
848enable_silent_rules
849enable_dependency_tracking
850enable_gcc_warnings
851enable_gcc_hardening
852enable_thread_support
853enable_malloc_replacement
854enable_openssl
855enable_debug_mode
856enable_libevent_install
857enable_libevent_regress
858enable_samples
859enable_function_sections
860enable_verbose_debug
861enable_clock_gettime
862enable_shared
863enable_static
864with_pic
865enable_fast_install
866with_aix_soname
867with_gnu_ld
868with_sysroot
869enable_libtool_lock
870enable_largefile
871enable_doxygen_doc
872enable_doxygen_dot
873enable_doxygen_man
874enable_doxygen_rtf
875enable_doxygen_xml
876enable_doxygen_chm
877enable_doxygen_chi
878enable_doxygen_html
879enable_doxygen_ps
880enable_doxygen_pdf
881'
882      ac_precious_vars='build_alias
883host_alias
884target_alias
885CC
886CFLAGS
887LDFLAGS
888LIBS
889CPPFLAGS
890CPP
891LT_SYS_LIBRARY_PATH
892DOXYGEN_PAPER_SIZE'
893
894
895# Initialize some variables set by options.
896ac_init_help=
897ac_init_version=false
898ac_unrecognized_opts=
899ac_unrecognized_sep=
900# The variables have the same names as the options, with
901# dashes changed to underlines.
902cache_file=/dev/null
903exec_prefix=NONE
904no_create=
905no_recursion=
906prefix=NONE
907program_prefix=NONE
908program_suffix=NONE
909program_transform_name=s,x,x,
910silent=
911site=
912srcdir=
913verbose=
914x_includes=NONE
915x_libraries=NONE
916
917# Installation directory options.
918# These are left unexpanded so users can "make install exec_prefix=/foo"
919# and all the variables that are supposed to be based on exec_prefix
920# by default will actually change.
921# Use braces instead of parens because sh, perl, etc. also accept them.
922# (The list follows the same order as the GNU Coding Standards.)
923bindir='${exec_prefix}/bin'
924sbindir='${exec_prefix}/sbin'
925libexecdir='${exec_prefix}/libexec'
926datarootdir='${prefix}/share'
927datadir='${datarootdir}'
928sysconfdir='${prefix}/etc'
929sharedstatedir='${prefix}/com'
930localstatedir='${prefix}/var'
931runstatedir='${localstatedir}/run'
932includedir='${prefix}/include'
933oldincludedir='/usr/include'
934docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
935infodir='${datarootdir}/info'
936htmldir='${docdir}'
937dvidir='${docdir}'
938pdfdir='${docdir}'
939psdir='${docdir}'
940libdir='${exec_prefix}/lib'
941localedir='${datarootdir}/locale'
942mandir='${datarootdir}/man'
943
944ac_prev=
945ac_dashdash=
946for ac_option
947do
948  # If the previous option needs an argument, assign it.
949  if test -n "$ac_prev"; then
950    eval $ac_prev=\$ac_option
951    ac_prev=
952    continue
953  fi
954
955  case $ac_option in
956  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957  *=)   ac_optarg= ;;
958  *)    ac_optarg=yes ;;
959  esac
960
961  # Accept the important Cygnus configure options, so we can diagnose typos.
962
963  case $ac_dashdash$ac_option in
964  --)
965    ac_dashdash=yes ;;
966
967  -bindir | --bindir | --bindi | --bind | --bin | --bi)
968    ac_prev=bindir ;;
969  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970    bindir=$ac_optarg ;;
971
972  -build | --build | --buil | --bui | --bu)
973    ac_prev=build_alias ;;
974  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
975    build_alias=$ac_optarg ;;
976
977  -cache-file | --cache-file | --cache-fil | --cache-fi \
978  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979    ac_prev=cache_file ;;
980  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
982    cache_file=$ac_optarg ;;
983
984  --config-cache | -C)
985    cache_file=config.cache ;;
986
987  -datadir | --datadir | --datadi | --datad)
988    ac_prev=datadir ;;
989  -datadir=* | --datadir=* | --datadi=* | --datad=*)
990    datadir=$ac_optarg ;;
991
992  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
993  | --dataroo | --dataro | --datar)
994    ac_prev=datarootdir ;;
995  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
996  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
997    datarootdir=$ac_optarg ;;
998
999  -disable-* | --disable-*)
1000    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1001    # Reject names that are not valid shell variable names.
1002    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003      as_fn_error $? "invalid feature name: $ac_useropt"
1004    ac_useropt_orig=$ac_useropt
1005    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006    case $ac_user_opts in
1007      *"
1008"enable_$ac_useropt"
1009"*) ;;
1010      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1011	 ac_unrecognized_sep=', ';;
1012    esac
1013    eval enable_$ac_useropt=no ;;
1014
1015  -docdir | --docdir | --docdi | --doc | --do)
1016    ac_prev=docdir ;;
1017  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1018    docdir=$ac_optarg ;;
1019
1020  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021    ac_prev=dvidir ;;
1022  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1023    dvidir=$ac_optarg ;;
1024
1025  -enable-* | --enable-*)
1026    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1027    # Reject names that are not valid shell variable names.
1028    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029      as_fn_error $? "invalid feature name: $ac_useropt"
1030    ac_useropt_orig=$ac_useropt
1031    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032    case $ac_user_opts in
1033      *"
1034"enable_$ac_useropt"
1035"*) ;;
1036      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1037	 ac_unrecognized_sep=', ';;
1038    esac
1039    eval enable_$ac_useropt=\$ac_optarg ;;
1040
1041  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1042  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1043  | --exec | --exe | --ex)
1044    ac_prev=exec_prefix ;;
1045  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1046  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1047  | --exec=* | --exe=* | --ex=*)
1048    exec_prefix=$ac_optarg ;;
1049
1050  -gas | --gas | --ga | --g)
1051    # Obsolete; use --with-gas.
1052    with_gas=yes ;;
1053
1054  -help | --help | --hel | --he | -h)
1055    ac_init_help=long ;;
1056  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1057    ac_init_help=recursive ;;
1058  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1059    ac_init_help=short ;;
1060
1061  -host | --host | --hos | --ho)
1062    ac_prev=host_alias ;;
1063  -host=* | --host=* | --hos=* | --ho=*)
1064    host_alias=$ac_optarg ;;
1065
1066  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1067    ac_prev=htmldir ;;
1068  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1069  | --ht=*)
1070    htmldir=$ac_optarg ;;
1071
1072  -includedir | --includedir | --includedi | --included | --include \
1073  | --includ | --inclu | --incl | --inc)
1074    ac_prev=includedir ;;
1075  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1076  | --includ=* | --inclu=* | --incl=* | --inc=*)
1077    includedir=$ac_optarg ;;
1078
1079  -infodir | --infodir | --infodi | --infod | --info | --inf)
1080    ac_prev=infodir ;;
1081  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1082    infodir=$ac_optarg ;;
1083
1084  -libdir | --libdir | --libdi | --libd)
1085    ac_prev=libdir ;;
1086  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1087    libdir=$ac_optarg ;;
1088
1089  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1090  | --libexe | --libex | --libe)
1091    ac_prev=libexecdir ;;
1092  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1093  | --libexe=* | --libex=* | --libe=*)
1094    libexecdir=$ac_optarg ;;
1095
1096  -localedir | --localedir | --localedi | --localed | --locale)
1097    ac_prev=localedir ;;
1098  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1099    localedir=$ac_optarg ;;
1100
1101  -localstatedir | --localstatedir | --localstatedi | --localstated \
1102  | --localstate | --localstat | --localsta | --localst | --locals)
1103    ac_prev=localstatedir ;;
1104  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1105  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1106    localstatedir=$ac_optarg ;;
1107
1108  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1109    ac_prev=mandir ;;
1110  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1111    mandir=$ac_optarg ;;
1112
1113  -nfp | --nfp | --nf)
1114    # Obsolete; use --without-fp.
1115    with_fp=no ;;
1116
1117  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1118  | --no-cr | --no-c | -n)
1119    no_create=yes ;;
1120
1121  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1122  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1123    no_recursion=yes ;;
1124
1125  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1126  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1127  | --oldin | --oldi | --old | --ol | --o)
1128    ac_prev=oldincludedir ;;
1129  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1130  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1131  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1132    oldincludedir=$ac_optarg ;;
1133
1134  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1135    ac_prev=prefix ;;
1136  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1137    prefix=$ac_optarg ;;
1138
1139  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1140  | --program-pre | --program-pr | --program-p)
1141    ac_prev=program_prefix ;;
1142  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1143  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1144    program_prefix=$ac_optarg ;;
1145
1146  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1147  | --program-suf | --program-su | --program-s)
1148    ac_prev=program_suffix ;;
1149  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1150  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1151    program_suffix=$ac_optarg ;;
1152
1153  -program-transform-name | --program-transform-name \
1154  | --program-transform-nam | --program-transform-na \
1155  | --program-transform-n | --program-transform- \
1156  | --program-transform | --program-transfor \
1157  | --program-transfo | --program-transf \
1158  | --program-trans | --program-tran \
1159  | --progr-tra | --program-tr | --program-t)
1160    ac_prev=program_transform_name ;;
1161  -program-transform-name=* | --program-transform-name=* \
1162  | --program-transform-nam=* | --program-transform-na=* \
1163  | --program-transform-n=* | --program-transform-=* \
1164  | --program-transform=* | --program-transfor=* \
1165  | --program-transfo=* | --program-transf=* \
1166  | --program-trans=* | --program-tran=* \
1167  | --progr-tra=* | --program-tr=* | --program-t=*)
1168    program_transform_name=$ac_optarg ;;
1169
1170  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1171    ac_prev=pdfdir ;;
1172  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1173    pdfdir=$ac_optarg ;;
1174
1175  -psdir | --psdir | --psdi | --psd | --ps)
1176    ac_prev=psdir ;;
1177  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1178    psdir=$ac_optarg ;;
1179
1180  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1181  | -silent | --silent | --silen | --sile | --sil)
1182    silent=yes ;;
1183
1184  -runstatedir | --runstatedir | --runstatedi | --runstated \
1185  | --runstate | --runstat | --runsta | --runst | --runs \
1186  | --run | --ru | --r)
1187    ac_prev=runstatedir ;;
1188  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1189  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1190  | --run=* | --ru=* | --r=*)
1191    runstatedir=$ac_optarg ;;
1192
1193  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194    ac_prev=sbindir ;;
1195  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196  | --sbi=* | --sb=*)
1197    sbindir=$ac_optarg ;;
1198
1199  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201  | --sharedst | --shareds | --shared | --share | --shar \
1202  | --sha | --sh)
1203    ac_prev=sharedstatedir ;;
1204  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207  | --sha=* | --sh=*)
1208    sharedstatedir=$ac_optarg ;;
1209
1210  -site | --site | --sit)
1211    ac_prev=site ;;
1212  -site=* | --site=* | --sit=*)
1213    site=$ac_optarg ;;
1214
1215  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216    ac_prev=srcdir ;;
1217  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1218    srcdir=$ac_optarg ;;
1219
1220  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221  | --syscon | --sysco | --sysc | --sys | --sy)
1222    ac_prev=sysconfdir ;;
1223  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1225    sysconfdir=$ac_optarg ;;
1226
1227  -target | --target | --targe | --targ | --tar | --ta | --t)
1228    ac_prev=target_alias ;;
1229  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1230    target_alias=$ac_optarg ;;
1231
1232  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233    verbose=yes ;;
1234
1235  -version | --version | --versio | --versi | --vers | -V)
1236    ac_init_version=: ;;
1237
1238  -with-* | --with-*)
1239    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1240    # Reject names that are not valid shell variable names.
1241    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242      as_fn_error $? "invalid package name: $ac_useropt"
1243    ac_useropt_orig=$ac_useropt
1244    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245    case $ac_user_opts in
1246      *"
1247"with_$ac_useropt"
1248"*) ;;
1249      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1250	 ac_unrecognized_sep=', ';;
1251    esac
1252    eval with_$ac_useropt=\$ac_optarg ;;
1253
1254  -without-* | --without-*)
1255    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256    # Reject names that are not valid shell variable names.
1257    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258      as_fn_error $? "invalid package name: $ac_useropt"
1259    ac_useropt_orig=$ac_useropt
1260    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261    case $ac_user_opts in
1262      *"
1263"with_$ac_useropt"
1264"*) ;;
1265      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1266	 ac_unrecognized_sep=', ';;
1267    esac
1268    eval with_$ac_useropt=no ;;
1269
1270  --x)
1271    # Obsolete; use --with-x.
1272    with_x=yes ;;
1273
1274  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1275  | --x-incl | --x-inc | --x-in | --x-i)
1276    ac_prev=x_includes ;;
1277  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1278  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1279    x_includes=$ac_optarg ;;
1280
1281  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1282  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1283    ac_prev=x_libraries ;;
1284  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1285  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1286    x_libraries=$ac_optarg ;;
1287
1288  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1289Try \`$0 --help' for more information"
1290    ;;
1291
1292  *=*)
1293    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1294    # Reject names that are not valid shell variable names.
1295    case $ac_envvar in #(
1296      '' | [0-9]* | *[!_$as_cr_alnum]* )
1297      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1298    esac
1299    eval $ac_envvar=\$ac_optarg
1300    export $ac_envvar ;;
1301
1302  *)
1303    # FIXME: should be removed in autoconf 3.0.
1304    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1305    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1306      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1307    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1308    ;;
1309
1310  esac
1311done
1312
1313if test -n "$ac_prev"; then
1314  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1315  as_fn_error $? "missing argument to $ac_option"
1316fi
1317
1318if test -n "$ac_unrecognized_opts"; then
1319  case $enable_option_checking in
1320    no) ;;
1321    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1322    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323  esac
1324fi
1325
1326# Check all directory arguments for consistency.
1327for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1328		datadir sysconfdir sharedstatedir localstatedir includedir \
1329		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1330		libdir localedir mandir runstatedir
1331do
1332  eval ac_val=\$$ac_var
1333  # Remove trailing slashes.
1334  case $ac_val in
1335    */ )
1336      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1337      eval $ac_var=\$ac_val;;
1338  esac
1339  # Be sure to have absolute directory names.
1340  case $ac_val in
1341    [\\/$]* | ?:[\\/]* )  continue;;
1342    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343  esac
1344  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1345done
1346
1347# There might be people who depend on the old broken behavior: `$host'
1348# used to hold the argument of --host etc.
1349# FIXME: To remove some day.
1350build=$build_alias
1351host=$host_alias
1352target=$target_alias
1353
1354# FIXME: To remove some day.
1355if test "x$host_alias" != x; then
1356  if test "x$build_alias" = x; then
1357    cross_compiling=maybe
1358  elif test "x$build_alias" != "x$host_alias"; then
1359    cross_compiling=yes
1360  fi
1361fi
1362
1363ac_tool_prefix=
1364test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365
1366test "$silent" = yes && exec 6>/dev/null
1367
1368
1369ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370ac_ls_di=`ls -di .` &&
1371ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372  as_fn_error $? "working directory cannot be determined"
1373test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1374  as_fn_error $? "pwd does not report name of working directory"
1375
1376
1377# Find the source files, if location was not specified.
1378if test -z "$srcdir"; then
1379  ac_srcdir_defaulted=yes
1380  # Try the directory containing this script, then the parent directory.
1381  ac_confdir=`$as_dirname -- "$as_myself" ||
1382$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383	 X"$as_myself" : 'X\(//\)[^/]' \| \
1384	 X"$as_myself" : 'X\(//\)$' \| \
1385	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1386$as_echo X"$as_myself" |
1387    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388	    s//\1/
1389	    q
1390	  }
1391	  /^X\(\/\/\)[^/].*/{
1392	    s//\1/
1393	    q
1394	  }
1395	  /^X\(\/\/\)$/{
1396	    s//\1/
1397	    q
1398	  }
1399	  /^X\(\/\).*/{
1400	    s//\1/
1401	    q
1402	  }
1403	  s/.*/./; q'`
1404  srcdir=$ac_confdir
1405  if test ! -r "$srcdir/$ac_unique_file"; then
1406    srcdir=..
1407  fi
1408else
1409  ac_srcdir_defaulted=no
1410fi
1411if test ! -r "$srcdir/$ac_unique_file"; then
1412  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1414fi
1415ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1416ac_abs_confdir=`(
1417	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1418	pwd)`
1419# When building in place, set srcdir=.
1420if test "$ac_abs_confdir" = "$ac_pwd"; then
1421  srcdir=.
1422fi
1423# Remove unnecessary trailing slashes from srcdir.
1424# Double slashes in file names in object file debugging info
1425# mess up M-x gdb in Emacs.
1426case $srcdir in
1427*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428esac
1429for ac_var in $ac_precious_vars; do
1430  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1431  eval ac_env_${ac_var}_value=\$${ac_var}
1432  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1433  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1434done
1435
1436#
1437# Report the --help message.
1438#
1439if test "$ac_init_help" = "long"; then
1440  # Omit some internal or obsolete options to make the list less imposing.
1441  # This message is too long to be a string in the A/UX 3.1 sh.
1442  cat <<_ACEOF
1443\`configure' configures libevent 2.1.12-stable to adapt to many kinds of systems.
1444
1445Usage: $0 [OPTION]... [VAR=VALUE]...
1446
1447To assign environment variables (e.g., CC, CFLAGS...), specify them as
1448VAR=VALUE.  See below for descriptions of some of the useful variables.
1449
1450Defaults for the options are specified in brackets.
1451
1452Configuration:
1453  -h, --help              display this help and exit
1454      --help=short        display options specific to this package
1455      --help=recursive    display the short help of all the included packages
1456  -V, --version           display version information and exit
1457  -q, --quiet, --silent   do not print \`checking ...' messages
1458      --cache-file=FILE   cache test results in FILE [disabled]
1459  -C, --config-cache      alias for \`--cache-file=config.cache'
1460  -n, --no-create         do not create output files
1461      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1462
1463Installation directories:
1464  --prefix=PREFIX         install architecture-independent files in PREFIX
1465                          [$ac_default_prefix]
1466  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1467                          [PREFIX]
1468
1469By default, \`make install' will install all the files in
1470\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1471an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1472for instance \`--prefix=\$HOME'.
1473
1474For better control, use the options below.
1475
1476Fine tuning of the installation directories:
1477  --bindir=DIR            user executables [EPREFIX/bin]
1478  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1479  --libexecdir=DIR        program executables [EPREFIX/libexec]
1480  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1481  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1482  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1483  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1484  --libdir=DIR            object code libraries [EPREFIX/lib]
1485  --includedir=DIR        C header files [PREFIX/include]
1486  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1487  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1488  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1489  --infodir=DIR           info documentation [DATAROOTDIR/info]
1490  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1491  --mandir=DIR            man documentation [DATAROOTDIR/man]
1492  --docdir=DIR            documentation root [DATAROOTDIR/doc/libevent]
1493  --htmldir=DIR           html documentation [DOCDIR]
1494  --dvidir=DIR            dvi documentation [DOCDIR]
1495  --pdfdir=DIR            pdf documentation [DOCDIR]
1496  --psdir=DIR             ps documentation [DOCDIR]
1497_ACEOF
1498
1499  cat <<\_ACEOF
1500
1501Program names:
1502  --program-prefix=PREFIX            prepend PREFIX to installed program names
1503  --program-suffix=SUFFIX            append SUFFIX to installed program names
1504  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1505
1506System types:
1507  --build=BUILD     configure for building on BUILD [guessed]
1508  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1509_ACEOF
1510fi
1511
1512if test -n "$ac_init_help"; then
1513  case $ac_init_help in
1514     short | recursive ) echo "Configuration of libevent 2.1.12-stable:";;
1515   esac
1516  cat <<\_ACEOF
1517
1518Optional Features:
1519  --disable-option-checking  ignore unrecognized --enable/--with options
1520  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1521  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1522  --enable-silent-rules   less verbose build output (undo: "make V=1")
1523  --disable-silent-rules  verbose build output (undo: "make V=0")
1524  --enable-dependency-tracking
1525                          do not reject slow dependency extractors
1526  --disable-dependency-tracking
1527                          speeds up one-time build
1528  --disable-gcc-warnings  disable verbose warnings with GCC
1529  --enable-gcc-hardening  enable compiler security checks
1530  --disable-thread-support
1531                          disable support for threading
1532  --disable-malloc-replacement
1533                          disable support for replacing the memory mgt
1534                          functions
1535  --disable-openssl       disable support for openssl encryption
1536  --disable-debug-mode    disable support for running in debug mode
1537  --disable-libevent-install, disable installation of libevent
1538
1539  --disable-libevent-regress, skip regress in make check
1540
1541  --disable-samples, skip building of sample programs
1542
1543  --enable-function-sections, make static library allow smaller binaries with --gc-sections
1544
1545  --enable-verbose-debug, verbose debug logging
1546
1547  --disable-clock-gettime do not use clock_gettime even if it is available
1548  --enable-shared[=PKGS]  build shared libraries [default=yes]
1549  --enable-static[=PKGS]  build static libraries [default=yes]
1550  --enable-fast-install[=PKGS]
1551                          optimize for fast installation [default=yes]
1552  --disable-libtool-lock  avoid locking (might break parallel builds)
1553  --disable-largefile     omit support for large files
1554  --enable-doxygen-doc    generate any doxygen documentation
1555  --enable-doxygen-dot    generate graphics for doxygen documentation
1556  --enable-doxygen-man    generate doxygen manual pages
1557  --enable-doxygen-rtf    generate doxygen RTF documentation
1558  --enable-doxygen-xml    generate doxygen XML documentation
1559  --enable-doxygen-chm    generate doxygen compressed HTML help documentation
1560  --enable-doxygen-chi    generate doxygen separate compressed HTML help index
1561                          file
1562  --disable-doxygen-html  don't generate doxygen plain HTML documentation
1563  --enable-doxygen-ps     generate doxygen PostScript documentation
1564  --enable-doxygen-pdf    generate doxygen PDF documentation
1565
1566Optional Packages:
1567  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1568  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1569  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1570                          both]
1571  --with-aix-soname=aix|svr4|both
1572                          shared library versioning (aka "SONAME") variant to
1573                          provide on AIX, [default=aix].
1574  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1575  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1576                          compiler's sysroot if not specified).
1577
1578Some influential environment variables:
1579  CC          C compiler command
1580  CFLAGS      C compiler flags
1581  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1582              nonstandard directory <lib dir>
1583  LIBS        libraries to pass to the linker, e.g. -l<library>
1584  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1585              you have headers in a nonstandard directory <include dir>
1586  CPP         C preprocessor
1587  LT_SYS_LIBRARY_PATH
1588              User-defined run-time library search path.
1589  DOXYGEN_PAPER_SIZE
1590              a4wide (default), a4, letter, legal or executive
1591
1592Use these variables to override the choices made by `configure' or to help
1593it to find libraries and programs with nonstandard names/locations.
1594
1595Report bugs to the package provider.
1596_ACEOF
1597ac_status=$?
1598fi
1599
1600if test "$ac_init_help" = "recursive"; then
1601  # If there are subdirs, report their specific --help.
1602  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1603    test -d "$ac_dir" ||
1604      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1605      continue
1606    ac_builddir=.
1607
1608case "$ac_dir" in
1609.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610*)
1611  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1612  # A ".." for each directory in $ac_dir_suffix.
1613  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1614  case $ac_top_builddir_sub in
1615  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617  esac ;;
1618esac
1619ac_abs_top_builddir=$ac_pwd
1620ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621# for backward compatibility:
1622ac_top_builddir=$ac_top_build_prefix
1623
1624case $srcdir in
1625  .)  # We are building in place.
1626    ac_srcdir=.
1627    ac_top_srcdir=$ac_top_builddir_sub
1628    ac_abs_top_srcdir=$ac_pwd ;;
1629  [\\/]* | ?:[\\/]* )  # Absolute name.
1630    ac_srcdir=$srcdir$ac_dir_suffix;
1631    ac_top_srcdir=$srcdir
1632    ac_abs_top_srcdir=$srcdir ;;
1633  *) # Relative name.
1634    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635    ac_top_srcdir=$ac_top_build_prefix$srcdir
1636    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637esac
1638ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639
1640    cd "$ac_dir" || { ac_status=$?; continue; }
1641    # Check for guested configure.
1642    if test -f "$ac_srcdir/configure.gnu"; then
1643      echo &&
1644      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645    elif test -f "$ac_srcdir/configure"; then
1646      echo &&
1647      $SHELL "$ac_srcdir/configure" --help=recursive
1648    else
1649      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650    fi || ac_status=$?
1651    cd "$ac_pwd" || { ac_status=$?; break; }
1652  done
1653fi
1654
1655test -n "$ac_init_help" && exit $ac_status
1656if $ac_init_version; then
1657  cat <<\_ACEOF
1658libevent configure 2.1.12-stable
1659generated by GNU Autoconf 2.69
1660
1661Copyright (C) 2012 Free Software Foundation, Inc.
1662This configure script is free software; the Free Software Foundation
1663gives unlimited permission to copy, distribute and modify it.
1664_ACEOF
1665  exit
1666fi
1667
1668## ------------------------ ##
1669## Autoconf initialization. ##
1670## ------------------------ ##
1671
1672# ac_fn_c_try_compile LINENO
1673# --------------------------
1674# Try to compile conftest.$ac_ext, and return whether this succeeded.
1675ac_fn_c_try_compile ()
1676{
1677  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678  rm -f conftest.$ac_objext
1679  if { { ac_try="$ac_compile"
1680case "(($ac_try" in
1681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682  *) ac_try_echo=$ac_try;;
1683esac
1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685$as_echo "$ac_try_echo"; } >&5
1686  (eval "$ac_compile") 2>conftest.err
1687  ac_status=$?
1688  if test -s conftest.err; then
1689    grep -v '^ *+' conftest.err >conftest.er1
1690    cat conftest.er1 >&5
1691    mv -f conftest.er1 conftest.err
1692  fi
1693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694  test $ac_status = 0; } && {
1695	 test -z "$ac_c_werror_flag" ||
1696	 test ! -s conftest.err
1697       } && test -s conftest.$ac_objext; then :
1698  ac_retval=0
1699else
1700  $as_echo "$as_me: failed program was:" >&5
1701sed 's/^/| /' conftest.$ac_ext >&5
1702
1703	ac_retval=1
1704fi
1705  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706  as_fn_set_status $ac_retval
1707
1708} # ac_fn_c_try_compile
1709
1710# ac_fn_c_try_cpp LINENO
1711# ----------------------
1712# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1713ac_fn_c_try_cpp ()
1714{
1715  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716  if { { ac_try="$ac_cpp conftest.$ac_ext"
1717case "(($ac_try" in
1718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719  *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1724  ac_status=$?
1725  if test -s conftest.err; then
1726    grep -v '^ *+' conftest.err >conftest.er1
1727    cat conftest.er1 >&5
1728    mv -f conftest.er1 conftest.err
1729  fi
1730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731  test $ac_status = 0; } > conftest.i && {
1732	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1733	 test ! -s conftest.err
1734       }; then :
1735  ac_retval=0
1736else
1737  $as_echo "$as_me: failed program was:" >&5
1738sed 's/^/| /' conftest.$ac_ext >&5
1739
1740    ac_retval=1
1741fi
1742  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743  as_fn_set_status $ac_retval
1744
1745} # ac_fn_c_try_cpp
1746
1747# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1748# -------------------------------------------------------
1749# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1750# the include files in INCLUDES and setting the cache variable VAR
1751# accordingly.
1752ac_fn_c_check_header_mongrel ()
1753{
1754  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755  if eval \${$3+:} false; then :
1756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757$as_echo_n "checking for $2... " >&6; }
1758if eval \${$3+:} false; then :
1759  $as_echo_n "(cached) " >&6
1760fi
1761eval ac_res=\$$3
1762	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763$as_echo "$ac_res" >&6; }
1764else
1765  # Is the header compilable?
1766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1767$as_echo_n "checking $2 usability... " >&6; }
1768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769/* end confdefs.h.  */
1770$4
1771#include <$2>
1772_ACEOF
1773if ac_fn_c_try_compile "$LINENO"; then :
1774  ac_header_compiler=yes
1775else
1776  ac_header_compiler=no
1777fi
1778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1780$as_echo "$ac_header_compiler" >&6; }
1781
1782# Is the header present?
1783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1784$as_echo_n "checking $2 presence... " >&6; }
1785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786/* end confdefs.h.  */
1787#include <$2>
1788_ACEOF
1789if ac_fn_c_try_cpp "$LINENO"; then :
1790  ac_header_preproc=yes
1791else
1792  ac_header_preproc=no
1793fi
1794rm -f conftest.err conftest.i conftest.$ac_ext
1795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1796$as_echo "$ac_header_preproc" >&6; }
1797
1798# So?  What about this header?
1799case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1800  yes:no: )
1801    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1802$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1803    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1804$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1805    ;;
1806  no:yes:* )
1807    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1808$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1809    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1810$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1811    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1812$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1813    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1814$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1815    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1816$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1817    ;;
1818esac
1819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820$as_echo_n "checking for $2... " >&6; }
1821if eval \${$3+:} false; then :
1822  $as_echo_n "(cached) " >&6
1823else
1824  eval "$3=\$ac_header_compiler"
1825fi
1826eval ac_res=\$$3
1827	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828$as_echo "$ac_res" >&6; }
1829fi
1830  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831
1832} # ac_fn_c_check_header_mongrel
1833
1834# ac_fn_c_try_run LINENO
1835# ----------------------
1836# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1837# that executables *can* be run.
1838ac_fn_c_try_run ()
1839{
1840  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841  if { { ac_try="$ac_link"
1842case "(($ac_try" in
1843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844  *) ac_try_echo=$ac_try;;
1845esac
1846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847$as_echo "$ac_try_echo"; } >&5
1848  (eval "$ac_link") 2>&5
1849  ac_status=$?
1850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1852  { { case "(($ac_try" in
1853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854  *) ac_try_echo=$ac_try;;
1855esac
1856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857$as_echo "$ac_try_echo"; } >&5
1858  (eval "$ac_try") 2>&5
1859  ac_status=$?
1860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861  test $ac_status = 0; }; }; then :
1862  ac_retval=0
1863else
1864  $as_echo "$as_me: program exited with status $ac_status" >&5
1865       $as_echo "$as_me: failed program was:" >&5
1866sed 's/^/| /' conftest.$ac_ext >&5
1867
1868       ac_retval=$ac_status
1869fi
1870  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872  as_fn_set_status $ac_retval
1873
1874} # ac_fn_c_try_run
1875
1876# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1877# -------------------------------------------------------
1878# Tests whether HEADER exists and can be compiled using the include files in
1879# INCLUDES, setting the cache variable VAR accordingly.
1880ac_fn_c_check_header_compile ()
1881{
1882  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884$as_echo_n "checking for $2... " >&6; }
1885if eval \${$3+:} false; then :
1886  $as_echo_n "(cached) " >&6
1887else
1888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889/* end confdefs.h.  */
1890$4
1891#include <$2>
1892_ACEOF
1893if ac_fn_c_try_compile "$LINENO"; then :
1894  eval "$3=yes"
1895else
1896  eval "$3=no"
1897fi
1898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899fi
1900eval ac_res=\$$3
1901	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902$as_echo "$ac_res" >&6; }
1903  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904
1905} # ac_fn_c_check_header_compile
1906
1907# ac_fn_c_try_link LINENO
1908# -----------------------
1909# Try to link conftest.$ac_ext, and return whether this succeeded.
1910ac_fn_c_try_link ()
1911{
1912  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913  rm -f conftest.$ac_objext conftest$ac_exeext
1914  if { { ac_try="$ac_link"
1915case "(($ac_try" in
1916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917  *) ac_try_echo=$ac_try;;
1918esac
1919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920$as_echo "$ac_try_echo"; } >&5
1921  (eval "$ac_link") 2>conftest.err
1922  ac_status=$?
1923  if test -s conftest.err; then
1924    grep -v '^ *+' conftest.err >conftest.er1
1925    cat conftest.er1 >&5
1926    mv -f conftest.er1 conftest.err
1927  fi
1928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929  test $ac_status = 0; } && {
1930	 test -z "$ac_c_werror_flag" ||
1931	 test ! -s conftest.err
1932       } && test -s conftest$ac_exeext && {
1933	 test "$cross_compiling" = yes ||
1934	 test -x conftest$ac_exeext
1935       }; then :
1936  ac_retval=0
1937else
1938  $as_echo "$as_me: failed program was:" >&5
1939sed 's/^/| /' conftest.$ac_ext >&5
1940
1941	ac_retval=1
1942fi
1943  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1944  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1945  # interfere with the next link command; also delete a directory that is
1946  # left behind by Apple's compiler.  We do this before executing the actions.
1947  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1948  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949  as_fn_set_status $ac_retval
1950
1951} # ac_fn_c_try_link
1952
1953# ac_fn_c_check_func LINENO FUNC VAR
1954# ----------------------------------
1955# Tests whether FUNC exists, setting the cache variable VAR accordingly
1956ac_fn_c_check_func ()
1957{
1958  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960$as_echo_n "checking for $2... " >&6; }
1961if eval \${$3+:} false; then :
1962  $as_echo_n "(cached) " >&6
1963else
1964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h.  */
1966/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1967   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1968#define $2 innocuous_$2
1969
1970/* System header to define __stub macros and hopefully few prototypes,
1971    which can conflict with char $2 (); below.
1972    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1973    <limits.h> exists even on freestanding compilers.  */
1974
1975#ifdef __STDC__
1976# include <limits.h>
1977#else
1978# include <assert.h>
1979#endif
1980
1981#undef $2
1982
1983/* Override any GCC internal prototype to avoid an error.
1984   Use char because int might match the return type of a GCC
1985   builtin and then its argument prototype would still apply.  */
1986#ifdef __cplusplus
1987extern "C"
1988#endif
1989char $2 ();
1990/* The GNU C library defines this for functions which it implements
1991    to always fail with ENOSYS.  Some functions are actually named
1992    something starting with __ and the normal name is an alias.  */
1993#if defined __stub_$2 || defined __stub___$2
1994choke me
1995#endif
1996
1997int
1998main ()
1999{
2000return $2 ();
2001  ;
2002  return 0;
2003}
2004_ACEOF
2005if ac_fn_c_try_link "$LINENO"; then :
2006  eval "$3=yes"
2007else
2008  eval "$3=no"
2009fi
2010rm -f core conftest.err conftest.$ac_objext \
2011    conftest$ac_exeext conftest.$ac_ext
2012fi
2013eval ac_res=\$$3
2014	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015$as_echo "$ac_res" >&6; }
2016  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017
2018} # ac_fn_c_check_func
2019
2020# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2021# ---------------------------------------------
2022# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2023# accordingly.
2024ac_fn_c_check_decl ()
2025{
2026  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027  as_decl_name=`echo $2|sed 's/ *(.*//'`
2028  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2030$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2031if eval \${$3+:} false; then :
2032  $as_echo_n "(cached) " >&6
2033else
2034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035/* end confdefs.h.  */
2036$4
2037int
2038main ()
2039{
2040#ifndef $as_decl_name
2041#ifdef __cplusplus
2042  (void) $as_decl_use;
2043#else
2044  (void) $as_decl_name;
2045#endif
2046#endif
2047
2048  ;
2049  return 0;
2050}
2051_ACEOF
2052if ac_fn_c_try_compile "$LINENO"; then :
2053  eval "$3=yes"
2054else
2055  eval "$3=no"
2056fi
2057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058fi
2059eval ac_res=\$$3
2060	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061$as_echo "$ac_res" >&6; }
2062  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063
2064} # ac_fn_c_check_decl
2065
2066# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2067# -------------------------------------------
2068# Tests whether TYPE exists after having included INCLUDES, setting cache
2069# variable VAR accordingly.
2070ac_fn_c_check_type ()
2071{
2072  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2074$as_echo_n "checking for $2... " >&6; }
2075if eval \${$3+:} false; then :
2076  $as_echo_n "(cached) " >&6
2077else
2078  eval "$3=no"
2079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080/* end confdefs.h.  */
2081$4
2082int
2083main ()
2084{
2085if (sizeof ($2))
2086	 return 0;
2087  ;
2088  return 0;
2089}
2090_ACEOF
2091if ac_fn_c_try_compile "$LINENO"; then :
2092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093/* end confdefs.h.  */
2094$4
2095int
2096main ()
2097{
2098if (sizeof (($2)))
2099	    return 0;
2100  ;
2101  return 0;
2102}
2103_ACEOF
2104if ac_fn_c_try_compile "$LINENO"; then :
2105
2106else
2107  eval "$3=yes"
2108fi
2109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110fi
2111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112fi
2113eval ac_res=\$$3
2114	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2115$as_echo "$ac_res" >&6; }
2116  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117
2118} # ac_fn_c_check_type
2119
2120# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2121# --------------------------------------------
2122# Tries to find the compile-time value of EXPR in a program that includes
2123# INCLUDES, setting VAR accordingly. Returns whether the value could be
2124# computed
2125ac_fn_c_compute_int ()
2126{
2127  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128  if test "$cross_compiling" = yes; then
2129    # Depending upon the size, compute the lo and hi bounds.
2130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131/* end confdefs.h.  */
2132$4
2133int
2134main ()
2135{
2136static int test_array [1 - 2 * !(($2) >= 0)];
2137test_array [0] = 0;
2138return test_array [0];
2139
2140  ;
2141  return 0;
2142}
2143_ACEOF
2144if ac_fn_c_try_compile "$LINENO"; then :
2145  ac_lo=0 ac_mid=0
2146  while :; do
2147    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148/* end confdefs.h.  */
2149$4
2150int
2151main ()
2152{
2153static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2154test_array [0] = 0;
2155return test_array [0];
2156
2157  ;
2158  return 0;
2159}
2160_ACEOF
2161if ac_fn_c_try_compile "$LINENO"; then :
2162  ac_hi=$ac_mid; break
2163else
2164  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2165			if test $ac_lo -le $ac_mid; then
2166			  ac_lo= ac_hi=
2167			  break
2168			fi
2169			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2170fi
2171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172  done
2173else
2174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175/* end confdefs.h.  */
2176$4
2177int
2178main ()
2179{
2180static int test_array [1 - 2 * !(($2) < 0)];
2181test_array [0] = 0;
2182return test_array [0];
2183
2184  ;
2185  return 0;
2186}
2187_ACEOF
2188if ac_fn_c_try_compile "$LINENO"; then :
2189  ac_hi=-1 ac_mid=-1
2190  while :; do
2191    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192/* end confdefs.h.  */
2193$4
2194int
2195main ()
2196{
2197static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2198test_array [0] = 0;
2199return test_array [0];
2200
2201  ;
2202  return 0;
2203}
2204_ACEOF
2205if ac_fn_c_try_compile "$LINENO"; then :
2206  ac_lo=$ac_mid; break
2207else
2208  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2209			if test $ac_mid -le $ac_hi; then
2210			  ac_lo= ac_hi=
2211			  break
2212			fi
2213			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2214fi
2215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216  done
2217else
2218  ac_lo= ac_hi=
2219fi
2220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221fi
2222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223# Binary search between lo and hi bounds.
2224while test "x$ac_lo" != "x$ac_hi"; do
2225  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227/* end confdefs.h.  */
2228$4
2229int
2230main ()
2231{
2232static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2233test_array [0] = 0;
2234return test_array [0];
2235
2236  ;
2237  return 0;
2238}
2239_ACEOF
2240if ac_fn_c_try_compile "$LINENO"; then :
2241  ac_hi=$ac_mid
2242else
2243  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2244fi
2245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246done
2247case $ac_lo in #((
2248?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2249'') ac_retval=1 ;;
2250esac
2251  else
2252    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253/* end confdefs.h.  */
2254$4
2255static long int longval () { return $2; }
2256static unsigned long int ulongval () { return $2; }
2257#include <stdio.h>
2258#include <stdlib.h>
2259int
2260main ()
2261{
2262
2263  FILE *f = fopen ("conftest.val", "w");
2264  if (! f)
2265    return 1;
2266  if (($2) < 0)
2267    {
2268      long int i = longval ();
2269      if (i != ($2))
2270	return 1;
2271      fprintf (f, "%ld", i);
2272    }
2273  else
2274    {
2275      unsigned long int i = ulongval ();
2276      if (i != ($2))
2277	return 1;
2278      fprintf (f, "%lu", i);
2279    }
2280  /* Do not output a trailing newline, as this causes \r\n confusion
2281     on some platforms.  */
2282  return ferror (f) || fclose (f) != 0;
2283
2284  ;
2285  return 0;
2286}
2287_ACEOF
2288if ac_fn_c_try_run "$LINENO"; then :
2289  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2290else
2291  ac_retval=1
2292fi
2293rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2294  conftest.$ac_objext conftest.beam conftest.$ac_ext
2295rm -f conftest.val
2296
2297  fi
2298  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2299  as_fn_set_status $ac_retval
2300
2301} # ac_fn_c_compute_int
2302
2303# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2304# ----------------------------------------------------
2305# Tries to find if the field MEMBER exists in type AGGR, after including
2306# INCLUDES, setting cache variable VAR accordingly.
2307ac_fn_c_check_member ()
2308{
2309  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2311$as_echo_n "checking for $2.$3... " >&6; }
2312if eval \${$4+:} false; then :
2313  $as_echo_n "(cached) " >&6
2314else
2315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316/* end confdefs.h.  */
2317$5
2318int
2319main ()
2320{
2321static $2 ac_aggr;
2322if (ac_aggr.$3)
2323return 0;
2324  ;
2325  return 0;
2326}
2327_ACEOF
2328if ac_fn_c_try_compile "$LINENO"; then :
2329  eval "$4=yes"
2330else
2331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332/* end confdefs.h.  */
2333$5
2334int
2335main ()
2336{
2337static $2 ac_aggr;
2338if (sizeof ac_aggr.$3)
2339return 0;
2340  ;
2341  return 0;
2342}
2343_ACEOF
2344if ac_fn_c_try_compile "$LINENO"; then :
2345  eval "$4=yes"
2346else
2347  eval "$4=no"
2348fi
2349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350fi
2351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2352fi
2353eval ac_res=\$$4
2354	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2355$as_echo "$ac_res" >&6; }
2356  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2357
2358} # ac_fn_c_check_member
2359cat >config.log <<_ACEOF
2360This file contains any messages produced by compilers while
2361running configure, to aid debugging if configure makes a mistake.
2362
2363It was created by libevent $as_me 2.1.12-stable, which was
2364generated by GNU Autoconf 2.69.  Invocation command line was
2365
2366  $ $0 $@
2367
2368_ACEOF
2369exec 5>>config.log
2370{
2371cat <<_ASUNAME
2372## --------- ##
2373## Platform. ##
2374## --------- ##
2375
2376hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2377uname -m = `(uname -m) 2>/dev/null || echo unknown`
2378uname -r = `(uname -r) 2>/dev/null || echo unknown`
2379uname -s = `(uname -s) 2>/dev/null || echo unknown`
2380uname -v = `(uname -v) 2>/dev/null || echo unknown`
2381
2382/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2383/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2384
2385/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2386/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2387/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2388/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2389/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2390/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2391/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2392
2393_ASUNAME
2394
2395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396for as_dir in $PATH
2397do
2398  IFS=$as_save_IFS
2399  test -z "$as_dir" && as_dir=.
2400    $as_echo "PATH: $as_dir"
2401  done
2402IFS=$as_save_IFS
2403
2404} >&5
2405
2406cat >&5 <<_ACEOF
2407
2408
2409## ----------- ##
2410## Core tests. ##
2411## ----------- ##
2412
2413_ACEOF
2414
2415
2416# Keep a trace of the command line.
2417# Strip out --no-create and --no-recursion so they do not pile up.
2418# Strip out --silent because we don't want to record it for future runs.
2419# Also quote any args containing shell meta-characters.
2420# Make two passes to allow for proper duplicate-argument suppression.
2421ac_configure_args=
2422ac_configure_args0=
2423ac_configure_args1=
2424ac_must_keep_next=false
2425for ac_pass in 1 2
2426do
2427  for ac_arg
2428  do
2429    case $ac_arg in
2430    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2431    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2432    | -silent | --silent | --silen | --sile | --sil)
2433      continue ;;
2434    *\'*)
2435      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2436    esac
2437    case $ac_pass in
2438    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2439    2)
2440      as_fn_append ac_configure_args1 " '$ac_arg'"
2441      if test $ac_must_keep_next = true; then
2442	ac_must_keep_next=false # Got value, back to normal.
2443      else
2444	case $ac_arg in
2445	  *=* | --config-cache | -C | -disable-* | --disable-* \
2446	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2447	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2448	  | -with-* | --with-* | -without-* | --without-* | --x)
2449	    case "$ac_configure_args0 " in
2450	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2451	    esac
2452	    ;;
2453	  -* ) ac_must_keep_next=true ;;
2454	esac
2455      fi
2456      as_fn_append ac_configure_args " '$ac_arg'"
2457      ;;
2458    esac
2459  done
2460done
2461{ ac_configure_args0=; unset ac_configure_args0;}
2462{ ac_configure_args1=; unset ac_configure_args1;}
2463
2464# When interrupted or exit'd, cleanup temporary files, and complete
2465# config.log.  We remove comments because anyway the quotes in there
2466# would cause problems or look ugly.
2467# WARNING: Use '\'' to represent an apostrophe within the trap.
2468# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2469trap 'exit_status=$?
2470  # Save into config.log some information that might help in debugging.
2471  {
2472    echo
2473
2474    $as_echo "## ---------------- ##
2475## Cache variables. ##
2476## ---------------- ##"
2477    echo
2478    # The following way of writing the cache mishandles newlines in values,
2479(
2480  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2481    eval ac_val=\$$ac_var
2482    case $ac_val in #(
2483    *${as_nl}*)
2484      case $ac_var in #(
2485      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2486$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2487      esac
2488      case $ac_var in #(
2489      _ | IFS | as_nl) ;; #(
2490      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2491      *) { eval $ac_var=; unset $ac_var;} ;;
2492      esac ;;
2493    esac
2494  done
2495  (set) 2>&1 |
2496    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2497    *${as_nl}ac_space=\ *)
2498      sed -n \
2499	"s/'\''/'\''\\\\'\'''\''/g;
2500	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2501      ;; #(
2502    *)
2503      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2504      ;;
2505    esac |
2506    sort
2507)
2508    echo
2509
2510    $as_echo "## ----------------- ##
2511## Output variables. ##
2512## ----------------- ##"
2513    echo
2514    for ac_var in $ac_subst_vars
2515    do
2516      eval ac_val=\$$ac_var
2517      case $ac_val in
2518      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2519      esac
2520      $as_echo "$ac_var='\''$ac_val'\''"
2521    done | sort
2522    echo
2523
2524    if test -n "$ac_subst_files"; then
2525      $as_echo "## ------------------- ##
2526## File substitutions. ##
2527## ------------------- ##"
2528      echo
2529      for ac_var in $ac_subst_files
2530      do
2531	eval ac_val=\$$ac_var
2532	case $ac_val in
2533	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2534	esac
2535	$as_echo "$ac_var='\''$ac_val'\''"
2536      done | sort
2537      echo
2538    fi
2539
2540    if test -s confdefs.h; then
2541      $as_echo "## ----------- ##
2542## confdefs.h. ##
2543## ----------- ##"
2544      echo
2545      cat confdefs.h
2546      echo
2547    fi
2548    test "$ac_signal" != 0 &&
2549      $as_echo "$as_me: caught signal $ac_signal"
2550    $as_echo "$as_me: exit $exit_status"
2551  } >&5
2552  rm -f core *.core core.conftest.* &&
2553    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2554    exit $exit_status
2555' 0
2556for ac_signal in 1 2 13 15; do
2557  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2558done
2559ac_signal=0
2560
2561# confdefs.h avoids OS command line length limits that DEFS can exceed.
2562rm -f -r conftest* confdefs.h
2563
2564$as_echo "/* confdefs.h */" > confdefs.h
2565
2566# Predefined preprocessor variables.
2567
2568cat >>confdefs.h <<_ACEOF
2569#define PACKAGE_NAME "$PACKAGE_NAME"
2570_ACEOF
2571
2572cat >>confdefs.h <<_ACEOF
2573#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2574_ACEOF
2575
2576cat >>confdefs.h <<_ACEOF
2577#define PACKAGE_VERSION "$PACKAGE_VERSION"
2578_ACEOF
2579
2580cat >>confdefs.h <<_ACEOF
2581#define PACKAGE_STRING "$PACKAGE_STRING"
2582_ACEOF
2583
2584cat >>confdefs.h <<_ACEOF
2585#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2586_ACEOF
2587
2588cat >>confdefs.h <<_ACEOF
2589#define PACKAGE_URL "$PACKAGE_URL"
2590_ACEOF
2591
2592
2593# Let the site file select an alternate cache file if it wants to.
2594# Prefer an explicitly selected file to automatically selected ones.
2595ac_site_file1=NONE
2596ac_site_file2=NONE
2597if test -n "$CONFIG_SITE"; then
2598  # We do not want a PATH search for config.site.
2599  case $CONFIG_SITE in #((
2600    -*)  ac_site_file1=./$CONFIG_SITE;;
2601    */*) ac_site_file1=$CONFIG_SITE;;
2602    *)   ac_site_file1=./$CONFIG_SITE;;
2603  esac
2604elif test "x$prefix" != xNONE; then
2605  ac_site_file1=$prefix/share/config.site
2606  ac_site_file2=$prefix/etc/config.site
2607else
2608  ac_site_file1=$ac_default_prefix/share/config.site
2609  ac_site_file2=$ac_default_prefix/etc/config.site
2610fi
2611for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2612do
2613  test "x$ac_site_file" = xNONE && continue
2614  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2615    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2616$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2617    sed 's/^/| /' "$ac_site_file" >&5
2618    . "$ac_site_file" \
2619      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2621as_fn_error $? "failed to load site script $ac_site_file
2622See \`config.log' for more details" "$LINENO" 5; }
2623  fi
2624done
2625
2626if test -r "$cache_file"; then
2627  # Some versions of bash will fail to source /dev/null (special files
2628  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2629  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2630    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2631$as_echo "$as_me: loading cache $cache_file" >&6;}
2632    case $cache_file in
2633      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2634      *)                      . "./$cache_file";;
2635    esac
2636  fi
2637else
2638  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2639$as_echo "$as_me: creating cache $cache_file" >&6;}
2640  >$cache_file
2641fi
2642
2643# Check that the precious variables saved in the cache have kept the same
2644# value.
2645ac_cache_corrupted=false
2646for ac_var in $ac_precious_vars; do
2647  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2648  eval ac_new_set=\$ac_env_${ac_var}_set
2649  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2650  eval ac_new_val=\$ac_env_${ac_var}_value
2651  case $ac_old_set,$ac_new_set in
2652    set,)
2653      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2654$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2655      ac_cache_corrupted=: ;;
2656    ,set)
2657      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2658$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2659      ac_cache_corrupted=: ;;
2660    ,);;
2661    *)
2662      if test "x$ac_old_val" != "x$ac_new_val"; then
2663	# differences in whitespace do not lead to failure.
2664	ac_old_val_w=`echo x $ac_old_val`
2665	ac_new_val_w=`echo x $ac_new_val`
2666	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2667	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2668$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2669	  ac_cache_corrupted=:
2670	else
2671	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2672$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2673	  eval $ac_var=\$ac_old_val
2674	fi
2675	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2676$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2677	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2678$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2679      fi;;
2680  esac
2681  # Pass precious variables to config.status.
2682  if test "$ac_new_set" = set; then
2683    case $ac_new_val in
2684    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2685    *) ac_arg=$ac_var=$ac_new_val ;;
2686    esac
2687    case " $ac_configure_args " in
2688      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2689      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2690    esac
2691  fi
2692done
2693if $ac_cache_corrupted; then
2694  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2695$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2696  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2697$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2698  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2699fi
2700## -------------------- ##
2701## Main body of script. ##
2702## -------------------- ##
2703
2704ac_ext=c
2705ac_cpp='$CPP $CPPFLAGS'
2706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708ac_compiler_gnu=$ac_cv_c_compiler_gnu
2709
2710
2711
2712
2713
2714
2715ac_aux_dir=
2716for ac_dir in build-aux "$srcdir"/build-aux; do
2717  if test -f "$ac_dir/install-sh"; then
2718    ac_aux_dir=$ac_dir
2719    ac_install_sh="$ac_aux_dir/install-sh -c"
2720    break
2721  elif test -f "$ac_dir/install.sh"; then
2722    ac_aux_dir=$ac_dir
2723    ac_install_sh="$ac_aux_dir/install.sh -c"
2724    break
2725  elif test -f "$ac_dir/shtool"; then
2726    ac_aux_dir=$ac_dir
2727    ac_install_sh="$ac_aux_dir/shtool install -c"
2728    break
2729  fi
2730done
2731if test -z "$ac_aux_dir"; then
2732  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2733fi
2734
2735# These three variables are undocumented and unsupported,
2736# and are intended to be withdrawn in a future Autoconf release.
2737# They can cause serious problems if a builder's source tree is in a directory
2738# whose full name contains unusual characters.
2739ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2740ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2741ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2742
2743
2744am__api_version='1.16'
2745
2746# Find a good install program.  We prefer a C program (faster),
2747# so one script is as good as another.  But avoid the broken or
2748# incompatible versions:
2749# SysV /etc/install, /usr/sbin/install
2750# SunOS /usr/etc/install
2751# IRIX /sbin/install
2752# AIX /bin/install
2753# AmigaOS /C/install, which installs bootblocks on floppy discs
2754# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2755# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2756# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2757# OS/2's system install, which has a completely different semantic
2758# ./install, which can be erroneously created by make from ./install.sh.
2759# Reject install programs that cannot install multiple files.
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2761$as_echo_n "checking for a BSD-compatible install... " >&6; }
2762if test -z "$INSTALL"; then
2763if ${ac_cv_path_install+:} false; then :
2764  $as_echo_n "(cached) " >&6
2765else
2766  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767for as_dir in $PATH
2768do
2769  IFS=$as_save_IFS
2770  test -z "$as_dir" && as_dir=.
2771    # Account for people who put trailing slashes in PATH elements.
2772case $as_dir/ in #((
2773  ./ | .// | /[cC]/* | \
2774  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2775  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2776  /usr/ucb/* ) ;;
2777  *)
2778    # OSF1 and SCO ODT 3.0 have their own names for install.
2779    # Don't use installbsd from OSF since it installs stuff as root
2780    # by default.
2781    for ac_prog in ginstall scoinst install; do
2782      for ac_exec_ext in '' $ac_executable_extensions; do
2783	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2784	  if test $ac_prog = install &&
2785	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2786	    # AIX install.  It has an incompatible calling convention.
2787	    :
2788	  elif test $ac_prog = install &&
2789	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2790	    # program-specific install script used by HP pwplus--don't use.
2791	    :
2792	  else
2793	    rm -rf conftest.one conftest.two conftest.dir
2794	    echo one > conftest.one
2795	    echo two > conftest.two
2796	    mkdir conftest.dir
2797	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2798	      test -s conftest.one && test -s conftest.two &&
2799	      test -s conftest.dir/conftest.one &&
2800	      test -s conftest.dir/conftest.two
2801	    then
2802	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2803	      break 3
2804	    fi
2805	  fi
2806	fi
2807      done
2808    done
2809    ;;
2810esac
2811
2812  done
2813IFS=$as_save_IFS
2814
2815rm -rf conftest.one conftest.two conftest.dir
2816
2817fi
2818  if test "${ac_cv_path_install+set}" = set; then
2819    INSTALL=$ac_cv_path_install
2820  else
2821    # As a last resort, use the slow shell script.  Don't cache a
2822    # value for INSTALL within a source directory, because that will
2823    # break other packages using the cache if that directory is
2824    # removed, or if the value is a relative name.
2825    INSTALL=$ac_install_sh
2826  fi
2827fi
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2829$as_echo "$INSTALL" >&6; }
2830
2831# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2832# It thinks the first close brace ends the variable substitution.
2833test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2834
2835test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2836
2837test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2838
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2840$as_echo_n "checking whether build environment is sane... " >&6; }
2841# Reject unsafe characters in $srcdir or the absolute working directory
2842# name.  Accept space and tab only in the latter.
2843am_lf='
2844'
2845case `pwd` in
2846  *[\\\"\#\$\&\'\`$am_lf]*)
2847    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2848esac
2849case $srcdir in
2850  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2851    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2852esac
2853
2854# Do 'set' in a subshell so we don't clobber the current shell's
2855# arguments.  Must try -L first in case configure is actually a
2856# symlink; some systems play weird games with the mod time of symlinks
2857# (eg FreeBSD returns the mod time of the symlink's containing
2858# directory).
2859if (
2860   am_has_slept=no
2861   for am_try in 1 2; do
2862     echo "timestamp, slept: $am_has_slept" > conftest.file
2863     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2864     if test "$*" = "X"; then
2865	# -L didn't work.
2866	set X `ls -t "$srcdir/configure" conftest.file`
2867     fi
2868     if test "$*" != "X $srcdir/configure conftest.file" \
2869	&& test "$*" != "X conftest.file $srcdir/configure"; then
2870
2871	# If neither matched, then we have a broken ls.  This can happen
2872	# if, for instance, CONFIG_SHELL is bash and it inherits a
2873	# broken ls alias from the environment.  This has actually
2874	# happened.  Such a system could not be considered "sane".
2875	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2876  alias in your environment" "$LINENO" 5
2877     fi
2878     if test "$2" = conftest.file || test $am_try -eq 2; then
2879       break
2880     fi
2881     # Just in case.
2882     sleep 1
2883     am_has_slept=yes
2884   done
2885   test "$2" = conftest.file
2886   )
2887then
2888   # Ok.
2889   :
2890else
2891   as_fn_error $? "newly created file is older than distributed files!
2892Check your system clock" "$LINENO" 5
2893fi
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2895$as_echo "yes" >&6; }
2896# If we didn't sleep, we still need to ensure time stamps of config.status and
2897# generated files are strictly newer.
2898am_sleep_pid=
2899if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2900  ( sleep 1 ) &
2901  am_sleep_pid=$!
2902fi
2903
2904rm -f conftest.file
2905
2906test "$program_prefix" != NONE &&
2907  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2908# Use a double $ so make ignores it.
2909test "$program_suffix" != NONE &&
2910  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2911# Double any \ or $.
2912# By default was `s,x,x', remove it if useless.
2913ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2914program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2915
2916# Expand $ac_aux_dir to an absolute path.
2917am_aux_dir=`cd "$ac_aux_dir" && pwd`
2918
2919if test x"${MISSING+set}" != xset; then
2920  MISSING="\${SHELL} '$am_aux_dir/missing'"
2921fi
2922# Use eval to expand $SHELL
2923if eval "$MISSING --is-lightweight"; then
2924  am_missing_run="$MISSING "
2925else
2926  am_missing_run=
2927  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2928$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2929fi
2930
2931if test x"${install_sh+set}" != xset; then
2932  case $am_aux_dir in
2933  *\ * | *\	*)
2934    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2935  *)
2936    install_sh="\${SHELL} $am_aux_dir/install-sh"
2937  esac
2938fi
2939
2940# Installed binaries are usually stripped using 'strip' when the user
2941# run "make install-strip".  However 'strip' might not be the right
2942# tool to use in cross-compilation environments, therefore Automake
2943# will honor the 'STRIP' environment variable to overrule this program.
2944if test "$cross_compiling" != no; then
2945  if test -n "$ac_tool_prefix"; then
2946  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2947set dummy ${ac_tool_prefix}strip; ac_word=$2
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949$as_echo_n "checking for $ac_word... " >&6; }
2950if ${ac_cv_prog_STRIP+:} false; then :
2951  $as_echo_n "(cached) " >&6
2952else
2953  if test -n "$STRIP"; then
2954  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2955else
2956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957for as_dir in $PATH
2958do
2959  IFS=$as_save_IFS
2960  test -z "$as_dir" && as_dir=.
2961    for ac_exec_ext in '' $ac_executable_extensions; do
2962  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965    break 2
2966  fi
2967done
2968  done
2969IFS=$as_save_IFS
2970
2971fi
2972fi
2973STRIP=$ac_cv_prog_STRIP
2974if test -n "$STRIP"; then
2975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2976$as_echo "$STRIP" >&6; }
2977else
2978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979$as_echo "no" >&6; }
2980fi
2981
2982
2983fi
2984if test -z "$ac_cv_prog_STRIP"; then
2985  ac_ct_STRIP=$STRIP
2986  # Extract the first word of "strip", so it can be a program name with args.
2987set dummy strip; ac_word=$2
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989$as_echo_n "checking for $ac_word... " >&6; }
2990if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2991  $as_echo_n "(cached) " >&6
2992else
2993  if test -n "$ac_ct_STRIP"; then
2994  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2995else
2996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997for as_dir in $PATH
2998do
2999  IFS=$as_save_IFS
3000  test -z "$as_dir" && as_dir=.
3001    for ac_exec_ext in '' $ac_executable_extensions; do
3002  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003    ac_cv_prog_ac_ct_STRIP="strip"
3004    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005    break 2
3006  fi
3007done
3008  done
3009IFS=$as_save_IFS
3010
3011fi
3012fi
3013ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3014if test -n "$ac_ct_STRIP"; then
3015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3016$as_echo "$ac_ct_STRIP" >&6; }
3017else
3018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019$as_echo "no" >&6; }
3020fi
3021
3022  if test "x$ac_ct_STRIP" = x; then
3023    STRIP=":"
3024  else
3025    case $cross_compiling:$ac_tool_warned in
3026yes:)
3027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3029ac_tool_warned=yes ;;
3030esac
3031    STRIP=$ac_ct_STRIP
3032  fi
3033else
3034  STRIP="$ac_cv_prog_STRIP"
3035fi
3036
3037fi
3038INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3039
3040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3041$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3042if test -z "$MKDIR_P"; then
3043  if ${ac_cv_path_mkdir+:} false; then :
3044  $as_echo_n "(cached) " >&6
3045else
3046  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3048do
3049  IFS=$as_save_IFS
3050  test -z "$as_dir" && as_dir=.
3051    for ac_prog in mkdir gmkdir; do
3052	 for ac_exec_ext in '' $ac_executable_extensions; do
3053	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3054	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3055	     'mkdir (GNU coreutils) '* | \
3056	     'mkdir (coreutils) '* | \
3057	     'mkdir (fileutils) '4.1*)
3058	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3059	       break 3;;
3060	   esac
3061	 done
3062       done
3063  done
3064IFS=$as_save_IFS
3065
3066fi
3067
3068  test -d ./--version && rmdir ./--version
3069  if test "${ac_cv_path_mkdir+set}" = set; then
3070    MKDIR_P="$ac_cv_path_mkdir -p"
3071  else
3072    # As a last resort, use the slow shell script.  Don't cache a
3073    # value for MKDIR_P within a source directory, because that will
3074    # break other packages using the cache if that directory is
3075    # removed, or if the value is a relative name.
3076    MKDIR_P="$ac_install_sh -d"
3077  fi
3078fi
3079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3080$as_echo "$MKDIR_P" >&6; }
3081
3082for ac_prog in gawk mawk nawk awk
3083do
3084  # Extract the first word of "$ac_prog", so it can be a program name with args.
3085set dummy $ac_prog; ac_word=$2
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087$as_echo_n "checking for $ac_word... " >&6; }
3088if ${ac_cv_prog_AWK+:} false; then :
3089  $as_echo_n "(cached) " >&6
3090else
3091  if test -n "$AWK"; then
3092  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3093else
3094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095for as_dir in $PATH
3096do
3097  IFS=$as_save_IFS
3098  test -z "$as_dir" && as_dir=.
3099    for ac_exec_ext in '' $ac_executable_extensions; do
3100  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101    ac_cv_prog_AWK="$ac_prog"
3102    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103    break 2
3104  fi
3105done
3106  done
3107IFS=$as_save_IFS
3108
3109fi
3110fi
3111AWK=$ac_cv_prog_AWK
3112if test -n "$AWK"; then
3113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3114$as_echo "$AWK" >&6; }
3115else
3116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117$as_echo "no" >&6; }
3118fi
3119
3120
3121  test -n "$AWK" && break
3122done
3123
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3125$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3126set x ${MAKE-make}
3127ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3128if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3129  $as_echo_n "(cached) " >&6
3130else
3131  cat >conftest.make <<\_ACEOF
3132SHELL = /bin/sh
3133all:
3134	@echo '@@@%%%=$(MAKE)=@@@%%%'
3135_ACEOF
3136# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3137case `${MAKE-make} -f conftest.make 2>/dev/null` in
3138  *@@@%%%=?*=@@@%%%*)
3139    eval ac_cv_prog_make_${ac_make}_set=yes;;
3140  *)
3141    eval ac_cv_prog_make_${ac_make}_set=no;;
3142esac
3143rm -f conftest.make
3144fi
3145if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3147$as_echo "yes" >&6; }
3148  SET_MAKE=
3149else
3150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151$as_echo "no" >&6; }
3152  SET_MAKE="MAKE=${MAKE-make}"
3153fi
3154
3155rm -rf .tst 2>/dev/null
3156mkdir .tst 2>/dev/null
3157if test -d .tst; then
3158  am__leading_dot=.
3159else
3160  am__leading_dot=_
3161fi
3162rmdir .tst 2>/dev/null
3163
3164# Check whether --enable-silent-rules was given.
3165if test "${enable_silent_rules+set}" = set; then :
3166  enableval=$enable_silent_rules;
3167fi
3168
3169case $enable_silent_rules in # (((
3170  yes) AM_DEFAULT_VERBOSITY=0;;
3171   no) AM_DEFAULT_VERBOSITY=1;;
3172    *) AM_DEFAULT_VERBOSITY=1;;
3173esac
3174am_make=${MAKE-make}
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3176$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3177if ${am_cv_make_support_nested_variables+:} false; then :
3178  $as_echo_n "(cached) " >&6
3179else
3180  if $as_echo 'TRUE=$(BAR$(V))
3181BAR0=false
3182BAR1=true
3183V=1
3184am__doit:
3185	@$(TRUE)
3186.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3187  am_cv_make_support_nested_variables=yes
3188else
3189  am_cv_make_support_nested_variables=no
3190fi
3191fi
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3193$as_echo "$am_cv_make_support_nested_variables" >&6; }
3194if test $am_cv_make_support_nested_variables = yes; then
3195    AM_V='$(V)'
3196  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3197else
3198  AM_V=$AM_DEFAULT_VERBOSITY
3199  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3200fi
3201AM_BACKSLASH='\'
3202
3203if test "`cd $srcdir && pwd`" != "`pwd`"; then
3204  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3205  # is not polluted with repeated "-I."
3206  am__isrc=' -I$(srcdir)'
3207  # test to see if srcdir already configured
3208  if test -f $srcdir/config.status; then
3209    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3210  fi
3211fi
3212
3213# test whether we have cygpath
3214if test -z "$CYGPATH_W"; then
3215  if (cygpath --version) >/dev/null 2>/dev/null; then
3216    CYGPATH_W='cygpath -w'
3217  else
3218    CYGPATH_W=echo
3219  fi
3220fi
3221
3222
3223# Define the identity of the package.
3224 PACKAGE='libevent'
3225 VERSION='2.1.12-stable'
3226
3227
3228cat >>confdefs.h <<_ACEOF
3229#define PACKAGE "$PACKAGE"
3230_ACEOF
3231
3232
3233cat >>confdefs.h <<_ACEOF
3234#define VERSION "$VERSION"
3235_ACEOF
3236
3237# Some tools Automake needs.
3238
3239ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3240
3241
3242AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3243
3244
3245AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3246
3247
3248AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3249
3250
3251MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3252
3253# For better backward compatibility.  To be removed once Automake 1.9.x
3254# dies out for good.  For more background, see:
3255# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3256# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3257mkdir_p='$(MKDIR_P)'
3258
3259# We need awk for the "check" target (and possibly the TAP driver).  The
3260# system "awk" is bad on some platforms.
3261# Always define AMTAR for backward compatibility.  Yes, it's still used
3262# in the wild :-(  We should find a proper way to deprecate it ...
3263AMTAR='$${TAR-tar}'
3264
3265
3266# We'll loop over all known methods to create a tar archive until one works.
3267_am_tools='gnutar  pax cpio none'
3268
3269am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3270
3271
3272
3273
3274
3275
3276# POSIX will say in a future version that running "rm -f" with no argument
3277# is OK; and we want to be able to make that assumption in our Makefile
3278# recipes.  So use an aggressive probe to check that the usage we want is
3279# actually supported "in the wild" to an acceptable degree.
3280# See automake bug#10828.
3281# To make any issue more visible, cause the running configure to be aborted
3282# by default if the 'rm' program in use doesn't match our expectations; the
3283# user can still override this though.
3284if rm -f && rm -fr && rm -rf; then : OK; else
3285  cat >&2 <<'END'
3286Oops!
3287
3288Your 'rm' program seems unable to run without file operands specified
3289on the command line, even when the '-f' option is present.  This is contrary
3290to the behaviour of most rm programs out there, and not conforming with
3291the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3292
3293Please tell bug-automake@gnu.org about your system, including the value
3294of your $PATH and any error possibly output before this message.  This
3295can help us improve future automake versions.
3296
3297END
3298  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3299    echo 'Configuration will proceed anyway, since you have set the' >&2
3300    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3301    echo >&2
3302  else
3303    cat >&2 <<'END'
3304Aborting the configuration process, to ensure you take notice of the issue.
3305
3306You can download and install GNU coreutils to get an 'rm' implementation
3307that behaves properly: <https://www.gnu.org/software/coreutils/>.
3308
3309If you want to complete the configuration process using your problematic
3310'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3311to "yes", and re-run configure.
3312
3313END
3314    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3315  fi
3316fi
3317
3318# Check whether --enable-silent-rules was given.
3319if test "${enable_silent_rules+set}" = set; then :
3320  enableval=$enable_silent_rules;
3321fi
3322
3323case $enable_silent_rules in # (((
3324  yes) AM_DEFAULT_VERBOSITY=0;;
3325   no) AM_DEFAULT_VERBOSITY=1;;
3326    *) AM_DEFAULT_VERBOSITY=0;;
3327esac
3328am_make=${MAKE-make}
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3330$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3331if ${am_cv_make_support_nested_variables+:} false; then :
3332  $as_echo_n "(cached) " >&6
3333else
3334  if $as_echo 'TRUE=$(BAR$(V))
3335BAR0=false
3336BAR1=true
3337V=1
3338am__doit:
3339	@$(TRUE)
3340.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3341  am_cv_make_support_nested_variables=yes
3342else
3343  am_cv_make_support_nested_variables=no
3344fi
3345fi
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3347$as_echo "$am_cv_make_support_nested_variables" >&6; }
3348if test $am_cv_make_support_nested_variables = yes; then
3349    AM_V='$(V)'
3350  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3351else
3352  AM_V=$AM_DEFAULT_VERBOSITY
3353  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3354fi
3355AM_BACKSLASH='\'
3356
3357ac_config_headers="$ac_config_headers config.h evconfig-private.h:evconfig-private.h.in"
3358
3359
3360$as_echo "#define NUMERIC_VERSION 0x02010c00" >>confdefs.h
3361
3362
3363
3364
3365DEPDIR="${am__leading_dot}deps"
3366
3367ac_config_commands="$ac_config_commands depfiles"
3368
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3370$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3371cat > confinc.mk << 'END'
3372am__doit:
3373	@echo this is the am__doit target >confinc.out
3374.PHONY: am__doit
3375END
3376am__include="#"
3377am__quote=
3378# BSD make does it like this.
3379echo '.include "confinc.mk" # ignored' > confmf.BSD
3380# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3381echo 'include confinc.mk # ignored' > confmf.GNU
3382_am_result=no
3383for s in GNU BSD; do
3384  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3385   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3386   ac_status=$?
3387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388   (exit $ac_status); }
3389  case $?:`cat confinc.out 2>/dev/null` in #(
3390  '0:this is the am__doit target') :
3391    case $s in #(
3392  BSD) :
3393    am__include='.include' am__quote='"' ;; #(
3394  *) :
3395    am__include='include' am__quote='' ;;
3396esac ;; #(
3397  *) :
3398     ;;
3399esac
3400  if test "$am__include" != "#"; then
3401    _am_result="yes ($s style)"
3402    break
3403  fi
3404done
3405rm -f confinc.* confmf.*
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3407$as_echo "${_am_result}" >&6; }
3408
3409# Check whether --enable-dependency-tracking was given.
3410if test "${enable_dependency_tracking+set}" = set; then :
3411  enableval=$enable_dependency_tracking;
3412fi
3413
3414if test "x$enable_dependency_tracking" != xno; then
3415  am_depcomp="$ac_aux_dir/depcomp"
3416  AMDEPBACKSLASH='\'
3417  am__nodep='_no'
3418fi
3419 if test "x$enable_dependency_tracking" != xno; then
3420  AMDEP_TRUE=
3421  AMDEP_FALSE='#'
3422else
3423  AMDEP_TRUE='#'
3424  AMDEP_FALSE=
3425fi
3426
3427
3428ac_ext=c
3429ac_cpp='$CPP $CPPFLAGS'
3430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433if test -n "$ac_tool_prefix"; then
3434  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3435set dummy ${ac_tool_prefix}gcc; ac_word=$2
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437$as_echo_n "checking for $ac_word... " >&6; }
3438if ${ac_cv_prog_CC+:} false; then :
3439  $as_echo_n "(cached) " >&6
3440else
3441  if test -n "$CC"; then
3442  ac_cv_prog_CC="$CC" # Let the user override the test.
3443else
3444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445for as_dir in $PATH
3446do
3447  IFS=$as_save_IFS
3448  test -z "$as_dir" && as_dir=.
3449    for ac_exec_ext in '' $ac_executable_extensions; do
3450  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3451    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3453    break 2
3454  fi
3455done
3456  done
3457IFS=$as_save_IFS
3458
3459fi
3460fi
3461CC=$ac_cv_prog_CC
3462if test -n "$CC"; then
3463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3464$as_echo "$CC" >&6; }
3465else
3466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467$as_echo "no" >&6; }
3468fi
3469
3470
3471fi
3472if test -z "$ac_cv_prog_CC"; then
3473  ac_ct_CC=$CC
3474  # Extract the first word of "gcc", so it can be a program name with args.
3475set dummy gcc; ac_word=$2
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3477$as_echo_n "checking for $ac_word... " >&6; }
3478if ${ac_cv_prog_ac_ct_CC+:} false; then :
3479  $as_echo_n "(cached) " >&6
3480else
3481  if test -n "$ac_ct_CC"; then
3482  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3483else
3484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485for as_dir in $PATH
3486do
3487  IFS=$as_save_IFS
3488  test -z "$as_dir" && as_dir=.
3489    for ac_exec_ext in '' $ac_executable_extensions; do
3490  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3491    ac_cv_prog_ac_ct_CC="gcc"
3492    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3493    break 2
3494  fi
3495done
3496  done
3497IFS=$as_save_IFS
3498
3499fi
3500fi
3501ac_ct_CC=$ac_cv_prog_ac_ct_CC
3502if test -n "$ac_ct_CC"; then
3503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3504$as_echo "$ac_ct_CC" >&6; }
3505else
3506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507$as_echo "no" >&6; }
3508fi
3509
3510  if test "x$ac_ct_CC" = x; then
3511    CC=""
3512  else
3513    case $cross_compiling:$ac_tool_warned in
3514yes:)
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3517ac_tool_warned=yes ;;
3518esac
3519    CC=$ac_ct_CC
3520  fi
3521else
3522  CC="$ac_cv_prog_CC"
3523fi
3524
3525if test -z "$CC"; then
3526          if test -n "$ac_tool_prefix"; then
3527    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3528set dummy ${ac_tool_prefix}cc; ac_word=$2
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530$as_echo_n "checking for $ac_word... " >&6; }
3531if ${ac_cv_prog_CC+:} false; then :
3532  $as_echo_n "(cached) " >&6
3533else
3534  if test -n "$CC"; then
3535  ac_cv_prog_CC="$CC" # Let the user override the test.
3536else
3537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538for as_dir in $PATH
3539do
3540  IFS=$as_save_IFS
3541  test -z "$as_dir" && as_dir=.
3542    for ac_exec_ext in '' $ac_executable_extensions; do
3543  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3544    ac_cv_prog_CC="${ac_tool_prefix}cc"
3545    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3546    break 2
3547  fi
3548done
3549  done
3550IFS=$as_save_IFS
3551
3552fi
3553fi
3554CC=$ac_cv_prog_CC
3555if test -n "$CC"; then
3556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3557$as_echo "$CC" >&6; }
3558else
3559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560$as_echo "no" >&6; }
3561fi
3562
3563
3564  fi
3565fi
3566if test -z "$CC"; then
3567  # Extract the first word of "cc", so it can be a program name with args.
3568set dummy cc; ac_word=$2
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570$as_echo_n "checking for $ac_word... " >&6; }
3571if ${ac_cv_prog_CC+:} false; then :
3572  $as_echo_n "(cached) " >&6
3573else
3574  if test -n "$CC"; then
3575  ac_cv_prog_CC="$CC" # Let the user override the test.
3576else
3577  ac_prog_rejected=no
3578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579for as_dir in $PATH
3580do
3581  IFS=$as_save_IFS
3582  test -z "$as_dir" && as_dir=.
3583    for ac_exec_ext in '' $ac_executable_extensions; do
3584  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3585    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3586       ac_prog_rejected=yes
3587       continue
3588     fi
3589    ac_cv_prog_CC="cc"
3590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3591    break 2
3592  fi
3593done
3594  done
3595IFS=$as_save_IFS
3596
3597if test $ac_prog_rejected = yes; then
3598  # We found a bogon in the path, so make sure we never use it.
3599  set dummy $ac_cv_prog_CC
3600  shift
3601  if test $# != 0; then
3602    # We chose a different compiler from the bogus one.
3603    # However, it has the same basename, so the bogon will be chosen
3604    # first if we set CC to just the basename; use the full file name.
3605    shift
3606    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3607  fi
3608fi
3609fi
3610fi
3611CC=$ac_cv_prog_CC
3612if test -n "$CC"; then
3613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3614$as_echo "$CC" >&6; }
3615else
3616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617$as_echo "no" >&6; }
3618fi
3619
3620
3621fi
3622if test -z "$CC"; then
3623  if test -n "$ac_tool_prefix"; then
3624  for ac_prog in cl.exe
3625  do
3626    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3627set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629$as_echo_n "checking for $ac_word... " >&6; }
3630if ${ac_cv_prog_CC+:} false; then :
3631  $as_echo_n "(cached) " >&6
3632else
3633  if test -n "$CC"; then
3634  ac_cv_prog_CC="$CC" # Let the user override the test.
3635else
3636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637for as_dir in $PATH
3638do
3639  IFS=$as_save_IFS
3640  test -z "$as_dir" && as_dir=.
3641    for ac_exec_ext in '' $ac_executable_extensions; do
3642  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3643    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3644    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645    break 2
3646  fi
3647done
3648  done
3649IFS=$as_save_IFS
3650
3651fi
3652fi
3653CC=$ac_cv_prog_CC
3654if test -n "$CC"; then
3655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3656$as_echo "$CC" >&6; }
3657else
3658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659$as_echo "no" >&6; }
3660fi
3661
3662
3663    test -n "$CC" && break
3664  done
3665fi
3666if test -z "$CC"; then
3667  ac_ct_CC=$CC
3668  for ac_prog in cl.exe
3669do
3670  # Extract the first word of "$ac_prog", so it can be a program name with args.
3671set dummy $ac_prog; ac_word=$2
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3673$as_echo_n "checking for $ac_word... " >&6; }
3674if ${ac_cv_prog_ac_ct_CC+:} false; then :
3675  $as_echo_n "(cached) " >&6
3676else
3677  if test -n "$ac_ct_CC"; then
3678  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3679else
3680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681for as_dir in $PATH
3682do
3683  IFS=$as_save_IFS
3684  test -z "$as_dir" && as_dir=.
3685    for ac_exec_ext in '' $ac_executable_extensions; do
3686  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687    ac_cv_prog_ac_ct_CC="$ac_prog"
3688    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3689    break 2
3690  fi
3691done
3692  done
3693IFS=$as_save_IFS
3694
3695fi
3696fi
3697ac_ct_CC=$ac_cv_prog_ac_ct_CC
3698if test -n "$ac_ct_CC"; then
3699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3700$as_echo "$ac_ct_CC" >&6; }
3701else
3702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703$as_echo "no" >&6; }
3704fi
3705
3706
3707  test -n "$ac_ct_CC" && break
3708done
3709
3710  if test "x$ac_ct_CC" = x; then
3711    CC=""
3712  else
3713    case $cross_compiling:$ac_tool_warned in
3714yes:)
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3717ac_tool_warned=yes ;;
3718esac
3719    CC=$ac_ct_CC
3720  fi
3721fi
3722
3723fi
3724
3725
3726test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3727$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3728as_fn_error $? "no acceptable C compiler found in \$PATH
3729See \`config.log' for more details" "$LINENO" 5; }
3730
3731# Provide some information about the compiler.
3732$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3733set X $ac_compile
3734ac_compiler=$2
3735for ac_option in --version -v -V -qversion; do
3736  { { ac_try="$ac_compiler $ac_option >&5"
3737case "(($ac_try" in
3738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739  *) ac_try_echo=$ac_try;;
3740esac
3741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3742$as_echo "$ac_try_echo"; } >&5
3743  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3744  ac_status=$?
3745  if test -s conftest.err; then
3746    sed '10a\
3747... rest of stderr output deleted ...
3748         10q' conftest.err >conftest.er1
3749    cat conftest.er1 >&5
3750  fi
3751  rm -f conftest.er1 conftest.err
3752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3753  test $ac_status = 0; }
3754done
3755
3756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757/* end confdefs.h.  */
3758
3759int
3760main ()
3761{
3762
3763  ;
3764  return 0;
3765}
3766_ACEOF
3767ac_clean_files_save=$ac_clean_files
3768ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3769# Try to create an executable without -o first, disregard a.out.
3770# It will help us diagnose broken compilers, and finding out an intuition
3771# of exeext.
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3773$as_echo_n "checking whether the C compiler works... " >&6; }
3774ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3775
3776# The possible output files:
3777ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3778
3779ac_rmfiles=
3780for ac_file in $ac_files
3781do
3782  case $ac_file in
3783    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3784    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3785  esac
3786done
3787rm -f $ac_rmfiles
3788
3789if { { ac_try="$ac_link_default"
3790case "(($ac_try" in
3791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792  *) ac_try_echo=$ac_try;;
3793esac
3794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3795$as_echo "$ac_try_echo"; } >&5
3796  (eval "$ac_link_default") 2>&5
3797  ac_status=$?
3798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3799  test $ac_status = 0; }; then :
3800  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3801# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3802# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3803# so that the user can short-circuit this test for compilers unknown to
3804# Autoconf.
3805for ac_file in $ac_files ''
3806do
3807  test -f "$ac_file" || continue
3808  case $ac_file in
3809    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3810	;;
3811    [ab].out )
3812	# We found the default executable, but exeext='' is most
3813	# certainly right.
3814	break;;
3815    *.* )
3816	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3817	then :; else
3818	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3819	fi
3820	# We set ac_cv_exeext here because the later test for it is not
3821	# safe: cross compilers may not add the suffix if given an `-o'
3822	# argument, so we may need to know it at that point already.
3823	# Even if this section looks crufty: it has the advantage of
3824	# actually working.
3825	break;;
3826    * )
3827	break;;
3828  esac
3829done
3830test "$ac_cv_exeext" = no && ac_cv_exeext=
3831
3832else
3833  ac_file=''
3834fi
3835if test -z "$ac_file"; then :
3836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3837$as_echo "no" >&6; }
3838$as_echo "$as_me: failed program was:" >&5
3839sed 's/^/| /' conftest.$ac_ext >&5
3840
3841{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3842$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3843as_fn_error 77 "C compiler cannot create executables
3844See \`config.log' for more details" "$LINENO" 5; }
3845else
3846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3847$as_echo "yes" >&6; }
3848fi
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3850$as_echo_n "checking for C compiler default output file name... " >&6; }
3851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3852$as_echo "$ac_file" >&6; }
3853ac_exeext=$ac_cv_exeext
3854
3855rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3856ac_clean_files=$ac_clean_files_save
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3858$as_echo_n "checking for suffix of executables... " >&6; }
3859if { { ac_try="$ac_link"
3860case "(($ac_try" in
3861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862  *) ac_try_echo=$ac_try;;
3863esac
3864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3865$as_echo "$ac_try_echo"; } >&5
3866  (eval "$ac_link") 2>&5
3867  ac_status=$?
3868  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3869  test $ac_status = 0; }; then :
3870  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3871# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3872# work properly (i.e., refer to `conftest.exe'), while it won't with
3873# `rm'.
3874for ac_file in conftest.exe conftest conftest.*; do
3875  test -f "$ac_file" || continue
3876  case $ac_file in
3877    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3878    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3879	  break;;
3880    * ) break;;
3881  esac
3882done
3883else
3884  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3886as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3887See \`config.log' for more details" "$LINENO" 5; }
3888fi
3889rm -f conftest conftest$ac_cv_exeext
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3891$as_echo "$ac_cv_exeext" >&6; }
3892
3893rm -f conftest.$ac_ext
3894EXEEXT=$ac_cv_exeext
3895ac_exeext=$EXEEXT
3896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897/* end confdefs.h.  */
3898#include <stdio.h>
3899int
3900main ()
3901{
3902FILE *f = fopen ("conftest.out", "w");
3903 return ferror (f) || fclose (f) != 0;
3904
3905  ;
3906  return 0;
3907}
3908_ACEOF
3909ac_clean_files="$ac_clean_files conftest.out"
3910# Check that the compiler produces executables we can run.  If not, either
3911# the compiler is broken, or we cross compile.
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3913$as_echo_n "checking whether we are cross compiling... " >&6; }
3914if test "$cross_compiling" != yes; then
3915  { { ac_try="$ac_link"
3916case "(($ac_try" in
3917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918  *) ac_try_echo=$ac_try;;
3919esac
3920eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3921$as_echo "$ac_try_echo"; } >&5
3922  (eval "$ac_link") 2>&5
3923  ac_status=$?
3924  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3925  test $ac_status = 0; }
3926  if { ac_try='./conftest$ac_cv_exeext'
3927  { { case "(($ac_try" in
3928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929  *) ac_try_echo=$ac_try;;
3930esac
3931eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3932$as_echo "$ac_try_echo"; } >&5
3933  (eval "$ac_try") 2>&5
3934  ac_status=$?
3935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3936  test $ac_status = 0; }; }; then
3937    cross_compiling=no
3938  else
3939    if test "$cross_compiling" = maybe; then
3940	cross_compiling=yes
3941    else
3942	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944as_fn_error $? "cannot run C compiled programs.
3945If you meant to cross compile, use \`--host'.
3946See \`config.log' for more details" "$LINENO" 5; }
3947    fi
3948  fi
3949fi
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3951$as_echo "$cross_compiling" >&6; }
3952
3953rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3954ac_clean_files=$ac_clean_files_save
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3956$as_echo_n "checking for suffix of object files... " >&6; }
3957if ${ac_cv_objext+:} false; then :
3958  $as_echo_n "(cached) " >&6
3959else
3960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961/* end confdefs.h.  */
3962
3963int
3964main ()
3965{
3966
3967  ;
3968  return 0;
3969}
3970_ACEOF
3971rm -f conftest.o conftest.obj
3972if { { ac_try="$ac_compile"
3973case "(($ac_try" in
3974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975  *) ac_try_echo=$ac_try;;
3976esac
3977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3978$as_echo "$ac_try_echo"; } >&5
3979  (eval "$ac_compile") 2>&5
3980  ac_status=$?
3981  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3982  test $ac_status = 0; }; then :
3983  for ac_file in conftest.o conftest.obj conftest.*; do
3984  test -f "$ac_file" || continue;
3985  case $ac_file in
3986    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3987    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3988       break;;
3989  esac
3990done
3991else
3992  $as_echo "$as_me: failed program was:" >&5
3993sed 's/^/| /' conftest.$ac_ext >&5
3994
3995{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3997as_fn_error $? "cannot compute suffix of object files: cannot compile
3998See \`config.log' for more details" "$LINENO" 5; }
3999fi
4000rm -f conftest.$ac_cv_objext conftest.$ac_ext
4001fi
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4003$as_echo "$ac_cv_objext" >&6; }
4004OBJEXT=$ac_cv_objext
4005ac_objext=$OBJEXT
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4007$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4008if ${ac_cv_c_compiler_gnu+:} false; then :
4009  $as_echo_n "(cached) " >&6
4010else
4011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012/* end confdefs.h.  */
4013
4014int
4015main ()
4016{
4017#ifndef __GNUC__
4018       choke me
4019#endif
4020
4021  ;
4022  return 0;
4023}
4024_ACEOF
4025if ac_fn_c_try_compile "$LINENO"; then :
4026  ac_compiler_gnu=yes
4027else
4028  ac_compiler_gnu=no
4029fi
4030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031ac_cv_c_compiler_gnu=$ac_compiler_gnu
4032
4033fi
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4035$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4036if test $ac_compiler_gnu = yes; then
4037  GCC=yes
4038else
4039  GCC=
4040fi
4041ac_test_CFLAGS=${CFLAGS+set}
4042ac_save_CFLAGS=$CFLAGS
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4044$as_echo_n "checking whether $CC accepts -g... " >&6; }
4045if ${ac_cv_prog_cc_g+:} false; then :
4046  $as_echo_n "(cached) " >&6
4047else
4048  ac_save_c_werror_flag=$ac_c_werror_flag
4049   ac_c_werror_flag=yes
4050   ac_cv_prog_cc_g=no
4051   CFLAGS="-g"
4052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053/* end confdefs.h.  */
4054
4055int
4056main ()
4057{
4058
4059  ;
4060  return 0;
4061}
4062_ACEOF
4063if ac_fn_c_try_compile "$LINENO"; then :
4064  ac_cv_prog_cc_g=yes
4065else
4066  CFLAGS=""
4067      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068/* end confdefs.h.  */
4069
4070int
4071main ()
4072{
4073
4074  ;
4075  return 0;
4076}
4077_ACEOF
4078if ac_fn_c_try_compile "$LINENO"; then :
4079
4080else
4081  ac_c_werror_flag=$ac_save_c_werror_flag
4082	 CFLAGS="-g"
4083	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084/* end confdefs.h.  */
4085
4086int
4087main ()
4088{
4089
4090  ;
4091  return 0;
4092}
4093_ACEOF
4094if ac_fn_c_try_compile "$LINENO"; then :
4095  ac_cv_prog_cc_g=yes
4096fi
4097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098fi
4099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100fi
4101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102   ac_c_werror_flag=$ac_save_c_werror_flag
4103fi
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4105$as_echo "$ac_cv_prog_cc_g" >&6; }
4106if test "$ac_test_CFLAGS" = set; then
4107  CFLAGS=$ac_save_CFLAGS
4108elif test $ac_cv_prog_cc_g = yes; then
4109  if test "$GCC" = yes; then
4110    CFLAGS="-g -O2"
4111  else
4112    CFLAGS="-g"
4113  fi
4114else
4115  if test "$GCC" = yes; then
4116    CFLAGS="-O2"
4117  else
4118    CFLAGS=
4119  fi
4120fi
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4122$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4123if ${ac_cv_prog_cc_c89+:} false; then :
4124  $as_echo_n "(cached) " >&6
4125else
4126  ac_cv_prog_cc_c89=no
4127ac_save_CC=$CC
4128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129/* end confdefs.h.  */
4130#include <stdarg.h>
4131#include <stdio.h>
4132struct stat;
4133/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4134struct buf { int x; };
4135FILE * (*rcsopen) (struct buf *, struct stat *, int);
4136static char *e (p, i)
4137     char **p;
4138     int i;
4139{
4140  return p[i];
4141}
4142static char *f (char * (*g) (char **, int), char **p, ...)
4143{
4144  char *s;
4145  va_list v;
4146  va_start (v,p);
4147  s = g (p, va_arg (v,int));
4148  va_end (v);
4149  return s;
4150}
4151
4152/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4153   function prototypes and stuff, but not '\xHH' hex character constants.
4154   These don't provoke an error unfortunately, instead are silently treated
4155   as 'x'.  The following induces an error, until -std is added to get
4156   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4157   array size at least.  It's necessary to write '\x00'==0 to get something
4158   that's true only with -std.  */
4159int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4160
4161/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4162   inside strings and character constants.  */
4163#define FOO(x) 'x'
4164int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4165
4166int test (int i, double x);
4167struct s1 {int (*f) (int a);};
4168struct s2 {int (*f) (double a);};
4169int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4170int argc;
4171char **argv;
4172int
4173main ()
4174{
4175return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4176  ;
4177  return 0;
4178}
4179_ACEOF
4180for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4181	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4182do
4183  CC="$ac_save_CC $ac_arg"
4184  if ac_fn_c_try_compile "$LINENO"; then :
4185  ac_cv_prog_cc_c89=$ac_arg
4186fi
4187rm -f core conftest.err conftest.$ac_objext
4188  test "x$ac_cv_prog_cc_c89" != "xno" && break
4189done
4190rm -f conftest.$ac_ext
4191CC=$ac_save_CC
4192
4193fi
4194# AC_CACHE_VAL
4195case "x$ac_cv_prog_cc_c89" in
4196  x)
4197    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4198$as_echo "none needed" >&6; } ;;
4199  xno)
4200    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4201$as_echo "unsupported" >&6; } ;;
4202  *)
4203    CC="$CC $ac_cv_prog_cc_c89"
4204    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4205$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4206esac
4207if test "x$ac_cv_prog_cc_c89" != xno; then :
4208
4209fi
4210
4211ac_ext=c
4212ac_cpp='$CPP $CPPFLAGS'
4213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216
4217ac_ext=c
4218ac_cpp='$CPP $CPPFLAGS'
4219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4221ac_compiler_gnu=$ac_cv_c_compiler_gnu
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4223$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4224if ${am_cv_prog_cc_c_o+:} false; then :
4225  $as_echo_n "(cached) " >&6
4226else
4227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228/* end confdefs.h.  */
4229
4230int
4231main ()
4232{
4233
4234  ;
4235  return 0;
4236}
4237_ACEOF
4238  # Make sure it works both with $CC and with simple cc.
4239  # Following AC_PROG_CC_C_O, we do the test twice because some
4240  # compilers refuse to overwrite an existing .o file with -o,
4241  # though they will create one.
4242  am_cv_prog_cc_c_o=yes
4243  for am_i in 1 2; do
4244    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4245   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4246   ac_status=$?
4247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248   (exit $ac_status); } \
4249         && test -f conftest2.$ac_objext; then
4250      : OK
4251    else
4252      am_cv_prog_cc_c_o=no
4253      break
4254    fi
4255  done
4256  rm -f core conftest*
4257  unset am_i
4258fi
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4260$as_echo "$am_cv_prog_cc_c_o" >&6; }
4261if test "$am_cv_prog_cc_c_o" != yes; then
4262   # Losing compiler, so override with the script.
4263   # FIXME: It is wrong to rewrite CC.
4264   # But if we don't then we get into trouble of one sort or another.
4265   # A longer-term fix would be to have automake use am__CC in this case,
4266   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4267   CC="$am_aux_dir/compile $CC"
4268fi
4269ac_ext=c
4270ac_cpp='$CPP $CPPFLAGS'
4271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4273ac_compiler_gnu=$ac_cv_c_compiler_gnu
4274
4275
4276depcc="$CC"   am_compiler_list=
4277
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4279$as_echo_n "checking dependency style of $depcc... " >&6; }
4280if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4281  $as_echo_n "(cached) " >&6
4282else
4283  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4284  # We make a subdir and do the tests there.  Otherwise we can end up
4285  # making bogus files that we don't know about and never remove.  For
4286  # instance it was reported that on HP-UX the gcc test will end up
4287  # making a dummy file named 'D' -- because '-MD' means "put the output
4288  # in D".
4289  rm -rf conftest.dir
4290  mkdir conftest.dir
4291  # Copy depcomp to subdir because otherwise we won't find it if we're
4292  # using a relative directory.
4293  cp "$am_depcomp" conftest.dir
4294  cd conftest.dir
4295  # We will build objects and dependencies in a subdirectory because
4296  # it helps to detect inapplicable dependency modes.  For instance
4297  # both Tru64's cc and ICC support -MD to output dependencies as a
4298  # side effect of compilation, but ICC will put the dependencies in
4299  # the current directory while Tru64 will put them in the object
4300  # directory.
4301  mkdir sub
4302
4303  am_cv_CC_dependencies_compiler_type=none
4304  if test "$am_compiler_list" = ""; then
4305     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4306  fi
4307  am__universal=false
4308  case " $depcc " in #(
4309     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4310     esac
4311
4312  for depmode in $am_compiler_list; do
4313    # Setup a source with many dependencies, because some compilers
4314    # like to wrap large dependency lists on column 80 (with \), and
4315    # we should not choose a depcomp mode which is confused by this.
4316    #
4317    # We need to recreate these files for each test, as the compiler may
4318    # overwrite some of them when testing with obscure command lines.
4319    # This happens at least with the AIX C compiler.
4320    : > sub/conftest.c
4321    for i in 1 2 3 4 5 6; do
4322      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4323      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4324      # Solaris 10 /bin/sh.
4325      echo '/* dummy */' > sub/conftst$i.h
4326    done
4327    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4328
4329    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4330    # mode.  It turns out that the SunPro C++ compiler does not properly
4331    # handle '-M -o', and we need to detect this.  Also, some Intel
4332    # versions had trouble with output in subdirs.
4333    am__obj=sub/conftest.${OBJEXT-o}
4334    am__minus_obj="-o $am__obj"
4335    case $depmode in
4336    gcc)
4337      # This depmode causes a compiler race in universal mode.
4338      test "$am__universal" = false || continue
4339      ;;
4340    nosideeffect)
4341      # After this tag, mechanisms are not by side-effect, so they'll
4342      # only be used when explicitly requested.
4343      if test "x$enable_dependency_tracking" = xyes; then
4344	continue
4345      else
4346	break
4347      fi
4348      ;;
4349    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4350      # This compiler won't grok '-c -o', but also, the minuso test has
4351      # not run yet.  These depmodes are late enough in the game, and
4352      # so weak that their functioning should not be impacted.
4353      am__obj=conftest.${OBJEXT-o}
4354      am__minus_obj=
4355      ;;
4356    none) break ;;
4357    esac
4358    if depmode=$depmode \
4359       source=sub/conftest.c object=$am__obj \
4360       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4361       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4362         >/dev/null 2>conftest.err &&
4363       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4364       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4365       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4366       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4367      # icc doesn't choke on unknown options, it will just issue warnings
4368      # or remarks (even with -Werror).  So we grep stderr for any message
4369      # that says an option was ignored or not supported.
4370      # When given -MP, icc 7.0 and 7.1 complain thusly:
4371      #   icc: Command line warning: ignoring option '-M'; no argument required
4372      # The diagnosis changed in icc 8.0:
4373      #   icc: Command line remark: option '-MP' not supported
4374      if (grep 'ignoring option' conftest.err ||
4375          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4376        am_cv_CC_dependencies_compiler_type=$depmode
4377        break
4378      fi
4379    fi
4380  done
4381
4382  cd ..
4383  rm -rf conftest.dir
4384else
4385  am_cv_CC_dependencies_compiler_type=none
4386fi
4387
4388fi
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4390$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4391CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4392
4393 if
4394  test "x$enable_dependency_tracking" != xno \
4395  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4396  am__fastdepCC_TRUE=
4397  am__fastdepCC_FALSE='#'
4398else
4399  am__fastdepCC_TRUE='#'
4400  am__fastdepCC_FALSE=
4401fi
4402
4403
4404
4405ac_ext=c
4406ac_cpp='$CPP $CPPFLAGS'
4407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4409ac_compiler_gnu=$ac_cv_c_compiler_gnu
4410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4411$as_echo_n "checking how to run the C preprocessor... " >&6; }
4412# On Suns, sometimes $CPP names a directory.
4413if test -n "$CPP" && test -d "$CPP"; then
4414  CPP=
4415fi
4416if test -z "$CPP"; then
4417  if ${ac_cv_prog_CPP+:} false; then :
4418  $as_echo_n "(cached) " >&6
4419else
4420      # Double quotes because CPP needs to be expanded
4421    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4422    do
4423      ac_preproc_ok=false
4424for ac_c_preproc_warn_flag in '' yes
4425do
4426  # Use a header file that comes with gcc, so configuring glibc
4427  # with a fresh cross-compiler works.
4428  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4429  # <limits.h> exists even on freestanding compilers.
4430  # On the NeXT, cc -E runs the code through the compiler's parser,
4431  # not just through cpp. "Syntax error" is here to catch this case.
4432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433/* end confdefs.h.  */
4434#ifdef __STDC__
4435# include <limits.h>
4436#else
4437# include <assert.h>
4438#endif
4439		     Syntax error
4440_ACEOF
4441if ac_fn_c_try_cpp "$LINENO"; then :
4442
4443else
4444  # Broken: fails on valid input.
4445continue
4446fi
4447rm -f conftest.err conftest.i conftest.$ac_ext
4448
4449  # OK, works on sane cases.  Now check whether nonexistent headers
4450  # can be detected and how.
4451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452/* end confdefs.h.  */
4453#include <ac_nonexistent.h>
4454_ACEOF
4455if ac_fn_c_try_cpp "$LINENO"; then :
4456  # Broken: success on invalid input.
4457continue
4458else
4459  # Passes both tests.
4460ac_preproc_ok=:
4461break
4462fi
4463rm -f conftest.err conftest.i conftest.$ac_ext
4464
4465done
4466# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4467rm -f conftest.i conftest.err conftest.$ac_ext
4468if $ac_preproc_ok; then :
4469  break
4470fi
4471
4472    done
4473    ac_cv_prog_CPP=$CPP
4474
4475fi
4476  CPP=$ac_cv_prog_CPP
4477else
4478  ac_cv_prog_CPP=$CPP
4479fi
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4481$as_echo "$CPP" >&6; }
4482ac_preproc_ok=false
4483for ac_c_preproc_warn_flag in '' yes
4484do
4485  # Use a header file that comes with gcc, so configuring glibc
4486  # with a fresh cross-compiler works.
4487  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4488  # <limits.h> exists even on freestanding compilers.
4489  # On the NeXT, cc -E runs the code through the compiler's parser,
4490  # not just through cpp. "Syntax error" is here to catch this case.
4491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492/* end confdefs.h.  */
4493#ifdef __STDC__
4494# include <limits.h>
4495#else
4496# include <assert.h>
4497#endif
4498		     Syntax error
4499_ACEOF
4500if ac_fn_c_try_cpp "$LINENO"; then :
4501
4502else
4503  # Broken: fails on valid input.
4504continue
4505fi
4506rm -f conftest.err conftest.i conftest.$ac_ext
4507
4508  # OK, works on sane cases.  Now check whether nonexistent headers
4509  # can be detected and how.
4510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511/* end confdefs.h.  */
4512#include <ac_nonexistent.h>
4513_ACEOF
4514if ac_fn_c_try_cpp "$LINENO"; then :
4515  # Broken: success on invalid input.
4516continue
4517else
4518  # Passes both tests.
4519ac_preproc_ok=:
4520break
4521fi
4522rm -f conftest.err conftest.i conftest.$ac_ext
4523
4524done
4525# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4526rm -f conftest.i conftest.err conftest.$ac_ext
4527if $ac_preproc_ok; then :
4528
4529else
4530  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4532as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4533See \`config.log' for more details" "$LINENO" 5; }
4534fi
4535
4536ac_ext=c
4537ac_cpp='$CPP $CPPFLAGS'
4538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4540ac_compiler_gnu=$ac_cv_c_compiler_gnu
4541
4542
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4544$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4545if ${ac_cv_path_GREP+:} false; then :
4546  $as_echo_n "(cached) " >&6
4547else
4548  if test -z "$GREP"; then
4549  ac_path_GREP_found=false
4550  # Loop through the user's path and test for each of PROGNAME-LIST
4551  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4553do
4554  IFS=$as_save_IFS
4555  test -z "$as_dir" && as_dir=.
4556    for ac_prog in grep ggrep; do
4557    for ac_exec_ext in '' $ac_executable_extensions; do
4558      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4559      as_fn_executable_p "$ac_path_GREP" || continue
4560# Check for GNU ac_path_GREP and select it if it is found.
4561  # Check for GNU $ac_path_GREP
4562case `"$ac_path_GREP" --version 2>&1` in
4563*GNU*)
4564  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4565*)
4566  ac_count=0
4567  $as_echo_n 0123456789 >"conftest.in"
4568  while :
4569  do
4570    cat "conftest.in" "conftest.in" >"conftest.tmp"
4571    mv "conftest.tmp" "conftest.in"
4572    cp "conftest.in" "conftest.nl"
4573    $as_echo 'GREP' >> "conftest.nl"
4574    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4575    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4576    as_fn_arith $ac_count + 1 && ac_count=$as_val
4577    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4578      # Best one so far, save it but keep looking for a better one
4579      ac_cv_path_GREP="$ac_path_GREP"
4580      ac_path_GREP_max=$ac_count
4581    fi
4582    # 10*(2^10) chars as input seems more than enough
4583    test $ac_count -gt 10 && break
4584  done
4585  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4586esac
4587
4588      $ac_path_GREP_found && break 3
4589    done
4590  done
4591  done
4592IFS=$as_save_IFS
4593  if test -z "$ac_cv_path_GREP"; then
4594    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4595  fi
4596else
4597  ac_cv_path_GREP=$GREP
4598fi
4599
4600fi
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4602$as_echo "$ac_cv_path_GREP" >&6; }
4603 GREP="$ac_cv_path_GREP"
4604
4605
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4607$as_echo_n "checking for egrep... " >&6; }
4608if ${ac_cv_path_EGREP+:} false; then :
4609  $as_echo_n "(cached) " >&6
4610else
4611  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4612   then ac_cv_path_EGREP="$GREP -E"
4613   else
4614     if test -z "$EGREP"; then
4615  ac_path_EGREP_found=false
4616  # Loop through the user's path and test for each of PROGNAME-LIST
4617  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4619do
4620  IFS=$as_save_IFS
4621  test -z "$as_dir" && as_dir=.
4622    for ac_prog in egrep; do
4623    for ac_exec_ext in '' $ac_executable_extensions; do
4624      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4625      as_fn_executable_p "$ac_path_EGREP" || continue
4626# Check for GNU ac_path_EGREP and select it if it is found.
4627  # Check for GNU $ac_path_EGREP
4628case `"$ac_path_EGREP" --version 2>&1` in
4629*GNU*)
4630  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4631*)
4632  ac_count=0
4633  $as_echo_n 0123456789 >"conftest.in"
4634  while :
4635  do
4636    cat "conftest.in" "conftest.in" >"conftest.tmp"
4637    mv "conftest.tmp" "conftest.in"
4638    cp "conftest.in" "conftest.nl"
4639    $as_echo 'EGREP' >> "conftest.nl"
4640    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4641    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4642    as_fn_arith $ac_count + 1 && ac_count=$as_val
4643    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4644      # Best one so far, save it but keep looking for a better one
4645      ac_cv_path_EGREP="$ac_path_EGREP"
4646      ac_path_EGREP_max=$ac_count
4647    fi
4648    # 10*(2^10) chars as input seems more than enough
4649    test $ac_count -gt 10 && break
4650  done
4651  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4652esac
4653
4654      $ac_path_EGREP_found && break 3
4655    done
4656  done
4657  done
4658IFS=$as_save_IFS
4659  if test -z "$ac_cv_path_EGREP"; then
4660    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4661  fi
4662else
4663  ac_cv_path_EGREP=$EGREP
4664fi
4665
4666   fi
4667fi
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4669$as_echo "$ac_cv_path_EGREP" >&6; }
4670 EGREP="$ac_cv_path_EGREP"
4671
4672
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4674$as_echo_n "checking for ANSI C header files... " >&6; }
4675if ${ac_cv_header_stdc+:} false; then :
4676  $as_echo_n "(cached) " >&6
4677else
4678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679/* end confdefs.h.  */
4680#include <stdlib.h>
4681#include <stdarg.h>
4682#include <string.h>
4683#include <float.h>
4684
4685int
4686main ()
4687{
4688
4689  ;
4690  return 0;
4691}
4692_ACEOF
4693if ac_fn_c_try_compile "$LINENO"; then :
4694  ac_cv_header_stdc=yes
4695else
4696  ac_cv_header_stdc=no
4697fi
4698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4699
4700if test $ac_cv_header_stdc = yes; then
4701  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703/* end confdefs.h.  */
4704#include <string.h>
4705
4706_ACEOF
4707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4708  $EGREP "memchr" >/dev/null 2>&1; then :
4709
4710else
4711  ac_cv_header_stdc=no
4712fi
4713rm -f conftest*
4714
4715fi
4716
4717if test $ac_cv_header_stdc = yes; then
4718  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720/* end confdefs.h.  */
4721#include <stdlib.h>
4722
4723_ACEOF
4724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4725  $EGREP "free" >/dev/null 2>&1; then :
4726
4727else
4728  ac_cv_header_stdc=no
4729fi
4730rm -f conftest*
4731
4732fi
4733
4734if test $ac_cv_header_stdc = yes; then
4735  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4736  if test "$cross_compiling" = yes; then :
4737  :
4738else
4739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740/* end confdefs.h.  */
4741#include <ctype.h>
4742#include <stdlib.h>
4743#if ((' ' & 0x0FF) == 0x020)
4744# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4745# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4746#else
4747# define ISLOWER(c) \
4748		   (('a' <= (c) && (c) <= 'i') \
4749		     || ('j' <= (c) && (c) <= 'r') \
4750		     || ('s' <= (c) && (c) <= 'z'))
4751# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4752#endif
4753
4754#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4755int
4756main ()
4757{
4758  int i;
4759  for (i = 0; i < 256; i++)
4760    if (XOR (islower (i), ISLOWER (i))
4761	|| toupper (i) != TOUPPER (i))
4762      return 2;
4763  return 0;
4764}
4765_ACEOF
4766if ac_fn_c_try_run "$LINENO"; then :
4767
4768else
4769  ac_cv_header_stdc=no
4770fi
4771rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4772  conftest.$ac_objext conftest.beam conftest.$ac_ext
4773fi
4774
4775fi
4776fi
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4778$as_echo "$ac_cv_header_stdc" >&6; }
4779if test $ac_cv_header_stdc = yes; then
4780
4781$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4782
4783fi
4784
4785# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4786for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4787		  inttypes.h stdint.h unistd.h
4788do :
4789  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4790ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4791"
4792if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4793  cat >>confdefs.h <<_ACEOF
4794#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4795_ACEOF
4796
4797fi
4798
4799done
4800
4801
4802
4803  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4804if test "x$ac_cv_header_minix_config_h" = xyes; then :
4805  MINIX=yes
4806else
4807  MINIX=
4808fi
4809
4810
4811  if test "$MINIX" = yes; then
4812
4813$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4814
4815
4816$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4817
4818
4819$as_echo "#define _MINIX 1" >>confdefs.h
4820
4821  fi
4822
4823
4824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4825$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4826if ${ac_cv_safe_to_define___extensions__+:} false; then :
4827  $as_echo_n "(cached) " >&6
4828else
4829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830/* end confdefs.h.  */
4831
4832#         define __EXTENSIONS__ 1
4833          $ac_includes_default
4834int
4835main ()
4836{
4837
4838  ;
4839  return 0;
4840}
4841_ACEOF
4842if ac_fn_c_try_compile "$LINENO"; then :
4843  ac_cv_safe_to_define___extensions__=yes
4844else
4845  ac_cv_safe_to_define___extensions__=no
4846fi
4847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848fi
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4850$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4851  test $ac_cv_safe_to_define___extensions__ = yes &&
4852    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4853
4854  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4855
4856  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4857
4858  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4859
4860  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4861
4862
4863
4864# Make sure we can run config.sub.
4865$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4866  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4867
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4869$as_echo_n "checking build system type... " >&6; }
4870if ${ac_cv_build+:} false; then :
4871  $as_echo_n "(cached) " >&6
4872else
4873  ac_build_alias=$build_alias
4874test "x$ac_build_alias" = x &&
4875  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4876test "x$ac_build_alias" = x &&
4877  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4878ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4879  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4880
4881fi
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4883$as_echo "$ac_cv_build" >&6; }
4884case $ac_cv_build in
4885*-*-*) ;;
4886*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4887esac
4888build=$ac_cv_build
4889ac_save_IFS=$IFS; IFS='-'
4890set x $ac_cv_build
4891shift
4892build_cpu=$1
4893build_vendor=$2
4894shift; shift
4895# Remember, the first character of IFS is used to create $*,
4896# except with old shells:
4897build_os=$*
4898IFS=$ac_save_IFS
4899case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4900
4901
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4903$as_echo_n "checking host system type... " >&6; }
4904if ${ac_cv_host+:} false; then :
4905  $as_echo_n "(cached) " >&6
4906else
4907  if test "x$host_alias" = x; then
4908  ac_cv_host=$ac_cv_build
4909else
4910  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4911    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4912fi
4913
4914fi
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4916$as_echo "$ac_cv_host" >&6; }
4917case $ac_cv_host in
4918*-*-*) ;;
4919*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4920esac
4921host=$ac_cv_host
4922ac_save_IFS=$IFS; IFS='-'
4923set x $ac_cv_host
4924shift
4925host_cpu=$1
4926host_vendor=$2
4927shift; shift
4928# Remember, the first character of IFS is used to create $*,
4929# except with old shells:
4930host_os=$*
4931IFS=$ac_save_IFS
4932case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4933
4934
4935
4936#case "$host_os" in
4937#
4938# osf5*)
4939#    CFLAGS="$CFLAGS -D_OSF_SOURCE"
4940#    ;;
4941#esac
4942
4943
4944
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4946$as_echo_n "checking whether ln -s works... " >&6; }
4947LN_S=$as_ln_s
4948if test "$LN_S" = "ln -s"; then
4949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4950$as_echo "yes" >&6; }
4951else
4952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4953$as_echo "no, using $LN_S" >&6; }
4954fi
4955
4956# AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
4957
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4959$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4960if ${ac_cv_path_SED+:} false; then :
4961  $as_echo_n "(cached) " >&6
4962else
4963            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4964     for ac_i in 1 2 3 4 5 6 7; do
4965       ac_script="$ac_script$as_nl$ac_script"
4966     done
4967     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4968     { ac_script=; unset ac_script;}
4969     if test -z "$SED"; then
4970  ac_path_SED_found=false
4971  # Loop through the user's path and test for each of PROGNAME-LIST
4972  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973for as_dir in $PATH
4974do
4975  IFS=$as_save_IFS
4976  test -z "$as_dir" && as_dir=.
4977    for ac_prog in sed gsed; do
4978    for ac_exec_ext in '' $ac_executable_extensions; do
4979      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4980      as_fn_executable_p "$ac_path_SED" || continue
4981# Check for GNU ac_path_SED and select it if it is found.
4982  # Check for GNU $ac_path_SED
4983case `"$ac_path_SED" --version 2>&1` in
4984*GNU*)
4985  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4986*)
4987  ac_count=0
4988  $as_echo_n 0123456789 >"conftest.in"
4989  while :
4990  do
4991    cat "conftest.in" "conftest.in" >"conftest.tmp"
4992    mv "conftest.tmp" "conftest.in"
4993    cp "conftest.in" "conftest.nl"
4994    $as_echo '' >> "conftest.nl"
4995    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4996    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4997    as_fn_arith $ac_count + 1 && ac_count=$as_val
4998    if test $ac_count -gt ${ac_path_SED_max-0}; then
4999      # Best one so far, save it but keep looking for a better one
5000      ac_cv_path_SED="$ac_path_SED"
5001      ac_path_SED_max=$ac_count
5002    fi
5003    # 10*(2^10) chars as input seems more than enough
5004    test $ac_count -gt 10 && break
5005  done
5006  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5007esac
5008
5009      $ac_path_SED_found && break 3
5010    done
5011  done
5012  done
5013IFS=$as_save_IFS
5014  if test -z "$ac_cv_path_SED"; then
5015    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5016  fi
5017else
5018  ac_cv_path_SED=$SED
5019fi
5020
5021fi
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5023$as_echo "$ac_cv_path_SED" >&6; }
5024 SED="$ac_cv_path_SED"
5025  rm -f conftest.sed
5026
5027
5028if test $ac_cv_c_compiler_gnu = yes; then
5029    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5030$as_echo_n "checking whether $CC needs -traditional... " >&6; }
5031if ${ac_cv_prog_gcc_traditional+:} false; then :
5032  $as_echo_n "(cached) " >&6
5033else
5034    ac_pattern="Autoconf.*'x'"
5035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036/* end confdefs.h.  */
5037#include <sgtty.h>
5038Autoconf TIOCGETP
5039_ACEOF
5040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5041  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5042  ac_cv_prog_gcc_traditional=yes
5043else
5044  ac_cv_prog_gcc_traditional=no
5045fi
5046rm -f conftest*
5047
5048
5049  if test $ac_cv_prog_gcc_traditional = no; then
5050    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051/* end confdefs.h.  */
5052#include <termio.h>
5053Autoconf TCGETA
5054_ACEOF
5055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5056  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5057  ac_cv_prog_gcc_traditional=yes
5058fi
5059rm -f conftest*
5060
5061  fi
5062fi
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5064$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5065  if test $ac_cv_prog_gcc_traditional = yes; then
5066    CC="$CC -traditional"
5067  fi
5068fi
5069
5070
5071# We need to test for at least gcc 2.95 here, because older versions don't
5072# have -fno-strict-aliasing
5073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074/* end confdefs.h.  */
5075
5076int
5077main ()
5078{
5079
5080#if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
5081#error
5082#endif
5083  ;
5084  return 0;
5085}
5086_ACEOF
5087if ac_fn_c_try_compile "$LINENO"; then :
5088  have_gcc295=yes
5089else
5090  have_gcc295=no
5091fi
5092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5093
5094if test "$GCC" = "yes" ; then
5095        # Enable many gcc warnings by default...
5096        CFLAGS="$CFLAGS -Wall"
5097	# And disable the strict-aliasing optimization, since it breaks
5098	# our sockaddr-handling code in strange ways.
5099	if test x$have_gcc295 = xyes; then
5100		CFLAGS="$CFLAGS -fno-strict-aliasing"
5101	fi
5102fi
5103
5104# OS X Lion started deprecating the system openssl. Let's just disable
5105# all deprecation warnings on OS X; but do so only for gcc...
5106if test "$GCC" = "yes" ; then
5107	case "$host_os" in
5108	 darwin*)
5109	    CFLAGS="$CFLAGS -Wno-deprecated-declarations"
5110	    ;;
5111	esac
5112fi
5113
5114# Check whether --enable-gcc-warnings was given.
5115if test "${enable_gcc_warnings+set}" = set; then :
5116  enableval=$enable_gcc_warnings;
5117fi
5118
5119
5120# Check whether --enable-gcc-hardening was given.
5121if test "${enable_gcc_hardening+set}" = set; then :
5122  enableval=$enable_gcc_hardening; if test x$enableval = xyes; then
5123    CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all"
5124    CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector"
5125    CFLAGS="$CFLAGS --param ssp-buffer-size=1"
5126fi
5127fi
5128
5129
5130# Check whether --enable-thread-support was given.
5131if test "${enable_thread_support+set}" = set; then :
5132  enableval=$enable_thread_support;
5133else
5134  enable_thread_support=yes
5135fi
5136
5137# Check whether --enable-malloc-replacement was given.
5138if test "${enable_malloc_replacement+set}" = set; then :
5139  enableval=$enable_malloc_replacement;
5140else
5141  enable_malloc_replacement=yes
5142fi
5143
5144# Check whether --enable-openssl was given.
5145if test "${enable_openssl+set}" = set; then :
5146  enableval=$enable_openssl;
5147else
5148  enable_openssl=yes
5149fi
5150
5151# Check whether --enable-debug-mode was given.
5152if test "${enable_debug_mode+set}" = set; then :
5153  enableval=$enable_debug_mode;
5154else
5155  enable_debug_mode=yes
5156fi
5157
5158# Check whether --enable-libevent-install was given.
5159if test "${enable_libevent_install+set}" = set; then :
5160  enableval=$enable_libevent_install;
5161else
5162  enable_libevent_install=yes
5163fi
5164
5165# Check whether --enable-libevent-regress was given.
5166if test "${enable_libevent_regress+set}" = set; then :
5167  enableval=$enable_libevent_regress;
5168else
5169  enable_libevent_regress=yes
5170fi
5171
5172# Check whether --enable-samples was given.
5173if test "${enable_samples+set}" = set; then :
5174  enableval=$enable_samples;
5175else
5176  enable_samples=yes
5177fi
5178
5179# Check whether --enable-function-sections was given.
5180if test "${enable_function_sections+set}" = set; then :
5181  enableval=$enable_function_sections;
5182else
5183  enable_function_sections=no
5184fi
5185
5186# Check whether --enable-verbose-debug was given.
5187if test "${enable_verbose_debug+set}" = set; then :
5188  enableval=$enable_verbose_debug;
5189else
5190  enable_verbose_debug=no
5191fi
5192
5193# Check whether --enable-clock-gettime was given.
5194if test "${enable_clock_gettime+set}" = set; then :
5195  enableval=$enable_clock_gettime;
5196else
5197  enable_clock_gettime=yes
5198fi
5199
5200
5201
5202
5203case `pwd` in
5204  *\ * | *\	*)
5205    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5206$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5207esac
5208
5209
5210
5211macro_version='2.4.6'
5212macro_revision='2.4.6'
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226ltmain=$ac_aux_dir/ltmain.sh
5227
5228# Backslashify metacharacters that are still active within
5229# double-quoted strings.
5230sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5231
5232# Same as above, but do not quote variable references.
5233double_quote_subst='s/\(["`\\]\)/\\\1/g'
5234
5235# Sed substitution to delay expansion of an escaped shell variable in a
5236# double_quote_subst'ed string.
5237delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5238
5239# Sed substitution to delay expansion of an escaped single quote.
5240delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5241
5242# Sed substitution to avoid accidental globbing in evaled expressions
5243no_glob_subst='s/\*/\\\*/g'
5244
5245ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5246ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5247ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5248
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5250$as_echo_n "checking how to print strings... " >&6; }
5251# Test print first, because it will be a builtin if present.
5252if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5253   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5254  ECHO='print -r --'
5255elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5256  ECHO='printf %s\n'
5257else
5258  # Use this function as a fallback that always works.
5259  func_fallback_echo ()
5260  {
5261    eval 'cat <<_LTECHO_EOF
5262$1
5263_LTECHO_EOF'
5264  }
5265  ECHO='func_fallback_echo'
5266fi
5267
5268# func_echo_all arg...
5269# Invoke $ECHO with all args, space-separated.
5270func_echo_all ()
5271{
5272    $ECHO ""
5273}
5274
5275case $ECHO in
5276  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5277$as_echo "printf" >&6; } ;;
5278  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5279$as_echo "print -r" >&6; } ;;
5280  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5281$as_echo "cat" >&6; } ;;
5282esac
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5298$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5299if ${ac_cv_path_SED+:} false; then :
5300  $as_echo_n "(cached) " >&6
5301else
5302            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5303     for ac_i in 1 2 3 4 5 6 7; do
5304       ac_script="$ac_script$as_nl$ac_script"
5305     done
5306     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5307     { ac_script=; unset ac_script;}
5308     if test -z "$SED"; then
5309  ac_path_SED_found=false
5310  # Loop through the user's path and test for each of PROGNAME-LIST
5311  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312for as_dir in $PATH
5313do
5314  IFS=$as_save_IFS
5315  test -z "$as_dir" && as_dir=.
5316    for ac_prog in sed gsed; do
5317    for ac_exec_ext in '' $ac_executable_extensions; do
5318      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5319      as_fn_executable_p "$ac_path_SED" || continue
5320# Check for GNU ac_path_SED and select it if it is found.
5321  # Check for GNU $ac_path_SED
5322case `"$ac_path_SED" --version 2>&1` in
5323*GNU*)
5324  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5325*)
5326  ac_count=0
5327  $as_echo_n 0123456789 >"conftest.in"
5328  while :
5329  do
5330    cat "conftest.in" "conftest.in" >"conftest.tmp"
5331    mv "conftest.tmp" "conftest.in"
5332    cp "conftest.in" "conftest.nl"
5333    $as_echo '' >> "conftest.nl"
5334    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5335    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5336    as_fn_arith $ac_count + 1 && ac_count=$as_val
5337    if test $ac_count -gt ${ac_path_SED_max-0}; then
5338      # Best one so far, save it but keep looking for a better one
5339      ac_cv_path_SED="$ac_path_SED"
5340      ac_path_SED_max=$ac_count
5341    fi
5342    # 10*(2^10) chars as input seems more than enough
5343    test $ac_count -gt 10 && break
5344  done
5345  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5346esac
5347
5348      $ac_path_SED_found && break 3
5349    done
5350  done
5351  done
5352IFS=$as_save_IFS
5353  if test -z "$ac_cv_path_SED"; then
5354    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5355  fi
5356else
5357  ac_cv_path_SED=$SED
5358fi
5359
5360fi
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5362$as_echo "$ac_cv_path_SED" >&6; }
5363 SED="$ac_cv_path_SED"
5364  rm -f conftest.sed
5365
5366test -z "$SED" && SED=sed
5367Xsed="$SED -e 1s/^X//"
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5380$as_echo_n "checking for fgrep... " >&6; }
5381if ${ac_cv_path_FGREP+:} false; then :
5382  $as_echo_n "(cached) " >&6
5383else
5384  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5385   then ac_cv_path_FGREP="$GREP -F"
5386   else
5387     if test -z "$FGREP"; then
5388  ac_path_FGREP_found=false
5389  # Loop through the user's path and test for each of PROGNAME-LIST
5390  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5392do
5393  IFS=$as_save_IFS
5394  test -z "$as_dir" && as_dir=.
5395    for ac_prog in fgrep; do
5396    for ac_exec_ext in '' $ac_executable_extensions; do
5397      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5398      as_fn_executable_p "$ac_path_FGREP" || continue
5399# Check for GNU ac_path_FGREP and select it if it is found.
5400  # Check for GNU $ac_path_FGREP
5401case `"$ac_path_FGREP" --version 2>&1` in
5402*GNU*)
5403  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5404*)
5405  ac_count=0
5406  $as_echo_n 0123456789 >"conftest.in"
5407  while :
5408  do
5409    cat "conftest.in" "conftest.in" >"conftest.tmp"
5410    mv "conftest.tmp" "conftest.in"
5411    cp "conftest.in" "conftest.nl"
5412    $as_echo 'FGREP' >> "conftest.nl"
5413    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5414    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5415    as_fn_arith $ac_count + 1 && ac_count=$as_val
5416    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5417      # Best one so far, save it but keep looking for a better one
5418      ac_cv_path_FGREP="$ac_path_FGREP"
5419      ac_path_FGREP_max=$ac_count
5420    fi
5421    # 10*(2^10) chars as input seems more than enough
5422    test $ac_count -gt 10 && break
5423  done
5424  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5425esac
5426
5427      $ac_path_FGREP_found && break 3
5428    done
5429  done
5430  done
5431IFS=$as_save_IFS
5432  if test -z "$ac_cv_path_FGREP"; then
5433    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5434  fi
5435else
5436  ac_cv_path_FGREP=$FGREP
5437fi
5438
5439   fi
5440fi
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5442$as_echo "$ac_cv_path_FGREP" >&6; }
5443 FGREP="$ac_cv_path_FGREP"
5444
5445
5446test -z "$GREP" && GREP=grep
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466# Check whether --with-gnu-ld was given.
5467if test "${with_gnu_ld+set}" = set; then :
5468  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5469else
5470  with_gnu_ld=no
5471fi
5472
5473ac_prog=ld
5474if test yes = "$GCC"; then
5475  # Check if gcc -print-prog-name=ld gives a path.
5476  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5477$as_echo_n "checking for ld used by $CC... " >&6; }
5478  case $host in
5479  *-*-mingw*)
5480    # gcc leaves a trailing carriage return, which upsets mingw
5481    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5482  *)
5483    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5484  esac
5485  case $ac_prog in
5486    # Accept absolute paths.
5487    [\\/]* | ?:[\\/]*)
5488      re_direlt='/[^/][^/]*/\.\./'
5489      # Canonicalize the pathname of ld
5490      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5491      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5492	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5493      done
5494      test -z "$LD" && LD=$ac_prog
5495      ;;
5496  "")
5497    # If it fails, then pretend we aren't using GCC.
5498    ac_prog=ld
5499    ;;
5500  *)
5501    # If it is relative, then search for the first ld in PATH.
5502    with_gnu_ld=unknown
5503    ;;
5504  esac
5505elif test yes = "$with_gnu_ld"; then
5506  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5507$as_echo_n "checking for GNU ld... " >&6; }
5508else
5509  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5510$as_echo_n "checking for non-GNU ld... " >&6; }
5511fi
5512if ${lt_cv_path_LD+:} false; then :
5513  $as_echo_n "(cached) " >&6
5514else
5515  if test -z "$LD"; then
5516  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5517  for ac_dir in $PATH; do
5518    IFS=$lt_save_ifs
5519    test -z "$ac_dir" && ac_dir=.
5520    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5521      lt_cv_path_LD=$ac_dir/$ac_prog
5522      # Check to see if the program is GNU ld.  I'd rather use --version,
5523      # but apparently some variants of GNU ld only accept -v.
5524      # Break only if it was the GNU/non-GNU ld that we prefer.
5525      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5526      *GNU* | *'with BFD'*)
5527	test no != "$with_gnu_ld" && break
5528	;;
5529      *)
5530	test yes != "$with_gnu_ld" && break
5531	;;
5532      esac
5533    fi
5534  done
5535  IFS=$lt_save_ifs
5536else
5537  lt_cv_path_LD=$LD # Let the user override the test with a path.
5538fi
5539fi
5540
5541LD=$lt_cv_path_LD
5542if test -n "$LD"; then
5543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5544$as_echo "$LD" >&6; }
5545else
5546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5547$as_echo "no" >&6; }
5548fi
5549test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5551$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5552if ${lt_cv_prog_gnu_ld+:} false; then :
5553  $as_echo_n "(cached) " >&6
5554else
5555  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5556case `$LD -v 2>&1 </dev/null` in
5557*GNU* | *'with BFD'*)
5558  lt_cv_prog_gnu_ld=yes
5559  ;;
5560*)
5561  lt_cv_prog_gnu_ld=no
5562  ;;
5563esac
5564fi
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5566$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5567with_gnu_ld=$lt_cv_prog_gnu_ld
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5578$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5579if ${lt_cv_path_NM+:} false; then :
5580  $as_echo_n "(cached) " >&6
5581else
5582  if test -n "$NM"; then
5583  # Let the user override the test.
5584  lt_cv_path_NM=$NM
5585else
5586  lt_nm_to_check=${ac_tool_prefix}nm
5587  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5588    lt_nm_to_check="$lt_nm_to_check nm"
5589  fi
5590  for lt_tmp_nm in $lt_nm_to_check; do
5591    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5592    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5593      IFS=$lt_save_ifs
5594      test -z "$ac_dir" && ac_dir=.
5595      tmp_nm=$ac_dir/$lt_tmp_nm
5596      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5597	# Check to see if the nm accepts a BSD-compat flag.
5598	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5599	#   nm: unknown option "B" ignored
5600	# Tru64's nm complains that /dev/null is an invalid object file
5601	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5602	case $build_os in
5603	mingw*) lt_bad_file=conftest.nm/nofile ;;
5604	*) lt_bad_file=/dev/null ;;
5605	esac
5606	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5607	*$lt_bad_file* | *'Invalid file or object type'*)
5608	  lt_cv_path_NM="$tmp_nm -B"
5609	  break 2
5610	  ;;
5611	*)
5612	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5613	  */dev/null*)
5614	    lt_cv_path_NM="$tmp_nm -p"
5615	    break 2
5616	    ;;
5617	  *)
5618	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5619	    continue # so that we can try to find one that supports BSD flags
5620	    ;;
5621	  esac
5622	  ;;
5623	esac
5624      fi
5625    done
5626    IFS=$lt_save_ifs
5627  done
5628  : ${lt_cv_path_NM=no}
5629fi
5630fi
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5632$as_echo "$lt_cv_path_NM" >&6; }
5633if test no != "$lt_cv_path_NM"; then
5634  NM=$lt_cv_path_NM
5635else
5636  # Didn't find any BSD compatible name lister, look for dumpbin.
5637  if test -n "$DUMPBIN"; then :
5638    # Let the user override the test.
5639  else
5640    if test -n "$ac_tool_prefix"; then
5641  for ac_prog in dumpbin "link -dump"
5642  do
5643    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5644set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646$as_echo_n "checking for $ac_word... " >&6; }
5647if ${ac_cv_prog_DUMPBIN+:} false; then :
5648  $as_echo_n "(cached) " >&6
5649else
5650  if test -n "$DUMPBIN"; then
5651  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5652else
5653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654for as_dir in $PATH
5655do
5656  IFS=$as_save_IFS
5657  test -z "$as_dir" && as_dir=.
5658    for ac_exec_ext in '' $ac_executable_extensions; do
5659  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5661    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662    break 2
5663  fi
5664done
5665  done
5666IFS=$as_save_IFS
5667
5668fi
5669fi
5670DUMPBIN=$ac_cv_prog_DUMPBIN
5671if test -n "$DUMPBIN"; then
5672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5673$as_echo "$DUMPBIN" >&6; }
5674else
5675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676$as_echo "no" >&6; }
5677fi
5678
5679
5680    test -n "$DUMPBIN" && break
5681  done
5682fi
5683if test -z "$DUMPBIN"; then
5684  ac_ct_DUMPBIN=$DUMPBIN
5685  for ac_prog in dumpbin "link -dump"
5686do
5687  # Extract the first word of "$ac_prog", so it can be a program name with args.
5688set dummy $ac_prog; ac_word=$2
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690$as_echo_n "checking for $ac_word... " >&6; }
5691if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5692  $as_echo_n "(cached) " >&6
5693else
5694  if test -n "$ac_ct_DUMPBIN"; then
5695  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5696else
5697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698for as_dir in $PATH
5699do
5700  IFS=$as_save_IFS
5701  test -z "$as_dir" && as_dir=.
5702    for ac_exec_ext in '' $ac_executable_extensions; do
5703  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5704    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706    break 2
5707  fi
5708done
5709  done
5710IFS=$as_save_IFS
5711
5712fi
5713fi
5714ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5715if test -n "$ac_ct_DUMPBIN"; then
5716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5717$as_echo "$ac_ct_DUMPBIN" >&6; }
5718else
5719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720$as_echo "no" >&6; }
5721fi
5722
5723
5724  test -n "$ac_ct_DUMPBIN" && break
5725done
5726
5727  if test "x$ac_ct_DUMPBIN" = x; then
5728    DUMPBIN=":"
5729  else
5730    case $cross_compiling:$ac_tool_warned in
5731yes:)
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5734ac_tool_warned=yes ;;
5735esac
5736    DUMPBIN=$ac_ct_DUMPBIN
5737  fi
5738fi
5739
5740    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5741    *COFF*)
5742      DUMPBIN="$DUMPBIN -symbols -headers"
5743      ;;
5744    *)
5745      DUMPBIN=:
5746      ;;
5747    esac
5748  fi
5749
5750  if test : != "$DUMPBIN"; then
5751    NM=$DUMPBIN
5752  fi
5753fi
5754test -z "$NM" && NM=nm
5755
5756
5757
5758
5759
5760
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5762$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5763if ${lt_cv_nm_interface+:} false; then :
5764  $as_echo_n "(cached) " >&6
5765else
5766  lt_cv_nm_interface="BSD nm"
5767  echo "int some_variable = 0;" > conftest.$ac_ext
5768  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5769  (eval "$ac_compile" 2>conftest.err)
5770  cat conftest.err >&5
5771  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5772  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5773  cat conftest.err >&5
5774  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5775  cat conftest.out >&5
5776  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5777    lt_cv_nm_interface="MS dumpbin"
5778  fi
5779  rm -f conftest*
5780fi
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5782$as_echo "$lt_cv_nm_interface" >&6; }
5783
5784# find the maximum length of command line arguments
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5786$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5787if ${lt_cv_sys_max_cmd_len+:} false; then :
5788  $as_echo_n "(cached) " >&6
5789else
5790    i=0
5791  teststring=ABCD
5792
5793  case $build_os in
5794  msdosdjgpp*)
5795    # On DJGPP, this test can blow up pretty badly due to problems in libc
5796    # (any single argument exceeding 2000 bytes causes a buffer overrun
5797    # during glob expansion).  Even if it were fixed, the result of this
5798    # check would be larger than it should be.
5799    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5800    ;;
5801
5802  gnu*)
5803    # Under GNU Hurd, this test is not required because there is
5804    # no limit to the length of command line arguments.
5805    # Libtool will interpret -1 as no limit whatsoever
5806    lt_cv_sys_max_cmd_len=-1;
5807    ;;
5808
5809  cygwin* | mingw* | cegcc*)
5810    # On Win9x/ME, this test blows up -- it succeeds, but takes
5811    # about 5 minutes as the teststring grows exponentially.
5812    # Worse, since 9x/ME are not pre-emptively multitasking,
5813    # you end up with a "frozen" computer, even though with patience
5814    # the test eventually succeeds (with a max line length of 256k).
5815    # Instead, let's just punt: use the minimum linelength reported by
5816    # all of the supported platforms: 8192 (on NT/2K/XP).
5817    lt_cv_sys_max_cmd_len=8192;
5818    ;;
5819
5820  mint*)
5821    # On MiNT this can take a long time and run out of memory.
5822    lt_cv_sys_max_cmd_len=8192;
5823    ;;
5824
5825  amigaos*)
5826    # On AmigaOS with pdksh, this test takes hours, literally.
5827    # So we just punt and use a minimum line length of 8192.
5828    lt_cv_sys_max_cmd_len=8192;
5829    ;;
5830
5831  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5832    # This has been around since 386BSD, at least.  Likely further.
5833    if test -x /sbin/sysctl; then
5834      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5835    elif test -x /usr/sbin/sysctl; then
5836      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5837    else
5838      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5839    fi
5840    # And add a safety zone
5841    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5842    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5843    ;;
5844
5845  interix*)
5846    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5847    lt_cv_sys_max_cmd_len=196608
5848    ;;
5849
5850  os2*)
5851    # The test takes a long time on OS/2.
5852    lt_cv_sys_max_cmd_len=8192
5853    ;;
5854
5855  osf*)
5856    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5857    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5858    # nice to cause kernel panics so lets avoid the loop below.
5859    # First set a reasonable default.
5860    lt_cv_sys_max_cmd_len=16384
5861    #
5862    if test -x /sbin/sysconfig; then
5863      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5864        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5865      esac
5866    fi
5867    ;;
5868  sco3.2v5*)
5869    lt_cv_sys_max_cmd_len=102400
5870    ;;
5871  sysv5* | sco5v6* | sysv4.2uw2*)
5872    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5873    if test -n "$kargmax"; then
5874      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5875    else
5876      lt_cv_sys_max_cmd_len=32768
5877    fi
5878    ;;
5879  *)
5880    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5881    if test -n "$lt_cv_sys_max_cmd_len" && \
5882       test undefined != "$lt_cv_sys_max_cmd_len"; then
5883      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5884      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5885    else
5886      # Make teststring a little bigger before we do anything with it.
5887      # a 1K string should be a reasonable start.
5888      for i in 1 2 3 4 5 6 7 8; do
5889        teststring=$teststring$teststring
5890      done
5891      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5892      # If test is not a shell built-in, we'll probably end up computing a
5893      # maximum length that is only half of the actual maximum length, but
5894      # we can't tell.
5895      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5896	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5897	      test 17 != "$i" # 1/2 MB should be enough
5898      do
5899        i=`expr $i + 1`
5900        teststring=$teststring$teststring
5901      done
5902      # Only check the string length outside the loop.
5903      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5904      teststring=
5905      # Add a significant safety factor because C++ compilers can tack on
5906      # massive amounts of additional arguments before passing them to the
5907      # linker.  It appears as though 1/2 is a usable value.
5908      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5909    fi
5910    ;;
5911  esac
5912
5913fi
5914
5915if test -n "$lt_cv_sys_max_cmd_len"; then
5916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5917$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5918else
5919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5920$as_echo "none" >&6; }
5921fi
5922max_cmd_len=$lt_cv_sys_max_cmd_len
5923
5924
5925
5926
5927
5928
5929: ${CP="cp -f"}
5930: ${MV="mv -f"}
5931: ${RM="rm -f"}
5932
5933if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5934  lt_unset=unset
5935else
5936  lt_unset=false
5937fi
5938
5939
5940
5941
5942
5943# test EBCDIC or ASCII
5944case `echo X|tr X '\101'` in
5945 A) # ASCII based system
5946    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5947  lt_SP2NL='tr \040 \012'
5948  lt_NL2SP='tr \015\012 \040\040'
5949  ;;
5950 *) # EBCDIC based system
5951  lt_SP2NL='tr \100 \n'
5952  lt_NL2SP='tr \r\n \100\100'
5953  ;;
5954esac
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5965$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5966if ${lt_cv_to_host_file_cmd+:} false; then :
5967  $as_echo_n "(cached) " >&6
5968else
5969  case $host in
5970  *-*-mingw* )
5971    case $build in
5972      *-*-mingw* ) # actually msys
5973        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5974        ;;
5975      *-*-cygwin* )
5976        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5977        ;;
5978      * ) # otherwise, assume *nix
5979        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5980        ;;
5981    esac
5982    ;;
5983  *-*-cygwin* )
5984    case $build in
5985      *-*-mingw* ) # actually msys
5986        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5987        ;;
5988      *-*-cygwin* )
5989        lt_cv_to_host_file_cmd=func_convert_file_noop
5990        ;;
5991      * ) # otherwise, assume *nix
5992        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5993        ;;
5994    esac
5995    ;;
5996  * ) # unhandled hosts (and "normal" native builds)
5997    lt_cv_to_host_file_cmd=func_convert_file_noop
5998    ;;
5999esac
6000
6001fi
6002
6003to_host_file_cmd=$lt_cv_to_host_file_cmd
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6005$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6006
6007
6008
6009
6010
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6012$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6013if ${lt_cv_to_tool_file_cmd+:} false; then :
6014  $as_echo_n "(cached) " >&6
6015else
6016  #assume ordinary cross tools, or native build.
6017lt_cv_to_tool_file_cmd=func_convert_file_noop
6018case $host in
6019  *-*-mingw* )
6020    case $build in
6021      *-*-mingw* ) # actually msys
6022        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6023        ;;
6024    esac
6025    ;;
6026esac
6027
6028fi
6029
6030to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6032$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6033
6034
6035
6036
6037
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6039$as_echo_n "checking for $LD option to reload object files... " >&6; }
6040if ${lt_cv_ld_reload_flag+:} false; then :
6041  $as_echo_n "(cached) " >&6
6042else
6043  lt_cv_ld_reload_flag='-r'
6044fi
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6046$as_echo "$lt_cv_ld_reload_flag" >&6; }
6047reload_flag=$lt_cv_ld_reload_flag
6048case $reload_flag in
6049"" | " "*) ;;
6050*) reload_flag=" $reload_flag" ;;
6051esac
6052reload_cmds='$LD$reload_flag -o $output$reload_objs'
6053case $host_os in
6054  cygwin* | mingw* | pw32* | cegcc*)
6055    if test yes != "$GCC"; then
6056      reload_cmds=false
6057    fi
6058    ;;
6059  darwin*)
6060    if test yes = "$GCC"; then
6061      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6062    else
6063      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6064    fi
6065    ;;
6066esac
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076if test -n "$ac_tool_prefix"; then
6077  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6078set dummy ${ac_tool_prefix}objdump; ac_word=$2
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080$as_echo_n "checking for $ac_word... " >&6; }
6081if ${ac_cv_prog_OBJDUMP+:} false; then :
6082  $as_echo_n "(cached) " >&6
6083else
6084  if test -n "$OBJDUMP"; then
6085  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6086else
6087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088for as_dir in $PATH
6089do
6090  IFS=$as_save_IFS
6091  test -z "$as_dir" && as_dir=.
6092    for ac_exec_ext in '' $ac_executable_extensions; do
6093  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6094    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096    break 2
6097  fi
6098done
6099  done
6100IFS=$as_save_IFS
6101
6102fi
6103fi
6104OBJDUMP=$ac_cv_prog_OBJDUMP
6105if test -n "$OBJDUMP"; then
6106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6107$as_echo "$OBJDUMP" >&6; }
6108else
6109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110$as_echo "no" >&6; }
6111fi
6112
6113
6114fi
6115if test -z "$ac_cv_prog_OBJDUMP"; then
6116  ac_ct_OBJDUMP=$OBJDUMP
6117  # Extract the first word of "objdump", so it can be a program name with args.
6118set dummy objdump; ac_word=$2
6119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120$as_echo_n "checking for $ac_word... " >&6; }
6121if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6122  $as_echo_n "(cached) " >&6
6123else
6124  if test -n "$ac_ct_OBJDUMP"; then
6125  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6126else
6127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128for as_dir in $PATH
6129do
6130  IFS=$as_save_IFS
6131  test -z "$as_dir" && as_dir=.
6132    for ac_exec_ext in '' $ac_executable_extensions; do
6133  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6134    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136    break 2
6137  fi
6138done
6139  done
6140IFS=$as_save_IFS
6141
6142fi
6143fi
6144ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6145if test -n "$ac_ct_OBJDUMP"; then
6146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6147$as_echo "$ac_ct_OBJDUMP" >&6; }
6148else
6149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150$as_echo "no" >&6; }
6151fi
6152
6153  if test "x$ac_ct_OBJDUMP" = x; then
6154    OBJDUMP="false"
6155  else
6156    case $cross_compiling:$ac_tool_warned in
6157yes:)
6158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6160ac_tool_warned=yes ;;
6161esac
6162    OBJDUMP=$ac_ct_OBJDUMP
6163  fi
6164else
6165  OBJDUMP="$ac_cv_prog_OBJDUMP"
6166fi
6167
6168test -z "$OBJDUMP" && OBJDUMP=objdump
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6179$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6180if ${lt_cv_deplibs_check_method+:} false; then :
6181  $as_echo_n "(cached) " >&6
6182else
6183  lt_cv_file_magic_cmd='$MAGIC_CMD'
6184lt_cv_file_magic_test_file=
6185lt_cv_deplibs_check_method='unknown'
6186# Need to set the preceding variable on all platforms that support
6187# interlibrary dependencies.
6188# 'none' -- dependencies not supported.
6189# 'unknown' -- same as none, but documents that we really don't know.
6190# 'pass_all' -- all dependencies passed with no checks.
6191# 'test_compile' -- check by making test program.
6192# 'file_magic [[regex]]' -- check by looking for files in library path
6193# that responds to the $file_magic_cmd with a given extended regex.
6194# If you have 'file' or equivalent on your system and you're not sure
6195# whether 'pass_all' will *always* work, you probably want this one.
6196
6197case $host_os in
6198aix[4-9]*)
6199  lt_cv_deplibs_check_method=pass_all
6200  ;;
6201
6202beos*)
6203  lt_cv_deplibs_check_method=pass_all
6204  ;;
6205
6206bsdi[45]*)
6207  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6208  lt_cv_file_magic_cmd='/usr/bin/file -L'
6209  lt_cv_file_magic_test_file=/shlib/libc.so
6210  ;;
6211
6212cygwin*)
6213  # func_win32_libid is a shell function defined in ltmain.sh
6214  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6215  lt_cv_file_magic_cmd='func_win32_libid'
6216  ;;
6217
6218mingw* | pw32*)
6219  # Base MSYS/MinGW do not provide the 'file' command needed by
6220  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6221  # unless we find 'file', for example because we are cross-compiling.
6222  if ( file / ) >/dev/null 2>&1; then
6223    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6224    lt_cv_file_magic_cmd='func_win32_libid'
6225  else
6226    # Keep this pattern in sync with the one in func_win32_libid.
6227    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6228    lt_cv_file_magic_cmd='$OBJDUMP -f'
6229  fi
6230  ;;
6231
6232cegcc*)
6233  # use the weaker test based on 'objdump'. See mingw*.
6234  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6235  lt_cv_file_magic_cmd='$OBJDUMP -f'
6236  ;;
6237
6238darwin* | rhapsody*)
6239  lt_cv_deplibs_check_method=pass_all
6240  ;;
6241
6242freebsd* | dragonfly*)
6243  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6244    case $host_cpu in
6245    i*86 )
6246      # Not sure whether the presence of OpenBSD here was a mistake.
6247      # Let's accept both of them until this is cleared up.
6248      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6249      lt_cv_file_magic_cmd=/usr/bin/file
6250      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6251      ;;
6252    esac
6253  else
6254    lt_cv_deplibs_check_method=pass_all
6255  fi
6256  ;;
6257
6258haiku*)
6259  lt_cv_deplibs_check_method=pass_all
6260  ;;
6261
6262hpux10.20* | hpux11*)
6263  lt_cv_file_magic_cmd=/usr/bin/file
6264  case $host_cpu in
6265  ia64*)
6266    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6267    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6268    ;;
6269  hppa*64*)
6270    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]'
6271    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6272    ;;
6273  *)
6274    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6275    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6276    ;;
6277  esac
6278  ;;
6279
6280interix[3-9]*)
6281  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6282  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6283  ;;
6284
6285irix5* | irix6* | nonstopux*)
6286  case $LD in
6287  *-32|*"-32 ") libmagic=32-bit;;
6288  *-n32|*"-n32 ") libmagic=N32;;
6289  *-64|*"-64 ") libmagic=64-bit;;
6290  *) libmagic=never-match;;
6291  esac
6292  lt_cv_deplibs_check_method=pass_all
6293  ;;
6294
6295# This must be glibc/ELF.
6296linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6297  lt_cv_deplibs_check_method=pass_all
6298  ;;
6299
6300netbsd* | netbsdelf*-gnu)
6301  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6302    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6303  else
6304    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6305  fi
6306  ;;
6307
6308newos6*)
6309  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6310  lt_cv_file_magic_cmd=/usr/bin/file
6311  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6312  ;;
6313
6314*nto* | *qnx*)
6315  lt_cv_deplibs_check_method=pass_all
6316  ;;
6317
6318openbsd* | bitrig*)
6319  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6320    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6321  else
6322    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6323  fi
6324  ;;
6325
6326osf3* | osf4* | osf5*)
6327  lt_cv_deplibs_check_method=pass_all
6328  ;;
6329
6330rdos*)
6331  lt_cv_deplibs_check_method=pass_all
6332  ;;
6333
6334solaris*)
6335  lt_cv_deplibs_check_method=pass_all
6336  ;;
6337
6338sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6339  lt_cv_deplibs_check_method=pass_all
6340  ;;
6341
6342sysv4 | sysv4.3*)
6343  case $host_vendor in
6344  motorola)
6345    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]'
6346    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6347    ;;
6348  ncr)
6349    lt_cv_deplibs_check_method=pass_all
6350    ;;
6351  sequent)
6352    lt_cv_file_magic_cmd='/bin/file'
6353    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6354    ;;
6355  sni)
6356    lt_cv_file_magic_cmd='/bin/file'
6357    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6358    lt_cv_file_magic_test_file=/lib/libc.so
6359    ;;
6360  siemens)
6361    lt_cv_deplibs_check_method=pass_all
6362    ;;
6363  pc)
6364    lt_cv_deplibs_check_method=pass_all
6365    ;;
6366  esac
6367  ;;
6368
6369tpf*)
6370  lt_cv_deplibs_check_method=pass_all
6371  ;;
6372os2*)
6373  lt_cv_deplibs_check_method=pass_all
6374  ;;
6375esac
6376
6377fi
6378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6379$as_echo "$lt_cv_deplibs_check_method" >&6; }
6380
6381file_magic_glob=
6382want_nocaseglob=no
6383if test "$build" = "$host"; then
6384  case $host_os in
6385  mingw* | pw32*)
6386    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6387      want_nocaseglob=yes
6388    else
6389      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6390    fi
6391    ;;
6392  esac
6393fi
6394
6395file_magic_cmd=$lt_cv_file_magic_cmd
6396deplibs_check_method=$lt_cv_deplibs_check_method
6397test -z "$deplibs_check_method" && deplibs_check_method=unknown
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420if test -n "$ac_tool_prefix"; then
6421  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6422set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424$as_echo_n "checking for $ac_word... " >&6; }
6425if ${ac_cv_prog_DLLTOOL+:} false; then :
6426  $as_echo_n "(cached) " >&6
6427else
6428  if test -n "$DLLTOOL"; then
6429  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6430else
6431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432for as_dir in $PATH
6433do
6434  IFS=$as_save_IFS
6435  test -z "$as_dir" && as_dir=.
6436    for ac_exec_ext in '' $ac_executable_extensions; do
6437  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440    break 2
6441  fi
6442done
6443  done
6444IFS=$as_save_IFS
6445
6446fi
6447fi
6448DLLTOOL=$ac_cv_prog_DLLTOOL
6449if test -n "$DLLTOOL"; then
6450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6451$as_echo "$DLLTOOL" >&6; }
6452else
6453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454$as_echo "no" >&6; }
6455fi
6456
6457
6458fi
6459if test -z "$ac_cv_prog_DLLTOOL"; then
6460  ac_ct_DLLTOOL=$DLLTOOL
6461  # Extract the first word of "dlltool", so it can be a program name with args.
6462set dummy dlltool; ac_word=$2
6463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464$as_echo_n "checking for $ac_word... " >&6; }
6465if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6466  $as_echo_n "(cached) " >&6
6467else
6468  if test -n "$ac_ct_DLLTOOL"; then
6469  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6470else
6471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472for as_dir in $PATH
6473do
6474  IFS=$as_save_IFS
6475  test -z "$as_dir" && as_dir=.
6476    for ac_exec_ext in '' $ac_executable_extensions; do
6477  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6478    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6479    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480    break 2
6481  fi
6482done
6483  done
6484IFS=$as_save_IFS
6485
6486fi
6487fi
6488ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6489if test -n "$ac_ct_DLLTOOL"; then
6490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6491$as_echo "$ac_ct_DLLTOOL" >&6; }
6492else
6493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494$as_echo "no" >&6; }
6495fi
6496
6497  if test "x$ac_ct_DLLTOOL" = x; then
6498    DLLTOOL="false"
6499  else
6500    case $cross_compiling:$ac_tool_warned in
6501yes:)
6502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6504ac_tool_warned=yes ;;
6505esac
6506    DLLTOOL=$ac_ct_DLLTOOL
6507  fi
6508else
6509  DLLTOOL="$ac_cv_prog_DLLTOOL"
6510fi
6511
6512test -z "$DLLTOOL" && DLLTOOL=dlltool
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6524$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6525if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6526  $as_echo_n "(cached) " >&6
6527else
6528  lt_cv_sharedlib_from_linklib_cmd='unknown'
6529
6530case $host_os in
6531cygwin* | mingw* | pw32* | cegcc*)
6532  # two different shell functions defined in ltmain.sh;
6533  # decide which one to use based on capabilities of $DLLTOOL
6534  case `$DLLTOOL --help 2>&1` in
6535  *--identify-strict*)
6536    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6537    ;;
6538  *)
6539    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6540    ;;
6541  esac
6542  ;;
6543*)
6544  # fallback: assume linklib IS sharedlib
6545  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6546  ;;
6547esac
6548
6549fi
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6551$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6552sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6553test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6554
6555
6556
6557
6558
6559
6560
6561if test -n "$ac_tool_prefix"; then
6562  for ac_prog in ar
6563  do
6564    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6565set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567$as_echo_n "checking for $ac_word... " >&6; }
6568if ${ac_cv_prog_AR+:} false; then :
6569  $as_echo_n "(cached) " >&6
6570else
6571  if test -n "$AR"; then
6572  ac_cv_prog_AR="$AR" # Let the user override the test.
6573else
6574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575for as_dir in $PATH
6576do
6577  IFS=$as_save_IFS
6578  test -z "$as_dir" && as_dir=.
6579    for ac_exec_ext in '' $ac_executable_extensions; do
6580  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6581    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6582    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6583    break 2
6584  fi
6585done
6586  done
6587IFS=$as_save_IFS
6588
6589fi
6590fi
6591AR=$ac_cv_prog_AR
6592if test -n "$AR"; then
6593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6594$as_echo "$AR" >&6; }
6595else
6596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597$as_echo "no" >&6; }
6598fi
6599
6600
6601    test -n "$AR" && break
6602  done
6603fi
6604if test -z "$AR"; then
6605  ac_ct_AR=$AR
6606  for ac_prog in ar
6607do
6608  # Extract the first word of "$ac_prog", so it can be a program name with args.
6609set dummy $ac_prog; ac_word=$2
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611$as_echo_n "checking for $ac_word... " >&6; }
6612if ${ac_cv_prog_ac_ct_AR+:} false; then :
6613  $as_echo_n "(cached) " >&6
6614else
6615  if test -n "$ac_ct_AR"; then
6616  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6617else
6618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619for as_dir in $PATH
6620do
6621  IFS=$as_save_IFS
6622  test -z "$as_dir" && as_dir=.
6623    for ac_exec_ext in '' $ac_executable_extensions; do
6624  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625    ac_cv_prog_ac_ct_AR="$ac_prog"
6626    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6627    break 2
6628  fi
6629done
6630  done
6631IFS=$as_save_IFS
6632
6633fi
6634fi
6635ac_ct_AR=$ac_cv_prog_ac_ct_AR
6636if test -n "$ac_ct_AR"; then
6637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6638$as_echo "$ac_ct_AR" >&6; }
6639else
6640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641$as_echo "no" >&6; }
6642fi
6643
6644
6645  test -n "$ac_ct_AR" && break
6646done
6647
6648  if test "x$ac_ct_AR" = x; then
6649    AR="false"
6650  else
6651    case $cross_compiling:$ac_tool_warned in
6652yes:)
6653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6655ac_tool_warned=yes ;;
6656esac
6657    AR=$ac_ct_AR
6658  fi
6659fi
6660
6661: ${AR=ar}
6662: ${AR_FLAGS=cr}
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6675$as_echo_n "checking for archiver @FILE support... " >&6; }
6676if ${lt_cv_ar_at_file+:} false; then :
6677  $as_echo_n "(cached) " >&6
6678else
6679  lt_cv_ar_at_file=no
6680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681/* end confdefs.h.  */
6682
6683int
6684main ()
6685{
6686
6687  ;
6688  return 0;
6689}
6690_ACEOF
6691if ac_fn_c_try_compile "$LINENO"; then :
6692  echo conftest.$ac_objext > conftest.lst
6693      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6694      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6695  (eval $lt_ar_try) 2>&5
6696  ac_status=$?
6697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6698  test $ac_status = 0; }
6699      if test 0 -eq "$ac_status"; then
6700	# Ensure the archiver fails upon bogus file names.
6701	rm -f conftest.$ac_objext libconftest.a
6702	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6703  (eval $lt_ar_try) 2>&5
6704  ac_status=$?
6705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6706  test $ac_status = 0; }
6707	if test 0 -ne "$ac_status"; then
6708          lt_cv_ar_at_file=@
6709        fi
6710      fi
6711      rm -f conftest.* libconftest.a
6712
6713fi
6714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6715
6716fi
6717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6718$as_echo "$lt_cv_ar_at_file" >&6; }
6719
6720if test no = "$lt_cv_ar_at_file"; then
6721  archiver_list_spec=
6722else
6723  archiver_list_spec=$lt_cv_ar_at_file
6724fi
6725
6726
6727
6728
6729
6730
6731
6732if test -n "$ac_tool_prefix"; then
6733  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6734set dummy ${ac_tool_prefix}strip; ac_word=$2
6735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736$as_echo_n "checking for $ac_word... " >&6; }
6737if ${ac_cv_prog_STRIP+:} false; then :
6738  $as_echo_n "(cached) " >&6
6739else
6740  if test -n "$STRIP"; then
6741  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6742else
6743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744for as_dir in $PATH
6745do
6746  IFS=$as_save_IFS
6747  test -z "$as_dir" && as_dir=.
6748    for ac_exec_ext in '' $ac_executable_extensions; do
6749  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6750    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752    break 2
6753  fi
6754done
6755  done
6756IFS=$as_save_IFS
6757
6758fi
6759fi
6760STRIP=$ac_cv_prog_STRIP
6761if test -n "$STRIP"; then
6762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6763$as_echo "$STRIP" >&6; }
6764else
6765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766$as_echo "no" >&6; }
6767fi
6768
6769
6770fi
6771if test -z "$ac_cv_prog_STRIP"; then
6772  ac_ct_STRIP=$STRIP
6773  # Extract the first word of "strip", so it can be a program name with args.
6774set dummy strip; ac_word=$2
6775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776$as_echo_n "checking for $ac_word... " >&6; }
6777if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6778  $as_echo_n "(cached) " >&6
6779else
6780  if test -n "$ac_ct_STRIP"; then
6781  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6782else
6783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784for as_dir in $PATH
6785do
6786  IFS=$as_save_IFS
6787  test -z "$as_dir" && as_dir=.
6788    for ac_exec_ext in '' $ac_executable_extensions; do
6789  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790    ac_cv_prog_ac_ct_STRIP="strip"
6791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792    break 2
6793  fi
6794done
6795  done
6796IFS=$as_save_IFS
6797
6798fi
6799fi
6800ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6801if test -n "$ac_ct_STRIP"; then
6802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6803$as_echo "$ac_ct_STRIP" >&6; }
6804else
6805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806$as_echo "no" >&6; }
6807fi
6808
6809  if test "x$ac_ct_STRIP" = x; then
6810    STRIP=":"
6811  else
6812    case $cross_compiling:$ac_tool_warned in
6813yes:)
6814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6816ac_tool_warned=yes ;;
6817esac
6818    STRIP=$ac_ct_STRIP
6819  fi
6820else
6821  STRIP="$ac_cv_prog_STRIP"
6822fi
6823
6824test -z "$STRIP" && STRIP=:
6825
6826
6827
6828
6829
6830
6831if test -n "$ac_tool_prefix"; then
6832  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6833set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835$as_echo_n "checking for $ac_word... " >&6; }
6836if ${ac_cv_prog_RANLIB+:} false; then :
6837  $as_echo_n "(cached) " >&6
6838else
6839  if test -n "$RANLIB"; then
6840  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6841else
6842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843for as_dir in $PATH
6844do
6845  IFS=$as_save_IFS
6846  test -z "$as_dir" && as_dir=.
6847    for ac_exec_ext in '' $ac_executable_extensions; do
6848  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6849    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6850    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6851    break 2
6852  fi
6853done
6854  done
6855IFS=$as_save_IFS
6856
6857fi
6858fi
6859RANLIB=$ac_cv_prog_RANLIB
6860if test -n "$RANLIB"; then
6861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6862$as_echo "$RANLIB" >&6; }
6863else
6864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865$as_echo "no" >&6; }
6866fi
6867
6868
6869fi
6870if test -z "$ac_cv_prog_RANLIB"; then
6871  ac_ct_RANLIB=$RANLIB
6872  # Extract the first word of "ranlib", so it can be a program name with args.
6873set dummy ranlib; ac_word=$2
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875$as_echo_n "checking for $ac_word... " >&6; }
6876if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6877  $as_echo_n "(cached) " >&6
6878else
6879  if test -n "$ac_ct_RANLIB"; then
6880  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6881else
6882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH
6884do
6885  IFS=$as_save_IFS
6886  test -z "$as_dir" && as_dir=.
6887    for ac_exec_ext in '' $ac_executable_extensions; do
6888  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6889    ac_cv_prog_ac_ct_RANLIB="ranlib"
6890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891    break 2
6892  fi
6893done
6894  done
6895IFS=$as_save_IFS
6896
6897fi
6898fi
6899ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6900if test -n "$ac_ct_RANLIB"; then
6901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6902$as_echo "$ac_ct_RANLIB" >&6; }
6903else
6904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905$as_echo "no" >&6; }
6906fi
6907
6908  if test "x$ac_ct_RANLIB" = x; then
6909    RANLIB=":"
6910  else
6911    case $cross_compiling:$ac_tool_warned in
6912yes:)
6913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6915ac_tool_warned=yes ;;
6916esac
6917    RANLIB=$ac_ct_RANLIB
6918  fi
6919else
6920  RANLIB="$ac_cv_prog_RANLIB"
6921fi
6922
6923test -z "$RANLIB" && RANLIB=:
6924
6925
6926
6927
6928
6929
6930# Determine commands to create old-style static archives.
6931old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6932old_postinstall_cmds='chmod 644 $oldlib'
6933old_postuninstall_cmds=
6934
6935if test -n "$RANLIB"; then
6936  case $host_os in
6937  bitrig* | openbsd*)
6938    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6939    ;;
6940  *)
6941    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6942    ;;
6943  esac
6944  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6945fi
6946
6947case $host_os in
6948  darwin*)
6949    lock_old_archive_extraction=yes ;;
6950  *)
6951    lock_old_archive_extraction=no ;;
6952esac
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992# If no C compiler was specified, use CC.
6993LTCC=${LTCC-"$CC"}
6994
6995# If no C compiler flags were specified, use CFLAGS.
6996LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6997
6998# Allow CC to be a program name with arguments.
6999compiler=$CC
7000
7001
7002# Check for command to grab the raw symbol name followed by C symbol from nm.
7003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7004$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7005if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7006  $as_echo_n "(cached) " >&6
7007else
7008
7009# These are sane defaults that work on at least a few old systems.
7010# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7011
7012# Character class describing NM global symbol codes.
7013symcode='[BCDEGRST]'
7014
7015# Regexp to match symbols that can be accessed directly from C.
7016sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7017
7018# Define system-specific variables.
7019case $host_os in
7020aix*)
7021  symcode='[BCDT]'
7022  ;;
7023cygwin* | mingw* | pw32* | cegcc*)
7024  symcode='[ABCDGISTW]'
7025  ;;
7026hpux*)
7027  if test ia64 = "$host_cpu"; then
7028    symcode='[ABCDEGRST]'
7029  fi
7030  ;;
7031irix* | nonstopux*)
7032  symcode='[BCDEGRST]'
7033  ;;
7034osf*)
7035  symcode='[BCDEGQRST]'
7036  ;;
7037solaris*)
7038  symcode='[BDRT]'
7039  ;;
7040sco3.2v5*)
7041  symcode='[DT]'
7042  ;;
7043sysv4.2uw2*)
7044  symcode='[DT]'
7045  ;;
7046sysv5* | sco5v6* | unixware* | OpenUNIX*)
7047  symcode='[ABDT]'
7048  ;;
7049sysv4)
7050  symcode='[DFNSTU]'
7051  ;;
7052esac
7053
7054# If we're using GNU nm, then use its standard symbol codes.
7055case `$NM -V 2>&1` in
7056*GNU* | *'with BFD'*)
7057  symcode='[ABCDGIRSTW]' ;;
7058esac
7059
7060if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7061  # Gets list of data symbols to import.
7062  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7063  # Adjust the below global symbol transforms to fixup imported variables.
7064  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7065  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7066  lt_c_name_lib_hook="\
7067  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7068  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7069else
7070  # Disable hooks by default.
7071  lt_cv_sys_global_symbol_to_import=
7072  lt_cdecl_hook=
7073  lt_c_name_hook=
7074  lt_c_name_lib_hook=
7075fi
7076
7077# Transform an extracted symbol line into a proper C declaration.
7078# Some systems (esp. on ia64) link data and code symbols differently,
7079# so use this general approach.
7080lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7081$lt_cdecl_hook\
7082" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7083" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7084
7085# Transform an extracted symbol line into symbol name and symbol address
7086lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7087$lt_c_name_hook\
7088" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7089" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7090
7091# Transform an extracted symbol line into symbol name with lib prefix and
7092# symbol address.
7093lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7094$lt_c_name_lib_hook\
7095" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7096" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7097" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7098
7099# Handle CRLF in mingw tool chain
7100opt_cr=
7101case $build_os in
7102mingw*)
7103  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7104  ;;
7105esac
7106
7107# Try without a prefix underscore, then with it.
7108for ac_symprfx in "" "_"; do
7109
7110  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7111  symxfrm="\\1 $ac_symprfx\\2 \\2"
7112
7113  # Write the raw and C identifiers.
7114  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7115    # Fake it for dumpbin and say T for any non-static function,
7116    # D for any global variable and I for any imported variable.
7117    # Also find C++ and __fastcall symbols from MSVC++,
7118    # which start with @ or ?.
7119    lt_cv_sys_global_symbol_pipe="$AWK '"\
7120"     {last_section=section; section=\$ 3};"\
7121"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7122"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7123"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7124"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7125"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7126"     \$ 0!~/External *\|/{next};"\
7127"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7128"     {if(hide[section]) next};"\
7129"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7130"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7131"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7132"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7133"     ' prfx=^$ac_symprfx"
7134  else
7135    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7136  fi
7137  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7138
7139  # Check to see that the pipe works correctly.
7140  pipe_works=no
7141
7142  rm -f conftest*
7143  cat > conftest.$ac_ext <<_LT_EOF
7144#ifdef __cplusplus
7145extern "C" {
7146#endif
7147char nm_test_var;
7148void nm_test_func(void);
7149void nm_test_func(void){}
7150#ifdef __cplusplus
7151}
7152#endif
7153int main(){nm_test_var='a';nm_test_func();return(0);}
7154_LT_EOF
7155
7156  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7157  (eval $ac_compile) 2>&5
7158  ac_status=$?
7159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7160  test $ac_status = 0; }; then
7161    # Now try to grab the symbols.
7162    nlist=conftest.nm
7163    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7164    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7165      # Try sorting and uniquifying the output.
7166      if sort "$nlist" | uniq > "$nlist"T; then
7167	mv -f "$nlist"T "$nlist"
7168      else
7169	rm -f "$nlist"T
7170      fi
7171
7172      # Make sure that we snagged all the symbols we need.
7173      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7174	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7175	  cat <<_LT_EOF > conftest.$ac_ext
7176/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7177#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7178/* DATA imports from DLLs on WIN32 can't be const, because runtime
7179   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7180# define LT_DLSYM_CONST
7181#elif defined __osf__
7182/* This system does not cope well with relocations in const data.  */
7183# define LT_DLSYM_CONST
7184#else
7185# define LT_DLSYM_CONST const
7186#endif
7187
7188#ifdef __cplusplus
7189extern "C" {
7190#endif
7191
7192_LT_EOF
7193	  # Now generate the symbol file.
7194	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7195
7196	  cat <<_LT_EOF >> conftest.$ac_ext
7197
7198/* The mapping between symbol names and symbols.  */
7199LT_DLSYM_CONST struct {
7200  const char *name;
7201  void       *address;
7202}
7203lt__PROGRAM__LTX_preloaded_symbols[] =
7204{
7205  { "@PROGRAM@", (void *) 0 },
7206_LT_EOF
7207	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7208	  cat <<\_LT_EOF >> conftest.$ac_ext
7209  {0, (void *) 0}
7210};
7211
7212/* This works around a problem in FreeBSD linker */
7213#ifdef FREEBSD_WORKAROUND
7214static const void *lt_preloaded_setup() {
7215  return lt__PROGRAM__LTX_preloaded_symbols;
7216}
7217#endif
7218
7219#ifdef __cplusplus
7220}
7221#endif
7222_LT_EOF
7223	  # Now try linking the two files.
7224	  mv conftest.$ac_objext conftstm.$ac_objext
7225	  lt_globsym_save_LIBS=$LIBS
7226	  lt_globsym_save_CFLAGS=$CFLAGS
7227	  LIBS=conftstm.$ac_objext
7228	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7229	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7230  (eval $ac_link) 2>&5
7231  ac_status=$?
7232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7233  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7234	    pipe_works=yes
7235	  fi
7236	  LIBS=$lt_globsym_save_LIBS
7237	  CFLAGS=$lt_globsym_save_CFLAGS
7238	else
7239	  echo "cannot find nm_test_func in $nlist" >&5
7240	fi
7241      else
7242	echo "cannot find nm_test_var in $nlist" >&5
7243      fi
7244    else
7245      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7246    fi
7247  else
7248    echo "$progname: failed program was:" >&5
7249    cat conftest.$ac_ext >&5
7250  fi
7251  rm -rf conftest* conftst*
7252
7253  # Do not use the global_symbol_pipe unless it works.
7254  if test yes = "$pipe_works"; then
7255    break
7256  else
7257    lt_cv_sys_global_symbol_pipe=
7258  fi
7259done
7260
7261fi
7262
7263if test -z "$lt_cv_sys_global_symbol_pipe"; then
7264  lt_cv_sys_global_symbol_to_cdecl=
7265fi
7266if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7268$as_echo "failed" >&6; }
7269else
7270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7271$as_echo "ok" >&6; }
7272fi
7273
7274# Response file support.
7275if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7276  nm_file_list_spec='@'
7277elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7278  nm_file_list_spec='@'
7279fi
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7318$as_echo_n "checking for sysroot... " >&6; }
7319
7320# Check whether --with-sysroot was given.
7321if test "${with_sysroot+set}" = set; then :
7322  withval=$with_sysroot;
7323else
7324  with_sysroot=no
7325fi
7326
7327
7328lt_sysroot=
7329case $with_sysroot in #(
7330 yes)
7331   if test yes = "$GCC"; then
7332     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7333   fi
7334   ;; #(
7335 /*)
7336   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7337   ;; #(
7338 no|'')
7339   ;; #(
7340 *)
7341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7342$as_echo "$with_sysroot" >&6; }
7343   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7344   ;;
7345esac
7346
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7348$as_echo "${lt_sysroot:-no}" >&6; }
7349
7350
7351
7352
7353
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7355$as_echo_n "checking for a working dd... " >&6; }
7356if ${ac_cv_path_lt_DD+:} false; then :
7357  $as_echo_n "(cached) " >&6
7358else
7359  printf 0123456789abcdef0123456789abcdef >conftest.i
7360cat conftest.i conftest.i >conftest2.i
7361: ${lt_DD:=$DD}
7362if test -z "$lt_DD"; then
7363  ac_path_lt_DD_found=false
7364  # Loop through the user's path and test for each of PROGNAME-LIST
7365  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366for as_dir in $PATH
7367do
7368  IFS=$as_save_IFS
7369  test -z "$as_dir" && as_dir=.
7370    for ac_prog in dd; do
7371    for ac_exec_ext in '' $ac_executable_extensions; do
7372      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7373      as_fn_executable_p "$ac_path_lt_DD" || continue
7374if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7375  cmp -s conftest.i conftest.out \
7376  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7377fi
7378      $ac_path_lt_DD_found && break 3
7379    done
7380  done
7381  done
7382IFS=$as_save_IFS
7383  if test -z "$ac_cv_path_lt_DD"; then
7384    :
7385  fi
7386else
7387  ac_cv_path_lt_DD=$lt_DD
7388fi
7389
7390rm -f conftest.i conftest2.i conftest.out
7391fi
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7393$as_echo "$ac_cv_path_lt_DD" >&6; }
7394
7395
7396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7397$as_echo_n "checking how to truncate binary pipes... " >&6; }
7398if ${lt_cv_truncate_bin+:} false; then :
7399  $as_echo_n "(cached) " >&6
7400else
7401  printf 0123456789abcdef0123456789abcdef >conftest.i
7402cat conftest.i conftest.i >conftest2.i
7403lt_cv_truncate_bin=
7404if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7405  cmp -s conftest.i conftest.out \
7406  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7407fi
7408rm -f conftest.i conftest2.i conftest.out
7409test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7410fi
7411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7412$as_echo "$lt_cv_truncate_bin" >&6; }
7413
7414
7415
7416
7417
7418
7419
7420# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7421func_cc_basename ()
7422{
7423    for cc_temp in $*""; do
7424      case $cc_temp in
7425        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7426        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7427        \-*) ;;
7428        *) break;;
7429      esac
7430    done
7431    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7432}
7433
7434# Check whether --enable-libtool-lock was given.
7435if test "${enable_libtool_lock+set}" = set; then :
7436  enableval=$enable_libtool_lock;
7437fi
7438
7439test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7440
7441# Some flags need to be propagated to the compiler or linker for good
7442# libtool support.
7443case $host in
7444ia64-*-hpux*)
7445  # Find out what ABI is being produced by ac_compile, and set mode
7446  # options accordingly.
7447  echo 'int i;' > conftest.$ac_ext
7448  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7449  (eval $ac_compile) 2>&5
7450  ac_status=$?
7451  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7452  test $ac_status = 0; }; then
7453    case `/usr/bin/file conftest.$ac_objext` in
7454      *ELF-32*)
7455	HPUX_IA64_MODE=32
7456	;;
7457      *ELF-64*)
7458	HPUX_IA64_MODE=64
7459	;;
7460    esac
7461  fi
7462  rm -rf conftest*
7463  ;;
7464*-*-irix6*)
7465  # Find out what ABI is being produced by ac_compile, and set linker
7466  # options accordingly.
7467  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7468  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7469  (eval $ac_compile) 2>&5
7470  ac_status=$?
7471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7472  test $ac_status = 0; }; then
7473    if test yes = "$lt_cv_prog_gnu_ld"; then
7474      case `/usr/bin/file conftest.$ac_objext` in
7475	*32-bit*)
7476	  LD="${LD-ld} -melf32bsmip"
7477	  ;;
7478	*N32*)
7479	  LD="${LD-ld} -melf32bmipn32"
7480	  ;;
7481	*64-bit*)
7482	  LD="${LD-ld} -melf64bmip"
7483	;;
7484      esac
7485    else
7486      case `/usr/bin/file conftest.$ac_objext` in
7487	*32-bit*)
7488	  LD="${LD-ld} -32"
7489	  ;;
7490	*N32*)
7491	  LD="${LD-ld} -n32"
7492	  ;;
7493	*64-bit*)
7494	  LD="${LD-ld} -64"
7495	  ;;
7496      esac
7497    fi
7498  fi
7499  rm -rf conftest*
7500  ;;
7501
7502mips64*-*linux*)
7503  # Find out what ABI is being produced by ac_compile, and set linker
7504  # options accordingly.
7505  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7506  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7507  (eval $ac_compile) 2>&5
7508  ac_status=$?
7509  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7510  test $ac_status = 0; }; then
7511    emul=elf
7512    case `/usr/bin/file conftest.$ac_objext` in
7513      *32-bit*)
7514	emul="${emul}32"
7515	;;
7516      *64-bit*)
7517	emul="${emul}64"
7518	;;
7519    esac
7520    case `/usr/bin/file conftest.$ac_objext` in
7521      *MSB*)
7522	emul="${emul}btsmip"
7523	;;
7524      *LSB*)
7525	emul="${emul}ltsmip"
7526	;;
7527    esac
7528    case `/usr/bin/file conftest.$ac_objext` in
7529      *N32*)
7530	emul="${emul}n32"
7531	;;
7532    esac
7533    LD="${LD-ld} -m $emul"
7534  fi
7535  rm -rf conftest*
7536  ;;
7537
7538x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7539s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7540  # Find out what ABI is being produced by ac_compile, and set linker
7541  # options accordingly.  Note that the listed cases only cover the
7542  # situations where additional linker options are needed (such as when
7543  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7544  # vice versa); the common cases where no linker options are needed do
7545  # not appear in the list.
7546  echo 'int i;' > conftest.$ac_ext
7547  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7548  (eval $ac_compile) 2>&5
7549  ac_status=$?
7550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7551  test $ac_status = 0; }; then
7552    case `/usr/bin/file conftest.o` in
7553      *32-bit*)
7554	case $host in
7555	  x86_64-*kfreebsd*-gnu)
7556	    LD="${LD-ld} -m elf_i386_fbsd"
7557	    ;;
7558	  x86_64-*linux*)
7559	    case `/usr/bin/file conftest.o` in
7560	      *x86-64*)
7561		LD="${LD-ld} -m elf32_x86_64"
7562		;;
7563	      *)
7564		LD="${LD-ld} -m elf_i386"
7565		;;
7566	    esac
7567	    ;;
7568	  powerpc64le-*linux*)
7569	    LD="${LD-ld} -m elf32lppclinux"
7570	    ;;
7571	  powerpc64-*linux*)
7572	    LD="${LD-ld} -m elf32ppclinux"
7573	    ;;
7574	  s390x-*linux*)
7575	    LD="${LD-ld} -m elf_s390"
7576	    ;;
7577	  sparc64-*linux*)
7578	    LD="${LD-ld} -m elf32_sparc"
7579	    ;;
7580	esac
7581	;;
7582      *64-bit*)
7583	case $host in
7584	  x86_64-*kfreebsd*-gnu)
7585	    LD="${LD-ld} -m elf_x86_64_fbsd"
7586	    ;;
7587	  x86_64-*linux*)
7588	    LD="${LD-ld} -m elf_x86_64"
7589	    ;;
7590	  powerpcle-*linux*)
7591	    LD="${LD-ld} -m elf64lppc"
7592	    ;;
7593	  powerpc-*linux*)
7594	    LD="${LD-ld} -m elf64ppc"
7595	    ;;
7596	  s390*-*linux*|s390*-*tpf*)
7597	    LD="${LD-ld} -m elf64_s390"
7598	    ;;
7599	  sparc*-*linux*)
7600	    LD="${LD-ld} -m elf64_sparc"
7601	    ;;
7602	esac
7603	;;
7604    esac
7605  fi
7606  rm -rf conftest*
7607  ;;
7608
7609*-*-sco3.2v5*)
7610  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7611  SAVE_CFLAGS=$CFLAGS
7612  CFLAGS="$CFLAGS -belf"
7613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7614$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7615if ${lt_cv_cc_needs_belf+:} false; then :
7616  $as_echo_n "(cached) " >&6
7617else
7618  ac_ext=c
7619ac_cpp='$CPP $CPPFLAGS'
7620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7622ac_compiler_gnu=$ac_cv_c_compiler_gnu
7623
7624     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625/* end confdefs.h.  */
7626
7627int
7628main ()
7629{
7630
7631  ;
7632  return 0;
7633}
7634_ACEOF
7635if ac_fn_c_try_link "$LINENO"; then :
7636  lt_cv_cc_needs_belf=yes
7637else
7638  lt_cv_cc_needs_belf=no
7639fi
7640rm -f core conftest.err conftest.$ac_objext \
7641    conftest$ac_exeext conftest.$ac_ext
7642     ac_ext=c
7643ac_cpp='$CPP $CPPFLAGS'
7644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7646ac_compiler_gnu=$ac_cv_c_compiler_gnu
7647
7648fi
7649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7650$as_echo "$lt_cv_cc_needs_belf" >&6; }
7651  if test yes != "$lt_cv_cc_needs_belf"; then
7652    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7653    CFLAGS=$SAVE_CFLAGS
7654  fi
7655  ;;
7656*-*solaris*)
7657  # Find out what ABI is being produced by ac_compile, and set linker
7658  # options accordingly.
7659  echo 'int i;' > conftest.$ac_ext
7660  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7661  (eval $ac_compile) 2>&5
7662  ac_status=$?
7663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7664  test $ac_status = 0; }; then
7665    case `/usr/bin/file conftest.o` in
7666    *64-bit*)
7667      case $lt_cv_prog_gnu_ld in
7668      yes*)
7669        case $host in
7670        i?86-*-solaris*|x86_64-*-solaris*)
7671          LD="${LD-ld} -m elf_x86_64"
7672          ;;
7673        sparc*-*-solaris*)
7674          LD="${LD-ld} -m elf64_sparc"
7675          ;;
7676        esac
7677        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7678        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7679          LD=${LD-ld}_sol2
7680        fi
7681        ;;
7682      *)
7683	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7684	  LD="${LD-ld} -64"
7685	fi
7686	;;
7687      esac
7688      ;;
7689    esac
7690  fi
7691  rm -rf conftest*
7692  ;;
7693esac
7694
7695need_locks=$enable_libtool_lock
7696
7697if test -n "$ac_tool_prefix"; then
7698  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7699set dummy ${ac_tool_prefix}mt; ac_word=$2
7700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701$as_echo_n "checking for $ac_word... " >&6; }
7702if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7703  $as_echo_n "(cached) " >&6
7704else
7705  if test -n "$MANIFEST_TOOL"; then
7706  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7707else
7708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709for as_dir in $PATH
7710do
7711  IFS=$as_save_IFS
7712  test -z "$as_dir" && as_dir=.
7713    for ac_exec_ext in '' $ac_executable_extensions; do
7714  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7715    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717    break 2
7718  fi
7719done
7720  done
7721IFS=$as_save_IFS
7722
7723fi
7724fi
7725MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7726if test -n "$MANIFEST_TOOL"; then
7727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7728$as_echo "$MANIFEST_TOOL" >&6; }
7729else
7730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731$as_echo "no" >&6; }
7732fi
7733
7734
7735fi
7736if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7737  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7738  # Extract the first word of "mt", so it can be a program name with args.
7739set dummy mt; ac_word=$2
7740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741$as_echo_n "checking for $ac_word... " >&6; }
7742if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7743  $as_echo_n "(cached) " >&6
7744else
7745  if test -n "$ac_ct_MANIFEST_TOOL"; then
7746  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7747else
7748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749for as_dir in $PATH
7750do
7751  IFS=$as_save_IFS
7752  test -z "$as_dir" && as_dir=.
7753    for ac_exec_ext in '' $ac_executable_extensions; do
7754  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7755    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7757    break 2
7758  fi
7759done
7760  done
7761IFS=$as_save_IFS
7762
7763fi
7764fi
7765ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7766if test -n "$ac_ct_MANIFEST_TOOL"; then
7767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7768$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7769else
7770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771$as_echo "no" >&6; }
7772fi
7773
7774  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7775    MANIFEST_TOOL=":"
7776  else
7777    case $cross_compiling:$ac_tool_warned in
7778yes:)
7779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7781ac_tool_warned=yes ;;
7782esac
7783    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7784  fi
7785else
7786  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7787fi
7788
7789test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7791$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7792if ${lt_cv_path_mainfest_tool+:} false; then :
7793  $as_echo_n "(cached) " >&6
7794else
7795  lt_cv_path_mainfest_tool=no
7796  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7797  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7798  cat conftest.err >&5
7799  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7800    lt_cv_path_mainfest_tool=yes
7801  fi
7802  rm -f conftest*
7803fi
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7805$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7806if test yes != "$lt_cv_path_mainfest_tool"; then
7807  MANIFEST_TOOL=:
7808fi
7809
7810
7811
7812
7813
7814
7815  case $host_os in
7816    rhapsody* | darwin*)
7817    if test -n "$ac_tool_prefix"; then
7818  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7819set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821$as_echo_n "checking for $ac_word... " >&6; }
7822if ${ac_cv_prog_DSYMUTIL+:} false; then :
7823  $as_echo_n "(cached) " >&6
7824else
7825  if test -n "$DSYMUTIL"; then
7826  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7827else
7828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829for as_dir in $PATH
7830do
7831  IFS=$as_save_IFS
7832  test -z "$as_dir" && as_dir=.
7833    for ac_exec_ext in '' $ac_executable_extensions; do
7834  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7835    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7837    break 2
7838  fi
7839done
7840  done
7841IFS=$as_save_IFS
7842
7843fi
7844fi
7845DSYMUTIL=$ac_cv_prog_DSYMUTIL
7846if test -n "$DSYMUTIL"; then
7847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7848$as_echo "$DSYMUTIL" >&6; }
7849else
7850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851$as_echo "no" >&6; }
7852fi
7853
7854
7855fi
7856if test -z "$ac_cv_prog_DSYMUTIL"; then
7857  ac_ct_DSYMUTIL=$DSYMUTIL
7858  # Extract the first word of "dsymutil", so it can be a program name with args.
7859set dummy dsymutil; ac_word=$2
7860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861$as_echo_n "checking for $ac_word... " >&6; }
7862if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7863  $as_echo_n "(cached) " >&6
7864else
7865  if test -n "$ac_ct_DSYMUTIL"; then
7866  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7867else
7868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869for as_dir in $PATH
7870do
7871  IFS=$as_save_IFS
7872  test -z "$as_dir" && as_dir=.
7873    for ac_exec_ext in '' $ac_executable_extensions; do
7874  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7875    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7876    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7877    break 2
7878  fi
7879done
7880  done
7881IFS=$as_save_IFS
7882
7883fi
7884fi
7885ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7886if test -n "$ac_ct_DSYMUTIL"; then
7887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7888$as_echo "$ac_ct_DSYMUTIL" >&6; }
7889else
7890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891$as_echo "no" >&6; }
7892fi
7893
7894  if test "x$ac_ct_DSYMUTIL" = x; then
7895    DSYMUTIL=":"
7896  else
7897    case $cross_compiling:$ac_tool_warned in
7898yes:)
7899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7901ac_tool_warned=yes ;;
7902esac
7903    DSYMUTIL=$ac_ct_DSYMUTIL
7904  fi
7905else
7906  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7907fi
7908
7909    if test -n "$ac_tool_prefix"; then
7910  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7911set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7913$as_echo_n "checking for $ac_word... " >&6; }
7914if ${ac_cv_prog_NMEDIT+:} false; then :
7915  $as_echo_n "(cached) " >&6
7916else
7917  if test -n "$NMEDIT"; then
7918  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7919else
7920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921for as_dir in $PATH
7922do
7923  IFS=$as_save_IFS
7924  test -z "$as_dir" && as_dir=.
7925    for ac_exec_ext in '' $ac_executable_extensions; do
7926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7927    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7929    break 2
7930  fi
7931done
7932  done
7933IFS=$as_save_IFS
7934
7935fi
7936fi
7937NMEDIT=$ac_cv_prog_NMEDIT
7938if test -n "$NMEDIT"; then
7939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7940$as_echo "$NMEDIT" >&6; }
7941else
7942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943$as_echo "no" >&6; }
7944fi
7945
7946
7947fi
7948if test -z "$ac_cv_prog_NMEDIT"; then
7949  ac_ct_NMEDIT=$NMEDIT
7950  # Extract the first word of "nmedit", so it can be a program name with args.
7951set dummy nmedit; ac_word=$2
7952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7953$as_echo_n "checking for $ac_word... " >&6; }
7954if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7955  $as_echo_n "(cached) " >&6
7956else
7957  if test -n "$ac_ct_NMEDIT"; then
7958  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7959else
7960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961for as_dir in $PATH
7962do
7963  IFS=$as_save_IFS
7964  test -z "$as_dir" && as_dir=.
7965    for ac_exec_ext in '' $ac_executable_extensions; do
7966  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7967    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7968    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7969    break 2
7970  fi
7971done
7972  done
7973IFS=$as_save_IFS
7974
7975fi
7976fi
7977ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7978if test -n "$ac_ct_NMEDIT"; then
7979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7980$as_echo "$ac_ct_NMEDIT" >&6; }
7981else
7982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983$as_echo "no" >&6; }
7984fi
7985
7986  if test "x$ac_ct_NMEDIT" = x; then
7987    NMEDIT=":"
7988  else
7989    case $cross_compiling:$ac_tool_warned in
7990yes:)
7991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7993ac_tool_warned=yes ;;
7994esac
7995    NMEDIT=$ac_ct_NMEDIT
7996  fi
7997else
7998  NMEDIT="$ac_cv_prog_NMEDIT"
7999fi
8000
8001    if test -n "$ac_tool_prefix"; then
8002  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8003set dummy ${ac_tool_prefix}lipo; ac_word=$2
8004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8005$as_echo_n "checking for $ac_word... " >&6; }
8006if ${ac_cv_prog_LIPO+:} false; then :
8007  $as_echo_n "(cached) " >&6
8008else
8009  if test -n "$LIPO"; then
8010  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8011else
8012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013for as_dir in $PATH
8014do
8015  IFS=$as_save_IFS
8016  test -z "$as_dir" && as_dir=.
8017    for ac_exec_ext in '' $ac_executable_extensions; do
8018  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8019    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8021    break 2
8022  fi
8023done
8024  done
8025IFS=$as_save_IFS
8026
8027fi
8028fi
8029LIPO=$ac_cv_prog_LIPO
8030if test -n "$LIPO"; then
8031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8032$as_echo "$LIPO" >&6; }
8033else
8034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035$as_echo "no" >&6; }
8036fi
8037
8038
8039fi
8040if test -z "$ac_cv_prog_LIPO"; then
8041  ac_ct_LIPO=$LIPO
8042  # Extract the first word of "lipo", so it can be a program name with args.
8043set dummy lipo; ac_word=$2
8044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8045$as_echo_n "checking for $ac_word... " >&6; }
8046if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8047  $as_echo_n "(cached) " >&6
8048else
8049  if test -n "$ac_ct_LIPO"; then
8050  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8051else
8052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8053for as_dir in $PATH
8054do
8055  IFS=$as_save_IFS
8056  test -z "$as_dir" && as_dir=.
8057    for ac_exec_ext in '' $ac_executable_extensions; do
8058  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8059    ac_cv_prog_ac_ct_LIPO="lipo"
8060    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8061    break 2
8062  fi
8063done
8064  done
8065IFS=$as_save_IFS
8066
8067fi
8068fi
8069ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8070if test -n "$ac_ct_LIPO"; then
8071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8072$as_echo "$ac_ct_LIPO" >&6; }
8073else
8074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075$as_echo "no" >&6; }
8076fi
8077
8078  if test "x$ac_ct_LIPO" = x; then
8079    LIPO=":"
8080  else
8081    case $cross_compiling:$ac_tool_warned in
8082yes:)
8083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8085ac_tool_warned=yes ;;
8086esac
8087    LIPO=$ac_ct_LIPO
8088  fi
8089else
8090  LIPO="$ac_cv_prog_LIPO"
8091fi
8092
8093    if test -n "$ac_tool_prefix"; then
8094  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8095set dummy ${ac_tool_prefix}otool; ac_word=$2
8096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8097$as_echo_n "checking for $ac_word... " >&6; }
8098if ${ac_cv_prog_OTOOL+:} false; then :
8099  $as_echo_n "(cached) " >&6
8100else
8101  if test -n "$OTOOL"; then
8102  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8103else
8104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105for as_dir in $PATH
8106do
8107  IFS=$as_save_IFS
8108  test -z "$as_dir" && as_dir=.
8109    for ac_exec_ext in '' $ac_executable_extensions; do
8110  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8111    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8112    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8113    break 2
8114  fi
8115done
8116  done
8117IFS=$as_save_IFS
8118
8119fi
8120fi
8121OTOOL=$ac_cv_prog_OTOOL
8122if test -n "$OTOOL"; then
8123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8124$as_echo "$OTOOL" >&6; }
8125else
8126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8127$as_echo "no" >&6; }
8128fi
8129
8130
8131fi
8132if test -z "$ac_cv_prog_OTOOL"; then
8133  ac_ct_OTOOL=$OTOOL
8134  # Extract the first word of "otool", so it can be a program name with args.
8135set dummy otool; ac_word=$2
8136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8137$as_echo_n "checking for $ac_word... " >&6; }
8138if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8139  $as_echo_n "(cached) " >&6
8140else
8141  if test -n "$ac_ct_OTOOL"; then
8142  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8143else
8144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145for as_dir in $PATH
8146do
8147  IFS=$as_save_IFS
8148  test -z "$as_dir" && as_dir=.
8149    for ac_exec_ext in '' $ac_executable_extensions; do
8150  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8151    ac_cv_prog_ac_ct_OTOOL="otool"
8152    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8153    break 2
8154  fi
8155done
8156  done
8157IFS=$as_save_IFS
8158
8159fi
8160fi
8161ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8162if test -n "$ac_ct_OTOOL"; then
8163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8164$as_echo "$ac_ct_OTOOL" >&6; }
8165else
8166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8167$as_echo "no" >&6; }
8168fi
8169
8170  if test "x$ac_ct_OTOOL" = x; then
8171    OTOOL=":"
8172  else
8173    case $cross_compiling:$ac_tool_warned in
8174yes:)
8175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8177ac_tool_warned=yes ;;
8178esac
8179    OTOOL=$ac_ct_OTOOL
8180  fi
8181else
8182  OTOOL="$ac_cv_prog_OTOOL"
8183fi
8184
8185    if test -n "$ac_tool_prefix"; then
8186  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8187set dummy ${ac_tool_prefix}otool64; ac_word=$2
8188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8189$as_echo_n "checking for $ac_word... " >&6; }
8190if ${ac_cv_prog_OTOOL64+:} false; then :
8191  $as_echo_n "(cached) " >&6
8192else
8193  if test -n "$OTOOL64"; then
8194  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8195else
8196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197for as_dir in $PATH
8198do
8199  IFS=$as_save_IFS
8200  test -z "$as_dir" && as_dir=.
8201    for ac_exec_ext in '' $ac_executable_extensions; do
8202  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8203    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8205    break 2
8206  fi
8207done
8208  done
8209IFS=$as_save_IFS
8210
8211fi
8212fi
8213OTOOL64=$ac_cv_prog_OTOOL64
8214if test -n "$OTOOL64"; then
8215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8216$as_echo "$OTOOL64" >&6; }
8217else
8218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219$as_echo "no" >&6; }
8220fi
8221
8222
8223fi
8224if test -z "$ac_cv_prog_OTOOL64"; then
8225  ac_ct_OTOOL64=$OTOOL64
8226  # Extract the first word of "otool64", so it can be a program name with args.
8227set dummy otool64; ac_word=$2
8228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229$as_echo_n "checking for $ac_word... " >&6; }
8230if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8231  $as_echo_n "(cached) " >&6
8232else
8233  if test -n "$ac_ct_OTOOL64"; then
8234  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8235else
8236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237for as_dir in $PATH
8238do
8239  IFS=$as_save_IFS
8240  test -z "$as_dir" && as_dir=.
8241    for ac_exec_ext in '' $ac_executable_extensions; do
8242  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8243    ac_cv_prog_ac_ct_OTOOL64="otool64"
8244    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8245    break 2
8246  fi
8247done
8248  done
8249IFS=$as_save_IFS
8250
8251fi
8252fi
8253ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8254if test -n "$ac_ct_OTOOL64"; then
8255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8256$as_echo "$ac_ct_OTOOL64" >&6; }
8257else
8258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259$as_echo "no" >&6; }
8260fi
8261
8262  if test "x$ac_ct_OTOOL64" = x; then
8263    OTOOL64=":"
8264  else
8265    case $cross_compiling:$ac_tool_warned in
8266yes:)
8267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8269ac_tool_warned=yes ;;
8270esac
8271    OTOOL64=$ac_ct_OTOOL64
8272  fi
8273else
8274  OTOOL64="$ac_cv_prog_OTOOL64"
8275fi
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8304$as_echo_n "checking for -single_module linker flag... " >&6; }
8305if ${lt_cv_apple_cc_single_mod+:} false; then :
8306  $as_echo_n "(cached) " >&6
8307else
8308  lt_cv_apple_cc_single_mod=no
8309      if test -z "$LT_MULTI_MODULE"; then
8310	# By default we will add the -single_module flag. You can override
8311	# by either setting the environment variable LT_MULTI_MODULE
8312	# non-empty at configure time, or by adding -multi_module to the
8313	# link flags.
8314	rm -rf libconftest.dylib*
8315	echo "int foo(void){return 1;}" > conftest.c
8316	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8317-dynamiclib -Wl,-single_module conftest.c" >&5
8318	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8319	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8320        _lt_result=$?
8321	# If there is a non-empty error log, and "single_module"
8322	# appears in it, assume the flag caused a linker warning
8323        if test -s conftest.err && $GREP single_module conftest.err; then
8324	  cat conftest.err >&5
8325	# Otherwise, if the output was created with a 0 exit code from
8326	# the compiler, it worked.
8327	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8328	  lt_cv_apple_cc_single_mod=yes
8329	else
8330	  cat conftest.err >&5
8331	fi
8332	rm -rf libconftest.dylib*
8333	rm -f conftest.*
8334      fi
8335fi
8336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8337$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8338
8339    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8340$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8341if ${lt_cv_ld_exported_symbols_list+:} false; then :
8342  $as_echo_n "(cached) " >&6
8343else
8344  lt_cv_ld_exported_symbols_list=no
8345      save_LDFLAGS=$LDFLAGS
8346      echo "_main" > conftest.sym
8347      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8348      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8349/* end confdefs.h.  */
8350
8351int
8352main ()
8353{
8354
8355  ;
8356  return 0;
8357}
8358_ACEOF
8359if ac_fn_c_try_link "$LINENO"; then :
8360  lt_cv_ld_exported_symbols_list=yes
8361else
8362  lt_cv_ld_exported_symbols_list=no
8363fi
8364rm -f core conftest.err conftest.$ac_objext \
8365    conftest$ac_exeext conftest.$ac_ext
8366	LDFLAGS=$save_LDFLAGS
8367
8368fi
8369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8370$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8371
8372    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8373$as_echo_n "checking for -force_load linker flag... " >&6; }
8374if ${lt_cv_ld_force_load+:} false; then :
8375  $as_echo_n "(cached) " >&6
8376else
8377  lt_cv_ld_force_load=no
8378      cat > conftest.c << _LT_EOF
8379int forced_loaded() { return 2;}
8380_LT_EOF
8381      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8382      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8383      echo "$AR cr libconftest.a conftest.o" >&5
8384      $AR cr libconftest.a conftest.o 2>&5
8385      echo "$RANLIB libconftest.a" >&5
8386      $RANLIB libconftest.a 2>&5
8387      cat > conftest.c << _LT_EOF
8388int main() { return 0;}
8389_LT_EOF
8390      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8391      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8392      _lt_result=$?
8393      if test -s conftest.err && $GREP force_load conftest.err; then
8394	cat conftest.err >&5
8395      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8396	lt_cv_ld_force_load=yes
8397      else
8398	cat conftest.err >&5
8399      fi
8400        rm -f conftest.err libconftest.a conftest conftest.c
8401        rm -rf conftest.dSYM
8402
8403fi
8404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8405$as_echo "$lt_cv_ld_force_load" >&6; }
8406    case $host_os in
8407    rhapsody* | darwin1.[012])
8408      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8409    darwin1.*)
8410      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8411    darwin*) # darwin 5.x on
8412      # if running on 10.5 or later, the deployment target defaults
8413      # to the OS version, if on x86, and 10.4, the deployment
8414      # target defaults to 10.4. Don't you love it?
8415      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8416	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8417	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8418	10.[012][,.]*)
8419	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8420	10.*)
8421	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8422      esac
8423    ;;
8424  esac
8425    if test yes = "$lt_cv_apple_cc_single_mod"; then
8426      _lt_dar_single_mod='$single_module'
8427    fi
8428    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8429      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8430    else
8431      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8432    fi
8433    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8434      _lt_dsymutil='~$DSYMUTIL $lib || :'
8435    else
8436      _lt_dsymutil=
8437    fi
8438    ;;
8439  esac
8440
8441# func_munge_path_list VARIABLE PATH
8442# -----------------------------------
8443# VARIABLE is name of variable containing _space_ separated list of
8444# directories to be munged by the contents of PATH, which is string
8445# having a format:
8446# "DIR[:DIR]:"
8447#       string "DIR[ DIR]" will be prepended to VARIABLE
8448# ":DIR[:DIR]"
8449#       string "DIR[ DIR]" will be appended to VARIABLE
8450# "DIRP[:DIRP]::[DIRA:]DIRA"
8451#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8452#       "DIRA[ DIRA]" will be appended to VARIABLE
8453# "DIR[:DIR]"
8454#       VARIABLE will be replaced by "DIR[ DIR]"
8455func_munge_path_list ()
8456{
8457    case x$2 in
8458    x)
8459        ;;
8460    *:)
8461        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8462        ;;
8463    x:*)
8464        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8465        ;;
8466    *::*)
8467        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8468        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8469        ;;
8470    *)
8471        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8472        ;;
8473    esac
8474}
8475
8476for ac_header in dlfcn.h
8477do :
8478  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8479"
8480if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8481  cat >>confdefs.h <<_ACEOF
8482#define HAVE_DLFCN_H 1
8483_ACEOF
8484
8485fi
8486
8487done
8488
8489
8490
8491
8492
8493# Set options
8494
8495
8496
8497        enable_dlopen=no
8498
8499
8500  enable_win32_dll=no
8501
8502
8503            # Check whether --enable-shared was given.
8504if test "${enable_shared+set}" = set; then :
8505  enableval=$enable_shared; p=${PACKAGE-default}
8506    case $enableval in
8507    yes) enable_shared=yes ;;
8508    no) enable_shared=no ;;
8509    *)
8510      enable_shared=no
8511      # Look at the argument we got.  We use all the common list separators.
8512      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8513      for pkg in $enableval; do
8514	IFS=$lt_save_ifs
8515	if test "X$pkg" = "X$p"; then
8516	  enable_shared=yes
8517	fi
8518      done
8519      IFS=$lt_save_ifs
8520      ;;
8521    esac
8522else
8523  enable_shared=yes
8524fi
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534  # Check whether --enable-static was given.
8535if test "${enable_static+set}" = set; then :
8536  enableval=$enable_static; p=${PACKAGE-default}
8537    case $enableval in
8538    yes) enable_static=yes ;;
8539    no) enable_static=no ;;
8540    *)
8541     enable_static=no
8542      # Look at the argument we got.  We use all the common list separators.
8543      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8544      for pkg in $enableval; do
8545	IFS=$lt_save_ifs
8546	if test "X$pkg" = "X$p"; then
8547	  enable_static=yes
8548	fi
8549      done
8550      IFS=$lt_save_ifs
8551      ;;
8552    esac
8553else
8554  enable_static=yes
8555fi
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566# Check whether --with-pic was given.
8567if test "${with_pic+set}" = set; then :
8568  withval=$with_pic; lt_p=${PACKAGE-default}
8569    case $withval in
8570    yes|no) pic_mode=$withval ;;
8571    *)
8572      pic_mode=default
8573      # Look at the argument we got.  We use all the common list separators.
8574      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8575      for lt_pkg in $withval; do
8576	IFS=$lt_save_ifs
8577	if test "X$lt_pkg" = "X$lt_p"; then
8578	  pic_mode=yes
8579	fi
8580      done
8581      IFS=$lt_save_ifs
8582      ;;
8583    esac
8584else
8585  pic_mode=default
8586fi
8587
8588
8589
8590
8591
8592
8593
8594
8595  # Check whether --enable-fast-install was given.
8596if test "${enable_fast_install+set}" = set; then :
8597  enableval=$enable_fast_install; p=${PACKAGE-default}
8598    case $enableval in
8599    yes) enable_fast_install=yes ;;
8600    no) enable_fast_install=no ;;
8601    *)
8602      enable_fast_install=no
8603      # Look at the argument we got.  We use all the common list separators.
8604      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8605      for pkg in $enableval; do
8606	IFS=$lt_save_ifs
8607	if test "X$pkg" = "X$p"; then
8608	  enable_fast_install=yes
8609	fi
8610      done
8611      IFS=$lt_save_ifs
8612      ;;
8613    esac
8614else
8615  enable_fast_install=yes
8616fi
8617
8618
8619
8620
8621
8622
8623
8624
8625  shared_archive_member_spec=
8626case $host,$enable_shared in
8627power*-*-aix[5-9]*,yes)
8628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8629$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8630
8631# Check whether --with-aix-soname was given.
8632if test "${with_aix_soname+set}" = set; then :
8633  withval=$with_aix_soname; case $withval in
8634    aix|svr4|both)
8635      ;;
8636    *)
8637      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8638      ;;
8639    esac
8640    lt_cv_with_aix_soname=$with_aix_soname
8641else
8642  if ${lt_cv_with_aix_soname+:} false; then :
8643  $as_echo_n "(cached) " >&6
8644else
8645  lt_cv_with_aix_soname=aix
8646fi
8647
8648    with_aix_soname=$lt_cv_with_aix_soname
8649fi
8650
8651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8652$as_echo "$with_aix_soname" >&6; }
8653  if test aix != "$with_aix_soname"; then
8654    # For the AIX way of multilib, we name the shared archive member
8655    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8656    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8657    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8658    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8659    if test 64 = "${OBJECT_MODE-32}"; then
8660      shared_archive_member_spec=shr_64
8661    else
8662      shared_archive_member_spec=shr
8663    fi
8664  fi
8665  ;;
8666*)
8667  with_aix_soname=aix
8668  ;;
8669esac
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680# This can be used to rebuild libtool when needed
8681LIBTOOL_DEPS=$ltmain
8682
8683# Always use our own libtool.
8684LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715test -z "$LN_S" && LN_S="ln -s"
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730if test -n "${ZSH_VERSION+set}"; then
8731   setopt NO_GLOB_SUBST
8732fi
8733
8734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8735$as_echo_n "checking for objdir... " >&6; }
8736if ${lt_cv_objdir+:} false; then :
8737  $as_echo_n "(cached) " >&6
8738else
8739  rm -f .libs 2>/dev/null
8740mkdir .libs 2>/dev/null
8741if test -d .libs; then
8742  lt_cv_objdir=.libs
8743else
8744  # MS-DOS does not allow filenames that begin with a dot.
8745  lt_cv_objdir=_libs
8746fi
8747rmdir .libs 2>/dev/null
8748fi
8749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8750$as_echo "$lt_cv_objdir" >&6; }
8751objdir=$lt_cv_objdir
8752
8753
8754
8755
8756
8757cat >>confdefs.h <<_ACEOF
8758#define LT_OBJDIR "$lt_cv_objdir/"
8759_ACEOF
8760
8761
8762
8763
8764case $host_os in
8765aix3*)
8766  # AIX sometimes has problems with the GCC collect2 program.  For some
8767  # reason, if we set the COLLECT_NAMES environment variable, the problems
8768  # vanish in a puff of smoke.
8769  if test set != "${COLLECT_NAMES+set}"; then
8770    COLLECT_NAMES=
8771    export COLLECT_NAMES
8772  fi
8773  ;;
8774esac
8775
8776# Global variables:
8777ofile=libtool
8778can_build_shared=yes
8779
8780# All known linkers require a '.a' archive for static linking (except MSVC,
8781# which needs '.lib').
8782libext=a
8783
8784with_gnu_ld=$lt_cv_prog_gnu_ld
8785
8786old_CC=$CC
8787old_CFLAGS=$CFLAGS
8788
8789# Set sane defaults for various variables
8790test -z "$CC" && CC=cc
8791test -z "$LTCC" && LTCC=$CC
8792test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8793test -z "$LD" && LD=ld
8794test -z "$ac_objext" && ac_objext=o
8795
8796func_cc_basename $compiler
8797cc_basename=$func_cc_basename_result
8798
8799
8800# Only perform the check for file, if the check method requires it
8801test -z "$MAGIC_CMD" && MAGIC_CMD=file
8802case $deplibs_check_method in
8803file_magic*)
8804  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8805    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8806$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8807if ${lt_cv_path_MAGIC_CMD+:} false; then :
8808  $as_echo_n "(cached) " >&6
8809else
8810  case $MAGIC_CMD in
8811[\\/*] |  ?:[\\/]*)
8812  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8813  ;;
8814*)
8815  lt_save_MAGIC_CMD=$MAGIC_CMD
8816  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8817  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8818  for ac_dir in $ac_dummy; do
8819    IFS=$lt_save_ifs
8820    test -z "$ac_dir" && ac_dir=.
8821    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8822      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8823      if test -n "$file_magic_test_file"; then
8824	case $deplibs_check_method in
8825	"file_magic "*)
8826	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8827	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8828	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8829	    $EGREP "$file_magic_regex" > /dev/null; then
8830	    :
8831	  else
8832	    cat <<_LT_EOF 1>&2
8833
8834*** Warning: the command libtool uses to detect shared libraries,
8835*** $file_magic_cmd, produces output that libtool cannot recognize.
8836*** The result is that libtool may fail to recognize shared libraries
8837*** as such.  This will affect the creation of libtool libraries that
8838*** depend on shared libraries, but programs linked with such libtool
8839*** libraries will work regardless of this problem.  Nevertheless, you
8840*** may want to report the problem to your system manager and/or to
8841*** bug-libtool@gnu.org
8842
8843_LT_EOF
8844	  fi ;;
8845	esac
8846      fi
8847      break
8848    fi
8849  done
8850  IFS=$lt_save_ifs
8851  MAGIC_CMD=$lt_save_MAGIC_CMD
8852  ;;
8853esac
8854fi
8855
8856MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8857if test -n "$MAGIC_CMD"; then
8858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8859$as_echo "$MAGIC_CMD" >&6; }
8860else
8861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862$as_echo "no" >&6; }
8863fi
8864
8865
8866
8867
8868
8869if test -z "$lt_cv_path_MAGIC_CMD"; then
8870  if test -n "$ac_tool_prefix"; then
8871    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8872$as_echo_n "checking for file... " >&6; }
8873if ${lt_cv_path_MAGIC_CMD+:} false; then :
8874  $as_echo_n "(cached) " >&6
8875else
8876  case $MAGIC_CMD in
8877[\\/*] |  ?:[\\/]*)
8878  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8879  ;;
8880*)
8881  lt_save_MAGIC_CMD=$MAGIC_CMD
8882  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8883  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8884  for ac_dir in $ac_dummy; do
8885    IFS=$lt_save_ifs
8886    test -z "$ac_dir" && ac_dir=.
8887    if test -f "$ac_dir/file"; then
8888      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8889      if test -n "$file_magic_test_file"; then
8890	case $deplibs_check_method in
8891	"file_magic "*)
8892	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8893	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8894	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8895	    $EGREP "$file_magic_regex" > /dev/null; then
8896	    :
8897	  else
8898	    cat <<_LT_EOF 1>&2
8899
8900*** Warning: the command libtool uses to detect shared libraries,
8901*** $file_magic_cmd, produces output that libtool cannot recognize.
8902*** The result is that libtool may fail to recognize shared libraries
8903*** as such.  This will affect the creation of libtool libraries that
8904*** depend on shared libraries, but programs linked with such libtool
8905*** libraries will work regardless of this problem.  Nevertheless, you
8906*** may want to report the problem to your system manager and/or to
8907*** bug-libtool@gnu.org
8908
8909_LT_EOF
8910	  fi ;;
8911	esac
8912      fi
8913      break
8914    fi
8915  done
8916  IFS=$lt_save_ifs
8917  MAGIC_CMD=$lt_save_MAGIC_CMD
8918  ;;
8919esac
8920fi
8921
8922MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8923if test -n "$MAGIC_CMD"; then
8924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8925$as_echo "$MAGIC_CMD" >&6; }
8926else
8927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928$as_echo "no" >&6; }
8929fi
8930
8931
8932  else
8933    MAGIC_CMD=:
8934  fi
8935fi
8936
8937  fi
8938  ;;
8939esac
8940
8941# Use C for the default configuration in the libtool script
8942
8943lt_save_CC=$CC
8944ac_ext=c
8945ac_cpp='$CPP $CPPFLAGS'
8946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8948ac_compiler_gnu=$ac_cv_c_compiler_gnu
8949
8950
8951# Source file extension for C test sources.
8952ac_ext=c
8953
8954# Object file extension for compiled C test sources.
8955objext=o
8956objext=$objext
8957
8958# Code to be used in simple compile tests
8959lt_simple_compile_test_code="int some_variable = 0;"
8960
8961# Code to be used in simple link tests
8962lt_simple_link_test_code='int main(){return(0);}'
8963
8964
8965
8966
8967
8968
8969
8970# If no C compiler was specified, use CC.
8971LTCC=${LTCC-"$CC"}
8972
8973# If no C compiler flags were specified, use CFLAGS.
8974LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8975
8976# Allow CC to be a program name with arguments.
8977compiler=$CC
8978
8979# Save the default compiler, since it gets overwritten when the other
8980# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8981compiler_DEFAULT=$CC
8982
8983# save warnings/boilerplate of simple test code
8984ac_outfile=conftest.$ac_objext
8985echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8986eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8987_lt_compiler_boilerplate=`cat conftest.err`
8988$RM conftest*
8989
8990ac_outfile=conftest.$ac_objext
8991echo "$lt_simple_link_test_code" >conftest.$ac_ext
8992eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8993_lt_linker_boilerplate=`cat conftest.err`
8994$RM -r conftest*
8995
8996
8997## CAVEAT EMPTOR:
8998## There is no encapsulation within the following macros, do not change
8999## the running order or otherwise move them around unless you know exactly
9000## what you are doing...
9001if test -n "$compiler"; then
9002
9003lt_prog_compiler_no_builtin_flag=
9004
9005if test yes = "$GCC"; then
9006  case $cc_basename in
9007  nvcc*)
9008    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9009  *)
9010    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9011  esac
9012
9013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9014$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9015if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9016  $as_echo_n "(cached) " >&6
9017else
9018  lt_cv_prog_compiler_rtti_exceptions=no
9019   ac_outfile=conftest.$ac_objext
9020   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9021   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9022   # Insert the option either (1) after the last *FLAGS variable, or
9023   # (2) before a word containing "conftest.", or (3) at the end.
9024   # Note that $ac_compile itself does not contain backslashes and begins
9025   # with a dollar sign (not a hyphen), so the echo should work correctly.
9026   # The option is referenced via a variable to avoid confusing sed.
9027   lt_compile=`echo "$ac_compile" | $SED \
9028   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9029   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9030   -e 's:$: $lt_compiler_flag:'`
9031   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9032   (eval "$lt_compile" 2>conftest.err)
9033   ac_status=$?
9034   cat conftest.err >&5
9035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036   if (exit $ac_status) && test -s "$ac_outfile"; then
9037     # The compiler can only warn and ignore the option if not recognized
9038     # So say no if there are warnings other than the usual output.
9039     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9040     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9041     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9042       lt_cv_prog_compiler_rtti_exceptions=yes
9043     fi
9044   fi
9045   $RM conftest*
9046
9047fi
9048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9049$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9050
9051if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9052    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9053else
9054    :
9055fi
9056
9057fi
9058
9059
9060
9061
9062
9063
9064  lt_prog_compiler_wl=
9065lt_prog_compiler_pic=
9066lt_prog_compiler_static=
9067
9068
9069  if test yes = "$GCC"; then
9070    lt_prog_compiler_wl='-Wl,'
9071    lt_prog_compiler_static='-static'
9072
9073    case $host_os in
9074      aix*)
9075      # All AIX code is PIC.
9076      if test ia64 = "$host_cpu"; then
9077	# AIX 5 now supports IA64 processor
9078	lt_prog_compiler_static='-Bstatic'
9079      fi
9080      lt_prog_compiler_pic='-fPIC'
9081      ;;
9082
9083    amigaos*)
9084      case $host_cpu in
9085      powerpc)
9086            # see comment about AmigaOS4 .so support
9087            lt_prog_compiler_pic='-fPIC'
9088        ;;
9089      m68k)
9090            # FIXME: we need at least 68020 code to build shared libraries, but
9091            # adding the '-m68020' flag to GCC prevents building anything better,
9092            # like '-m68040'.
9093            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9094        ;;
9095      esac
9096      ;;
9097
9098    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9099      # PIC is the default for these OSes.
9100      ;;
9101
9102    mingw* | cygwin* | pw32* | os2* | cegcc*)
9103      # This hack is so that the source file can tell whether it is being
9104      # built for inclusion in a dll (and should export symbols for example).
9105      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9106      # (--disable-auto-import) libraries
9107      lt_prog_compiler_pic='-DDLL_EXPORT'
9108      case $host_os in
9109      os2*)
9110	lt_prog_compiler_static='$wl-static'
9111	;;
9112      esac
9113      ;;
9114
9115    darwin* | rhapsody*)
9116      # PIC is the default on this platform
9117      # Common symbols not allowed in MH_DYLIB files
9118      lt_prog_compiler_pic='-fno-common'
9119      ;;
9120
9121    haiku*)
9122      # PIC is the default for Haiku.
9123      # The "-static" flag exists, but is broken.
9124      lt_prog_compiler_static=
9125      ;;
9126
9127    hpux*)
9128      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9129      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9130      # sets the default TLS model and affects inlining.
9131      case $host_cpu in
9132      hppa*64*)
9133	# +Z the default
9134	;;
9135      *)
9136	lt_prog_compiler_pic='-fPIC'
9137	;;
9138      esac
9139      ;;
9140
9141    interix[3-9]*)
9142      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9143      # Instead, we relocate shared libraries at runtime.
9144      ;;
9145
9146    msdosdjgpp*)
9147      # Just because we use GCC doesn't mean we suddenly get shared libraries
9148      # on systems that don't support them.
9149      lt_prog_compiler_can_build_shared=no
9150      enable_shared=no
9151      ;;
9152
9153    *nto* | *qnx*)
9154      # QNX uses GNU C++, but need to define -shared option too, otherwise
9155      # it will coredump.
9156      lt_prog_compiler_pic='-fPIC -shared'
9157      ;;
9158
9159    sysv4*MP*)
9160      if test -d /usr/nec; then
9161	lt_prog_compiler_pic=-Kconform_pic
9162      fi
9163      ;;
9164
9165    *)
9166      lt_prog_compiler_pic='-fPIC'
9167      ;;
9168    esac
9169
9170    case $cc_basename in
9171    nvcc*) # Cuda Compiler Driver 2.2
9172      lt_prog_compiler_wl='-Xlinker '
9173      if test -n "$lt_prog_compiler_pic"; then
9174        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9175      fi
9176      ;;
9177    esac
9178  else
9179    # PORTME Check for flag to pass linker flags through the system compiler.
9180    case $host_os in
9181    aix*)
9182      lt_prog_compiler_wl='-Wl,'
9183      if test ia64 = "$host_cpu"; then
9184	# AIX 5 now supports IA64 processor
9185	lt_prog_compiler_static='-Bstatic'
9186      else
9187	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9188      fi
9189      ;;
9190
9191    darwin* | rhapsody*)
9192      # PIC is the default on this platform
9193      # Common symbols not allowed in MH_DYLIB files
9194      lt_prog_compiler_pic='-fno-common'
9195      case $cc_basename in
9196      nagfor*)
9197        # NAG Fortran compiler
9198        lt_prog_compiler_wl='-Wl,-Wl,,'
9199        lt_prog_compiler_pic='-PIC'
9200        lt_prog_compiler_static='-Bstatic'
9201        ;;
9202      esac
9203      ;;
9204
9205    mingw* | cygwin* | pw32* | os2* | cegcc*)
9206      # This hack is so that the source file can tell whether it is being
9207      # built for inclusion in a dll (and should export symbols for example).
9208      lt_prog_compiler_pic='-DDLL_EXPORT'
9209      case $host_os in
9210      os2*)
9211	lt_prog_compiler_static='$wl-static'
9212	;;
9213      esac
9214      ;;
9215
9216    hpux9* | hpux10* | hpux11*)
9217      lt_prog_compiler_wl='-Wl,'
9218      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9219      # not for PA HP-UX.
9220      case $host_cpu in
9221      hppa*64*|ia64*)
9222	# +Z the default
9223	;;
9224      *)
9225	lt_prog_compiler_pic='+Z'
9226	;;
9227      esac
9228      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9229      lt_prog_compiler_static='$wl-a ${wl}archive'
9230      ;;
9231
9232    irix5* | irix6* | nonstopux*)
9233      lt_prog_compiler_wl='-Wl,'
9234      # PIC (with -KPIC) is the default.
9235      lt_prog_compiler_static='-non_shared'
9236      ;;
9237
9238    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9239      case $cc_basename in
9240      # old Intel for x86_64, which still supported -KPIC.
9241      ecc*)
9242	lt_prog_compiler_wl='-Wl,'
9243	lt_prog_compiler_pic='-KPIC'
9244	lt_prog_compiler_static='-static'
9245        ;;
9246      # flang / f18. f95 an alias for gfortran or flang on Debian
9247      flang* | f18* | f95*)
9248	lt_prog_compiler_wl='-Wl,'
9249	lt_prog_compiler_pic='-fPIC'
9250	lt_prog_compiler_static='-static'
9251        ;;
9252      # icc used to be incompatible with GCC.
9253      # ICC 10 doesn't accept -KPIC any more.
9254      icc* | ifort*)
9255	lt_prog_compiler_wl='-Wl,'
9256	lt_prog_compiler_pic='-fPIC'
9257	lt_prog_compiler_static='-static'
9258        ;;
9259      # Lahey Fortran 8.1.
9260      lf95*)
9261	lt_prog_compiler_wl='-Wl,'
9262	lt_prog_compiler_pic='--shared'
9263	lt_prog_compiler_static='--static'
9264	;;
9265      nagfor*)
9266	# NAG Fortran compiler
9267	lt_prog_compiler_wl='-Wl,-Wl,,'
9268	lt_prog_compiler_pic='-PIC'
9269	lt_prog_compiler_static='-Bstatic'
9270	;;
9271      tcc*)
9272	# Fabrice Bellard et al's Tiny C Compiler
9273	lt_prog_compiler_wl='-Wl,'
9274	lt_prog_compiler_pic='-fPIC'
9275	lt_prog_compiler_static='-static'
9276	;;
9277      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9278        # Portland Group compilers (*not* the Pentium gcc compiler,
9279	# which looks to be a dead project)
9280	lt_prog_compiler_wl='-Wl,'
9281	lt_prog_compiler_pic='-fpic'
9282	lt_prog_compiler_static='-Bstatic'
9283        ;;
9284      ccc*)
9285        lt_prog_compiler_wl='-Wl,'
9286        # All Alpha code is PIC.
9287        lt_prog_compiler_static='-non_shared'
9288        ;;
9289      xl* | bgxl* | bgf* | mpixl*)
9290	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9291	lt_prog_compiler_wl='-Wl,'
9292	lt_prog_compiler_pic='-qpic'
9293	lt_prog_compiler_static='-qstaticlink'
9294	;;
9295      *)
9296	case `$CC -V 2>&1 | sed 5q` in
9297	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9298	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9299	  lt_prog_compiler_pic='-KPIC'
9300	  lt_prog_compiler_static='-Bstatic'
9301	  lt_prog_compiler_wl=''
9302	  ;;
9303	*Sun\ F* | *Sun*Fortran*)
9304	  lt_prog_compiler_pic='-KPIC'
9305	  lt_prog_compiler_static='-Bstatic'
9306	  lt_prog_compiler_wl='-Qoption ld '
9307	  ;;
9308	*Sun\ C*)
9309	  # Sun C 5.9
9310	  lt_prog_compiler_pic='-KPIC'
9311	  lt_prog_compiler_static='-Bstatic'
9312	  lt_prog_compiler_wl='-Wl,'
9313	  ;;
9314        *Intel*\ [CF]*Compiler*)
9315	  lt_prog_compiler_wl='-Wl,'
9316	  lt_prog_compiler_pic='-fPIC'
9317	  lt_prog_compiler_static='-static'
9318	  ;;
9319	*Portland\ Group*)
9320	  lt_prog_compiler_wl='-Wl,'
9321	  lt_prog_compiler_pic='-fpic'
9322	  lt_prog_compiler_static='-Bstatic'
9323	  ;;
9324	esac
9325	;;
9326      esac
9327      ;;
9328
9329    newsos6)
9330      lt_prog_compiler_pic='-KPIC'
9331      lt_prog_compiler_static='-Bstatic'
9332      ;;
9333
9334    *nto* | *qnx*)
9335      # QNX uses GNU C++, but need to define -shared option too, otherwise
9336      # it will coredump.
9337      lt_prog_compiler_pic='-fPIC -shared'
9338      ;;
9339
9340    osf3* | osf4* | osf5*)
9341      lt_prog_compiler_wl='-Wl,'
9342      # All OSF/1 code is PIC.
9343      lt_prog_compiler_static='-non_shared'
9344      ;;
9345
9346    rdos*)
9347      lt_prog_compiler_static='-non_shared'
9348      ;;
9349
9350    solaris*)
9351      lt_prog_compiler_pic='-KPIC'
9352      lt_prog_compiler_static='-Bstatic'
9353      case $cc_basename in
9354      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9355	lt_prog_compiler_wl='-Qoption ld ';;
9356      *)
9357	lt_prog_compiler_wl='-Wl,';;
9358      esac
9359      ;;
9360
9361    sunos4*)
9362      lt_prog_compiler_wl='-Qoption ld '
9363      lt_prog_compiler_pic='-PIC'
9364      lt_prog_compiler_static='-Bstatic'
9365      ;;
9366
9367    sysv4 | sysv4.2uw2* | sysv4.3*)
9368      lt_prog_compiler_wl='-Wl,'
9369      lt_prog_compiler_pic='-KPIC'
9370      lt_prog_compiler_static='-Bstatic'
9371      ;;
9372
9373    sysv4*MP*)
9374      if test -d /usr/nec; then
9375	lt_prog_compiler_pic='-Kconform_pic'
9376	lt_prog_compiler_static='-Bstatic'
9377      fi
9378      ;;
9379
9380    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9381      lt_prog_compiler_wl='-Wl,'
9382      lt_prog_compiler_pic='-KPIC'
9383      lt_prog_compiler_static='-Bstatic'
9384      ;;
9385
9386    unicos*)
9387      lt_prog_compiler_wl='-Wl,'
9388      lt_prog_compiler_can_build_shared=no
9389      ;;
9390
9391    uts4*)
9392      lt_prog_compiler_pic='-pic'
9393      lt_prog_compiler_static='-Bstatic'
9394      ;;
9395
9396    *)
9397      lt_prog_compiler_can_build_shared=no
9398      ;;
9399    esac
9400  fi
9401
9402case $host_os in
9403  # For platforms that do not support PIC, -DPIC is meaningless:
9404  *djgpp*)
9405    lt_prog_compiler_pic=
9406    ;;
9407  *)
9408    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9409    ;;
9410esac
9411
9412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9413$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9414if ${lt_cv_prog_compiler_pic+:} false; then :
9415  $as_echo_n "(cached) " >&6
9416else
9417  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9418fi
9419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9420$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9421lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9422
9423#
9424# Check to make sure the PIC flag actually works.
9425#
9426if test -n "$lt_prog_compiler_pic"; then
9427  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9428$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9429if ${lt_cv_prog_compiler_pic_works+:} false; then :
9430  $as_echo_n "(cached) " >&6
9431else
9432  lt_cv_prog_compiler_pic_works=no
9433   ac_outfile=conftest.$ac_objext
9434   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9435   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9436   # Insert the option either (1) after the last *FLAGS variable, or
9437   # (2) before a word containing "conftest.", or (3) at the end.
9438   # Note that $ac_compile itself does not contain backslashes and begins
9439   # with a dollar sign (not a hyphen), so the echo should work correctly.
9440   # The option is referenced via a variable to avoid confusing sed.
9441   lt_compile=`echo "$ac_compile" | $SED \
9442   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9443   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9444   -e 's:$: $lt_compiler_flag:'`
9445   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9446   (eval "$lt_compile" 2>conftest.err)
9447   ac_status=$?
9448   cat conftest.err >&5
9449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450   if (exit $ac_status) && test -s "$ac_outfile"; then
9451     # The compiler can only warn and ignore the option if not recognized
9452     # So say no if there are warnings other than the usual output.
9453     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9454     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9455     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9456       lt_cv_prog_compiler_pic_works=yes
9457     fi
9458   fi
9459   $RM conftest*
9460
9461fi
9462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9463$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9464
9465if test yes = "$lt_cv_prog_compiler_pic_works"; then
9466    case $lt_prog_compiler_pic in
9467     "" | " "*) ;;
9468     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9469     esac
9470else
9471    lt_prog_compiler_pic=
9472     lt_prog_compiler_can_build_shared=no
9473fi
9474
9475fi
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487#
9488# Check to make sure the static flag actually works.
9489#
9490wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9492$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9493if ${lt_cv_prog_compiler_static_works+:} false; then :
9494  $as_echo_n "(cached) " >&6
9495else
9496  lt_cv_prog_compiler_static_works=no
9497   save_LDFLAGS=$LDFLAGS
9498   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9499   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9500   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9501     # The linker can only warn and ignore the option if not recognized
9502     # So say no if there are warnings
9503     if test -s conftest.err; then
9504       # Append any errors to the config.log.
9505       cat conftest.err 1>&5
9506       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9507       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9508       if diff conftest.exp conftest.er2 >/dev/null; then
9509         lt_cv_prog_compiler_static_works=yes
9510       fi
9511     else
9512       lt_cv_prog_compiler_static_works=yes
9513     fi
9514   fi
9515   $RM -r conftest*
9516   LDFLAGS=$save_LDFLAGS
9517
9518fi
9519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9520$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9521
9522if test yes = "$lt_cv_prog_compiler_static_works"; then
9523    :
9524else
9525    lt_prog_compiler_static=
9526fi
9527
9528
9529
9530
9531
9532
9533
9534  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9535$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9536if ${lt_cv_prog_compiler_c_o+:} false; then :
9537  $as_echo_n "(cached) " >&6
9538else
9539  lt_cv_prog_compiler_c_o=no
9540   $RM -r conftest 2>/dev/null
9541   mkdir conftest
9542   cd conftest
9543   mkdir out
9544   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9545
9546   lt_compiler_flag="-o out/conftest2.$ac_objext"
9547   # Insert the option either (1) after the last *FLAGS variable, or
9548   # (2) before a word containing "conftest.", or (3) at the end.
9549   # Note that $ac_compile itself does not contain backslashes and begins
9550   # with a dollar sign (not a hyphen), so the echo should work correctly.
9551   lt_compile=`echo "$ac_compile" | $SED \
9552   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9553   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9554   -e 's:$: $lt_compiler_flag:'`
9555   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9556   (eval "$lt_compile" 2>out/conftest.err)
9557   ac_status=$?
9558   cat out/conftest.err >&5
9559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9561   then
9562     # The compiler can only warn and ignore the option if not recognized
9563     # So say no if there are warnings
9564     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9565     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9566     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9567       lt_cv_prog_compiler_c_o=yes
9568     fi
9569   fi
9570   chmod u+w . 2>&5
9571   $RM conftest*
9572   # SGI C++ compiler will create directory out/ii_files/ for
9573   # template instantiation
9574   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9575   $RM out/* && rmdir out
9576   cd ..
9577   $RM -r conftest
9578   $RM conftest*
9579
9580fi
9581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9582$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9583
9584
9585
9586
9587
9588
9589  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9590$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9591if ${lt_cv_prog_compiler_c_o+:} false; then :
9592  $as_echo_n "(cached) " >&6
9593else
9594  lt_cv_prog_compiler_c_o=no
9595   $RM -r conftest 2>/dev/null
9596   mkdir conftest
9597   cd conftest
9598   mkdir out
9599   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9600
9601   lt_compiler_flag="-o out/conftest2.$ac_objext"
9602   # Insert the option either (1) after the last *FLAGS variable, or
9603   # (2) before a word containing "conftest.", or (3) at the end.
9604   # Note that $ac_compile itself does not contain backslashes and begins
9605   # with a dollar sign (not a hyphen), so the echo should work correctly.
9606   lt_compile=`echo "$ac_compile" | $SED \
9607   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9608   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9609   -e 's:$: $lt_compiler_flag:'`
9610   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9611   (eval "$lt_compile" 2>out/conftest.err)
9612   ac_status=$?
9613   cat out/conftest.err >&5
9614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9616   then
9617     # The compiler can only warn and ignore the option if not recognized
9618     # So say no if there are warnings
9619     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9620     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9621     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9622       lt_cv_prog_compiler_c_o=yes
9623     fi
9624   fi
9625   chmod u+w . 2>&5
9626   $RM conftest*
9627   # SGI C++ compiler will create directory out/ii_files/ for
9628   # template instantiation
9629   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9630   $RM out/* && rmdir out
9631   cd ..
9632   $RM -r conftest
9633   $RM conftest*
9634
9635fi
9636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9637$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9638
9639
9640
9641
9642hard_links=nottested
9643if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9644  # do not overwrite the value of need_locks provided by the user
9645  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9646$as_echo_n "checking if we can lock with hard links... " >&6; }
9647  hard_links=yes
9648  $RM conftest*
9649  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9650  touch conftest.a
9651  ln conftest.a conftest.b 2>&5 || hard_links=no
9652  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9654$as_echo "$hard_links" >&6; }
9655  if test no = "$hard_links"; then
9656    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9657$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9658    need_locks=warn
9659  fi
9660else
9661  need_locks=no
9662fi
9663
9664
9665
9666
9667
9668
9669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9670$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9671
9672  runpath_var=
9673  allow_undefined_flag=
9674  always_export_symbols=no
9675  archive_cmds=
9676  archive_expsym_cmds=
9677  compiler_needs_object=no
9678  enable_shared_with_static_runtimes=no
9679  export_dynamic_flag_spec=
9680  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9681  hardcode_automatic=no
9682  hardcode_direct=no
9683  hardcode_direct_absolute=no
9684  hardcode_libdir_flag_spec=
9685  hardcode_libdir_separator=
9686  hardcode_minus_L=no
9687  hardcode_shlibpath_var=unsupported
9688  inherit_rpath=no
9689  link_all_deplibs=unknown
9690  module_cmds=
9691  module_expsym_cmds=
9692  old_archive_from_new_cmds=
9693  old_archive_from_expsyms_cmds=
9694  thread_safe_flag_spec=
9695  whole_archive_flag_spec=
9696  # include_expsyms should be a list of space-separated symbols to be *always*
9697  # included in the symbol list
9698  include_expsyms=
9699  # exclude_expsyms can be an extended regexp of symbols to exclude
9700  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9701  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9702  # as well as any symbol that contains 'd'.
9703  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9704  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9705  # platforms (ab)use it in PIC code, but their linkers get confused if
9706  # the symbol is explicitly referenced.  Since portable code cannot
9707  # rely on this symbol name, it's probably fine to never include it in
9708  # preloaded symbol tables.
9709  # Exclude shared library initialization/finalization symbols.
9710  extract_expsyms_cmds=
9711
9712  case $host_os in
9713  cygwin* | mingw* | pw32* | cegcc*)
9714    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9715    # When not using gcc, we currently assume that we are using
9716    # Microsoft Visual C++.
9717    if test yes != "$GCC"; then
9718      with_gnu_ld=no
9719    fi
9720    ;;
9721  interix*)
9722    # we just hope/assume this is gcc and not c89 (= MSVC++)
9723    with_gnu_ld=yes
9724    ;;
9725  openbsd* | bitrig*)
9726    with_gnu_ld=no
9727    ;;
9728  linux* | k*bsd*-gnu | gnu*)
9729    link_all_deplibs=no
9730    ;;
9731  esac
9732
9733  ld_shlibs=yes
9734
9735  # On some targets, GNU ld is compatible enough with the native linker
9736  # that we're better off using the native interface for both.
9737  lt_use_gnu_ld_interface=no
9738  if test yes = "$with_gnu_ld"; then
9739    case $host_os in
9740      aix*)
9741	# The AIX port of GNU ld has always aspired to compatibility
9742	# with the native linker.  However, as the warning in the GNU ld
9743	# block says, versions before 2.19.5* couldn't really create working
9744	# shared libraries, regardless of the interface used.
9745	case `$LD -v 2>&1` in
9746	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9747	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9748	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9749	  *)
9750	    lt_use_gnu_ld_interface=yes
9751	    ;;
9752	esac
9753	;;
9754      *)
9755	lt_use_gnu_ld_interface=yes
9756	;;
9757    esac
9758  fi
9759
9760  if test yes = "$lt_use_gnu_ld_interface"; then
9761    # If archive_cmds runs LD, not CC, wlarc should be empty
9762    wlarc='$wl'
9763
9764    # Set some defaults for GNU ld with shared library support. These
9765    # are reset later if shared libraries are not supported. Putting them
9766    # here allows them to be overridden if necessary.
9767    runpath_var=LD_RUN_PATH
9768    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9769    export_dynamic_flag_spec='$wl--export-dynamic'
9770    # ancient GNU ld didn't support --whole-archive et. al.
9771    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9772      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9773    else
9774      whole_archive_flag_spec=
9775    fi
9776    supports_anon_versioning=no
9777    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9778      *GNU\ gold*) supports_anon_versioning=yes ;;
9779      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9780      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9781      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9782      *\ 2.11.*) ;; # other 2.11 versions
9783      *) supports_anon_versioning=yes ;;
9784    esac
9785
9786    # See if GNU ld supports shared libraries.
9787    case $host_os in
9788    aix[3-9]*)
9789      # On AIX/PPC, the GNU linker is very broken
9790      if test ia64 != "$host_cpu"; then
9791	ld_shlibs=no
9792	cat <<_LT_EOF 1>&2
9793
9794*** Warning: the GNU linker, at least up to release 2.19, is reported
9795*** to be unable to reliably create shared libraries on AIX.
9796*** Therefore, libtool is disabling shared libraries support.  If you
9797*** really care for shared libraries, you may want to install binutils
9798*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9799*** You will then need to restart the configuration process.
9800
9801_LT_EOF
9802      fi
9803      ;;
9804
9805    amigaos*)
9806      case $host_cpu in
9807      powerpc)
9808            # see comment about AmigaOS4 .so support
9809            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9810            archive_expsym_cmds=''
9811        ;;
9812      m68k)
9813            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)'
9814            hardcode_libdir_flag_spec='-L$libdir'
9815            hardcode_minus_L=yes
9816        ;;
9817      esac
9818      ;;
9819
9820    beos*)
9821      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9822	allow_undefined_flag=unsupported
9823	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9824	# support --undefined.  This deserves some investigation.  FIXME
9825	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9826      else
9827	ld_shlibs=no
9828      fi
9829      ;;
9830
9831    cygwin* | mingw* | pw32* | cegcc*)
9832      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9833      # as there is no search path for DLLs.
9834      hardcode_libdir_flag_spec='-L$libdir'
9835      export_dynamic_flag_spec='$wl--export-all-symbols'
9836      allow_undefined_flag=unsupported
9837      always_export_symbols=no
9838      enable_shared_with_static_runtimes=yes
9839      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'
9840      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9841
9842      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9843        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9844	# If the export-symbols file already is a .def file, use it as
9845	# is; otherwise, prepend EXPORTS...
9846	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9847          cp $export_symbols $output_objdir/$soname.def;
9848        else
9849          echo EXPORTS > $output_objdir/$soname.def;
9850          cat $export_symbols >> $output_objdir/$soname.def;
9851        fi~
9852        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9853      else
9854	ld_shlibs=no
9855      fi
9856      ;;
9857
9858    haiku*)
9859      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9860      link_all_deplibs=yes
9861      ;;
9862
9863    os2*)
9864      hardcode_libdir_flag_spec='-L$libdir'
9865      hardcode_minus_L=yes
9866      allow_undefined_flag=unsupported
9867      shrext_cmds=.dll
9868      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9869	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9870	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9871	$ECHO EXPORTS >> $output_objdir/$libname.def~
9872	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9873	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9874	emximp -o $lib $output_objdir/$libname.def'
9875      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9876	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9877	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9878	$ECHO EXPORTS >> $output_objdir/$libname.def~
9879	prefix_cmds="$SED"~
9880	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9881	  prefix_cmds="$prefix_cmds -e 1d";
9882	fi~
9883	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9884	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9885	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9886	emximp -o $lib $output_objdir/$libname.def'
9887      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9888      enable_shared_with_static_runtimes=yes
9889      ;;
9890
9891    interix[3-9]*)
9892      hardcode_direct=no
9893      hardcode_shlibpath_var=no
9894      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9895      export_dynamic_flag_spec='$wl-E'
9896      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9897      # Instead, shared libraries are loaded at an image base (0x10000000 by
9898      # default) and relocated if they conflict, which is a slow very memory
9899      # consuming and fragmenting process.  To avoid this, we pick a random,
9900      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9901      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9902      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9903      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'
9904      ;;
9905
9906    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9907      tmp_diet=no
9908      if test linux-dietlibc = "$host_os"; then
9909	case $cc_basename in
9910	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9911	esac
9912      fi
9913      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9914	 && test no = "$tmp_diet"
9915      then
9916	tmp_addflag=' $pic_flag'
9917	tmp_sharedflag='-shared'
9918	case $cc_basename,$host_cpu in
9919        pgcc*)				# Portland Group C compiler
9920	  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'
9921	  tmp_addflag=' $pic_flag'
9922	  ;;
9923	pgf77* | pgf90* | pgf95* | pgfortran*)
9924					# Portland Group f77 and f90 compilers
9925	  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'
9926	  tmp_addflag=' $pic_flag -Mnomain' ;;
9927	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9928	  tmp_addflag=' -i_dynamic' ;;
9929	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9930	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9931	ifc* | ifort*)			# Intel Fortran compiler
9932	  tmp_addflag=' -nofor_main' ;;
9933	lf95*)				# Lahey Fortran 8.1
9934	  whole_archive_flag_spec=
9935	  tmp_sharedflag='--shared' ;;
9936        nagfor*)                        # NAGFOR 5.3
9937          tmp_sharedflag='-Wl,-shared' ;;
9938	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9939	  tmp_sharedflag='-qmkshrobj'
9940	  tmp_addflag= ;;
9941	nvcc*)	# Cuda Compiler Driver 2.2
9942	  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'
9943	  compiler_needs_object=yes
9944	  ;;
9945	esac
9946	case `$CC -V 2>&1 | sed 5q` in
9947	*Sun\ C*)			# Sun C 5.9
9948	  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'
9949	  compiler_needs_object=yes
9950	  tmp_sharedflag='-G' ;;
9951	*Sun\ F*)			# Sun Fortran 8.3
9952	  tmp_sharedflag='-G' ;;
9953	esac
9954	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9955
9956        if test yes = "$supports_anon_versioning"; then
9957          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9958            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9959            echo "local: *; };" >> $output_objdir/$libname.ver~
9960            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9961        fi
9962
9963	case $cc_basename in
9964	tcc*)
9965	  export_dynamic_flag_spec='-rdynamic'
9966	  ;;
9967	xlf* | bgf* | bgxlf* | mpixlf*)
9968	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9969	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9970	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9971	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9972	  if test yes = "$supports_anon_versioning"; then
9973	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9974              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9975              echo "local: *; };" >> $output_objdir/$libname.ver~
9976              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9977	  fi
9978	  ;;
9979	esac
9980      else
9981        ld_shlibs=no
9982      fi
9983      ;;
9984
9985    netbsd* | netbsdelf*-gnu)
9986      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9987	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9988	wlarc=
9989      else
9990	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9991	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9992      fi
9993      ;;
9994
9995    solaris*)
9996      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9997	ld_shlibs=no
9998	cat <<_LT_EOF 1>&2
9999
10000*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10001*** create shared libraries on Solaris systems.  Therefore, libtool
10002*** is disabling shared libraries support.  We urge you to upgrade GNU
10003*** binutils to release 2.9.1 or newer.  Another option is to modify
10004*** your PATH or compiler configuration so that the native linker is
10005*** used, and then restart.
10006
10007_LT_EOF
10008      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10009	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10010	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10011      else
10012	ld_shlibs=no
10013      fi
10014      ;;
10015
10016    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10017      case `$LD -v 2>&1` in
10018        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10019	ld_shlibs=no
10020	cat <<_LT_EOF 1>&2
10021
10022*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10023*** reliably create shared libraries on SCO systems.  Therefore, libtool
10024*** is disabling shared libraries support.  We urge you to upgrade GNU
10025*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10026*** your PATH or compiler configuration so that the native linker is
10027*** used, and then restart.
10028
10029_LT_EOF
10030	;;
10031	*)
10032	  # For security reasons, it is highly recommended that you always
10033	  # use absolute paths for naming shared libraries, and exclude the
10034	  # DT_RUNPATH tag from executables and libraries.  But doing so
10035	  # requires that you compile everything twice, which is a pain.
10036	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10037	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10038	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10039	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10040	  else
10041	    ld_shlibs=no
10042	  fi
10043	;;
10044      esac
10045      ;;
10046
10047    sunos4*)
10048      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10049      wlarc=
10050      hardcode_direct=yes
10051      hardcode_shlibpath_var=no
10052      ;;
10053
10054    *)
10055      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10056	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10057	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10058      else
10059	ld_shlibs=no
10060      fi
10061      ;;
10062    esac
10063
10064    if test no = "$ld_shlibs"; then
10065      runpath_var=
10066      hardcode_libdir_flag_spec=
10067      export_dynamic_flag_spec=
10068      whole_archive_flag_spec=
10069    fi
10070  else
10071    # PORTME fill in a description of your system's linker (not GNU ld)
10072    case $host_os in
10073    aix3*)
10074      allow_undefined_flag=unsupported
10075      always_export_symbols=yes
10076      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'
10077      # Note: this linker hardcodes the directories in LIBPATH if there
10078      # are no directories specified by -L.
10079      hardcode_minus_L=yes
10080      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10081	# Neither direct hardcoding nor static linking is supported with a
10082	# broken collect2.
10083	hardcode_direct=unsupported
10084      fi
10085      ;;
10086
10087    aix[4-9]*)
10088      if test ia64 = "$host_cpu"; then
10089	# On IA64, the linker does run time linking by default, so we don't
10090	# have to do anything special.
10091	aix_use_runtimelinking=no
10092	exp_sym_flag='-Bexport'
10093	no_entry_flag=
10094      else
10095	# If we're using GNU nm, then we don't want the "-C" option.
10096	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10097	# Without the "-l" option, or with the "-B" option, AIX nm treats
10098	# weak defined symbols like other global defined symbols, whereas
10099	# GNU nm marks them as "W".
10100	# While the 'weak' keyword is ignored in the Export File, we need
10101	# it in the Import File for the 'aix-soname' feature, so we have
10102	# to replace the "-B" option with "-P" for AIX nm.
10103	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10104	  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'
10105	else
10106	  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'
10107	fi
10108	aix_use_runtimelinking=no
10109
10110	# Test if we are trying to use run time linking or normal
10111	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10112	# have runtime linking enabled, and use it for executables.
10113	# For shared libraries, we enable/disable runtime linking
10114	# depending on the kind of the shared library created -
10115	# when "with_aix_soname,aix_use_runtimelinking" is:
10116	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10117	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10118	#            lib.a           static archive
10119	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10120	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10121	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10122	#            lib.a(lib.so.V) shared, rtl:no
10123	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10124	#            lib.a           static archive
10125	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10126	  for ld_flag in $LDFLAGS; do
10127	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10128	    aix_use_runtimelinking=yes
10129	    break
10130	  fi
10131	  done
10132	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10133	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10134	    # so we don't have lib.a shared libs to link our executables.
10135	    # We have to force runtime linking in this case.
10136	    aix_use_runtimelinking=yes
10137	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10138	  fi
10139	  ;;
10140	esac
10141
10142	exp_sym_flag='-bexport'
10143	no_entry_flag='-bnoentry'
10144      fi
10145
10146      # When large executables or shared objects are built, AIX ld can
10147      # have problems creating the table of contents.  If linking a library
10148      # or program results in "error TOC overflow" add -mminimal-toc to
10149      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10150      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10151
10152      archive_cmds=''
10153      hardcode_direct=yes
10154      hardcode_direct_absolute=yes
10155      hardcode_libdir_separator=':'
10156      link_all_deplibs=yes
10157      file_list_spec='$wl-f,'
10158      case $with_aix_soname,$aix_use_runtimelinking in
10159      aix,*) ;; # traditional, no import file
10160      svr4,* | *,yes) # use import file
10161	# The Import File defines what to hardcode.
10162	hardcode_direct=no
10163	hardcode_direct_absolute=no
10164	;;
10165      esac
10166
10167      if test yes = "$GCC"; then
10168	case $host_os in aix4.[012]|aix4.[012].*)
10169	# We only want to do this on AIX 4.2 and lower, the check
10170	# below for broken collect2 doesn't work under 4.3+
10171	  collect2name=`$CC -print-prog-name=collect2`
10172	  if test -f "$collect2name" &&
10173	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10174	  then
10175	  # We have reworked collect2
10176	  :
10177	  else
10178	  # We have old collect2
10179	  hardcode_direct=unsupported
10180	  # It fails to find uninstalled libraries when the uninstalled
10181	  # path is not listed in the libpath.  Setting hardcode_minus_L
10182	  # to unsupported forces relinking
10183	  hardcode_minus_L=yes
10184	  hardcode_libdir_flag_spec='-L$libdir'
10185	  hardcode_libdir_separator=
10186	  fi
10187	  ;;
10188	esac
10189	shared_flag='-shared'
10190	if test yes = "$aix_use_runtimelinking"; then
10191	  shared_flag="$shared_flag "'$wl-G'
10192	fi
10193	# Need to ensure runtime linking is disabled for the traditional
10194	# shared library, or the linker may eventually find shared libraries
10195	# /with/ Import File - we do not want to mix them.
10196	shared_flag_aix='-shared'
10197	shared_flag_svr4='-shared $wl-G'
10198      else
10199	# not using gcc
10200	if test ia64 = "$host_cpu"; then
10201	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10202	# chokes on -Wl,-G. The following line is correct:
10203	  shared_flag='-G'
10204	else
10205	  if test yes = "$aix_use_runtimelinking"; then
10206	    shared_flag='$wl-G'
10207	  else
10208	    shared_flag='$wl-bM:SRE'
10209	  fi
10210	  shared_flag_aix='$wl-bM:SRE'
10211	  shared_flag_svr4='$wl-G'
10212	fi
10213      fi
10214
10215      export_dynamic_flag_spec='$wl-bexpall'
10216      # It seems that -bexpall does not export symbols beginning with
10217      # underscore (_), so it is better to generate a list of symbols to export.
10218      always_export_symbols=yes
10219      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10220	# Warning - without using the other runtime loading flags (-brtl),
10221	# -berok will link without error, but may produce a broken library.
10222	allow_undefined_flag='-berok'
10223        # Determine the default libpath from the value encoded in an
10224        # empty executable.
10225        if test set = "${lt_cv_aix_libpath+set}"; then
10226  aix_libpath=$lt_cv_aix_libpath
10227else
10228  if ${lt_cv_aix_libpath_+:} false; then :
10229  $as_echo_n "(cached) " >&6
10230else
10231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10232/* end confdefs.h.  */
10233
10234int
10235main ()
10236{
10237
10238  ;
10239  return 0;
10240}
10241_ACEOF
10242if ac_fn_c_try_link "$LINENO"; then :
10243
10244  lt_aix_libpath_sed='
10245      /Import File Strings/,/^$/ {
10246	  /^0/ {
10247	      s/^0  *\([^ ]*\) *$/\1/
10248	      p
10249	  }
10250      }'
10251  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10252  # Check for a 64-bit object if we didn't find anything.
10253  if test -z "$lt_cv_aix_libpath_"; then
10254    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10255  fi
10256fi
10257rm -f core conftest.err conftest.$ac_objext \
10258    conftest$ac_exeext conftest.$ac_ext
10259  if test -z "$lt_cv_aix_libpath_"; then
10260    lt_cv_aix_libpath_=/usr/lib:/lib
10261  fi
10262
10263fi
10264
10265  aix_libpath=$lt_cv_aix_libpath_
10266fi
10267
10268        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10269        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
10270      else
10271	if test ia64 = "$host_cpu"; then
10272	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10273	  allow_undefined_flag="-z nodefs"
10274	  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"
10275	else
10276	 # Determine the default libpath from the value encoded in an
10277	 # empty executable.
10278	 if test set = "${lt_cv_aix_libpath+set}"; then
10279  aix_libpath=$lt_cv_aix_libpath
10280else
10281  if ${lt_cv_aix_libpath_+:} false; then :
10282  $as_echo_n "(cached) " >&6
10283else
10284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285/* end confdefs.h.  */
10286
10287int
10288main ()
10289{
10290
10291  ;
10292  return 0;
10293}
10294_ACEOF
10295if ac_fn_c_try_link "$LINENO"; then :
10296
10297  lt_aix_libpath_sed='
10298      /Import File Strings/,/^$/ {
10299	  /^0/ {
10300	      s/^0  *\([^ ]*\) *$/\1/
10301	      p
10302	  }
10303      }'
10304  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10305  # Check for a 64-bit object if we didn't find anything.
10306  if test -z "$lt_cv_aix_libpath_"; then
10307    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10308  fi
10309fi
10310rm -f core conftest.err conftest.$ac_objext \
10311    conftest$ac_exeext conftest.$ac_ext
10312  if test -z "$lt_cv_aix_libpath_"; then
10313    lt_cv_aix_libpath_=/usr/lib:/lib
10314  fi
10315
10316fi
10317
10318  aix_libpath=$lt_cv_aix_libpath_
10319fi
10320
10321	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10322	  # Warning - without using the other run time loading flags,
10323	  # -berok will link without error, but may produce a broken library.
10324	  no_undefined_flag=' $wl-bernotok'
10325	  allow_undefined_flag=' $wl-berok'
10326	  if test yes = "$with_gnu_ld"; then
10327	    # We only use this code for GNU lds that support --whole-archive.
10328	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10329	  else
10330	    # Exported symbols can be pulled into shared objects from archives
10331	    whole_archive_flag_spec='$convenience'
10332	  fi
10333	  archive_cmds_need_lc=yes
10334	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10335	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10336	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10337	  if test svr4 != "$with_aix_soname"; then
10338	    # This is similar to how AIX traditionally builds its shared libraries.
10339	    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'
10340	  fi
10341	  if test aix != "$with_aix_soname"; then
10342	    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'
10343	  else
10344	    # used by -dlpreopen to get the symbols
10345	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10346	  fi
10347	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10348	fi
10349      fi
10350      ;;
10351
10352    amigaos*)
10353      case $host_cpu in
10354      powerpc)
10355            # see comment about AmigaOS4 .so support
10356            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10357            archive_expsym_cmds=''
10358        ;;
10359      m68k)
10360            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)'
10361            hardcode_libdir_flag_spec='-L$libdir'
10362            hardcode_minus_L=yes
10363        ;;
10364      esac
10365      ;;
10366
10367    bsdi[45]*)
10368      export_dynamic_flag_spec=-rdynamic
10369      ;;
10370
10371    cygwin* | mingw* | pw32* | cegcc*)
10372      # When not using gcc, we currently assume that we are using
10373      # Microsoft Visual C++.
10374      # hardcode_libdir_flag_spec is actually meaningless, as there is
10375      # no search path for DLLs.
10376      case $cc_basename in
10377      cl*)
10378	# Native MSVC
10379	hardcode_libdir_flag_spec=' '
10380	allow_undefined_flag=unsupported
10381	always_export_symbols=yes
10382	file_list_spec='@'
10383	# Tell ltmain to make .lib files, not .a files.
10384	libext=lib
10385	# Tell ltmain to make .dll files, not .so files.
10386	shrext_cmds=.dll
10387	# FIXME: Setting linknames here is a bad hack.
10388	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10389	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10390            cp "$export_symbols" "$output_objdir/$soname.def";
10391            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10392          else
10393            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10394          fi~
10395          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10396          linknames='
10397	# The linker will not automatically build a static lib if we build a DLL.
10398	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10399	enable_shared_with_static_runtimes=yes
10400	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10401	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10402	# Don't use ranlib
10403	old_postinstall_cmds='chmod 644 $oldlib'
10404	postlink_cmds='lt_outputfile="@OUTPUT@"~
10405          lt_tool_outputfile="@TOOL_OUTPUT@"~
10406          case $lt_outputfile in
10407            *.exe|*.EXE) ;;
10408            *)
10409              lt_outputfile=$lt_outputfile.exe
10410              lt_tool_outputfile=$lt_tool_outputfile.exe
10411              ;;
10412          esac~
10413          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10414            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10415            $RM "$lt_outputfile.manifest";
10416          fi'
10417	;;
10418      *)
10419	# Assume MSVC wrapper
10420	hardcode_libdir_flag_spec=' '
10421	allow_undefined_flag=unsupported
10422	# Tell ltmain to make .lib files, not .a files.
10423	libext=lib
10424	# Tell ltmain to make .dll files, not .so files.
10425	shrext_cmds=.dll
10426	# FIXME: Setting linknames here is a bad hack.
10427	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10428	# The linker will automatically build a .lib file if we build a DLL.
10429	old_archive_from_new_cmds='true'
10430	# FIXME: Should let the user specify the lib program.
10431	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10432	enable_shared_with_static_runtimes=yes
10433	;;
10434      esac
10435      ;;
10436
10437    darwin* | rhapsody*)
10438
10439
10440  archive_cmds_need_lc=no
10441  hardcode_direct=no
10442  hardcode_automatic=yes
10443  hardcode_shlibpath_var=unsupported
10444  if test yes = "$lt_cv_ld_force_load"; then
10445    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\"`'
10446
10447  else
10448    whole_archive_flag_spec=''
10449  fi
10450  link_all_deplibs=yes
10451  allow_undefined_flag=$_lt_dar_allow_undefined
10452  case $cc_basename in
10453     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10454     *) _lt_dar_can_shared=$GCC ;;
10455  esac
10456  if test yes = "$_lt_dar_can_shared"; then
10457    output_verbose_link_cmd=func_echo_all
10458    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10459    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10460    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"
10461    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"
10462
10463  else
10464  ld_shlibs=no
10465  fi
10466
10467      ;;
10468
10469    dgux*)
10470      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10471      hardcode_libdir_flag_spec='-L$libdir'
10472      hardcode_shlibpath_var=no
10473      ;;
10474
10475    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10476    # support.  Future versions do this automatically, but an explicit c++rt0.o
10477    # does not break anything, and helps significantly (at the cost of a little
10478    # extra space).
10479    freebsd2.2*)
10480      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10481      hardcode_libdir_flag_spec='-R$libdir'
10482      hardcode_direct=yes
10483      hardcode_shlibpath_var=no
10484      ;;
10485
10486    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10487    freebsd2.*)
10488      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10489      hardcode_direct=yes
10490      hardcode_minus_L=yes
10491      hardcode_shlibpath_var=no
10492      ;;
10493
10494    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10495    freebsd* | dragonfly*)
10496      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10497      hardcode_libdir_flag_spec='-R$libdir'
10498      hardcode_direct=yes
10499      hardcode_shlibpath_var=no
10500      ;;
10501
10502    hpux9*)
10503      if test yes = "$GCC"; then
10504	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'
10505      else
10506	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'
10507      fi
10508      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10509      hardcode_libdir_separator=:
10510      hardcode_direct=yes
10511
10512      # hardcode_minus_L: Not really in the search PATH,
10513      # but as the default location of the library.
10514      hardcode_minus_L=yes
10515      export_dynamic_flag_spec='$wl-E'
10516      ;;
10517
10518    hpux10*)
10519      if test yes,no = "$GCC,$with_gnu_ld"; then
10520	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10521      else
10522	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10523      fi
10524      if test no = "$with_gnu_ld"; then
10525	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10526	hardcode_libdir_separator=:
10527	hardcode_direct=yes
10528	hardcode_direct_absolute=yes
10529	export_dynamic_flag_spec='$wl-E'
10530	# hardcode_minus_L: Not really in the search PATH,
10531	# but as the default location of the library.
10532	hardcode_minus_L=yes
10533      fi
10534      ;;
10535
10536    hpux11*)
10537      if test yes,no = "$GCC,$with_gnu_ld"; then
10538	case $host_cpu in
10539	hppa*64*)
10540	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10541	  ;;
10542	ia64*)
10543	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10544	  ;;
10545	*)
10546	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10547	  ;;
10548	esac
10549      else
10550	case $host_cpu in
10551	hppa*64*)
10552	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10553	  ;;
10554	ia64*)
10555	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10556	  ;;
10557	*)
10558
10559	  # Older versions of the 11.00 compiler do not understand -b yet
10560	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10561	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10562$as_echo_n "checking if $CC understands -b... " >&6; }
10563if ${lt_cv_prog_compiler__b+:} false; then :
10564  $as_echo_n "(cached) " >&6
10565else
10566  lt_cv_prog_compiler__b=no
10567   save_LDFLAGS=$LDFLAGS
10568   LDFLAGS="$LDFLAGS -b"
10569   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10570   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10571     # The linker can only warn and ignore the option if not recognized
10572     # So say no if there are warnings
10573     if test -s conftest.err; then
10574       # Append any errors to the config.log.
10575       cat conftest.err 1>&5
10576       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10577       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10578       if diff conftest.exp conftest.er2 >/dev/null; then
10579         lt_cv_prog_compiler__b=yes
10580       fi
10581     else
10582       lt_cv_prog_compiler__b=yes
10583     fi
10584   fi
10585   $RM -r conftest*
10586   LDFLAGS=$save_LDFLAGS
10587
10588fi
10589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10590$as_echo "$lt_cv_prog_compiler__b" >&6; }
10591
10592if test yes = "$lt_cv_prog_compiler__b"; then
10593    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10594else
10595    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10596fi
10597
10598	  ;;
10599	esac
10600      fi
10601      if test no = "$with_gnu_ld"; then
10602	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10603	hardcode_libdir_separator=:
10604
10605	case $host_cpu in
10606	hppa*64*|ia64*)
10607	  hardcode_direct=no
10608	  hardcode_shlibpath_var=no
10609	  ;;
10610	*)
10611	  hardcode_direct=yes
10612	  hardcode_direct_absolute=yes
10613	  export_dynamic_flag_spec='$wl-E'
10614
10615	  # hardcode_minus_L: Not really in the search PATH,
10616	  # but as the default location of the library.
10617	  hardcode_minus_L=yes
10618	  ;;
10619	esac
10620      fi
10621      ;;
10622
10623    irix5* | irix6* | nonstopux*)
10624      if test yes = "$GCC"; then
10625	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'
10626	# Try to use the -exported_symbol ld option, if it does not
10627	# work, assume that -exports_file does not work either and
10628	# implicitly export all symbols.
10629	# This should be the same for all languages, so no per-tag cache variable.
10630	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10631$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10632if ${lt_cv_irix_exported_symbol+:} false; then :
10633  $as_echo_n "(cached) " >&6
10634else
10635  save_LDFLAGS=$LDFLAGS
10636	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10637	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10638/* end confdefs.h.  */
10639int foo (void) { return 0; }
10640_ACEOF
10641if ac_fn_c_try_link "$LINENO"; then :
10642  lt_cv_irix_exported_symbol=yes
10643else
10644  lt_cv_irix_exported_symbol=no
10645fi
10646rm -f core conftest.err conftest.$ac_objext \
10647    conftest$ac_exeext conftest.$ac_ext
10648           LDFLAGS=$save_LDFLAGS
10649fi
10650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10651$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10652	if test yes = "$lt_cv_irix_exported_symbol"; then
10653          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'
10654	fi
10655	link_all_deplibs=no
10656      else
10657	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'
10658	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'
10659      fi
10660      archive_cmds_need_lc='no'
10661      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10662      hardcode_libdir_separator=:
10663      inherit_rpath=yes
10664      link_all_deplibs=yes
10665      ;;
10666
10667    linux*)
10668      case $cc_basename in
10669      tcc*)
10670	# Fabrice Bellard et al's Tiny C Compiler
10671	ld_shlibs=yes
10672	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10673	;;
10674      esac
10675      ;;
10676
10677    netbsd* | netbsdelf*-gnu)
10678      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10679	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10680      else
10681	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10682      fi
10683      hardcode_libdir_flag_spec='-R$libdir'
10684      hardcode_direct=yes
10685      hardcode_shlibpath_var=no
10686      ;;
10687
10688    newsos6)
10689      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10690      hardcode_direct=yes
10691      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10692      hardcode_libdir_separator=:
10693      hardcode_shlibpath_var=no
10694      ;;
10695
10696    *nto* | *qnx*)
10697      ;;
10698
10699    openbsd* | bitrig*)
10700      if test -f /usr/libexec/ld.so; then
10701	hardcode_direct=yes
10702	hardcode_shlibpath_var=no
10703	hardcode_direct_absolute=yes
10704	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10705	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10706	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10707	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10708	  export_dynamic_flag_spec='$wl-E'
10709	else
10710	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10711	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10712	fi
10713      else
10714	ld_shlibs=no
10715      fi
10716      ;;
10717
10718    os2*)
10719      hardcode_libdir_flag_spec='-L$libdir'
10720      hardcode_minus_L=yes
10721      allow_undefined_flag=unsupported
10722      shrext_cmds=.dll
10723      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10724	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10725	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10726	$ECHO EXPORTS >> $output_objdir/$libname.def~
10727	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10728	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10729	emximp -o $lib $output_objdir/$libname.def'
10730      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10731	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10732	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10733	$ECHO EXPORTS >> $output_objdir/$libname.def~
10734	prefix_cmds="$SED"~
10735	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10736	  prefix_cmds="$prefix_cmds -e 1d";
10737	fi~
10738	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10739	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10740	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10741	emximp -o $lib $output_objdir/$libname.def'
10742      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10743      enable_shared_with_static_runtimes=yes
10744      ;;
10745
10746    osf3*)
10747      if test yes = "$GCC"; then
10748	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10749	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'
10750      else
10751	allow_undefined_flag=' -expect_unresolved \*'
10752	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'
10753      fi
10754      archive_cmds_need_lc='no'
10755      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10756      hardcode_libdir_separator=:
10757      ;;
10758
10759    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10760      if test yes = "$GCC"; then
10761	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10762	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'
10763	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10764      else
10765	allow_undefined_flag=' -expect_unresolved \*'
10766	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'
10767	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~
10768          $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'
10769
10770	# Both c and cxx compiler support -rpath directly
10771	hardcode_libdir_flag_spec='-rpath $libdir'
10772      fi
10773      archive_cmds_need_lc='no'
10774      hardcode_libdir_separator=:
10775      ;;
10776
10777    solaris*)
10778      no_undefined_flag=' -z defs'
10779      if test yes = "$GCC"; then
10780	wlarc='$wl'
10781	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10782	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10783          $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'
10784      else
10785	case `$CC -V 2>&1` in
10786	*"Compilers 5.0"*)
10787	  wlarc=''
10788	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10789	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10790            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10791	  ;;
10792	*)
10793	  wlarc='$wl'
10794	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10795	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10796            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10797	  ;;
10798	esac
10799      fi
10800      hardcode_libdir_flag_spec='-R$libdir'
10801      hardcode_shlibpath_var=no
10802      case $host_os in
10803      solaris2.[0-5] | solaris2.[0-5].*) ;;
10804      *)
10805	# The compiler driver will combine and reorder linker options,
10806	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10807	# but is careful enough not to reorder.
10808	# Supported since Solaris 2.6 (maybe 2.5.1?)
10809	if test yes = "$GCC"; then
10810	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10811	else
10812	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10813	fi
10814	;;
10815      esac
10816      link_all_deplibs=yes
10817      ;;
10818
10819    sunos4*)
10820      if test sequent = "$host_vendor"; then
10821	# Use $CC to link under sequent, because it throws in some extra .o
10822	# files that make .init and .fini sections work.
10823	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10824      else
10825	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10826      fi
10827      hardcode_libdir_flag_spec='-L$libdir'
10828      hardcode_direct=yes
10829      hardcode_minus_L=yes
10830      hardcode_shlibpath_var=no
10831      ;;
10832
10833    sysv4)
10834      case $host_vendor in
10835	sni)
10836	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10837	  hardcode_direct=yes # is this really true???
10838	;;
10839	siemens)
10840	  ## LD is ld it makes a PLAMLIB
10841	  ## CC just makes a GrossModule.
10842	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10843	  reload_cmds='$CC -r -o $output$reload_objs'
10844	  hardcode_direct=no
10845        ;;
10846	motorola)
10847	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10848	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10849	;;
10850      esac
10851      runpath_var='LD_RUN_PATH'
10852      hardcode_shlibpath_var=no
10853      ;;
10854
10855    sysv4.3*)
10856      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10857      hardcode_shlibpath_var=no
10858      export_dynamic_flag_spec='-Bexport'
10859      ;;
10860
10861    sysv4*MP*)
10862      if test -d /usr/nec; then
10863	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10864	hardcode_shlibpath_var=no
10865	runpath_var=LD_RUN_PATH
10866	hardcode_runpath_var=yes
10867	ld_shlibs=yes
10868      fi
10869      ;;
10870
10871    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10872      no_undefined_flag='$wl-z,text'
10873      archive_cmds_need_lc=no
10874      hardcode_shlibpath_var=no
10875      runpath_var='LD_RUN_PATH'
10876
10877      if test yes = "$GCC"; then
10878	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10879	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10880      else
10881	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10882	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10883      fi
10884      ;;
10885
10886    sysv5* | sco3.2v5* | sco5v6*)
10887      # Note: We CANNOT use -z defs as we might desire, because we do not
10888      # link with -lc, and that would cause any symbols used from libc to
10889      # always be unresolved, which means just about no library would
10890      # ever link correctly.  If we're not using GNU ld we use -z text
10891      # though, which does catch some bad symbols but isn't as heavy-handed
10892      # as -z defs.
10893      no_undefined_flag='$wl-z,text'
10894      allow_undefined_flag='$wl-z,nodefs'
10895      archive_cmds_need_lc=no
10896      hardcode_shlibpath_var=no
10897      hardcode_libdir_flag_spec='$wl-R,$libdir'
10898      hardcode_libdir_separator=':'
10899      link_all_deplibs=yes
10900      export_dynamic_flag_spec='$wl-Bexport'
10901      runpath_var='LD_RUN_PATH'
10902
10903      if test yes = "$GCC"; then
10904	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10905	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10906      else
10907	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10908	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10909      fi
10910      ;;
10911
10912    uts4*)
10913      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10914      hardcode_libdir_flag_spec='-L$libdir'
10915      hardcode_shlibpath_var=no
10916      ;;
10917
10918    *)
10919      ld_shlibs=no
10920      ;;
10921    esac
10922
10923    if test sni = "$host_vendor"; then
10924      case $host in
10925      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10926	export_dynamic_flag_spec='$wl-Blargedynsym'
10927	;;
10928      esac
10929    fi
10930  fi
10931
10932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10933$as_echo "$ld_shlibs" >&6; }
10934test no = "$ld_shlibs" && can_build_shared=no
10935
10936with_gnu_ld=$with_gnu_ld
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952#
10953# Do we need to explicitly link libc?
10954#
10955case "x$archive_cmds_need_lc" in
10956x|xyes)
10957  # Assume -lc should be added
10958  archive_cmds_need_lc=yes
10959
10960  if test yes,yes = "$GCC,$enable_shared"; then
10961    case $archive_cmds in
10962    *'~'*)
10963      # FIXME: we may have to deal with multi-command sequences.
10964      ;;
10965    '$CC '*)
10966      # Test whether the compiler implicitly links with -lc since on some
10967      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10968      # to ld, don't add -lc before -lgcc.
10969      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10970$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10971if ${lt_cv_archive_cmds_need_lc+:} false; then :
10972  $as_echo_n "(cached) " >&6
10973else
10974  $RM conftest*
10975	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10976
10977	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10978  (eval $ac_compile) 2>&5
10979  ac_status=$?
10980  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10981  test $ac_status = 0; } 2>conftest.err; then
10982	  soname=conftest
10983	  lib=conftest
10984	  libobjs=conftest.$ac_objext
10985	  deplibs=
10986	  wl=$lt_prog_compiler_wl
10987	  pic_flag=$lt_prog_compiler_pic
10988	  compiler_flags=-v
10989	  linker_flags=-v
10990	  verstring=
10991	  output_objdir=.
10992	  libname=conftest
10993	  lt_save_allow_undefined_flag=$allow_undefined_flag
10994	  allow_undefined_flag=
10995	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10996  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10997  ac_status=$?
10998  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10999  test $ac_status = 0; }
11000	  then
11001	    lt_cv_archive_cmds_need_lc=no
11002	  else
11003	    lt_cv_archive_cmds_need_lc=yes
11004	  fi
11005	  allow_undefined_flag=$lt_save_allow_undefined_flag
11006	else
11007	  cat conftest.err 1>&5
11008	fi
11009	$RM conftest*
11010
11011fi
11012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11013$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11014      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11015      ;;
11016    esac
11017  fi
11018  ;;
11019esac
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11173$as_echo_n "checking dynamic linker characteristics... " >&6; }
11174
11175if test yes = "$GCC"; then
11176  case $host_os in
11177    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11178    *) lt_awk_arg='/^libraries:/' ;;
11179  esac
11180  case $host_os in
11181    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11182    *) lt_sed_strip_eq='s|=/|/|g' ;;
11183  esac
11184  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11185  case $lt_search_path_spec in
11186  *\;*)
11187    # if the path contains ";" then we assume it to be the separator
11188    # otherwise default to the standard path separator (i.e. ":") - it is
11189    # assumed that no part of a normal pathname contains ";" but that should
11190    # okay in the real world where ";" in dirpaths is itself problematic.
11191    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11192    ;;
11193  *)
11194    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11195    ;;
11196  esac
11197  # Ok, now we have the path, separated by spaces, we can step through it
11198  # and add multilib dir if necessary...
11199  lt_tmp_lt_search_path_spec=
11200  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11201  # ...but if some path component already ends with the multilib dir we assume
11202  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11203  case "$lt_multi_os_dir; $lt_search_path_spec " in
11204  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11205    lt_multi_os_dir=
11206    ;;
11207  esac
11208  for lt_sys_path in $lt_search_path_spec; do
11209    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11210      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11211    elif test -n "$lt_multi_os_dir"; then
11212      test -d "$lt_sys_path" && \
11213	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11214    fi
11215  done
11216  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11217BEGIN {RS = " "; FS = "/|\n";} {
11218  lt_foo = "";
11219  lt_count = 0;
11220  for (lt_i = NF; lt_i > 0; lt_i--) {
11221    if ($lt_i != "" && $lt_i != ".") {
11222      if ($lt_i == "..") {
11223        lt_count++;
11224      } else {
11225        if (lt_count == 0) {
11226          lt_foo = "/" $lt_i lt_foo;
11227        } else {
11228          lt_count--;
11229        }
11230      }
11231    }
11232  }
11233  if (lt_foo != "") { lt_freq[lt_foo]++; }
11234  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11235}'`
11236  # AWK program above erroneously prepends '/' to C:/dos/paths
11237  # for these hosts.
11238  case $host_os in
11239    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11240      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11241  esac
11242  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11243else
11244  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11245fi
11246library_names_spec=
11247libname_spec='lib$name'
11248soname_spec=
11249shrext_cmds=.so
11250postinstall_cmds=
11251postuninstall_cmds=
11252finish_cmds=
11253finish_eval=
11254shlibpath_var=
11255shlibpath_overrides_runpath=unknown
11256version_type=none
11257dynamic_linker="$host_os ld.so"
11258sys_lib_dlsearch_path_spec="/lib /usr/lib"
11259need_lib_prefix=unknown
11260hardcode_into_libs=no
11261
11262# when you set need_version to no, make sure it does not cause -set_version
11263# flags to be left without arguments
11264need_version=unknown
11265
11266
11267
11268case $host_os in
11269aix3*)
11270  version_type=linux # correct to gnu/linux during the next big refactor
11271  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11272  shlibpath_var=LIBPATH
11273
11274  # AIX 3 has no versioning support, so we append a major version to the name.
11275  soname_spec='$libname$release$shared_ext$major'
11276  ;;
11277
11278aix[4-9]*)
11279  version_type=linux # correct to gnu/linux during the next big refactor
11280  need_lib_prefix=no
11281  need_version=no
11282  hardcode_into_libs=yes
11283  if test ia64 = "$host_cpu"; then
11284    # AIX 5 supports IA64
11285    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11286    shlibpath_var=LD_LIBRARY_PATH
11287  else
11288    # With GCC up to 2.95.x, collect2 would create an import file
11289    # for dependence libraries.  The import file would start with
11290    # the line '#! .'.  This would cause the generated library to
11291    # depend on '.', always an invalid library.  This was fixed in
11292    # development snapshots of GCC prior to 3.0.
11293    case $host_os in
11294      aix4 | aix4.[01] | aix4.[01].*)
11295      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11296	   echo ' yes '
11297	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11298	:
11299      else
11300	can_build_shared=no
11301      fi
11302      ;;
11303    esac
11304    # Using Import Files as archive members, it is possible to support
11305    # filename-based versioning of shared library archives on AIX. While
11306    # this would work for both with and without runtime linking, it will
11307    # prevent static linking of such archives. So we do filename-based
11308    # shared library versioning with .so extension only, which is used
11309    # when both runtime linking and shared linking is enabled.
11310    # Unfortunately, runtime linking may impact performance, so we do
11311    # not want this to be the default eventually. Also, we use the
11312    # versioned .so libs for executables only if there is the -brtl
11313    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11314    # To allow for filename-based versioning support, we need to create
11315    # libNAME.so.V as an archive file, containing:
11316    # *) an Import File, referring to the versioned filename of the
11317    #    archive as well as the shared archive member, telling the
11318    #    bitwidth (32 or 64) of that shared object, and providing the
11319    #    list of exported symbols of that shared object, eventually
11320    #    decorated with the 'weak' keyword
11321    # *) the shared object with the F_LOADONLY flag set, to really avoid
11322    #    it being seen by the linker.
11323    # At run time we better use the real file rather than another symlink,
11324    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11325
11326    case $with_aix_soname,$aix_use_runtimelinking in
11327    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11328    # soname into executable. Probably we can add versioning support to
11329    # collect2, so additional links can be useful in future.
11330    aix,yes) # traditional libtool
11331      dynamic_linker='AIX unversionable lib.so'
11332      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11333      # instead of lib<name>.a to let people know that these are not
11334      # typical AIX shared libraries.
11335      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11336      ;;
11337    aix,no) # traditional AIX only
11338      dynamic_linker='AIX lib.a(lib.so.V)'
11339      # We preserve .a as extension for shared libraries through AIX4.2
11340      # and later when we are not doing run time linking.
11341      library_names_spec='$libname$release.a $libname.a'
11342      soname_spec='$libname$release$shared_ext$major'
11343      ;;
11344    svr4,*) # full svr4 only
11345      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11346      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11347      # We do not specify a path in Import Files, so LIBPATH fires.
11348      shlibpath_overrides_runpath=yes
11349      ;;
11350    *,yes) # both, prefer svr4
11351      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11352      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11353      # unpreferred sharedlib libNAME.a needs extra handling
11354      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"'
11355      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"'
11356      # We do not specify a path in Import Files, so LIBPATH fires.
11357      shlibpath_overrides_runpath=yes
11358      ;;
11359    *,no) # both, prefer aix
11360      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11361      library_names_spec='$libname$release.a $libname.a'
11362      soname_spec='$libname$release$shared_ext$major'
11363      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11364      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)'
11365      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"'
11366      ;;
11367    esac
11368    shlibpath_var=LIBPATH
11369  fi
11370  ;;
11371
11372amigaos*)
11373  case $host_cpu in
11374  powerpc)
11375    # Since July 2007 AmigaOS4 officially supports .so libraries.
11376    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11377    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11378    ;;
11379  m68k)
11380    library_names_spec='$libname.ixlibrary $libname.a'
11381    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11382    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'
11383    ;;
11384  esac
11385  ;;
11386
11387beos*)
11388  library_names_spec='$libname$shared_ext'
11389  dynamic_linker="$host_os ld.so"
11390  shlibpath_var=LIBRARY_PATH
11391  ;;
11392
11393bsdi[45]*)
11394  version_type=linux # correct to gnu/linux during the next big refactor
11395  need_version=no
11396  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11397  soname_spec='$libname$release$shared_ext$major'
11398  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11399  shlibpath_var=LD_LIBRARY_PATH
11400  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11401  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11402  # the default ld.so.conf also contains /usr/contrib/lib and
11403  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11404  # libtool to hard-code these into programs
11405  ;;
11406
11407cygwin* | mingw* | pw32* | cegcc*)
11408  version_type=windows
11409  shrext_cmds=.dll
11410  need_version=no
11411  need_lib_prefix=no
11412
11413  case $GCC,$cc_basename in
11414  yes,*)
11415    # gcc
11416    library_names_spec='$libname.dll.a'
11417    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11418    postinstall_cmds='base_file=`basename \$file`~
11419      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11420      dldir=$destdir/`dirname \$dlpath`~
11421      test -d \$dldir || mkdir -p \$dldir~
11422      $install_prog $dir/$dlname \$dldir/$dlname~
11423      chmod a+x \$dldir/$dlname~
11424      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11425        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11426      fi'
11427    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11428      dlpath=$dir/\$dldll~
11429       $RM \$dlpath'
11430    shlibpath_overrides_runpath=yes
11431
11432    case $host_os in
11433    cygwin*)
11434      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11435      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11436
11437      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11438      ;;
11439    mingw* | cegcc*)
11440      # MinGW DLLs use traditional 'lib' prefix
11441      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11442      ;;
11443    pw32*)
11444      # pw32 DLLs use 'pw' prefix rather than 'lib'
11445      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11446      ;;
11447    esac
11448    dynamic_linker='Win32 ld.exe'
11449    ;;
11450
11451  *,cl*)
11452    # Native MSVC
11453    libname_spec='$name'
11454    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11455    library_names_spec='$libname.dll.lib'
11456
11457    case $build_os in
11458    mingw*)
11459      sys_lib_search_path_spec=
11460      lt_save_ifs=$IFS
11461      IFS=';'
11462      for lt_path in $LIB
11463      do
11464        IFS=$lt_save_ifs
11465        # Let DOS variable expansion print the short 8.3 style file name.
11466        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11467        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11468      done
11469      IFS=$lt_save_ifs
11470      # Convert to MSYS style.
11471      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11472      ;;
11473    cygwin*)
11474      # Convert to unix form, then to dos form, then back to unix form
11475      # but this time dos style (no spaces!) so that the unix form looks
11476      # like /cygdrive/c/PROGRA~1:/cygdr...
11477      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11478      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11479      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11480      ;;
11481    *)
11482      sys_lib_search_path_spec=$LIB
11483      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11484        # It is most probably a Windows format PATH.
11485        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11486      else
11487        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11488      fi
11489      # FIXME: find the short name or the path components, as spaces are
11490      # common. (e.g. "Program Files" -> "PROGRA~1")
11491      ;;
11492    esac
11493
11494    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11495    postinstall_cmds='base_file=`basename \$file`~
11496      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11497      dldir=$destdir/`dirname \$dlpath`~
11498      test -d \$dldir || mkdir -p \$dldir~
11499      $install_prog $dir/$dlname \$dldir/$dlname'
11500    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11501      dlpath=$dir/\$dldll~
11502       $RM \$dlpath'
11503    shlibpath_overrides_runpath=yes
11504    dynamic_linker='Win32 link.exe'
11505    ;;
11506
11507  *)
11508    # Assume MSVC wrapper
11509    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11510    dynamic_linker='Win32 ld.exe'
11511    ;;
11512  esac
11513  # FIXME: first we should search . and the directory the executable is in
11514  shlibpath_var=PATH
11515  ;;
11516
11517darwin* | rhapsody*)
11518  dynamic_linker="$host_os dyld"
11519  version_type=darwin
11520  need_lib_prefix=no
11521  need_version=no
11522  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11523  soname_spec='$libname$release$major$shared_ext'
11524  shlibpath_overrides_runpath=yes
11525  shlibpath_var=DYLD_LIBRARY_PATH
11526  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11527
11528  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11529  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11530  ;;
11531
11532dgux*)
11533  version_type=linux # correct to gnu/linux during the next big refactor
11534  need_lib_prefix=no
11535  need_version=no
11536  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11537  soname_spec='$libname$release$shared_ext$major'
11538  shlibpath_var=LD_LIBRARY_PATH
11539  ;;
11540
11541freebsd* | dragonfly*)
11542  # DragonFly does not have aout.  When/if they implement a new
11543  # versioning mechanism, adjust this.
11544  if test -x /usr/bin/objformat; then
11545    objformat=`/usr/bin/objformat`
11546  else
11547    case $host_os in
11548    freebsd[23].*) objformat=aout ;;
11549    *) objformat=elf ;;
11550    esac
11551  fi
11552  version_type=freebsd-$objformat
11553  case $version_type in
11554    freebsd-elf*)
11555      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11556      soname_spec='$libname$release$shared_ext$major'
11557      need_version=no
11558      need_lib_prefix=no
11559      ;;
11560    freebsd-*)
11561      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11562      need_version=yes
11563      ;;
11564  esac
11565  shlibpath_var=LD_LIBRARY_PATH
11566  case $host_os in
11567  freebsd2.*)
11568    shlibpath_overrides_runpath=yes
11569    ;;
11570  freebsd3.[01]* | freebsdelf3.[01]*)
11571    shlibpath_overrides_runpath=yes
11572    hardcode_into_libs=yes
11573    ;;
11574  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11575  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11576    shlibpath_overrides_runpath=no
11577    hardcode_into_libs=yes
11578    ;;
11579  *) # from 4.6 on, and DragonFly
11580    shlibpath_overrides_runpath=yes
11581    hardcode_into_libs=yes
11582    ;;
11583  esac
11584  ;;
11585
11586haiku*)
11587  version_type=linux # correct to gnu/linux during the next big refactor
11588  need_lib_prefix=no
11589  need_version=no
11590  dynamic_linker="$host_os runtime_loader"
11591  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11592  soname_spec='$libname$release$shared_ext$major'
11593  shlibpath_var=LIBRARY_PATH
11594  shlibpath_overrides_runpath=no
11595  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11596  hardcode_into_libs=yes
11597  ;;
11598
11599hpux9* | hpux10* | hpux11*)
11600  # Give a soname corresponding to the major version so that dld.sl refuses to
11601  # link against other versions.
11602  version_type=sunos
11603  need_lib_prefix=no
11604  need_version=no
11605  case $host_cpu in
11606  ia64*)
11607    shrext_cmds='.so'
11608    hardcode_into_libs=yes
11609    dynamic_linker="$host_os dld.so"
11610    shlibpath_var=LD_LIBRARY_PATH
11611    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11612    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11613    soname_spec='$libname$release$shared_ext$major'
11614    if test 32 = "$HPUX_IA64_MODE"; then
11615      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11616      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11617    else
11618      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11619      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11620    fi
11621    ;;
11622  hppa*64*)
11623    shrext_cmds='.sl'
11624    hardcode_into_libs=yes
11625    dynamic_linker="$host_os dld.sl"
11626    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11627    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11628    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11629    soname_spec='$libname$release$shared_ext$major'
11630    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11631    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11632    ;;
11633  *)
11634    shrext_cmds='.sl'
11635    dynamic_linker="$host_os dld.sl"
11636    shlibpath_var=SHLIB_PATH
11637    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11638    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11639    soname_spec='$libname$release$shared_ext$major'
11640    ;;
11641  esac
11642  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11643  postinstall_cmds='chmod 555 $lib'
11644  # or fails outright, so override atomically:
11645  install_override_mode=555
11646  ;;
11647
11648interix[3-9]*)
11649  version_type=linux # correct to gnu/linux during the next big refactor
11650  need_lib_prefix=no
11651  need_version=no
11652  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11653  soname_spec='$libname$release$shared_ext$major'
11654  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11655  shlibpath_var=LD_LIBRARY_PATH
11656  shlibpath_overrides_runpath=no
11657  hardcode_into_libs=yes
11658  ;;
11659
11660irix5* | irix6* | nonstopux*)
11661  case $host_os in
11662    nonstopux*) version_type=nonstopux ;;
11663    *)
11664	if test yes = "$lt_cv_prog_gnu_ld"; then
11665		version_type=linux # correct to gnu/linux during the next big refactor
11666	else
11667		version_type=irix
11668	fi ;;
11669  esac
11670  need_lib_prefix=no
11671  need_version=no
11672  soname_spec='$libname$release$shared_ext$major'
11673  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11674  case $host_os in
11675  irix5* | nonstopux*)
11676    libsuff= shlibsuff=
11677    ;;
11678  *)
11679    case $LD in # libtool.m4 will add one of these switches to LD
11680    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11681      libsuff= shlibsuff= libmagic=32-bit;;
11682    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11683      libsuff=32 shlibsuff=N32 libmagic=N32;;
11684    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11685      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11686    *) libsuff= shlibsuff= libmagic=never-match;;
11687    esac
11688    ;;
11689  esac
11690  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11691  shlibpath_overrides_runpath=no
11692  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11693  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11694  hardcode_into_libs=yes
11695  ;;
11696
11697# No shared lib support for Linux oldld, aout, or coff.
11698linux*oldld* | linux*aout* | linux*coff*)
11699  dynamic_linker=no
11700  ;;
11701
11702linux*android*)
11703  version_type=none # Android doesn't support versioned libraries.
11704  need_lib_prefix=no
11705  need_version=no
11706  library_names_spec='$libname$release$shared_ext'
11707  soname_spec='$libname$release$shared_ext'
11708  finish_cmds=
11709  shlibpath_var=LD_LIBRARY_PATH
11710  shlibpath_overrides_runpath=yes
11711
11712  # This implies no fast_install, which is unacceptable.
11713  # Some rework will be needed to allow for fast_install
11714  # before this can be enabled.
11715  hardcode_into_libs=yes
11716
11717  dynamic_linker='Android linker'
11718  # Don't embed -rpath directories since the linker doesn't support them.
11719  hardcode_libdir_flag_spec='-L$libdir'
11720  ;;
11721
11722# This must be glibc/ELF.
11723linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11724  version_type=linux # correct to gnu/linux during the next big refactor
11725  need_lib_prefix=no
11726  need_version=no
11727  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11728  soname_spec='$libname$release$shared_ext$major'
11729  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11730  shlibpath_var=LD_LIBRARY_PATH
11731  shlibpath_overrides_runpath=no
11732
11733  # Some binutils ld are patched to set DT_RUNPATH
11734  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11735  $as_echo_n "(cached) " >&6
11736else
11737  lt_cv_shlibpath_overrides_runpath=no
11738    save_LDFLAGS=$LDFLAGS
11739    save_libdir=$libdir
11740    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11741	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11742    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11743/* end confdefs.h.  */
11744
11745int
11746main ()
11747{
11748
11749  ;
11750  return 0;
11751}
11752_ACEOF
11753if ac_fn_c_try_link "$LINENO"; then :
11754  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11755  lt_cv_shlibpath_overrides_runpath=yes
11756fi
11757fi
11758rm -f core conftest.err conftest.$ac_objext \
11759    conftest$ac_exeext conftest.$ac_ext
11760    LDFLAGS=$save_LDFLAGS
11761    libdir=$save_libdir
11762
11763fi
11764
11765  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11766
11767  # This implies no fast_install, which is unacceptable.
11768  # Some rework will be needed to allow for fast_install
11769  # before this can be enabled.
11770  hardcode_into_libs=yes
11771
11772  # Ideally, we could use ldconfig to report *all* directores which are
11773  # searched for libraries, however this is still not possible.  Aside from not
11774  # being certain /sbin/ldconfig is available, command
11775  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11776  # even though it is searched at run-time.  Try to do the best guess by
11777  # appending ld.so.conf contents (and includes) to the search path.
11778  if test -f /etc/ld.so.conf; then
11779    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' ' '`
11780    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11781  fi
11782
11783  # We used to test for /lib/ld.so.1 and disable shared libraries on
11784  # powerpc, because MkLinux only supported shared libraries with the
11785  # GNU dynamic linker.  Since this was broken with cross compilers,
11786  # most powerpc-linux boxes support dynamic linking these days and
11787  # people can always --disable-shared, the test was removed, and we
11788  # assume the GNU/Linux dynamic linker is in use.
11789  dynamic_linker='GNU/Linux ld.so'
11790  ;;
11791
11792netbsdelf*-gnu)
11793  version_type=linux
11794  need_lib_prefix=no
11795  need_version=no
11796  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11797  soname_spec='${libname}${release}${shared_ext}$major'
11798  shlibpath_var=LD_LIBRARY_PATH
11799  shlibpath_overrides_runpath=no
11800  hardcode_into_libs=yes
11801  dynamic_linker='NetBSD ld.elf_so'
11802  ;;
11803
11804netbsd*)
11805  version_type=sunos
11806  need_lib_prefix=no
11807  need_version=no
11808  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11809    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11810    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11811    dynamic_linker='NetBSD (a.out) ld.so'
11812  else
11813    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11814    soname_spec='$libname$release$shared_ext$major'
11815    dynamic_linker='NetBSD ld.elf_so'
11816  fi
11817  shlibpath_var=LD_LIBRARY_PATH
11818  shlibpath_overrides_runpath=yes
11819  hardcode_into_libs=yes
11820  ;;
11821
11822newsos6)
11823  version_type=linux # correct to gnu/linux during the next big refactor
11824  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11825  shlibpath_var=LD_LIBRARY_PATH
11826  shlibpath_overrides_runpath=yes
11827  ;;
11828
11829*nto* | *qnx*)
11830  version_type=qnx
11831  need_lib_prefix=no
11832  need_version=no
11833  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11834  soname_spec='$libname$release$shared_ext$major'
11835  shlibpath_var=LD_LIBRARY_PATH
11836  shlibpath_overrides_runpath=no
11837  hardcode_into_libs=yes
11838  dynamic_linker='ldqnx.so'
11839  ;;
11840
11841openbsd* | bitrig*)
11842  version_type=sunos
11843  sys_lib_dlsearch_path_spec=/usr/lib
11844  need_lib_prefix=no
11845  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11846    need_version=no
11847  else
11848    need_version=yes
11849  fi
11850  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11851  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11852  shlibpath_var=LD_LIBRARY_PATH
11853  shlibpath_overrides_runpath=yes
11854  ;;
11855
11856os2*)
11857  libname_spec='$name'
11858  version_type=windows
11859  shrext_cmds=.dll
11860  need_version=no
11861  need_lib_prefix=no
11862  # OS/2 can only load a DLL with a base name of 8 characters or less.
11863  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11864    v=$($ECHO $release$versuffix | tr -d .-);
11865    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11866    $ECHO $n$v`$shared_ext'
11867  library_names_spec='${libname}_dll.$libext'
11868  dynamic_linker='OS/2 ld.exe'
11869  shlibpath_var=BEGINLIBPATH
11870  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11871  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11872  postinstall_cmds='base_file=`basename \$file`~
11873    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11874    dldir=$destdir/`dirname \$dlpath`~
11875    test -d \$dldir || mkdir -p \$dldir~
11876    $install_prog $dir/$dlname \$dldir/$dlname~
11877    chmod a+x \$dldir/$dlname~
11878    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11879      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11880    fi'
11881  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11882    dlpath=$dir/\$dldll~
11883    $RM \$dlpath'
11884  ;;
11885
11886osf3* | osf4* | osf5*)
11887  version_type=osf
11888  need_lib_prefix=no
11889  need_version=no
11890  soname_spec='$libname$release$shared_ext$major'
11891  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11892  shlibpath_var=LD_LIBRARY_PATH
11893  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11894  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11895  ;;
11896
11897rdos*)
11898  dynamic_linker=no
11899  ;;
11900
11901solaris*)
11902  version_type=linux # correct to gnu/linux during the next big refactor
11903  need_lib_prefix=no
11904  need_version=no
11905  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11906  soname_spec='$libname$release$shared_ext$major'
11907  shlibpath_var=LD_LIBRARY_PATH
11908  shlibpath_overrides_runpath=yes
11909  hardcode_into_libs=yes
11910  # ldd complains unless libraries are executable
11911  postinstall_cmds='chmod +x $lib'
11912  ;;
11913
11914sunos4*)
11915  version_type=sunos
11916  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11917  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11918  shlibpath_var=LD_LIBRARY_PATH
11919  shlibpath_overrides_runpath=yes
11920  if test yes = "$with_gnu_ld"; then
11921    need_lib_prefix=no
11922  fi
11923  need_version=yes
11924  ;;
11925
11926sysv4 | sysv4.3*)
11927  version_type=linux # correct to gnu/linux during the next big refactor
11928  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11929  soname_spec='$libname$release$shared_ext$major'
11930  shlibpath_var=LD_LIBRARY_PATH
11931  case $host_vendor in
11932    sni)
11933      shlibpath_overrides_runpath=no
11934      need_lib_prefix=no
11935      runpath_var=LD_RUN_PATH
11936      ;;
11937    siemens)
11938      need_lib_prefix=no
11939      ;;
11940    motorola)
11941      need_lib_prefix=no
11942      need_version=no
11943      shlibpath_overrides_runpath=no
11944      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11945      ;;
11946  esac
11947  ;;
11948
11949sysv4*MP*)
11950  if test -d /usr/nec; then
11951    version_type=linux # correct to gnu/linux during the next big refactor
11952    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11953    soname_spec='$libname$shared_ext.$major'
11954    shlibpath_var=LD_LIBRARY_PATH
11955  fi
11956  ;;
11957
11958sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11959  version_type=sco
11960  need_lib_prefix=no
11961  need_version=no
11962  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11963  soname_spec='$libname$release$shared_ext$major'
11964  shlibpath_var=LD_LIBRARY_PATH
11965  shlibpath_overrides_runpath=yes
11966  hardcode_into_libs=yes
11967  if test yes = "$with_gnu_ld"; then
11968    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11969  else
11970    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11971    case $host_os in
11972      sco3.2v5*)
11973        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11974	;;
11975    esac
11976  fi
11977  sys_lib_dlsearch_path_spec='/usr/lib'
11978  ;;
11979
11980tpf*)
11981  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11982  version_type=linux # correct to gnu/linux during the next big refactor
11983  need_lib_prefix=no
11984  need_version=no
11985  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11986  shlibpath_var=LD_LIBRARY_PATH
11987  shlibpath_overrides_runpath=no
11988  hardcode_into_libs=yes
11989  ;;
11990
11991uts4*)
11992  version_type=linux # correct to gnu/linux during the next big refactor
11993  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11994  soname_spec='$libname$release$shared_ext$major'
11995  shlibpath_var=LD_LIBRARY_PATH
11996  ;;
11997
11998*)
11999  dynamic_linker=no
12000  ;;
12001esac
12002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12003$as_echo "$dynamic_linker" >&6; }
12004test no = "$dynamic_linker" && can_build_shared=no
12005
12006variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12007if test yes = "$GCC"; then
12008  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12009fi
12010
12011if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12012  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12013fi
12014
12015if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12016  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12017fi
12018
12019# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12020configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12021
12022# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12023func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12024
12025# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12026configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12125$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12126hardcode_action=
12127if test -n "$hardcode_libdir_flag_spec" ||
12128   test -n "$runpath_var" ||
12129   test yes = "$hardcode_automatic"; then
12130
12131  # We can hardcode non-existent directories.
12132  if test no != "$hardcode_direct" &&
12133     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12134     # have to relink, otherwise we might link with an installed library
12135     # when we should be linking with a yet-to-be-installed one
12136     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12137     test no != "$hardcode_minus_L"; then
12138    # Linking always hardcodes the temporary library directory.
12139    hardcode_action=relink
12140  else
12141    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12142    hardcode_action=immediate
12143  fi
12144else
12145  # We cannot hardcode anything, or else we can only hardcode existing
12146  # directories.
12147  hardcode_action=unsupported
12148fi
12149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12150$as_echo "$hardcode_action" >&6; }
12151
12152if test relink = "$hardcode_action" ||
12153   test yes = "$inherit_rpath"; then
12154  # Fast installation is not supported
12155  enable_fast_install=no
12156elif test yes = "$shlibpath_overrides_runpath" ||
12157     test no = "$enable_shared"; then
12158  # Fast installation is not necessary
12159  enable_fast_install=needless
12160fi
12161
12162
12163
12164
12165
12166
12167  if test yes != "$enable_dlopen"; then
12168  enable_dlopen=unknown
12169  enable_dlopen_self=unknown
12170  enable_dlopen_self_static=unknown
12171else
12172  lt_cv_dlopen=no
12173  lt_cv_dlopen_libs=
12174
12175  case $host_os in
12176  beos*)
12177    lt_cv_dlopen=load_add_on
12178    lt_cv_dlopen_libs=
12179    lt_cv_dlopen_self=yes
12180    ;;
12181
12182  mingw* | pw32* | cegcc*)
12183    lt_cv_dlopen=LoadLibrary
12184    lt_cv_dlopen_libs=
12185    ;;
12186
12187  cygwin*)
12188    lt_cv_dlopen=dlopen
12189    lt_cv_dlopen_libs=
12190    ;;
12191
12192  darwin*)
12193    # if libdl is installed we need to link against it
12194    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12195$as_echo_n "checking for dlopen in -ldl... " >&6; }
12196if ${ac_cv_lib_dl_dlopen+:} false; then :
12197  $as_echo_n "(cached) " >&6
12198else
12199  ac_check_lib_save_LIBS=$LIBS
12200LIBS="-ldl  $LIBS"
12201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202/* end confdefs.h.  */
12203
12204/* Override any GCC internal prototype to avoid an error.
12205   Use char because int might match the return type of a GCC
12206   builtin and then its argument prototype would still apply.  */
12207#ifdef __cplusplus
12208extern "C"
12209#endif
12210char dlopen ();
12211int
12212main ()
12213{
12214return dlopen ();
12215  ;
12216  return 0;
12217}
12218_ACEOF
12219if ac_fn_c_try_link "$LINENO"; then :
12220  ac_cv_lib_dl_dlopen=yes
12221else
12222  ac_cv_lib_dl_dlopen=no
12223fi
12224rm -f core conftest.err conftest.$ac_objext \
12225    conftest$ac_exeext conftest.$ac_ext
12226LIBS=$ac_check_lib_save_LIBS
12227fi
12228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12229$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12230if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12231  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12232else
12233
12234    lt_cv_dlopen=dyld
12235    lt_cv_dlopen_libs=
12236    lt_cv_dlopen_self=yes
12237
12238fi
12239
12240    ;;
12241
12242  tpf*)
12243    # Don't try to run any link tests for TPF.  We know it's impossible
12244    # because TPF is a cross-compiler, and we know how we open DSOs.
12245    lt_cv_dlopen=dlopen
12246    lt_cv_dlopen_libs=
12247    lt_cv_dlopen_self=no
12248    ;;
12249
12250  *)
12251    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12252if test "x$ac_cv_func_shl_load" = xyes; then :
12253  lt_cv_dlopen=shl_load
12254else
12255  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12256$as_echo_n "checking for shl_load in -ldld... " >&6; }
12257if ${ac_cv_lib_dld_shl_load+:} false; then :
12258  $as_echo_n "(cached) " >&6
12259else
12260  ac_check_lib_save_LIBS=$LIBS
12261LIBS="-ldld  $LIBS"
12262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263/* end confdefs.h.  */
12264
12265/* Override any GCC internal prototype to avoid an error.
12266   Use char because int might match the return type of a GCC
12267   builtin and then its argument prototype would still apply.  */
12268#ifdef __cplusplus
12269extern "C"
12270#endif
12271char shl_load ();
12272int
12273main ()
12274{
12275return shl_load ();
12276  ;
12277  return 0;
12278}
12279_ACEOF
12280if ac_fn_c_try_link "$LINENO"; then :
12281  ac_cv_lib_dld_shl_load=yes
12282else
12283  ac_cv_lib_dld_shl_load=no
12284fi
12285rm -f core conftest.err conftest.$ac_objext \
12286    conftest$ac_exeext conftest.$ac_ext
12287LIBS=$ac_check_lib_save_LIBS
12288fi
12289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12290$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12291if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12292  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12293else
12294  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12295if test "x$ac_cv_func_dlopen" = xyes; then :
12296  lt_cv_dlopen=dlopen
12297else
12298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12299$as_echo_n "checking for dlopen in -ldl... " >&6; }
12300if ${ac_cv_lib_dl_dlopen+:} false; then :
12301  $as_echo_n "(cached) " >&6
12302else
12303  ac_check_lib_save_LIBS=$LIBS
12304LIBS="-ldl  $LIBS"
12305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12306/* end confdefs.h.  */
12307
12308/* Override any GCC internal prototype to avoid an error.
12309   Use char because int might match the return type of a GCC
12310   builtin and then its argument prototype would still apply.  */
12311#ifdef __cplusplus
12312extern "C"
12313#endif
12314char dlopen ();
12315int
12316main ()
12317{
12318return dlopen ();
12319  ;
12320  return 0;
12321}
12322_ACEOF
12323if ac_fn_c_try_link "$LINENO"; then :
12324  ac_cv_lib_dl_dlopen=yes
12325else
12326  ac_cv_lib_dl_dlopen=no
12327fi
12328rm -f core conftest.err conftest.$ac_objext \
12329    conftest$ac_exeext conftest.$ac_ext
12330LIBS=$ac_check_lib_save_LIBS
12331fi
12332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12333$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12334if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12335  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12336else
12337  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12338$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12339if ${ac_cv_lib_svld_dlopen+:} false; then :
12340  $as_echo_n "(cached) " >&6
12341else
12342  ac_check_lib_save_LIBS=$LIBS
12343LIBS="-lsvld  $LIBS"
12344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345/* end confdefs.h.  */
12346
12347/* Override any GCC internal prototype to avoid an error.
12348   Use char because int might match the return type of a GCC
12349   builtin and then its argument prototype would still apply.  */
12350#ifdef __cplusplus
12351extern "C"
12352#endif
12353char dlopen ();
12354int
12355main ()
12356{
12357return dlopen ();
12358  ;
12359  return 0;
12360}
12361_ACEOF
12362if ac_fn_c_try_link "$LINENO"; then :
12363  ac_cv_lib_svld_dlopen=yes
12364else
12365  ac_cv_lib_svld_dlopen=no
12366fi
12367rm -f core conftest.err conftest.$ac_objext \
12368    conftest$ac_exeext conftest.$ac_ext
12369LIBS=$ac_check_lib_save_LIBS
12370fi
12371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12372$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12373if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12374  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12375else
12376  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12377$as_echo_n "checking for dld_link in -ldld... " >&6; }
12378if ${ac_cv_lib_dld_dld_link+:} false; then :
12379  $as_echo_n "(cached) " >&6
12380else
12381  ac_check_lib_save_LIBS=$LIBS
12382LIBS="-ldld  $LIBS"
12383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384/* end confdefs.h.  */
12385
12386/* Override any GCC internal prototype to avoid an error.
12387   Use char because int might match the return type of a GCC
12388   builtin and then its argument prototype would still apply.  */
12389#ifdef __cplusplus
12390extern "C"
12391#endif
12392char dld_link ();
12393int
12394main ()
12395{
12396return dld_link ();
12397  ;
12398  return 0;
12399}
12400_ACEOF
12401if ac_fn_c_try_link "$LINENO"; then :
12402  ac_cv_lib_dld_dld_link=yes
12403else
12404  ac_cv_lib_dld_dld_link=no
12405fi
12406rm -f core conftest.err conftest.$ac_objext \
12407    conftest$ac_exeext conftest.$ac_ext
12408LIBS=$ac_check_lib_save_LIBS
12409fi
12410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12411$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12412if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12413  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12414fi
12415
12416
12417fi
12418
12419
12420fi
12421
12422
12423fi
12424
12425
12426fi
12427
12428
12429fi
12430
12431    ;;
12432  esac
12433
12434  if test no = "$lt_cv_dlopen"; then
12435    enable_dlopen=no
12436  else
12437    enable_dlopen=yes
12438  fi
12439
12440  case $lt_cv_dlopen in
12441  dlopen)
12442    save_CPPFLAGS=$CPPFLAGS
12443    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12444
12445    save_LDFLAGS=$LDFLAGS
12446    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12447
12448    save_LIBS=$LIBS
12449    LIBS="$lt_cv_dlopen_libs $LIBS"
12450
12451    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12452$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12453if ${lt_cv_dlopen_self+:} false; then :
12454  $as_echo_n "(cached) " >&6
12455else
12456  	  if test yes = "$cross_compiling"; then :
12457  lt_cv_dlopen_self=cross
12458else
12459  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12460  lt_status=$lt_dlunknown
12461  cat > conftest.$ac_ext <<_LT_EOF
12462#line $LINENO "configure"
12463#include "confdefs.h"
12464
12465#if HAVE_DLFCN_H
12466#include <dlfcn.h>
12467#endif
12468
12469#include <stdio.h>
12470
12471#ifdef RTLD_GLOBAL
12472#  define LT_DLGLOBAL		RTLD_GLOBAL
12473#else
12474#  ifdef DL_GLOBAL
12475#    define LT_DLGLOBAL		DL_GLOBAL
12476#  else
12477#    define LT_DLGLOBAL		0
12478#  endif
12479#endif
12480
12481/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12482   find out it does not work in some platform. */
12483#ifndef LT_DLLAZY_OR_NOW
12484#  ifdef RTLD_LAZY
12485#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12486#  else
12487#    ifdef DL_LAZY
12488#      define LT_DLLAZY_OR_NOW		DL_LAZY
12489#    else
12490#      ifdef RTLD_NOW
12491#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12492#      else
12493#        ifdef DL_NOW
12494#          define LT_DLLAZY_OR_NOW	DL_NOW
12495#        else
12496#          define LT_DLLAZY_OR_NOW	0
12497#        endif
12498#      endif
12499#    endif
12500#  endif
12501#endif
12502
12503/* When -fvisibility=hidden is used, assume the code has been annotated
12504   correspondingly for the symbols needed.  */
12505#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12506int fnord () __attribute__((visibility("default")));
12507#endif
12508
12509int fnord () { return 42; }
12510int main ()
12511{
12512  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12513  int status = $lt_dlunknown;
12514
12515  if (self)
12516    {
12517      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12518      else
12519        {
12520	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12521          else puts (dlerror ());
12522	}
12523      /* dlclose (self); */
12524    }
12525  else
12526    puts (dlerror ());
12527
12528  return status;
12529}
12530_LT_EOF
12531  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12532  (eval $ac_link) 2>&5
12533  ac_status=$?
12534  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12535  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12536    (./conftest; exit; ) >&5 2>/dev/null
12537    lt_status=$?
12538    case x$lt_status in
12539      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12540      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12541      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12542    esac
12543  else :
12544    # compilation failed
12545    lt_cv_dlopen_self=no
12546  fi
12547fi
12548rm -fr conftest*
12549
12550
12551fi
12552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12553$as_echo "$lt_cv_dlopen_self" >&6; }
12554
12555    if test yes = "$lt_cv_dlopen_self"; then
12556      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12557      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12558$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12559if ${lt_cv_dlopen_self_static+:} false; then :
12560  $as_echo_n "(cached) " >&6
12561else
12562  	  if test yes = "$cross_compiling"; then :
12563  lt_cv_dlopen_self_static=cross
12564else
12565  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12566  lt_status=$lt_dlunknown
12567  cat > conftest.$ac_ext <<_LT_EOF
12568#line $LINENO "configure"
12569#include "confdefs.h"
12570
12571#if HAVE_DLFCN_H
12572#include <dlfcn.h>
12573#endif
12574
12575#include <stdio.h>
12576
12577#ifdef RTLD_GLOBAL
12578#  define LT_DLGLOBAL		RTLD_GLOBAL
12579#else
12580#  ifdef DL_GLOBAL
12581#    define LT_DLGLOBAL		DL_GLOBAL
12582#  else
12583#    define LT_DLGLOBAL		0
12584#  endif
12585#endif
12586
12587/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12588   find out it does not work in some platform. */
12589#ifndef LT_DLLAZY_OR_NOW
12590#  ifdef RTLD_LAZY
12591#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12592#  else
12593#    ifdef DL_LAZY
12594#      define LT_DLLAZY_OR_NOW		DL_LAZY
12595#    else
12596#      ifdef RTLD_NOW
12597#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12598#      else
12599#        ifdef DL_NOW
12600#          define LT_DLLAZY_OR_NOW	DL_NOW
12601#        else
12602#          define LT_DLLAZY_OR_NOW	0
12603#        endif
12604#      endif
12605#    endif
12606#  endif
12607#endif
12608
12609/* When -fvisibility=hidden is used, assume the code has been annotated
12610   correspondingly for the symbols needed.  */
12611#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12612int fnord () __attribute__((visibility("default")));
12613#endif
12614
12615int fnord () { return 42; }
12616int main ()
12617{
12618  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12619  int status = $lt_dlunknown;
12620
12621  if (self)
12622    {
12623      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12624      else
12625        {
12626	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12627          else puts (dlerror ());
12628	}
12629      /* dlclose (self); */
12630    }
12631  else
12632    puts (dlerror ());
12633
12634  return status;
12635}
12636_LT_EOF
12637  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12638  (eval $ac_link) 2>&5
12639  ac_status=$?
12640  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12641  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12642    (./conftest; exit; ) >&5 2>/dev/null
12643    lt_status=$?
12644    case x$lt_status in
12645      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12646      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12647      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12648    esac
12649  else :
12650    # compilation failed
12651    lt_cv_dlopen_self_static=no
12652  fi
12653fi
12654rm -fr conftest*
12655
12656
12657fi
12658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12659$as_echo "$lt_cv_dlopen_self_static" >&6; }
12660    fi
12661
12662    CPPFLAGS=$save_CPPFLAGS
12663    LDFLAGS=$save_LDFLAGS
12664    LIBS=$save_LIBS
12665    ;;
12666  esac
12667
12668  case $lt_cv_dlopen_self in
12669  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12670  *) enable_dlopen_self=unknown ;;
12671  esac
12672
12673  case $lt_cv_dlopen_self_static in
12674  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12675  *) enable_dlopen_self_static=unknown ;;
12676  esac
12677fi
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695striplib=
12696old_striplib=
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12698$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12699if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12700  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12701  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12703$as_echo "yes" >&6; }
12704else
12705# FIXME - insert some real tests, host_os isn't really good enough
12706  case $host_os in
12707  darwin*)
12708    if test -n "$STRIP"; then
12709      striplib="$STRIP -x"
12710      old_striplib="$STRIP -S"
12711      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12712$as_echo "yes" >&6; }
12713    else
12714      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12715$as_echo "no" >&6; }
12716    fi
12717    ;;
12718  *)
12719    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12720$as_echo "no" >&6; }
12721    ;;
12722  esac
12723fi
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736  # Report what library types will actually be built
12737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12738$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12740$as_echo "$can_build_shared" >&6; }
12741
12742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12743$as_echo_n "checking whether to build shared libraries... " >&6; }
12744  test no = "$can_build_shared" && enable_shared=no
12745
12746  # On AIX, shared libraries and static libraries use the same namespace, and
12747  # are all built from PIC.
12748  case $host_os in
12749  aix3*)
12750    test yes = "$enable_shared" && enable_static=no
12751    if test -n "$RANLIB"; then
12752      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12753      postinstall_cmds='$RANLIB $lib'
12754    fi
12755    ;;
12756
12757  aix[4-9]*)
12758    if test ia64 != "$host_cpu"; then
12759      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12760      yes,aix,yes) ;;			# shared object as lib.so file only
12761      yes,svr4,*) ;;			# shared object as lib.so archive member only
12762      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12763      esac
12764    fi
12765    ;;
12766  esac
12767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12768$as_echo "$enable_shared" >&6; }
12769
12770  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12771$as_echo_n "checking whether to build static libraries... " >&6; }
12772  # Make sure either enable_shared or enable_static is yes.
12773  test yes = "$enable_shared" || enable_static=yes
12774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12775$as_echo "$enable_static" >&6; }
12776
12777
12778
12779
12780fi
12781ac_ext=c
12782ac_cpp='$CPP $CPPFLAGS'
12783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12785ac_compiler_gnu=$ac_cv_c_compiler_gnu
12786
12787CC=$lt_save_CC
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803        ac_config_commands="$ac_config_commands libtool"
12804
12805
12806
12807
12808# Only expand once:
12809
12810
12811
12812
12813
12814 if test "$enable_samples" = "yes"; then
12815  BUILD_SAMPLES_TRUE=
12816  BUILD_SAMPLES_FALSE='#'
12817else
12818  BUILD_SAMPLES_TRUE='#'
12819  BUILD_SAMPLES_FALSE=
12820fi
12821
12822 if test "$enable_libevent_regress" = "yes"; then
12823  BUILD_REGRESS_TRUE=
12824  BUILD_REGRESS_FALSE='#'
12825else
12826  BUILD_REGRESS_TRUE='#'
12827  BUILD_REGRESS_FALSE=
12828fi
12829
12830
12831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
12832$as_echo_n "checking for library containing inet_ntoa... " >&6; }
12833if ${ac_cv_search_inet_ntoa+:} false; then :
12834  $as_echo_n "(cached) " >&6
12835else
12836  ac_func_search_save_LIBS=$LIBS
12837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12838/* end confdefs.h.  */
12839
12840/* Override any GCC internal prototype to avoid an error.
12841   Use char because int might match the return type of a GCC
12842   builtin and then its argument prototype would still apply.  */
12843#ifdef __cplusplus
12844extern "C"
12845#endif
12846char inet_ntoa ();
12847int
12848main ()
12849{
12850return inet_ntoa ();
12851  ;
12852  return 0;
12853}
12854_ACEOF
12855for ac_lib in '' nsl; do
12856  if test -z "$ac_lib"; then
12857    ac_res="none required"
12858  else
12859    ac_res=-l$ac_lib
12860    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12861  fi
12862  if ac_fn_c_try_link "$LINENO"; then :
12863  ac_cv_search_inet_ntoa=$ac_res
12864fi
12865rm -f core conftest.err conftest.$ac_objext \
12866    conftest$ac_exeext
12867  if ${ac_cv_search_inet_ntoa+:} false; then :
12868  break
12869fi
12870done
12871if ${ac_cv_search_inet_ntoa+:} false; then :
12872
12873else
12874  ac_cv_search_inet_ntoa=no
12875fi
12876rm conftest.$ac_ext
12877LIBS=$ac_func_search_save_LIBS
12878fi
12879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
12880$as_echo "$ac_cv_search_inet_ntoa" >&6; }
12881ac_res=$ac_cv_search_inet_ntoa
12882if test "$ac_res" != no; then :
12883  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12884
12885fi
12886
12887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12888$as_echo_n "checking for library containing socket... " >&6; }
12889if ${ac_cv_search_socket+:} false; then :
12890  $as_echo_n "(cached) " >&6
12891else
12892  ac_func_search_save_LIBS=$LIBS
12893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894/* end confdefs.h.  */
12895
12896/* Override any GCC internal prototype to avoid an error.
12897   Use char because int might match the return type of a GCC
12898   builtin and then its argument prototype would still apply.  */
12899#ifdef __cplusplus
12900extern "C"
12901#endif
12902char socket ();
12903int
12904main ()
12905{
12906return socket ();
12907  ;
12908  return 0;
12909}
12910_ACEOF
12911for ac_lib in '' socket; do
12912  if test -z "$ac_lib"; then
12913    ac_res="none required"
12914  else
12915    ac_res=-l$ac_lib
12916    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12917  fi
12918  if ac_fn_c_try_link "$LINENO"; then :
12919  ac_cv_search_socket=$ac_res
12920fi
12921rm -f core conftest.err conftest.$ac_objext \
12922    conftest$ac_exeext
12923  if ${ac_cv_search_socket+:} false; then :
12924  break
12925fi
12926done
12927if ${ac_cv_search_socket+:} false; then :
12928
12929else
12930  ac_cv_search_socket=no
12931fi
12932rm conftest.$ac_ext
12933LIBS=$ac_func_search_save_LIBS
12934fi
12935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12936$as_echo "$ac_cv_search_socket" >&6; }
12937ac_res=$ac_cv_search_socket
12938if test "$ac_res" != no; then :
12939  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12940
12941fi
12942
12943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12944$as_echo_n "checking for library containing inet_aton... " >&6; }
12945if ${ac_cv_search_inet_aton+:} false; then :
12946  $as_echo_n "(cached) " >&6
12947else
12948  ac_func_search_save_LIBS=$LIBS
12949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950/* end confdefs.h.  */
12951
12952/* Override any GCC internal prototype to avoid an error.
12953   Use char because int might match the return type of a GCC
12954   builtin and then its argument prototype would still apply.  */
12955#ifdef __cplusplus
12956extern "C"
12957#endif
12958char inet_aton ();
12959int
12960main ()
12961{
12962return inet_aton ();
12963  ;
12964  return 0;
12965}
12966_ACEOF
12967for ac_lib in '' resolv; do
12968  if test -z "$ac_lib"; then
12969    ac_res="none required"
12970  else
12971    ac_res=-l$ac_lib
12972    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12973  fi
12974  if ac_fn_c_try_link "$LINENO"; then :
12975  ac_cv_search_inet_aton=$ac_res
12976fi
12977rm -f core conftest.err conftest.$ac_objext \
12978    conftest$ac_exeext
12979  if ${ac_cv_search_inet_aton+:} false; then :
12980  break
12981fi
12982done
12983if ${ac_cv_search_inet_aton+:} false; then :
12984
12985else
12986  ac_cv_search_inet_aton=no
12987fi
12988rm conftest.$ac_ext
12989LIBS=$ac_func_search_save_LIBS
12990fi
12991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12992$as_echo "$ac_cv_search_inet_aton" >&6; }
12993ac_res=$ac_cv_search_inet_aton
12994if test "$ac_res" != no; then :
12995  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12996
12997fi
12998
12999if test "x$enable_clock_gettime" = "xyes"; then
13000  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13001$as_echo_n "checking for library containing clock_gettime... " >&6; }
13002if ${ac_cv_search_clock_gettime+:} false; then :
13003  $as_echo_n "(cached) " >&6
13004else
13005  ac_func_search_save_LIBS=$LIBS
13006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007/* end confdefs.h.  */
13008
13009/* Override any GCC internal prototype to avoid an error.
13010   Use char because int might match the return type of a GCC
13011   builtin and then its argument prototype would still apply.  */
13012#ifdef __cplusplus
13013extern "C"
13014#endif
13015char clock_gettime ();
13016int
13017main ()
13018{
13019return clock_gettime ();
13020  ;
13021  return 0;
13022}
13023_ACEOF
13024for ac_lib in '' rt; do
13025  if test -z "$ac_lib"; then
13026    ac_res="none required"
13027  else
13028    ac_res=-l$ac_lib
13029    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13030  fi
13031  if ac_fn_c_try_link "$LINENO"; then :
13032  ac_cv_search_clock_gettime=$ac_res
13033fi
13034rm -f core conftest.err conftest.$ac_objext \
13035    conftest$ac_exeext
13036  if ${ac_cv_search_clock_gettime+:} false; then :
13037  break
13038fi
13039done
13040if ${ac_cv_search_clock_gettime+:} false; then :
13041
13042else
13043  ac_cv_search_clock_gettime=no
13044fi
13045rm conftest.$ac_ext
13046LIBS=$ac_func_search_save_LIBS
13047fi
13048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13049$as_echo "$ac_cv_search_clock_gettime" >&6; }
13050ac_res=$ac_cv_search_clock_gettime
13051if test "$ac_res" != no; then :
13052  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13053
13054fi
13055
13056  for ac_func in clock_gettime
13057do :
13058  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13059if test "x$ac_cv_func_clock_gettime" = xyes; then :
13060  cat >>confdefs.h <<_ACEOF
13061#define HAVE_CLOCK_GETTIME 1
13062_ACEOF
13063
13064fi
13065done
13066
13067fi
13068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
13069$as_echo_n "checking for library containing sendfile... " >&6; }
13070if ${ac_cv_search_sendfile+:} false; then :
13071  $as_echo_n "(cached) " >&6
13072else
13073  ac_func_search_save_LIBS=$LIBS
13074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13075/* end confdefs.h.  */
13076
13077/* Override any GCC internal prototype to avoid an error.
13078   Use char because int might match the return type of a GCC
13079   builtin and then its argument prototype would still apply.  */
13080#ifdef __cplusplus
13081extern "C"
13082#endif
13083char sendfile ();
13084int
13085main ()
13086{
13087return sendfile ();
13088  ;
13089  return 0;
13090}
13091_ACEOF
13092for ac_lib in '' sendfile; do
13093  if test -z "$ac_lib"; then
13094    ac_res="none required"
13095  else
13096    ac_res=-l$ac_lib
13097    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13098  fi
13099  if ac_fn_c_try_link "$LINENO"; then :
13100  ac_cv_search_sendfile=$ac_res
13101fi
13102rm -f core conftest.err conftest.$ac_objext \
13103    conftest$ac_exeext
13104  if ${ac_cv_search_sendfile+:} false; then :
13105  break
13106fi
13107done
13108if ${ac_cv_search_sendfile+:} false; then :
13109
13110else
13111  ac_cv_search_sendfile=no
13112fi
13113rm conftest.$ac_ext
13114LIBS=$ac_func_search_save_LIBS
13115fi
13116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
13117$as_echo "$ac_cv_search_sendfile" >&6; }
13118ac_res=$ac_cv_search_sendfile
13119if test "$ac_res" != no; then :
13120  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13121
13122fi
13123
13124
13125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
13126$as_echo_n "checking for WIN32... " >&6; }
13127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128/* end confdefs.h.  */
13129
13130int
13131main ()
13132{
13133
13134#ifndef _WIN32
13135die horribly
13136#endif
13137
13138
13139  ;
13140  return 0;
13141}
13142_ACEOF
13143if ac_fn_c_try_compile "$LINENO"; then :
13144  bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13145$as_echo "yes" >&6; }
13146else
13147  bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148$as_echo "no" >&6; }
13149
13150fi
13151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13152
13153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MIDIPIX" >&5
13154$as_echo_n "checking for MIDIPIX... " >&6; }
13155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156/* end confdefs.h.  */
13157
13158int
13159main ()
13160{
13161
13162#ifndef __midipix__
13163die horribly
13164#endif
13165
13166
13167  ;
13168  return 0;
13169}
13170_ACEOF
13171if ac_fn_c_try_compile "$LINENO"; then :
13172  midipix=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13173$as_echo "yes" >&6; }
13174else
13175  midipix=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13176$as_echo "no" >&6; }
13177
13178fi
13179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13180
13181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
13182$as_echo_n "checking for CYGWIN... " >&6; }
13183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184/* end confdefs.h.  */
13185
13186int
13187main ()
13188{
13189
13190#ifndef __CYGWIN__
13191die horribly
13192#endif
13193
13194
13195  ;
13196  return 0;
13197}
13198_ACEOF
13199if ac_fn_c_try_compile "$LINENO"; then :
13200  cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13201$as_echo "yes" >&6; }
13202else
13203  cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13204$as_echo "no" >&6; }
13205
13206fi
13207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13208
13209for ac_header in zlib.h
13210do :
13211  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13212if test "x$ac_cv_header_zlib_h" = xyes; then :
13213  cat >>confdefs.h <<_ACEOF
13214#define HAVE_ZLIB_H 1
13215_ACEOF
13216
13217fi
13218
13219done
13220
13221
13222if test "x$ac_cv_header_zlib_h" = "xyes"; then
13223save_LIBS="$LIBS"
13224LIBS=""
13225ZLIB_LIBS=""
13226have_zlib=no
13227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
13228$as_echo_n "checking for library containing inflateEnd... " >&6; }
13229if ${ac_cv_search_inflateEnd+:} false; then :
13230  $as_echo_n "(cached) " >&6
13231else
13232  ac_func_search_save_LIBS=$LIBS
13233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234/* end confdefs.h.  */
13235
13236/* Override any GCC internal prototype to avoid an error.
13237   Use char because int might match the return type of a GCC
13238   builtin and then its argument prototype would still apply.  */
13239#ifdef __cplusplus
13240extern "C"
13241#endif
13242char inflateEnd ();
13243int
13244main ()
13245{
13246return inflateEnd ();
13247  ;
13248  return 0;
13249}
13250_ACEOF
13251for ac_lib in '' z; do
13252  if test -z "$ac_lib"; then
13253    ac_res="none required"
13254  else
13255    ac_res=-l$ac_lib
13256    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13257  fi
13258  if ac_fn_c_try_link "$LINENO"; then :
13259  ac_cv_search_inflateEnd=$ac_res
13260fi
13261rm -f core conftest.err conftest.$ac_objext \
13262    conftest$ac_exeext
13263  if ${ac_cv_search_inflateEnd+:} false; then :
13264  break
13265fi
13266done
13267if ${ac_cv_search_inflateEnd+:} false; then :
13268
13269else
13270  ac_cv_search_inflateEnd=no
13271fi
13272rm conftest.$ac_ext
13273LIBS=$ac_func_search_save_LIBS
13274fi
13275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
13276$as_echo "$ac_cv_search_inflateEnd" >&6; }
13277ac_res=$ac_cv_search_inflateEnd
13278if test "$ac_res" != no; then :
13279  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13280  have_zlib=yes
13281	ZLIB_LIBS="$LIBS"
13282
13283$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
13284
13285fi
13286
13287LIBS="$save_LIBS"
13288
13289fi
13290 if test "$have_zlib" = "yes"; then
13291  ZLIB_REGRESS_TRUE=
13292  ZLIB_REGRESS_FALSE='#'
13293else
13294  ZLIB_REGRESS_TRUE='#'
13295  ZLIB_REGRESS_FALSE=
13296fi
13297
13298
13299if test "$bwin32" = true; then
13300  EV_LIB_WS32=-lws2_32
13301  EV_LIB_GDI=-lgdi32
13302else
13303  EV_LIB_WS32=
13304  EV_LIB_GDI=
13305fi
13306
13307
13308
13309
13310# Check whether --enable-largefile was given.
13311if test "${enable_largefile+set}" = set; then :
13312  enableval=$enable_largefile;
13313fi
13314
13315if test "$enable_largefile" != no; then
13316
13317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13318$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13319if ${ac_cv_sys_largefile_CC+:} false; then :
13320  $as_echo_n "(cached) " >&6
13321else
13322  ac_cv_sys_largefile_CC=no
13323     if test "$GCC" != yes; then
13324       ac_save_CC=$CC
13325       while :; do
13326	 # IRIX 6.2 and later do not support large files by default,
13327	 # so use the C compiler's -n32 option if that helps.
13328	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329/* end confdefs.h.  */
13330#include <sys/types.h>
13331 /* Check that off_t can represent 2**63 - 1 correctly.
13332    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13333    since some C++ compilers masquerading as C compilers
13334    incorrectly reject 9223372036854775807.  */
13335#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13336  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13337		       && LARGE_OFF_T % 2147483647 == 1)
13338		      ? 1 : -1];
13339int
13340main ()
13341{
13342
13343  ;
13344  return 0;
13345}
13346_ACEOF
13347	 if ac_fn_c_try_compile "$LINENO"; then :
13348  break
13349fi
13350rm -f core conftest.err conftest.$ac_objext
13351	 CC="$CC -n32"
13352	 if ac_fn_c_try_compile "$LINENO"; then :
13353  ac_cv_sys_largefile_CC=' -n32'; break
13354fi
13355rm -f core conftest.err conftest.$ac_objext
13356	 break
13357       done
13358       CC=$ac_save_CC
13359       rm -f conftest.$ac_ext
13360    fi
13361fi
13362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13363$as_echo "$ac_cv_sys_largefile_CC" >&6; }
13364  if test "$ac_cv_sys_largefile_CC" != no; then
13365    CC=$CC$ac_cv_sys_largefile_CC
13366  fi
13367
13368  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13369$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13370if ${ac_cv_sys_file_offset_bits+:} false; then :
13371  $as_echo_n "(cached) " >&6
13372else
13373  while :; do
13374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13375/* end confdefs.h.  */
13376#include <sys/types.h>
13377 /* Check that off_t can represent 2**63 - 1 correctly.
13378    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13379    since some C++ compilers masquerading as C compilers
13380    incorrectly reject 9223372036854775807.  */
13381#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13382  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13383		       && LARGE_OFF_T % 2147483647 == 1)
13384		      ? 1 : -1];
13385int
13386main ()
13387{
13388
13389  ;
13390  return 0;
13391}
13392_ACEOF
13393if ac_fn_c_try_compile "$LINENO"; then :
13394  ac_cv_sys_file_offset_bits=no; break
13395fi
13396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398/* end confdefs.h.  */
13399#define _FILE_OFFSET_BITS 64
13400#include <sys/types.h>
13401 /* Check that off_t can represent 2**63 - 1 correctly.
13402    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13403    since some C++ compilers masquerading as C compilers
13404    incorrectly reject 9223372036854775807.  */
13405#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13406  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13407		       && LARGE_OFF_T % 2147483647 == 1)
13408		      ? 1 : -1];
13409int
13410main ()
13411{
13412
13413  ;
13414  return 0;
13415}
13416_ACEOF
13417if ac_fn_c_try_compile "$LINENO"; then :
13418  ac_cv_sys_file_offset_bits=64; break
13419fi
13420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13421  ac_cv_sys_file_offset_bits=unknown
13422  break
13423done
13424fi
13425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13426$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13427case $ac_cv_sys_file_offset_bits in #(
13428  no | unknown) ;;
13429  *)
13430cat >>confdefs.h <<_ACEOF
13431#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13432_ACEOF
13433;;
13434esac
13435rm -rf conftest*
13436  if test $ac_cv_sys_file_offset_bits = unknown; then
13437    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13438$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13439if ${ac_cv_sys_large_files+:} false; then :
13440  $as_echo_n "(cached) " >&6
13441else
13442  while :; do
13443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13444/* end confdefs.h.  */
13445#include <sys/types.h>
13446 /* Check that off_t can represent 2**63 - 1 correctly.
13447    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13448    since some C++ compilers masquerading as C compilers
13449    incorrectly reject 9223372036854775807.  */
13450#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13451  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13452		       && LARGE_OFF_T % 2147483647 == 1)
13453		      ? 1 : -1];
13454int
13455main ()
13456{
13457
13458  ;
13459  return 0;
13460}
13461_ACEOF
13462if ac_fn_c_try_compile "$LINENO"; then :
13463  ac_cv_sys_large_files=no; break
13464fi
13465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467/* end confdefs.h.  */
13468#define _LARGE_FILES 1
13469#include <sys/types.h>
13470 /* Check that off_t can represent 2**63 - 1 correctly.
13471    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13472    since some C++ compilers masquerading as C compilers
13473    incorrectly reject 9223372036854775807.  */
13474#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13475  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13476		       && LARGE_OFF_T % 2147483647 == 1)
13477		      ? 1 : -1];
13478int
13479main ()
13480{
13481
13482  ;
13483  return 0;
13484}
13485_ACEOF
13486if ac_fn_c_try_compile "$LINENO"; then :
13487  ac_cv_sys_large_files=1; break
13488fi
13489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13490  ac_cv_sys_large_files=unknown
13491  break
13492done
13493fi
13494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13495$as_echo "$ac_cv_sys_large_files" >&6; }
13496case $ac_cv_sys_large_files in #(
13497  no | unknown) ;;
13498  *)
13499cat >>confdefs.h <<_ACEOF
13500#define _LARGE_FILES $ac_cv_sys_large_files
13501_ACEOF
13502;;
13503esac
13504rm -rf conftest*
13505  fi
13506
13507
13508fi
13509
13510
13511
13512
13513ntp_pkgconfig_min_version='0.15.0'
13514if test -n "$ac_tool_prefix"; then
13515  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13516set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13518$as_echo_n "checking for $ac_word... " >&6; }
13519if ${ac_cv_path_PKG_CONFIG+:} false; then :
13520  $as_echo_n "(cached) " >&6
13521else
13522  case $PKG_CONFIG in
13523  [\\/]* | ?:[\\/]*)
13524  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13525  ;;
13526  *)
13527  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13528for as_dir in $PATH
13529do
13530  IFS=$as_save_IFS
13531  test -z "$as_dir" && as_dir=.
13532    for ac_exec_ext in '' $ac_executable_extensions; do
13533  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13534    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13536    break 2
13537  fi
13538done
13539  done
13540IFS=$as_save_IFS
13541
13542  ;;
13543esac
13544fi
13545PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13546if test -n "$PKG_CONFIG"; then
13547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13548$as_echo "$PKG_CONFIG" >&6; }
13549else
13550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13551$as_echo "no" >&6; }
13552fi
13553
13554
13555fi
13556if test -z "$ac_cv_path_PKG_CONFIG"; then
13557  ac_pt_PKG_CONFIG=$PKG_CONFIG
13558  # Extract the first word of "pkg-config", so it can be a program name with args.
13559set dummy pkg-config; ac_word=$2
13560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13561$as_echo_n "checking for $ac_word... " >&6; }
13562if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13563  $as_echo_n "(cached) " >&6
13564else
13565  case $ac_pt_PKG_CONFIG in
13566  [\\/]* | ?:[\\/]*)
13567  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13568  ;;
13569  *)
13570  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571for as_dir in $PATH
13572do
13573  IFS=$as_save_IFS
13574  test -z "$as_dir" && as_dir=.
13575    for ac_exec_ext in '' $ac_executable_extensions; do
13576  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13577    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13578    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13579    break 2
13580  fi
13581done
13582  done
13583IFS=$as_save_IFS
13584
13585  ;;
13586esac
13587fi
13588ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13589if test -n "$ac_pt_PKG_CONFIG"; then
13590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13591$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13592else
13593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594$as_echo "no" >&6; }
13595fi
13596
13597  if test "x$ac_pt_PKG_CONFIG" = x; then
13598    PKG_CONFIG=""
13599  else
13600    case $cross_compiling:$ac_tool_warned in
13601yes:)
13602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13604ac_tool_warned=yes ;;
13605esac
13606    PKG_CONFIG=$ac_pt_PKG_CONFIG
13607  fi
13608else
13609  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13610fi
13611
13612{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
13613{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
13614
13615case "$PKG_CONFIG" in
13616 /*)
13617    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
13618$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
13619    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
13620	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13621$as_echo "yes" >&6; }
13622    else
13623	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13624$as_echo "no" >&6; }
13625	PKG_CONFIG=""
13626    fi
13627    ;;
13628esac
13629
13630
13631
13632
13633case "$enable_openssl" in
13634 yes)
13635    have_openssl=no
13636    case "$PKG_CONFIG" in
13637     '')
13638	;;
13639     *)
13640	OPENSSL_LIBS=`$PKG_CONFIG --libs openssl 2>/dev/null`
13641	case "$OPENSSL_LIBS" in
13642	 '') ;;
13643	 *) OPENSSL_LIBS="$OPENSSL_LIBS $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
13644	    have_openssl=yes
13645	    ;;
13646	esac
13647	OPENSSL_INCS=`$PKG_CONFIG --cflags openssl 2>/dev/null`
13648	;;
13649    esac
13650    case "$have_openssl" in
13651     yes) ;;
13652     *)
13653	save_LIBS="$LIBS"
13654	LIBS=""
13655	OPENSSL_LIBS=""
13656	for lib in crypto eay32; do
13657		# clear cache
13658		unset ac_cv_search_SSL_new
13659		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
13660$as_echo_n "checking for library containing SSL_new... " >&6; }
13661if ${ac_cv_search_SSL_new+:} false; then :
13662  $as_echo_n "(cached) " >&6
13663else
13664  ac_func_search_save_LIBS=$LIBS
13665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666/* end confdefs.h.  */
13667
13668/* Override any GCC internal prototype to avoid an error.
13669   Use char because int might match the return type of a GCC
13670   builtin and then its argument prototype would still apply.  */
13671#ifdef __cplusplus
13672extern "C"
13673#endif
13674char SSL_new ();
13675int
13676main ()
13677{
13678return SSL_new ();
13679  ;
13680  return 0;
13681}
13682_ACEOF
13683for ac_lib in '' ssl ssl32; do
13684  if test -z "$ac_lib"; then
13685    ac_res="none required"
13686  else
13687    ac_res=-l$ac_lib
13688    LIBS="-l$ac_lib -l$lib $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
13689  fi
13690  if ac_fn_c_try_link "$LINENO"; then :
13691  ac_cv_search_SSL_new=$ac_res
13692fi
13693rm -f core conftest.err conftest.$ac_objext \
13694    conftest$ac_exeext
13695  if ${ac_cv_search_SSL_new+:} false; then :
13696  break
13697fi
13698done
13699if ${ac_cv_search_SSL_new+:} false; then :
13700
13701else
13702  ac_cv_search_SSL_new=no
13703fi
13704rm conftest.$ac_ext
13705LIBS=$ac_func_search_save_LIBS
13706fi
13707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
13708$as_echo "$ac_cv_search_SSL_new" >&6; }
13709ac_res=$ac_cv_search_SSL_new
13710if test "$ac_res" != no; then :
13711  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13712  have_openssl=yes
13713		    OPENSSL_LIBS="$LIBS -l$lib $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
13714else
13715  have_openssl=no
13716fi
13717
13718		LIBS="$save_LIBS"
13719		test "$have_openssl" = "yes" && break
13720	done
13721	;;
13722    esac
13723    CPPFLAGS_SAVE=$CPPFLAGS
13724    CPPFLAGS="$CPPFLAGS $OPENSSL_INCS"
13725    for ac_header in openssl/ssl.h
13726do :
13727  ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
13728if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
13729  cat >>confdefs.h <<_ACEOF
13730#define HAVE_OPENSSL_SSL_H 1
13731_ACEOF
13732
13733else
13734  have_openssl=no
13735fi
13736
13737done
13738
13739    CPPFLAGS=$CPPFLAGS_SAVE
13740
13741
13742    case "$have_openssl" in
13743     yes)
13744$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
13745 ;;
13746     *) as_fn_error $? "openssl is a must but can not be found. You should add the \
13747directory containing \`openssl.pc' to the \`PKG_CONFIG_PATH' environment variable, \
13748or set \`CFLAGS' and \`LDFLAGS' directly for openssl, or use \`--disable-openssl' \
13749to disable support for openssl encryption" "$LINENO" 5
13750	;;
13751    esac
13752    ;;
13753esac
13754
13755# check if we have and should use openssl
13756 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
13757  OPENSSL_TRUE=
13758  OPENSSL_FALSE='#'
13759else
13760  OPENSSL_TRUE='#'
13761  OPENSSL_FALSE=
13762fi
13763
13764
13765
13766for ac_header in  \
13767  arpa/inet.h \
13768  fcntl.h \
13769  ifaddrs.h \
13770  mach/mach_time.h \
13771  mach/mach.h \
13772  netdb.h \
13773  netinet/in.h \
13774  netinet/in6.h \
13775  netinet/tcp.h \
13776  sys/un.h \
13777  poll.h \
13778  port.h \
13779  stdarg.h \
13780  stddef.h \
13781  sys/devpoll.h \
13782  sys/epoll.h \
13783  sys/event.h \
13784  sys/eventfd.h \
13785  sys/ioctl.h \
13786  sys/mman.h \
13787  sys/param.h \
13788  sys/queue.h \
13789  sys/resource.h \
13790  sys/select.h \
13791  sys/sendfile.h \
13792  sys/socket.h \
13793  sys/stat.h \
13794  sys/time.h \
13795  sys/timerfd.h \
13796  sys/uio.h \
13797  sys/wait.h \
13798  sys/random.h \
13799  errno.h \
13800  afunix.h \
13801
13802do :
13803  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13804ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13805if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13806  cat >>confdefs.h <<_ACEOF
13807#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13808_ACEOF
13809
13810fi
13811
13812done
13813
13814
13815case "${host_os}" in
13816    linux*) ;;
13817    *)
13818        for ac_header in sys/sysctl.h
13819do :
13820  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
13821        #ifdef HAVE_SYS_PARAM_H
13822        #include <sys/param.h>
13823        #endif
13824
13825"
13826if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
13827  cat >>confdefs.h <<_ACEOF
13828#define HAVE_SYS_SYSCTL_H 1
13829_ACEOF
13830
13831fi
13832
13833done
13834
13835esac
13836
13837if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
13838	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
13839$as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
13840	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841/* end confdefs.h.  */
13842
13843#include <sys/queue.h>
13844#ifdef TAILQ_FOREACH
13845 yes
13846#endif
13847
13848_ACEOF
13849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13850  $EGREP "yes" >/dev/null 2>&1; then :
13851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13852$as_echo "yes" >&6; }
13853
13854$as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h
13855
13856else
13857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13858$as_echo "no" >&6; }
13859
13860fi
13861rm -f conftest*
13862
13863fi
13864
13865if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13866	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
13867$as_echo_n "checking for timeradd in sys/time.h... " >&6; }
13868	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13869/* end confdefs.h.  */
13870
13871#include <sys/time.h>
13872#ifdef timeradd
13873 yes
13874#endif
13875
13876_ACEOF
13877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13878  $EGREP "yes" >/dev/null 2>&1; then :
13879
13880$as_echo "#define HAVE_TIMERADD 1" >>confdefs.h
13881
13882	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13883$as_echo "yes" >&6; }
13884else
13885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13886$as_echo "no" >&6; }
13887
13888fi
13889rm -f conftest*
13890
13891fi
13892
13893if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13894	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
13895$as_echo_n "checking for timercmp in sys/time.h... " >&6; }
13896	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13897/* end confdefs.h.  */
13898
13899#include <sys/time.h>
13900#ifdef timercmp
13901 yes
13902#endif
13903
13904_ACEOF
13905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13906  $EGREP "yes" >/dev/null 2>&1; then :
13907
13908$as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h
13909
13910	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13911$as_echo "yes" >&6; }
13912else
13913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13914$as_echo "no" >&6; }
13915
13916fi
13917rm -f conftest*
13918
13919fi
13920
13921if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13922	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
13923$as_echo_n "checking for timerclear in sys/time.h... " >&6; }
13924	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13925/* end confdefs.h.  */
13926
13927#include <sys/time.h>
13928#ifdef timerclear
13929 yes
13930#endif
13931
13932_ACEOF
13933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13934  $EGREP "yes" >/dev/null 2>&1; then :
13935
13936$as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h
13937
13938	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13939$as_echo "yes" >&6; }
13940else
13941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13942$as_echo "no" >&6; }
13943
13944fi
13945rm -f conftest*
13946
13947fi
13948
13949if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13950	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
13951$as_echo_n "checking for timerisset in sys/time.h... " >&6; }
13952	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13953/* end confdefs.h.  */
13954
13955#include <sys/time.h>
13956#ifdef timerisset
13957 yes
13958#endif
13959
13960_ACEOF
13961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13962  $EGREP "yes" >/dev/null 2>&1; then :
13963
13964$as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h
13965
13966	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13967$as_echo "yes" >&6; }
13968else
13969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13970$as_echo "no" >&6; }
13971
13972fi
13973rm -f conftest*
13974
13975fi
13976
13977if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
13978	ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
13979	     #include <sys/sysctl.h>
13980
13981"
13982if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
13983  ac_have_decl=1
13984else
13985  ac_have_decl=0
13986fi
13987
13988cat >>confdefs.h <<_ACEOF
13989#define HAVE_DECL_CTL_KERN $ac_have_decl
13990_ACEOF
13991ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
13992	     #include <sys/sysctl.h>
13993
13994"
13995if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
13996  ac_have_decl=1
13997else
13998  ac_have_decl=0
13999fi
14000
14001cat >>confdefs.h <<_ACEOF
14002#define HAVE_DECL_KERN_ARND $ac_have_decl
14003_ACEOF
14004
14005fi
14006
14007 if test x$bwin32 = xtrue; then
14008  BUILD_WIN32_TRUE=
14009  BUILD_WIN32_FALSE='#'
14010else
14011  BUILD_WIN32_TRUE='#'
14012  BUILD_WIN32_FALSE=
14013fi
14014
14015 if test x$cygwin = xtrue; then
14016  BUILD_CYGWIN_TRUE=
14017  BUILD_CYGWIN_FALSE='#'
14018else
14019  BUILD_CYGWIN_TRUE='#'
14020  BUILD_CYGWIN_FALSE=
14021fi
14022
14023 if test x$midipix = xtrue; then
14024  BUILD_MIDIPIX_TRUE=
14025  BUILD_MIDIPIX_FALSE='#'
14026else
14027  BUILD_MIDIPIX_TRUE='#'
14028  BUILD_MIDIPIX_FALSE=
14029fi
14030
14031 if test x$bwin32 = xtrue || test x$cygwin = xtrue || test x$midipix = xtrue; then
14032  BUILD_WITH_NO_UNDEFINED_TRUE=
14033  BUILD_WITH_NO_UNDEFINED_FALSE='#'
14034else
14035  BUILD_WITH_NO_UNDEFINED_TRUE='#'
14036  BUILD_WITH_NO_UNDEFINED_FALSE=
14037fi
14038
14039
14040if test x$bwin32 = xtrue; then
14041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
14042$as_echo_n "checking for main in -lws2_32... " >&6; }
14043if ${ac_cv_lib_ws2_32_main+:} false; then :
14044  $as_echo_n "(cached) " >&6
14045else
14046  ac_check_lib_save_LIBS=$LIBS
14047LIBS="-lws2_32  $LIBS"
14048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049/* end confdefs.h.  */
14050
14051
14052int
14053main ()
14054{
14055return main ();
14056  ;
14057  return 0;
14058}
14059_ACEOF
14060if ac_fn_c_try_link "$LINENO"; then :
14061  ac_cv_lib_ws2_32_main=yes
14062else
14063  ac_cv_lib_ws2_32_main=no
14064fi
14065rm -f core conftest.err conftest.$ac_objext \
14066    conftest$ac_exeext conftest.$ac_ext
14067LIBS=$ac_check_lib_save_LIBS
14068fi
14069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
14070$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
14071if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
14072  cat >>confdefs.h <<_ACEOF
14073#define HAVE_LIBWS2_32 1
14074_ACEOF
14075
14076  LIBS="-lws2_32 $LIBS"
14077
14078fi
14079ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
14080
14081fi
14082
14083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14084$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14085if ${ac_cv_c_const+:} false; then :
14086  $as_echo_n "(cached) " >&6
14087else
14088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089/* end confdefs.h.  */
14090
14091int
14092main ()
14093{
14094
14095#ifndef __cplusplus
14096  /* Ultrix mips cc rejects this sort of thing.  */
14097  typedef int charset[2];
14098  const charset cs = { 0, 0 };
14099  /* SunOS 4.1.1 cc rejects this.  */
14100  char const *const *pcpcc;
14101  char **ppc;
14102  /* NEC SVR4.0.2 mips cc rejects this.  */
14103  struct point {int x, y;};
14104  static struct point const zero = {0,0};
14105  /* AIX XL C 1.02.0.0 rejects this.
14106     It does not let you subtract one const X* pointer from another in
14107     an arm of an if-expression whose if-part is not a constant
14108     expression */
14109  const char *g = "string";
14110  pcpcc = &g + (g ? g-g : 0);
14111  /* HPUX 7.0 cc rejects these. */
14112  ++pcpcc;
14113  ppc = (char**) pcpcc;
14114  pcpcc = (char const *const *) ppc;
14115  { /* SCO 3.2v4 cc rejects this sort of thing.  */
14116    char tx;
14117    char *t = &tx;
14118    char const *s = 0 ? (char *) 0 : (char const *) 0;
14119
14120    *t++ = 0;
14121    if (s) return 0;
14122  }
14123  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14124    int x[] = {25, 17};
14125    const int *foo = &x[0];
14126    ++foo;
14127  }
14128  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14129    typedef const int *iptr;
14130    iptr p = 0;
14131    ++p;
14132  }
14133  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14134       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14135    struct s { int j; const int *ap[3]; } bx;
14136    struct s *b = &bx; b->j = 5;
14137  }
14138  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14139    const int foo = 10;
14140    if (!foo) return 0;
14141  }
14142  return !cs[0] && !zero.x;
14143#endif
14144
14145  ;
14146  return 0;
14147}
14148_ACEOF
14149if ac_fn_c_try_compile "$LINENO"; then :
14150  ac_cv_c_const=yes
14151else
14152  ac_cv_c_const=no
14153fi
14154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14155fi
14156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14157$as_echo "$ac_cv_c_const" >&6; }
14158if test $ac_cv_c_const = no; then
14159
14160$as_echo "#define const /**/" >>confdefs.h
14161
14162fi
14163
14164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14165$as_echo_n "checking for inline... " >&6; }
14166if ${ac_cv_c_inline+:} false; then :
14167  $as_echo_n "(cached) " >&6
14168else
14169  ac_cv_c_inline=no
14170for ac_kw in inline __inline__ __inline; do
14171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14172/* end confdefs.h.  */
14173#ifndef __cplusplus
14174typedef int foo_t;
14175static $ac_kw foo_t static_foo () {return 0; }
14176$ac_kw foo_t foo () {return 0; }
14177#endif
14178
14179_ACEOF
14180if ac_fn_c_try_compile "$LINENO"; then :
14181  ac_cv_c_inline=$ac_kw
14182fi
14183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14184  test "$ac_cv_c_inline" != no && break
14185done
14186
14187fi
14188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14189$as_echo "$ac_cv_c_inline" >&6; }
14190
14191case $ac_cv_c_inline in
14192  inline | yes) ;;
14193  *)
14194    case $ac_cv_c_inline in
14195      no) ac_val=;;
14196      *) ac_val=$ac_cv_c_inline;;
14197    esac
14198    cat >>confdefs.h <<_ACEOF
14199#ifndef __cplusplus
14200#define inline $ac_val
14201#endif
14202_ACEOF
14203    ;;
14204esac
14205
14206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14207$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14208if ${ac_cv_header_time+:} false; then :
14209  $as_echo_n "(cached) " >&6
14210else
14211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14212/* end confdefs.h.  */
14213#include <sys/types.h>
14214#include <sys/time.h>
14215#include <time.h>
14216
14217int
14218main ()
14219{
14220if ((struct tm *) 0)
14221return 0;
14222  ;
14223  return 0;
14224}
14225_ACEOF
14226if ac_fn_c_try_compile "$LINENO"; then :
14227  ac_cv_header_time=yes
14228else
14229  ac_cv_header_time=no
14230fi
14231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14232fi
14233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14234$as_echo "$ac_cv_header_time" >&6; }
14235if test $ac_cv_header_time = yes; then
14236
14237$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14238
14239fi
14240
14241
14242for ac_func in  \
14243  accept4 \
14244  arc4random \
14245  arc4random_buf \
14246  arc4random_addrandom \
14247  eventfd \
14248  epoll_create1 \
14249  fcntl \
14250  getegid \
14251  geteuid \
14252  getifaddrs \
14253  gettimeofday \
14254  issetugid \
14255  mach_absolute_time \
14256  mmap \
14257  nanosleep \
14258  pipe \
14259  pipe2 \
14260  putenv \
14261  sendfile \
14262  setenv \
14263  setrlimit \
14264  sigaction \
14265  signal \
14266  splice \
14267  strlcpy \
14268  strsep \
14269  strtok_r \
14270  strtoll \
14271  sysctl \
14272  timerfd_create \
14273  umask \
14274  unsetenv \
14275  usleep \
14276  vasprintf \
14277  getrandom \
14278
14279do :
14280  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14281ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14282if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14283  cat >>confdefs.h <<_ACEOF
14284#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14285_ACEOF
14286
14287fi
14288done
14289
14290
14291if test x$bwin32 = xtrue; then :
14292  for ac_func in _gmtime64_s
14293do :
14294  ac_fn_c_check_func "$LINENO" "_gmtime64_s" "ac_cv_func__gmtime64_s"
14295if test "x$ac_cv_func__gmtime64_s" = xyes; then :
14296  cat >>confdefs.h <<_ACEOF
14297#define HAVE__GMTIME64_S 1
14298_ACEOF
14299
14300else
14301  for ac_func in _gmtime64
14302do :
14303  ac_fn_c_check_func "$LINENO" "_gmtime64" "ac_cv_func__gmtime64"
14304if test "x$ac_cv_func__gmtime64" = xyes; then :
14305  cat >>confdefs.h <<_ACEOF
14306#define HAVE__GMTIME64 1
14307_ACEOF
14308
14309fi
14310done
14311
14312fi
14313done
14314
14315
14316fi
14317
14318 if test x"$ac_cv_func_strlcpy" = xno; then
14319  STRLCPY_IMPL_TRUE=
14320  STRLCPY_IMPL_FALSE='#'
14321else
14322  STRLCPY_IMPL_TRUE='#'
14323  STRLCPY_IMPL_FALSE=
14324fi
14325
14326
14327
14328
14329if test x$bwin32 = xtrue; then :
14330  	if test "x#ifdef _WIN32
14331    #include <winsock2.h>
14332    #include <ws2tcpip.h>
14333    #endif" = "x"; then :
14334  as_fn_error $? "header not privided" "$LINENO" 5
14335fi
14336				if test "x#ifdef _WIN32
14337    #include <winsock2.h>
14338    #include <ws2tcpip.h>
14339    #endif" = "x"; then :
14340  as_fn_error $? "header not privided" "$LINENO" 5
14341fi
14342
14343	ac_fn_c_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_decl" "		#ifdef _WIN32
14344    #include <winsock2.h>
14345    #include <ws2tcpip.h>
14346    #endif
14347"
14348if test "x$ac_cv_have_decl_decl" = xyes; then :
14349
14350$as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
14351
14352fi
14353
14354					if test "x#ifdef _WIN32
14355    #include <winsock2.h>
14356    #include <ws2tcpip.h>
14357    #endif" = "x"; then :
14358  as_fn_error $? "header not privided" "$LINENO" 5
14359fi
14360
14361	ac_fn_c_check_decl "$LINENO" "getprotobynumber" "ac_cv_have_decl_decl" "		#ifdef _WIN32
14362    #include <winsock2.h>
14363    #include <ws2tcpip.h>
14364    #endif
14365"
14366if test "x$ac_cv_have_decl_decl" = xyes; then :
14367
14368$as_echo "#define HAVE_GETPROTOBYNUMBER 1" >>confdefs.h
14369
14370fi
14371
14372					if test "x#ifdef _WIN32
14373    #include <winsock2.h>
14374    #include <ws2tcpip.h>
14375    #endif" = "x"; then :
14376  as_fn_error $? "header not privided" "$LINENO" 5
14377fi
14378
14379	ac_fn_c_check_decl "$LINENO" "getservbyname" "ac_cv_have_decl_decl" "		#ifdef _WIN32
14380    #include <winsock2.h>
14381    #include <ws2tcpip.h>
14382    #endif
14383"
14384if test "x$ac_cv_have_decl_decl" = xyes; then :
14385
14386$as_echo "#define HAVE_GETSERVBYNAME 1" >>confdefs.h
14387
14388fi
14389
14390					if test "x#ifdef _WIN32
14391    #include <winsock2.h>
14392    #include <ws2tcpip.h>
14393    #endif" = "x"; then :
14394  as_fn_error $? "header not privided" "$LINENO" 5
14395fi
14396
14397	ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_decl" "		#ifdef _WIN32
14398    #include <winsock2.h>
14399    #include <ws2tcpip.h>
14400    #endif
14401"
14402if test "x$ac_cv_have_decl_decl" = xyes; then :
14403
14404$as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
14405
14406fi
14407
14408					if test "x#ifdef _WIN32
14409    #include <winsock2.h>
14410    #include <ws2tcpip.h>
14411    #endif" = "x"; then :
14412  as_fn_error $? "header not privided" "$LINENO" 5
14413fi
14414
14415	ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_decl" "		#ifdef _WIN32
14416    #include <winsock2.h>
14417    #include <ws2tcpip.h>
14418    #endif
14419"
14420if test "x$ac_cv_have_decl_decl" = xyes; then :
14421
14422$as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
14423
14424fi
14425
14426					if test "x#ifdef _WIN32
14427    #include <winsock2.h>
14428    #include <ws2tcpip.h>
14429    #endif" = "x"; then :
14430  as_fn_error $? "header not privided" "$LINENO" 5
14431fi
14432
14433	ac_fn_c_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_decl" "		#ifdef _WIN32
14434    #include <winsock2.h>
14435    #include <ws2tcpip.h>
14436    #endif
14437"
14438if test "x$ac_cv_have_decl_decl" = xyes; then :
14439
14440$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
14441
14442fi
14443
14444
14445
14446else
14447  for ac_func in getnameinfo getprotobynumber getservbyname inet_ntop inet_pton
14448do :
14449  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14450ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14451if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14452  cat >>confdefs.h <<_ACEOF
14453#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14454_ACEOF
14455
14456fi
14457done
14458
14459
14460fi
14461
14462
14463
14464if test x$bwin32 = xfalse; then :
14465
14466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
14467$as_echo_n "checking for getaddrinfo... " >&6; }
14468if ${libevent_cv_getaddrinfo+:} false; then :
14469  $as_echo_n "(cached) " >&6
14470else
14471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472/* end confdefs.h.  */
14473
14474		#ifdef HAVE_NETDB_H
14475		#include <netdb.h>
14476		#endif
14477
14478int
14479main ()
14480{
14481
14482		getaddrinfo;
14483
14484
14485  ;
14486  return 0;
14487}
14488_ACEOF
14489if ac_fn_c_try_link "$LINENO"; then :
14490  libevent_cv_getaddrinfo=yes
14491else
14492  libevent_cv_getaddrinfo=no
14493
14494fi
14495rm -f core conftest.err conftest.$ac_objext \
14496    conftest$ac_exeext conftest.$ac_ext
14497
14498fi
14499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
14500$as_echo "$libevent_cv_getaddrinfo" >&6; }
14501if test "$libevent_cv_getaddrinfo" = "yes" ; then
14502
14503$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
14504
14505else
14506
14507# Check for gethostbyname_r in all its glorious incompatible versions.
14508#   (This is cut-and-pasted from Tor, which based its logic on
14509#   Python's configure.in.)
14510
14511
14512ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
14513if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
14514
14515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
14516$as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
14517  OLD_CFLAGS=$CFLAGS
14518  CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
14519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14520/* end confdefs.h.  */
14521
14522#include <netdb.h>
14523
14524int
14525main ()
14526{
14527
14528    char *cp1, *cp2;
14529    struct hostent *h1, *h2;
14530    int i1, i2;
14531    (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
14532
14533  ;
14534  return 0;
14535}
14536_ACEOF
14537if ac_fn_c_try_compile "$LINENO"; then :
14538
14539    $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14540
14541
14542$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
14543
14544    { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
14545$as_echo "6" >&6; }
14546
14547else
14548
14549    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550/* end confdefs.h.  */
14551
14552#include <netdb.h>
14553
14554int
14555main ()
14556{
14557
14558      char *cp1, *cp2;
14559      struct hostent *h1;
14560      int i1, i2;
14561      (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
14562
14563  ;
14564  return 0;
14565}
14566_ACEOF
14567if ac_fn_c_try_compile "$LINENO"; then :
14568
14569      $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14570
14571
14572$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
14573
14574      { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
14575$as_echo "5" >&6; }
14576
14577else
14578
14579      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580/* end confdefs.h.  */
14581
14582#include <netdb.h>
14583
14584int
14585main ()
14586{
14587
14588       char *cp1;
14589       struct hostent *h1;
14590       struct hostent_data hd;
14591       (void) gethostbyname_r(cp1,h1,&hd);
14592
14593  ;
14594  return 0;
14595}
14596_ACEOF
14597if ac_fn_c_try_compile "$LINENO"; then :
14598
14599       $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14600
14601
14602$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
14603
14604       { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
14605$as_echo "3" >&6; }
14606
14607else
14608
14609       { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
14610$as_echo "0" >&6; }
14611
14612fi
14613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14614
14615fi
14616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14617
14618fi
14619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14620 CFLAGS=$OLD_CFLAGS
14621
14622fi
14623
14624
14625fi
14626
14627fi
14628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
14629$as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
14630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14631/* end confdefs.h.  */
14632
14633#define _GNU_SOURCE 1
14634#include <fcntl.h>
14635#ifdef F_SETFD
14636yes
14637#endif
14638
14639_ACEOF
14640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14641  $EGREP "yes" >/dev/null 2>&1; then :
14642
14643$as_echo "#define HAVE_SETFD 1" >>confdefs.h
14644
14645	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14646$as_echo "yes" >&6; }
14647else
14648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14649$as_echo "no" >&6; }
14650fi
14651rm -f conftest*
14652
14653
14654needsignal=no
14655haveselect=no
14656if test x$bwin32 != xtrue; then
14657    for ac_func in select
14658do :
14659  ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14660if test "x$ac_cv_func_select" = xyes; then :
14661  cat >>confdefs.h <<_ACEOF
14662#define HAVE_SELECT 1
14663_ACEOF
14664 haveselect=yes
14665fi
14666done
14667
14668    if test "x$haveselect" = "xyes" ; then
14669 	needsignal=yes
14670    fi
14671fi
14672 if test "x$haveselect" = "xyes"; then
14673  SELECT_BACKEND_TRUE=
14674  SELECT_BACKEND_FALSE='#'
14675else
14676  SELECT_BACKEND_TRUE='#'
14677  SELECT_BACKEND_FALSE=
14678fi
14679
14680
14681havepoll=no
14682for ac_func in poll
14683do :
14684  ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
14685if test "x$ac_cv_func_poll" = xyes; then :
14686  cat >>confdefs.h <<_ACEOF
14687#define HAVE_POLL 1
14688_ACEOF
14689 havepoll=yes
14690fi
14691done
14692
14693if test "x$havepoll" = "xyes" ; then
14694	needsignal=yes
14695fi
14696 if test "x$havepoll" = "xyes"; then
14697  POLL_BACKEND_TRUE=
14698  POLL_BACKEND_FALSE='#'
14699else
14700  POLL_BACKEND_TRUE='#'
14701  POLL_BACKEND_FALSE=
14702fi
14703
14704
14705havedevpoll=no
14706if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
14707
14708$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
14709
14710fi
14711 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
14712  DEVPOLL_BACKEND_TRUE=
14713  DEVPOLL_BACKEND_FALSE='#'
14714else
14715  DEVPOLL_BACKEND_TRUE='#'
14716  DEVPOLL_BACKEND_FALSE=
14717fi
14718
14719
14720havekqueue=no
14721if test "x$ac_cv_header_sys_event_h" = "xyes"; then
14722	for ac_func in kqueue
14723do :
14724  ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
14725if test "x$ac_cv_func_kqueue" = xyes; then :
14726  cat >>confdefs.h <<_ACEOF
14727#define HAVE_KQUEUE 1
14728_ACEOF
14729 havekqueue=yes
14730fi
14731done
14732
14733	if test "x$havekqueue" = "xyes" ; then
14734		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
14735$as_echo_n "checking for working kqueue... " >&6; }
14736		if test "$cross_compiling" = yes; then :
14737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14738$as_echo "no" >&6; }
14739
14740else
14741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14742/* end confdefs.h.  */
14743
14744#ifdef HAVE_STDLIB_H
14745#include <stdlib.h>
14746#endif
14747#ifdef HAVE_STRING_H
14748#include <string.h>
14749#endif
14750#include <sys/types.h>
14751#include <sys/time.h>
14752#include <sys/event.h>
14753#include <stdio.h>
14754#include <unistd.h>
14755#include <fcntl.h>
14756
14757int
14758main ()
14759{
14760
14761	int kq;
14762	int n;
14763	int fd[2];
14764	struct kevent ev;
14765	struct timespec ts;
14766	char buf[80000];
14767
14768	if (pipe(fd) == -1)
14769  		return 1;
14770	if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
14771		return 1;
14772
14773	while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
14774		;
14775
14776	if ((kq = kqueue()) == -1)
14777		return 1;
14778
14779	memset(&ev, 0, sizeof(ev));
14780	ev.ident = fd[1];
14781	ev.filter = EVFILT_WRITE;
14782	ev.flags = EV_ADD | EV_ENABLE;
14783	n = kevent(kq, &ev, 1, NULL, 0, NULL);
14784	if (n == -1)
14785		return 1;
14786
14787	read(fd[0], buf, sizeof(buf));
14788
14789	ts.tv_sec = 0;
14790	ts.tv_nsec = 0;
14791	n = kevent(kq, NULL, 0, &ev, 1, &ts);
14792	if (n == -1 || n == 0)
14793		return 1;
14794
14795	return 0;
14796
14797
14798  ;
14799  return 0;
14800}
14801_ACEOF
14802if ac_fn_c_try_run "$LINENO"; then :
14803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14804$as_echo "yes" >&6; }
14805
14806$as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
14807
14808      havekqueue=yes
14809
14810else
14811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14812$as_echo "no" >&6; }
14813fi
14814rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14815  conftest.$ac_objext conftest.beam conftest.$ac_ext
14816fi
14817
14818	fi
14819fi
14820 if test "x$havekqueue" = "xyes"; then
14821  KQUEUE_BACKEND_TRUE=
14822  KQUEUE_BACKEND_FALSE='#'
14823else
14824  KQUEUE_BACKEND_TRUE='#'
14825  KQUEUE_BACKEND_FALSE=
14826fi
14827
14828
14829haveepollsyscall=no
14830haveepoll=no
14831for ac_func in epoll_ctl
14832do :
14833  ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
14834if test "x$ac_cv_func_epoll_ctl" = xyes; then :
14835  cat >>confdefs.h <<_ACEOF
14836#define HAVE_EPOLL_CTL 1
14837_ACEOF
14838 haveepoll=yes
14839fi
14840done
14841
14842if test "x$haveepoll" = "xyes" ; then
14843
14844$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
14845
14846	needsignal=yes
14847fi
14848if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
14849	if test "x$haveepoll" = "xno" ; then
14850		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
14851$as_echo_n "checking for epoll system call... " >&6; }
14852		if test "$cross_compiling" = yes; then :
14853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14854$as_echo "no" >&6; }
14855
14856else
14857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858/* end confdefs.h.  */
14859
14860#include <stdint.h>
14861#include <sys/param.h>
14862#include <sys/types.h>
14863#include <sys/syscall.h>
14864#include <sys/epoll.h>
14865#include <unistd.h>
14866
14867int
14868epoll_create(int size)
14869{
14870	return (syscall(__NR_epoll_create, size));
14871}
14872
14873int
14874main ()
14875{
14876
14877	int epfd;
14878
14879	epfd = epoll_create(256);
14880	return (epfd == -1 ? 1 : 0);
14881
14882
14883  ;
14884  return 0;
14885}
14886_ACEOF
14887if ac_fn_c_try_run "$LINENO"; then :
14888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14889$as_echo "yes" >&6; }
14890
14891$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
14892
14893      needsignal=yes
14894      have_epoll=yes
14895      case " $LIBOBJS " in
14896  *" epoll_sub.$ac_objext "* ) ;;
14897  *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
14898 ;;
14899esac
14900
14901
14902else
14903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14904$as_echo "no" >&6; }
14905fi
14906rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14907  conftest.$ac_objext conftest.beam conftest.$ac_ext
14908fi
14909
14910	fi
14911fi
14912 if test "x$haveepoll" = "xyes"; then
14913  EPOLL_BACKEND_TRUE=
14914  EPOLL_BACKEND_FALSE='#'
14915else
14916  EPOLL_BACKEND_TRUE='#'
14917  EPOLL_BACKEND_FALSE=
14918fi
14919
14920
14921haveeventports=no
14922for ac_func in port_create
14923do :
14924  ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
14925if test "x$ac_cv_func_port_create" = xyes; then :
14926  cat >>confdefs.h <<_ACEOF
14927#define HAVE_PORT_CREATE 1
14928_ACEOF
14929 haveeventports=yes
14930fi
14931done
14932
14933if test "x$haveeventports" = "xyes" ; then
14934
14935$as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h
14936
14937	needsignal=yes
14938fi
14939 if test "x$haveeventports" = "xyes"; then
14940  EVPORT_BACKEND_TRUE=
14941  EVPORT_BACKEND_FALSE='#'
14942else
14943  EVPORT_BACKEND_TRUE='#'
14944  EVPORT_BACKEND_FALSE=
14945fi
14946
14947
14948if test "x$bwin32" = "xtrue"; then
14949	needsignal=yes
14950fi
14951
14952 if test "x$needsignal" = "xyes"; then
14953  SIGNAL_SUPPORT_TRUE=
14954  SIGNAL_SUPPORT_FALSE='#'
14955else
14956  SIGNAL_SUPPORT_TRUE='#'
14957  SIGNAL_SUPPORT_FALSE=
14958fi
14959
14960
14961ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14962if test "x$ac_cv_type_pid_t" = xyes; then :
14963
14964else
14965
14966cat >>confdefs.h <<_ACEOF
14967#define pid_t int
14968_ACEOF
14969
14970fi
14971
14972ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14973if test "x$ac_cv_type_size_t" = xyes; then :
14974
14975else
14976
14977cat >>confdefs.h <<_ACEOF
14978#define size_t unsigned int
14979_ACEOF
14980
14981fi
14982
14983ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14984if test "x$ac_cv_type_ssize_t" = xyes; then :
14985
14986else
14987
14988cat >>confdefs.h <<_ACEOF
14989#define ssize_t int
14990_ACEOF
14991
14992fi
14993
14994
14995ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
14996#include <stdint.h>
14997#elif defined(HAVE_INTTYPES_H)
14998#include <inttypes.h>
14999#endif
15000#ifdef HAVE_SYS_TYPES_H
15001#include <sys/types.h>
15002#endif
15003"
15004if test "x$ac_cv_type_uint64_t" = xyes; then :
15005
15006cat >>confdefs.h <<_ACEOF
15007#define HAVE_UINT64_T 1
15008_ACEOF
15009
15010
15011fi
15012ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
15013#include <stdint.h>
15014#elif defined(HAVE_INTTYPES_H)
15015#include <inttypes.h>
15016#endif
15017#ifdef HAVE_SYS_TYPES_H
15018#include <sys/types.h>
15019#endif
15020"
15021if test "x$ac_cv_type_uint32_t" = xyes; then :
15022
15023cat >>confdefs.h <<_ACEOF
15024#define HAVE_UINT32_T 1
15025_ACEOF
15026
15027
15028fi
15029ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
15030#include <stdint.h>
15031#elif defined(HAVE_INTTYPES_H)
15032#include <inttypes.h>
15033#endif
15034#ifdef HAVE_SYS_TYPES_H
15035#include <sys/types.h>
15036#endif
15037"
15038if test "x$ac_cv_type_uint16_t" = xyes; then :
15039
15040cat >>confdefs.h <<_ACEOF
15041#define HAVE_UINT16_T 1
15042_ACEOF
15043
15044
15045fi
15046ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
15047#include <stdint.h>
15048#elif defined(HAVE_INTTYPES_H)
15049#include <inttypes.h>
15050#endif
15051#ifdef HAVE_SYS_TYPES_H
15052#include <sys/types.h>
15053#endif
15054"
15055if test "x$ac_cv_type_uint8_t" = xyes; then :
15056
15057cat >>confdefs.h <<_ACEOF
15058#define HAVE_UINT8_T 1
15059_ACEOF
15060
15061
15062fi
15063ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
15064#include <stdint.h>
15065#elif defined(HAVE_INTTYPES_H)
15066#include <inttypes.h>
15067#endif
15068#ifdef HAVE_SYS_TYPES_H
15069#include <sys/types.h>
15070#endif
15071"
15072if test "x$ac_cv_type_uintptr_t" = xyes; then :
15073
15074cat >>confdefs.h <<_ACEOF
15075#define HAVE_UINTPTR_T 1
15076_ACEOF
15077
15078
15079fi
15080
15081
15082ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
15083#include <sys/types.h>
15084#endif
15085#ifdef HAVE_SYS_SELECT_H
15086#include <sys/select.h>
15087#endif
15088"
15089if test "x$ac_cv_type_fd_mask" = xyes; then :
15090
15091cat >>confdefs.h <<_ACEOF
15092#define HAVE_FD_MASK 1
15093_ACEOF
15094
15095
15096fi
15097
15098
15099# The cast to long int works around a bug in the HP C Compiler
15100# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15101# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15102# This bug is HP SR number 8606223364.
15103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
15104$as_echo_n "checking size of long long... " >&6; }
15105if ${ac_cv_sizeof_long_long+:} false; then :
15106  $as_echo_n "(cached) " >&6
15107else
15108  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
15109
15110else
15111  if test "$ac_cv_type_long_long" = yes; then
15112     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15113$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15114as_fn_error 77 "cannot compute sizeof (long long)
15115See \`config.log' for more details" "$LINENO" 5; }
15116   else
15117     ac_cv_sizeof_long_long=0
15118   fi
15119fi
15120
15121fi
15122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
15123$as_echo "$ac_cv_sizeof_long_long" >&6; }
15124
15125
15126
15127cat >>confdefs.h <<_ACEOF
15128#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15129_ACEOF
15130
15131
15132# The cast to long int works around a bug in the HP C Compiler
15133# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15134# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15135# This bug is HP SR number 8606223364.
15136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15137$as_echo_n "checking size of long... " >&6; }
15138if ${ac_cv_sizeof_long+:} false; then :
15139  $as_echo_n "(cached) " >&6
15140else
15141  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
15142
15143else
15144  if test "$ac_cv_type_long" = yes; then
15145     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15147as_fn_error 77 "cannot compute sizeof (long)
15148See \`config.log' for more details" "$LINENO" 5; }
15149   else
15150     ac_cv_sizeof_long=0
15151   fi
15152fi
15153
15154fi
15155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15156$as_echo "$ac_cv_sizeof_long" >&6; }
15157
15158
15159
15160cat >>confdefs.h <<_ACEOF
15161#define SIZEOF_LONG $ac_cv_sizeof_long
15162_ACEOF
15163
15164
15165# The cast to long int works around a bug in the HP C Compiler
15166# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15167# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15168# This bug is HP SR number 8606223364.
15169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15170$as_echo_n "checking size of int... " >&6; }
15171if ${ac_cv_sizeof_int+:} false; then :
15172  $as_echo_n "(cached) " >&6
15173else
15174  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
15175
15176else
15177  if test "$ac_cv_type_int" = yes; then
15178     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15179$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15180as_fn_error 77 "cannot compute sizeof (int)
15181See \`config.log' for more details" "$LINENO" 5; }
15182   else
15183     ac_cv_sizeof_int=0
15184   fi
15185fi
15186
15187fi
15188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15189$as_echo "$ac_cv_sizeof_int" >&6; }
15190
15191
15192
15193cat >>confdefs.h <<_ACEOF
15194#define SIZEOF_INT $ac_cv_sizeof_int
15195_ACEOF
15196
15197
15198# The cast to long int works around a bug in the HP C Compiler
15199# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15200# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15201# This bug is HP SR number 8606223364.
15202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15203$as_echo_n "checking size of short... " >&6; }
15204if ${ac_cv_sizeof_short+:} false; then :
15205  $as_echo_n "(cached) " >&6
15206else
15207  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
15208
15209else
15210  if test "$ac_cv_type_short" = yes; then
15211     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15213as_fn_error 77 "cannot compute sizeof (short)
15214See \`config.log' for more details" "$LINENO" 5; }
15215   else
15216     ac_cv_sizeof_short=0
15217   fi
15218fi
15219
15220fi
15221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15222$as_echo "$ac_cv_sizeof_short" >&6; }
15223
15224
15225
15226cat >>confdefs.h <<_ACEOF
15227#define SIZEOF_SHORT $ac_cv_sizeof_short
15228_ACEOF
15229
15230
15231# The cast to long int works around a bug in the HP C Compiler
15232# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15233# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15234# This bug is HP SR number 8606223364.
15235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15236$as_echo_n "checking size of size_t... " >&6; }
15237if ${ac_cv_sizeof_size_t+:} false; then :
15238  $as_echo_n "(cached) " >&6
15239else
15240  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
15241
15242else
15243  if test "$ac_cv_type_size_t" = yes; then
15244     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15246as_fn_error 77 "cannot compute sizeof (size_t)
15247See \`config.log' for more details" "$LINENO" 5; }
15248   else
15249     ac_cv_sizeof_size_t=0
15250   fi
15251fi
15252
15253fi
15254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15255$as_echo "$ac_cv_sizeof_size_t" >&6; }
15256
15257
15258
15259cat >>confdefs.h <<_ACEOF
15260#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15261_ACEOF
15262
15263
15264# The cast to long int works around a bug in the HP C Compiler
15265# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15266# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15267# This bug is HP SR number 8606223364.
15268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15269$as_echo_n "checking size of void *... " >&6; }
15270if ${ac_cv_sizeof_void_p+:} false; then :
15271  $as_echo_n "(cached) " >&6
15272else
15273  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
15274
15275else
15276  if test "$ac_cv_type_void_p" = yes; then
15277     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15279as_fn_error 77 "cannot compute sizeof (void *)
15280See \`config.log' for more details" "$LINENO" 5; }
15281   else
15282     ac_cv_sizeof_void_p=0
15283   fi
15284fi
15285
15286fi
15287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15288$as_echo "$ac_cv_sizeof_void_p" >&6; }
15289
15290
15291
15292cat >>confdefs.h <<_ACEOF
15293#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15294_ACEOF
15295
15296
15297# The cast to long int works around a bug in the HP C Compiler
15298# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15299# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15300# This bug is HP SR number 8606223364.
15301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15302$as_echo_n "checking size of off_t... " >&6; }
15303if ${ac_cv_sizeof_off_t+:} false; then :
15304  $as_echo_n "(cached) " >&6
15305else
15306  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
15307
15308else
15309  if test "$ac_cv_type_off_t" = yes; then
15310     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15312as_fn_error 77 "cannot compute sizeof (off_t)
15313See \`config.log' for more details" "$LINENO" 5; }
15314   else
15315     ac_cv_sizeof_off_t=0
15316   fi
15317fi
15318
15319fi
15320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15321$as_echo "$ac_cv_sizeof_off_t" >&6; }
15322
15323
15324
15325cat >>confdefs.h <<_ACEOF
15326#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
15327_ACEOF
15328
15329
15330# The cast to long int works around a bug in the HP C Compiler
15331# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15332# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15333# This bug is HP SR number 8606223364.
15334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
15335$as_echo_n "checking size of time_t... " >&6; }
15336if ${ac_cv_sizeof_time_t+:} false; then :
15337  $as_echo_n "(cached) " >&6
15338else
15339  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
15340
15341else
15342  if test "$ac_cv_type_time_t" = yes; then
15343     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15345as_fn_error 77 "cannot compute sizeof (time_t)
15346See \`config.log' for more details" "$LINENO" 5; }
15347   else
15348     ac_cv_sizeof_time_t=0
15349   fi
15350fi
15351
15352fi
15353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
15354$as_echo "$ac_cv_sizeof_time_t" >&6; }
15355
15356
15357
15358cat >>confdefs.h <<_ACEOF
15359#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
15360_ACEOF
15361
15362
15363
15364ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE 1
15365#include <sys/types.h>
15366#ifdef HAVE_NETINET_IN_H
15367#include <netinet/in.h>
15368#endif
15369#ifdef HAVE_NETINET_IN6_H
15370#include <netinet/in6.h>
15371#endif
15372#ifdef HAVE_SYS_UN_H
15373#include <sys/un.h>
15374#endif
15375#ifdef HAVE_SYS_SOCKET_H
15376#include <sys/socket.h>
15377#endif
15378#ifdef HAVE_NETDB_H
15379#include <netdb.h>
15380#endif
15381#ifdef _WIN32
15382#define WIN32_WINNT 0x400
15383#define _WIN32_WINNT 0x400
15384#define WIN32_LEAN_AND_MEAN
15385#if defined(_MSC_VER) && (_MSC_VER < 1300)
15386#include <winsock.h>
15387#else
15388#include <winsock2.h>
15389#include <ws2tcpip.h>
15390#endif
15391#endif
15392
15393"
15394if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
15395
15396cat >>confdefs.h <<_ACEOF
15397#define HAVE_STRUCT_IN6_ADDR 1
15398_ACEOF
15399
15400
15401fi
15402ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE 1
15403#include <sys/types.h>
15404#ifdef HAVE_NETINET_IN_H
15405#include <netinet/in.h>
15406#endif
15407#ifdef HAVE_NETINET_IN6_H
15408#include <netinet/in6.h>
15409#endif
15410#ifdef HAVE_SYS_UN_H
15411#include <sys/un.h>
15412#endif
15413#ifdef HAVE_SYS_SOCKET_H
15414#include <sys/socket.h>
15415#endif
15416#ifdef HAVE_NETDB_H
15417#include <netdb.h>
15418#endif
15419#ifdef _WIN32
15420#define WIN32_WINNT 0x400
15421#define _WIN32_WINNT 0x400
15422#define WIN32_LEAN_AND_MEAN
15423#if defined(_MSC_VER) && (_MSC_VER < 1300)
15424#include <winsock.h>
15425#else
15426#include <winsock2.h>
15427#include <ws2tcpip.h>
15428#endif
15429#endif
15430
15431"
15432if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
15433
15434cat >>confdefs.h <<_ACEOF
15435#define HAVE_STRUCT_SOCKADDR_IN6 1
15436_ACEOF
15437
15438
15439fi
15440ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#define _GNU_SOURCE 1
15441#include <sys/types.h>
15442#ifdef HAVE_NETINET_IN_H
15443#include <netinet/in.h>
15444#endif
15445#ifdef HAVE_NETINET_IN6_H
15446#include <netinet/in6.h>
15447#endif
15448#ifdef HAVE_SYS_UN_H
15449#include <sys/un.h>
15450#endif
15451#ifdef HAVE_SYS_SOCKET_H
15452#include <sys/socket.h>
15453#endif
15454#ifdef HAVE_NETDB_H
15455#include <netdb.h>
15456#endif
15457#ifdef _WIN32
15458#define WIN32_WINNT 0x400
15459#define _WIN32_WINNT 0x400
15460#define WIN32_LEAN_AND_MEAN
15461#if defined(_MSC_VER) && (_MSC_VER < 1300)
15462#include <winsock.h>
15463#else
15464#include <winsock2.h>
15465#include <ws2tcpip.h>
15466#endif
15467#endif
15468
15469"
15470if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then :
15471
15472cat >>confdefs.h <<_ACEOF
15473#define HAVE_STRUCT_SOCKADDR_UN 1
15474_ACEOF
15475
15476
15477fi
15478ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE 1
15479#include <sys/types.h>
15480#ifdef HAVE_NETINET_IN_H
15481#include <netinet/in.h>
15482#endif
15483#ifdef HAVE_NETINET_IN6_H
15484#include <netinet/in6.h>
15485#endif
15486#ifdef HAVE_SYS_UN_H
15487#include <sys/un.h>
15488#endif
15489#ifdef HAVE_SYS_SOCKET_H
15490#include <sys/socket.h>
15491#endif
15492#ifdef HAVE_NETDB_H
15493#include <netdb.h>
15494#endif
15495#ifdef _WIN32
15496#define WIN32_WINNT 0x400
15497#define _WIN32_WINNT 0x400
15498#define WIN32_LEAN_AND_MEAN
15499#if defined(_MSC_VER) && (_MSC_VER < 1300)
15500#include <winsock.h>
15501#else
15502#include <winsock2.h>
15503#include <ws2tcpip.h>
15504#endif
15505#endif
15506
15507"
15508if test "x$ac_cv_type_sa_family_t" = xyes; then :
15509
15510cat >>confdefs.h <<_ACEOF
15511#define HAVE_SA_FAMILY_T 1
15512_ACEOF
15513
15514
15515fi
15516ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE 1
15517#include <sys/types.h>
15518#ifdef HAVE_NETINET_IN_H
15519#include <netinet/in.h>
15520#endif
15521#ifdef HAVE_NETINET_IN6_H
15522#include <netinet/in6.h>
15523#endif
15524#ifdef HAVE_SYS_UN_H
15525#include <sys/un.h>
15526#endif
15527#ifdef HAVE_SYS_SOCKET_H
15528#include <sys/socket.h>
15529#endif
15530#ifdef HAVE_NETDB_H
15531#include <netdb.h>
15532#endif
15533#ifdef _WIN32
15534#define WIN32_WINNT 0x400
15535#define _WIN32_WINNT 0x400
15536#define WIN32_LEAN_AND_MEAN
15537#if defined(_MSC_VER) && (_MSC_VER < 1300)
15538#include <winsock.h>
15539#else
15540#include <winsock2.h>
15541#include <ws2tcpip.h>
15542#endif
15543#endif
15544
15545"
15546if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
15547
15548cat >>confdefs.h <<_ACEOF
15549#define HAVE_STRUCT_ADDRINFO 1
15550_ACEOF
15551
15552
15553fi
15554ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE 1
15555#include <sys/types.h>
15556#ifdef HAVE_NETINET_IN_H
15557#include <netinet/in.h>
15558#endif
15559#ifdef HAVE_NETINET_IN6_H
15560#include <netinet/in6.h>
15561#endif
15562#ifdef HAVE_SYS_UN_H
15563#include <sys/un.h>
15564#endif
15565#ifdef HAVE_SYS_SOCKET_H
15566#include <sys/socket.h>
15567#endif
15568#ifdef HAVE_NETDB_H
15569#include <netdb.h>
15570#endif
15571#ifdef _WIN32
15572#define WIN32_WINNT 0x400
15573#define _WIN32_WINNT 0x400
15574#define WIN32_LEAN_AND_MEAN
15575#if defined(_MSC_VER) && (_MSC_VER < 1300)
15576#include <winsock.h>
15577#else
15578#include <winsock2.h>
15579#include <ws2tcpip.h>
15580#endif
15581#endif
15582
15583"
15584if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
15585
15586cat >>confdefs.h <<_ACEOF
15587#define HAVE_STRUCT_SOCKADDR_STORAGE 1
15588_ACEOF
15589
15590
15591fi
15592
15593ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
15594#ifdef HAVE_NETINET_IN_H
15595#include <netinet/in.h>
15596#endif
15597#ifdef HAVE_NETINET_IN6_H
15598#include <netinet/in6.h>
15599#endif
15600#ifdef HAVE_SYS_SOCKET_H
15601#include <sys/socket.h>
15602#endif
15603#ifdef _WIN32
15604#define WIN32_WINNT 0x400
15605#define _WIN32_WINNT 0x400
15606#define WIN32_LEAN_AND_MEAN
15607#if defined(_MSC_VER) && (_MSC_VER < 1300)
15608#include <winsock.h>
15609#else
15610#include <winsock2.h>
15611#include <ws2tcpip.h>
15612#endif
15613#endif
15614
15615"
15616if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
15617
15618cat >>confdefs.h <<_ACEOF
15619#define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
15620_ACEOF
15621
15622
15623fi
15624ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
15625#ifdef HAVE_NETINET_IN_H
15626#include <netinet/in.h>
15627#endif
15628#ifdef HAVE_NETINET_IN6_H
15629#include <netinet/in6.h>
15630#endif
15631#ifdef HAVE_SYS_SOCKET_H
15632#include <sys/socket.h>
15633#endif
15634#ifdef _WIN32
15635#define WIN32_WINNT 0x400
15636#define _WIN32_WINNT 0x400
15637#define WIN32_LEAN_AND_MEAN
15638#if defined(_MSC_VER) && (_MSC_VER < 1300)
15639#include <winsock.h>
15640#else
15641#include <winsock2.h>
15642#include <ws2tcpip.h>
15643#endif
15644#endif
15645
15646"
15647if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
15648
15649cat >>confdefs.h <<_ACEOF
15650#define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
15651_ACEOF
15652
15653
15654fi
15655ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
15656#ifdef HAVE_NETINET_IN_H
15657#include <netinet/in.h>
15658#endif
15659#ifdef HAVE_NETINET_IN6_H
15660#include <netinet/in6.h>
15661#endif
15662#ifdef HAVE_SYS_SOCKET_H
15663#include <sys/socket.h>
15664#endif
15665#ifdef _WIN32
15666#define WIN32_WINNT 0x400
15667#define _WIN32_WINNT 0x400
15668#define WIN32_LEAN_AND_MEAN
15669#if defined(_MSC_VER) && (_MSC_VER < 1300)
15670#include <winsock.h>
15671#else
15672#include <winsock2.h>
15673#include <ws2tcpip.h>
15674#endif
15675#endif
15676
15677"
15678if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
15679
15680cat >>confdefs.h <<_ACEOF
15681#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
15682_ACEOF
15683
15684
15685fi
15686ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
15687#ifdef HAVE_NETINET_IN_H
15688#include <netinet/in.h>
15689#endif
15690#ifdef HAVE_NETINET_IN6_H
15691#include <netinet/in6.h>
15692#endif
15693#ifdef HAVE_SYS_SOCKET_H
15694#include <sys/socket.h>
15695#endif
15696#ifdef _WIN32
15697#define WIN32_WINNT 0x400
15698#define _WIN32_WINNT 0x400
15699#define WIN32_LEAN_AND_MEAN
15700#if defined(_MSC_VER) && (_MSC_VER < 1300)
15701#include <winsock.h>
15702#else
15703#include <winsock2.h>
15704#include <ws2tcpip.h>
15705#endif
15706#endif
15707
15708"
15709if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
15710
15711cat >>confdefs.h <<_ACEOF
15712#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
15713_ACEOF
15714
15715
15716fi
15717ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
15718#ifdef HAVE_NETINET_IN_H
15719#include <netinet/in.h>
15720#endif
15721#ifdef HAVE_NETINET_IN6_H
15722#include <netinet/in6.h>
15723#endif
15724#ifdef HAVE_SYS_SOCKET_H
15725#include <sys/socket.h>
15726#endif
15727#ifdef _WIN32
15728#define WIN32_WINNT 0x400
15729#define _WIN32_WINNT 0x400
15730#define WIN32_LEAN_AND_MEAN
15731#if defined(_MSC_VER) && (_MSC_VER < 1300)
15732#include <winsock.h>
15733#else
15734#include <winsock2.h>
15735#include <ws2tcpip.h>
15736#endif
15737#endif
15738
15739"
15740if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
15741
15742cat >>confdefs.h <<_ACEOF
15743#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15744_ACEOF
15745
15746
15747fi
15748ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
15749#ifdef HAVE_NETINET_IN_H
15750#include <netinet/in.h>
15751#endif
15752#ifdef HAVE_NETINET_IN6_H
15753#include <netinet/in6.h>
15754#endif
15755#ifdef HAVE_SYS_SOCKET_H
15756#include <sys/socket.h>
15757#endif
15758#ifdef _WIN32
15759#define WIN32_WINNT 0x400
15760#define _WIN32_WINNT 0x400
15761#define WIN32_LEAN_AND_MEAN
15762#if defined(_MSC_VER) && (_MSC_VER < 1300)
15763#include <winsock.h>
15764#else
15765#include <winsock2.h>
15766#include <ws2tcpip.h>
15767#endif
15768#endif
15769
15770"
15771if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
15772
15773cat >>confdefs.h <<_ACEOF
15774#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15775_ACEOF
15776
15777
15778fi
15779
15780
15781ac_fn_c_check_type "$LINENO" "struct linger" "ac_cv_type_struct_linger" "
15782#ifdef HAVE_SYS_SOCKET_H
15783#include <sys/socket.h>
15784#endif
15785#ifdef _WIN32
15786#include <winsock2.h>
15787#endif
15788
15789"
15790if test "x$ac_cv_type_struct_linger" = xyes; then :
15791
15792cat >>confdefs.h <<_ACEOF
15793#define HAVE_STRUCT_LINGER 1
15794_ACEOF
15795
15796
15797fi
15798
15799
15800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
15801$as_echo_n "checking for socklen_t... " >&6; }
15802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803/* end confdefs.h.  */
15804
15805 #include <sys/types.h>
15806 #ifdef _WIN32
15807 #include <ws2tcpip.h>
15808 #else
15809 #include <sys/socket.h>
15810 #endif
15811
15812int
15813main ()
15814{
15815socklen_t x;
15816
15817  ;
15818  return 0;
15819}
15820_ACEOF
15821if ac_fn_c_try_compile "$LINENO"; then :
15822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15823$as_echo "yes" >&6; }
15824else
15825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15826$as_echo "no" >&6; }
15827
15828$as_echo "#define socklen_t unsigned int" >>confdefs.h
15829
15830
15831fi
15832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15833
15834# __func__/__FUNCTION__ is not a macros in general
15835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
15836$as_echo_n "checking whether our compiler supports __func__... " >&6; }
15837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15838/* end confdefs.h.  */
15839
15840int
15841main ()
15842{
15843 const char *cp = __func__;
15844
15845  ;
15846  return 0;
15847}
15848_ACEOF
15849if ac_fn_c_try_compile "$LINENO"; then :
15850
15851$as_echo "#define HAVE___func__ 1" >>confdefs.h
15852
15853    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15854$as_echo "yes" >&6; }
15855
15856else
15857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15858$as_echo "no" >&6; }
15859
15860fi
15861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
15863$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
15864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15865/* end confdefs.h.  */
15866
15867int
15868main ()
15869{
15870 const char *cp = __FUNCTION__;
15871
15872  ;
15873  return 0;
15874}
15875_ACEOF
15876if ac_fn_c_try_compile "$LINENO"; then :
15877
15878$as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
15879
15880    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15881$as_echo "yes" >&6; }
15882
15883else
15884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15885$as_echo "no" >&6; }
15886
15887fi
15888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15889
15890# check if we can compile with pthreads
15891have_pthreads=no
15892if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
15893
15894
15895
15896ac_ext=c
15897ac_cpp='$CPP $CPPFLAGS'
15898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15900ac_compiler_gnu=$ac_cv_c_compiler_gnu
15901
15902acx_pthread_ok=no
15903
15904# We used to check for pthread.h first, but this fails if pthread.h
15905# requires special compiler flags (e.g. on True64 or Sequent).
15906# It gets checked for in the link test anyway.
15907
15908# First of all, check if the user has set any of the PTHREAD_LIBS,
15909# etcetera environment variables, and if threads linking works using
15910# them:
15911if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15912        save_CFLAGS="$CFLAGS"
15913        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15914        save_LIBS="$LIBS"
15915        LIBS="$PTHREAD_LIBS $LIBS"
15916        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15917$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15918        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15919/* end confdefs.h.  */
15920
15921/* Override any GCC internal prototype to avoid an error.
15922   Use char because int might match the return type of a GCC
15923   builtin and then its argument prototype would still apply.  */
15924#ifdef __cplusplus
15925extern "C"
15926#endif
15927char pthread_join ();
15928int
15929main ()
15930{
15931return pthread_join ();
15932  ;
15933  return 0;
15934}
15935_ACEOF
15936if ac_fn_c_try_link "$LINENO"; then :
15937  acx_pthread_ok=yes
15938fi
15939rm -f core conftest.err conftest.$ac_objext \
15940    conftest$ac_exeext conftest.$ac_ext
15941        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15942$as_echo "$acx_pthread_ok" >&6; }
15943        if test x"$acx_pthread_ok" = xno; then
15944                PTHREAD_LIBS=""
15945                PTHREAD_CFLAGS=""
15946        fi
15947        LIBS="$save_LIBS"
15948        CFLAGS="$save_CFLAGS"
15949fi
15950
15951# We must check for the threads library under a number of different
15952# names; the ordering is very important because some systems
15953# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15954# libraries is broken (non-POSIX).
15955
15956# Create a list of thread flags to try.  Items starting with a "-" are
15957# C compiler flags, and other items are library names, except for "none"
15958# which indicates that we try without any flags at all, and "pthread-config"
15959# which is a program returning the flags for the Pth emulation library.
15960
15961acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15962
15963# The ordering *is* (sometimes) important.  Some notes on the
15964# individual items follow:
15965
15966# pthreads: AIX (must check this before -lpthread)
15967# none: in case threads are in libc; should be tried before -Kthread and
15968#       other compiler flags to prevent continual compiler warnings
15969# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15970# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15971# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15972# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15973# -pthreads: Solaris/gcc
15974# -mthreads: Mingw32/gcc, Lynx/gcc
15975# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15976#      doesn't hurt to check since this sometimes defines pthreads too;
15977#      also defines -D_REENTRANT)
15978#      ... -mt is also the pthreads flag for HP/aCC
15979# pthread: Linux, etcetera
15980# --thread-safe: KAI C++
15981# pthread-config: use pthread-config program (for GNU Pth library)
15982
15983case "${host_cpu}-${host_os}" in
15984        *solaris*)
15985
15986        # On Solaris (at least, for some versions), libc contains stubbed
15987        # (non-functional) versions of the pthreads routines, so link-based
15988        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
15989        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15990        # a function called by this macro, so we could check for that, but
15991        # who knows whether they'll stub that too in a future libc.)  So,
15992        # we'll just look for -pthreads and -lpthread first:
15993
15994        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15995        ;;
15996esac
15997
15998if test x"$acx_pthread_ok" = xno; then
15999for flag in $acx_pthread_flags; do
16000
16001        case $flag in
16002                none)
16003                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16004$as_echo_n "checking whether pthreads work without any flags... " >&6; }
16005                ;;
16006
16007                -*)
16008                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16009$as_echo_n "checking whether pthreads work with $flag... " >&6; }
16010                PTHREAD_CFLAGS="$flag"
16011                ;;
16012
16013		pthread-config)
16014		# Extract the first word of "pthread-config", so it can be a program name with args.
16015set dummy pthread-config; ac_word=$2
16016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16017$as_echo_n "checking for $ac_word... " >&6; }
16018if ${ac_cv_prog_acx_pthread_config+:} false; then :
16019  $as_echo_n "(cached) " >&6
16020else
16021  if test -n "$acx_pthread_config"; then
16022  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16023else
16024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16025for as_dir in $PATH
16026do
16027  IFS=$as_save_IFS
16028  test -z "$as_dir" && as_dir=.
16029    for ac_exec_ext in '' $ac_executable_extensions; do
16030  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16031    ac_cv_prog_acx_pthread_config="yes"
16032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16033    break 2
16034  fi
16035done
16036  done
16037IFS=$as_save_IFS
16038
16039  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16040fi
16041fi
16042acx_pthread_config=$ac_cv_prog_acx_pthread_config
16043if test -n "$acx_pthread_config"; then
16044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
16045$as_echo "$acx_pthread_config" >&6; }
16046else
16047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16048$as_echo "no" >&6; }
16049fi
16050
16051
16052		if test x"$acx_pthread_config" = xno; then continue; fi
16053		PTHREAD_CFLAGS="`pthread-config --cflags`"
16054		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16055		;;
16056
16057                *)
16058                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16059$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16060                PTHREAD_LIBS="-l$flag"
16061                ;;
16062        esac
16063
16064        save_LIBS="$LIBS"
16065        save_CFLAGS="$CFLAGS"
16066        LIBS="$PTHREAD_LIBS $LIBS"
16067        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16068
16069        # Check for various functions.  We must include pthread.h,
16070        # since some functions may be macros.  (On the Sequent, we
16071        # need a special flag -Kthread to make this header compile.)
16072        # We check for pthread_join because it is in -lpthread on IRIX
16073        # while pthread_create is in libc.  We check for pthread_attr_init
16074        # due to DEC craziness with -lpthreads.  We check for
16075        # pthread_cleanup_push because it is one of the few pthread
16076        # functions on Solaris that doesn't have a non-functional libc stub.
16077        # We try pthread_create on general principles.
16078        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16079/* end confdefs.h.  */
16080#include <pthread.h>
16081int
16082main ()
16083{
16084pthread_t th; pthread_join(th, 0);
16085                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
16086                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16087  ;
16088  return 0;
16089}
16090_ACEOF
16091if ac_fn_c_try_link "$LINENO"; then :
16092  acx_pthread_ok=yes
16093fi
16094rm -f core conftest.err conftest.$ac_objext \
16095    conftest$ac_exeext conftest.$ac_ext
16096
16097        LIBS="$save_LIBS"
16098        CFLAGS="$save_CFLAGS"
16099
16100        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16101$as_echo "$acx_pthread_ok" >&6; }
16102        if test "x$acx_pthread_ok" = xyes; then
16103                break;
16104        fi
16105
16106        PTHREAD_LIBS=""
16107        PTHREAD_CFLAGS=""
16108done
16109fi
16110
16111# Various other checks:
16112if test "x$acx_pthread_ok" = xyes; then
16113        save_LIBS="$LIBS"
16114        LIBS="$PTHREAD_LIBS $LIBS"
16115        save_CFLAGS="$CFLAGS"
16116        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16117
16118        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16119	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16120$as_echo_n "checking for joinable pthread attribute... " >&6; }
16121	attr_name=unknown
16122	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16123	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16124/* end confdefs.h.  */
16125#include <pthread.h>
16126int
16127main ()
16128{
16129int attr=$attr; return attr;
16130  ;
16131  return 0;
16132}
16133_ACEOF
16134if ac_fn_c_try_link "$LINENO"; then :
16135  attr_name=$attr; break
16136fi
16137rm -f core conftest.err conftest.$ac_objext \
16138    conftest$ac_exeext conftest.$ac_ext
16139	done
16140        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16141$as_echo "$attr_name" >&6; }
16142        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16143
16144cat >>confdefs.h <<_ACEOF
16145#define PTHREAD_CREATE_JOINABLE $attr_name
16146_ACEOF
16147
16148        fi
16149
16150        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16151$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16152        flag=no
16153        case "${host_cpu}-${host_os}" in
16154            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16155            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16156        esac
16157        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
16158$as_echo "${flag}" >&6; }
16159        if test "x$flag" != xno; then
16160            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16161        fi
16162
16163        LIBS="$save_LIBS"
16164        CFLAGS="$save_CFLAGS"
16165
16166        # More AIX lossage: must compile with xlc_r or cc_r
16167	if test x"$GCC" != xyes; then
16168          for ac_prog in xlc_r cc_r
16169do
16170  # Extract the first word of "$ac_prog", so it can be a program name with args.
16171set dummy $ac_prog; ac_word=$2
16172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16173$as_echo_n "checking for $ac_word... " >&6; }
16174if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16175  $as_echo_n "(cached) " >&6
16176else
16177  if test -n "$PTHREAD_CC"; then
16178  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16179else
16180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16181for as_dir in $PATH
16182do
16183  IFS=$as_save_IFS
16184  test -z "$as_dir" && as_dir=.
16185    for ac_exec_ext in '' $ac_executable_extensions; do
16186  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16187    ac_cv_prog_PTHREAD_CC="$ac_prog"
16188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16189    break 2
16190  fi
16191done
16192  done
16193IFS=$as_save_IFS
16194
16195fi
16196fi
16197PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16198if test -n "$PTHREAD_CC"; then
16199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16200$as_echo "$PTHREAD_CC" >&6; }
16201else
16202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16203$as_echo "no" >&6; }
16204fi
16205
16206
16207  test -n "$PTHREAD_CC" && break
16208done
16209test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
16210
16211        else
16212          PTHREAD_CC=$CC
16213	fi
16214else
16215        PTHREAD_CC="$CC"
16216fi
16217
16218
16219
16220
16221
16222# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16223if test x"$acx_pthread_ok" = xyes; then
16224
16225
16226$as_echo "#define HAVE_PTHREADS 1" >>confdefs.h
16227
16228	have_pthreads=yes
16229        :
16230else
16231        acx_pthread_ok=no
16232
16233fi
16234ac_ext=c
16235ac_cpp='$CPP $CPPFLAGS'
16236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16238ac_compiler_gnu=$ac_cv_c_compiler_gnu
16239
16240
16241  CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16242  # The cast to long int works around a bug in the HP C Compiler
16243# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16244# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16245# This bug is HP SR number 8606223364.
16246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
16247$as_echo_n "checking size of pthread_t... " >&6; }
16248if ${ac_cv_sizeof_pthread_t+:} false; then :
16249  $as_echo_n "(cached) " >&6
16250else
16251  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "$ac_includes_default
16252      #include <pthread.h>
16253
16254"; then :
16255
16256else
16257  if test "$ac_cv_type_pthread_t" = yes; then
16258     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16260as_fn_error 77 "cannot compute sizeof (pthread_t)
16261See \`config.log' for more details" "$LINENO" 5; }
16262   else
16263     ac_cv_sizeof_pthread_t=0
16264   fi
16265fi
16266
16267fi
16268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
16269$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
16270
16271
16272
16273cat >>confdefs.h <<_ACEOF
16274#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
16275_ACEOF
16276
16277
16278fi
16279 if test "$enable_thread_support" != "no"; then
16280  THREADS_TRUE=
16281  THREADS_FALSE='#'
16282else
16283  THREADS_TRUE='#'
16284  THREADS_FALSE=
16285fi
16286
16287 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
16288  PTHREADS_TRUE=
16289  PTHREADS_FALSE='#'
16290else
16291  PTHREADS_TRUE='#'
16292  PTHREADS_FALSE=
16293fi
16294
16295
16296# check if we should compile locking into the library
16297if test x$enable_thread_support = xno; then
16298
16299$as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
16300
16301fi
16302
16303# check if we should hard-code the mm functions.
16304if test x$enable_malloc_replacement = xno; then
16305
16306$as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
16307
16308fi
16309
16310# check if we should hard-code debugging out
16311if test x$enable_debug_mode = xno; then
16312
16313$as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h
16314
16315fi
16316
16317# check if we should enable verbose debugging
16318if test x$enable_verbose_debug = xyes; then
16319	CFLAGS="$CFLAGS -DUSE_DEBUG"
16320fi
16321
16322# check if we have and should use openssl
16323 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
16324  OPENSSL_TRUE=
16325  OPENSSL_FALSE='#'
16326else
16327  OPENSSL_TRUE='#'
16328  OPENSSL_FALSE=
16329fi
16330
16331
16332# Add some more warnings which we use in development but not in the
16333# released versions.  (Some relevant gcc versions can't handle these.)
16334if test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then
16335
16336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16337/* end confdefs.h.  */
16338
16339int
16340main ()
16341{
16342
16343#if !defined(__GNUC__) || (__GNUC__ < 4)
16344#error
16345#endif
16346  ;
16347  return 0;
16348}
16349_ACEOF
16350if ac_fn_c_try_compile "$LINENO"; then :
16351  have_gcc4=yes
16352else
16353  have_gcc4=no
16354fi
16355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16356
16357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16358/* end confdefs.h.  */
16359
16360int
16361main ()
16362{
16363
16364#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
16365#error
16366#endif
16367  ;
16368  return 0;
16369}
16370_ACEOF
16371if ac_fn_c_try_compile "$LINENO"; then :
16372  have_gcc42=yes
16373else
16374  have_gcc42=no
16375fi
16376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16377
16378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16379/* end confdefs.h.  */
16380
16381int
16382main ()
16383{
16384
16385#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
16386#error
16387#endif
16388  ;
16389  return 0;
16390}
16391_ACEOF
16392if ac_fn_c_try_compile "$LINENO"; then :
16393  have_gcc45=yes
16394else
16395  have_gcc45=no
16396fi
16397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16398
16399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16400/* end confdefs.h.  */
16401
16402int
16403main ()
16404{
16405
16406#if !defined(__clang__)
16407#error
16408#endif
16409  ;
16410  return 0;
16411}
16412_ACEOF
16413if ac_fn_c_try_compile "$LINENO"; then :
16414  have_clang=yes
16415else
16416  have_clang=no
16417fi
16418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16419
16420  # -W is the same as -Wextra
16421  CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wmissing-declarations -Wnested-externs -Wbad-function-cast"
16422  if test x$enable_gcc_warnings = xyes; then
16423    CFLAGS="$CFLAGS -Werror"
16424  fi
16425
16426  CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
16427
16428  if test x$have_gcc4 = xyes ; then
16429    # These warnings break gcc 3.3.5 and work on gcc 4.0.2
16430    CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
16431    #CFLAGS="$CFLAGS -Wold-style-definition"
16432  fi
16433
16434  if test x$have_gcc42 = xyes ; then
16435    # These warnings break gcc 4.0.2 and work on gcc 4.2
16436    CFLAGS="$CFLAGS -Waddress"
16437  fi
16438
16439  if test x$have_gcc42 = xyes && test x$have_clang = xno; then
16440    # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
16441    CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
16442  fi
16443
16444  if test x$have_gcc45 = xyes ; then
16445    # These warnings work on gcc 4.5
16446    CFLAGS="$CFLAGS -Wlogical-op"
16447  fi
16448
16449  if test x$have_clang = xyes; then
16450    # Disable the unused-function warnings, because these trigger
16451    # for minheap-internal.h related code.
16452    CFLAGS="$CFLAGS -Wno-unused-function"
16453
16454    # clang on macosx emits warnings for each directory specified which
16455    # isn't "used" generating a lot of build noise (typically 3 warnings
16456    # per file
16457    case "$host_os" in
16458        darwin*)
16459            CFLAGS="$CFLAGS -Qunused-arguments"
16460        ;;
16461    esac
16462  fi
16463
16464##This will break the world on some 64-bit architectures
16465# CFLAGS="$CFLAGS -Winline"
16466
16467fi
16468
16469LIBEVENT_GC_SECTIONS=
16470if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
16471    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
16472$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
16473if ${libevent_cv_gc_sections_runs+:} false; then :
16474  $as_echo_n "(cached) " >&6
16475else
16476
16477	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
16478	    CFLAGS="$CFLAGS -Wl,--gc-sections"
16479	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16480/* end confdefs.h.  */
16481
16482			#include <stdlib.h>
16483			#include <stdio.h>
16484
16485int
16486main ()
16487{
16488
16489			FILE *	fpC;
16490			char	buf[32];
16491			size_t	cch;
16492			int	read_success_once;
16493
16494			fpC = fopen("conftest.c", "r");
16495			if (NULL == fpC)
16496				exit(1);
16497			do {
16498				cch = fread(buf, sizeof(buf), 1, fpC);
16499				read_success_once |= (0 != cch);
16500			} while (0 != cch);
16501			if (!read_success_once)
16502				exit(2);
16503			if (!feof(fpC))
16504				exit(3);
16505			if (0 != fclose(fpC))
16506				exit(4);
16507
16508			exit(EXIT_SUCCESS);
16509
16510
16511  ;
16512  return 0;
16513}
16514_ACEOF
16515if ac_fn_c_try_link "$LINENO"; then :
16516
16517                                                            		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
16518			libevent_cv_gc_sections_runs=no
16519		    else
16520			libevent_cv_gc_sections_runs=no
16521			./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
16522		    fi
16523
16524else
16525  libevent_cv_gc_sections_runs=no
16526
16527fi
16528rm -f core conftest.err conftest.$ac_objext \
16529    conftest$ac_exeext conftest.$ac_ext
16530	    CFLAGS="$origCFLAGS"
16531	    { origCFLAGS=; unset origCFLAGS;}
16532
16533
16534fi
16535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
16536$as_echo "$libevent_cv_gc_sections_runs" >&6; }
16537    case "$libevent_cv_gc_sections_runs" in
16538     yes)
16539	CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
16540	LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
16541	;;
16542    esac
16543fi
16544
16545
16546 if test "$enable_libevent_install" = "yes"; then
16547  INSTALL_LIBEVENT_TRUE=
16548  INSTALL_LIBEVENT_FALSE='#'
16549else
16550  INSTALL_LIBEVENT_TRUE='#'
16551  INSTALL_LIBEVENT_FALSE=
16552fi
16553
16554
16555# Doxygen support
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566# Files:
16567DX_PROJECT=libevent
16568
16569DX_CONFIG='${top_srcdir}/Doxyfile'
16570
16571DX_DOCDIR='doxygen'
16572
16573
16574# Environment variables used inside doxygen.cfg:
16575DX_ENV="$DX_ENV SRCDIR='$srcdir'"
16576SRCDIR=$srcdir
16577
16578DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
16579PROJECT=$DX_PROJECT
16580
16581DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
16582
16583
16584# Doxygen itself:
16585
16586
16587
16588    # Check whether --enable-doxygen-doc was given.
16589if test "${enable_doxygen_doc+set}" = set; then :
16590  enableval=$enable_doxygen_doc;
16591case "$enableval" in
16592#(
16593y|Y|yes|Yes|YES)
16594    DX_FLAG_doc=1
16595
16596
16597;; #(
16598n|N|no|No|NO)
16599    DX_FLAG_doc=0
16600
16601;; #(
16602*)
16603    as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
16604;;
16605esac
16606
16607else
16608
16609DX_FLAG_doc=0
16610
16611
16612
16613fi
16614
16615if test "$DX_FLAG_doc" = 1; then
16616
16617if test -n "$ac_tool_prefix"; then
16618  # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
16619set dummy ${ac_tool_prefix}doxygen; ac_word=$2
16620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16621$as_echo_n "checking for $ac_word... " >&6; }
16622if ${ac_cv_path_DX_DOXYGEN+:} false; then :
16623  $as_echo_n "(cached) " >&6
16624else
16625  case $DX_DOXYGEN in
16626  [\\/]* | ?:[\\/]*)
16627  ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
16628  ;;
16629  *)
16630  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16631for as_dir in $PATH
16632do
16633  IFS=$as_save_IFS
16634  test -z "$as_dir" && as_dir=.
16635    for ac_exec_ext in '' $ac_executable_extensions; do
16636  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16637    ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16639    break 2
16640  fi
16641done
16642  done
16643IFS=$as_save_IFS
16644
16645  ;;
16646esac
16647fi
16648DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
16649if test -n "$DX_DOXYGEN"; then
16650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
16651$as_echo "$DX_DOXYGEN" >&6; }
16652else
16653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16654$as_echo "no" >&6; }
16655fi
16656
16657
16658fi
16659if test -z "$ac_cv_path_DX_DOXYGEN"; then
16660  ac_pt_DX_DOXYGEN=$DX_DOXYGEN
16661  # Extract the first word of "doxygen", so it can be a program name with args.
16662set dummy doxygen; ac_word=$2
16663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16664$as_echo_n "checking for $ac_word... " >&6; }
16665if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then :
16666  $as_echo_n "(cached) " >&6
16667else
16668  case $ac_pt_DX_DOXYGEN in
16669  [\\/]* | ?:[\\/]*)
16670  ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
16671  ;;
16672  *)
16673  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16674for as_dir in $PATH
16675do
16676  IFS=$as_save_IFS
16677  test -z "$as_dir" && as_dir=.
16678    for ac_exec_ext in '' $ac_executable_extensions; do
16679  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16680    ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16681    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16682    break 2
16683  fi
16684done
16685  done
16686IFS=$as_save_IFS
16687
16688  ;;
16689esac
16690fi
16691ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
16692if test -n "$ac_pt_DX_DOXYGEN"; then
16693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
16694$as_echo "$ac_pt_DX_DOXYGEN" >&6; }
16695else
16696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16697$as_echo "no" >&6; }
16698fi
16699
16700  if test "x$ac_pt_DX_DOXYGEN" = x; then
16701    DX_DOXYGEN=""
16702  else
16703    case $cross_compiling:$ac_tool_warned in
16704yes:)
16705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16707ac_tool_warned=yes ;;
16708esac
16709    DX_DOXYGEN=$ac_pt_DX_DOXYGEN
16710  fi
16711else
16712  DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
16713fi
16714
16715if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
16716    if test "xdoxygen" = "xdoxygen"; then
16717        as_fn_error $? "doxygen not found - will not generate any doxygen documentation" "$LINENO" 5
16718    else
16719        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
16720$as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
16721    fi
16722    DX_FLAG_doc=0
16723
16724fi
16725
16726
16727if test -n "$ac_tool_prefix"; then
16728  # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
16729set dummy ${ac_tool_prefix}perl; ac_word=$2
16730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16731$as_echo_n "checking for $ac_word... " >&6; }
16732if ${ac_cv_path_DX_PERL+:} false; then :
16733  $as_echo_n "(cached) " >&6
16734else
16735  case $DX_PERL in
16736  [\\/]* | ?:[\\/]*)
16737  ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
16738  ;;
16739  *)
16740  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16741for as_dir in $PATH
16742do
16743  IFS=$as_save_IFS
16744  test -z "$as_dir" && as_dir=.
16745    for ac_exec_ext in '' $ac_executable_extensions; do
16746  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16747    ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
16748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16749    break 2
16750  fi
16751done
16752  done
16753IFS=$as_save_IFS
16754
16755  ;;
16756esac
16757fi
16758DX_PERL=$ac_cv_path_DX_PERL
16759if test -n "$DX_PERL"; then
16760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
16761$as_echo "$DX_PERL" >&6; }
16762else
16763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16764$as_echo "no" >&6; }
16765fi
16766
16767
16768fi
16769if test -z "$ac_cv_path_DX_PERL"; then
16770  ac_pt_DX_PERL=$DX_PERL
16771  # Extract the first word of "perl", so it can be a program name with args.
16772set dummy perl; ac_word=$2
16773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16774$as_echo_n "checking for $ac_word... " >&6; }
16775if ${ac_cv_path_ac_pt_DX_PERL+:} false; then :
16776  $as_echo_n "(cached) " >&6
16777else
16778  case $ac_pt_DX_PERL in
16779  [\\/]* | ?:[\\/]*)
16780  ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
16781  ;;
16782  *)
16783  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16784for as_dir in $PATH
16785do
16786  IFS=$as_save_IFS
16787  test -z "$as_dir" && as_dir=.
16788    for ac_exec_ext in '' $ac_executable_extensions; do
16789  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16790    ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
16791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16792    break 2
16793  fi
16794done
16795  done
16796IFS=$as_save_IFS
16797
16798  ;;
16799esac
16800fi
16801ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
16802if test -n "$ac_pt_DX_PERL"; then
16803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
16804$as_echo "$ac_pt_DX_PERL" >&6; }
16805else
16806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16807$as_echo "no" >&6; }
16808fi
16809
16810  if test "x$ac_pt_DX_PERL" = x; then
16811    DX_PERL=""
16812  else
16813    case $cross_compiling:$ac_tool_warned in
16814yes:)
16815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16817ac_tool_warned=yes ;;
16818esac
16819    DX_PERL=$ac_pt_DX_PERL
16820  fi
16821else
16822  DX_PERL="$ac_cv_path_DX_PERL"
16823fi
16824
16825if test "$DX_FLAG_doc$DX_PERL" = 1; then
16826    if test "xperl" = "xdoxygen"; then
16827        as_fn_error $? "perl not found - will not generate any doxygen documentation" "$LINENO" 5
16828    else
16829        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
16830$as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
16831    fi
16832    DX_FLAG_doc=0
16833
16834fi
16835
16836    :
16837fi
16838if test "$DX_FLAG_doc" = 1; then
16839    DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
16840PERL_PATH=$DX_PERL
16841
16842    :
16843else
16844
16845    :
16846fi
16847
16848
16849# Dot for graphics:
16850
16851
16852
16853    # Check whether --enable-doxygen-dot was given.
16854if test "${enable_doxygen_dot+set}" = set; then :
16855  enableval=$enable_doxygen_dot;
16856case "$enableval" in
16857#(
16858y|Y|yes|Yes|YES)
16859    DX_FLAG_dot=1
16860
16861
16862test "$DX_FLAG_doc" = "1" \
16863|| as_fn_error $? "doxygen-dot requires doxygen-doc" "$LINENO" 5
16864
16865;; #(
16866n|N|no|No|NO)
16867    DX_FLAG_dot=0
16868
16869;; #(
16870*)
16871    as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
16872;;
16873esac
16874
16875else
16876
16877DX_FLAG_dot=0
16878
16879
16880test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
16881
16882
16883
16884fi
16885
16886if test "$DX_FLAG_dot" = 1; then
16887
16888if test -n "$ac_tool_prefix"; then
16889  # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
16890set dummy ${ac_tool_prefix}dot; ac_word=$2
16891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16892$as_echo_n "checking for $ac_word... " >&6; }
16893if ${ac_cv_path_DX_DOT+:} false; then :
16894  $as_echo_n "(cached) " >&6
16895else
16896  case $DX_DOT in
16897  [\\/]* | ?:[\\/]*)
16898  ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
16899  ;;
16900  *)
16901  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16902for as_dir in $PATH
16903do
16904  IFS=$as_save_IFS
16905  test -z "$as_dir" && as_dir=.
16906    for ac_exec_ext in '' $ac_executable_extensions; do
16907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16908    ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
16909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16910    break 2
16911  fi
16912done
16913  done
16914IFS=$as_save_IFS
16915
16916  ;;
16917esac
16918fi
16919DX_DOT=$ac_cv_path_DX_DOT
16920if test -n "$DX_DOT"; then
16921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
16922$as_echo "$DX_DOT" >&6; }
16923else
16924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16925$as_echo "no" >&6; }
16926fi
16927
16928
16929fi
16930if test -z "$ac_cv_path_DX_DOT"; then
16931  ac_pt_DX_DOT=$DX_DOT
16932  # Extract the first word of "dot", so it can be a program name with args.
16933set dummy dot; ac_word=$2
16934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16935$as_echo_n "checking for $ac_word... " >&6; }
16936if ${ac_cv_path_ac_pt_DX_DOT+:} false; then :
16937  $as_echo_n "(cached) " >&6
16938else
16939  case $ac_pt_DX_DOT in
16940  [\\/]* | ?:[\\/]*)
16941  ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
16942  ;;
16943  *)
16944  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16945for as_dir in $PATH
16946do
16947  IFS=$as_save_IFS
16948  test -z "$as_dir" && as_dir=.
16949    for ac_exec_ext in '' $ac_executable_extensions; do
16950  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16951    ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
16952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16953    break 2
16954  fi
16955done
16956  done
16957IFS=$as_save_IFS
16958
16959  ;;
16960esac
16961fi
16962ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
16963if test -n "$ac_pt_DX_DOT"; then
16964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
16965$as_echo "$ac_pt_DX_DOT" >&6; }
16966else
16967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16968$as_echo "no" >&6; }
16969fi
16970
16971  if test "x$ac_pt_DX_DOT" = x; then
16972    DX_DOT=""
16973  else
16974    case $cross_compiling:$ac_tool_warned in
16975yes:)
16976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16978ac_tool_warned=yes ;;
16979esac
16980    DX_DOT=$ac_pt_DX_DOT
16981  fi
16982else
16983  DX_DOT="$ac_cv_path_DX_DOT"
16984fi
16985
16986if test "$DX_FLAG_dot$DX_DOT" = 1; then
16987    if test "xdot" = "xdoxygen"; then
16988        as_fn_error $? "dot not found - will not generate graphics for doxygen documentation" "$LINENO" 5
16989    else
16990        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
16991$as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
16992    fi
16993    DX_FLAG_dot=0
16994
16995fi
16996
16997    :
16998fi
16999if test "$DX_FLAG_dot" = 1; then
17000    DX_ENV="$DX_ENV HAVE_DOT='YES'"
17001HAVE_DOT=YES
17002
17003             DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
17004DOT_PATH=`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`
17005
17006    :
17007else
17008    DX_ENV="$DX_ENV HAVE_DOT='NO'"
17009HAVE_DOT=NO
17010
17011    :
17012fi
17013
17014
17015# Man pages generation:
17016
17017
17018
17019    # Check whether --enable-doxygen-man was given.
17020if test "${enable_doxygen_man+set}" = set; then :
17021  enableval=$enable_doxygen_man;
17022case "$enableval" in
17023#(
17024y|Y|yes|Yes|YES)
17025    DX_FLAG_man=1
17026
17027
17028test "$DX_FLAG_doc" = "1" \
17029|| as_fn_error $? "doxygen-man requires doxygen-doc" "$LINENO" 5
17030
17031;; #(
17032n|N|no|No|NO)
17033    DX_FLAG_man=0
17034
17035;; #(
17036*)
17037    as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
17038;;
17039esac
17040
17041else
17042
17043DX_FLAG_man=0
17044
17045
17046test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
17047
17048
17049
17050fi
17051
17052if test "$DX_FLAG_man" = 1; then
17053
17054    :
17055fi
17056if test "$DX_FLAG_man" = 1; then
17057    DX_ENV="$DX_ENV GENERATE_MAN='YES'"
17058GENERATE_MAN=YES
17059
17060    :
17061else
17062    DX_ENV="$DX_ENV GENERATE_MAN='NO'"
17063GENERATE_MAN=NO
17064
17065    :
17066fi
17067
17068
17069# RTF file generation:
17070
17071
17072
17073    # Check whether --enable-doxygen-rtf was given.
17074if test "${enable_doxygen_rtf+set}" = set; then :
17075  enableval=$enable_doxygen_rtf;
17076case "$enableval" in
17077#(
17078y|Y|yes|Yes|YES)
17079    DX_FLAG_rtf=1
17080
17081
17082test "$DX_FLAG_doc" = "1" \
17083|| as_fn_error $? "doxygen-rtf requires doxygen-doc" "$LINENO" 5
17084
17085;; #(
17086n|N|no|No|NO)
17087    DX_FLAG_rtf=0
17088
17089;; #(
17090*)
17091    as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
17092;;
17093esac
17094
17095else
17096
17097DX_FLAG_rtf=0
17098
17099
17100test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
17101
17102
17103
17104fi
17105
17106if test "$DX_FLAG_rtf" = 1; then
17107
17108    :
17109fi
17110if test "$DX_FLAG_rtf" = 1; then
17111    DX_ENV="$DX_ENV GENERATE_RTF='YES'"
17112GENERATE_RTF=YES
17113
17114    :
17115else
17116    DX_ENV="$DX_ENV GENERATE_RTF='NO'"
17117GENERATE_RTF=NO
17118
17119    :
17120fi
17121
17122
17123# XML file generation:
17124
17125
17126
17127    # Check whether --enable-doxygen-xml was given.
17128if test "${enable_doxygen_xml+set}" = set; then :
17129  enableval=$enable_doxygen_xml;
17130case "$enableval" in
17131#(
17132y|Y|yes|Yes|YES)
17133    DX_FLAG_xml=1
17134
17135
17136test "$DX_FLAG_doc" = "1" \
17137|| as_fn_error $? "doxygen-xml requires doxygen-doc" "$LINENO" 5
17138
17139;; #(
17140n|N|no|No|NO)
17141    DX_FLAG_xml=0
17142
17143;; #(
17144*)
17145    as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
17146;;
17147esac
17148
17149else
17150
17151DX_FLAG_xml=0
17152
17153
17154test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
17155
17156
17157
17158fi
17159
17160if test "$DX_FLAG_xml" = 1; then
17161
17162    :
17163fi
17164if test "$DX_FLAG_xml" = 1; then
17165    DX_ENV="$DX_ENV GENERATE_XML='YES'"
17166GENERATE_XML=YES
17167
17168    :
17169else
17170    DX_ENV="$DX_ENV GENERATE_XML='NO'"
17171GENERATE_XML=NO
17172
17173    :
17174fi
17175
17176
17177# (Compressed) HTML help generation:
17178
17179
17180
17181    # Check whether --enable-doxygen-chm was given.
17182if test "${enable_doxygen_chm+set}" = set; then :
17183  enableval=$enable_doxygen_chm;
17184case "$enableval" in
17185#(
17186y|Y|yes|Yes|YES)
17187    DX_FLAG_chm=1
17188
17189
17190test "$DX_FLAG_doc" = "1" \
17191|| as_fn_error $? "doxygen-chm requires doxygen-doc" "$LINENO" 5
17192
17193;; #(
17194n|N|no|No|NO)
17195    DX_FLAG_chm=0
17196
17197;; #(
17198*)
17199    as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
17200;;
17201esac
17202
17203else
17204
17205DX_FLAG_chm=0
17206
17207
17208test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
17209
17210
17211
17212fi
17213
17214if test "$DX_FLAG_chm" = 1; then
17215
17216if test -n "$ac_tool_prefix"; then
17217  # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
17218set dummy ${ac_tool_prefix}hhc; ac_word=$2
17219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17220$as_echo_n "checking for $ac_word... " >&6; }
17221if ${ac_cv_path_DX_HHC+:} false; then :
17222  $as_echo_n "(cached) " >&6
17223else
17224  case $DX_HHC in
17225  [\\/]* | ?:[\\/]*)
17226  ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
17227  ;;
17228  *)
17229  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17230for as_dir in $PATH
17231do
17232  IFS=$as_save_IFS
17233  test -z "$as_dir" && as_dir=.
17234    for ac_exec_ext in '' $ac_executable_extensions; do
17235  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17236    ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
17237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17238    break 2
17239  fi
17240done
17241  done
17242IFS=$as_save_IFS
17243
17244  ;;
17245esac
17246fi
17247DX_HHC=$ac_cv_path_DX_HHC
17248if test -n "$DX_HHC"; then
17249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
17250$as_echo "$DX_HHC" >&6; }
17251else
17252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17253$as_echo "no" >&6; }
17254fi
17255
17256
17257fi
17258if test -z "$ac_cv_path_DX_HHC"; then
17259  ac_pt_DX_HHC=$DX_HHC
17260  # Extract the first word of "hhc", so it can be a program name with args.
17261set dummy hhc; ac_word=$2
17262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17263$as_echo_n "checking for $ac_word... " >&6; }
17264if ${ac_cv_path_ac_pt_DX_HHC+:} false; then :
17265  $as_echo_n "(cached) " >&6
17266else
17267  case $ac_pt_DX_HHC in
17268  [\\/]* | ?:[\\/]*)
17269  ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
17270  ;;
17271  *)
17272  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17273for as_dir in $PATH
17274do
17275  IFS=$as_save_IFS
17276  test -z "$as_dir" && as_dir=.
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_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
17280    $as_echo "$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  ;;
17288esac
17289fi
17290ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
17291if test -n "$ac_pt_DX_HHC"; then
17292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
17293$as_echo "$ac_pt_DX_HHC" >&6; }
17294else
17295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17296$as_echo "no" >&6; }
17297fi
17298
17299  if test "x$ac_pt_DX_HHC" = x; then
17300    DX_HHC=""
17301  else
17302    case $cross_compiling:$ac_tool_warned in
17303yes:)
17304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17306ac_tool_warned=yes ;;
17307esac
17308    DX_HHC=$ac_pt_DX_HHC
17309  fi
17310else
17311  DX_HHC="$ac_cv_path_DX_HHC"
17312fi
17313
17314if test "$DX_FLAG_chm$DX_HHC" = 1; then
17315    if test "xhhc" = "xdoxygen"; then
17316        as_fn_error $? "hhc not found - will not generate doxygen compressed HTML help documentation" "$LINENO" 5
17317    else
17318        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
17319$as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
17320    fi
17321    DX_FLAG_chm=0
17322
17323fi
17324
17325    :
17326fi
17327if test "$DX_FLAG_chm" = 1; then
17328    DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
17329HHC_PATH=$DX_HHC
17330
17331             DX_ENV="$DX_ENV GENERATE_HTML='YES'"
17332GENERATE_HTML=YES
17333
17334             DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
17335GENERATE_HTMLHELP=YES
17336
17337    :
17338else
17339    DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
17340GENERATE_HTMLHELP=NO
17341
17342    :
17343fi
17344
17345
17346# Separate CHI file generation.
17347
17348
17349
17350    # Check whether --enable-doxygen-chi was given.
17351if test "${enable_doxygen_chi+set}" = set; then :
17352  enableval=$enable_doxygen_chi;
17353case "$enableval" in
17354#(
17355y|Y|yes|Yes|YES)
17356    DX_FLAG_chi=1
17357
17358
17359test "$DX_FLAG_chm" = "1" \
17360|| as_fn_error $? "doxygen-chi requires doxygen-chm" "$LINENO" 5
17361
17362;; #(
17363n|N|no|No|NO)
17364    DX_FLAG_chi=0
17365
17366;; #(
17367*)
17368    as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
17369;;
17370esac
17371
17372else
17373
17374DX_FLAG_chi=0
17375
17376
17377test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
17378
17379
17380
17381fi
17382
17383if test "$DX_FLAG_chi" = 1; then
17384
17385    :
17386fi
17387if test "$DX_FLAG_chi" = 1; then
17388    DX_ENV="$DX_ENV GENERATE_CHI='YES'"
17389GENERATE_CHI=YES
17390
17391    :
17392else
17393    DX_ENV="$DX_ENV GENERATE_CHI='NO'"
17394GENERATE_CHI=NO
17395
17396    :
17397fi
17398
17399
17400# Plain HTML pages generation:
17401
17402
17403
17404    # Check whether --enable-doxygen-html was given.
17405if test "${enable_doxygen_html+set}" = set; then :
17406  enableval=$enable_doxygen_html;
17407case "$enableval" in
17408#(
17409y|Y|yes|Yes|YES)
17410    DX_FLAG_html=1
17411
17412
17413test "$DX_FLAG_doc" = "1" \
17414|| as_fn_error $? "doxygen-html requires doxygen-doc" "$LINENO" 5
17415
17416test "$DX_FLAG_chm" = "0" \
17417|| as_fn_error $? "doxygen-html contradicts doxygen-chm" "$LINENO" 5
17418
17419;; #(
17420n|N|no|No|NO)
17421    DX_FLAG_html=0
17422
17423;; #(
17424*)
17425    as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
17426;;
17427esac
17428
17429else
17430
17431DX_FLAG_html=1
17432
17433
17434test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
17435
17436
17437test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
17438
17439
17440
17441fi
17442
17443if test "$DX_FLAG_html" = 1; then
17444
17445    :
17446fi
17447if test "$DX_FLAG_html" = 1; then
17448    DX_ENV="$DX_ENV GENERATE_HTML='YES'"
17449GENERATE_HTML=YES
17450
17451    :
17452else
17453    test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
17454GENERATE_HTML=NO
17455
17456    :
17457fi
17458
17459
17460# PostScript file generation:
17461
17462
17463
17464    # Check whether --enable-doxygen-ps was given.
17465if test "${enable_doxygen_ps+set}" = set; then :
17466  enableval=$enable_doxygen_ps;
17467case "$enableval" in
17468#(
17469y|Y|yes|Yes|YES)
17470    DX_FLAG_ps=1
17471
17472
17473test "$DX_FLAG_doc" = "1" \
17474|| as_fn_error $? "doxygen-ps requires doxygen-doc" "$LINENO" 5
17475
17476;; #(
17477n|N|no|No|NO)
17478    DX_FLAG_ps=0
17479
17480;; #(
17481*)
17482    as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
17483;;
17484esac
17485
17486else
17487
17488DX_FLAG_ps=0
17489
17490
17491test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
17492
17493
17494
17495fi
17496
17497if test "$DX_FLAG_ps" = 1; then
17498
17499if test -n "$ac_tool_prefix"; then
17500  # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
17501set dummy ${ac_tool_prefix}latex; ac_word=$2
17502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17503$as_echo_n "checking for $ac_word... " >&6; }
17504if ${ac_cv_path_DX_LATEX+:} false; then :
17505  $as_echo_n "(cached) " >&6
17506else
17507  case $DX_LATEX in
17508  [\\/]* | ?:[\\/]*)
17509  ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
17510  ;;
17511  *)
17512  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17513for as_dir in $PATH
17514do
17515  IFS=$as_save_IFS
17516  test -z "$as_dir" && as_dir=.
17517    for ac_exec_ext in '' $ac_executable_extensions; do
17518  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17519    ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
17520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17521    break 2
17522  fi
17523done
17524  done
17525IFS=$as_save_IFS
17526
17527  ;;
17528esac
17529fi
17530DX_LATEX=$ac_cv_path_DX_LATEX
17531if test -n "$DX_LATEX"; then
17532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
17533$as_echo "$DX_LATEX" >&6; }
17534else
17535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17536$as_echo "no" >&6; }
17537fi
17538
17539
17540fi
17541if test -z "$ac_cv_path_DX_LATEX"; then
17542  ac_pt_DX_LATEX=$DX_LATEX
17543  # Extract the first word of "latex", so it can be a program name with args.
17544set dummy latex; ac_word=$2
17545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17546$as_echo_n "checking for $ac_word... " >&6; }
17547if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then :
17548  $as_echo_n "(cached) " >&6
17549else
17550  case $ac_pt_DX_LATEX in
17551  [\\/]* | ?:[\\/]*)
17552  ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
17553  ;;
17554  *)
17555  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17556for as_dir in $PATH
17557do
17558  IFS=$as_save_IFS
17559  test -z "$as_dir" && as_dir=.
17560    for ac_exec_ext in '' $ac_executable_extensions; do
17561  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17562    ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
17563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17564    break 2
17565  fi
17566done
17567  done
17568IFS=$as_save_IFS
17569
17570  ;;
17571esac
17572fi
17573ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
17574if test -n "$ac_pt_DX_LATEX"; then
17575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
17576$as_echo "$ac_pt_DX_LATEX" >&6; }
17577else
17578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17579$as_echo "no" >&6; }
17580fi
17581
17582  if test "x$ac_pt_DX_LATEX" = x; then
17583    DX_LATEX=""
17584  else
17585    case $cross_compiling:$ac_tool_warned in
17586yes:)
17587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17589ac_tool_warned=yes ;;
17590esac
17591    DX_LATEX=$ac_pt_DX_LATEX
17592  fi
17593else
17594  DX_LATEX="$ac_cv_path_DX_LATEX"
17595fi
17596
17597if test "$DX_FLAG_ps$DX_LATEX" = 1; then
17598    if test "xlatex" = "xdoxygen"; then
17599        as_fn_error $? "latex not found - will not generate doxygen PostScript documentation" "$LINENO" 5
17600    else
17601        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
17602$as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
17603    fi
17604    DX_FLAG_ps=0
17605
17606fi
17607
17608
17609if test -n "$ac_tool_prefix"; then
17610  # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
17611set dummy ${ac_tool_prefix}makeindex; ac_word=$2
17612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17613$as_echo_n "checking for $ac_word... " >&6; }
17614if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
17615  $as_echo_n "(cached) " >&6
17616else
17617  case $DX_MAKEINDEX in
17618  [\\/]* | ?:[\\/]*)
17619  ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
17620  ;;
17621  *)
17622  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17623for as_dir in $PATH
17624do
17625  IFS=$as_save_IFS
17626  test -z "$as_dir" && as_dir=.
17627    for ac_exec_ext in '' $ac_executable_extensions; do
17628  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17629    ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
17630    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17631    break 2
17632  fi
17633done
17634  done
17635IFS=$as_save_IFS
17636
17637  ;;
17638esac
17639fi
17640DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
17641if test -n "$DX_MAKEINDEX"; then
17642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
17643$as_echo "$DX_MAKEINDEX" >&6; }
17644else
17645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17646$as_echo "no" >&6; }
17647fi
17648
17649
17650fi
17651if test -z "$ac_cv_path_DX_MAKEINDEX"; then
17652  ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
17653  # Extract the first word of "makeindex", so it can be a program name with args.
17654set dummy makeindex; ac_word=$2
17655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17656$as_echo_n "checking for $ac_word... " >&6; }
17657if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
17658  $as_echo_n "(cached) " >&6
17659else
17660  case $ac_pt_DX_MAKEINDEX in
17661  [\\/]* | ?:[\\/]*)
17662  ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
17663  ;;
17664  *)
17665  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17666for as_dir in $PATH
17667do
17668  IFS=$as_save_IFS
17669  test -z "$as_dir" && as_dir=.
17670    for ac_exec_ext in '' $ac_executable_extensions; do
17671  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17672    ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
17673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17674    break 2
17675  fi
17676done
17677  done
17678IFS=$as_save_IFS
17679
17680  ;;
17681esac
17682fi
17683ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
17684if test -n "$ac_pt_DX_MAKEINDEX"; then
17685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
17686$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
17687else
17688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17689$as_echo "no" >&6; }
17690fi
17691
17692  if test "x$ac_pt_DX_MAKEINDEX" = x; then
17693    DX_MAKEINDEX=""
17694  else
17695    case $cross_compiling:$ac_tool_warned in
17696yes:)
17697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17699ac_tool_warned=yes ;;
17700esac
17701    DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
17702  fi
17703else
17704  DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
17705fi
17706
17707if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
17708    if test "xmakeindex" = "xdoxygen"; then
17709        as_fn_error $? "makeindex not found - will not generate doxygen PostScript documentation" "$LINENO" 5
17710    else
17711        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
17712$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
17713    fi
17714    DX_FLAG_ps=0
17715
17716fi
17717
17718
17719if test -n "$ac_tool_prefix"; then
17720  # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
17721set dummy ${ac_tool_prefix}dvips; ac_word=$2
17722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17723$as_echo_n "checking for $ac_word... " >&6; }
17724if ${ac_cv_path_DX_DVIPS+:} false; then :
17725  $as_echo_n "(cached) " >&6
17726else
17727  case $DX_DVIPS in
17728  [\\/]* | ?:[\\/]*)
17729  ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
17730  ;;
17731  *)
17732  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17733for as_dir in $PATH
17734do
17735  IFS=$as_save_IFS
17736  test -z "$as_dir" && as_dir=.
17737    for ac_exec_ext in '' $ac_executable_extensions; do
17738  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17739    ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
17740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17741    break 2
17742  fi
17743done
17744  done
17745IFS=$as_save_IFS
17746
17747  ;;
17748esac
17749fi
17750DX_DVIPS=$ac_cv_path_DX_DVIPS
17751if test -n "$DX_DVIPS"; then
17752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
17753$as_echo "$DX_DVIPS" >&6; }
17754else
17755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17756$as_echo "no" >&6; }
17757fi
17758
17759
17760fi
17761if test -z "$ac_cv_path_DX_DVIPS"; then
17762  ac_pt_DX_DVIPS=$DX_DVIPS
17763  # Extract the first word of "dvips", so it can be a program name with args.
17764set dummy dvips; ac_word=$2
17765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17766$as_echo_n "checking for $ac_word... " >&6; }
17767if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then :
17768  $as_echo_n "(cached) " >&6
17769else
17770  case $ac_pt_DX_DVIPS in
17771  [\\/]* | ?:[\\/]*)
17772  ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
17773  ;;
17774  *)
17775  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17776for as_dir in $PATH
17777do
17778  IFS=$as_save_IFS
17779  test -z "$as_dir" && as_dir=.
17780    for ac_exec_ext in '' $ac_executable_extensions; do
17781  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17782    ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
17783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17784    break 2
17785  fi
17786done
17787  done
17788IFS=$as_save_IFS
17789
17790  ;;
17791esac
17792fi
17793ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
17794if test -n "$ac_pt_DX_DVIPS"; then
17795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
17796$as_echo "$ac_pt_DX_DVIPS" >&6; }
17797else
17798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17799$as_echo "no" >&6; }
17800fi
17801
17802  if test "x$ac_pt_DX_DVIPS" = x; then
17803    DX_DVIPS=""
17804  else
17805    case $cross_compiling:$ac_tool_warned in
17806yes:)
17807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17809ac_tool_warned=yes ;;
17810esac
17811    DX_DVIPS=$ac_pt_DX_DVIPS
17812  fi
17813else
17814  DX_DVIPS="$ac_cv_path_DX_DVIPS"
17815fi
17816
17817if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
17818    if test "xdvips" = "xdoxygen"; then
17819        as_fn_error $? "dvips not found - will not generate doxygen PostScript documentation" "$LINENO" 5
17820    else
17821        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
17822$as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
17823    fi
17824    DX_FLAG_ps=0
17825
17826fi
17827
17828
17829if test -n "$ac_tool_prefix"; then
17830  # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
17831set dummy ${ac_tool_prefix}egrep; ac_word=$2
17832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17833$as_echo_n "checking for $ac_word... " >&6; }
17834if ${ac_cv_path_DX_EGREP+:} false; then :
17835  $as_echo_n "(cached) " >&6
17836else
17837  case $DX_EGREP in
17838  [\\/]* | ?:[\\/]*)
17839  ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
17840  ;;
17841  *)
17842  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17843for as_dir in $PATH
17844do
17845  IFS=$as_save_IFS
17846  test -z "$as_dir" && as_dir=.
17847    for ac_exec_ext in '' $ac_executable_extensions; do
17848  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17849    ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
17850    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17851    break 2
17852  fi
17853done
17854  done
17855IFS=$as_save_IFS
17856
17857  ;;
17858esac
17859fi
17860DX_EGREP=$ac_cv_path_DX_EGREP
17861if test -n "$DX_EGREP"; then
17862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
17863$as_echo "$DX_EGREP" >&6; }
17864else
17865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17866$as_echo "no" >&6; }
17867fi
17868
17869
17870fi
17871if test -z "$ac_cv_path_DX_EGREP"; then
17872  ac_pt_DX_EGREP=$DX_EGREP
17873  # Extract the first word of "egrep", so it can be a program name with args.
17874set dummy egrep; ac_word=$2
17875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17876$as_echo_n "checking for $ac_word... " >&6; }
17877if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
17878  $as_echo_n "(cached) " >&6
17879else
17880  case $ac_pt_DX_EGREP in
17881  [\\/]* | ?:[\\/]*)
17882  ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
17883  ;;
17884  *)
17885  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17886for as_dir in $PATH
17887do
17888  IFS=$as_save_IFS
17889  test -z "$as_dir" && as_dir=.
17890    for ac_exec_ext in '' $ac_executable_extensions; do
17891  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17892    ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
17893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17894    break 2
17895  fi
17896done
17897  done
17898IFS=$as_save_IFS
17899
17900  ;;
17901esac
17902fi
17903ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
17904if test -n "$ac_pt_DX_EGREP"; then
17905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
17906$as_echo "$ac_pt_DX_EGREP" >&6; }
17907else
17908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17909$as_echo "no" >&6; }
17910fi
17911
17912  if test "x$ac_pt_DX_EGREP" = x; then
17913    DX_EGREP=""
17914  else
17915    case $cross_compiling:$ac_tool_warned in
17916yes:)
17917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17919ac_tool_warned=yes ;;
17920esac
17921    DX_EGREP=$ac_pt_DX_EGREP
17922  fi
17923else
17924  DX_EGREP="$ac_cv_path_DX_EGREP"
17925fi
17926
17927if test "$DX_FLAG_ps$DX_EGREP" = 1; then
17928    if test "xegrep" = "xdoxygen"; then
17929        as_fn_error $? "egrep not found - will not generate doxygen PostScript documentation" "$LINENO" 5
17930    else
17931        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
17932$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
17933    fi
17934    DX_FLAG_ps=0
17935
17936fi
17937
17938    :
17939fi
17940if test "$DX_FLAG_ps" = 1; then
17941
17942    :
17943else
17944
17945    :
17946fi
17947
17948
17949# PDF file generation:
17950
17951
17952
17953    # Check whether --enable-doxygen-pdf was given.
17954if test "${enable_doxygen_pdf+set}" = set; then :
17955  enableval=$enable_doxygen_pdf;
17956case "$enableval" in
17957#(
17958y|Y|yes|Yes|YES)
17959    DX_FLAG_pdf=1
17960
17961
17962test "$DX_FLAG_doc" = "1" \
17963|| as_fn_error $? "doxygen-pdf requires doxygen-doc" "$LINENO" 5
17964
17965;; #(
17966n|N|no|No|NO)
17967    DX_FLAG_pdf=0
17968
17969;; #(
17970*)
17971    as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
17972;;
17973esac
17974
17975else
17976
17977DX_FLAG_pdf=0
17978
17979
17980test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
17981
17982
17983
17984fi
17985
17986if test "$DX_FLAG_pdf" = 1; then
17987
17988if test -n "$ac_tool_prefix"; then
17989  # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
17990set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
17991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17992$as_echo_n "checking for $ac_word... " >&6; }
17993if ${ac_cv_path_DX_PDFLATEX+:} false; then :
17994  $as_echo_n "(cached) " >&6
17995else
17996  case $DX_PDFLATEX in
17997  [\\/]* | ?:[\\/]*)
17998  ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
17999  ;;
18000  *)
18001  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18002for as_dir in $PATH
18003do
18004  IFS=$as_save_IFS
18005  test -z "$as_dir" && as_dir=.
18006    for ac_exec_ext in '' $ac_executable_extensions; do
18007  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18008    ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
18009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18010    break 2
18011  fi
18012done
18013  done
18014IFS=$as_save_IFS
18015
18016  ;;
18017esac
18018fi
18019DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
18020if test -n "$DX_PDFLATEX"; then
18021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
18022$as_echo "$DX_PDFLATEX" >&6; }
18023else
18024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18025$as_echo "no" >&6; }
18026fi
18027
18028
18029fi
18030if test -z "$ac_cv_path_DX_PDFLATEX"; then
18031  ac_pt_DX_PDFLATEX=$DX_PDFLATEX
18032  # Extract the first word of "pdflatex", so it can be a program name with args.
18033set dummy pdflatex; ac_word=$2
18034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18035$as_echo_n "checking for $ac_word... " >&6; }
18036if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then :
18037  $as_echo_n "(cached) " >&6
18038else
18039  case $ac_pt_DX_PDFLATEX in
18040  [\\/]* | ?:[\\/]*)
18041  ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
18042  ;;
18043  *)
18044  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18045for as_dir in $PATH
18046do
18047  IFS=$as_save_IFS
18048  test -z "$as_dir" && as_dir=.
18049    for ac_exec_ext in '' $ac_executable_extensions; do
18050  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18051    ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
18052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18053    break 2
18054  fi
18055done
18056  done
18057IFS=$as_save_IFS
18058
18059  ;;
18060esac
18061fi
18062ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
18063if test -n "$ac_pt_DX_PDFLATEX"; then
18064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
18065$as_echo "$ac_pt_DX_PDFLATEX" >&6; }
18066else
18067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18068$as_echo "no" >&6; }
18069fi
18070
18071  if test "x$ac_pt_DX_PDFLATEX" = x; then
18072    DX_PDFLATEX=""
18073  else
18074    case $cross_compiling:$ac_tool_warned in
18075yes:)
18076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18078ac_tool_warned=yes ;;
18079esac
18080    DX_PDFLATEX=$ac_pt_DX_PDFLATEX
18081  fi
18082else
18083  DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
18084fi
18085
18086if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
18087    if test "xpdflatex" = "xdoxygen"; then
18088        as_fn_error $? "pdflatex not found - will not generate doxygen PDF documentation" "$LINENO" 5
18089    else
18090        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
18091$as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
18092    fi
18093    DX_FLAG_pdf=0
18094
18095fi
18096
18097
18098if test -n "$ac_tool_prefix"; then
18099  # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
18100set dummy ${ac_tool_prefix}makeindex; ac_word=$2
18101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18102$as_echo_n "checking for $ac_word... " >&6; }
18103if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
18104  $as_echo_n "(cached) " >&6
18105else
18106  case $DX_MAKEINDEX in
18107  [\\/]* | ?:[\\/]*)
18108  ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
18109  ;;
18110  *)
18111  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18112for as_dir in $PATH
18113do
18114  IFS=$as_save_IFS
18115  test -z "$as_dir" && as_dir=.
18116    for ac_exec_ext in '' $ac_executable_extensions; do
18117  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18118    ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
18119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18120    break 2
18121  fi
18122done
18123  done
18124IFS=$as_save_IFS
18125
18126  ;;
18127esac
18128fi
18129DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
18130if test -n "$DX_MAKEINDEX"; then
18131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
18132$as_echo "$DX_MAKEINDEX" >&6; }
18133else
18134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18135$as_echo "no" >&6; }
18136fi
18137
18138
18139fi
18140if test -z "$ac_cv_path_DX_MAKEINDEX"; then
18141  ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
18142  # Extract the first word of "makeindex", so it can be a program name with args.
18143set dummy makeindex; ac_word=$2
18144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18145$as_echo_n "checking for $ac_word... " >&6; }
18146if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
18147  $as_echo_n "(cached) " >&6
18148else
18149  case $ac_pt_DX_MAKEINDEX in
18150  [\\/]* | ?:[\\/]*)
18151  ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
18152  ;;
18153  *)
18154  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18155for as_dir in $PATH
18156do
18157  IFS=$as_save_IFS
18158  test -z "$as_dir" && as_dir=.
18159    for ac_exec_ext in '' $ac_executable_extensions; do
18160  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18161    ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
18162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18163    break 2
18164  fi
18165done
18166  done
18167IFS=$as_save_IFS
18168
18169  ;;
18170esac
18171fi
18172ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
18173if test -n "$ac_pt_DX_MAKEINDEX"; then
18174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
18175$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
18176else
18177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18178$as_echo "no" >&6; }
18179fi
18180
18181  if test "x$ac_pt_DX_MAKEINDEX" = x; then
18182    DX_MAKEINDEX=""
18183  else
18184    case $cross_compiling:$ac_tool_warned in
18185yes:)
18186{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18188ac_tool_warned=yes ;;
18189esac
18190    DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
18191  fi
18192else
18193  DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
18194fi
18195
18196if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
18197    if test "xmakeindex" = "xdoxygen"; then
18198        as_fn_error $? "makeindex not found - will not generate doxygen PDF documentation" "$LINENO" 5
18199    else
18200        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
18201$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
18202    fi
18203    DX_FLAG_pdf=0
18204
18205fi
18206
18207
18208if test -n "$ac_tool_prefix"; then
18209  # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
18210set dummy ${ac_tool_prefix}egrep; ac_word=$2
18211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18212$as_echo_n "checking for $ac_word... " >&6; }
18213if ${ac_cv_path_DX_EGREP+:} false; then :
18214  $as_echo_n "(cached) " >&6
18215else
18216  case $DX_EGREP in
18217  [\\/]* | ?:[\\/]*)
18218  ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
18219  ;;
18220  *)
18221  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18222for as_dir in $PATH
18223do
18224  IFS=$as_save_IFS
18225  test -z "$as_dir" && as_dir=.
18226    for ac_exec_ext in '' $ac_executable_extensions; do
18227  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18228    ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
18229    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18230    break 2
18231  fi
18232done
18233  done
18234IFS=$as_save_IFS
18235
18236  ;;
18237esac
18238fi
18239DX_EGREP=$ac_cv_path_DX_EGREP
18240if test -n "$DX_EGREP"; then
18241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
18242$as_echo "$DX_EGREP" >&6; }
18243else
18244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18245$as_echo "no" >&6; }
18246fi
18247
18248
18249fi
18250if test -z "$ac_cv_path_DX_EGREP"; then
18251  ac_pt_DX_EGREP=$DX_EGREP
18252  # Extract the first word of "egrep", so it can be a program name with args.
18253set dummy egrep; ac_word=$2
18254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18255$as_echo_n "checking for $ac_word... " >&6; }
18256if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
18257  $as_echo_n "(cached) " >&6
18258else
18259  case $ac_pt_DX_EGREP in
18260  [\\/]* | ?:[\\/]*)
18261  ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
18262  ;;
18263  *)
18264  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18265for as_dir in $PATH
18266do
18267  IFS=$as_save_IFS
18268  test -z "$as_dir" && as_dir=.
18269    for ac_exec_ext in '' $ac_executable_extensions; do
18270  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18271    ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
18272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18273    break 2
18274  fi
18275done
18276  done
18277IFS=$as_save_IFS
18278
18279  ;;
18280esac
18281fi
18282ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
18283if test -n "$ac_pt_DX_EGREP"; then
18284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
18285$as_echo "$ac_pt_DX_EGREP" >&6; }
18286else
18287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18288$as_echo "no" >&6; }
18289fi
18290
18291  if test "x$ac_pt_DX_EGREP" = x; then
18292    DX_EGREP=""
18293  else
18294    case $cross_compiling:$ac_tool_warned in
18295yes:)
18296{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18297$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18298ac_tool_warned=yes ;;
18299esac
18300    DX_EGREP=$ac_pt_DX_EGREP
18301  fi
18302else
18303  DX_EGREP="$ac_cv_path_DX_EGREP"
18304fi
18305
18306if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
18307    if test "xegrep" = "xdoxygen"; then
18308        as_fn_error $? "egrep not found - will not generate doxygen PDF documentation" "$LINENO" 5
18309    else
18310        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
18311$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
18312    fi
18313    DX_FLAG_pdf=0
18314
18315fi
18316
18317    :
18318fi
18319if test "$DX_FLAG_pdf" = 1; then
18320
18321    :
18322else
18323
18324    :
18325fi
18326
18327
18328# LaTeX generation for PS and/or PDF:
18329if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
18330    DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
18331GENERATE_LATEX=YES
18332
18333else
18334    DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
18335GENERATE_LATEX=NO
18336
18337fi
18338
18339# Paper size for PS and/or PDF:
18340
18341case "$DOXYGEN_PAPER_SIZE" in
18342#(
18343"")
18344    DOXYGEN_PAPER_SIZE=""
18345
18346;; #(
18347a4wide|a4|letter|legal|executive)
18348    DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
18349PAPER_SIZE=$DOXYGEN_PAPER_SIZE
18350
18351;; #(
18352*)
18353    as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
18354;;
18355esac
18356
18357# Rules:
18358if test $DX_FLAG_html -eq 1; then :
18359  DX_SNIPPET_html="## ------------------------------- ##
18360## Rules specific for HTML output. ##
18361## ------------------------------- ##
18362
18363DX_CLEAN_HTML = \$(DX_DOCDIR)/html\\
18364                \$(DX_DOCDIR)/html
18365
18366"
18367else
18368  DX_SNIPPET_html=""
18369fi
18370if test $DX_FLAG_chi -eq 1; then :
18371  DX_SNIPPET_chi="
18372DX_CLEAN_CHI = \$(DX_DOCDIR)/\$(PACKAGE).chi\\
18373               \$(DX_DOCDIR)/\$(PACKAGE).chi"
18374else
18375  DX_SNIPPET_chi=""
18376fi
18377if test $DX_FLAG_chm -eq 1; then :
18378  DX_SNIPPET_chm="## ------------------------------ ##
18379## Rules specific for CHM output. ##
18380## ------------------------------ ##
18381
18382DX_CLEAN_CHM = \$(DX_DOCDIR)/chm\\
18383               \$(DX_DOCDIR)/chm\
18384${DX_SNIPPET_chi}
18385
18386"
18387else
18388  DX_SNIPPET_chm=""
18389fi
18390if test $DX_FLAG_man -eq 1; then :
18391  DX_SNIPPET_man="## ------------------------------ ##
18392## Rules specific for MAN output. ##
18393## ------------------------------ ##
18394
18395DX_CLEAN_MAN = \$(DX_DOCDIR)/man\\
18396               \$(DX_DOCDIR)/man
18397
18398"
18399else
18400  DX_SNIPPET_man=""
18401fi
18402if test $DX_FLAG_rtf -eq 1; then :
18403  DX_SNIPPET_rtf="## ------------------------------ ##
18404## Rules specific for RTF output. ##
18405## ------------------------------ ##
18406
18407DX_CLEAN_RTF = \$(DX_DOCDIR)/rtf\\
18408               \$(DX_DOCDIR)/rtf
18409
18410"
18411else
18412  DX_SNIPPET_rtf=""
18413fi
18414if test $DX_FLAG_xml -eq 1; then :
18415  DX_SNIPPET_xml="## ------------------------------ ##
18416## Rules specific for XML output. ##
18417## ------------------------------ ##
18418
18419DX_CLEAN_XML = \$(DX_DOCDIR)/xml\\
18420               \$(DX_DOCDIR)/xml
18421
18422"
18423else
18424  DX_SNIPPET_xml=""
18425fi
18426if test $DX_FLAG_ps -eq 1; then :
18427  DX_SNIPPET_ps="## ----------------------------- ##
18428## Rules specific for PS output. ##
18429## ----------------------------- ##
18430
18431DX_CLEAN_PS = \$(DX_DOCDIR)/\$(PACKAGE).ps\\
18432              \$(DX_DOCDIR)/\$(PACKAGE).ps
18433
18434DX_PS_GOAL = doxygen-ps
18435
18436doxygen-ps: \$(DX_CLEAN_PS)
18437
18438\$(DX_DOCDIR)/\$(PACKAGE).ps: \$(DX_DOCDIR)/\$(PACKAGE).tag
18439	\$(DX_V_LATEX)cd \$(DX_DOCDIR)/latex; \\
18440	rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \\
18441	\$(DX_LATEX) refman.tex; \\
18442	\$(DX_MAKEINDEX) refman.idx; \\
18443	\$(DX_LATEX) refman.tex; \\
18444	countdown=5; \\
18445	while \$(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \\
18446	                  refman.log > /dev/null 2>&1 \\
18447	   && test \$\$countdown -gt 0; do \\
18448	    \$(DX_LATEX) refman.tex; \\
18449            countdown=\`expr \$\$countdown - 1\`; \\
18450	done; \\
18451	\$(DX_DVIPS) -o ../\$(PACKAGE).ps refman.dvi
18452
18453"
18454else
18455  DX_SNIPPET_ps=""
18456fi
18457if test $DX_FLAG_pdf -eq 1; then :
18458  DX_SNIPPET_pdf="## ------------------------------ ##
18459## Rules specific for PDF output. ##
18460## ------------------------------ ##
18461
18462DX_CLEAN_PDF = \$(DX_DOCDIR)/\$(PACKAGE).pdf\\
18463               \$(DX_DOCDIR)/\$(PACKAGE).pdf
18464
18465DX_PDF_GOAL = doxygen-pdf
18466
18467doxygen-pdf: \$(DX_CLEAN_PDF)
18468
18469\$(DX_DOCDIR)/\$(PACKAGE).pdf: \$(DX_DOCDIR)/\$(PACKAGE).tag
18470	\$(DX_V_LATEX)cd \$(DX_DOCDIR)/latex; \\
18471	rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \\
18472	\$(DX_PDFLATEX) refman.tex; \\
18473	\$(DX_MAKEINDEX) refman.idx; \\
18474	\$(DX_PDFLATEX) refman.tex; \\
18475	countdown=5; \\
18476	while \$(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \\
18477	                  refman.log > /dev/null 2>&1 \\
18478	   && test \$\$countdown -gt 0; do \\
18479	    \$(DX_PDFLATEX) refman.tex; \\
18480	    countdown=\`expr \$\$countdown - 1\`; \\
18481	done; \\
18482	mv refman.pdf ../\$(PACKAGE).pdf
18483
18484"
18485else
18486  DX_SNIPPET_pdf=""
18487fi
18488if test $DX_FLAG_ps -eq 1 -o $DX_FLAG_pdf -eq 1; then :
18489  DX_SNIPPET_latex="## ------------------------------------------------- ##
18490## Rules specific for LaTeX (shared for PS and PDF). ##
18491## ------------------------------------------------- ##
18492
18493DX_V_LATEX = \$(_DX_v_LATEX_\$(V))
18494_DX_v_LATEX_ = \$(_DX_v_LATEX_\$(AM_DEFAULT_VERBOSITY))
18495_DX_v_LATEX_0 = @echo \"  LATEX \" \$@;
18496
18497DX_CLEAN_LATEX = \$(DX_DOCDIR)/latex\\
18498                 \$(DX_DOCDIR)/latex
18499
18500"
18501else
18502  DX_SNIPPET_latex=""
18503fi
18504
18505if test $DX_FLAG_doc -eq 1; then :
18506  DX_SNIPPET_doc="## --------------------------------- ##
18507## Format-independent Doxygen rules. ##
18508## --------------------------------- ##
18509
18510${DX_SNIPPET_html}\
18511${DX_SNIPPET_chm}\
18512${DX_SNIPPET_man}\
18513${DX_SNIPPET_rtf}\
18514${DX_SNIPPET_xml}\
18515${DX_SNIPPET_ps}\
18516${DX_SNIPPET_pdf}\
18517${DX_SNIPPET_latex}\
18518DX_V_DXGEN = \$(_DX_v_DXGEN_\$(V))
18519_DX_v_DXGEN_ = \$(_DX_v_DXGEN_\$(AM_DEFAULT_VERBOSITY))
18520_DX_v_DXGEN_0 = @echo \"  DXGEN \" \$<;
18521
18522.PHONY: doxygen-run doxygen-doc \$(DX_PS_GOAL) \$(DX_PDF_GOAL)
18523
18524.INTERMEDIATE: doxygen-run \$(DX_PS_GOAL) \$(DX_PDF_GOAL)
18525
18526doxygen-run: \$(DX_DOCDIR)/\$(PACKAGE).tag
18527
18528doxygen-doc: doxygen-run \$(DX_PS_GOAL) \$(DX_PDF_GOAL)
18529
18530\$(DX_DOCDIR)/\$(PACKAGE).tag: \$(DX_CONFIG) \$(pkginclude_HEADERS)
18531	\$(A""M_V_at)rm -rf \$(DX_DOCDIR)
18532	\$(DX_V_DXGEN)\$(DX_ENV) DOCDIR=\$(DX_DOCDIR) \$(DX_DOXYGEN) \$(DX_CONFIG)
18533	\$(A""M_V_at)echo Timestamp >\$@
18534
18535DX_CLEANFILES = \\
18536	\$(DX_DOCDIR)/doxygen_sqlite3.db \\
18537	\$(DX_DOCDIR)/\$(PACKAGE).tag \\
18538	-r \\
18539	\$(DX_CLEAN_HTML) \\
18540	\$(DX_CLEAN_CHM) \\
18541	\$(DX_CLEAN_CHI) \\
18542	\$(DX_CLEAN_MAN) \\
18543	\$(DX_CLEAN_RTF) \\
18544	\$(DX_CLEAN_XML) \\
18545	\$(DX_CLEAN_PS) \\
18546	\$(DX_CLEAN_PDF) \\
18547	\$(DX_CLEAN_LATEX)
18548DX_INSTALL_DOCS = \\
18549	\$(DX_CLEAN_HTML) \\
18550	\$(DX_CLEAN_CHM) \\
18551	\$(DX_CLEAN_CHI) \\
18552	\$(DX_CLEAN_RTF) \\
18553	\$(DX_CLEAN_XML) \\
18554	\$(DX_CLEAN_PS) \\
18555	\$(DX_CLEAN_PDF) \\
18556	\$(DX_CLEAN_LATEX)
18557    "
18558else
18559  DX_SNIPPET_doc=""
18560fi
18561DX_RULES="${DX_SNIPPET_doc}"
18562
18563
18564#For debugging:
18565#echo DX_FLAG_doc=$DX_FLAG_doc
18566#echo DX_FLAG_dot=$DX_FLAG_dot
18567#echo DX_FLAG_man=$DX_FLAG_man
18568#echo DX_FLAG_html=$DX_FLAG_html
18569#echo DX_FLAG_chm=$DX_FLAG_chm
18570#echo DX_FLAG_chi=$DX_FLAG_chi
18571#echo DX_FLAG_rtf=$DX_FLAG_rtf
18572#echo DX_FLAG_xml=$DX_FLAG_xml
18573#echo DX_FLAG_pdf=$DX_FLAG_pdf
18574#echo DX_FLAG_ps=$DX_FLAG_ps
18575#echo DX_ENV=$DX_ENV
18576
18577
18578 if test "$DX_FLAG_doc" = "1"; then
18579  ENABLE_DOXYGEN_TRUE=
18580  ENABLE_DOXYGEN_FALSE='#'
18581else
18582  ENABLE_DOXYGEN_TRUE='#'
18583  ENABLE_DOXYGEN_FALSE=
18584fi
18585
18586 if test "$DX_FLAG_man" = "1"; then
18587  ENABLE_DOXYGEN_MAN_TRUE=
18588  ENABLE_DOXYGEN_MAN_FALSE='#'
18589else
18590  ENABLE_DOXYGEN_MAN_TRUE='#'
18591  ENABLE_DOXYGEN_MAN_FALSE=
18592fi
18593
18594
18595ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc libevent_core.pc libevent_extra.pc"
18596
18597ac_config_files="$ac_config_files Makefile"
18598
18599cat >confcache <<\_ACEOF
18600# This file is a shell script that caches the results of configure
18601# tests run on this system so they can be shared between configure
18602# scripts and configure runs, see configure's option --config-cache.
18603# It is not useful on other systems.  If it contains results you don't
18604# want to keep, you may remove or edit it.
18605#
18606# config.status only pays attention to the cache file if you give it
18607# the --recheck option to rerun configure.
18608#
18609# `ac_cv_env_foo' variables (set or unset) will be overridden when
18610# loading this file, other *unset* `ac_cv_foo' will be assigned the
18611# following values.
18612
18613_ACEOF
18614
18615# The following way of writing the cache mishandles newlines in values,
18616# but we know of no workaround that is simple, portable, and efficient.
18617# So, we kill variables containing newlines.
18618# Ultrix sh set writes to stderr and can't be redirected directly,
18619# and sets the high bit in the cache file unless we assign to the vars.
18620(
18621  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18622    eval ac_val=\$$ac_var
18623    case $ac_val in #(
18624    *${as_nl}*)
18625      case $ac_var in #(
18626      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18627$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18628      esac
18629      case $ac_var in #(
18630      _ | IFS | as_nl) ;; #(
18631      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18632      *) { eval $ac_var=; unset $ac_var;} ;;
18633      esac ;;
18634    esac
18635  done
18636
18637  (set) 2>&1 |
18638    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18639    *${as_nl}ac_space=\ *)
18640      # `set' does not quote correctly, so add quotes: double-quote
18641      # substitution turns \\\\ into \\, and sed turns \\ into \.
18642      sed -n \
18643	"s/'/'\\\\''/g;
18644	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18645      ;; #(
18646    *)
18647      # `set' quotes correctly as required by POSIX, so do not add quotes.
18648      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18649      ;;
18650    esac |
18651    sort
18652) |
18653  sed '
18654     /^ac_cv_env_/b end
18655     t clear
18656     :clear
18657     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18658     t end
18659     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18660     :end' >>confcache
18661if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18662  if test -w "$cache_file"; then
18663    if test "x$cache_file" != "x/dev/null"; then
18664      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18665$as_echo "$as_me: updating cache $cache_file" >&6;}
18666      if test ! -f "$cache_file" || test -h "$cache_file"; then
18667	cat confcache >"$cache_file"
18668      else
18669        case $cache_file in #(
18670        */* | ?:*)
18671	  mv -f confcache "$cache_file"$$ &&
18672	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18673        *)
18674	  mv -f confcache "$cache_file" ;;
18675	esac
18676      fi
18677    fi
18678  else
18679    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18680$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18681  fi
18682fi
18683rm -f confcache
18684
18685test "x$prefix" = xNONE && prefix=$ac_default_prefix
18686# Let make expand exec_prefix.
18687test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18688
18689DEFS=-DHAVE_CONFIG_H
18690
18691ac_libobjs=
18692ac_ltlibobjs=
18693U=
18694for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18695  # 1. Remove the extension, and $U if already installed.
18696  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18697  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18698  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18699  #    will be set to the directory where LIBOBJS objects are built.
18700  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18701  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18702done
18703LIBOBJS=$ac_libobjs
18704
18705LTLIBOBJS=$ac_ltlibobjs
18706
18707
18708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18709$as_echo_n "checking that generated files are newer than configure... " >&6; }
18710   if test -n "$am_sleep_pid"; then
18711     # Hide warnings about reused PIDs.
18712     wait $am_sleep_pid 2>/dev/null
18713   fi
18714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18715$as_echo "done" >&6; }
18716 if test -n "$EXEEXT"; then
18717  am__EXEEXT_TRUE=
18718  am__EXEEXT_FALSE='#'
18719else
18720  am__EXEEXT_TRUE='#'
18721  am__EXEEXT_FALSE=
18722fi
18723
18724if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18725  as_fn_error $? "conditional \"AMDEP\" was never defined.
18726Usually this means the macro was only invoked conditionally." "$LINENO" 5
18727fi
18728if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18729  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18730Usually this means the macro was only invoked conditionally." "$LINENO" 5
18731fi
18732if test -z "${BUILD_SAMPLES_TRUE}" && test -z "${BUILD_SAMPLES_FALSE}"; then
18733  as_fn_error $? "conditional \"BUILD_SAMPLES\" was never defined.
18734Usually this means the macro was only invoked conditionally." "$LINENO" 5
18735fi
18736if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
18737  as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
18738Usually this means the macro was only invoked conditionally." "$LINENO" 5
18739fi
18740if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
18741  as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
18742Usually this means the macro was only invoked conditionally." "$LINENO" 5
18743fi
18744if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
18745  as_fn_error $? "conditional \"OPENSSL\" was never defined.
18746Usually this means the macro was only invoked conditionally." "$LINENO" 5
18747fi
18748if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
18749  as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
18750Usually this means the macro was only invoked conditionally." "$LINENO" 5
18751fi
18752if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
18753  as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
18754Usually this means the macro was only invoked conditionally." "$LINENO" 5
18755fi
18756if test -z "${BUILD_MIDIPIX_TRUE}" && test -z "${BUILD_MIDIPIX_FALSE}"; then
18757  as_fn_error $? "conditional \"BUILD_MIDIPIX\" was never defined.
18758Usually this means the macro was only invoked conditionally." "$LINENO" 5
18759fi
18760if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
18761  as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
18762Usually this means the macro was only invoked conditionally." "$LINENO" 5
18763fi
18764if test -z "${STRLCPY_IMPL_TRUE}" && test -z "${STRLCPY_IMPL_FALSE}"; then
18765  as_fn_error $? "conditional \"STRLCPY_IMPL\" was never defined.
18766Usually this means the macro was only invoked conditionally." "$LINENO" 5
18767fi
18768if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
18769  as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
18770Usually this means the macro was only invoked conditionally." "$LINENO" 5
18771fi
18772if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
18773  as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
18774Usually this means the macro was only invoked conditionally." "$LINENO" 5
18775fi
18776if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
18777  as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
18778Usually this means the macro was only invoked conditionally." "$LINENO" 5
18779fi
18780if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
18781  as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
18782Usually this means the macro was only invoked conditionally." "$LINENO" 5
18783fi
18784if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
18785  as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
18786Usually this means the macro was only invoked conditionally." "$LINENO" 5
18787fi
18788if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
18789  as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
18790Usually this means the macro was only invoked conditionally." "$LINENO" 5
18791fi
18792if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
18793  as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
18794Usually this means the macro was only invoked conditionally." "$LINENO" 5
18795fi
18796if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
18797  as_fn_error $? "conditional \"THREADS\" was never defined.
18798Usually this means the macro was only invoked conditionally." "$LINENO" 5
18799fi
18800if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
18801  as_fn_error $? "conditional \"PTHREADS\" was never defined.
18802Usually this means the macro was only invoked conditionally." "$LINENO" 5
18803fi
18804if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
18805  as_fn_error $? "conditional \"OPENSSL\" was never defined.
18806Usually this means the macro was only invoked conditionally." "$LINENO" 5
18807fi
18808if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
18809  as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
18810Usually this means the macro was only invoked conditionally." "$LINENO" 5
18811fi
18812if test -z "${ENABLE_DOXYGEN_TRUE}" && test -z "${ENABLE_DOXYGEN_FALSE}"; then
18813  as_fn_error $? "conditional \"ENABLE_DOXYGEN\" was never defined.
18814Usually this means the macro was only invoked conditionally." "$LINENO" 5
18815fi
18816if test -z "${ENABLE_DOXYGEN_MAN_TRUE}" && test -z "${ENABLE_DOXYGEN_MAN_FALSE}"; then
18817  as_fn_error $? "conditional \"ENABLE_DOXYGEN_MAN\" was never defined.
18818Usually this means the macro was only invoked conditionally." "$LINENO" 5
18819fi
18820
18821: "${CONFIG_STATUS=./config.status}"
18822ac_write_fail=0
18823ac_clean_files_save=$ac_clean_files
18824ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18825{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18826$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18827as_write_fail=0
18828cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18829#! $SHELL
18830# Generated by $as_me.
18831# Run this file to recreate the current configuration.
18832# Compiler output produced by configure, useful for debugging
18833# configure, is in config.log if it exists.
18834
18835debug=false
18836ac_cs_recheck=false
18837ac_cs_silent=false
18838
18839SHELL=\${CONFIG_SHELL-$SHELL}
18840export SHELL
18841_ASEOF
18842cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18843## -------------------- ##
18844## M4sh Initialization. ##
18845## -------------------- ##
18846
18847# Be more Bourne compatible
18848DUALCASE=1; export DUALCASE # for MKS sh
18849if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18850  emulate sh
18851  NULLCMD=:
18852  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18853  # is contrary to our usage.  Disable this feature.
18854  alias -g '${1+"$@"}'='"$@"'
18855  setopt NO_GLOB_SUBST
18856else
18857  case `(set -o) 2>/dev/null` in #(
18858  *posix*) :
18859    set -o posix ;; #(
18860  *) :
18861     ;;
18862esac
18863fi
18864
18865
18866as_nl='
18867'
18868export as_nl
18869# Printing a long string crashes Solaris 7 /usr/bin/printf.
18870as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18871as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18872as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18873# Prefer a ksh shell builtin over an external printf program on Solaris,
18874# but without wasting forks for bash or zsh.
18875if test -z "$BASH_VERSION$ZSH_VERSION" \
18876    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18877  as_echo='print -r --'
18878  as_echo_n='print -rn --'
18879elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18880  as_echo='printf %s\n'
18881  as_echo_n='printf %s'
18882else
18883  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18884    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18885    as_echo_n='/usr/ucb/echo -n'
18886  else
18887    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18888    as_echo_n_body='eval
18889      arg=$1;
18890      case $arg in #(
18891      *"$as_nl"*)
18892	expr "X$arg" : "X\\(.*\\)$as_nl";
18893	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18894      esac;
18895      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18896    '
18897    export as_echo_n_body
18898    as_echo_n='sh -c $as_echo_n_body as_echo'
18899  fi
18900  export as_echo_body
18901  as_echo='sh -c $as_echo_body as_echo'
18902fi
18903
18904# The user is always right.
18905if test "${PATH_SEPARATOR+set}" != set; then
18906  PATH_SEPARATOR=:
18907  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18908    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18909      PATH_SEPARATOR=';'
18910  }
18911fi
18912
18913
18914# IFS
18915# We need space, tab and new line, in precisely that order.  Quoting is
18916# there to prevent editors from complaining about space-tab.
18917# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18918# splitting by setting IFS to empty value.)
18919IFS=" ""	$as_nl"
18920
18921# Find who we are.  Look in the path if we contain no directory separator.
18922as_myself=
18923case $0 in #((
18924  *[\\/]* ) as_myself=$0 ;;
18925  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18926for as_dir in $PATH
18927do
18928  IFS=$as_save_IFS
18929  test -z "$as_dir" && as_dir=.
18930    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18931  done
18932IFS=$as_save_IFS
18933
18934     ;;
18935esac
18936# We did not find ourselves, most probably we were run as `sh COMMAND'
18937# in which case we are not to be found in the path.
18938if test "x$as_myself" = x; then
18939  as_myself=$0
18940fi
18941if test ! -f "$as_myself"; then
18942  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18943  exit 1
18944fi
18945
18946# Unset variables that we do not need and which cause bugs (e.g. in
18947# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18948# suppresses any "Segmentation fault" message there.  '((' could
18949# trigger a bug in pdksh 5.2.14.
18950for as_var in BASH_ENV ENV MAIL MAILPATH
18951do eval test x\${$as_var+set} = xset \
18952  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18953done
18954PS1='$ '
18955PS2='> '
18956PS4='+ '
18957
18958# NLS nuisances.
18959LC_ALL=C
18960export LC_ALL
18961LANGUAGE=C
18962export LANGUAGE
18963
18964# CDPATH.
18965(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18966
18967
18968# as_fn_error STATUS ERROR [LINENO LOG_FD]
18969# ----------------------------------------
18970# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18971# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18972# script with STATUS, using 1 if that was 0.
18973as_fn_error ()
18974{
18975  as_status=$1; test $as_status -eq 0 && as_status=1
18976  if test "$4"; then
18977    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18978    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18979  fi
18980  $as_echo "$as_me: error: $2" >&2
18981  as_fn_exit $as_status
18982} # as_fn_error
18983
18984
18985# as_fn_set_status STATUS
18986# -----------------------
18987# Set $? to STATUS, without forking.
18988as_fn_set_status ()
18989{
18990  return $1
18991} # as_fn_set_status
18992
18993# as_fn_exit STATUS
18994# -----------------
18995# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18996as_fn_exit ()
18997{
18998  set +e
18999  as_fn_set_status $1
19000  exit $1
19001} # as_fn_exit
19002
19003# as_fn_unset VAR
19004# ---------------
19005# Portably unset VAR.
19006as_fn_unset ()
19007{
19008  { eval $1=; unset $1;}
19009}
19010as_unset=as_fn_unset
19011# as_fn_append VAR VALUE
19012# ----------------------
19013# Append the text in VALUE to the end of the definition contained in VAR. Take
19014# advantage of any shell optimizations that allow amortized linear growth over
19015# repeated appends, instead of the typical quadratic growth present in naive
19016# implementations.
19017if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19018  eval 'as_fn_append ()
19019  {
19020    eval $1+=\$2
19021  }'
19022else
19023  as_fn_append ()
19024  {
19025    eval $1=\$$1\$2
19026  }
19027fi # as_fn_append
19028
19029# as_fn_arith ARG...
19030# ------------------
19031# Perform arithmetic evaluation on the ARGs, and store the result in the
19032# global $as_val. Take advantage of shells that can avoid forks. The arguments
19033# must be portable across $(()) and expr.
19034if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19035  eval 'as_fn_arith ()
19036  {
19037    as_val=$(( $* ))
19038  }'
19039else
19040  as_fn_arith ()
19041  {
19042    as_val=`expr "$@" || test $? -eq 1`
19043  }
19044fi # as_fn_arith
19045
19046
19047if expr a : '\(a\)' >/dev/null 2>&1 &&
19048   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19049  as_expr=expr
19050else
19051  as_expr=false
19052fi
19053
19054if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19055  as_basename=basename
19056else
19057  as_basename=false
19058fi
19059
19060if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19061  as_dirname=dirname
19062else
19063  as_dirname=false
19064fi
19065
19066as_me=`$as_basename -- "$0" ||
19067$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19068	 X"$0" : 'X\(//\)$' \| \
19069	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19070$as_echo X/"$0" |
19071    sed '/^.*\/\([^/][^/]*\)\/*$/{
19072	    s//\1/
19073	    q
19074	  }
19075	  /^X\/\(\/\/\)$/{
19076	    s//\1/
19077	    q
19078	  }
19079	  /^X\/\(\/\).*/{
19080	    s//\1/
19081	    q
19082	  }
19083	  s/.*/./; q'`
19084
19085# Avoid depending upon Character Ranges.
19086as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19087as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19088as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19089as_cr_digits='0123456789'
19090as_cr_alnum=$as_cr_Letters$as_cr_digits
19091
19092ECHO_C= ECHO_N= ECHO_T=
19093case `echo -n x` in #(((((
19094-n*)
19095  case `echo 'xy\c'` in
19096  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19097  xy)  ECHO_C='\c';;
19098  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19099       ECHO_T='	';;
19100  esac;;
19101*)
19102  ECHO_N='-n';;
19103esac
19104
19105rm -f conf$$ conf$$.exe conf$$.file
19106if test -d conf$$.dir; then
19107  rm -f conf$$.dir/conf$$.file
19108else
19109  rm -f conf$$.dir
19110  mkdir conf$$.dir 2>/dev/null
19111fi
19112if (echo >conf$$.file) 2>/dev/null; then
19113  if ln -s conf$$.file conf$$ 2>/dev/null; then
19114    as_ln_s='ln -s'
19115    # ... but there are two gotchas:
19116    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19117    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19118    # In both cases, we have to default to `cp -pR'.
19119    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19120      as_ln_s='cp -pR'
19121  elif ln conf$$.file conf$$ 2>/dev/null; then
19122    as_ln_s=ln
19123  else
19124    as_ln_s='cp -pR'
19125  fi
19126else
19127  as_ln_s='cp -pR'
19128fi
19129rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19130rmdir conf$$.dir 2>/dev/null
19131
19132
19133# as_fn_mkdir_p
19134# -------------
19135# Create "$as_dir" as a directory, including parents if necessary.
19136as_fn_mkdir_p ()
19137{
19138
19139  case $as_dir in #(
19140  -*) as_dir=./$as_dir;;
19141  esac
19142  test -d "$as_dir" || eval $as_mkdir_p || {
19143    as_dirs=
19144    while :; do
19145      case $as_dir in #(
19146      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19147      *) as_qdir=$as_dir;;
19148      esac
19149      as_dirs="'$as_qdir' $as_dirs"
19150      as_dir=`$as_dirname -- "$as_dir" ||
19151$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19152	 X"$as_dir" : 'X\(//\)[^/]' \| \
19153	 X"$as_dir" : 'X\(//\)$' \| \
19154	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19155$as_echo X"$as_dir" |
19156    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19157	    s//\1/
19158	    q
19159	  }
19160	  /^X\(\/\/\)[^/].*/{
19161	    s//\1/
19162	    q
19163	  }
19164	  /^X\(\/\/\)$/{
19165	    s//\1/
19166	    q
19167	  }
19168	  /^X\(\/\).*/{
19169	    s//\1/
19170	    q
19171	  }
19172	  s/.*/./; q'`
19173      test -d "$as_dir" && break
19174    done
19175    test -z "$as_dirs" || eval "mkdir $as_dirs"
19176  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19177
19178
19179} # as_fn_mkdir_p
19180if mkdir -p . 2>/dev/null; then
19181  as_mkdir_p='mkdir -p "$as_dir"'
19182else
19183  test -d ./-p && rmdir ./-p
19184  as_mkdir_p=false
19185fi
19186
19187
19188# as_fn_executable_p FILE
19189# -----------------------
19190# Test if FILE is an executable regular file.
19191as_fn_executable_p ()
19192{
19193  test -f "$1" && test -x "$1"
19194} # as_fn_executable_p
19195as_test_x='test -x'
19196as_executable_p=as_fn_executable_p
19197
19198# Sed expression to map a string onto a valid CPP name.
19199as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19200
19201# Sed expression to map a string onto a valid variable name.
19202as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19203
19204
19205exec 6>&1
19206## ----------------------------------- ##
19207## Main body of $CONFIG_STATUS script. ##
19208## ----------------------------------- ##
19209_ASEOF
19210test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19211
19212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19213# Save the log message, to keep $0 and so on meaningful, and to
19214# report actual input values of CONFIG_FILES etc. instead of their
19215# values after options handling.
19216ac_log="
19217This file was extended by libevent $as_me 2.1.12-stable, which was
19218generated by GNU Autoconf 2.69.  Invocation command line was
19219
19220  CONFIG_FILES    = $CONFIG_FILES
19221  CONFIG_HEADERS  = $CONFIG_HEADERS
19222  CONFIG_LINKS    = $CONFIG_LINKS
19223  CONFIG_COMMANDS = $CONFIG_COMMANDS
19224  $ $0 $@
19225
19226on `(hostname || uname -n) 2>/dev/null | sed 1q`
19227"
19228
19229_ACEOF
19230
19231case $ac_config_files in *"
19232"*) set x $ac_config_files; shift; ac_config_files=$*;;
19233esac
19234
19235case $ac_config_headers in *"
19236"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19237esac
19238
19239
19240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19241# Files that config.status was made for.
19242config_files="$ac_config_files"
19243config_headers="$ac_config_headers"
19244config_commands="$ac_config_commands"
19245
19246_ACEOF
19247
19248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19249ac_cs_usage="\
19250\`$as_me' instantiates files and other configuration actions
19251from templates according to the current configuration.  Unless the files
19252and actions are specified as TAGs, all are instantiated by default.
19253
19254Usage: $0 [OPTION]... [TAG]...
19255
19256  -h, --help       print this help, then exit
19257  -V, --version    print version number and configuration settings, then exit
19258      --config     print configuration, then exit
19259  -q, --quiet, --silent
19260                   do not print progress messages
19261  -d, --debug      don't remove temporary files
19262      --recheck    update $as_me by reconfiguring in the same conditions
19263      --file=FILE[:TEMPLATE]
19264                   instantiate the configuration file FILE
19265      --header=FILE[:TEMPLATE]
19266                   instantiate the configuration header FILE
19267
19268Configuration files:
19269$config_files
19270
19271Configuration headers:
19272$config_headers
19273
19274Configuration commands:
19275$config_commands
19276
19277Report bugs to the package provider."
19278
19279_ACEOF
19280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19281ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19282ac_cs_version="\\
19283libevent config.status 2.1.12-stable
19284configured by $0, generated by GNU Autoconf 2.69,
19285  with options \\"\$ac_cs_config\\"
19286
19287Copyright (C) 2012 Free Software Foundation, Inc.
19288This config.status script is free software; the Free Software Foundation
19289gives unlimited permission to copy, distribute and modify it."
19290
19291ac_pwd='$ac_pwd'
19292srcdir='$srcdir'
19293INSTALL='$INSTALL'
19294MKDIR_P='$MKDIR_P'
19295AWK='$AWK'
19296test -n "\$AWK" || AWK=awk
19297_ACEOF
19298
19299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19300# The default lists apply if the user does not specify any file.
19301ac_need_defaults=:
19302while test $# != 0
19303do
19304  case $1 in
19305  --*=?*)
19306    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19307    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19308    ac_shift=:
19309    ;;
19310  --*=)
19311    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19312    ac_optarg=
19313    ac_shift=:
19314    ;;
19315  *)
19316    ac_option=$1
19317    ac_optarg=$2
19318    ac_shift=shift
19319    ;;
19320  esac
19321
19322  case $ac_option in
19323  # Handling of the options.
19324  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19325    ac_cs_recheck=: ;;
19326  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19327    $as_echo "$ac_cs_version"; exit ;;
19328  --config | --confi | --conf | --con | --co | --c )
19329    $as_echo "$ac_cs_config"; exit ;;
19330  --debug | --debu | --deb | --de | --d | -d )
19331    debug=: ;;
19332  --file | --fil | --fi | --f )
19333    $ac_shift
19334    case $ac_optarg in
19335    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19336    '') as_fn_error $? "missing file argument" ;;
19337    esac
19338    as_fn_append CONFIG_FILES " '$ac_optarg'"
19339    ac_need_defaults=false;;
19340  --header | --heade | --head | --hea )
19341    $ac_shift
19342    case $ac_optarg in
19343    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19344    esac
19345    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19346    ac_need_defaults=false;;
19347  --he | --h)
19348    # Conflict between --help and --header
19349    as_fn_error $? "ambiguous option: \`$1'
19350Try \`$0 --help' for more information.";;
19351  --help | --hel | -h )
19352    $as_echo "$ac_cs_usage"; exit ;;
19353  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19354  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19355    ac_cs_silent=: ;;
19356
19357  # This is an error.
19358  -*) as_fn_error $? "unrecognized option: \`$1'
19359Try \`$0 --help' for more information." ;;
19360
19361  *) as_fn_append ac_config_targets " $1"
19362     ac_need_defaults=false ;;
19363
19364  esac
19365  shift
19366done
19367
19368ac_configure_extra_args=
19369
19370if $ac_cs_silent; then
19371  exec 6>/dev/null
19372  ac_configure_extra_args="$ac_configure_extra_args --silent"
19373fi
19374
19375_ACEOF
19376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19377if \$ac_cs_recheck; then
19378  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19379  shift
19380  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19381  CONFIG_SHELL='$SHELL'
19382  export CONFIG_SHELL
19383  exec "\$@"
19384fi
19385
19386_ACEOF
19387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19388exec 5>>config.log
19389{
19390  echo
19391  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19392## Running $as_me. ##
19393_ASBOX
19394  $as_echo "$ac_log"
19395} >&5
19396
19397_ACEOF
19398cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19399#
19400# INIT-COMMANDS
19401#
19402AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19403
19404
19405# The HP-UX ksh and POSIX shell print the target directory to stdout
19406# if CDPATH is set.
19407(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19408
19409sed_quote_subst='$sed_quote_subst'
19410double_quote_subst='$double_quote_subst'
19411delay_variable_subst='$delay_variable_subst'
19412macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19413macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19414enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19415enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19416pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19417enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19418shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19419SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19420ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19421PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19422host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19423host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19424host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19425build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19426build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19427build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19428SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19429Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19430GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19431EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19432FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19433LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19434NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19435LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19436max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19437ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19438exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19439lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19440lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19441lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19442lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19443lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19444reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19445reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19446OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19447deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19448file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19449file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19450want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19451DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19452sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19453AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19454AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19455archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19456STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19457RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19458old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19459old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19460old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19461lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19462CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19463CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19464compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19465GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19466lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19467lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19468lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19469lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19470lt_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"`'
19471lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19472nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19473lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19474lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19475objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19476MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19477lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19478lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19479lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19480lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19481lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19482need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19483MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19484DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19485NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19486LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19487OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19488OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19489libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19490shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19491extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19492archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19493enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19494export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19495whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19496compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19497old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19498old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19499archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19500archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19501module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19502module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19503with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19504allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19505no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19506hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19507hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19508hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19509hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19510hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19511hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19512hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19513inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19514link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19515always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19516export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19517exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19518include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19519prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19520postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19521file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19522variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19523need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19524need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19525version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19526runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19527shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19528shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19529libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19530library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19531soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19532install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19533postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19534postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19535finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19536finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19537hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19538sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19539configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19540configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19541hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19542enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19543enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19544enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19545old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19546striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19547
19548LTCC='$LTCC'
19549LTCFLAGS='$LTCFLAGS'
19550compiler='$compiler_DEFAULT'
19551
19552# A function that is used when there is no print builtin or printf.
19553func_fallback_echo ()
19554{
19555  eval 'cat <<_LTECHO_EOF
19556\$1
19557_LTECHO_EOF'
19558}
19559
19560# Quote evaled strings.
19561for var in SHELL \
19562ECHO \
19563PATH_SEPARATOR \
19564SED \
19565GREP \
19566EGREP \
19567FGREP \
19568LD \
19569NM \
19570LN_S \
19571lt_SP2NL \
19572lt_NL2SP \
19573reload_flag \
19574OBJDUMP \
19575deplibs_check_method \
19576file_magic_cmd \
19577file_magic_glob \
19578want_nocaseglob \
19579DLLTOOL \
19580sharedlib_from_linklib_cmd \
19581AR \
19582AR_FLAGS \
19583archiver_list_spec \
19584STRIP \
19585RANLIB \
19586CC \
19587CFLAGS \
19588compiler \
19589lt_cv_sys_global_symbol_pipe \
19590lt_cv_sys_global_symbol_to_cdecl \
19591lt_cv_sys_global_symbol_to_import \
19592lt_cv_sys_global_symbol_to_c_name_address \
19593lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19594lt_cv_nm_interface \
19595nm_file_list_spec \
19596lt_cv_truncate_bin \
19597lt_prog_compiler_no_builtin_flag \
19598lt_prog_compiler_pic \
19599lt_prog_compiler_wl \
19600lt_prog_compiler_static \
19601lt_cv_prog_compiler_c_o \
19602need_locks \
19603MANIFEST_TOOL \
19604DSYMUTIL \
19605NMEDIT \
19606LIPO \
19607OTOOL \
19608OTOOL64 \
19609shrext_cmds \
19610export_dynamic_flag_spec \
19611whole_archive_flag_spec \
19612compiler_needs_object \
19613with_gnu_ld \
19614allow_undefined_flag \
19615no_undefined_flag \
19616hardcode_libdir_flag_spec \
19617hardcode_libdir_separator \
19618exclude_expsyms \
19619include_expsyms \
19620file_list_spec \
19621variables_saved_for_relink \
19622libname_spec \
19623library_names_spec \
19624soname_spec \
19625install_override_mode \
19626finish_eval \
19627old_striplib \
19628striplib; do
19629    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19630    *[\\\\\\\`\\"\\\$]*)
19631      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19632      ;;
19633    *)
19634      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19635      ;;
19636    esac
19637done
19638
19639# Double-quote double-evaled strings.
19640for var in reload_cmds \
19641old_postinstall_cmds \
19642old_postuninstall_cmds \
19643old_archive_cmds \
19644extract_expsyms_cmds \
19645old_archive_from_new_cmds \
19646old_archive_from_expsyms_cmds \
19647archive_cmds \
19648archive_expsym_cmds \
19649module_cmds \
19650module_expsym_cmds \
19651export_symbols_cmds \
19652prelink_cmds \
19653postlink_cmds \
19654postinstall_cmds \
19655postuninstall_cmds \
19656finish_cmds \
19657sys_lib_search_path_spec \
19658configure_time_dlsearch_path \
19659configure_time_lt_sys_library_path; do
19660    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19661    *[\\\\\\\`\\"\\\$]*)
19662      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19663      ;;
19664    *)
19665      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19666      ;;
19667    esac
19668done
19669
19670ac_aux_dir='$ac_aux_dir'
19671
19672# See if we are running on zsh, and set the options that allow our
19673# commands through without removal of \ escapes INIT.
19674if test -n "\${ZSH_VERSION+set}"; then
19675   setopt NO_GLOB_SUBST
19676fi
19677
19678
19679    PACKAGE='$PACKAGE'
19680    VERSION='$VERSION'
19681    RM='$RM'
19682    ofile='$ofile'
19683
19684
19685
19686
19687_ACEOF
19688
19689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19690
19691# Handling of arguments.
19692for ac_config_target in $ac_config_targets
19693do
19694  case $ac_config_target in
19695    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19696    "evconfig-private.h") CONFIG_HEADERS="$CONFIG_HEADERS evconfig-private.h:evconfig-private.h.in" ;;
19697    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19698    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19699    "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
19700    "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
19701    "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
19702    "libevent_core.pc") CONFIG_FILES="$CONFIG_FILES libevent_core.pc" ;;
19703    "libevent_extra.pc") CONFIG_FILES="$CONFIG_FILES libevent_extra.pc" ;;
19704    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19705
19706  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19707  esac
19708done
19709
19710
19711# If the user did not use the arguments to specify the items to instantiate,
19712# then the envvar interface is used.  Set only those that are not.
19713# We use the long form for the default assignment because of an extremely
19714# bizarre bug on SunOS 4.1.3.
19715if $ac_need_defaults; then
19716  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19717  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19718  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19719fi
19720
19721# Have a temporary directory for convenience.  Make it in the build tree
19722# simply because there is no reason against having it here, and in addition,
19723# creating and moving files from /tmp can sometimes cause problems.
19724# Hook for its removal unless debugging.
19725# Note that there is a small window in which the directory will not be cleaned:
19726# after its creation but before its name has been assigned to `$tmp'.
19727$debug ||
19728{
19729  tmp= ac_tmp=
19730  trap 'exit_status=$?
19731  : "${ac_tmp:=$tmp}"
19732  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19733' 0
19734  trap 'as_fn_exit 1' 1 2 13 15
19735}
19736# Create a (secure) tmp directory for tmp files.
19737
19738{
19739  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19740  test -d "$tmp"
19741}  ||
19742{
19743  tmp=./conf$$-$RANDOM
19744  (umask 077 && mkdir "$tmp")
19745} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19746ac_tmp=$tmp
19747
19748# Set up the scripts for CONFIG_FILES section.
19749# No need to generate them if there are no CONFIG_FILES.
19750# This happens for instance with `./config.status config.h'.
19751if test -n "$CONFIG_FILES"; then
19752
19753
19754ac_cr=`echo X | tr X '\015'`
19755# On cygwin, bash can eat \r inside `` if the user requested igncr.
19756# But we know of no other shell where ac_cr would be empty at this
19757# point, so we can use a bashism as a fallback.
19758if test "x$ac_cr" = x; then
19759  eval ac_cr=\$\'\\r\'
19760fi
19761ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19762if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19763  ac_cs_awk_cr='\\r'
19764else
19765  ac_cs_awk_cr=$ac_cr
19766fi
19767
19768echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19769_ACEOF
19770
19771
19772{
19773  echo "cat >conf$$subs.awk <<_ACEOF" &&
19774  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19775  echo "_ACEOF"
19776} >conf$$subs.sh ||
19777  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19778ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19779ac_delim='%!_!# '
19780for ac_last_try in false false false false false :; do
19781  . ./conf$$subs.sh ||
19782    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19783
19784  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19785  if test $ac_delim_n = $ac_delim_num; then
19786    break
19787  elif $ac_last_try; then
19788    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19789  else
19790    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19791  fi
19792done
19793rm -f conf$$subs.sh
19794
19795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19796cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19797_ACEOF
19798sed -n '
19799h
19800s/^/S["/; s/!.*/"]=/
19801p
19802g
19803s/^[^!]*!//
19804:repl
19805t repl
19806s/'"$ac_delim"'$//
19807t delim
19808:nl
19809h
19810s/\(.\{148\}\)..*/\1/
19811t more1
19812s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19813p
19814n
19815b repl
19816:more1
19817s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19818p
19819g
19820s/.\{148\}//
19821t nl
19822:delim
19823h
19824s/\(.\{148\}\)..*/\1/
19825t more2
19826s/["\\]/\\&/g; s/^/"/; s/$/"/
19827p
19828b
19829:more2
19830s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19831p
19832g
19833s/.\{148\}//
19834t delim
19835' <conf$$subs.awk | sed '
19836/^[^""]/{
19837  N
19838  s/\n//
19839}
19840' >>$CONFIG_STATUS || ac_write_fail=1
19841rm -f conf$$subs.awk
19842cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19843_ACAWK
19844cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19845  for (key in S) S_is_set[key] = 1
19846  FS = ""
19847
19848}
19849{
19850  line = $ 0
19851  nfields = split(line, field, "@")
19852  substed = 0
19853  len = length(field[1])
19854  for (i = 2; i < nfields; i++) {
19855    key = field[i]
19856    keylen = length(key)
19857    if (S_is_set[key]) {
19858      value = S[key]
19859      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19860      len += length(value) + length(field[++i])
19861      substed = 1
19862    } else
19863      len += 1 + keylen
19864  }
19865
19866  print line
19867}
19868
19869_ACAWK
19870_ACEOF
19871cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19872if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19873  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19874else
19875  cat
19876fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19877  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19878_ACEOF
19879
19880# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19881# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19882# trailing colons and then remove the whole line if VPATH becomes empty
19883# (actually we leave an empty line to preserve line numbers).
19884if test "x$srcdir" = x.; then
19885  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19886h
19887s///
19888s/^/:/
19889s/[	 ]*$/:/
19890s/:\$(srcdir):/:/g
19891s/:\${srcdir}:/:/g
19892s/:@srcdir@:/:/g
19893s/^:*//
19894s/:*$//
19895x
19896s/\(=[	 ]*\).*/\1/
19897G
19898s/\n//
19899s/^[^=]*=[	 ]*$//
19900}'
19901fi
19902
19903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19904fi # test -n "$CONFIG_FILES"
19905
19906# Set up the scripts for CONFIG_HEADERS section.
19907# No need to generate them if there are no CONFIG_HEADERS.
19908# This happens for instance with `./config.status Makefile'.
19909if test -n "$CONFIG_HEADERS"; then
19910cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19911BEGIN {
19912_ACEOF
19913
19914# Transform confdefs.h into an awk script `defines.awk', embedded as
19915# here-document in config.status, that substitutes the proper values into
19916# config.h.in to produce config.h.
19917
19918# Create a delimiter string that does not exist in confdefs.h, to ease
19919# handling of long lines.
19920ac_delim='%!_!# '
19921for ac_last_try in false false :; do
19922  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19923  if test -z "$ac_tt"; then
19924    break
19925  elif $ac_last_try; then
19926    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19927  else
19928    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19929  fi
19930done
19931
19932# For the awk script, D is an array of macro values keyed by name,
19933# likewise P contains macro parameters if any.  Preserve backslash
19934# newline sequences.
19935
19936ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19937sed -n '
19938s/.\{148\}/&'"$ac_delim"'/g
19939t rset
19940:rset
19941s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19942t def
19943d
19944:def
19945s/\\$//
19946t bsnl
19947s/["\\]/\\&/g
19948s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19949D["\1"]=" \3"/p
19950s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19951d
19952:bsnl
19953s/["\\]/\\&/g
19954s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19955D["\1"]=" \3\\\\\\n"\\/p
19956t cont
19957s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19958t cont
19959d
19960:cont
19961n
19962s/.\{148\}/&'"$ac_delim"'/g
19963t clear
19964:clear
19965s/\\$//
19966t bsnlc
19967s/["\\]/\\&/g; s/^/"/; s/$/"/p
19968d
19969:bsnlc
19970s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19971b cont
19972' <confdefs.h | sed '
19973s/'"$ac_delim"'/"\\\
19974"/g' >>$CONFIG_STATUS || ac_write_fail=1
19975
19976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19977  for (key in D) D_is_set[key] = 1
19978  FS = ""
19979}
19980/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19981  line = \$ 0
19982  split(line, arg, " ")
19983  if (arg[1] == "#") {
19984    defundef = arg[2]
19985    mac1 = arg[3]
19986  } else {
19987    defundef = substr(arg[1], 2)
19988    mac1 = arg[2]
19989  }
19990  split(mac1, mac2, "(") #)
19991  macro = mac2[1]
19992  prefix = substr(line, 1, index(line, defundef) - 1)
19993  if (D_is_set[macro]) {
19994    # Preserve the white space surrounding the "#".
19995    print prefix "define", macro P[macro] D[macro]
19996    next
19997  } else {
19998    # Replace #undef with comments.  This is necessary, for example,
19999    # in the case of _POSIX_SOURCE, which is predefined and required
20000    # on some systems where configure will not decide to define it.
20001    if (defundef == "undef") {
20002      print "/*", prefix defundef, macro, "*/"
20003      next
20004    }
20005  }
20006}
20007{ print }
20008_ACAWK
20009_ACEOF
20010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20011  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20012fi # test -n "$CONFIG_HEADERS"
20013
20014
20015eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20016shift
20017for ac_tag
20018do
20019  case $ac_tag in
20020  :[FHLC]) ac_mode=$ac_tag; continue;;
20021  esac
20022  case $ac_mode$ac_tag in
20023  :[FHL]*:*);;
20024  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20025  :[FH]-) ac_tag=-:-;;
20026  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20027  esac
20028  ac_save_IFS=$IFS
20029  IFS=:
20030  set x $ac_tag
20031  IFS=$ac_save_IFS
20032  shift
20033  ac_file=$1
20034  shift
20035
20036  case $ac_mode in
20037  :L) ac_source=$1;;
20038  :[FH])
20039    ac_file_inputs=
20040    for ac_f
20041    do
20042      case $ac_f in
20043      -) ac_f="$ac_tmp/stdin";;
20044      *) # Look for the file first in the build tree, then in the source tree
20045	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20046	 # because $ac_f cannot contain `:'.
20047	 test -f "$ac_f" ||
20048	   case $ac_f in
20049	   [\\/$]*) false;;
20050	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20051	   esac ||
20052	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20053      esac
20054      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20055      as_fn_append ac_file_inputs " '$ac_f'"
20056    done
20057
20058    # Let's still pretend it is `configure' which instantiates (i.e., don't
20059    # use $as_me), people would be surprised to read:
20060    #    /* config.h.  Generated by config.status.  */
20061    configure_input='Generated from '`
20062	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20063	`' by configure.'
20064    if test x"$ac_file" != x-; then
20065      configure_input="$ac_file.  $configure_input"
20066      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20067$as_echo "$as_me: creating $ac_file" >&6;}
20068    fi
20069    # Neutralize special characters interpreted by sed in replacement strings.
20070    case $configure_input in #(
20071    *\&* | *\|* | *\\* )
20072       ac_sed_conf_input=`$as_echo "$configure_input" |
20073       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20074    *) ac_sed_conf_input=$configure_input;;
20075    esac
20076
20077    case $ac_tag in
20078    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20079      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20080    esac
20081    ;;
20082  esac
20083
20084  ac_dir=`$as_dirname -- "$ac_file" ||
20085$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20086	 X"$ac_file" : 'X\(//\)[^/]' \| \
20087	 X"$ac_file" : 'X\(//\)$' \| \
20088	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20089$as_echo X"$ac_file" |
20090    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20091	    s//\1/
20092	    q
20093	  }
20094	  /^X\(\/\/\)[^/].*/{
20095	    s//\1/
20096	    q
20097	  }
20098	  /^X\(\/\/\)$/{
20099	    s//\1/
20100	    q
20101	  }
20102	  /^X\(\/\).*/{
20103	    s//\1/
20104	    q
20105	  }
20106	  s/.*/./; q'`
20107  as_dir="$ac_dir"; as_fn_mkdir_p
20108  ac_builddir=.
20109
20110case "$ac_dir" in
20111.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20112*)
20113  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20114  # A ".." for each directory in $ac_dir_suffix.
20115  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20116  case $ac_top_builddir_sub in
20117  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20118  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20119  esac ;;
20120esac
20121ac_abs_top_builddir=$ac_pwd
20122ac_abs_builddir=$ac_pwd$ac_dir_suffix
20123# for backward compatibility:
20124ac_top_builddir=$ac_top_build_prefix
20125
20126case $srcdir in
20127  .)  # We are building in place.
20128    ac_srcdir=.
20129    ac_top_srcdir=$ac_top_builddir_sub
20130    ac_abs_top_srcdir=$ac_pwd ;;
20131  [\\/]* | ?:[\\/]* )  # Absolute name.
20132    ac_srcdir=$srcdir$ac_dir_suffix;
20133    ac_top_srcdir=$srcdir
20134    ac_abs_top_srcdir=$srcdir ;;
20135  *) # Relative name.
20136    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20137    ac_top_srcdir=$ac_top_build_prefix$srcdir
20138    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20139esac
20140ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20141
20142
20143  case $ac_mode in
20144  :F)
20145  #
20146  # CONFIG_FILE
20147  #
20148
20149  case $INSTALL in
20150  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20151  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20152  esac
20153  ac_MKDIR_P=$MKDIR_P
20154  case $MKDIR_P in
20155  [\\/$]* | ?:[\\/]* ) ;;
20156  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20157  esac
20158_ACEOF
20159
20160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20161# If the template does not know about datarootdir, expand it.
20162# FIXME: This hack should be removed a few years after 2.60.
20163ac_datarootdir_hack=; ac_datarootdir_seen=
20164ac_sed_dataroot='
20165/datarootdir/ {
20166  p
20167  q
20168}
20169/@datadir@/p
20170/@docdir@/p
20171/@infodir@/p
20172/@localedir@/p
20173/@mandir@/p'
20174case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20175*datarootdir*) ac_datarootdir_seen=yes;;
20176*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20177  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20178$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20179_ACEOF
20180cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20181  ac_datarootdir_hack='
20182  s&@datadir@&$datadir&g
20183  s&@docdir@&$docdir&g
20184  s&@infodir@&$infodir&g
20185  s&@localedir@&$localedir&g
20186  s&@mandir@&$mandir&g
20187  s&\\\${datarootdir}&$datarootdir&g' ;;
20188esac
20189_ACEOF
20190
20191# Neutralize VPATH when `$srcdir' = `.'.
20192# Shell code in configure.ac might set extrasub.
20193# FIXME: do we really want to maintain this feature?
20194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20195ac_sed_extra="$ac_vpsub
20196$extrasub
20197_ACEOF
20198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20199:t
20200/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20201s|@configure_input@|$ac_sed_conf_input|;t t
20202s&@top_builddir@&$ac_top_builddir_sub&;t t
20203s&@top_build_prefix@&$ac_top_build_prefix&;t t
20204s&@srcdir@&$ac_srcdir&;t t
20205s&@abs_srcdir@&$ac_abs_srcdir&;t t
20206s&@top_srcdir@&$ac_top_srcdir&;t t
20207s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20208s&@builddir@&$ac_builddir&;t t
20209s&@abs_builddir@&$ac_abs_builddir&;t t
20210s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20211s&@INSTALL@&$ac_INSTALL&;t t
20212s&@MKDIR_P@&$ac_MKDIR_P&;t t
20213$ac_datarootdir_hack
20214"
20215eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20216  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20217
20218test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20219  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20220  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20221      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20222  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20223which seems to be undefined.  Please make sure it is defined" >&5
20224$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20225which seems to be undefined.  Please make sure it is defined" >&2;}
20226
20227  rm -f "$ac_tmp/stdin"
20228  case $ac_file in
20229  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20230  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20231  esac \
20232  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20233 ;;
20234  :H)
20235  #
20236  # CONFIG_HEADER
20237  #
20238  if test x"$ac_file" != x-; then
20239    {
20240      $as_echo "/* $configure_input  */" \
20241      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20242    } >"$ac_tmp/config.h" \
20243      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20244    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20245      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20246$as_echo "$as_me: $ac_file is unchanged" >&6;}
20247    else
20248      rm -f "$ac_file"
20249      mv "$ac_tmp/config.h" "$ac_file" \
20250	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20251    fi
20252  else
20253    $as_echo "/* $configure_input  */" \
20254      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20255      || as_fn_error $? "could not create -" "$LINENO" 5
20256  fi
20257# Compute "$ac_file"'s index in $config_headers.
20258_am_arg="$ac_file"
20259_am_stamp_count=1
20260for _am_header in $config_headers :; do
20261  case $_am_header in
20262    $_am_arg | $_am_arg:* )
20263      break ;;
20264    * )
20265      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20266  esac
20267done
20268echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20269$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20270	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20271	 X"$_am_arg" : 'X\(//\)$' \| \
20272	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20273$as_echo X"$_am_arg" |
20274    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20275	    s//\1/
20276	    q
20277	  }
20278	  /^X\(\/\/\)[^/].*/{
20279	    s//\1/
20280	    q
20281	  }
20282	  /^X\(\/\/\)$/{
20283	    s//\1/
20284	    q
20285	  }
20286	  /^X\(\/\).*/{
20287	    s//\1/
20288	    q
20289	  }
20290	  s/.*/./; q'`/stamp-h$_am_stamp_count
20291 ;;
20292
20293  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20294$as_echo "$as_me: executing $ac_file commands" >&6;}
20295 ;;
20296  esac
20297
20298
20299  case $ac_file$ac_mode in
20300    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20301  # Older Autoconf quotes --file arguments for eval, but not when files
20302  # are listed without --file.  Let's play safe and only enable the eval
20303  # if we detect the quoting.
20304  # TODO: see whether this extra hack can be removed once we start
20305  # requiring Autoconf 2.70 or later.
20306  case $CONFIG_FILES in #(
20307  *\'*) :
20308    eval set x "$CONFIG_FILES" ;; #(
20309  *) :
20310    set x $CONFIG_FILES ;; #(
20311  *) :
20312     ;;
20313esac
20314  shift
20315  # Used to flag and report bootstrapping failures.
20316  am_rc=0
20317  for am_mf
20318  do
20319    # Strip MF so we end up with the name of the file.
20320    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20321    # Check whether this is an Automake generated Makefile which includes
20322    # dependency-tracking related rules and includes.
20323    # Grep'ing the whole file directly is not great: AIX grep has a line
20324    # limit of 2048, but all sed's we know have understand at least 4000.
20325    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20326      || continue
20327    am_dirpart=`$as_dirname -- "$am_mf" ||
20328$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20329	 X"$am_mf" : 'X\(//\)[^/]' \| \
20330	 X"$am_mf" : 'X\(//\)$' \| \
20331	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20332$as_echo X"$am_mf" |
20333    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20334	    s//\1/
20335	    q
20336	  }
20337	  /^X\(\/\/\)[^/].*/{
20338	    s//\1/
20339	    q
20340	  }
20341	  /^X\(\/\/\)$/{
20342	    s//\1/
20343	    q
20344	  }
20345	  /^X\(\/\).*/{
20346	    s//\1/
20347	    q
20348	  }
20349	  s/.*/./; q'`
20350    am_filepart=`$as_basename -- "$am_mf" ||
20351$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20352	 X"$am_mf" : 'X\(//\)$' \| \
20353	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20354$as_echo X/"$am_mf" |
20355    sed '/^.*\/\([^/][^/]*\)\/*$/{
20356	    s//\1/
20357	    q
20358	  }
20359	  /^X\/\(\/\/\)$/{
20360	    s//\1/
20361	    q
20362	  }
20363	  /^X\/\(\/\).*/{
20364	    s//\1/
20365	    q
20366	  }
20367	  s/.*/./; q'`
20368    { echo "$as_me:$LINENO: cd "$am_dirpart" \
20369      && sed -e '/# am--include-marker/d' "$am_filepart" \
20370        | $MAKE -f - am--depfiles" >&5
20371   (cd "$am_dirpart" \
20372      && sed -e '/# am--include-marker/d' "$am_filepart" \
20373        | $MAKE -f - am--depfiles) >&5 2>&5
20374   ac_status=$?
20375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376   (exit $ac_status); } || am_rc=$?
20377  done
20378  if test $am_rc -ne 0; then
20379    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20381as_fn_error $? "Something went wrong bootstrapping makefile fragments
20382    for automatic dependency tracking.  If GNU make was not used, consider
20383    re-running the configure script with MAKE=\"gmake\" (or whatever is
20384    necessary).  You can also try re-running configure with the
20385    '--disable-dependency-tracking' option to at least be able to build
20386    the package (albeit without support for automatic dependency tracking).
20387See \`config.log' for more details" "$LINENO" 5; }
20388  fi
20389  { am_dirpart=; unset am_dirpart;}
20390  { am_filepart=; unset am_filepart;}
20391  { am_mf=; unset am_mf;}
20392  { am_rc=; unset am_rc;}
20393  rm -f conftest-deps.mk
20394}
20395 ;;
20396    "libtool":C)
20397
20398    # See if we are running on zsh, and set the options that allow our
20399    # commands through without removal of \ escapes.
20400    if test -n "${ZSH_VERSION+set}"; then
20401      setopt NO_GLOB_SUBST
20402    fi
20403
20404    cfgfile=${ofile}T
20405    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20406    $RM "$cfgfile"
20407
20408    cat <<_LT_EOF >> "$cfgfile"
20409#! $SHELL
20410# Generated automatically by $as_me ($PACKAGE) $VERSION
20411# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20412
20413# Provide generalized library-building support services.
20414# Written by Gordon Matzigkeit, 1996
20415
20416# Copyright (C) 2014 Free Software Foundation, Inc.
20417# This is free software; see the source for copying conditions.  There is NO
20418# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20419
20420# GNU Libtool is free software; you can redistribute it and/or modify
20421# it under the terms of the GNU General Public License as published by
20422# the Free Software Foundation; either version 2 of of the License, or
20423# (at your option) any later version.
20424#
20425# As a special exception to the GNU General Public License, if you
20426# distribute this file as part of a program or library that is built
20427# using GNU Libtool, you may include this file under the  same
20428# distribution terms that you use for the rest of that program.
20429#
20430# GNU Libtool is distributed in the hope that it will be useful, but
20431# WITHOUT ANY WARRANTY; without even the implied warranty of
20432# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20433# GNU General Public License for more details.
20434#
20435# You should have received a copy of the GNU General Public License
20436# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20437
20438
20439# The names of the tagged configurations supported by this script.
20440available_tags=''
20441
20442# Configured defaults for sys_lib_dlsearch_path munging.
20443: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20444
20445# ### BEGIN LIBTOOL CONFIG
20446
20447# Which release of libtool.m4 was used?
20448macro_version=$macro_version
20449macro_revision=$macro_revision
20450
20451# Whether or not to build shared libraries.
20452build_libtool_libs=$enable_shared
20453
20454# Whether or not to build static libraries.
20455build_old_libs=$enable_static
20456
20457# What type of objects to build.
20458pic_mode=$pic_mode
20459
20460# Whether or not to optimize for fast installation.
20461fast_install=$enable_fast_install
20462
20463# Shared archive member basename,for filename based shared library versioning on AIX.
20464shared_archive_member_spec=$shared_archive_member_spec
20465
20466# Shell to use when invoking shell scripts.
20467SHELL=$lt_SHELL
20468
20469# An echo program that protects backslashes.
20470ECHO=$lt_ECHO
20471
20472# The PATH separator for the build system.
20473PATH_SEPARATOR=$lt_PATH_SEPARATOR
20474
20475# The host system.
20476host_alias=$host_alias
20477host=$host
20478host_os=$host_os
20479
20480# The build system.
20481build_alias=$build_alias
20482build=$build
20483build_os=$build_os
20484
20485# A sed program that does not truncate output.
20486SED=$lt_SED
20487
20488# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20489Xsed="\$SED -e 1s/^X//"
20490
20491# A grep program that handles long lines.
20492GREP=$lt_GREP
20493
20494# An ERE matcher.
20495EGREP=$lt_EGREP
20496
20497# A literal string matcher.
20498FGREP=$lt_FGREP
20499
20500# A BSD- or MS-compatible name lister.
20501NM=$lt_NM
20502
20503# Whether we need soft or hard links.
20504LN_S=$lt_LN_S
20505
20506# What is the maximum length of a command?
20507max_cmd_len=$max_cmd_len
20508
20509# Object file suffix (normally "o").
20510objext=$ac_objext
20511
20512# Executable file suffix (normally "").
20513exeext=$exeext
20514
20515# whether the shell understands "unset".
20516lt_unset=$lt_unset
20517
20518# turn spaces into newlines.
20519SP2NL=$lt_lt_SP2NL
20520
20521# turn newlines into spaces.
20522NL2SP=$lt_lt_NL2SP
20523
20524# convert \$build file names to \$host format.
20525to_host_file_cmd=$lt_cv_to_host_file_cmd
20526
20527# convert \$build files to toolchain format.
20528to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20529
20530# An object symbol dumper.
20531OBJDUMP=$lt_OBJDUMP
20532
20533# Method to check whether dependent libraries are shared objects.
20534deplibs_check_method=$lt_deplibs_check_method
20535
20536# Command to use when deplibs_check_method = "file_magic".
20537file_magic_cmd=$lt_file_magic_cmd
20538
20539# How to find potential files when deplibs_check_method = "file_magic".
20540file_magic_glob=$lt_file_magic_glob
20541
20542# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20543want_nocaseglob=$lt_want_nocaseglob
20544
20545# DLL creation program.
20546DLLTOOL=$lt_DLLTOOL
20547
20548# Command to associate shared and link libraries.
20549sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20550
20551# The archiver.
20552AR=$lt_AR
20553
20554# Flags to create an archive.
20555AR_FLAGS=$lt_AR_FLAGS
20556
20557# How to feed a file listing to the archiver.
20558archiver_list_spec=$lt_archiver_list_spec
20559
20560# A symbol stripping program.
20561STRIP=$lt_STRIP
20562
20563# Commands used to install an old-style archive.
20564RANLIB=$lt_RANLIB
20565old_postinstall_cmds=$lt_old_postinstall_cmds
20566old_postuninstall_cmds=$lt_old_postuninstall_cmds
20567
20568# Whether to use a lock for old archive extraction.
20569lock_old_archive_extraction=$lock_old_archive_extraction
20570
20571# A C compiler.
20572LTCC=$lt_CC
20573
20574# LTCC compiler flags.
20575LTCFLAGS=$lt_CFLAGS
20576
20577# Take the output of nm and produce a listing of raw symbols and C names.
20578global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20579
20580# Transform the output of nm in a proper C declaration.
20581global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20582
20583# Transform the output of nm into a list of symbols to manually relocate.
20584global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20585
20586# Transform the output of nm in a C name address pair.
20587global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20588
20589# Transform the output of nm in a C name address pair when lib prefix is needed.
20590global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20591
20592# The name lister interface.
20593nm_interface=$lt_lt_cv_nm_interface
20594
20595# Specify filename containing input files for \$NM.
20596nm_file_list_spec=$lt_nm_file_list_spec
20597
20598# The root where to search for dependent libraries,and where our libraries should be installed.
20599lt_sysroot=$lt_sysroot
20600
20601# Command to truncate a binary pipe.
20602lt_truncate_bin=$lt_lt_cv_truncate_bin
20603
20604# The name of the directory that contains temporary libtool files.
20605objdir=$objdir
20606
20607# Used to examine libraries when file_magic_cmd begins with "file".
20608MAGIC_CMD=$MAGIC_CMD
20609
20610# Must we lock files when doing compilation?
20611need_locks=$lt_need_locks
20612
20613# Manifest tool.
20614MANIFEST_TOOL=$lt_MANIFEST_TOOL
20615
20616# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20617DSYMUTIL=$lt_DSYMUTIL
20618
20619# Tool to change global to local symbols on Mac OS X.
20620NMEDIT=$lt_NMEDIT
20621
20622# Tool to manipulate fat objects and archives on Mac OS X.
20623LIPO=$lt_LIPO
20624
20625# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20626OTOOL=$lt_OTOOL
20627
20628# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20629OTOOL64=$lt_OTOOL64
20630
20631# Old archive suffix (normally "a").
20632libext=$libext
20633
20634# Shared library suffix (normally ".so").
20635shrext_cmds=$lt_shrext_cmds
20636
20637# The commands to extract the exported symbol list from a shared archive.
20638extract_expsyms_cmds=$lt_extract_expsyms_cmds
20639
20640# Variables whose values should be saved in libtool wrapper scripts and
20641# restored at link time.
20642variables_saved_for_relink=$lt_variables_saved_for_relink
20643
20644# Do we need the "lib" prefix for modules?
20645need_lib_prefix=$need_lib_prefix
20646
20647# Do we need a version for libraries?
20648need_version=$need_version
20649
20650# Library versioning type.
20651version_type=$version_type
20652
20653# Shared library runtime path variable.
20654runpath_var=$runpath_var
20655
20656# Shared library path variable.
20657shlibpath_var=$shlibpath_var
20658
20659# Is shlibpath searched before the hard-coded library search path?
20660shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20661
20662# Format of library name prefix.
20663libname_spec=$lt_libname_spec
20664
20665# List of archive names.  First name is the real one, the rest are links.
20666# The last name is the one that the linker finds with -lNAME
20667library_names_spec=$lt_library_names_spec
20668
20669# The coded name of the library, if different from the real name.
20670soname_spec=$lt_soname_spec
20671
20672# Permission mode override for installation of shared libraries.
20673install_override_mode=$lt_install_override_mode
20674
20675# Command to use after installation of a shared archive.
20676postinstall_cmds=$lt_postinstall_cmds
20677
20678# Command to use after uninstallation of a shared archive.
20679postuninstall_cmds=$lt_postuninstall_cmds
20680
20681# Commands used to finish a libtool library installation in a directory.
20682finish_cmds=$lt_finish_cmds
20683
20684# As "finish_cmds", except a single script fragment to be evaled but
20685# not shown.
20686finish_eval=$lt_finish_eval
20687
20688# Whether we should hardcode library paths into libraries.
20689hardcode_into_libs=$hardcode_into_libs
20690
20691# Compile-time system search path for libraries.
20692sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20693
20694# Detected run-time system search path for libraries.
20695sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20696
20697# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20698configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20699
20700# Whether dlopen is supported.
20701dlopen_support=$enable_dlopen
20702
20703# Whether dlopen of programs is supported.
20704dlopen_self=$enable_dlopen_self
20705
20706# Whether dlopen of statically linked programs is supported.
20707dlopen_self_static=$enable_dlopen_self_static
20708
20709# Commands to strip libraries.
20710old_striplib=$lt_old_striplib
20711striplib=$lt_striplib
20712
20713
20714# The linker used to build libraries.
20715LD=$lt_LD
20716
20717# How to create reloadable object files.
20718reload_flag=$lt_reload_flag
20719reload_cmds=$lt_reload_cmds
20720
20721# Commands used to build an old-style archive.
20722old_archive_cmds=$lt_old_archive_cmds
20723
20724# A language specific compiler.
20725CC=$lt_compiler
20726
20727# Is the compiler the GNU compiler?
20728with_gcc=$GCC
20729
20730# Compiler flag to turn off builtin functions.
20731no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20732
20733# Additional compiler flags for building library objects.
20734pic_flag=$lt_lt_prog_compiler_pic
20735
20736# How to pass a linker flag through the compiler.
20737wl=$lt_lt_prog_compiler_wl
20738
20739# Compiler flag to prevent dynamic linking.
20740link_static_flag=$lt_lt_prog_compiler_static
20741
20742# Does compiler simultaneously support -c and -o options?
20743compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20744
20745# Whether or not to add -lc for building shared libraries.
20746build_libtool_need_lc=$archive_cmds_need_lc
20747
20748# Whether or not to disallow shared libs when runtime libs are static.
20749allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20750
20751# Compiler flag to allow reflexive dlopens.
20752export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20753
20754# Compiler flag to generate shared objects directly from archives.
20755whole_archive_flag_spec=$lt_whole_archive_flag_spec
20756
20757# Whether the compiler copes with passing no objects directly.
20758compiler_needs_object=$lt_compiler_needs_object
20759
20760# Create an old-style archive from a shared archive.
20761old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20762
20763# Create a temporary old-style archive to link instead of a shared archive.
20764old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20765
20766# Commands used to build a shared archive.
20767archive_cmds=$lt_archive_cmds
20768archive_expsym_cmds=$lt_archive_expsym_cmds
20769
20770# Commands used to build a loadable module if different from building
20771# a shared archive.
20772module_cmds=$lt_module_cmds
20773module_expsym_cmds=$lt_module_expsym_cmds
20774
20775# Whether we are building with GNU ld or not.
20776with_gnu_ld=$lt_with_gnu_ld
20777
20778# Flag that allows shared libraries with undefined symbols to be built.
20779allow_undefined_flag=$lt_allow_undefined_flag
20780
20781# Flag that enforces no undefined symbols.
20782no_undefined_flag=$lt_no_undefined_flag
20783
20784# Flag to hardcode \$libdir into a binary during linking.
20785# This must work even if \$libdir does not exist
20786hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20787
20788# Whether we need a single "-rpath" flag with a separated argument.
20789hardcode_libdir_separator=$lt_hardcode_libdir_separator
20790
20791# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20792# DIR into the resulting binary.
20793hardcode_direct=$hardcode_direct
20794
20795# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20796# DIR into the resulting binary and the resulting library dependency is
20797# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20798# library is relocated.
20799hardcode_direct_absolute=$hardcode_direct_absolute
20800
20801# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20802# into the resulting binary.
20803hardcode_minus_L=$hardcode_minus_L
20804
20805# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20806# into the resulting binary.
20807hardcode_shlibpath_var=$hardcode_shlibpath_var
20808
20809# Set to "yes" if building a shared library automatically hardcodes DIR
20810# into the library and all subsequent libraries and executables linked
20811# against it.
20812hardcode_automatic=$hardcode_automatic
20813
20814# Set to yes if linker adds runtime paths of dependent libraries
20815# to runtime path list.
20816inherit_rpath=$inherit_rpath
20817
20818# Whether libtool must link a program against all its dependency libraries.
20819link_all_deplibs=$link_all_deplibs
20820
20821# Set to "yes" if exported symbols are required.
20822always_export_symbols=$always_export_symbols
20823
20824# The commands to list exported symbols.
20825export_symbols_cmds=$lt_export_symbols_cmds
20826
20827# Symbols that should not be listed in the preloaded symbols.
20828exclude_expsyms=$lt_exclude_expsyms
20829
20830# Symbols that must always be exported.
20831include_expsyms=$lt_include_expsyms
20832
20833# Commands necessary for linking programs (against libraries) with templates.
20834prelink_cmds=$lt_prelink_cmds
20835
20836# Commands necessary for finishing linking programs.
20837postlink_cmds=$lt_postlink_cmds
20838
20839# Specify filename containing input files.
20840file_list_spec=$lt_file_list_spec
20841
20842# How to hardcode a shared library path into an executable.
20843hardcode_action=$hardcode_action
20844
20845# ### END LIBTOOL CONFIG
20846
20847_LT_EOF
20848
20849    cat <<'_LT_EOF' >> "$cfgfile"
20850
20851# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20852
20853# func_munge_path_list VARIABLE PATH
20854# -----------------------------------
20855# VARIABLE is name of variable containing _space_ separated list of
20856# directories to be munged by the contents of PATH, which is string
20857# having a format:
20858# "DIR[:DIR]:"
20859#       string "DIR[ DIR]" will be prepended to VARIABLE
20860# ":DIR[:DIR]"
20861#       string "DIR[ DIR]" will be appended to VARIABLE
20862# "DIRP[:DIRP]::[DIRA:]DIRA"
20863#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20864#       "DIRA[ DIRA]" will be appended to VARIABLE
20865# "DIR[:DIR]"
20866#       VARIABLE will be replaced by "DIR[ DIR]"
20867func_munge_path_list ()
20868{
20869    case x$2 in
20870    x)
20871        ;;
20872    *:)
20873        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20874        ;;
20875    x:*)
20876        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20877        ;;
20878    *::*)
20879        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20880        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20881        ;;
20882    *)
20883        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20884        ;;
20885    esac
20886}
20887
20888
20889# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20890func_cc_basename ()
20891{
20892    for cc_temp in $*""; do
20893      case $cc_temp in
20894        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20895        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20896        \-*) ;;
20897        *) break;;
20898      esac
20899    done
20900    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20901}
20902
20903
20904# ### END FUNCTIONS SHARED WITH CONFIGURE
20905
20906_LT_EOF
20907
20908  case $host_os in
20909  aix3*)
20910    cat <<\_LT_EOF >> "$cfgfile"
20911# AIX sometimes has problems with the GCC collect2 program.  For some
20912# reason, if we set the COLLECT_NAMES environment variable, the problems
20913# vanish in a puff of smoke.
20914if test set != "${COLLECT_NAMES+set}"; then
20915  COLLECT_NAMES=
20916  export COLLECT_NAMES
20917fi
20918_LT_EOF
20919    ;;
20920  esac
20921
20922
20923ltmain=$ac_aux_dir/ltmain.sh
20924
20925
20926  # We use sed instead of cat because bash on DJGPP gets confused if
20927  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20928  # text mode, it properly converts lines to CR/LF.  This bash problem
20929  # is reportedly fixed, but why not run on old versions too?
20930  sed '$q' "$ltmain" >> "$cfgfile" \
20931     || (rm -f "$cfgfile"; exit 1)
20932
20933   mv -f "$cfgfile" "$ofile" ||
20934    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20935  chmod +x "$ofile"
20936
20937 ;;
20938
20939  esac
20940done # for ac_tag
20941
20942
20943as_fn_exit 0
20944_ACEOF
20945ac_clean_files=$ac_clean_files_save
20946
20947test $ac_write_fail = 0 ||
20948  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20949
20950
20951# configure is writing to config.log, and then calls config.status.
20952# config.status does its own redirection, appending to config.log.
20953# Unfortunately, on DOS this fails, as config.log is still kept open
20954# by configure, so config.status won't be able to write to it; its
20955# output is simply discarded.  So we exec the FD to /dev/null,
20956# effectively closing config.log, so it can be properly (re)opened and
20957# appended to by config.status.  When coming back to configure, we
20958# need to make the FD available again.
20959if test "$no_create" != yes; then
20960  ac_cs_success=:
20961  ac_config_status_args=
20962  test "$silent" = yes &&
20963    ac_config_status_args="$ac_config_status_args --quiet"
20964  exec 5>/dev/null
20965  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20966  exec 5>>config.log
20967  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20968  # would make configure fail if this is the last instruction.
20969  $ac_cs_success || as_fn_exit 1
20970fi
20971if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20972  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20973$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20974fi
20975
20976