1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
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=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
593PACKAGE_URL=
594
595ac_unique_file="build/apr_common.m4"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='LTLIBOBJS
633LIBOBJS
634INCLUDE_OUTPUTS
635INCLUDE_RULES
636LT_NO_INSTALL
637LIBTOOL_LIBS
638DEFAULT_OSDIR
639OSDIR
640INCLUDES
641LDLIBS
642INTERNAL_CPPFLAGS
643NOTEST_INCLUDES
644NOTEST_LIBS
645NOTEST_LDFLAGS
646NOTEST_CFLAGS
647NOTEST_CPPFLAGS
648EXTRA_INCLUDES
649EXTRA_LIBS
650EXTRA_LDFLAGS
651EXTRA_CFLAGS
652EXTRA_CPPFLAGS
653apr_has_user
654apr_thread_func
655apr_procattr_user_set_requires_password
656apr_has_xthread_files
657have_unicode_fs
658have_ipv6
659have_sa_storage
660have_sctp
661acceptfilter
662have_corkable_tcp
663apr_tcp_nopush_flag
664file_as_socket
665have_in_addr
666osuuid
667rand
668proclockglobal
669pthreadser
670procpthreadser
671fcntlser
672posixser
673sysvser
674flockser
675hasprocpthreadser
676hasfcntlser
677hasposixser
678hassysvser
679hasflockser
680have_union_semun
681struct_rlimit
682have_proc_invoked
683oc
684aprdso
685have_memchr
686have_strstr
687have_strdup
688have_strcasecmp
689have_stricmp
690have_strncasecmp
691have_strnicmp
692ino_t_value
693have_iovec
694aprlfs
695bigendian
696stdint
697uint64_literal
698int64_literal
699pid_t_fmt
700off_t_fmt
701size_t_fmt
702ssize_t_fmt
703uint64_t_hex_fmt
704uint64_t_fmt
705int64_t_fmt
706socklen_t_value
707ssize_t_value
708size_t_value
709off_t_value
710int64_value
711long_value
712int_value
713short_value
714voidp_size
715winsock2h
716windowsh
717semaphoreh
718pthreadh
719processh
720sys_waith
721signalh
722unistdh
723timeh
724sys_unh
725sys_uioh
726sys_timeh
727sys_typesh
728sys_sockioh
729sys_socketh
730sys_signalh
731sys_sendfileh
732sys_ioctlh
733stringsh
734stringh
735stdlibh
736stdioh
737stdargh
738netinet_tcph
739netinet_sctp_uioh
740netinet_sctph
741netinet_inh
742sys_syslimitsh
743netdbh
744limitsh
745ioh
746fcntlh
747direnth
748errnoh
749crypth
750ctypeh
751conioh
752arpa_ineth
753have_memmove
754mmap
755have_getrlimit
756have_setrlimit
757have_sigaction
758have_inet_network
759o_nonblock_inherited
760tcp_nodelay_inherited
761have_inet_addr
762fork
763apr_inaddr_none
764sendfile
765ALLOCA
766sharedmem
767havewin32shm
768haveos2shm
769havebeosarea
770haveshmget
771havemmapshm
772havemmaptmp
773usewin32shm
774useos2shm
775usebeosarea
776useshmget
777usemmapshm
778usemmaptmp
779havemmapanon
780havemmapzero
781haveshmgetanon
782usemmapanon
783usemmapzero
784useshmgetanon
785have_sigwait
786have_sigsuspend
787threads
788INSTALL_SUBDIRS
789eolstr
790proc_mutex_is_global
791OBJECTS_PLATFORM
792MKDEP
793LT_VERSION
794LT_LDFLAGS
795LTFLAGS
796shlibpath_var
797export_lib_target
798lib_target
799so_ext
800link
801lt_compile
802installbuilddir
803OTOOL64
804OTOOL
805LIPO
806NMEDIT
807DSYMUTIL
808MANIFEST_TOOL
809STRIP
810ac_ct_AR
811NM
812ac_ct_DUMPBIN
813DUMPBIN
814LD
815FGREP
816LIBTOOL
817OBJDUMP
818DLLTOOL
819APR_LIBNAME
820apr_charset_ebcdic
821EGREP
822GREP
823AR
824ASCPP
825AS
826RM
827INSTALL_DATA
828INSTALL_SCRIPT
829INSTALL_PROGRAM
830RANLIB
831LN_S
832AWK
833CPP
834SET_MAKE
835SED
836OBJEXT
837EXEEXT
838ac_ct_CC
839CPPFLAGS
840LDFLAGS
841CFLAGS
842CC
843APR_MAJOR_VERSION
844APR_DOTTED_VERSION
845apr_builders
846top_builddir
847APR_CONFIG_LOCATION
848apr_builddir
849apr_srcdir
850target_os
851target_vendor
852target_cpu
853target
854host_os
855host_vendor
856host_cpu
857host
858build_os
859build_vendor
860build_cpu
861build
862target_alias
863host_alias
864build_alias
865LIBS
866ECHO_T
867ECHO_N
868ECHO_C
869DEFS
870mandir
871localedir
872libdir
873psdir
874pdfdir
875dvidir
876htmldir
877infodir
878docdir
879oldincludedir
880includedir
881localstatedir
882sharedstatedir
883sysconfdir
884datadir
885datarootdir
886libexecdir
887sbindir
888bindir
889program_transform_name
890prefix
891exec_prefix
892PACKAGE_URL
893PACKAGE_BUGREPORT
894PACKAGE_STRING
895PACKAGE_VERSION
896PACKAGE_TARNAME
897PACKAGE_NAME
898PATH_SEPARATOR
899SHELL'
900ac_subst_files=''
901ac_user_opts='
902enable_option_checking
903enable_layout
904enable_experimental_libtool
905enable_shared
906enable_static
907with_pic
908enable_fast_install
909with_gnu_ld
910with_sysroot
911enable_libtool_lock
912with_installbuilddir
913with_libtool
914enable_debug
915enable_maintainer_mode
916enable_profile
917enable_pool_debug
918enable_malloc_debug
919enable_lfs
920enable_nonportable_atomics
921enable_threads
922with_efence
923enable_posix_shm
924with_sendfile
925enable_allocator_uses_mmap
926enable_dso
927enable_other_child
928with_egd
929with_devrandom
930enable_ipv6
931'
932      ac_precious_vars='build_alias
933host_alias
934target_alias
935CC
936CFLAGS
937LDFLAGS
938LIBS
939CPPFLAGS
940CPP'
941
942
943# Initialize some variables set by options.
944ac_init_help=
945ac_init_version=false
946ac_unrecognized_opts=
947ac_unrecognized_sep=
948# The variables have the same names as the options, with
949# dashes changed to underlines.
950cache_file=/dev/null
951exec_prefix=NONE
952no_create=
953no_recursion=
954prefix=NONE
955program_prefix=NONE
956program_suffix=NONE
957program_transform_name=s,x,x,
958silent=
959site=
960srcdir=
961verbose=
962x_includes=NONE
963x_libraries=NONE
964
965# Installation directory options.
966# These are left unexpanded so users can "make install exec_prefix=/foo"
967# and all the variables that are supposed to be based on exec_prefix
968# by default will actually change.
969# Use braces instead of parens because sh, perl, etc. also accept them.
970# (The list follows the same order as the GNU Coding Standards.)
971bindir='${exec_prefix}/bin'
972sbindir='${exec_prefix}/sbin'
973libexecdir='${exec_prefix}/libexec'
974datarootdir='${prefix}/share'
975datadir='${datarootdir}'
976sysconfdir='${prefix}/etc'
977sharedstatedir='${prefix}/com'
978localstatedir='${prefix}/var'
979includedir='${prefix}/include'
980oldincludedir='/usr/include'
981docdir='${datarootdir}/doc/${PACKAGE}'
982infodir='${datarootdir}/info'
983htmldir='${docdir}'
984dvidir='${docdir}'
985pdfdir='${docdir}'
986psdir='${docdir}'
987libdir='${exec_prefix}/lib'
988localedir='${datarootdir}/locale'
989mandir='${datarootdir}/man'
990
991ac_prev=
992ac_dashdash=
993for ac_option
994do
995  # If the previous option needs an argument, assign it.
996  if test -n "$ac_prev"; then
997    eval $ac_prev=\$ac_option
998    ac_prev=
999    continue
1000  fi
1001
1002  case $ac_option in
1003  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004  *=)   ac_optarg= ;;
1005  *)    ac_optarg=yes ;;
1006  esac
1007
1008  # Accept the important Cygnus configure options, so we can diagnose typos.
1009
1010  case $ac_dashdash$ac_option in
1011  --)
1012    ac_dashdash=yes ;;
1013
1014  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1015    ac_prev=bindir ;;
1016  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1017    bindir=$ac_optarg ;;
1018
1019  -build | --build | --buil | --bui | --bu)
1020    ac_prev=build_alias ;;
1021  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1022    build_alias=$ac_optarg ;;
1023
1024  -cache-file | --cache-file | --cache-fil | --cache-fi \
1025  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1026    ac_prev=cache_file ;;
1027  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1028  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1029    cache_file=$ac_optarg ;;
1030
1031  --config-cache | -C)
1032    cache_file=config.cache ;;
1033
1034  -datadir | --datadir | --datadi | --datad)
1035    ac_prev=datadir ;;
1036  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1037    datadir=$ac_optarg ;;
1038
1039  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1040  | --dataroo | --dataro | --datar)
1041    ac_prev=datarootdir ;;
1042  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1043  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1044    datarootdir=$ac_optarg ;;
1045
1046  -disable-* | --disable-*)
1047    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1048    # Reject names that are not valid shell variable names.
1049    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050      as_fn_error $? "invalid feature name: $ac_useropt"
1051    ac_useropt_orig=$ac_useropt
1052    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053    case $ac_user_opts in
1054      *"
1055"enable_$ac_useropt"
1056"*) ;;
1057      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1058	 ac_unrecognized_sep=', ';;
1059    esac
1060    eval enable_$ac_useropt=no ;;
1061
1062  -docdir | --docdir | --docdi | --doc | --do)
1063    ac_prev=docdir ;;
1064  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1065    docdir=$ac_optarg ;;
1066
1067  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068    ac_prev=dvidir ;;
1069  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1070    dvidir=$ac_optarg ;;
1071
1072  -enable-* | --enable-*)
1073    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074    # Reject names that are not valid shell variable names.
1075    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076      as_fn_error $? "invalid feature name: $ac_useropt"
1077    ac_useropt_orig=$ac_useropt
1078    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079    case $ac_user_opts in
1080      *"
1081"enable_$ac_useropt"
1082"*) ;;
1083      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1084	 ac_unrecognized_sep=', ';;
1085    esac
1086    eval enable_$ac_useropt=\$ac_optarg ;;
1087
1088  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090  | --exec | --exe | --ex)
1091    ac_prev=exec_prefix ;;
1092  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094  | --exec=* | --exe=* | --ex=*)
1095    exec_prefix=$ac_optarg ;;
1096
1097  -gas | --gas | --ga | --g)
1098    # Obsolete; use --with-gas.
1099    with_gas=yes ;;
1100
1101  -help | --help | --hel | --he | -h)
1102    ac_init_help=long ;;
1103  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104    ac_init_help=recursive ;;
1105  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106    ac_init_help=short ;;
1107
1108  -host | --host | --hos | --ho)
1109    ac_prev=host_alias ;;
1110  -host=* | --host=* | --hos=* | --ho=*)
1111    host_alias=$ac_optarg ;;
1112
1113  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114    ac_prev=htmldir ;;
1115  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116  | --ht=*)
1117    htmldir=$ac_optarg ;;
1118
1119  -includedir | --includedir | --includedi | --included | --include \
1120  | --includ | --inclu | --incl | --inc)
1121    ac_prev=includedir ;;
1122  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123  | --includ=* | --inclu=* | --incl=* | --inc=*)
1124    includedir=$ac_optarg ;;
1125
1126  -infodir | --infodir | --infodi | --infod | --info | --inf)
1127    ac_prev=infodir ;;
1128  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129    infodir=$ac_optarg ;;
1130
1131  -libdir | --libdir | --libdi | --libd)
1132    ac_prev=libdir ;;
1133  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134    libdir=$ac_optarg ;;
1135
1136  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137  | --libexe | --libex | --libe)
1138    ac_prev=libexecdir ;;
1139  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140  | --libexe=* | --libex=* | --libe=*)
1141    libexecdir=$ac_optarg ;;
1142
1143  -localedir | --localedir | --localedi | --localed | --locale)
1144    ac_prev=localedir ;;
1145  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146    localedir=$ac_optarg ;;
1147
1148  -localstatedir | --localstatedir | --localstatedi | --localstated \
1149  | --localstate | --localstat | --localsta | --localst | --locals)
1150    ac_prev=localstatedir ;;
1151  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153    localstatedir=$ac_optarg ;;
1154
1155  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156    ac_prev=mandir ;;
1157  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158    mandir=$ac_optarg ;;
1159
1160  -nfp | --nfp | --nf)
1161    # Obsolete; use --without-fp.
1162    with_fp=no ;;
1163
1164  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165  | --no-cr | --no-c | -n)
1166    no_create=yes ;;
1167
1168  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170    no_recursion=yes ;;
1171
1172  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174  | --oldin | --oldi | --old | --ol | --o)
1175    ac_prev=oldincludedir ;;
1176  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179    oldincludedir=$ac_optarg ;;
1180
1181  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182    ac_prev=prefix ;;
1183  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184    prefix=$ac_optarg ;;
1185
1186  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187  | --program-pre | --program-pr | --program-p)
1188    ac_prev=program_prefix ;;
1189  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191    program_prefix=$ac_optarg ;;
1192
1193  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194  | --program-suf | --program-su | --program-s)
1195    ac_prev=program_suffix ;;
1196  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198    program_suffix=$ac_optarg ;;
1199
1200  -program-transform-name | --program-transform-name \
1201  | --program-transform-nam | --program-transform-na \
1202  | --program-transform-n | --program-transform- \
1203  | --program-transform | --program-transfor \
1204  | --program-transfo | --program-transf \
1205  | --program-trans | --program-tran \
1206  | --progr-tra | --program-tr | --program-t)
1207    ac_prev=program_transform_name ;;
1208  -program-transform-name=* | --program-transform-name=* \
1209  | --program-transform-nam=* | --program-transform-na=* \
1210  | --program-transform-n=* | --program-transform-=* \
1211  | --program-transform=* | --program-transfor=* \
1212  | --program-transfo=* | --program-transf=* \
1213  | --program-trans=* | --program-tran=* \
1214  | --progr-tra=* | --program-tr=* | --program-t=*)
1215    program_transform_name=$ac_optarg ;;
1216
1217  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218    ac_prev=pdfdir ;;
1219  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220    pdfdir=$ac_optarg ;;
1221
1222  -psdir | --psdir | --psdi | --psd | --ps)
1223    ac_prev=psdir ;;
1224  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225    psdir=$ac_optarg ;;
1226
1227  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228  | -silent | --silent | --silen | --sile | --sil)
1229    silent=yes ;;
1230
1231  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232    ac_prev=sbindir ;;
1233  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234  | --sbi=* | --sb=*)
1235    sbindir=$ac_optarg ;;
1236
1237  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239  | --sharedst | --shareds | --shared | --share | --shar \
1240  | --sha | --sh)
1241    ac_prev=sharedstatedir ;;
1242  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245  | --sha=* | --sh=*)
1246    sharedstatedir=$ac_optarg ;;
1247
1248  -site | --site | --sit)
1249    ac_prev=site ;;
1250  -site=* | --site=* | --sit=*)
1251    site=$ac_optarg ;;
1252
1253  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254    ac_prev=srcdir ;;
1255  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256    srcdir=$ac_optarg ;;
1257
1258  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259  | --syscon | --sysco | --sysc | --sys | --sy)
1260    ac_prev=sysconfdir ;;
1261  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263    sysconfdir=$ac_optarg ;;
1264
1265  -target | --target | --targe | --targ | --tar | --ta | --t)
1266    ac_prev=target_alias ;;
1267  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268    target_alias=$ac_optarg ;;
1269
1270  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271    verbose=yes ;;
1272
1273  -version | --version | --versio | --versi | --vers | -V)
1274    ac_init_version=: ;;
1275
1276  -with-* | --with-*)
1277    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278    # Reject names that are not valid shell variable names.
1279    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280      as_fn_error $? "invalid package name: $ac_useropt"
1281    ac_useropt_orig=$ac_useropt
1282    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283    case $ac_user_opts in
1284      *"
1285"with_$ac_useropt"
1286"*) ;;
1287      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288	 ac_unrecognized_sep=', ';;
1289    esac
1290    eval with_$ac_useropt=\$ac_optarg ;;
1291
1292  -without-* | --without-*)
1293    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294    # Reject names that are not valid shell variable names.
1295    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296      as_fn_error $? "invalid package name: $ac_useropt"
1297    ac_useropt_orig=$ac_useropt
1298    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299    case $ac_user_opts in
1300      *"
1301"with_$ac_useropt"
1302"*) ;;
1303      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304	 ac_unrecognized_sep=', ';;
1305    esac
1306    eval with_$ac_useropt=no ;;
1307
1308  --x)
1309    # Obsolete; use --with-x.
1310    with_x=yes ;;
1311
1312  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313  | --x-incl | --x-inc | --x-in | --x-i)
1314    ac_prev=x_includes ;;
1315  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317    x_includes=$ac_optarg ;;
1318
1319  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321    ac_prev=x_libraries ;;
1322  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324    x_libraries=$ac_optarg ;;
1325
1326  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1327Try \`$0 --help' for more information"
1328    ;;
1329
1330  *=*)
1331    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332    # Reject names that are not valid shell variable names.
1333    case $ac_envvar in #(
1334      '' | [0-9]* | *[!_$as_cr_alnum]* )
1335      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1336    esac
1337    eval $ac_envvar=\$ac_optarg
1338    export $ac_envvar ;;
1339
1340  *)
1341    # FIXME: should be removed in autoconf 3.0.
1342    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1346    ;;
1347
1348  esac
1349done
1350
1351if test -n "$ac_prev"; then
1352  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353  as_fn_error $? "missing argument to $ac_option"
1354fi
1355
1356if test -n "$ac_unrecognized_opts"; then
1357  case $enable_option_checking in
1358    no) ;;
1359    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1360    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361  esac
1362fi
1363
1364# Check all directory arguments for consistency.
1365for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366		datadir sysconfdir sharedstatedir localstatedir includedir \
1367		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368		libdir localedir mandir
1369do
1370  eval ac_val=\$$ac_var
1371  # Remove trailing slashes.
1372  case $ac_val in
1373    */ )
1374      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375      eval $ac_var=\$ac_val;;
1376  esac
1377  # Be sure to have absolute directory names.
1378  case $ac_val in
1379    [\\/$]* | ?:[\\/]* )  continue;;
1380    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1381  esac
1382  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1383done
1384
1385# There might be people who depend on the old broken behavior: `$host'
1386# used to hold the argument of --host etc.
1387# FIXME: To remove some day.
1388build=$build_alias
1389host=$host_alias
1390target=$target_alias
1391
1392# FIXME: To remove some day.
1393if test "x$host_alias" != x; then
1394  if test "x$build_alias" = x; then
1395    cross_compiling=maybe
1396  elif test "x$build_alias" != "x$host_alias"; then
1397    cross_compiling=yes
1398  fi
1399fi
1400
1401ac_tool_prefix=
1402test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403
1404test "$silent" = yes && exec 6>/dev/null
1405
1406
1407ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408ac_ls_di=`ls -di .` &&
1409ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410  as_fn_error $? "working directory cannot be determined"
1411test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412  as_fn_error $? "pwd does not report name of working directory"
1413
1414
1415# Find the source files, if location was not specified.
1416if test -z "$srcdir"; then
1417  ac_srcdir_defaulted=yes
1418  # Try the directory containing this script, then the parent directory.
1419  ac_confdir=`$as_dirname -- "$as_myself" ||
1420$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421	 X"$as_myself" : 'X\(//\)[^/]' \| \
1422	 X"$as_myself" : 'X\(//\)$' \| \
1423	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424$as_echo X"$as_myself" |
1425    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426	    s//\1/
1427	    q
1428	  }
1429	  /^X\(\/\/\)[^/].*/{
1430	    s//\1/
1431	    q
1432	  }
1433	  /^X\(\/\/\)$/{
1434	    s//\1/
1435	    q
1436	  }
1437	  /^X\(\/\).*/{
1438	    s//\1/
1439	    q
1440	  }
1441	  s/.*/./; q'`
1442  srcdir=$ac_confdir
1443  if test ! -r "$srcdir/$ac_unique_file"; then
1444    srcdir=..
1445  fi
1446else
1447  ac_srcdir_defaulted=no
1448fi
1449if test ! -r "$srcdir/$ac_unique_file"; then
1450  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1452fi
1453ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454ac_abs_confdir=`(
1455	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1456	pwd)`
1457# When building in place, set srcdir=.
1458if test "$ac_abs_confdir" = "$ac_pwd"; then
1459  srcdir=.
1460fi
1461# Remove unnecessary trailing slashes from srcdir.
1462# Double slashes in file names in object file debugging info
1463# mess up M-x gdb in Emacs.
1464case $srcdir in
1465*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466esac
1467for ac_var in $ac_precious_vars; do
1468  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469  eval ac_env_${ac_var}_value=\$${ac_var}
1470  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472done
1473
1474#
1475# Report the --help message.
1476#
1477if test "$ac_init_help" = "long"; then
1478  # Omit some internal or obsolete options to make the list less imposing.
1479  # This message is too long to be a string in the A/UX 3.1 sh.
1480  cat <<_ACEOF
1481\`configure' configures this package to adapt to many kinds of systems.
1482
1483Usage: $0 [OPTION]... [VAR=VALUE]...
1484
1485To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486VAR=VALUE.  See below for descriptions of some of the useful variables.
1487
1488Defaults for the options are specified in brackets.
1489
1490Configuration:
1491  -h, --help              display this help and exit
1492      --help=short        display options specific to this package
1493      --help=recursive    display the short help of all the included packages
1494  -V, --version           display version information and exit
1495  -q, --quiet, --silent   do not print \`checking ...' messages
1496      --cache-file=FILE   cache test results in FILE [disabled]
1497  -C, --config-cache      alias for \`--cache-file=config.cache'
1498  -n, --no-create         do not create output files
1499      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1500
1501Installation directories:
1502  --prefix=PREFIX         install architecture-independent files in PREFIX
1503                          [$ac_default_prefix]
1504  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1505                          [PREFIX]
1506
1507By default, \`make install' will install all the files in
1508\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1509an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510for instance \`--prefix=\$HOME'.
1511
1512For better control, use the options below.
1513
1514Fine tuning of the installation directories:
1515  --bindir=DIR            user executables [EPREFIX/bin]
1516  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1517  --libexecdir=DIR        program executables [EPREFIX/libexec]
1518  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1519  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1520  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1521  --libdir=DIR            object code libraries [EPREFIX/lib]
1522  --includedir=DIR        C header files [PREFIX/include]
1523  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1524  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1525  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1526  --infodir=DIR           info documentation [DATAROOTDIR/info]
1527  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1528  --mandir=DIR            man documentation [DATAROOTDIR/man]
1529  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1530  --htmldir=DIR           html documentation [DOCDIR]
1531  --dvidir=DIR            dvi documentation [DOCDIR]
1532  --pdfdir=DIR            pdf documentation [DOCDIR]
1533  --psdir=DIR             ps documentation [DOCDIR]
1534_ACEOF
1535
1536  cat <<\_ACEOF
1537
1538System types:
1539  --build=BUILD     configure for building on BUILD [guessed]
1540  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1541  --target=TARGET   configure for building compilers for TARGET [HOST]
1542_ACEOF
1543fi
1544
1545if test -n "$ac_init_help"; then
1546
1547  cat <<\_ACEOF
1548
1549Optional Features:
1550  --disable-option-checking  ignore unrecognized --enable/--with options
1551  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1552  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1553  --enable-layout=LAYOUT
1554  --enable-experimental-libtool Use experimental custom libtool
1555  --enable-shared[=PKGS]  build shared libraries [default=yes]
1556  --enable-static[=PKGS]  build static libraries [default=yes]
1557  --enable-fast-install[=PKGS]
1558                          optimize for fast installation [default=yes]
1559  --disable-libtool-lock  avoid locking (might break parallel builds)
1560  --enable-debug          Turn on debugging and compile time warnings
1561  --enable-maintainer-mode  Turn on debugging and compile time warnings
1562  --enable-profile        Turn on profiling for the build (GCC)
1563  --enable-pool-debug[=yes|no|verbose|verbose-alloc|lifetime|owner|all]    Turn on pools debugging
1564  --enable-malloc-debug   Switch on malloc_debug for BeOS
1565  --disable-lfs           Disable large file support on 32-bit platforms
1566  --enable-nonportable-atomics  Use optimized atomic code which may produce nonportable binaries
1567  --enable-threads        Enable threading support in APR.
1568  --enable-posix-shm      Use POSIX shared memory (shm_open) if available
1569  --enable-allocator-uses-mmap    Use mmap in apr_allocator instead of malloc
1570  --disable-dso           Disable DSO support
1571  --enable-other-child    Enable reliable child processes
1572  --disable-ipv6          Disable IPv6 support in APR.
1573
1574Optional Packages:
1575  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1576  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1577  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1578                          both]
1579  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1580  --with-sysroot=DIR Search for dependent libraries within DIR
1581                        (or the compiler's sysroot if not specified).
1582  --with-installbuilddir=DIR location to store APR build files (defaults to '${datadir}/build')
1583  --without-libtool       avoid using libtool to link the library
1584  --with-efence[=DIR]     path to Electric Fence installation
1585  --with-sendfile         Override decision to use sendfile
1586  --with-egd[=DIR]        use EGD-compatible socket
1587  --with-devrandom[=DEV]  use /dev/random or compatible [searches by default]
1588
1589Some influential environment variables:
1590  CC          C compiler command
1591  CFLAGS      C compiler flags
1592  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1593              nonstandard directory <lib dir>
1594  LIBS        libraries to pass to the linker, e.g. -l<library>
1595  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1596              you have headers in a nonstandard directory <include dir>
1597  CPP         C preprocessor
1598
1599Use these variables to override the choices made by `configure' or to help
1600it to find libraries and programs with nonstandard names/locations.
1601
1602Report bugs to the package provider.
1603_ACEOF
1604ac_status=$?
1605fi
1606
1607if test "$ac_init_help" = "recursive"; then
1608  # If there are subdirs, report their specific --help.
1609  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610    test -d "$ac_dir" ||
1611      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1612      continue
1613    ac_builddir=.
1614
1615case "$ac_dir" in
1616.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617*)
1618  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1619  # A ".." for each directory in $ac_dir_suffix.
1620  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1621  case $ac_top_builddir_sub in
1622  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624  esac ;;
1625esac
1626ac_abs_top_builddir=$ac_pwd
1627ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628# for backward compatibility:
1629ac_top_builddir=$ac_top_build_prefix
1630
1631case $srcdir in
1632  .)  # We are building in place.
1633    ac_srcdir=.
1634    ac_top_srcdir=$ac_top_builddir_sub
1635    ac_abs_top_srcdir=$ac_pwd ;;
1636  [\\/]* | ?:[\\/]* )  # Absolute name.
1637    ac_srcdir=$srcdir$ac_dir_suffix;
1638    ac_top_srcdir=$srcdir
1639    ac_abs_top_srcdir=$srcdir ;;
1640  *) # Relative name.
1641    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642    ac_top_srcdir=$ac_top_build_prefix$srcdir
1643    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1644esac
1645ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1646
1647    cd "$ac_dir" || { ac_status=$?; continue; }
1648    # Check for guested configure.
1649    if test -f "$ac_srcdir/configure.gnu"; then
1650      echo &&
1651      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652    elif test -f "$ac_srcdir/configure"; then
1653      echo &&
1654      $SHELL "$ac_srcdir/configure" --help=recursive
1655    else
1656      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1657    fi || ac_status=$?
1658    cd "$ac_pwd" || { ac_status=$?; break; }
1659  done
1660fi
1661
1662test -n "$ac_init_help" && exit $ac_status
1663if $ac_init_version; then
1664  cat <<\_ACEOF
1665configure
1666generated by GNU Autoconf 2.69
1667
1668Copyright (C) 2012 Free Software Foundation, Inc.
1669This configure script is free software; the Free Software Foundation
1670gives unlimited permission to copy, distribute and modify it.
1671_ACEOF
1672  exit
1673fi
1674
1675## ------------------------ ##
1676## Autoconf initialization. ##
1677## ------------------------ ##
1678
1679# ac_fn_c_try_compile LINENO
1680# --------------------------
1681# Try to compile conftest.$ac_ext, and return whether this succeeded.
1682ac_fn_c_try_compile ()
1683{
1684  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685  rm -f conftest.$ac_objext
1686  if { { ac_try="$ac_compile"
1687case "(($ac_try" in
1688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689  *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692$as_echo "$ac_try_echo"; } >&5
1693  (eval "$ac_compile") 2>conftest.err
1694  ac_status=$?
1695  if test -s conftest.err; then
1696    grep -v '^ *+' conftest.err >conftest.er1
1697    cat conftest.er1 >&5
1698    mv -f conftest.er1 conftest.err
1699  fi
1700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701  test $ac_status = 0; } && {
1702	 test -z "$ac_c_werror_flag" ||
1703	 test ! -s conftest.err
1704       } && test -s conftest.$ac_objext; then :
1705  ac_retval=0
1706else
1707  $as_echo "$as_me: failed program was:" >&5
1708sed 's/^/| /' conftest.$ac_ext >&5
1709
1710	ac_retval=1
1711fi
1712  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713  as_fn_set_status $ac_retval
1714
1715} # ac_fn_c_try_compile
1716
1717# ac_fn_c_try_cpp LINENO
1718# ----------------------
1719# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1720ac_fn_c_try_cpp ()
1721{
1722  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723  if { { ac_try="$ac_cpp conftest.$ac_ext"
1724case "(($ac_try" in
1725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726  *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729$as_echo "$ac_try_echo"; } >&5
1730  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1731  ac_status=$?
1732  if test -s conftest.err; then
1733    grep -v '^ *+' conftest.err >conftest.er1
1734    cat conftest.er1 >&5
1735    mv -f conftest.er1 conftest.err
1736  fi
1737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738  test $ac_status = 0; } > conftest.i && {
1739	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1740	 test ! -s conftest.err
1741       }; then :
1742  ac_retval=0
1743else
1744  $as_echo "$as_me: failed program was:" >&5
1745sed 's/^/| /' conftest.$ac_ext >&5
1746
1747    ac_retval=1
1748fi
1749  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750  as_fn_set_status $ac_retval
1751
1752} # ac_fn_c_try_cpp
1753
1754# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1755# -------------------------------------------------------
1756# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1757# the include files in INCLUDES and setting the cache variable VAR
1758# accordingly.
1759ac_fn_c_check_header_mongrel ()
1760{
1761  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762  if eval \${$3+:} false; then :
1763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764$as_echo_n "checking for $2... " >&6; }
1765if eval \${$3+:} false; then :
1766  $as_echo_n "(cached) " >&6
1767fi
1768eval ac_res=\$$3
1769	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770$as_echo "$ac_res" >&6; }
1771else
1772  # Is the header compilable?
1773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1774$as_echo_n "checking $2 usability... " >&6; }
1775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776/* end confdefs.h.  */
1777$4
1778#include <$2>
1779_ACEOF
1780if ac_fn_c_try_compile "$LINENO"; then :
1781  ac_header_compiler=yes
1782else
1783  ac_header_compiler=no
1784fi
1785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1787$as_echo "$ac_header_compiler" >&6; }
1788
1789# Is the header present?
1790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1791$as_echo_n "checking $2 presence... " >&6; }
1792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793/* end confdefs.h.  */
1794#include <$2>
1795_ACEOF
1796if ac_fn_c_try_cpp "$LINENO"; then :
1797  ac_header_preproc=yes
1798else
1799  ac_header_preproc=no
1800fi
1801rm -f conftest.err conftest.i conftest.$ac_ext
1802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1803$as_echo "$ac_header_preproc" >&6; }
1804
1805# So?  What about this header?
1806case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1807  yes:no: )
1808    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1809$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1810    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1811$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1812    ;;
1813  no:yes:* )
1814    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1815$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1816    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1817$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1818    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1819$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1820    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1821$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1822    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1823$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1824    ;;
1825esac
1826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827$as_echo_n "checking for $2... " >&6; }
1828if eval \${$3+:} false; then :
1829  $as_echo_n "(cached) " >&6
1830else
1831  eval "$3=\$ac_header_compiler"
1832fi
1833eval ac_res=\$$3
1834	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835$as_echo "$ac_res" >&6; }
1836fi
1837  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838
1839} # ac_fn_c_check_header_mongrel
1840
1841# ac_fn_c_try_run LINENO
1842# ----------------------
1843# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1844# that executables *can* be run.
1845ac_fn_c_try_run ()
1846{
1847  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848  if { { ac_try="$ac_link"
1849case "(($ac_try" in
1850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851  *) ac_try_echo=$ac_try;;
1852esac
1853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854$as_echo "$ac_try_echo"; } >&5
1855  (eval "$ac_link") 2>&5
1856  ac_status=$?
1857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1859  { { case "(($ac_try" in
1860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861  *) ac_try_echo=$ac_try;;
1862esac
1863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864$as_echo "$ac_try_echo"; } >&5
1865  (eval "$ac_try") 2>&5
1866  ac_status=$?
1867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868  test $ac_status = 0; }; }; then :
1869  ac_retval=0
1870else
1871  $as_echo "$as_me: program exited with status $ac_status" >&5
1872       $as_echo "$as_me: failed program was:" >&5
1873sed 's/^/| /' conftest.$ac_ext >&5
1874
1875       ac_retval=$ac_status
1876fi
1877  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1878  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879  as_fn_set_status $ac_retval
1880
1881} # ac_fn_c_try_run
1882
1883# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1884# -------------------------------------------------------
1885# Tests whether HEADER exists and can be compiled using the include files in
1886# INCLUDES, setting the cache variable VAR accordingly.
1887ac_fn_c_check_header_compile ()
1888{
1889  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891$as_echo_n "checking for $2... " >&6; }
1892if eval \${$3+:} false; then :
1893  $as_echo_n "(cached) " >&6
1894else
1895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896/* end confdefs.h.  */
1897$4
1898#include <$2>
1899_ACEOF
1900if ac_fn_c_try_compile "$LINENO"; then :
1901  eval "$3=yes"
1902else
1903  eval "$3=no"
1904fi
1905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906fi
1907eval ac_res=\$$3
1908	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909$as_echo "$ac_res" >&6; }
1910  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911
1912} # ac_fn_c_check_header_compile
1913
1914# ac_fn_c_try_link LINENO
1915# -----------------------
1916# Try to link conftest.$ac_ext, and return whether this succeeded.
1917ac_fn_c_try_link ()
1918{
1919  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920  rm -f conftest.$ac_objext conftest$ac_exeext
1921  if { { ac_try="$ac_link"
1922case "(($ac_try" in
1923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924  *) ac_try_echo=$ac_try;;
1925esac
1926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927$as_echo "$ac_try_echo"; } >&5
1928  (eval "$ac_link") 2>conftest.err
1929  ac_status=$?
1930  if test -s conftest.err; then
1931    grep -v '^ *+' conftest.err >conftest.er1
1932    cat conftest.er1 >&5
1933    mv -f conftest.er1 conftest.err
1934  fi
1935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936  test $ac_status = 0; } && {
1937	 test -z "$ac_c_werror_flag" ||
1938	 test ! -s conftest.err
1939       } && test -s conftest$ac_exeext && {
1940	 test "$cross_compiling" = yes ||
1941	 test -x conftest$ac_exeext
1942       }; then :
1943  ac_retval=0
1944else
1945  $as_echo "$as_me: failed program was:" >&5
1946sed 's/^/| /' conftest.$ac_ext >&5
1947
1948	ac_retval=1
1949fi
1950  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1951  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1952  # interfere with the next link command; also delete a directory that is
1953  # left behind by Apple's compiler.  We do this before executing the actions.
1954  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1955  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956  as_fn_set_status $ac_retval
1957
1958} # ac_fn_c_try_link
1959
1960# ac_fn_c_check_func LINENO FUNC VAR
1961# ----------------------------------
1962# Tests whether FUNC exists, setting the cache variable VAR accordingly
1963ac_fn_c_check_func ()
1964{
1965  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967$as_echo_n "checking for $2... " >&6; }
1968if eval \${$3+:} false; then :
1969  $as_echo_n "(cached) " >&6
1970else
1971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972/* end confdefs.h.  */
1973/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1974   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1975#define $2 innocuous_$2
1976
1977/* System header to define __stub macros and hopefully few prototypes,
1978    which can conflict with char $2 (); below.
1979    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1980    <limits.h> exists even on freestanding compilers.  */
1981
1982#ifdef __STDC__
1983# include <limits.h>
1984#else
1985# include <assert.h>
1986#endif
1987
1988#undef $2
1989
1990/* Override any GCC internal prototype to avoid an error.
1991   Use char because int might match the return type of a GCC
1992   builtin and then its argument prototype would still apply.  */
1993#ifdef __cplusplus
1994extern "C"
1995#endif
1996char $2 ();
1997/* The GNU C library defines this for functions which it implements
1998    to always fail with ENOSYS.  Some functions are actually named
1999    something starting with __ and the normal name is an alias.  */
2000#if defined __stub_$2 || defined __stub___$2
2001choke me
2002#endif
2003
2004int
2005main ()
2006{
2007return $2 ();
2008  ;
2009  return 0;
2010}
2011_ACEOF
2012if ac_fn_c_try_link "$LINENO"; then :
2013  eval "$3=yes"
2014else
2015  eval "$3=no"
2016fi
2017rm -f core conftest.err conftest.$ac_objext \
2018    conftest$ac_exeext conftest.$ac_ext
2019fi
2020eval ac_res=\$$3
2021	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022$as_echo "$ac_res" >&6; }
2023  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024
2025} # ac_fn_c_check_func
2026
2027# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2028# -------------------------------------------
2029# Tests whether TYPE exists after having included INCLUDES, setting cache
2030# variable VAR accordingly.
2031ac_fn_c_check_type ()
2032{
2033  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2035$as_echo_n "checking for $2... " >&6; }
2036if eval \${$3+:} false; then :
2037  $as_echo_n "(cached) " >&6
2038else
2039  eval "$3=no"
2040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041/* end confdefs.h.  */
2042$4
2043int
2044main ()
2045{
2046if (sizeof ($2))
2047	 return 0;
2048  ;
2049  return 0;
2050}
2051_ACEOF
2052if ac_fn_c_try_compile "$LINENO"; then :
2053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054/* end confdefs.h.  */
2055$4
2056int
2057main ()
2058{
2059if (sizeof (($2)))
2060	    return 0;
2061  ;
2062  return 0;
2063}
2064_ACEOF
2065if ac_fn_c_try_compile "$LINENO"; then :
2066
2067else
2068  eval "$3=yes"
2069fi
2070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071fi
2072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073fi
2074eval ac_res=\$$3
2075	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076$as_echo "$ac_res" >&6; }
2077  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078
2079} # ac_fn_c_check_type
2080
2081# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2082# --------------------------------------------
2083# Tries to find the compile-time value of EXPR in a program that includes
2084# INCLUDES, setting VAR accordingly. Returns whether the value could be
2085# computed
2086ac_fn_c_compute_int ()
2087{
2088  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089  if test "$cross_compiling" = yes; then
2090    # Depending upon the size, compute the lo and hi bounds.
2091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h.  */
2093$4
2094int
2095main ()
2096{
2097static int test_array [1 - 2 * !(($2) >= 0)];
2098test_array [0] = 0;
2099return test_array [0];
2100
2101  ;
2102  return 0;
2103}
2104_ACEOF
2105if ac_fn_c_try_compile "$LINENO"; then :
2106  ac_lo=0 ac_mid=0
2107  while :; do
2108    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109/* end confdefs.h.  */
2110$4
2111int
2112main ()
2113{
2114static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2115test_array [0] = 0;
2116return test_array [0];
2117
2118  ;
2119  return 0;
2120}
2121_ACEOF
2122if ac_fn_c_try_compile "$LINENO"; then :
2123  ac_hi=$ac_mid; break
2124else
2125  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2126			if test $ac_lo -le $ac_mid; then
2127			  ac_lo= ac_hi=
2128			  break
2129			fi
2130			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2131fi
2132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133  done
2134else
2135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136/* end confdefs.h.  */
2137$4
2138int
2139main ()
2140{
2141static int test_array [1 - 2 * !(($2) < 0)];
2142test_array [0] = 0;
2143return test_array [0];
2144
2145  ;
2146  return 0;
2147}
2148_ACEOF
2149if ac_fn_c_try_compile "$LINENO"; then :
2150  ac_hi=-1 ac_mid=-1
2151  while :; do
2152    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153/* end confdefs.h.  */
2154$4
2155int
2156main ()
2157{
2158static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2159test_array [0] = 0;
2160return test_array [0];
2161
2162  ;
2163  return 0;
2164}
2165_ACEOF
2166if ac_fn_c_try_compile "$LINENO"; then :
2167  ac_lo=$ac_mid; break
2168else
2169  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2170			if test $ac_mid -le $ac_hi; then
2171			  ac_lo= ac_hi=
2172			  break
2173			fi
2174			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2175fi
2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177  done
2178else
2179  ac_lo= ac_hi=
2180fi
2181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182fi
2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184# Binary search between lo and hi bounds.
2185while test "x$ac_lo" != "x$ac_hi"; do
2186  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188/* end confdefs.h.  */
2189$4
2190int
2191main ()
2192{
2193static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2194test_array [0] = 0;
2195return test_array [0];
2196
2197  ;
2198  return 0;
2199}
2200_ACEOF
2201if ac_fn_c_try_compile "$LINENO"; then :
2202  ac_hi=$ac_mid
2203else
2204  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2205fi
2206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207done
2208case $ac_lo in #((
2209?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2210'') ac_retval=1 ;;
2211esac
2212  else
2213    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214/* end confdefs.h.  */
2215$4
2216static long int longval () { return $2; }
2217static unsigned long int ulongval () { return $2; }
2218#include <stdio.h>
2219#include <stdlib.h>
2220int
2221main ()
2222{
2223
2224  FILE *f = fopen ("conftest.val", "w");
2225  if (! f)
2226    return 1;
2227  if (($2) < 0)
2228    {
2229      long int i = longval ();
2230      if (i != ($2))
2231	return 1;
2232      fprintf (f, "%ld", i);
2233    }
2234  else
2235    {
2236      unsigned long int i = ulongval ();
2237      if (i != ($2))
2238	return 1;
2239      fprintf (f, "%lu", i);
2240    }
2241  /* Do not output a trailing newline, as this causes \r\n confusion
2242     on some platforms.  */
2243  return ferror (f) || fclose (f) != 0;
2244
2245  ;
2246  return 0;
2247}
2248_ACEOF
2249if ac_fn_c_try_run "$LINENO"; then :
2250  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2251else
2252  ac_retval=1
2253fi
2254rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2255  conftest.$ac_objext conftest.beam conftest.$ac_ext
2256rm -f conftest.val
2257
2258  fi
2259  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260  as_fn_set_status $ac_retval
2261
2262} # ac_fn_c_compute_int
2263
2264# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2265# ---------------------------------------------
2266# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2267# accordingly.
2268ac_fn_c_check_decl ()
2269{
2270  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2271  as_decl_name=`echo $2|sed 's/ *(.*//'`
2272  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2274$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2275if eval \${$3+:} false; then :
2276  $as_echo_n "(cached) " >&6
2277else
2278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279/* end confdefs.h.  */
2280$4
2281int
2282main ()
2283{
2284#ifndef $as_decl_name
2285#ifdef __cplusplus
2286  (void) $as_decl_use;
2287#else
2288  (void) $as_decl_name;
2289#endif
2290#endif
2291
2292  ;
2293  return 0;
2294}
2295_ACEOF
2296if ac_fn_c_try_compile "$LINENO"; then :
2297  eval "$3=yes"
2298else
2299  eval "$3=no"
2300fi
2301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302fi
2303eval ac_res=\$$3
2304	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305$as_echo "$ac_res" >&6; }
2306  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2307
2308} # ac_fn_c_check_decl
2309
2310# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2311# ----------------------------------------------------
2312# Tries to find if the field MEMBER exists in type AGGR, after including
2313# INCLUDES, setting cache variable VAR accordingly.
2314ac_fn_c_check_member ()
2315{
2316  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2318$as_echo_n "checking for $2.$3... " >&6; }
2319if eval \${$4+:} false; then :
2320  $as_echo_n "(cached) " >&6
2321else
2322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323/* end confdefs.h.  */
2324$5
2325int
2326main ()
2327{
2328static $2 ac_aggr;
2329if (ac_aggr.$3)
2330return 0;
2331  ;
2332  return 0;
2333}
2334_ACEOF
2335if ac_fn_c_try_compile "$LINENO"; then :
2336  eval "$4=yes"
2337else
2338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339/* end confdefs.h.  */
2340$5
2341int
2342main ()
2343{
2344static $2 ac_aggr;
2345if (sizeof ac_aggr.$3)
2346return 0;
2347  ;
2348  return 0;
2349}
2350_ACEOF
2351if ac_fn_c_try_compile "$LINENO"; then :
2352  eval "$4=yes"
2353else
2354  eval "$4=no"
2355fi
2356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357fi
2358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359fi
2360eval ac_res=\$$4
2361	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2362$as_echo "$ac_res" >&6; }
2363  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2364
2365} # ac_fn_c_check_member
2366cat >config.log <<_ACEOF
2367This file contains any messages produced by compilers while
2368running configure, to aid debugging if configure makes a mistake.
2369
2370It was created by $as_me, which was
2371generated by GNU Autoconf 2.69.  Invocation command line was
2372
2373  $ $0 $@
2374
2375_ACEOF
2376exec 5>>config.log
2377{
2378cat <<_ASUNAME
2379## --------- ##
2380## Platform. ##
2381## --------- ##
2382
2383hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2384uname -m = `(uname -m) 2>/dev/null || echo unknown`
2385uname -r = `(uname -r) 2>/dev/null || echo unknown`
2386uname -s = `(uname -s) 2>/dev/null || echo unknown`
2387uname -v = `(uname -v) 2>/dev/null || echo unknown`
2388
2389/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2390/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2391
2392/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2393/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2394/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2395/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2396/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2397/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2398/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2399
2400_ASUNAME
2401
2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403for as_dir in $PATH
2404do
2405  IFS=$as_save_IFS
2406  test -z "$as_dir" && as_dir=.
2407    $as_echo "PATH: $as_dir"
2408  done
2409IFS=$as_save_IFS
2410
2411} >&5
2412
2413cat >&5 <<_ACEOF
2414
2415
2416## ----------- ##
2417## Core tests. ##
2418## ----------- ##
2419
2420_ACEOF
2421
2422
2423# Keep a trace of the command line.
2424# Strip out --no-create and --no-recursion so they do not pile up.
2425# Strip out --silent because we don't want to record it for future runs.
2426# Also quote any args containing shell meta-characters.
2427# Make two passes to allow for proper duplicate-argument suppression.
2428ac_configure_args=
2429ac_configure_args0=
2430ac_configure_args1=
2431ac_must_keep_next=false
2432for ac_pass in 1 2
2433do
2434  for ac_arg
2435  do
2436    case $ac_arg in
2437    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2438    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2439    | -silent | --silent | --silen | --sile | --sil)
2440      continue ;;
2441    *\'*)
2442      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2443    esac
2444    case $ac_pass in
2445    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2446    2)
2447      as_fn_append ac_configure_args1 " '$ac_arg'"
2448      if test $ac_must_keep_next = true; then
2449	ac_must_keep_next=false # Got value, back to normal.
2450      else
2451	case $ac_arg in
2452	  *=* | --config-cache | -C | -disable-* | --disable-* \
2453	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2454	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2455	  | -with-* | --with-* | -without-* | --without-* | --x)
2456	    case "$ac_configure_args0 " in
2457	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2458	    esac
2459	    ;;
2460	  -* ) ac_must_keep_next=true ;;
2461	esac
2462      fi
2463      as_fn_append ac_configure_args " '$ac_arg'"
2464      ;;
2465    esac
2466  done
2467done
2468{ ac_configure_args0=; unset ac_configure_args0;}
2469{ ac_configure_args1=; unset ac_configure_args1;}
2470
2471# When interrupted or exit'd, cleanup temporary files, and complete
2472# config.log.  We remove comments because anyway the quotes in there
2473# would cause problems or look ugly.
2474# WARNING: Use '\'' to represent an apostrophe within the trap.
2475# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2476trap 'exit_status=$?
2477  # Save into config.log some information that might help in debugging.
2478  {
2479    echo
2480
2481    $as_echo "## ---------------- ##
2482## Cache variables. ##
2483## ---------------- ##"
2484    echo
2485    # The following way of writing the cache mishandles newlines in values,
2486(
2487  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2488    eval ac_val=\$$ac_var
2489    case $ac_val in #(
2490    *${as_nl}*)
2491      case $ac_var in #(
2492      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2493$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2494      esac
2495      case $ac_var in #(
2496      _ | IFS | as_nl) ;; #(
2497      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2498      *) { eval $ac_var=; unset $ac_var;} ;;
2499      esac ;;
2500    esac
2501  done
2502  (set) 2>&1 |
2503    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2504    *${as_nl}ac_space=\ *)
2505      sed -n \
2506	"s/'\''/'\''\\\\'\'''\''/g;
2507	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2508      ;; #(
2509    *)
2510      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2511      ;;
2512    esac |
2513    sort
2514)
2515    echo
2516
2517    $as_echo "## ----------------- ##
2518## Output variables. ##
2519## ----------------- ##"
2520    echo
2521    for ac_var in $ac_subst_vars
2522    do
2523      eval ac_val=\$$ac_var
2524      case $ac_val in
2525      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2526      esac
2527      $as_echo "$ac_var='\''$ac_val'\''"
2528    done | sort
2529    echo
2530
2531    if test -n "$ac_subst_files"; then
2532      $as_echo "## ------------------- ##
2533## File substitutions. ##
2534## ------------------- ##"
2535      echo
2536      for ac_var in $ac_subst_files
2537      do
2538	eval ac_val=\$$ac_var
2539	case $ac_val in
2540	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2541	esac
2542	$as_echo "$ac_var='\''$ac_val'\''"
2543      done | sort
2544      echo
2545    fi
2546
2547    if test -s confdefs.h; then
2548      $as_echo "## ----------- ##
2549## confdefs.h. ##
2550## ----------- ##"
2551      echo
2552      cat confdefs.h
2553      echo
2554    fi
2555    test "$ac_signal" != 0 &&
2556      $as_echo "$as_me: caught signal $ac_signal"
2557    $as_echo "$as_me: exit $exit_status"
2558  } >&5
2559  rm -f core *.core core.conftest.* &&
2560    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2561    exit $exit_status
2562' 0
2563for ac_signal in 1 2 13 15; do
2564  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2565done
2566ac_signal=0
2567
2568# confdefs.h avoids OS command line length limits that DEFS can exceed.
2569rm -f -r conftest* confdefs.h
2570
2571$as_echo "/* confdefs.h */" > confdefs.h
2572
2573# Predefined preprocessor variables.
2574
2575cat >>confdefs.h <<_ACEOF
2576#define PACKAGE_NAME "$PACKAGE_NAME"
2577_ACEOF
2578
2579cat >>confdefs.h <<_ACEOF
2580#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2581_ACEOF
2582
2583cat >>confdefs.h <<_ACEOF
2584#define PACKAGE_VERSION "$PACKAGE_VERSION"
2585_ACEOF
2586
2587cat >>confdefs.h <<_ACEOF
2588#define PACKAGE_STRING "$PACKAGE_STRING"
2589_ACEOF
2590
2591cat >>confdefs.h <<_ACEOF
2592#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2593_ACEOF
2594
2595cat >>confdefs.h <<_ACEOF
2596#define PACKAGE_URL "$PACKAGE_URL"
2597_ACEOF
2598
2599
2600# Let the site file select an alternate cache file if it wants to.
2601# Prefer an explicitly selected file to automatically selected ones.
2602ac_site_file1=NONE
2603ac_site_file2=NONE
2604if test -n "$CONFIG_SITE"; then
2605  # We do not want a PATH search for config.site.
2606  case $CONFIG_SITE in #((
2607    -*)  ac_site_file1=./$CONFIG_SITE;;
2608    */*) ac_site_file1=$CONFIG_SITE;;
2609    *)   ac_site_file1=./$CONFIG_SITE;;
2610  esac
2611elif test "x$prefix" != xNONE; then
2612  ac_site_file1=$prefix/share/config.site
2613  ac_site_file2=$prefix/etc/config.site
2614else
2615  ac_site_file1=$ac_default_prefix/share/config.site
2616  ac_site_file2=$ac_default_prefix/etc/config.site
2617fi
2618for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2619do
2620  test "x$ac_site_file" = xNONE && continue
2621  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2622    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2623$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2624    sed 's/^/| /' "$ac_site_file" >&5
2625    . "$ac_site_file" \
2626      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2627$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2628as_fn_error $? "failed to load site script $ac_site_file
2629See \`config.log' for more details" "$LINENO" 5; }
2630  fi
2631done
2632
2633if test -r "$cache_file"; then
2634  # Some versions of bash will fail to source /dev/null (special files
2635  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2636  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2637    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2638$as_echo "$as_me: loading cache $cache_file" >&6;}
2639    case $cache_file in
2640      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2641      *)                      . "./$cache_file";;
2642    esac
2643  fi
2644else
2645  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2646$as_echo "$as_me: creating cache $cache_file" >&6;}
2647  >$cache_file
2648fi
2649
2650# Check that the precious variables saved in the cache have kept the same
2651# value.
2652ac_cache_corrupted=false
2653for ac_var in $ac_precious_vars; do
2654  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2655  eval ac_new_set=\$ac_env_${ac_var}_set
2656  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2657  eval ac_new_val=\$ac_env_${ac_var}_value
2658  case $ac_old_set,$ac_new_set in
2659    set,)
2660      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2661$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2662      ac_cache_corrupted=: ;;
2663    ,set)
2664      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2665$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2666      ac_cache_corrupted=: ;;
2667    ,);;
2668    *)
2669      if test "x$ac_old_val" != "x$ac_new_val"; then
2670	# differences in whitespace do not lead to failure.
2671	ac_old_val_w=`echo x $ac_old_val`
2672	ac_new_val_w=`echo x $ac_new_val`
2673	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2674	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2675$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2676	  ac_cache_corrupted=:
2677	else
2678	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2679$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2680	  eval $ac_var=\$ac_old_val
2681	fi
2682	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2683$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2684	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2685$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2686      fi;;
2687  esac
2688  # Pass precious variables to config.status.
2689  if test "$ac_new_set" = set; then
2690    case $ac_new_val in
2691    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2692    *) ac_arg=$ac_var=$ac_new_val ;;
2693    esac
2694    case " $ac_configure_args " in
2695      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2696      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2697    esac
2698  fi
2699done
2700if $ac_cache_corrupted; then
2701  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2703  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2704$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2705  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2706fi
2707## -------------------- ##
2708## Main body of script. ##
2709## -------------------- ##
2710
2711ac_ext=c
2712ac_cpp='$CPP $CPPFLAGS'
2713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2715ac_compiler_gnu=$ac_cv_c_compiler_gnu
2716
2717
2718ac_config_headers="$ac_config_headers include/arch/unix/apr_private.h"
2719
2720ac_aux_dir=
2721for ac_dir in build "$srcdir"/build; do
2722  if test -f "$ac_dir/install-sh"; then
2723    ac_aux_dir=$ac_dir
2724    ac_install_sh="$ac_aux_dir/install-sh -c"
2725    break
2726  elif test -f "$ac_dir/install.sh"; then
2727    ac_aux_dir=$ac_dir
2728    ac_install_sh="$ac_aux_dir/install.sh -c"
2729    break
2730  elif test -f "$ac_dir/shtool"; then
2731    ac_aux_dir=$ac_dir
2732    ac_install_sh="$ac_aux_dir/shtool install -c"
2733    break
2734  fi
2735done
2736if test -z "$ac_aux_dir"; then
2737  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2738fi
2739
2740# These three variables are undocumented and unsupported,
2741# and are intended to be withdrawn in a future Autoconf release.
2742# They can cause serious problems if a builder's source tree is in a directory
2743# whose full name contains unusual characters.
2744ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2745ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2746ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2905#
2906#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2907#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
2908#                 Foundation, Inc.
2909#   Written by Gordon Matzigkeit, 1996
2910#
2911# This file is free software; the Free Software Foundation gives
2912# unlimited permission to copy and/or distribute it, with or without
2913# modifications, as long as this notice is preserved.
2914
2915
2916
2917# serial 57 LT_INIT
2918
2919
2920# LT_PREREQ(VERSION)
2921# ------------------
2922# Complain and exit if this libtool version is less that VERSION.
2923
2924
2925
2926# _LT_CHECK_BUILDDIR
2927# ------------------
2928# Complain if the absolute build directory name contains unusual characters
2929
2930
2931
2932# LT_INIT([OPTIONS])
2933# ------------------
2934# LT_INIT
2935
2936# Old names:
2937# This is what autoupdate's m4 run will expand.  It fires
2938# the warning (with _au_warn_XXX), outputs it into the
2939# updated configure.ac (with AC_DIAGNOSE), and then outputs
2940# the replacement expansion.
2941
2942
2943# This is an auxiliary macro that is also run when
2944# autoupdate runs m4.  It simply calls m4_warning, but
2945# we need a wrapper so that each warning is emitted only
2946# once.  We break the quoting in m4_warning's argument in
2947# order to expand this macro's arguments, not AU_DEFUN's.
2948
2949
2950# Finally, this is the expansion that is picked up by
2951# autoconf.  It tells the user to run autoupdate, and
2952# then outputs the replacement expansion.  We do not care
2953# about autoupdate's warning because that contains
2954# information on what to do *after* running autoupdate.
2955
2956# This is what autoupdate's m4 run will expand.  It fires
2957# the warning (with _au_warn_XXX), outputs it into the
2958# updated configure.ac (with AC_DIAGNOSE), and then outputs
2959# the replacement expansion.
2960
2961
2962# This is an auxiliary macro that is also run when
2963# autoupdate runs m4.  It simply calls m4_warning, but
2964# we need a wrapper so that each warning is emitted only
2965# once.  We break the quoting in m4_warning's argument in
2966# order to expand this macro's arguments, not AU_DEFUN's.
2967
2968
2969# Finally, this is the expansion that is picked up by
2970# autoconf.  It tells the user to run autoupdate, and
2971# then outputs the replacement expansion.  We do not care
2972# about autoupdate's warning because that contains
2973# information on what to do *after* running autoupdate.
2974
2975
2976
2977# _LT_CC_BASENAME(CC)
2978# -------------------
2979# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
2980
2981
2982
2983# _LT_FILEUTILS_DEFAULTS
2984# ----------------------
2985# It is okay to use these file commands and assume they have been set
2986# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2987# _LT_FILEUTILS_DEFAULTS
2988
2989
2990# _LT_SETUP
2991# ---------
2992# _LT_SETUP
2993
2994
2995# _LT_PREPARE_SED_QUOTE_VARS
2996# --------------------------
2997# Define a few sed substitution that help us do robust quoting.
2998
2999
3000# _LT_PROG_LTMAIN
3001# ---------------
3002# Note that this code is called both from `configure', and `config.status'
3003# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
3004# `config.status' has no value for ac_aux_dir unless we are using Automake,
3005# so we pass a copy along to make sure it has a sensible value anyway.
3006# _LT_PROG_LTMAIN
3007
3008
3009## ------------------------------------- ##
3010## Accumulate code for creating libtool. ##
3011## ------------------------------------- ##
3012
3013# So that we can recreate a full libtool script including additional
3014# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
3015# in macros and then make a single call at the end using the `libtool'
3016# label.
3017
3018
3019# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
3020# ----------------------------------------
3021# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
3022
3023
3024# Initialize.
3025
3026
3027
3028# _LT_CONFIG_LIBTOOL([COMMANDS])
3029# ------------------------------
3030# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
3031
3032
3033# Initialize.
3034
3035
3036
3037# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
3038# -----------------------------------------------------
3039
3040
3041
3042# _LT_FORMAT_COMMENT([COMMENT])
3043# -----------------------------
3044# Add leading comment marks to the start of each line, and a trailing
3045# full-stop to the whole comment if one is not present already.
3046
3047
3048
3049
3050## ------------------------ ##
3051## FIXME: Eliminate VARNAME ##
3052## ------------------------ ##
3053
3054
3055# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
3056# -------------------------------------------------------------------
3057# CONFIGNAME is the name given to the value in the libtool script.
3058# VARNAME is the (base) name used in the configure script.
3059# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
3060# VARNAME.  Any other value will be used directly.
3061
3062
3063
3064# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
3065# --------------------------------------------------------
3066
3067
3068
3069# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
3070# ------------------------------------------------
3071
3072
3073
3074# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
3075# ---------------------------------------------------------
3076
3077
3078
3079# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
3080# --------------------------------------------------
3081
3082
3083
3084# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
3085# ---------------------------------------------------
3086
3087
3088
3089# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
3090# ---------------------------------------------------
3091
3092
3093
3094
3095# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
3096# ------------------------------------------------
3097
3098
3099
3100
3101# _LT_CONFIG_STATUS_DECLARE([VARNAME])
3102# ------------------------------------
3103# Quote a variable value, and forward it to `config.status' so that its
3104# declaration there will have the same value as in `configure'.  VARNAME
3105# must have a single quote delimited value for this to work.
3106
3107
3108
3109# _LT_CONFIG_STATUS_DECLARATIONS
3110# ------------------------------
3111# We delimit libtool config variables with single quotes, so when
3112# we write them to config.status, we have to be sure to quote all
3113# embedded single quotes properly.  In configure, this macro expands
3114# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
3115#
3116#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
3117
3118
3119
3120# _LT_LIBTOOL_TAGS
3121# ----------------
3122# Output comment and list of tags supported by the script
3123
3124
3125
3126# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
3127# -----------------------------------
3128# Extract the dictionary values for VARNAME (optionally with TAG) and
3129# expand to a commented shell variable setting:
3130#
3131#    # Some comment about what VAR is for.
3132#    visible_name=$lt_internal_name
3133
3134
3135
3136# _LT_LIBTOOL_CONFIG_VARS
3137# -----------------------
3138# Produce commented declarations of non-tagged libtool config variables
3139# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
3140# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
3141# section) are produced by _LT_LIBTOOL_TAG_VARS.
3142
3143
3144
3145# _LT_LIBTOOL_TAG_VARS(TAG)
3146# -------------------------
3147
3148
3149
3150# _LT_TAGVAR(VARNAME, [TAGNAME])
3151# ------------------------------
3152
3153
3154
3155# _LT_CONFIG_COMMANDS
3156# -------------------
3157# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
3158# variables for single and double quote escaping we saved from calls
3159# to _LT_DECL, we can put quote escaped variables declarations
3160# into `config.status', and then the shell code to quote escape them in
3161# for loops in `config.status'.  Finally, any additional code accumulated
3162# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
3163#_LT_CONFIG_COMMANDS
3164
3165
3166# Initialize.
3167
3168
3169# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
3170# ------------------------------------
3171# Generate a child script FILE with all initialization necessary to
3172# reuse the environment learned by the parent script, and make the
3173# file executable.  If COMMENT is supplied, it is inserted after the
3174# `#!' sequence but before initialization text begins.  After this
3175# macro, additional text can be appended to FILE to form the body of
3176# the child script.  The macro ends with non-zero status if the
3177# file could not be fully written (such as if the disk is full).
3178# _LT_GENERATED_FILE_INIT
3179
3180# LT_OUTPUT
3181# ---------
3182# This macro allows early generation of the libtool script (before
3183# AC_OUTPUT is called), incase it is used in configure for compilation
3184# tests.
3185# LT_OUTPUT
3186
3187
3188# _LT_CONFIG(TAG)
3189# ---------------
3190# If TAG is the built-in tag, create an initial libtool script with a
3191# default configuration from the untagged config vars.  Otherwise add code
3192# to config.status for appending the configuration named by TAG from the
3193# matching tagged config vars.
3194# _LT_CONFIG
3195
3196
3197# LT_SUPPORTED_TAG(TAG)
3198# ---------------------
3199# Trace this macro to discover what tags are supported by the libtool
3200# --tag option, using:
3201#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
3202
3203
3204
3205# C support is built-in for now
3206
3207
3208
3209
3210# LT_LANG(LANG)
3211# -------------
3212# Enable libtool support for the given language if not already enabled.
3213# LT_LANG
3214
3215
3216# _LT_LANG(LANGNAME)
3217# ------------------
3218# _LT_LANG
3219
3220
3221#m4_ifndef
3222
3223
3224# _LT_LANG_DEFAULT_CONFIG
3225# -----------------------
3226# _LT_LANG_DEFAULT_CONFIG
3227
3228# Obsolete macros:
3229# This is what autoupdate's m4 run will expand.  It fires
3230# the warning (with _au_warn_XXX), outputs it into the
3231# updated configure.ac (with AC_DIAGNOSE), and then outputs
3232# the replacement expansion.
3233
3234
3235# This is an auxiliary macro that is also run when
3236# autoupdate runs m4.  It simply calls m4_warning, but
3237# we need a wrapper so that each warning is emitted only
3238# once.  We break the quoting in m4_warning's argument in
3239# order to expand this macro's arguments, not AU_DEFUN's.
3240
3241
3242# Finally, this is the expansion that is picked up by
3243# autoconf.  It tells the user to run autoupdate, and
3244# then outputs the replacement expansion.  We do not care
3245# about autoupdate's warning because that contains
3246# information on what to do *after* running autoupdate.
3247
3248# This is what autoupdate's m4 run will expand.  It fires
3249# the warning (with _au_warn_XXX), outputs it into the
3250# updated configure.ac (with AC_DIAGNOSE), and then outputs
3251# the replacement expansion.
3252
3253
3254# This is an auxiliary macro that is also run when
3255# autoupdate runs m4.  It simply calls m4_warning, but
3256# we need a wrapper so that each warning is emitted only
3257# once.  We break the quoting in m4_warning's argument in
3258# order to expand this macro's arguments, not AU_DEFUN's.
3259
3260
3261# Finally, this is the expansion that is picked up by
3262# autoconf.  It tells the user to run autoupdate, and
3263# then outputs the replacement expansion.  We do not care
3264# about autoupdate's warning because that contains
3265# information on what to do *after* running autoupdate.
3266
3267# This is what autoupdate's m4 run will expand.  It fires
3268# the warning (with _au_warn_XXX), outputs it into the
3269# updated configure.ac (with AC_DIAGNOSE), and then outputs
3270# the replacement expansion.
3271
3272
3273# This is an auxiliary macro that is also run when
3274# autoupdate runs m4.  It simply calls m4_warning, but
3275# we need a wrapper so that each warning is emitted only
3276# once.  We break the quoting in m4_warning's argument in
3277# order to expand this macro's arguments, not AU_DEFUN's.
3278
3279
3280# Finally, this is the expansion that is picked up by
3281# autoconf.  It tells the user to run autoupdate, and
3282# then outputs the replacement expansion.  We do not care
3283# about autoupdate's warning because that contains
3284# information on what to do *after* running autoupdate.
3285
3286# This is what autoupdate's m4 run will expand.  It fires
3287# the warning (with _au_warn_XXX), outputs it into the
3288# updated configure.ac (with AC_DIAGNOSE), and then outputs
3289# the replacement expansion.
3290
3291
3292# This is an auxiliary macro that is also run when
3293# autoupdate runs m4.  It simply calls m4_warning, but
3294# we need a wrapper so that each warning is emitted only
3295# once.  We break the quoting in m4_warning's argument in
3296# order to expand this macro's arguments, not AU_DEFUN's.
3297
3298
3299# Finally, this is the expansion that is picked up by
3300# autoconf.  It tells the user to run autoupdate, and
3301# then outputs the replacement expansion.  We do not care
3302# about autoupdate's warning because that contains
3303# information on what to do *after* running autoupdate.
3304
3305# This is what autoupdate's m4 run will expand.  It fires
3306# the warning (with _au_warn_XXX), outputs it into the
3307# updated configure.ac (with AC_DIAGNOSE), and then outputs
3308# the replacement expansion.
3309
3310
3311# This is an auxiliary macro that is also run when
3312# autoupdate runs m4.  It simply calls m4_warning, but
3313# we need a wrapper so that each warning is emitted only
3314# once.  We break the quoting in m4_warning's argument in
3315# order to expand this macro's arguments, not AU_DEFUN's.
3316
3317
3318# Finally, this is the expansion that is picked up by
3319# autoconf.  It tells the user to run autoupdate, and
3320# then outputs the replacement expansion.  We do not care
3321# about autoupdate's warning because that contains
3322# information on what to do *after* running autoupdate.
3323
3324
3325
3326# _LT_TAG_COMPILER
3327# ----------------
3328# _LT_TAG_COMPILER
3329
3330
3331# _LT_COMPILER_BOILERPLATE
3332# ------------------------
3333# Check for compiler boilerplate output or warnings with
3334# the simple compiler test code.
3335# _LT_COMPILER_BOILERPLATE
3336
3337
3338# _LT_LINKER_BOILERPLATE
3339# ----------------------
3340# Check for linker boilerplate output or warnings with
3341# the simple link test code.
3342# _LT_LINKER_BOILERPLATE
3343
3344# _LT_REQUIRED_DARWIN_CHECKS
3345# -------------------------
3346
3347
3348
3349# _LT_DARWIN_LINKER_FEATURES([TAG])
3350# ---------------------------------
3351# Checks for linker and compiler features on darwin
3352
3353
3354# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
3355# ----------------------------------
3356# Links a minimal program and checks the executable
3357# for the system default hardcoded library path. In most cases,
3358# this is /usr/lib:/lib, but when the MPI compilers are used
3359# the location of the communication and MPI libs are included too.
3360# If we don't find anything, use the default library path according
3361# to the aix ld manual.
3362# Store the results from the different compilers for each TAGNAME.
3363# Allow to override them for all tags through lt_cv_aix_libpath.
3364# _LT_SYS_MODULE_PATH_AIX
3365
3366
3367# _LT_SHELL_INIT(ARG)
3368# -------------------
3369# _LT_SHELL_INIT
3370
3371
3372
3373# _LT_PROG_ECHO_BACKSLASH
3374# -----------------------
3375# Find how we can fake an echo command that does not interpret backslash.
3376# In particular, with Autoconf 2.60 or later we add some code to the start
3377# of the generated configure script which will find a shell with a builtin
3378# printf (which we can use as an echo command).
3379# _LT_PROG_ECHO_BACKSLASH
3380
3381
3382# _LT_WITH_SYSROOT
3383# ----------------
3384
3385
3386# _LT_ENABLE_LOCK
3387# ---------------
3388# _LT_ENABLE_LOCK
3389
3390
3391# _LT_PROG_AR
3392# -----------
3393# _LT_PROG_AR
3394
3395
3396# _LT_CMD_OLD_ARCHIVE
3397# -------------------
3398# _LT_CMD_OLD_ARCHIVE
3399
3400
3401# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3402#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3403# ----------------------------------------------------------------
3404# Check whether the given compiler option works
3405# _LT_COMPILER_OPTION
3406
3407# Old name:
3408# This is what autoupdate's m4 run will expand.  It fires
3409# the warning (with _au_warn_XXX), outputs it into the
3410# updated configure.ac (with AC_DIAGNOSE), and then outputs
3411# the replacement expansion.
3412
3413
3414# This is an auxiliary macro that is also run when
3415# autoupdate runs m4.  It simply calls m4_warning, but
3416# we need a wrapper so that each warning is emitted only
3417# once.  We break the quoting in m4_warning's argument in
3418# order to expand this macro's arguments, not AU_DEFUN's.
3419
3420
3421# Finally, this is the expansion that is picked up by
3422# autoconf.  It tells the user to run autoupdate, and
3423# then outputs the replacement expansion.  We do not care
3424# about autoupdate's warning because that contains
3425# information on what to do *after* running autoupdate.
3426
3427
3428
3429# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3430#                  [ACTION-SUCCESS], [ACTION-FAILURE])
3431# ----------------------------------------------------
3432# Check whether the given linker option works
3433# _LT_LINKER_OPTION
3434
3435# Old name:
3436# This is what autoupdate's m4 run will expand.  It fires
3437# the warning (with _au_warn_XXX), outputs it into the
3438# updated configure.ac (with AC_DIAGNOSE), and then outputs
3439# the replacement expansion.
3440
3441
3442# This is an auxiliary macro that is also run when
3443# autoupdate runs m4.  It simply calls m4_warning, but
3444# we need a wrapper so that each warning is emitted only
3445# once.  We break the quoting in m4_warning's argument in
3446# order to expand this macro's arguments, not AU_DEFUN's.
3447
3448
3449# Finally, this is the expansion that is picked up by
3450# autoconf.  It tells the user to run autoupdate, and
3451# then outputs the replacement expansion.  We do not care
3452# about autoupdate's warning because that contains
3453# information on what to do *after* running autoupdate.
3454
3455
3456
3457# LT_CMD_MAX_LEN
3458#---------------
3459# LT_CMD_MAX_LEN
3460
3461# Old name:
3462# This is what autoupdate's m4 run will expand.  It fires
3463# the warning (with _au_warn_XXX), outputs it into the
3464# updated configure.ac (with AC_DIAGNOSE), and then outputs
3465# the replacement expansion.
3466
3467
3468# This is an auxiliary macro that is also run when
3469# autoupdate runs m4.  It simply calls m4_warning, but
3470# we need a wrapper so that each warning is emitted only
3471# once.  We break the quoting in m4_warning's argument in
3472# order to expand this macro's arguments, not AU_DEFUN's.
3473
3474
3475# Finally, this is the expansion that is picked up by
3476# autoconf.  It tells the user to run autoupdate, and
3477# then outputs the replacement expansion.  We do not care
3478# about autoupdate's warning because that contains
3479# information on what to do *after* running autoupdate.
3480
3481
3482
3483# _LT_HEADER_DLFCN
3484# ----------------
3485# _LT_HEADER_DLFCN
3486
3487
3488# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3489#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3490# ----------------------------------------------------------------
3491# _LT_TRY_DLOPEN_SELF
3492
3493
3494# LT_SYS_DLOPEN_SELF
3495# ------------------
3496# LT_SYS_DLOPEN_SELF
3497
3498# Old name:
3499# This is what autoupdate's m4 run will expand.  It fires
3500# the warning (with _au_warn_XXX), outputs it into the
3501# updated configure.ac (with AC_DIAGNOSE), and then outputs
3502# the replacement expansion.
3503
3504
3505# This is an auxiliary macro that is also run when
3506# autoupdate runs m4.  It simply calls m4_warning, but
3507# we need a wrapper so that each warning is emitted only
3508# once.  We break the quoting in m4_warning's argument in
3509# order to expand this macro's arguments, not AU_DEFUN's.
3510
3511
3512# Finally, this is the expansion that is picked up by
3513# autoconf.  It tells the user to run autoupdate, and
3514# then outputs the replacement expansion.  We do not care
3515# about autoupdate's warning because that contains
3516# information on what to do *after* running autoupdate.
3517
3518
3519
3520# _LT_COMPILER_C_O([TAGNAME])
3521# ---------------------------
3522# Check to see if options -c and -o are simultaneously supported by compiler.
3523# This macro does not hard code the compiler like AC_PROG_CC_C_O.
3524# _LT_COMPILER_C_O
3525
3526
3527# _LT_COMPILER_FILE_LOCKS([TAGNAME])
3528# ----------------------------------
3529# Check to see if we can do hard links to lock some files if needed
3530# _LT_COMPILER_FILE_LOCKS
3531
3532
3533# _LT_CHECK_OBJDIR
3534# ----------------
3535# _LT_CHECK_OBJDIR
3536
3537
3538# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3539# --------------------------------------
3540# Check hardcoding attributes.
3541# _LT_LINKER_HARDCODE_LIBPATH
3542
3543
3544# _LT_CMD_STRIPLIB
3545# ----------------
3546# _LT_CMD_STRIPLIB
3547
3548
3549# _LT_SYS_DYNAMIC_LINKER([TAG])
3550# -----------------------------
3551# PORTME Fill in your ld.so characteristics
3552# _LT_SYS_DYNAMIC_LINKER
3553
3554
3555# _LT_PATH_TOOL_PREFIX(TOOL)
3556# --------------------------
3557# find a file program which can recognize shared library
3558# _LT_PATH_TOOL_PREFIX
3559
3560# Old name:
3561# This is what autoupdate's m4 run will expand.  It fires
3562# the warning (with _au_warn_XXX), outputs it into the
3563# updated configure.ac (with AC_DIAGNOSE), and then outputs
3564# the replacement expansion.
3565
3566
3567# This is an auxiliary macro that is also run when
3568# autoupdate runs m4.  It simply calls m4_warning, but
3569# we need a wrapper so that each warning is emitted only
3570# once.  We break the quoting in m4_warning's argument in
3571# order to expand this macro's arguments, not AU_DEFUN's.
3572
3573
3574# Finally, this is the expansion that is picked up by
3575# autoconf.  It tells the user to run autoupdate, and
3576# then outputs the replacement expansion.  We do not care
3577# about autoupdate's warning because that contains
3578# information on what to do *after* running autoupdate.
3579
3580
3581
3582# _LT_PATH_MAGIC
3583# --------------
3584# find a file program which can recognize a shared library
3585# _LT_PATH_MAGIC
3586
3587
3588# LT_PATH_LD
3589# ----------
3590# find the pathname to the GNU or non-GNU linker
3591# LT_PATH_LD
3592
3593# Old names:
3594# This is what autoupdate's m4 run will expand.  It fires
3595# the warning (with _au_warn_XXX), outputs it into the
3596# updated configure.ac (with AC_DIAGNOSE), and then outputs
3597# the replacement expansion.
3598
3599
3600# This is an auxiliary macro that is also run when
3601# autoupdate runs m4.  It simply calls m4_warning, but
3602# we need a wrapper so that each warning is emitted only
3603# once.  We break the quoting in m4_warning's argument in
3604# order to expand this macro's arguments, not AU_DEFUN's.
3605
3606
3607# Finally, this is the expansion that is picked up by
3608# autoconf.  It tells the user to run autoupdate, and
3609# then outputs the replacement expansion.  We do not care
3610# about autoupdate's warning because that contains
3611# information on what to do *after* running autoupdate.
3612
3613# This is what autoupdate's m4 run will expand.  It fires
3614# the warning (with _au_warn_XXX), outputs it into the
3615# updated configure.ac (with AC_DIAGNOSE), and then outputs
3616# the replacement expansion.
3617
3618
3619# This is an auxiliary macro that is also run when
3620# autoupdate runs m4.  It simply calls m4_warning, but
3621# we need a wrapper so that each warning is emitted only
3622# once.  We break the quoting in m4_warning's argument in
3623# order to expand this macro's arguments, not AU_DEFUN's.
3624
3625
3626# Finally, this is the expansion that is picked up by
3627# autoconf.  It tells the user to run autoupdate, and
3628# then outputs the replacement expansion.  We do not care
3629# about autoupdate's warning because that contains
3630# information on what to do *after* running autoupdate.
3631
3632
3633
3634# _LT_PATH_LD_GNU
3635#- --------------
3636# _LT_PATH_LD_GNU
3637
3638
3639# _LT_CMD_RELOAD
3640# --------------
3641# find reload flag for linker
3642#   -- PORTME Some linkers may need a different reload flag.
3643# _LT_CMD_RELOAD
3644
3645
3646# _LT_CHECK_MAGIC_METHOD
3647# ----------------------
3648# how to check for library dependencies
3649#  -- PORTME fill in with the dynamic library characteristics
3650# _LT_CHECK_MAGIC_METHOD
3651
3652
3653# LT_PATH_NM
3654# ----------
3655# find the pathname to a BSD- or MS-compatible name lister
3656# LT_PATH_NM
3657
3658# Old names:
3659# This is what autoupdate's m4 run will expand.  It fires
3660# the warning (with _au_warn_XXX), outputs it into the
3661# updated configure.ac (with AC_DIAGNOSE), and then outputs
3662# the replacement expansion.
3663
3664
3665# This is an auxiliary macro that is also run when
3666# autoupdate runs m4.  It simply calls m4_warning, but
3667# we need a wrapper so that each warning is emitted only
3668# once.  We break the quoting in m4_warning's argument in
3669# order to expand this macro's arguments, not AU_DEFUN's.
3670
3671
3672# Finally, this is the expansion that is picked up by
3673# autoconf.  It tells the user to run autoupdate, and
3674# then outputs the replacement expansion.  We do not care
3675# about autoupdate's warning because that contains
3676# information on what to do *after* running autoupdate.
3677
3678# This is what autoupdate's m4 run will expand.  It fires
3679# the warning (with _au_warn_XXX), outputs it into the
3680# updated configure.ac (with AC_DIAGNOSE), and then outputs
3681# the replacement expansion.
3682
3683
3684# This is an auxiliary macro that is also run when
3685# autoupdate runs m4.  It simply calls m4_warning, but
3686# we need a wrapper so that each warning is emitted only
3687# once.  We break the quoting in m4_warning's argument in
3688# order to expand this macro's arguments, not AU_DEFUN's.
3689
3690
3691# Finally, this is the expansion that is picked up by
3692# autoconf.  It tells the user to run autoupdate, and
3693# then outputs the replacement expansion.  We do not care
3694# about autoupdate's warning because that contains
3695# information on what to do *after* running autoupdate.
3696
3697
3698# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3699# --------------------------------
3700# how to determine the name of the shared library
3701# associated with a specific link library.
3702#  -- PORTME fill in with the dynamic library characteristics
3703# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3704
3705
3706# _LT_PATH_MANIFEST_TOOL
3707# ----------------------
3708# locate the manifest tool
3709# _LT_PATH_MANIFEST_TOOL
3710
3711
3712# LT_LIB_M
3713# --------
3714# check for math library
3715# LT_LIB_M
3716
3717# Old name:
3718# This is what autoupdate's m4 run will expand.  It fires
3719# the warning (with _au_warn_XXX), outputs it into the
3720# updated configure.ac (with AC_DIAGNOSE), and then outputs
3721# the replacement expansion.
3722
3723
3724# This is an auxiliary macro that is also run when
3725# autoupdate runs m4.  It simply calls m4_warning, but
3726# we need a wrapper so that each warning is emitted only
3727# once.  We break the quoting in m4_warning's argument in
3728# order to expand this macro's arguments, not AU_DEFUN's.
3729
3730
3731# Finally, this is the expansion that is picked up by
3732# autoconf.  It tells the user to run autoupdate, and
3733# then outputs the replacement expansion.  We do not care
3734# about autoupdate's warning because that contains
3735# information on what to do *after* running autoupdate.
3736
3737
3738
3739# _LT_COMPILER_NO_RTTI([TAGNAME])
3740# -------------------------------
3741# _LT_COMPILER_NO_RTTI
3742
3743
3744# _LT_CMD_GLOBAL_SYMBOLS
3745# ----------------------
3746 # _LT_CMD_GLOBAL_SYMBOLS
3747
3748
3749# _LT_COMPILER_PIC([TAGNAME])
3750# ---------------------------
3751# _LT_COMPILER_PIC
3752
3753
3754# _LT_LINKER_SHLIBS([TAGNAME])
3755# ----------------------------
3756# See if the linker supports building shared libraries.
3757# _LT_LINKER_SHLIBS
3758
3759
3760# _LT_LANG_C_CONFIG([TAG])
3761# ------------------------
3762# Ensure that the configuration variables for a C compiler are suitably
3763# defined.  These variables are subsequently used by _LT_CONFIG to write
3764# the compiler configuration to `libtool'.
3765# _LT_LANG_C_CONFIG
3766
3767
3768# _LT_LANG_CXX_CONFIG([TAG])
3769# --------------------------
3770# Ensure that the configuration variables for a C++ compiler are suitably
3771# defined.  These variables are subsequently used by _LT_CONFIG to write
3772# the compiler configuration to `libtool'.
3773# _LT_LANG_CXX_CONFIG
3774
3775
3776# _LT_FUNC_STRIPNAME_CNF
3777# ----------------------
3778# func_stripname_cnf prefix suffix name
3779# strip PREFIX and SUFFIX off of NAME.
3780# PREFIX and SUFFIX must not contain globbing or regex special
3781# characters, hashes, percent signs, but SUFFIX may contain a leading
3782# dot (in which case that matches only a dot).
3783#
3784# This function is identical to the (non-XSI) version of func_stripname,
3785# except this one can be used by m4 code that may be executed by configure,
3786# rather than the libtool script.
3787# _LT_FUNC_STRIPNAME_CNF
3788
3789# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3790# ---------------------------------
3791# Figure out "hidden" library dependencies from verbose
3792# compiler output when linking a shared library.
3793# Parse the compiler output and extract the necessary
3794# objects, libraries and library flags.
3795# _LT_SYS_HIDDEN_LIBDEPS
3796
3797
3798# _LT_LANG_F77_CONFIG([TAG])
3799# --------------------------
3800# Ensure that the configuration variables for a Fortran 77 compiler are
3801# suitably defined.  These variables are subsequently used by _LT_CONFIG
3802# to write the compiler configuration to `libtool'.
3803# _LT_LANG_F77_CONFIG
3804
3805
3806# _LT_LANG_FC_CONFIG([TAG])
3807# -------------------------
3808# Ensure that the configuration variables for a Fortran compiler are
3809# suitably defined.  These variables are subsequently used by _LT_CONFIG
3810# to write the compiler configuration to `libtool'.
3811# _LT_LANG_FC_CONFIG
3812
3813
3814# _LT_LANG_GCJ_CONFIG([TAG])
3815# --------------------------
3816# Ensure that the configuration variables for the GNU Java Compiler compiler
3817# are suitably defined.  These variables are subsequently used by _LT_CONFIG
3818# to write the compiler configuration to `libtool'.
3819# _LT_LANG_GCJ_CONFIG
3820
3821
3822# _LT_LANG_GO_CONFIG([TAG])
3823# --------------------------
3824# Ensure that the configuration variables for the GNU Go compiler
3825# are suitably defined.  These variables are subsequently used by _LT_CONFIG
3826# to write the compiler configuration to `libtool'.
3827# _LT_LANG_GO_CONFIG
3828
3829
3830# _LT_LANG_RC_CONFIG([TAG])
3831# -------------------------
3832# Ensure that the configuration variables for the Windows resource compiler
3833# are suitably defined.  These variables are subsequently used by _LT_CONFIG
3834# to write the compiler configuration to `libtool'.
3835# _LT_LANG_RC_CONFIG
3836
3837
3838# LT_PROG_GCJ
3839# -----------
3840
3841
3842# Old name:
3843# This is what autoupdate's m4 run will expand.  It fires
3844# the warning (with _au_warn_XXX), outputs it into the
3845# updated configure.ac (with AC_DIAGNOSE), and then outputs
3846# the replacement expansion.
3847
3848
3849# This is an auxiliary macro that is also run when
3850# autoupdate runs m4.  It simply calls m4_warning, but
3851# we need a wrapper so that each warning is emitted only
3852# once.  We break the quoting in m4_warning's argument in
3853# order to expand this macro's arguments, not AU_DEFUN's.
3854
3855
3856# Finally, this is the expansion that is picked up by
3857# autoconf.  It tells the user to run autoupdate, and
3858# then outputs the replacement expansion.  We do not care
3859# about autoupdate's warning because that contains
3860# information on what to do *after* running autoupdate.
3861
3862
3863
3864# LT_PROG_GO
3865# ----------
3866
3867
3868
3869# LT_PROG_RC
3870# ----------
3871
3872
3873# Old name:
3874# This is what autoupdate's m4 run will expand.  It fires
3875# the warning (with _au_warn_XXX), outputs it into the
3876# updated configure.ac (with AC_DIAGNOSE), and then outputs
3877# the replacement expansion.
3878
3879
3880# This is an auxiliary macro that is also run when
3881# autoupdate runs m4.  It simply calls m4_warning, but
3882# we need a wrapper so that each warning is emitted only
3883# once.  We break the quoting in m4_warning's argument in
3884# order to expand this macro's arguments, not AU_DEFUN's.
3885
3886
3887# Finally, this is the expansion that is picked up by
3888# autoconf.  It tells the user to run autoupdate, and
3889# then outputs the replacement expansion.  We do not care
3890# about autoupdate's warning because that contains
3891# information on what to do *after* running autoupdate.
3892
3893
3894
3895# _LT_DECL_EGREP
3896# --------------
3897# If we don't have a new enough Autoconf to choose the best grep
3898# available, choose the one first in the user's PATH.
3899
3900
3901
3902# _LT_DECL_OBJDUMP
3903# --------------
3904# If we don't have a new enough Autoconf to choose the best objdump
3905# available, choose the one first in the user's PATH.
3906
3907
3908# _LT_DECL_DLLTOOL
3909# ----------------
3910# Ensure DLLTOOL variable is set.
3911
3912
3913# _LT_DECL_SED
3914# ------------
3915# Check for a fully-functional sed program, that truncates
3916# as few characters as possible.  Prefer GNU sed if found.
3917# _LT_DECL_SED
3918
3919#m4_ifndef
3920
3921# Old name:
3922# This is what autoupdate's m4 run will expand.  It fires
3923# the warning (with _au_warn_XXX), outputs it into the
3924# updated configure.ac (with AC_DIAGNOSE), and then outputs
3925# the replacement expansion.
3926
3927
3928# This is an auxiliary macro that is also run when
3929# autoupdate runs m4.  It simply calls m4_warning, but
3930# we need a wrapper so that each warning is emitted only
3931# once.  We break the quoting in m4_warning's argument in
3932# order to expand this macro's arguments, not AU_DEFUN's.
3933
3934
3935# Finally, this is the expansion that is picked up by
3936# autoconf.  It tells the user to run autoupdate, and
3937# then outputs the replacement expansion.  We do not care
3938# about autoupdate's warning because that contains
3939# information on what to do *after* running autoupdate.
3940
3941
3942
3943# _LT_CHECK_SHELL_FEATURES
3944# ------------------------
3945# Find out whether the shell is Bourne or XSI compatible,
3946# or has some other useful features.
3947# _LT_CHECK_SHELL_FEATURES
3948
3949
3950# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
3951# ------------------------------------------------------
3952# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
3953# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
3954
3955
3956
3957# _LT_PROG_REPLACE_SHELLFNS
3958# -------------------------
3959# Replace existing portable implementations of several shell functions with
3960# equivalent extended shell implementations where those features are available..
3961
3962
3963# _LT_PATH_CONVERSION_FUNCTIONS
3964# -----------------------------
3965# Determine which file name conversion functions should be used by
3966# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
3967# for certain cross-compile configurations and native mingw.
3968# _LT_PATH_CONVERSION_FUNCTIONS
3969
3970# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
3971#
3972# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3973# Written by Gary V. Vaughan, 2004
3974#
3975# This file is free software; the Free Software Foundation gives
3976# unlimited permission to copy and/or distribute it, with or without
3977# modifications, as long as this notice is preserved.
3978
3979# serial 6 ltsugar.m4
3980
3981# This is to help aclocal find these macros, as it can't see m4_define.
3982
3983
3984
3985# lt_join(SEP, ARG1, [ARG2...])
3986# -----------------------------
3987# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3988# associated separator.
3989# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3990# versions in m4sugar had bugs.
3991
3992
3993
3994
3995# lt_car(LIST)
3996# lt_cdr(LIST)
3997# ------------
3998# Manipulate m4 lists.
3999# These macros are necessary as long as will still need to support
4000# Autoconf-2.59 which quotes differently.
4001
4002
4003
4004
4005
4006# lt_append(MACRO-NAME, STRING, [SEPARATOR])
4007# ------------------------------------------
4008# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
4009# Note that neither SEPARATOR nor STRING are expanded; they are appended
4010# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
4011# No SEPARATOR is output if MACRO-NAME was previously undefined (different
4012# than defined and empty).
4013#
4014# This macro is needed until we can rely on Autoconf 2.62, since earlier
4015# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
4016
4017
4018
4019
4020# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
4021# ----------------------------------------------------------
4022# Produce a SEP delimited list of all paired combinations of elements of
4023# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
4024# has the form PREFIXmINFIXSUFFIXn.
4025# Needed until we can rely on m4_combine added in Autoconf 2.62.
4026
4027
4028
4029# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
4030# -----------------------------------------------------------------------
4031# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
4032# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
4033
4034
4035
4036# lt_dict_add(DICT, KEY, VALUE)
4037# -----------------------------
4038
4039
4040
4041# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
4042# --------------------------------------------
4043
4044
4045
4046# lt_dict_fetch(DICT, KEY, [SUBKEY])
4047# ----------------------------------
4048
4049
4050
4051# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
4052# -----------------------------------------------------------------
4053
4054
4055
4056# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
4057# --------------------------------------------------------------
4058
4059
4060
4061# Helper functions for option handling.                    -*- Autoconf -*-
4062#
4063#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
4064#   Inc.
4065#   Written by Gary V. Vaughan, 2004
4066#
4067# This file is free software; the Free Software Foundation gives
4068# unlimited permission to copy and/or distribute it, with or without
4069# modifications, as long as this notice is preserved.
4070
4071# serial 7 ltoptions.m4
4072
4073# This is to help aclocal find these macros, as it can't see m4_define.
4074
4075
4076
4077# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
4078# ------------------------------------------
4079
4080
4081
4082# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
4083# ---------------------------------------
4084# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
4085# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
4086# saved as a flag.
4087
4088
4089
4090# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
4091# ------------------------------------------------------------
4092# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
4093
4094
4095
4096# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
4097# -------------------------------------------------------
4098# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
4099# are set.
4100
4101
4102
4103# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
4104# ----------------------------------------
4105# OPTION-LIST is a space-separated list of Libtool options associated
4106# with MACRO-NAME.  If any OPTION has a matching handler declared with
4107# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
4108# the unknown option and exit.
4109# _LT_SET_OPTIONS
4110
4111
4112## --------------------------------- ##
4113## Macros to handle LT_INIT options. ##
4114## --------------------------------- ##
4115
4116# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
4117# -----------------------------------------
4118
4119
4120
4121# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
4122# -----------------------------------------------
4123# LT_OPTION_DEFINE
4124
4125
4126# dlopen
4127# ------
4128
4129
4130# This is what autoupdate's m4 run will expand.  It fires
4131# the warning (with _au_warn_XXX), outputs it into the
4132# updated configure.ac (with AC_DIAGNOSE), and then outputs
4133# the replacement expansion.
4134
4135
4136# This is an auxiliary macro that is also run when
4137# autoupdate runs m4.  It simply calls m4_warning, but
4138# we need a wrapper so that each warning is emitted only
4139# once.  We break the quoting in m4_warning's argument in
4140# order to expand this macro's arguments, not AU_DEFUN's.
4141
4142
4143# Finally, this is the expansion that is picked up by
4144# autoconf.  It tells the user to run autoupdate, and
4145# then outputs the replacement expansion.  We do not care
4146# about autoupdate's warning because that contains
4147# information on what to do *after* running autoupdate.
4148
4149
4150
4151
4152# win32-dll
4153# ---------
4154# Declare package support for building win32 dll's.
4155# win32-dll
4156
4157# This is what autoupdate's m4 run will expand.  It fires
4158# the warning (with _au_warn_XXX), outputs it into the
4159# updated configure.ac (with AC_DIAGNOSE), and then outputs
4160# the replacement expansion.
4161
4162
4163# This is an auxiliary macro that is also run when
4164# autoupdate runs m4.  It simply calls m4_warning, but
4165# we need a wrapper so that each warning is emitted only
4166# once.  We break the quoting in m4_warning's argument in
4167# order to expand this macro's arguments, not AU_DEFUN's.
4168
4169
4170# Finally, this is the expansion that is picked up by
4171# autoconf.  It tells the user to run autoupdate, and
4172# then outputs the replacement expansion.  We do not care
4173# about autoupdate's warning because that contains
4174# information on what to do *after* running autoupdate.
4175
4176
4177
4178
4179# _LT_ENABLE_SHARED([DEFAULT])
4180# ----------------------------
4181# implement the --enable-shared flag, and supports the `shared' and
4182# `disable-shared' LT_INIT options.
4183# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
4184# _LT_ENABLE_SHARED
4185
4186
4187
4188
4189# Old names:
4190
4191
4192
4193
4194# This is what autoupdate's m4 run will expand.  It fires
4195# the warning (with _au_warn_XXX), outputs it into the
4196# updated configure.ac (with AC_DIAGNOSE), and then outputs
4197# the replacement expansion.
4198
4199
4200# This is an auxiliary macro that is also run when
4201# autoupdate runs m4.  It simply calls m4_warning, but
4202# we need a wrapper so that each warning is emitted only
4203# once.  We break the quoting in m4_warning's argument in
4204# order to expand this macro's arguments, not AU_DEFUN's.
4205
4206
4207# Finally, this is the expansion that is picked up by
4208# autoconf.  It tells the user to run autoupdate, and
4209# then outputs the replacement expansion.  We do not care
4210# about autoupdate's warning because that contains
4211# information on what to do *after* running autoupdate.
4212
4213# This is what autoupdate's m4 run will expand.  It fires
4214# the warning (with _au_warn_XXX), outputs it into the
4215# updated configure.ac (with AC_DIAGNOSE), and then outputs
4216# the replacement expansion.
4217
4218
4219# This is an auxiliary macro that is also run when
4220# autoupdate runs m4.  It simply calls m4_warning, but
4221# we need a wrapper so that each warning is emitted only
4222# once.  We break the quoting in m4_warning's argument in
4223# order to expand this macro's arguments, not AU_DEFUN's.
4224
4225
4226# Finally, this is the expansion that is picked up by
4227# autoconf.  It tells the user to run autoupdate, and
4228# then outputs the replacement expansion.  We do not care
4229# about autoupdate's warning because that contains
4230# information on what to do *after* running autoupdate.
4231
4232
4233
4234
4235
4236# _LT_ENABLE_STATIC([DEFAULT])
4237# ----------------------------
4238# implement the --enable-static flag, and support the `static' and
4239# `disable-static' LT_INIT options.
4240# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
4241# _LT_ENABLE_STATIC
4242
4243
4244
4245
4246# Old names:
4247
4248
4249
4250
4251# This is what autoupdate's m4 run will expand.  It fires
4252# the warning (with _au_warn_XXX), outputs it into the
4253# updated configure.ac (with AC_DIAGNOSE), and then outputs
4254# the replacement expansion.
4255
4256
4257# This is an auxiliary macro that is also run when
4258# autoupdate runs m4.  It simply calls m4_warning, but
4259# we need a wrapper so that each warning is emitted only
4260# once.  We break the quoting in m4_warning's argument in
4261# order to expand this macro's arguments, not AU_DEFUN's.
4262
4263
4264# Finally, this is the expansion that is picked up by
4265# autoconf.  It tells the user to run autoupdate, and
4266# then outputs the replacement expansion.  We do not care
4267# about autoupdate's warning because that contains
4268# information on what to do *after* running autoupdate.
4269
4270# This is what autoupdate's m4 run will expand.  It fires
4271# the warning (with _au_warn_XXX), outputs it into the
4272# updated configure.ac (with AC_DIAGNOSE), and then outputs
4273# the replacement expansion.
4274
4275
4276# This is an auxiliary macro that is also run when
4277# autoupdate runs m4.  It simply calls m4_warning, but
4278# we need a wrapper so that each warning is emitted only
4279# once.  We break the quoting in m4_warning's argument in
4280# order to expand this macro's arguments, not AU_DEFUN's.
4281
4282
4283# Finally, this is the expansion that is picked up by
4284# autoconf.  It tells the user to run autoupdate, and
4285# then outputs the replacement expansion.  We do not care
4286# about autoupdate's warning because that contains
4287# information on what to do *after* running autoupdate.
4288
4289
4290
4291
4292
4293# _LT_ENABLE_FAST_INSTALL([DEFAULT])
4294# ----------------------------------
4295# implement the --enable-fast-install flag, and support the `fast-install'
4296# and `disable-fast-install' LT_INIT options.
4297# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
4298# _LT_ENABLE_FAST_INSTALL
4299
4300
4301
4302
4303# Old names:
4304# This is what autoupdate's m4 run will expand.  It fires
4305# the warning (with _au_warn_XXX), outputs it into the
4306# updated configure.ac (with AC_DIAGNOSE), and then outputs
4307# the replacement expansion.
4308
4309
4310# This is an auxiliary macro that is also run when
4311# autoupdate runs m4.  It simply calls m4_warning, but
4312# we need a wrapper so that each warning is emitted only
4313# once.  We break the quoting in m4_warning's argument in
4314# order to expand this macro's arguments, not AU_DEFUN's.
4315
4316
4317# Finally, this is the expansion that is picked up by
4318# autoconf.  It tells the user to run autoupdate, and
4319# then outputs the replacement expansion.  We do not care
4320# about autoupdate's warning because that contains
4321# information on what to do *after* running autoupdate.
4322
4323
4324# This is what autoupdate's m4 run will expand.  It fires
4325# the warning (with _au_warn_XXX), outputs it into the
4326# updated configure.ac (with AC_DIAGNOSE), and then outputs
4327# the replacement expansion.
4328
4329
4330# This is an auxiliary macro that is also run when
4331# autoupdate runs m4.  It simply calls m4_warning, but
4332# we need a wrapper so that each warning is emitted only
4333# once.  We break the quoting in m4_warning's argument in
4334# order to expand this macro's arguments, not AU_DEFUN's.
4335
4336
4337# Finally, this is the expansion that is picked up by
4338# autoconf.  It tells the user to run autoupdate, and
4339# then outputs the replacement expansion.  We do not care
4340# about autoupdate's warning because that contains
4341# information on what to do *after* running autoupdate.
4342
4343
4344
4345
4346# _LT_WITH_PIC([MODE])
4347# --------------------
4348# implement the --with-pic flag, and support the `pic-only' and `no-pic'
4349# LT_INIT options.
4350# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
4351# _LT_WITH_PIC
4352
4353
4354
4355
4356# Old name:
4357# This is what autoupdate's m4 run will expand.  It fires
4358# the warning (with _au_warn_XXX), outputs it into the
4359# updated configure.ac (with AC_DIAGNOSE), and then outputs
4360# the replacement expansion.
4361
4362
4363# This is an auxiliary macro that is also run when
4364# autoupdate runs m4.  It simply calls m4_warning, but
4365# we need a wrapper so that each warning is emitted only
4366# once.  We break the quoting in m4_warning's argument in
4367# order to expand this macro's arguments, not AU_DEFUN's.
4368
4369
4370# Finally, this is the expansion that is picked up by
4371# autoconf.  It tells the user to run autoupdate, and
4372# then outputs the replacement expansion.  We do not care
4373# about autoupdate's warning because that contains
4374# information on what to do *after* running autoupdate.
4375
4376
4377
4378## ----------------- ##
4379## LTDL_INIT Options ##
4380## ----------------- ##
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391# ltversion.m4 -- version numbers			-*- Autoconf -*-
4392#
4393#   Copyright (C) 2004 Free Software Foundation, Inc.
4394#   Written by Scott James Remnant, 2004
4395#
4396# This file is free software; the Free Software Foundation gives
4397# unlimited permission to copy and/or distribute it, with or without
4398# modifications, as long as this notice is preserved.
4399
4400# @configure_input@
4401
4402# serial 3337 ltversion.m4
4403# This file is part of GNU Libtool
4404
4405
4406
4407
4408
4409
4410# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
4411#
4412#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
4413#   Written by Scott James Remnant, 2004.
4414#
4415# This file is free software; the Free Software Foundation gives
4416# unlimited permission to copy and/or distribute it, with or without
4417# modifications, as long as this notice is preserved.
4418
4419# serial 5 lt~obsolete.m4
4420
4421# These exist entirely to fool aclocal when bootstrapping libtool.
4422#
4423# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
4424# which have later been changed to m4_define as they aren't part of the
4425# exported API, or moved to Autoconf or Automake where they belong.
4426#
4427# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
4428# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
4429# using a macro with the same name in our local m4/libtool.m4 it'll
4430# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
4431# and doesn't know about Autoconf macros at all.)
4432#
4433# So we provide this file, which has a silly filename so it's always
4434# included after everything else.  This provides aclocal with the
4435# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
4436# because those macros already exist, or will be overwritten later.
4437# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
4438#
4439# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
4440# Yes, that means every name once taken will need to remain here until
4441# we give up compatibility with versions before 1.7, at which point
4442# we need to keep only those names which we still refer to.
4443
4444# This is to help aclocal find these macros, as it can't see m4_define.
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515  apr_ste_save_CPPFLAGS="$CPPFLAGS"
4516
4517
4518  apr_ste_save_CFLAGS="$CFLAGS"
4519
4520
4521  apr_ste_save_LDFLAGS="$LDFLAGS"
4522
4523
4524  apr_ste_save_LIBS="$LIBS"
4525
4526
4527  apr_ste_save_INCLUDES="$INCLUDES"
4528
4529
4530
4531  rm -f config.nice
4532  cat >config.nice<<EOF
4533#! /bin/sh
4534#
4535# Created by configure
4536
4537EOF
4538  if test -n "$CC"; then
4539    echo "CC=\"$CC\"; export CC" >> config.nice
4540  fi
4541  if test -n "$CFLAGS"; then
4542    echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
4543  fi
4544  if test -n "$CPPFLAGS"; then
4545    echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
4546  fi
4547  if test -n "$LDFLAGS"; then
4548    echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
4549  fi
4550  if test -n "$LTFLAGS"; then
4551    echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
4552  fi
4553  if test -n "$LIBS"; then
4554    echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
4555  fi
4556  if test -n "$INCLUDES"; then
4557    echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
4558  fi
4559  if test -n "$NOTEST_CFLAGS"; then
4560    echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
4561  fi
4562  if test -n "$NOTEST_CPPFLAGS"; then
4563    echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
4564  fi
4565  if test -n "$NOTEST_LDFLAGS"; then
4566    echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
4567  fi
4568  if test -n "$NOTEST_LIBS"; then
4569    echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
4570  fi
4571
4572  # Retrieve command-line arguments.
4573  eval "set x $0 $ac_configure_args"
4574  shift
4575
4576  for arg
4577  do
4578
4579ap_last=
4580ap_cur="$arg"
4581while test "x${ap_cur}" != "x${ap_last}";
4582do
4583  ap_last="${ap_cur}"
4584  ap_cur=`eval "echo ${ap_cur}"`
4585done
4586arg="${ap_cur}"
4587
4588    echo "\"$arg\" \\" >> config.nice
4589  done
4590  echo '"$@"' >> config.nice
4591  chmod +x config.nice
4592
4593
4594# Make sure we can run config.sub.
4595$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4596  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4597
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4599$as_echo_n "checking build system type... " >&6; }
4600if ${ac_cv_build+:} false; then :
4601  $as_echo_n "(cached) " >&6
4602else
4603  ac_build_alias=$build_alias
4604test "x$ac_build_alias" = x &&
4605  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4606test "x$ac_build_alias" = x &&
4607  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4608ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4609  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4610
4611fi
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4613$as_echo "$ac_cv_build" >&6; }
4614case $ac_cv_build in
4615*-*-*) ;;
4616*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4617esac
4618build=$ac_cv_build
4619ac_save_IFS=$IFS; IFS='-'
4620set x $ac_cv_build
4621shift
4622build_cpu=$1
4623build_vendor=$2
4624shift; shift
4625# Remember, the first character of IFS is used to create $*,
4626# except with old shells:
4627build_os=$*
4628IFS=$ac_save_IFS
4629case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4630
4631
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4633$as_echo_n "checking host system type... " >&6; }
4634if ${ac_cv_host+:} false; then :
4635  $as_echo_n "(cached) " >&6
4636else
4637  if test "x$host_alias" = x; then
4638  ac_cv_host=$ac_cv_build
4639else
4640  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4641    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4642fi
4643
4644fi
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4646$as_echo "$ac_cv_host" >&6; }
4647case $ac_cv_host in
4648*-*-*) ;;
4649*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4650esac
4651host=$ac_cv_host
4652ac_save_IFS=$IFS; IFS='-'
4653set x $ac_cv_host
4654shift
4655host_cpu=$1
4656host_vendor=$2
4657shift; shift
4658# Remember, the first character of IFS is used to create $*,
4659# except with old shells:
4660host_os=$*
4661IFS=$ac_save_IFS
4662case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4663
4664
4665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4666$as_echo_n "checking target system type... " >&6; }
4667if ${ac_cv_target+:} false; then :
4668  $as_echo_n "(cached) " >&6
4669else
4670  if test "x$target_alias" = x; then
4671  ac_cv_target=$ac_cv_host
4672else
4673  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4674    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4675fi
4676
4677fi
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4679$as_echo "$ac_cv_target" >&6; }
4680case $ac_cv_target in
4681*-*-*) ;;
4682*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4683esac
4684target=$ac_cv_target
4685ac_save_IFS=$IFS; IFS='-'
4686set x $ac_cv_target
4687shift
4688target_cpu=$1
4689target_vendor=$2
4690shift; shift
4691# Remember, the first character of IFS is used to create $*,
4692# except with old shells:
4693target_os=$*
4694IFS=$ac_save_IFS
4695case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4696
4697
4698# The aliases save the names the user supplied, while $host etc.
4699# will get canonicalized.
4700test -n "$target_alias" &&
4701  test "$program_prefix$program_suffix$program_transform_name" = \
4702    NONENONEs,x,x, &&
4703  program_prefix=${target_alias}-
4704
4705echo "Configuring APR library"
4706echo "Platform: $host"
4707
4708
4709
4710# Absolute source/build directory
4711apr_srcdir=`(cd $srcdir && pwd)`
4712apr_builddir=`pwd`
4713
4714
4715
4716if test "$apr_builddir" != "$apr_srcdir"; then
4717  USE_VPATH=1
4718  APR_CONFIG_LOCATION=build
4719else
4720  APR_CONFIG_LOCATION=source
4721fi
4722
4723
4724
4725# Libtool might need this symbol -- it must point to the location of
4726# the generated libtool script (not necessarily the "top" build dir).
4727#
4728top_builddir="$apr_builddir"
4729
4730
4731# Directory containing apr build macros, helpers, and make rules
4732# NOTE: make rules (apr_rules.mk) will be in the builddir for vpath
4733#
4734apr_buildout=$apr_builddir/build
4735apr_builders=$apr_srcdir/build
4736
4737
4738MKDIR=$apr_builders/mkdir.sh
4739
4740
4741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkdir -p" >&5
4742$as_echo_n "checking for working mkdir -p... " >&6; }
4743if ${ac_cv_mkdir_p+:} false; then :
4744  $as_echo_n "(cached) " >&6
4745else
4746
4747    test -d conftestdir && rm -rf conftestdir
4748    mkdir -p conftestdir/somedir >/dev/null 2>&1
4749    if test -d conftestdir/somedir; then
4750      ac_cv_mkdir_p=yes
4751    else
4752      ac_cv_mkdir_p=no
4753    fi
4754    rm -rf conftestdir
4755
4756fi
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p" >&5
4758$as_echo "$ac_cv_mkdir_p" >&6; }
4759  if test "$ac_cv_mkdir_p" = "yes"; then
4760      mkdir_p="mkdir -p"
4761  else
4762      mkdir_p="$apr_builders/mkdir.sh"
4763  fi
4764
4765
4766# get our version information
4767get_version="$apr_builders/get-version.sh"
4768version_hdr="$apr_srcdir/include/apr_version.h"
4769APR_MAJOR_VERSION="`$get_version major $version_hdr APR`"
4770APR_DOTTED_VERSION="`$get_version all $version_hdr APR`"
4771
4772
4773
4774
4775echo "APR Version: ${APR_DOTTED_VERSION}"
4776
4777
4778# Check whether --enable-layout was given.
4779if test "${enable_layout+set}" = set; then :
4780  enableval=$enable_layout;
4781  LAYOUT=$enableval
4782
4783fi
4784
4785
4786if test -z "$LAYOUT"; then
4787  LAYOUT="apr"
4788fi
4789
4790  if test ! -f $srcdir/config.layout; then
4791    echo "** Error: Layout file $srcdir/config.layout not found"
4792    echo "** Error: Cannot use undefined layout '$LAYOUT'"
4793    exit 1
4794  fi
4795  # Catch layout names including a slash which will otherwise
4796  # confuse the heck out of the sed script.
4797  case $LAYOUT in
4798  */*)
4799    echo "** Error: $LAYOUT is not a valid layout name"
4800    exit 1 ;;
4801  esac
4802  pldconf=./config.pld
4803
4804  sed -e "1s/[ 	]*<[lL]ayout[ 	]*$LAYOUT[ 	]*>[ 	]*//;1t" \
4805      -e "1,/[ 	]*<[lL]ayout[ 	]*$LAYOUT[ 	]*>[ 	]*/d" \
4806      -e '/[ 	]*<\/Layout>[ 	]*/,$d' \
4807      -e "s/^[ 	]*//g" \
4808      -e "s/:[ 	]*/=\'/g" \
4809      -e "s/[ 	]*$/'/g" \
4810      $srcdir/config.layout > $pldconf
4811  layout_name=$LAYOUT
4812  if test ! -s $pldconf; then
4813    echo "** Error: unable to find layout $layout_name"
4814    exit 1
4815  fi
4816  . $pldconf
4817  rm $pldconf
4818  for var in prefix exec_prefix bindir sbindir libexecdir mandir \
4819             sysconfdir datadir includedir localstatedir runtimedir \
4820             logfiledir libdir installbuilddir libsuffix ; do
4821    eval "val=\"\$$var\""
4822    case $val in
4823      *+)
4824        val=`echo $val | sed -e 's;\+$;;'`
4825        eval "$var=\"\$val\""
4826        autosuffix=yes
4827        ;;
4828      *)
4829        autosuffix=no
4830        ;;
4831    esac
4832    val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
4833    val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
4834    if test "$autosuffix" = "yes"; then
4835      if echo $val | grep apache >/dev/null; then
4836        addtarget=no
4837      else
4838        addtarget=yes
4839      fi
4840      if test "$addtarget" = "yes"; then
4841        val="$val/apache2"
4842      fi
4843    fi
4844    eval "$var='$val'"
4845  done
4846
4847
4848
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5
4850$as_echo_n "checking for chosen layout... " >&6; }
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $layout_name" >&5
4852$as_echo "$layout_name" >&6; }
4853
4854
4855ac_prev=
4856# Retrieve the command-line arguments.  The eval is needed because
4857# the arguments are quoted to preserve accuracy.
4858eval "set x $ac_configure_args"
4859shift
4860for ac_option
4861do
4862  # If the previous option needs an argument, assign it.
4863  if test -n "$ac_prev"; then
4864    eval "$ac_prev=\$ac_option"
4865    ac_prev=
4866    continue
4867  fi
4868
4869  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
4870
4871  case $ac_option in
4872
4873  -bindir | --bindir | --bindi | --bind | --bin | --bi)
4874    ac_prev=bindir ;;
4875  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
4876    bindir="$ac_optarg" ;;
4877
4878  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
4879    ac_prev=datadir ;;
4880  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
4881  | --da=*)
4882    datadir="$ac_optarg" ;;
4883
4884  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
4885  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
4886  | --exec | --exe | --ex)
4887    ac_prev=exec_prefix ;;
4888  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
4889  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
4890  | --exec=* | --exe=* | --ex=*)
4891    exec_prefix="$ac_optarg" ;;
4892
4893  -includedir | --includedir | --includedi | --included | --include \
4894  | --includ | --inclu | --incl | --inc)
4895    ac_prev=includedir ;;
4896  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
4897  | --includ=* | --inclu=* | --incl=* | --inc=*)
4898    includedir="$ac_optarg" ;;
4899
4900  -infodir | --infodir | --infodi | --infod | --info | --inf)
4901    ac_prev=infodir ;;
4902  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
4903    infodir="$ac_optarg" ;;
4904
4905  -libdir | --libdir | --libdi | --libd)
4906    ac_prev=libdir ;;
4907  -libdir=* | --libdir=* | --libdi=* | --libd=*)
4908    libdir="$ac_optarg" ;;
4909
4910  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
4911  | --libexe | --libex | --libe)
4912    ac_prev=libexecdir ;;
4913  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
4914  | --libexe=* | --libex=* | --libe=*)
4915    libexecdir="$ac_optarg" ;;
4916
4917  -localstatedir | --localstatedir | --localstatedi | --localstated \
4918  | --localstate | --localstat | --localsta | --localst \
4919  | --locals | --local | --loca | --loc | --lo)
4920    ac_prev=localstatedir ;;
4921  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
4922  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
4923  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
4924    localstatedir="$ac_optarg" ;;
4925
4926  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
4927    ac_prev=mandir ;;
4928  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
4929    mandir="$ac_optarg" ;;
4930
4931  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4932    ac_prev=prefix ;;
4933  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4934    prefix="$ac_optarg" ;;
4935
4936  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
4937    ac_prev=sbindir ;;
4938  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
4939  | --sbi=* | --sb=*)
4940    sbindir="$ac_optarg" ;;
4941
4942  -sharedstatedir | --sharedstatedir | --sharedstatedi \
4943  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
4944  | --sharedst | --shareds | --shared | --share | --shar \
4945  | --sha | --sh)
4946    ac_prev=sharedstatedir ;;
4947  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
4948  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
4949  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
4950  | --sha=* | --sh=*)
4951    sharedstatedir="$ac_optarg" ;;
4952
4953  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
4954  | --syscon | --sysco | --sysc | --sys | --sy)
4955    ac_prev=sysconfdir ;;
4956  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
4957  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
4958    sysconfdir="$ac_optarg" ;;
4959
4960  esac
4961done
4962
4963# Be sure to have absolute paths.
4964for ac_var in exec_prefix prefix
4965do
4966  eval ac_val=$`echo $ac_var`
4967  case $ac_val in
4968    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
4969    *)  as_fn_error $? "expected an absolute path for --$ac_var: $ac_val" "$LINENO" 5;;
4970  esac
4971done
4972
4973
4974
4975
4976case "$host" in
4977  *-apple-aux3*)
4978
4979  if test -z "$CC"; then
4980    test "x$silent" != "xyes" && echo "  setting CC to \"gcc\""
4981    CC="gcc"
4982  fi
4983
4984      ;;
4985  bs2000*-siemens-sysv*)
4986
4987  if test -z "$CC"; then
4988    test "x$silent" != "xyes" && echo "  setting CC to \"c89 -XLLML -XLLMK -XL -Kno_integer_overflow\""
4989    CC="c89 -XLLML -XLLMK -XL -Kno_integer_overflow"
4990  fi
4991
4992      ;;
4993  *convex-v11*)
4994
4995  if test -z "$CC"; then
4996    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
4997    CC="cc"
4998  fi
4999
5000      ;;
5001  *-ibm-os390)
5002
5003  if test -z "$CC"; then
5004    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
5005    CC="cc"
5006  fi
5007
5008      ;;
5009  *-ibm-as400)
5010
5011  if test -z "$CC"; then
5012    test "x$silent" != "xyes" && echo "  setting CC to \"icc\""
5013    CC="icc"
5014  fi
5015
5016      ;;
5017  *-isc4*)
5018
5019  if test -z "$CC"; then
5020    test "x$silent" != "xyes" && echo "  setting CC to \"gcc\""
5021    CC="gcc"
5022  fi
5023
5024      ;;
5025  m88k-*-CX/SX|CYBER)
5026
5027  if test -z "$CC"; then
5028    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
5029    CC="cc"
5030  fi
5031
5032      ;;
5033  *-next-openstep*)
5034
5035  if test -z "$CC"; then
5036    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
5037    CC="cc"
5038  fi
5039
5040      ;;
5041  *-qnx32)
5042
5043  if test -z "$CC"; then
5044    test "x$silent" != "xyes" && echo "  setting CC to \"cc -F\""
5045    CC="cc -F"
5046  fi
5047
5048      ;;
5049  *-tandem-oss)
5050
5051  if test -z "$CC"; then
5052    test "x$silent" != "xyes" && echo "  setting CC to \"c89\""
5053    CC="c89"
5054  fi
5055
5056      ;;
5057  TPF)
5058
5059  if test -z "$CC"; then
5060    test "x$silent" != "xyes" && echo "  setting CC to \"c89\""
5061    CC="c89"
5062  fi
5063
5064      ;;
5065esac
5066
5067
5068ac_ext=c
5069ac_cpp='$CPP $CPPFLAGS'
5070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5072ac_compiler_gnu=$ac_cv_c_compiler_gnu
5073if test -n "$ac_tool_prefix"; then
5074  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5075set dummy ${ac_tool_prefix}gcc; ac_word=$2
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077$as_echo_n "checking for $ac_word... " >&6; }
5078if ${ac_cv_prog_CC+:} false; then :
5079  $as_echo_n "(cached) " >&6
5080else
5081  if test -n "$CC"; then
5082  ac_cv_prog_CC="$CC" # Let the user override the test.
5083else
5084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085for as_dir in $PATH
5086do
5087  IFS=$as_save_IFS
5088  test -z "$as_dir" && as_dir=.
5089    for ac_exec_ext in '' $ac_executable_extensions; do
5090  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5092    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093    break 2
5094  fi
5095done
5096  done
5097IFS=$as_save_IFS
5098
5099fi
5100fi
5101CC=$ac_cv_prog_CC
5102if test -n "$CC"; then
5103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5104$as_echo "$CC" >&6; }
5105else
5106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107$as_echo "no" >&6; }
5108fi
5109
5110
5111fi
5112if test -z "$ac_cv_prog_CC"; then
5113  ac_ct_CC=$CC
5114  # Extract the first word of "gcc", so it can be a program name with args.
5115set dummy gcc; ac_word=$2
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117$as_echo_n "checking for $ac_word... " >&6; }
5118if ${ac_cv_prog_ac_ct_CC+:} false; then :
5119  $as_echo_n "(cached) " >&6
5120else
5121  if test -n "$ac_ct_CC"; then
5122  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5123else
5124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125for as_dir in $PATH
5126do
5127  IFS=$as_save_IFS
5128  test -z "$as_dir" && as_dir=.
5129    for ac_exec_ext in '' $ac_executable_extensions; do
5130  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5131    ac_cv_prog_ac_ct_CC="gcc"
5132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133    break 2
5134  fi
5135done
5136  done
5137IFS=$as_save_IFS
5138
5139fi
5140fi
5141ac_ct_CC=$ac_cv_prog_ac_ct_CC
5142if test -n "$ac_ct_CC"; then
5143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5144$as_echo "$ac_ct_CC" >&6; }
5145else
5146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147$as_echo "no" >&6; }
5148fi
5149
5150  if test "x$ac_ct_CC" = x; then
5151    CC=""
5152  else
5153    case $cross_compiling:$ac_tool_warned in
5154yes:)
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5157ac_tool_warned=yes ;;
5158esac
5159    CC=$ac_ct_CC
5160  fi
5161else
5162  CC="$ac_cv_prog_CC"
5163fi
5164
5165if test -z "$CC"; then
5166          if test -n "$ac_tool_prefix"; then
5167    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5168set dummy ${ac_tool_prefix}cc; ac_word=$2
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170$as_echo_n "checking for $ac_word... " >&6; }
5171if ${ac_cv_prog_CC+:} false; then :
5172  $as_echo_n "(cached) " >&6
5173else
5174  if test -n "$CC"; then
5175  ac_cv_prog_CC="$CC" # Let the user override the test.
5176else
5177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178for as_dir in $PATH
5179do
5180  IFS=$as_save_IFS
5181  test -z "$as_dir" && as_dir=.
5182    for ac_exec_ext in '' $ac_executable_extensions; do
5183  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184    ac_cv_prog_CC="${ac_tool_prefix}cc"
5185    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186    break 2
5187  fi
5188done
5189  done
5190IFS=$as_save_IFS
5191
5192fi
5193fi
5194CC=$ac_cv_prog_CC
5195if test -n "$CC"; then
5196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5197$as_echo "$CC" >&6; }
5198else
5199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200$as_echo "no" >&6; }
5201fi
5202
5203
5204  fi
5205fi
5206if test -z "$CC"; then
5207  # Extract the first word of "cc", so it can be a program name with args.
5208set dummy cc; ac_word=$2
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210$as_echo_n "checking for $ac_word... " >&6; }
5211if ${ac_cv_prog_CC+:} false; then :
5212  $as_echo_n "(cached) " >&6
5213else
5214  if test -n "$CC"; then
5215  ac_cv_prog_CC="$CC" # Let the user override the test.
5216else
5217  ac_prog_rejected=no
5218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH
5220do
5221  IFS=$as_save_IFS
5222  test -z "$as_dir" && as_dir=.
5223    for ac_exec_ext in '' $ac_executable_extensions; do
5224  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5226       ac_prog_rejected=yes
5227       continue
5228     fi
5229    ac_cv_prog_CC="cc"
5230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231    break 2
5232  fi
5233done
5234  done
5235IFS=$as_save_IFS
5236
5237if test $ac_prog_rejected = yes; then
5238  # We found a bogon in the path, so make sure we never use it.
5239  set dummy $ac_cv_prog_CC
5240  shift
5241  if test $# != 0; then
5242    # We chose a different compiler from the bogus one.
5243    # However, it has the same basename, so the bogon will be chosen
5244    # first if we set CC to just the basename; use the full file name.
5245    shift
5246    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5247  fi
5248fi
5249fi
5250fi
5251CC=$ac_cv_prog_CC
5252if test -n "$CC"; then
5253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5254$as_echo "$CC" >&6; }
5255else
5256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257$as_echo "no" >&6; }
5258fi
5259
5260
5261fi
5262if test -z "$CC"; then
5263  if test -n "$ac_tool_prefix"; then
5264  for ac_prog in cl.exe
5265  do
5266    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5267set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269$as_echo_n "checking for $ac_word... " >&6; }
5270if ${ac_cv_prog_CC+:} false; then :
5271  $as_echo_n "(cached) " >&6
5272else
5273  if test -n "$CC"; then
5274  ac_cv_prog_CC="$CC" # Let the user override the test.
5275else
5276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277for as_dir in $PATH
5278do
5279  IFS=$as_save_IFS
5280  test -z "$as_dir" && as_dir=.
5281    for ac_exec_ext in '' $ac_executable_extensions; do
5282  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285    break 2
5286  fi
5287done
5288  done
5289IFS=$as_save_IFS
5290
5291fi
5292fi
5293CC=$ac_cv_prog_CC
5294if test -n "$CC"; then
5295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5296$as_echo "$CC" >&6; }
5297else
5298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299$as_echo "no" >&6; }
5300fi
5301
5302
5303    test -n "$CC" && break
5304  done
5305fi
5306if test -z "$CC"; then
5307  ac_ct_CC=$CC
5308  for ac_prog in cl.exe
5309do
5310  # Extract the first word of "$ac_prog", so it can be a program name with args.
5311set dummy $ac_prog; ac_word=$2
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313$as_echo_n "checking for $ac_word... " >&6; }
5314if ${ac_cv_prog_ac_ct_CC+:} false; then :
5315  $as_echo_n "(cached) " >&6
5316else
5317  if test -n "$ac_ct_CC"; then
5318  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5319else
5320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321for as_dir in $PATH
5322do
5323  IFS=$as_save_IFS
5324  test -z "$as_dir" && as_dir=.
5325    for ac_exec_ext in '' $ac_executable_extensions; do
5326  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327    ac_cv_prog_ac_ct_CC="$ac_prog"
5328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329    break 2
5330  fi
5331done
5332  done
5333IFS=$as_save_IFS
5334
5335fi
5336fi
5337ac_ct_CC=$ac_cv_prog_ac_ct_CC
5338if test -n "$ac_ct_CC"; then
5339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5340$as_echo "$ac_ct_CC" >&6; }
5341else
5342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343$as_echo "no" >&6; }
5344fi
5345
5346
5347  test -n "$ac_ct_CC" && break
5348done
5349
5350  if test "x$ac_ct_CC" = x; then
5351    CC=""
5352  else
5353    case $cross_compiling:$ac_tool_warned in
5354yes:)
5355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5357ac_tool_warned=yes ;;
5358esac
5359    CC=$ac_ct_CC
5360  fi
5361fi
5362
5363fi
5364
5365
5366test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5368as_fn_error $? "no acceptable C compiler found in \$PATH
5369See \`config.log' for more details" "$LINENO" 5; }
5370
5371# Provide some information about the compiler.
5372$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5373set X $ac_compile
5374ac_compiler=$2
5375for ac_option in --version -v -V -qversion; do
5376  { { ac_try="$ac_compiler $ac_option >&5"
5377case "(($ac_try" in
5378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379  *) ac_try_echo=$ac_try;;
5380esac
5381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5382$as_echo "$ac_try_echo"; } >&5
5383  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5384  ac_status=$?
5385  if test -s conftest.err; then
5386    sed '10a\
5387... rest of stderr output deleted ...
5388         10q' conftest.err >conftest.er1
5389    cat conftest.er1 >&5
5390  fi
5391  rm -f conftest.er1 conftest.err
5392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5393  test $ac_status = 0; }
5394done
5395
5396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397/* end confdefs.h.  */
5398
5399int
5400main ()
5401{
5402
5403  ;
5404  return 0;
5405}
5406_ACEOF
5407ac_clean_files_save=$ac_clean_files
5408ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5409# Try to create an executable without -o first, disregard a.out.
5410# It will help us diagnose broken compilers, and finding out an intuition
5411# of exeext.
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5413$as_echo_n "checking whether the C compiler works... " >&6; }
5414ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5415
5416# The possible output files:
5417ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5418
5419ac_rmfiles=
5420for ac_file in $ac_files
5421do
5422  case $ac_file in
5423    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5424    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5425  esac
5426done
5427rm -f $ac_rmfiles
5428
5429if { { ac_try="$ac_link_default"
5430case "(($ac_try" in
5431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432  *) ac_try_echo=$ac_try;;
5433esac
5434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5435$as_echo "$ac_try_echo"; } >&5
5436  (eval "$ac_link_default") 2>&5
5437  ac_status=$?
5438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5439  test $ac_status = 0; }; then :
5440  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5441# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5442# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5443# so that the user can short-circuit this test for compilers unknown to
5444# Autoconf.
5445for ac_file in $ac_files ''
5446do
5447  test -f "$ac_file" || continue
5448  case $ac_file in
5449    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5450	;;
5451    [ab].out )
5452	# We found the default executable, but exeext='' is most
5453	# certainly right.
5454	break;;
5455    *.* )
5456	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5457	then :; else
5458	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5459	fi
5460	# We set ac_cv_exeext here because the later test for it is not
5461	# safe: cross compilers may not add the suffix if given an `-o'
5462	# argument, so we may need to know it at that point already.
5463	# Even if this section looks crufty: it has the advantage of
5464	# actually working.
5465	break;;
5466    * )
5467	break;;
5468  esac
5469done
5470test "$ac_cv_exeext" = no && ac_cv_exeext=
5471
5472else
5473  ac_file=''
5474fi
5475if test -z "$ac_file"; then :
5476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477$as_echo "no" >&6; }
5478$as_echo "$as_me: failed program was:" >&5
5479sed 's/^/| /' conftest.$ac_ext >&5
5480
5481{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5483as_fn_error 77 "C compiler cannot create executables
5484See \`config.log' for more details" "$LINENO" 5; }
5485else
5486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5487$as_echo "yes" >&6; }
5488fi
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5490$as_echo_n "checking for C compiler default output file name... " >&6; }
5491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5492$as_echo "$ac_file" >&6; }
5493ac_exeext=$ac_cv_exeext
5494
5495rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5496ac_clean_files=$ac_clean_files_save
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5498$as_echo_n "checking for suffix of executables... " >&6; }
5499if { { ac_try="$ac_link"
5500case "(($ac_try" in
5501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502  *) ac_try_echo=$ac_try;;
5503esac
5504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5505$as_echo "$ac_try_echo"; } >&5
5506  (eval "$ac_link") 2>&5
5507  ac_status=$?
5508  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5509  test $ac_status = 0; }; then :
5510  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5511# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5512# work properly (i.e., refer to `conftest.exe'), while it won't with
5513# `rm'.
5514for ac_file in conftest.exe conftest conftest.*; do
5515  test -f "$ac_file" || continue
5516  case $ac_file in
5517    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5518    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5519	  break;;
5520    * ) break;;
5521  esac
5522done
5523else
5524  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5526as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5527See \`config.log' for more details" "$LINENO" 5; }
5528fi
5529rm -f conftest conftest$ac_cv_exeext
5530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5531$as_echo "$ac_cv_exeext" >&6; }
5532
5533rm -f conftest.$ac_ext
5534EXEEXT=$ac_cv_exeext
5535ac_exeext=$EXEEXT
5536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537/* end confdefs.h.  */
5538#include <stdio.h>
5539int
5540main ()
5541{
5542FILE *f = fopen ("conftest.out", "w");
5543 return ferror (f) || fclose (f) != 0;
5544
5545  ;
5546  return 0;
5547}
5548_ACEOF
5549ac_clean_files="$ac_clean_files conftest.out"
5550# Check that the compiler produces executables we can run.  If not, either
5551# the compiler is broken, or we cross compile.
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5553$as_echo_n "checking whether we are cross compiling... " >&6; }
5554if test "$cross_compiling" != yes; then
5555  { { ac_try="$ac_link"
5556case "(($ac_try" in
5557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558  *) ac_try_echo=$ac_try;;
5559esac
5560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5561$as_echo "$ac_try_echo"; } >&5
5562  (eval "$ac_link") 2>&5
5563  ac_status=$?
5564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5565  test $ac_status = 0; }
5566  if { ac_try='./conftest$ac_cv_exeext'
5567  { { case "(($ac_try" in
5568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569  *) ac_try_echo=$ac_try;;
5570esac
5571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5572$as_echo "$ac_try_echo"; } >&5
5573  (eval "$ac_try") 2>&5
5574  ac_status=$?
5575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5576  test $ac_status = 0; }; }; then
5577    cross_compiling=no
5578  else
5579    if test "$cross_compiling" = maybe; then
5580	cross_compiling=yes
5581    else
5582	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5584as_fn_error $? "cannot run C compiled programs.
5585If you meant to cross compile, use \`--host'.
5586See \`config.log' for more details" "$LINENO" 5; }
5587    fi
5588  fi
5589fi
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5591$as_echo "$cross_compiling" >&6; }
5592
5593rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5594ac_clean_files=$ac_clean_files_save
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5596$as_echo_n "checking for suffix of object files... " >&6; }
5597if ${ac_cv_objext+:} false; then :
5598  $as_echo_n "(cached) " >&6
5599else
5600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601/* end confdefs.h.  */
5602
5603int
5604main ()
5605{
5606
5607  ;
5608  return 0;
5609}
5610_ACEOF
5611rm -f conftest.o conftest.obj
5612if { { ac_try="$ac_compile"
5613case "(($ac_try" in
5614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615  *) ac_try_echo=$ac_try;;
5616esac
5617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5618$as_echo "$ac_try_echo"; } >&5
5619  (eval "$ac_compile") 2>&5
5620  ac_status=$?
5621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5622  test $ac_status = 0; }; then :
5623  for ac_file in conftest.o conftest.obj conftest.*; do
5624  test -f "$ac_file" || continue;
5625  case $ac_file in
5626    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5627    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5628       break;;
5629  esac
5630done
5631else
5632  $as_echo "$as_me: failed program was:" >&5
5633sed 's/^/| /' conftest.$ac_ext >&5
5634
5635{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5637as_fn_error $? "cannot compute suffix of object files: cannot compile
5638See \`config.log' for more details" "$LINENO" 5; }
5639fi
5640rm -f conftest.$ac_cv_objext conftest.$ac_ext
5641fi
5642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5643$as_echo "$ac_cv_objext" >&6; }
5644OBJEXT=$ac_cv_objext
5645ac_objext=$OBJEXT
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5647$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5648if ${ac_cv_c_compiler_gnu+:} false; then :
5649  $as_echo_n "(cached) " >&6
5650else
5651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652/* end confdefs.h.  */
5653
5654int
5655main ()
5656{
5657#ifndef __GNUC__
5658       choke me
5659#endif
5660
5661  ;
5662  return 0;
5663}
5664_ACEOF
5665if ac_fn_c_try_compile "$LINENO"; then :
5666  ac_compiler_gnu=yes
5667else
5668  ac_compiler_gnu=no
5669fi
5670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5671ac_cv_c_compiler_gnu=$ac_compiler_gnu
5672
5673fi
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5675$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5676if test $ac_compiler_gnu = yes; then
5677  GCC=yes
5678else
5679  GCC=
5680fi
5681ac_test_CFLAGS=${CFLAGS+set}
5682ac_save_CFLAGS=$CFLAGS
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5684$as_echo_n "checking whether $CC accepts -g... " >&6; }
5685if ${ac_cv_prog_cc_g+:} false; then :
5686  $as_echo_n "(cached) " >&6
5687else
5688  ac_save_c_werror_flag=$ac_c_werror_flag
5689   ac_c_werror_flag=yes
5690   ac_cv_prog_cc_g=no
5691   CFLAGS="-g"
5692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693/* end confdefs.h.  */
5694
5695int
5696main ()
5697{
5698
5699  ;
5700  return 0;
5701}
5702_ACEOF
5703if ac_fn_c_try_compile "$LINENO"; then :
5704  ac_cv_prog_cc_g=yes
5705else
5706  CFLAGS=""
5707      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708/* end confdefs.h.  */
5709
5710int
5711main ()
5712{
5713
5714  ;
5715  return 0;
5716}
5717_ACEOF
5718if ac_fn_c_try_compile "$LINENO"; then :
5719
5720else
5721  ac_c_werror_flag=$ac_save_c_werror_flag
5722	 CFLAGS="-g"
5723	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724/* end confdefs.h.  */
5725
5726int
5727main ()
5728{
5729
5730  ;
5731  return 0;
5732}
5733_ACEOF
5734if ac_fn_c_try_compile "$LINENO"; then :
5735  ac_cv_prog_cc_g=yes
5736fi
5737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5738fi
5739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5740fi
5741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742   ac_c_werror_flag=$ac_save_c_werror_flag
5743fi
5744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5745$as_echo "$ac_cv_prog_cc_g" >&6; }
5746if test "$ac_test_CFLAGS" = set; then
5747  CFLAGS=$ac_save_CFLAGS
5748elif test $ac_cv_prog_cc_g = yes; then
5749  if test "$GCC" = yes; then
5750    CFLAGS="-g -O2"
5751  else
5752    CFLAGS="-g"
5753  fi
5754else
5755  if test "$GCC" = yes; then
5756    CFLAGS="-O2"
5757  else
5758    CFLAGS=
5759  fi
5760fi
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5762$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5763if ${ac_cv_prog_cc_c89+:} false; then :
5764  $as_echo_n "(cached) " >&6
5765else
5766  ac_cv_prog_cc_c89=no
5767ac_save_CC=$CC
5768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769/* end confdefs.h.  */
5770#include <stdarg.h>
5771#include <stdio.h>
5772struct stat;
5773/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5774struct buf { int x; };
5775FILE * (*rcsopen) (struct buf *, struct stat *, int);
5776static char *e (p, i)
5777     char **p;
5778     int i;
5779{
5780  return p[i];
5781}
5782static char *f (char * (*g) (char **, int), char **p, ...)
5783{
5784  char *s;
5785  va_list v;
5786  va_start (v,p);
5787  s = g (p, va_arg (v,int));
5788  va_end (v);
5789  return s;
5790}
5791
5792/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5793   function prototypes and stuff, but not '\xHH' hex character constants.
5794   These don't provoke an error unfortunately, instead are silently treated
5795   as 'x'.  The following induces an error, until -std is added to get
5796   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5797   array size at least.  It's necessary to write '\x00'==0 to get something
5798   that's true only with -std.  */
5799int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5800
5801/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5802   inside strings and character constants.  */
5803#define FOO(x) 'x'
5804int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5805
5806int test (int i, double x);
5807struct s1 {int (*f) (int a);};
5808struct s2 {int (*f) (double a);};
5809int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5810int argc;
5811char **argv;
5812int
5813main ()
5814{
5815return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5816  ;
5817  return 0;
5818}
5819_ACEOF
5820for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5821	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5822do
5823  CC="$ac_save_CC $ac_arg"
5824  if ac_fn_c_try_compile "$LINENO"; then :
5825  ac_cv_prog_cc_c89=$ac_arg
5826fi
5827rm -f core conftest.err conftest.$ac_objext
5828  test "x$ac_cv_prog_cc_c89" != "xno" && break
5829done
5830rm -f conftest.$ac_ext
5831CC=$ac_save_CC
5832
5833fi
5834# AC_CACHE_VAL
5835case "x$ac_cv_prog_cc_c89" in
5836  x)
5837    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5838$as_echo "none needed" >&6; } ;;
5839  xno)
5840    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5841$as_echo "unsupported" >&6; } ;;
5842  *)
5843    CC="$CC $ac_cv_prog_cc_c89"
5844    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5845$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5846esac
5847if test "x$ac_cv_prog_cc_c89" != xno; then :
5848
5849fi
5850
5851ac_ext=c
5852ac_cpp='$CPP $CPPFLAGS'
5853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5855ac_compiler_gnu=$ac_cv_c_compiler_gnu
5856
5857
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5859$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5860if ${ac_cv_path_SED+:} false; then :
5861  $as_echo_n "(cached) " >&6
5862else
5863            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5864     for ac_i in 1 2 3 4 5 6 7; do
5865       ac_script="$ac_script$as_nl$ac_script"
5866     done
5867     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5868     { ac_script=; unset ac_script;}
5869     if test -z "$SED"; then
5870  ac_path_SED_found=false
5871  # Loop through the user's path and test for each of PROGNAME-LIST
5872  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873for as_dir in $PATH
5874do
5875  IFS=$as_save_IFS
5876  test -z "$as_dir" && as_dir=.
5877    for ac_prog in sed gsed; do
5878    for ac_exec_ext in '' $ac_executable_extensions; do
5879      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5880      as_fn_executable_p "$ac_path_SED" || continue
5881# Check for GNU ac_path_SED and select it if it is found.
5882  # Check for GNU $ac_path_SED
5883case `"$ac_path_SED" --version 2>&1` in
5884*GNU*)
5885  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5886*)
5887  ac_count=0
5888  $as_echo_n 0123456789 >"conftest.in"
5889  while :
5890  do
5891    cat "conftest.in" "conftest.in" >"conftest.tmp"
5892    mv "conftest.tmp" "conftest.in"
5893    cp "conftest.in" "conftest.nl"
5894    $as_echo '' >> "conftest.nl"
5895    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5896    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5897    as_fn_arith $ac_count + 1 && ac_count=$as_val
5898    if test $ac_count -gt ${ac_path_SED_max-0}; then
5899      # Best one so far, save it but keep looking for a better one
5900      ac_cv_path_SED="$ac_path_SED"
5901      ac_path_SED_max=$ac_count
5902    fi
5903    # 10*(2^10) chars as input seems more than enough
5904    test $ac_count -gt 10 && break
5905  done
5906  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5907esac
5908
5909      $ac_path_SED_found && break 3
5910    done
5911  done
5912  done
5913IFS=$as_save_IFS
5914  if test -z "$ac_cv_path_SED"; then
5915    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5916  fi
5917else
5918  ac_cv_path_SED=$SED
5919fi
5920
5921fi
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5923$as_echo "$ac_cv_path_SED" >&6; }
5924 SED="$ac_cv_path_SED"
5925  rm -f conftest.sed
5926
5927
5928
5929if test "x$apr_preload_done" != "xyes" ; then
5930
5931  apr_preload_done="yes"
5932
5933  echo "Applying APR hints file rules for $host"
5934
5935  case "$host" in
5936    *mint)
5937
5938  if test "x$CPPFLAGS" = "x"; then
5939    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DMINT -D_GNU_SOURCE\""
5940    CPPFLAGS="-DMINT -D_GNU_SOURCE"
5941  else
5942    apr_addto_bugger="-DMINT -D_GNU_SOURCE"
5943    for i in $apr_addto_bugger; do
5944      apr_addto_duplicate="0"
5945      for j in $CPPFLAGS; do
5946        if test "x$i" = "x$j"; then
5947          apr_addto_duplicate="1"
5948          break
5949        fi
5950      done
5951      if test $apr_addto_duplicate = "0"; then
5952        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5953        CPPFLAGS="$CPPFLAGS $i"
5954      fi
5955    done
5956  fi
5957
5958	;;
5959    *MPE/iX*)
5960
5961  if test "x$CPPFLAGS" = "x"; then
5962    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE\""
5963    CPPFLAGS="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
5964  else
5965    apr_addto_bugger="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
5966    for i in $apr_addto_bugger; do
5967      apr_addto_duplicate="0"
5968      for j in $CPPFLAGS; do
5969        if test "x$i" = "x$j"; then
5970          apr_addto_duplicate="1"
5971          break
5972        fi
5973      done
5974      if test $apr_addto_duplicate = "0"; then
5975        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5976        CPPFLAGS="$CPPFLAGS $i"
5977      fi
5978    done
5979  fi
5980
5981
5982  if test "x$LIBS" = "x"; then
5983    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lsvipc -lcurses\""
5984    LIBS="-lsvipc -lcurses"
5985  else
5986    apr_addto_bugger="-lsvipc -lcurses"
5987    for i in $apr_addto_bugger; do
5988      apr_addto_duplicate="0"
5989      for j in $LIBS; do
5990        if test "x$i" = "x$j"; then
5991          apr_addto_duplicate="1"
5992          break
5993        fi
5994      done
5995      if test $apr_addto_duplicate = "0"; then
5996        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
5997        LIBS="$LIBS $i"
5998      fi
5999    done
6000  fi
6001
6002
6003  if test "x$LDFLAGS" = "x"; then
6004    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\"\""
6005    LDFLAGS="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
6006  else
6007    apr_addto_bugger="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
6008    for i in $apr_addto_bugger; do
6009      apr_addto_duplicate="0"
6010      for j in $LDFLAGS; do
6011        if test "x$i" = "x$j"; then
6012          apr_addto_duplicate="1"
6013          break
6014        fi
6015      done
6016      if test $apr_addto_duplicate = "0"; then
6017        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
6018        LDFLAGS="$LDFLAGS $i"
6019      fi
6020    done
6021  fi
6022
6023	;;
6024    *-apple-aux3*)
6025
6026  if test "x$CPPFLAGS" = "x"; then
6027    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAUX3 -D_POSIX_SOURCE\""
6028    CPPFLAGS="-DAUX3 -D_POSIX_SOURCE"
6029  else
6030    apr_addto_bugger="-DAUX3 -D_POSIX_SOURCE"
6031    for i in $apr_addto_bugger; do
6032      apr_addto_duplicate="0"
6033      for j in $CPPFLAGS; do
6034        if test "x$i" = "x$j"; then
6035          apr_addto_duplicate="1"
6036          break
6037        fi
6038      done
6039      if test $apr_addto_duplicate = "0"; then
6040        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6041        CPPFLAGS="$CPPFLAGS $i"
6042      fi
6043    done
6044  fi
6045
6046
6047  if test "x$LIBS" = "x"; then
6048    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lposix -lbsd\""
6049    LIBS="-lposix -lbsd"
6050  else
6051    apr_addto_bugger="-lposix -lbsd"
6052    for i in $apr_addto_bugger; do
6053      apr_addto_duplicate="0"
6054      for j in $LIBS; do
6055        if test "x$i" = "x$j"; then
6056          apr_addto_duplicate="1"
6057          break
6058        fi
6059      done
6060      if test $apr_addto_duplicate = "0"; then
6061        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6062        LIBS="$LIBS $i"
6063      fi
6064    done
6065  fi
6066
6067
6068  if test "x$LDFLAGS" = "x"; then
6069    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-s\""
6070    LDFLAGS="-s"
6071  else
6072    apr_addto_bugger="-s"
6073    for i in $apr_addto_bugger; do
6074      apr_addto_duplicate="0"
6075      for j in $LDFLAGS; do
6076        if test "x$i" = "x$j"; then
6077          apr_addto_duplicate="1"
6078          break
6079        fi
6080      done
6081      if test $apr_addto_duplicate = "0"; then
6082        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
6083        LDFLAGS="$LDFLAGS $i"
6084      fi
6085    done
6086  fi
6087
6088
6089  test "x$silent" != "xyes" && echo "  forcing SHELL to \"/bin/ksh\""
6090  SHELL="/bin/ksh"
6091
6092	;;
6093    *-ibm-aix*)
6094
6095  if test "x$CPPFLAGS" = "x"; then
6096    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-U__STR__ -D_THREAD_SAFE\""
6097    CPPFLAGS="-U__STR__ -D_THREAD_SAFE"
6098  else
6099    apr_addto_bugger="-U__STR__ -D_THREAD_SAFE"
6100    for i in $apr_addto_bugger; do
6101      apr_addto_duplicate="0"
6102      for j in $CPPFLAGS; do
6103        if test "x$i" = "x$j"; then
6104          apr_addto_duplicate="1"
6105          break
6106        fi
6107      done
6108      if test $apr_addto_duplicate = "0"; then
6109        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6110        CPPFLAGS="$CPPFLAGS $i"
6111      fi
6112    done
6113  fi
6114
6115                case $host in
6116            *-ibm-aix4.3)
6117
6118  if test "x$CPPFLAGS" = "x"; then
6119    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_USE_IRS\""
6120    CPPFLAGS="-D_USE_IRS"
6121  else
6122    apr_addto_bugger="-D_USE_IRS"
6123    for i in $apr_addto_bugger; do
6124      apr_addto_duplicate="0"
6125      for j in $CPPFLAGS; do
6126        if test "x$i" = "x$j"; then
6127          apr_addto_duplicate="1"
6128          break
6129        fi
6130      done
6131      if test $apr_addto_duplicate = "0"; then
6132        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6133        CPPFLAGS="$CPPFLAGS $i"
6134      fi
6135    done
6136  fi
6137
6138	        ;;
6139            *-ibm-aix5*)
6140
6141  if test "x$CPPFLAGS" = "x"; then
6142    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_USE_IRS\""
6143    CPPFLAGS="-D_USE_IRS"
6144  else
6145    apr_addto_bugger="-D_USE_IRS"
6146    for i in $apr_addto_bugger; do
6147      apr_addto_duplicate="0"
6148      for j in $CPPFLAGS; do
6149        if test "x$i" = "x$j"; then
6150          apr_addto_duplicate="1"
6151          break
6152        fi
6153      done
6154      if test $apr_addto_duplicate = "0"; then
6155        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6156        CPPFLAGS="$CPPFLAGS $i"
6157      fi
6158    done
6159  fi
6160
6161	        ;;
6162            *-ibm-aix4.3.*)
6163
6164  if test "x$CPPFLAGS" = "x"; then
6165    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_USE_IRS\""
6166    CPPFLAGS="-D_USE_IRS"
6167  else
6168    apr_addto_bugger="-D_USE_IRS"
6169    for i in $apr_addto_bugger; do
6170      apr_addto_duplicate="0"
6171      for j in $CPPFLAGS; do
6172        if test "x$i" = "x$j"; then
6173          apr_addto_duplicate="1"
6174          break
6175        fi
6176      done
6177      if test $apr_addto_duplicate = "0"; then
6178        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6179        CPPFLAGS="$CPPFLAGS $i"
6180      fi
6181    done
6182  fi
6183
6184                ;;
6185        esac
6186                if $CC 2>&1 | grep 'xlc' > /dev/null; then
6187
6188  if test -z "$AIX_XLC"; then
6189    test "x$silent" != "xyes" && echo "  setting AIX_XLC to \"yes\""
6190    AIX_XLC="yes"
6191  fi
6192
6193
6194  if test "x$CFLAGS" = "x"; then
6195    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-qHALT=E\""
6196    CFLAGS="-qHALT=E"
6197  else
6198    apr_addto_bugger="-qHALT=E"
6199    for i in $apr_addto_bugger; do
6200      apr_addto_duplicate="0"
6201      for j in $CFLAGS; do
6202        if test "x$i" = "x$j"; then
6203          apr_addto_duplicate="1"
6204          break
6205        fi
6206      done
6207      if test $apr_addto_duplicate = "0"; then
6208        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
6209        CFLAGS="$CFLAGS $i"
6210      fi
6211    done
6212  fi
6213
6214        fi
6215
6216  if test -z "$apr_sysvsem_is_global"; then
6217    test "x$silent" != "xyes" && echo "  setting apr_sysvsem_is_global to \"yes\""
6218    apr_sysvsem_is_global="yes"
6219  fi
6220
6221
6222  if test -z "$apr_lock_method"; then
6223    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
6224    apr_lock_method="USE_SYSVSEM_SERIALIZE"
6225  fi
6226
6227        case $host in
6228            *-ibm-aix3* | *-ibm-aix4.1.*)
6229                ;;
6230            *)
6231
6232  if test "x$LDFLAGS" = "x"; then
6233    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Wl,-brtl\""
6234    LDFLAGS="-Wl,-brtl"
6235  else
6236    apr_addto_bugger="-Wl,-brtl"
6237    for i in $apr_addto_bugger; do
6238      apr_addto_duplicate="0"
6239      for j in $LDFLAGS; do
6240        if test "x$i" = "x$j"; then
6241          apr_addto_duplicate="1"
6242          break
6243        fi
6244      done
6245      if test $apr_addto_duplicate = "0"; then
6246        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
6247        LDFLAGS="$LDFLAGS $i"
6248      fi
6249    done
6250  fi
6251
6252                ;;
6253	esac
6254        ;;
6255    *-apollo-*)
6256
6257  if test "x$CPPFLAGS" = "x"; then
6258    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAPOLLO\""
6259    CPPFLAGS="-DAPOLLO"
6260  else
6261    apr_addto_bugger="-DAPOLLO"
6262    for i in $apr_addto_bugger; do
6263      apr_addto_duplicate="0"
6264      for j in $CPPFLAGS; do
6265        if test "x$i" = "x$j"; then
6266          apr_addto_duplicate="1"
6267          break
6268        fi
6269      done
6270      if test $apr_addto_duplicate = "0"; then
6271        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6272        CPPFLAGS="$CPPFLAGS $i"
6273      fi
6274    done
6275  fi
6276
6277	;;
6278    *-dg-dgux*)
6279
6280  if test "x$CPPFLAGS" = "x"; then
6281    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DDGUX\""
6282    CPPFLAGS="-DDGUX"
6283  else
6284    apr_addto_bugger="-DDGUX"
6285    for i in $apr_addto_bugger; do
6286      apr_addto_duplicate="0"
6287      for j in $CPPFLAGS; do
6288        if test "x$i" = "x$j"; then
6289          apr_addto_duplicate="1"
6290          break
6291        fi
6292      done
6293      if test $apr_addto_duplicate = "0"; then
6294        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6295        CPPFLAGS="$CPPFLAGS $i"
6296      fi
6297    done
6298  fi
6299
6300	;;
6301    *-os2*)
6302
6303  test "x$silent" != "xyes" && echo "  forcing SHELL to \"sh\""
6304  SHELL="sh"
6305
6306
6307  if test -z "$apr_gethostbyname_is_thread_safe"; then
6308    test "x$silent" != "xyes" && echo "  setting apr_gethostbyname_is_thread_safe to \"yes\""
6309    apr_gethostbyname_is_thread_safe="yes"
6310  fi
6311
6312
6313  if test -z "$apr_gethostbyaddr_is_thread_safe"; then
6314    test "x$silent" != "xyes" && echo "  setting apr_gethostbyaddr_is_thread_safe to \"yes\""
6315    apr_gethostbyaddr_is_thread_safe="yes"
6316  fi
6317
6318
6319  if test -z "$apr_getservbyname_is_thread_safe"; then
6320    test "x$silent" != "xyes" && echo "  setting apr_getservbyname_is_thread_safe to \"yes\""
6321    apr_getservbyname_is_thread_safe="yes"
6322  fi
6323
6324	;;
6325    *-hi-hiux)
6326
6327  if test "x$CPPFLAGS" = "x"; then
6328    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DHIUX\""
6329    CPPFLAGS="-DHIUX"
6330  else
6331    apr_addto_bugger="-DHIUX"
6332    for i in $apr_addto_bugger; do
6333      apr_addto_duplicate="0"
6334      for j in $CPPFLAGS; do
6335        if test "x$i" = "x$j"; then
6336          apr_addto_duplicate="1"
6337          break
6338        fi
6339      done
6340      if test $apr_addto_duplicate = "0"; then
6341        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6342        CPPFLAGS="$CPPFLAGS $i"
6343      fi
6344    done
6345  fi
6346
6347	;;
6348    *-hp-hpux11.*)
6349
6350  if test "x$CPPFLAGS" = "x"; then
6351    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE\""
6352    CPPFLAGS="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE"
6353  else
6354    apr_addto_bugger="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE"
6355    for i in $apr_addto_bugger; do
6356      apr_addto_duplicate="0"
6357      for j in $CPPFLAGS; do
6358        if test "x$i" = "x$j"; then
6359          apr_addto_duplicate="1"
6360          break
6361        fi
6362      done
6363      if test $apr_addto_duplicate = "0"; then
6364        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6365        CPPFLAGS="$CPPFLAGS $i"
6366      fi
6367    done
6368  fi
6369
6370	;;
6371    *-hp-hpux10.*)
6372 	case $host in
6373 	  *-hp-hpux10.01)
6374
6375  if test "x$CPPFLAGS" = "x"; then
6376    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSELECT_NEEDS_CAST\""
6377    CPPFLAGS="-DSELECT_NEEDS_CAST"
6378  else
6379    apr_addto_bugger="-DSELECT_NEEDS_CAST"
6380    for i in $apr_addto_bugger; do
6381      apr_addto_duplicate="0"
6382      for j in $CPPFLAGS; do
6383        if test "x$i" = "x$j"; then
6384          apr_addto_duplicate="1"
6385          break
6386        fi
6387      done
6388      if test $apr_addto_duplicate = "0"; then
6389        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6390        CPPFLAGS="$CPPFLAGS $i"
6391      fi
6392    done
6393  fi
6394
6395	       ;;
6396 	esac
6397
6398  if test "x$CPPFLAGS" = "x"; then
6399    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_REENTRANT\""
6400    CPPFLAGS="-D_REENTRANT"
6401  else
6402    apr_addto_bugger="-D_REENTRANT"
6403    for i in $apr_addto_bugger; do
6404      apr_addto_duplicate="0"
6405      for j in $CPPFLAGS; do
6406        if test "x$i" = "x$j"; then
6407          apr_addto_duplicate="1"
6408          break
6409        fi
6410      done
6411      if test $apr_addto_duplicate = "0"; then
6412        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6413        CPPFLAGS="$CPPFLAGS $i"
6414      fi
6415    done
6416  fi
6417
6418	;;
6419    *-hp-hpux*)
6420
6421  if test "x$CPPFLAGS" = "x"; then
6422    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DHPUX -D_REENTRANT\""
6423    CPPFLAGS="-DHPUX -D_REENTRANT"
6424  else
6425    apr_addto_bugger="-DHPUX -D_REENTRANT"
6426    for i in $apr_addto_bugger; do
6427      apr_addto_duplicate="0"
6428      for j in $CPPFLAGS; do
6429        if test "x$i" = "x$j"; then
6430          apr_addto_duplicate="1"
6431          break
6432        fi
6433      done
6434      if test $apr_addto_duplicate = "0"; then
6435        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6436        CPPFLAGS="$CPPFLAGS $i"
6437      fi
6438    done
6439  fi
6440
6441	;;
6442    *-linux*)
6443
6444  if test "x$CPPFLAGS" = "x"; then
6445    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DLINUX -D_REENTRANT -D_GNU_SOURCE\""
6446    CPPFLAGS="-DLINUX -D_REENTRANT -D_GNU_SOURCE"
6447  else
6448    apr_addto_bugger="-DLINUX -D_REENTRANT -D_GNU_SOURCE"
6449    for i in $apr_addto_bugger; do
6450      apr_addto_duplicate="0"
6451      for j in $CPPFLAGS; do
6452        if test "x$i" = "x$j"; then
6453          apr_addto_duplicate="1"
6454          break
6455        fi
6456      done
6457      if test $apr_addto_duplicate = "0"; then
6458        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6459        CPPFLAGS="$CPPFLAGS $i"
6460      fi
6461    done
6462  fi
6463
6464	;;
6465    *-lynx-lynxos)
6466
6467  if test "x$CPPFLAGS" = "x"; then
6468    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D__NO_INCLUDE_WARN__ -DLYNXOS\""
6469    CPPFLAGS="-D__NO_INCLUDE_WARN__ -DLYNXOS"
6470  else
6471    apr_addto_bugger="-D__NO_INCLUDE_WARN__ -DLYNXOS"
6472    for i in $apr_addto_bugger; do
6473      apr_addto_duplicate="0"
6474      for j in $CPPFLAGS; do
6475        if test "x$i" = "x$j"; then
6476          apr_addto_duplicate="1"
6477          break
6478        fi
6479      done
6480      if test $apr_addto_duplicate = "0"; then
6481        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6482        CPPFLAGS="$CPPFLAGS $i"
6483      fi
6484    done
6485  fi
6486
6487
6488  if test "x$LIBS" = "x"; then
6489    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbsd\""
6490    LIBS="-lbsd"
6491  else
6492    apr_addto_bugger="-lbsd"
6493    for i in $apr_addto_bugger; do
6494      apr_addto_duplicate="0"
6495      for j in $LIBS; do
6496        if test "x$i" = "x$j"; then
6497          apr_addto_duplicate="1"
6498          break
6499        fi
6500      done
6501      if test $apr_addto_duplicate = "0"; then
6502        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6503        LIBS="$LIBS $i"
6504      fi
6505    done
6506  fi
6507
6508	;;
6509    *486-*-bsdi*)
6510
6511  if test "x$CFLAGS" = "x"; then
6512    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-m486\""
6513    CFLAGS="-m486"
6514  else
6515    apr_addto_bugger="-m486"
6516    for i in $apr_addto_bugger; do
6517      apr_addto_duplicate="0"
6518      for j in $CFLAGS; do
6519        if test "x$i" = "x$j"; then
6520          apr_addto_duplicate="1"
6521          break
6522        fi
6523      done
6524      if test $apr_addto_duplicate = "0"; then
6525        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
6526        CFLAGS="$CFLAGS $i"
6527      fi
6528    done
6529  fi
6530
6531	;;
6532    *-*-bsdi*)
6533        case $host in
6534            *bsdi4.1)
6535
6536  if test "x$CFLAGS" = "x"; then
6537    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-D_REENTRANT\""
6538    CFLAGS="-D_REENTRANT"
6539  else
6540    apr_addto_bugger="-D_REENTRANT"
6541    for i in $apr_addto_bugger; do
6542      apr_addto_duplicate="0"
6543      for j in $CFLAGS; do
6544        if test "x$i" = "x$j"; then
6545          apr_addto_duplicate="1"
6546          break
6547        fi
6548      done
6549      if test $apr_addto_duplicate = "0"; then
6550        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
6551        CFLAGS="$CFLAGS $i"
6552      fi
6553    done
6554  fi
6555
6556                ;;
6557        esac
6558        ;;
6559    *-openbsd*)
6560
6561  if test "x$CPPFLAGS" = "x"; then
6562    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_POSIX_THREADS\""
6563    CPPFLAGS="-D_POSIX_THREADS"
6564  else
6565    apr_addto_bugger="-D_POSIX_THREADS"
6566    for i in $apr_addto_bugger; do
6567      apr_addto_duplicate="0"
6568      for j in $CPPFLAGS; do
6569        if test "x$i" = "x$j"; then
6570          apr_addto_duplicate="1"
6571          break
6572        fi
6573      done
6574      if test $apr_addto_duplicate = "0"; then
6575        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6576        CPPFLAGS="$CPPFLAGS $i"
6577      fi
6578    done
6579  fi
6580
6581        # binding to an ephemeral port fails on OpenBSD so override
6582        # the test for O_NONBLOCK inheritance across accept().
6583
6584  if test -z "$ac_cv_o_nonblock_inherited"; then
6585    test "x$silent" != "xyes" && echo "  setting ac_cv_o_nonblock_inherited to \"yes\""
6586    ac_cv_o_nonblock_inherited="yes"
6587  fi
6588
6589	;;
6590    *-netbsd*)
6591
6592  if test "x$CPPFLAGS" = "x"; then
6593    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNETBSD\""
6594    CPPFLAGS="-DNETBSD"
6595  else
6596    apr_addto_bugger="-DNETBSD"
6597    for i in $apr_addto_bugger; do
6598      apr_addto_duplicate="0"
6599      for j in $CPPFLAGS; do
6600        if test "x$i" = "x$j"; then
6601          apr_addto_duplicate="1"
6602          break
6603        fi
6604      done
6605      if test $apr_addto_duplicate = "0"; then
6606        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6607        CPPFLAGS="$CPPFLAGS $i"
6608      fi
6609    done
6610  fi
6611
6612        # fcntl() lies about O_NONBLOCK on an accept()ed socket (PR kern/26950)
6613
6614  if test -z "$ac_cv_o_nonblock_inherited"; then
6615    test "x$silent" != "xyes" && echo "  setting ac_cv_o_nonblock_inherited to \"yes\""
6616    ac_cv_o_nonblock_inherited="yes"
6617  fi
6618
6619	;;
6620    *-freebsd*)
6621
6622  if test -z "$apr_lock_method"; then
6623    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_FLOCK_SERIALIZE\""
6624    apr_lock_method="USE_FLOCK_SERIALIZE"
6625  fi
6626
6627        if test -x /sbin/sysctl; then
6628            os_version=`/sbin/sysctl -n kern.osreldate`
6629        else
6630            os_version=000000
6631        fi
6632        # 502102 is when libc_r switched to libpthread (aka libkse).
6633        if test $os_version -ge "502102"; then
6634          apr_cv_pthreads_cflags="none"
6635          apr_cv_pthreads_lib="-lpthread"
6636        else
6637
6638  if test "x$CPPFLAGS" = "x"; then
6639    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_THREAD_SAFE -D_REENTRANT\""
6640    CPPFLAGS="-D_THREAD_SAFE -D_REENTRANT"
6641  else
6642    apr_addto_bugger="-D_THREAD_SAFE -D_REENTRANT"
6643    for i in $apr_addto_bugger; do
6644      apr_addto_duplicate="0"
6645      for j in $CPPFLAGS; do
6646        if test "x$i" = "x$j"; then
6647          apr_addto_duplicate="1"
6648          break
6649        fi
6650      done
6651      if test $apr_addto_duplicate = "0"; then
6652        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6653        CPPFLAGS="$CPPFLAGS $i"
6654      fi
6655    done
6656  fi
6657
6658
6659  if test -z "$enable_threads"; then
6660    test "x$silent" != "xyes" && echo "  setting enable_threads to \"no\""
6661    enable_threads="no"
6662  fi
6663
6664        fi
6665        # prevent use of KQueue before FreeBSD 4.8
6666        if test $os_version -lt "480000"; then
6667
6668  if test -z "$ac_cv_func_kqueue"; then
6669    test "x$silent" != "xyes" && echo "  setting ac_cv_func_kqueue to \"no\""
6670    ac_cv_func_kqueue="no"
6671  fi
6672
6673        fi
6674	;;
6675    *-k*bsd*-gnu)
6676
6677  if test "x$CPPFLAGS" = "x"; then
6678    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE\""
6679    CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE"
6680  else
6681    apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE"
6682    for i in $apr_addto_bugger; do
6683      apr_addto_duplicate="0"
6684      for j in $CPPFLAGS; do
6685        if test "x$i" = "x$j"; then
6686          apr_addto_duplicate="1"
6687          break
6688        fi
6689      done
6690      if test $apr_addto_duplicate = "0"; then
6691        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6692        CPPFLAGS="$CPPFLAGS $i"
6693      fi
6694    done
6695  fi
6696
6697        ;;
6698    *-gnu*|*-GNU*)
6699
6700  if test "x$CPPFLAGS" = "x"; then
6701    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE -DHURD\""
6702    CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE -DHURD"
6703  else
6704    apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE -DHURD"
6705    for i in $apr_addto_bugger; do
6706      apr_addto_duplicate="0"
6707      for j in $CPPFLAGS; do
6708        if test "x$i" = "x$j"; then
6709          apr_addto_duplicate="1"
6710          break
6711        fi
6712      done
6713      if test $apr_addto_duplicate = "0"; then
6714        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6715        CPPFLAGS="$CPPFLAGS $i"
6716      fi
6717    done
6718  fi
6719
6720        ;;
6721    *-next-nextstep*)
6722
6723  if test -z "$CFLAGS"; then
6724    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
6725    CFLAGS="-O"
6726  fi
6727
6728
6729  if test "x$CPPFLAGS" = "x"; then
6730    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNEXT\""
6731    CPPFLAGS="-DNEXT"
6732  else
6733    apr_addto_bugger="-DNEXT"
6734    for i in $apr_addto_bugger; do
6735      apr_addto_duplicate="0"
6736      for j in $CPPFLAGS; do
6737        if test "x$i" = "x$j"; then
6738          apr_addto_duplicate="1"
6739          break
6740        fi
6741      done
6742      if test $apr_addto_duplicate = "0"; then
6743        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6744        CPPFLAGS="$CPPFLAGS $i"
6745      fi
6746    done
6747  fi
6748
6749	;;
6750    *-next-openstep*)
6751
6752  if test -z "$CFLAGS"; then
6753    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
6754    CFLAGS="-O"
6755  fi
6756
6757
6758  if test "x$CPPFLAGS" = "x"; then
6759    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNEXT\""
6760    CPPFLAGS="-DNEXT"
6761  else
6762    apr_addto_bugger="-DNEXT"
6763    for i in $apr_addto_bugger; do
6764      apr_addto_duplicate="0"
6765      for j in $CPPFLAGS; do
6766        if test "x$i" = "x$j"; then
6767          apr_addto_duplicate="1"
6768          break
6769        fi
6770      done
6771      if test $apr_addto_duplicate = "0"; then
6772        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6773        CPPFLAGS="$CPPFLAGS $i"
6774      fi
6775    done
6776  fi
6777
6778	;;
6779    *-apple-rhapsody*)
6780
6781  if test "x$CPPFLAGS" = "x"; then
6782    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DRHAPSODY\""
6783    CPPFLAGS="-DRHAPSODY"
6784  else
6785    apr_addto_bugger="-DRHAPSODY"
6786    for i in $apr_addto_bugger; do
6787      apr_addto_duplicate="0"
6788      for j in $CPPFLAGS; do
6789        if test "x$i" = "x$j"; then
6790          apr_addto_duplicate="1"
6791          break
6792        fi
6793      done
6794      if test $apr_addto_duplicate = "0"; then
6795        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6796        CPPFLAGS="$CPPFLAGS $i"
6797      fi
6798    done
6799  fi
6800
6801	;;
6802    *-apple-darwin*)
6803
6804  if test "x$CPPFLAGS" = "x"; then
6805    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp\""
6806    CPPFLAGS="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp"
6807  else
6808    apr_addto_bugger="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp"
6809    for i in $apr_addto_bugger; do
6810      apr_addto_duplicate="0"
6811      for j in $CPPFLAGS; do
6812        if test "x$i" = "x$j"; then
6813          apr_addto_duplicate="1"
6814          break
6815        fi
6816      done
6817      if test $apr_addto_duplicate = "0"; then
6818        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6819        CPPFLAGS="$CPPFLAGS $i"
6820      fi
6821    done
6822  fi
6823
6824
6825  if test -z "$apr_posixsem_is_global"; then
6826    test "x$silent" != "xyes" && echo "  setting apr_posixsem_is_global to \"yes\""
6827    apr_posixsem_is_global="yes"
6828  fi
6829
6830        case $host in
6831            *-apple-darwin[1-9].*)
6832                # APR's use of kqueue has triggered kernel panics for some
6833                # 10.5.x (Darwin 9.x) users when running the entire test suite.
6834                # In 10.4.x, use of kqueue would cause the socket tests to hang.
6835                # 10.6+ (Darwin 10.x is supposed to fix the KQueue issues
6836
6837  if test -z "$ac_cv_func_kqueue"; then
6838    test "x$silent" != "xyes" && echo "  setting ac_cv_func_kqueue to \"no\""
6839    ac_cv_func_kqueue="no"
6840  fi
6841
6842
6843  if test -z "$ac_cv_func_poll"; then
6844    test "x$silent" != "xyes" && echo "  setting ac_cv_func_poll to \"no\""
6845    ac_cv_func_poll="no"
6846  fi
6847 # See issue 34332
6848            ;;
6849            *-apple-darwin1?.*)
6850
6851  if test "x$CPPFLAGS" = "x"; then
6852    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DDARWIN_10\""
6853    CPPFLAGS="-DDARWIN_10"
6854  else
6855    apr_addto_bugger="-DDARWIN_10"
6856    for i in $apr_addto_bugger; do
6857      apr_addto_duplicate="0"
6858      for j in $CPPFLAGS; do
6859        if test "x$i" = "x$j"; then
6860          apr_addto_duplicate="1"
6861          break
6862        fi
6863      done
6864      if test $apr_addto_duplicate = "0"; then
6865        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6866        CPPFLAGS="$CPPFLAGS $i"
6867      fi
6868    done
6869  fi
6870
6871            ;;
6872        esac
6873	;;
6874    *-dec-osf*)
6875
6876  if test "x$CPPFLAGS" = "x"; then
6877    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DOSF1\""
6878    CPPFLAGS="-DOSF1"
6879  else
6880    apr_addto_bugger="-DOSF1"
6881    for i in $apr_addto_bugger; do
6882      apr_addto_duplicate="0"
6883      for j in $CPPFLAGS; do
6884        if test "x$i" = "x$j"; then
6885          apr_addto_duplicate="1"
6886          break
6887        fi
6888      done
6889      if test $apr_addto_duplicate = "0"; then
6890        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6891        CPPFLAGS="$CPPFLAGS $i"
6892      fi
6893    done
6894  fi
6895
6896        # process-shared mutexes don't seem to work in Tru64 5.0
6897
6898  if test -z "$apr_cv_process_shared_works"; then
6899    test "x$silent" != "xyes" && echo "  setting apr_cv_process_shared_works to \"no\""
6900    apr_cv_process_shared_works="no"
6901  fi
6902
6903	;;
6904    *-nto-qnx*)
6905	;;
6906    *-qnx)
6907
6908  if test "x$CPPFLAGS" = "x"; then
6909    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DQNX\""
6910    CPPFLAGS="-DQNX"
6911  else
6912    apr_addto_bugger="-DQNX"
6913    for i in $apr_addto_bugger; do
6914      apr_addto_duplicate="0"
6915      for j in $CPPFLAGS; do
6916        if test "x$i" = "x$j"; then
6917          apr_addto_duplicate="1"
6918          break
6919        fi
6920      done
6921      if test $apr_addto_duplicate = "0"; then
6922        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6923        CPPFLAGS="$CPPFLAGS $i"
6924      fi
6925    done
6926  fi
6927
6928
6929  if test "x$LIBS" = "x"; then
6930    test "x$silent" != "xyes" && echo "  setting LIBS to \"-N128k -lunix\""
6931    LIBS="-N128k -lunix"
6932  else
6933    apr_addto_bugger="-N128k -lunix"
6934    for i in $apr_addto_bugger; do
6935      apr_addto_duplicate="0"
6936      for j in $LIBS; do
6937        if test "x$i" = "x$j"; then
6938          apr_addto_duplicate="1"
6939          break
6940        fi
6941      done
6942      if test $apr_addto_duplicate = "0"; then
6943        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6944        LIBS="$LIBS $i"
6945      fi
6946    done
6947  fi
6948
6949	;;
6950    *-qnx32)
6951
6952  if test "x$CPPFLAGS" = "x"; then
6953    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DQNX\""
6954    CPPFLAGS="-DQNX"
6955  else
6956    apr_addto_bugger="-DQNX"
6957    for i in $apr_addto_bugger; do
6958      apr_addto_duplicate="0"
6959      for j in $CPPFLAGS; do
6960        if test "x$i" = "x$j"; then
6961          apr_addto_duplicate="1"
6962          break
6963        fi
6964      done
6965      if test $apr_addto_duplicate = "0"; then
6966        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6967        CPPFLAGS="$CPPFLAGS $i"
6968      fi
6969    done
6970  fi
6971
6972
6973  if test "x$CFLAGS" = "x"; then
6974    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-mf -3\""
6975    CFLAGS="-mf -3"
6976  else
6977    apr_addto_bugger="-mf -3"
6978    for i in $apr_addto_bugger; do
6979      apr_addto_duplicate="0"
6980      for j in $CFLAGS; do
6981        if test "x$i" = "x$j"; then
6982          apr_addto_duplicate="1"
6983          break
6984        fi
6985      done
6986      if test $apr_addto_duplicate = "0"; then
6987        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
6988        CFLAGS="$CFLAGS $i"
6989      fi
6990    done
6991  fi
6992
6993
6994  if test "x$LIBS" = "x"; then
6995    test "x$silent" != "xyes" && echo "  setting LIBS to \"-N128k -lunix\""
6996    LIBS="-N128k -lunix"
6997  else
6998    apr_addto_bugger="-N128k -lunix"
6999    for i in $apr_addto_bugger; do
7000      apr_addto_duplicate="0"
7001      for j in $LIBS; do
7002        if test "x$i" = "x$j"; then
7003          apr_addto_duplicate="1"
7004          break
7005        fi
7006      done
7007      if test $apr_addto_duplicate = "0"; then
7008        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7009        LIBS="$LIBS $i"
7010      fi
7011    done
7012  fi
7013
7014	;;
7015    *-isc4*)
7016
7017  if test "x$CPPFLAGS" = "x"; then
7018    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-posix -DISC\""
7019    CPPFLAGS="-posix -DISC"
7020  else
7021    apr_addto_bugger="-posix -DISC"
7022    for i in $apr_addto_bugger; do
7023      apr_addto_duplicate="0"
7024      for j in $CPPFLAGS; do
7025        if test "x$i" = "x$j"; then
7026          apr_addto_duplicate="1"
7027          break
7028        fi
7029      done
7030      if test $apr_addto_duplicate = "0"; then
7031        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7032        CPPFLAGS="$CPPFLAGS $i"
7033      fi
7034    done
7035  fi
7036
7037
7038  if test "x$LDFLAGS" = "x"; then
7039    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-posix\""
7040    LDFLAGS="-posix"
7041  else
7042    apr_addto_bugger="-posix"
7043    for i in $apr_addto_bugger; do
7044      apr_addto_duplicate="0"
7045      for j in $LDFLAGS; do
7046        if test "x$i" = "x$j"; then
7047          apr_addto_duplicate="1"
7048          break
7049        fi
7050      done
7051      if test $apr_addto_duplicate = "0"; then
7052        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
7053        LDFLAGS="$LDFLAGS $i"
7054      fi
7055    done
7056  fi
7057
7058
7059  if test "x$LIBS" = "x"; then
7060    test "x$silent" != "xyes" && echo "  setting LIBS to \"-linet\""
7061    LIBS="-linet"
7062  else
7063    apr_addto_bugger="-linet"
7064    for i in $apr_addto_bugger; do
7065      apr_addto_duplicate="0"
7066      for j in $LIBS; do
7067        if test "x$i" = "x$j"; then
7068          apr_addto_duplicate="1"
7069          break
7070        fi
7071      done
7072      if test $apr_addto_duplicate = "0"; then
7073        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7074        LIBS="$LIBS $i"
7075      fi
7076    done
7077  fi
7078
7079	;;
7080    *-sco3.2v[234]*)
7081
7082  if test "x$CPPFLAGS" = "x"; then
7083    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
7084    CPPFLAGS="-DSCO -D_REENTRANT"
7085  else
7086    apr_addto_bugger="-DSCO -D_REENTRANT"
7087    for i in $apr_addto_bugger; do
7088      apr_addto_duplicate="0"
7089      for j in $CPPFLAGS; do
7090        if test "x$i" = "x$j"; then
7091          apr_addto_duplicate="1"
7092          break
7093        fi
7094      done
7095      if test $apr_addto_duplicate = "0"; then
7096        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7097        CPPFLAGS="$CPPFLAGS $i"
7098      fi
7099    done
7100  fi
7101
7102	if test "$GCC" = "no"; then
7103
7104  if test "x$CFLAGS" = "x"; then
7105    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Oacgiltz\""
7106    CFLAGS="-Oacgiltz"
7107  else
7108    apr_addto_bugger="-Oacgiltz"
7109    for i in $apr_addto_bugger; do
7110      apr_addto_duplicate="0"
7111      for j in $CFLAGS; do
7112        if test "x$i" = "x$j"; then
7113          apr_addto_duplicate="1"
7114          break
7115        fi
7116      done
7117      if test $apr_addto_duplicate = "0"; then
7118        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
7119        CFLAGS="$CFLAGS $i"
7120      fi
7121    done
7122  fi
7123
7124	fi
7125
7126  if test "x$LIBS" = "x"; then
7127    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lPW -lmalloc\""
7128    LIBS="-lPW -lmalloc"
7129  else
7130    apr_addto_bugger="-lPW -lmalloc"
7131    for i in $apr_addto_bugger; do
7132      apr_addto_duplicate="0"
7133      for j in $LIBS; do
7134        if test "x$i" = "x$j"; then
7135          apr_addto_duplicate="1"
7136          break
7137        fi
7138      done
7139      if test $apr_addto_duplicate = "0"; then
7140        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7141        LIBS="$LIBS $i"
7142      fi
7143    done
7144  fi
7145
7146	;;
7147    *-sco3.2v5*)
7148
7149  if test "x$CPPFLAGS" = "x"; then
7150    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSCO5 -D_REENTRANT\""
7151    CPPFLAGS="-DSCO5 -D_REENTRANT"
7152  else
7153    apr_addto_bugger="-DSCO5 -D_REENTRANT"
7154    for i in $apr_addto_bugger; do
7155      apr_addto_duplicate="0"
7156      for j in $CPPFLAGS; do
7157        if test "x$i" = "x$j"; then
7158          apr_addto_duplicate="1"
7159          break
7160        fi
7161      done
7162      if test $apr_addto_duplicate = "0"; then
7163        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7164        CPPFLAGS="$CPPFLAGS $i"
7165      fi
7166    done
7167  fi
7168
7169	;;
7170    *-sco_sv*|*-SCO_SV*)
7171
7172  if test "x$CPPFLAGS" = "x"; then
7173    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
7174    CPPFLAGS="-DSCO -D_REENTRANT"
7175  else
7176    apr_addto_bugger="-DSCO -D_REENTRANT"
7177    for i in $apr_addto_bugger; do
7178      apr_addto_duplicate="0"
7179      for j in $CPPFLAGS; do
7180        if test "x$i" = "x$j"; then
7181          apr_addto_duplicate="1"
7182          break
7183        fi
7184      done
7185      if test $apr_addto_duplicate = "0"; then
7186        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7187        CPPFLAGS="$CPPFLAGS $i"
7188      fi
7189    done
7190  fi
7191
7192
7193  if test "x$LIBS" = "x"; then
7194    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lPW -lmalloc\""
7195    LIBS="-lPW -lmalloc"
7196  else
7197    apr_addto_bugger="-lPW -lmalloc"
7198    for i in $apr_addto_bugger; do
7199      apr_addto_duplicate="0"
7200      for j in $LIBS; do
7201        if test "x$i" = "x$j"; then
7202          apr_addto_duplicate="1"
7203          break
7204        fi
7205      done
7206      if test $apr_addto_duplicate = "0"; then
7207        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7208        LIBS="$LIBS $i"
7209      fi
7210    done
7211  fi
7212
7213	;;
7214    *-solaris2*)
7215    	PLATOSVERS=`echo $host | sed 's/^.*solaris2.//'`
7216
7217  if test "x$CPPFLAGS" = "x"; then
7218    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT\""
7219    CPPFLAGS="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
7220  else
7221    apr_addto_bugger="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
7222    for i in $apr_addto_bugger; do
7223      apr_addto_duplicate="0"
7224      for j in $CPPFLAGS; do
7225        if test "x$i" = "x$j"; then
7226          apr_addto_duplicate="1"
7227          break
7228        fi
7229      done
7230      if test $apr_addto_duplicate = "0"; then
7231        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7232        CPPFLAGS="$CPPFLAGS $i"
7233      fi
7234    done
7235  fi
7236
7237        if test $PLATOSVERS -ge 10; then
7238
7239  if test -z "$apr_lock_method"; then
7240    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_PROC_PTHREAD_SERIALIZE\""
7241    apr_lock_method="USE_PROC_PTHREAD_SERIALIZE"
7242  fi
7243
7244        else
7245
7246  if test -z "$apr_lock_method"; then
7247    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_FCNTL_SERIALIZE\""
7248    apr_lock_method="USE_FCNTL_SERIALIZE"
7249  fi
7250
7251        fi
7252        # readdir64_r error handling seems broken on Solaris (at least
7253        # up till 2.8) -- it will return -1 at end-of-directory.
7254
7255  if test -z "$ac_cv_func_readdir64_r"; then
7256    test "x$silent" != "xyes" && echo "  setting ac_cv_func_readdir64_r to \"no\""
7257    ac_cv_func_readdir64_r="no"
7258  fi
7259
7260	;;
7261    *-sunos4*)
7262
7263  if test "x$CPPFLAGS" = "x"; then
7264    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSUNOS4\""
7265    CPPFLAGS="-DSUNOS4"
7266  else
7267    apr_addto_bugger="-DSUNOS4"
7268    for i in $apr_addto_bugger; do
7269      apr_addto_duplicate="0"
7270      for j in $CPPFLAGS; do
7271        if test "x$i" = "x$j"; then
7272          apr_addto_duplicate="1"
7273          break
7274        fi
7275      done
7276      if test $apr_addto_duplicate = "0"; then
7277        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7278        CPPFLAGS="$CPPFLAGS $i"
7279      fi
7280    done
7281  fi
7282
7283	;;
7284    *-unixware1)
7285
7286  if test "x$CPPFLAGS" = "x"; then
7287    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=100\""
7288    CPPFLAGS="-DUW=100"
7289  else
7290    apr_addto_bugger="-DUW=100"
7291    for i in $apr_addto_bugger; do
7292      apr_addto_duplicate="0"
7293      for j in $CPPFLAGS; do
7294        if test "x$i" = "x$j"; then
7295          apr_addto_duplicate="1"
7296          break
7297        fi
7298      done
7299      if test $apr_addto_duplicate = "0"; then
7300        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7301        CPPFLAGS="$CPPFLAGS $i"
7302      fi
7303    done
7304  fi
7305
7306	;;
7307    *-unixware2)
7308
7309  if test "x$CPPFLAGS" = "x"; then
7310    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=200\""
7311    CPPFLAGS="-DUW=200"
7312  else
7313    apr_addto_bugger="-DUW=200"
7314    for i in $apr_addto_bugger; do
7315      apr_addto_duplicate="0"
7316      for j in $CPPFLAGS; do
7317        if test "x$i" = "x$j"; then
7318          apr_addto_duplicate="1"
7319          break
7320        fi
7321      done
7322      if test $apr_addto_duplicate = "0"; then
7323        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7324        CPPFLAGS="$CPPFLAGS $i"
7325      fi
7326    done
7327  fi
7328
7329
7330  if test "x$LIBS" = "x"; then
7331    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
7332    LIBS="-lgen"
7333  else
7334    apr_addto_bugger="-lgen"
7335    for i in $apr_addto_bugger; do
7336      apr_addto_duplicate="0"
7337      for j in $LIBS; do
7338        if test "x$i" = "x$j"; then
7339          apr_addto_duplicate="1"
7340          break
7341        fi
7342      done
7343      if test $apr_addto_duplicate = "0"; then
7344        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7345        LIBS="$LIBS $i"
7346      fi
7347    done
7348  fi
7349
7350	;;
7351    *-unixware211)
7352
7353  if test "x$CPPFLAGS" = "x"; then
7354    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=211\""
7355    CPPFLAGS="-DUW=211"
7356  else
7357    apr_addto_bugger="-DUW=211"
7358    for i in $apr_addto_bugger; do
7359      apr_addto_duplicate="0"
7360      for j in $CPPFLAGS; do
7361        if test "x$i" = "x$j"; then
7362          apr_addto_duplicate="1"
7363          break
7364        fi
7365      done
7366      if test $apr_addto_duplicate = "0"; then
7367        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7368        CPPFLAGS="$CPPFLAGS $i"
7369      fi
7370    done
7371  fi
7372
7373
7374  if test "x$LIBS" = "x"; then
7375    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
7376    LIBS="-lgen"
7377  else
7378    apr_addto_bugger="-lgen"
7379    for i in $apr_addto_bugger; do
7380      apr_addto_duplicate="0"
7381      for j in $LIBS; do
7382        if test "x$i" = "x$j"; then
7383          apr_addto_duplicate="1"
7384          break
7385        fi
7386      done
7387      if test $apr_addto_duplicate = "0"; then
7388        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7389        LIBS="$LIBS $i"
7390      fi
7391    done
7392  fi
7393
7394	;;
7395    *-unixware212)
7396
7397  if test "x$CPPFLAGS" = "x"; then
7398    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=212\""
7399    CPPFLAGS="-DUW=212"
7400  else
7401    apr_addto_bugger="-DUW=212"
7402    for i in $apr_addto_bugger; do
7403      apr_addto_duplicate="0"
7404      for j in $CPPFLAGS; do
7405        if test "x$i" = "x$j"; then
7406          apr_addto_duplicate="1"
7407          break
7408        fi
7409      done
7410      if test $apr_addto_duplicate = "0"; then
7411        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7412        CPPFLAGS="$CPPFLAGS $i"
7413      fi
7414    done
7415  fi
7416
7417
7418  if test "x$LIBS" = "x"; then
7419    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
7420    LIBS="-lgen"
7421  else
7422    apr_addto_bugger="-lgen"
7423    for i in $apr_addto_bugger; do
7424      apr_addto_duplicate="0"
7425      for j in $LIBS; do
7426        if test "x$i" = "x$j"; then
7427          apr_addto_duplicate="1"
7428          break
7429        fi
7430      done
7431      if test $apr_addto_duplicate = "0"; then
7432        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7433        LIBS="$LIBS $i"
7434      fi
7435    done
7436  fi
7437
7438	;;
7439    *-unixware7)
7440
7441  if test "x$CPPFLAGS" = "x"; then
7442    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=700\""
7443    CPPFLAGS="-DUW=700"
7444  else
7445    apr_addto_bugger="-DUW=700"
7446    for i in $apr_addto_bugger; do
7447      apr_addto_duplicate="0"
7448      for j in $CPPFLAGS; do
7449        if test "x$i" = "x$j"; then
7450          apr_addto_duplicate="1"
7451          break
7452        fi
7453      done
7454      if test $apr_addto_duplicate = "0"; then
7455        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7456        CPPFLAGS="$CPPFLAGS $i"
7457      fi
7458    done
7459  fi
7460
7461
7462  if test "x$LIBS" = "x"; then
7463    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
7464    LIBS="-lgen"
7465  else
7466    apr_addto_bugger="-lgen"
7467    for i in $apr_addto_bugger; do
7468      apr_addto_duplicate="0"
7469      for j in $LIBS; do
7470        if test "x$i" = "x$j"; then
7471          apr_addto_duplicate="1"
7472          break
7473        fi
7474      done
7475      if test $apr_addto_duplicate = "0"; then
7476        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7477        LIBS="$LIBS $i"
7478      fi
7479    done
7480  fi
7481
7482	;;
7483    maxion-*-sysv4*)
7484
7485  if test "x$CPPFLAGS" = "x"; then
7486    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
7487    CPPFLAGS="-DSVR4"
7488  else
7489    apr_addto_bugger="-DSVR4"
7490    for i in $apr_addto_bugger; do
7491      apr_addto_duplicate="0"
7492      for j in $CPPFLAGS; do
7493        if test "x$i" = "x$j"; then
7494          apr_addto_duplicate="1"
7495          break
7496        fi
7497      done
7498      if test $apr_addto_duplicate = "0"; then
7499        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7500        CPPFLAGS="$CPPFLAGS $i"
7501      fi
7502    done
7503  fi
7504
7505
7506  if test "x$LIBS" = "x"; then
7507    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc -lgen\""
7508    LIBS="-lc -lgen"
7509  else
7510    apr_addto_bugger="-lc -lgen"
7511    for i in $apr_addto_bugger; do
7512      apr_addto_duplicate="0"
7513      for j in $LIBS; do
7514        if test "x$i" = "x$j"; then
7515          apr_addto_duplicate="1"
7516          break
7517        fi
7518      done
7519      if test $apr_addto_duplicate = "0"; then
7520        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7521        LIBS="$LIBS $i"
7522      fi
7523    done
7524  fi
7525
7526	;;
7527    *-*-powermax*)
7528
7529  if test "x$CPPFLAGS" = "x"; then
7530    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
7531    CPPFLAGS="-DSVR4"
7532  else
7533    apr_addto_bugger="-DSVR4"
7534    for i in $apr_addto_bugger; do
7535      apr_addto_duplicate="0"
7536      for j in $CPPFLAGS; do
7537        if test "x$i" = "x$j"; then
7538          apr_addto_duplicate="1"
7539          break
7540        fi
7541      done
7542      if test $apr_addto_duplicate = "0"; then
7543        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7544        CPPFLAGS="$CPPFLAGS $i"
7545      fi
7546    done
7547  fi
7548
7549
7550  if test "x$LIBS" = "x"; then
7551    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
7552    LIBS="-lgen"
7553  else
7554    apr_addto_bugger="-lgen"
7555    for i in $apr_addto_bugger; do
7556      apr_addto_duplicate="0"
7557      for j in $LIBS; do
7558        if test "x$i" = "x$j"; then
7559          apr_addto_duplicate="1"
7560          break
7561        fi
7562      done
7563      if test $apr_addto_duplicate = "0"; then
7564        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7565        LIBS="$LIBS $i"
7566      fi
7567    done
7568  fi
7569
7570	;;
7571    TPF)
7572
7573  if test "x$CPPFLAGS" = "x"; then
7574    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DTPF -D_POSIX_SOURCE\""
7575    CPPFLAGS="-DTPF -D_POSIX_SOURCE"
7576  else
7577    apr_addto_bugger="-DTPF -D_POSIX_SOURCE"
7578    for i in $apr_addto_bugger; do
7579      apr_addto_duplicate="0"
7580      for j in $CPPFLAGS; do
7581        if test "x$i" = "x$j"; then
7582          apr_addto_duplicate="1"
7583          break
7584        fi
7585      done
7586      if test $apr_addto_duplicate = "0"; then
7587        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7588        CPPFLAGS="$CPPFLAGS $i"
7589      fi
7590    done
7591  fi
7592
7593       ;;
7594    bs2000*-siemens-sysv*)
7595
7596  if test -z "$CFLAGS"; then
7597    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
7598    CFLAGS="-O"
7599  fi
7600
7601
7602  if test "x$CPPFLAGS" = "x"; then
7603    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -D_KMEMUSER\""
7604    CPPFLAGS="-DSVR4 -D_XPG_IV -D_KMEMUSER"
7605  else
7606    apr_addto_bugger="-DSVR4 -D_XPG_IV -D_KMEMUSER"
7607    for i in $apr_addto_bugger; do
7608      apr_addto_duplicate="0"
7609      for j in $CPPFLAGS; do
7610        if test "x$i" = "x$j"; then
7611          apr_addto_duplicate="1"
7612          break
7613        fi
7614      done
7615      if test $apr_addto_duplicate = "0"; then
7616        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7617        CPPFLAGS="$CPPFLAGS $i"
7618      fi
7619    done
7620  fi
7621
7622
7623  if test "x$LIBS" = "x"; then
7624    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lsocket\""
7625    LIBS="-lsocket"
7626  else
7627    apr_addto_bugger="-lsocket"
7628    for i in $apr_addto_bugger; do
7629      apr_addto_duplicate="0"
7630      for j in $LIBS; do
7631        if test "x$i" = "x$j"; then
7632          apr_addto_duplicate="1"
7633          break
7634        fi
7635      done
7636      if test $apr_addto_duplicate = "0"; then
7637        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7638        LIBS="$LIBS $i"
7639      fi
7640    done
7641  fi
7642
7643
7644  if test -z "$enable_threads"; then
7645    test "x$silent" != "xyes" && echo "  setting enable_threads to \"no\""
7646    enable_threads="no"
7647  fi
7648
7649	;;
7650    *-siemens-sysv4*)
7651
7652  if test "x$CPPFLAGS" = "x"; then
7653    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT\""
7654    CPPFLAGS="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
7655  else
7656    apr_addto_bugger="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
7657    for i in $apr_addto_bugger; do
7658      apr_addto_duplicate="0"
7659      for j in $CPPFLAGS; do
7660        if test "x$i" = "x$j"; then
7661          apr_addto_duplicate="1"
7662          break
7663        fi
7664      done
7665      if test $apr_addto_duplicate = "0"; then
7666        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7667        CPPFLAGS="$CPPFLAGS $i"
7668      fi
7669    done
7670  fi
7671
7672
7673  if test "x$LIBS" = "x"; then
7674    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
7675    LIBS="-lc"
7676  else
7677    apr_addto_bugger="-lc"
7678    for i in $apr_addto_bugger; do
7679      apr_addto_duplicate="0"
7680      for j in $LIBS; do
7681        if test "x$i" = "x$j"; then
7682          apr_addto_duplicate="1"
7683          break
7684        fi
7685      done
7686      if test $apr_addto_duplicate = "0"; then
7687        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7688        LIBS="$LIBS $i"
7689      fi
7690    done
7691  fi
7692
7693	;;
7694    pyramid-pyramid-svr4)
7695
7696  if test "x$CPPFLAGS" = "x"; then
7697    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -DNO_LONG_DOUBLE\""
7698    CPPFLAGS="-DSVR4 -DNO_LONG_DOUBLE"
7699  else
7700    apr_addto_bugger="-DSVR4 -DNO_LONG_DOUBLE"
7701    for i in $apr_addto_bugger; do
7702      apr_addto_duplicate="0"
7703      for j in $CPPFLAGS; do
7704        if test "x$i" = "x$j"; then
7705          apr_addto_duplicate="1"
7706          break
7707        fi
7708      done
7709      if test $apr_addto_duplicate = "0"; then
7710        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7711        CPPFLAGS="$CPPFLAGS $i"
7712      fi
7713    done
7714  fi
7715
7716
7717  if test "x$LIBS" = "x"; then
7718    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
7719    LIBS="-lc"
7720  else
7721    apr_addto_bugger="-lc"
7722    for i in $apr_addto_bugger; do
7723      apr_addto_duplicate="0"
7724      for j in $LIBS; do
7725        if test "x$i" = "x$j"; then
7726          apr_addto_duplicate="1"
7727          break
7728        fi
7729      done
7730      if test $apr_addto_duplicate = "0"; then
7731        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7732        LIBS="$LIBS $i"
7733      fi
7734    done
7735  fi
7736
7737	;;
7738    DS/90\ 7000-*-sysv4*)
7739
7740  if test "x$CPPFLAGS" = "x"; then
7741    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUXPDS\""
7742    CPPFLAGS="-DUXPDS"
7743  else
7744    apr_addto_bugger="-DUXPDS"
7745    for i in $apr_addto_bugger; do
7746      apr_addto_duplicate="0"
7747      for j in $CPPFLAGS; do
7748        if test "x$i" = "x$j"; then
7749          apr_addto_duplicate="1"
7750          break
7751        fi
7752      done
7753      if test $apr_addto_duplicate = "0"; then
7754        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7755        CPPFLAGS="$CPPFLAGS $i"
7756      fi
7757    done
7758  fi
7759
7760	;;
7761    *-tandem-sysv4*)
7762
7763  if test "x$CPPFLAGS" = "x"; then
7764    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
7765    CPPFLAGS="-DSVR4"
7766  else
7767    apr_addto_bugger="-DSVR4"
7768    for i in $apr_addto_bugger; do
7769      apr_addto_duplicate="0"
7770      for j in $CPPFLAGS; do
7771        if test "x$i" = "x$j"; then
7772          apr_addto_duplicate="1"
7773          break
7774        fi
7775      done
7776      if test $apr_addto_duplicate = "0"; then
7777        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7778        CPPFLAGS="$CPPFLAGS $i"
7779      fi
7780    done
7781  fi
7782
7783	;;
7784    *-ncr-sysv4)
7785
7786  if test "x$CPPFLAGS" = "x"; then
7787    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
7788    CPPFLAGS="-DSVR4 -DMPRAS"
7789  else
7790    apr_addto_bugger="-DSVR4 -DMPRAS"
7791    for i in $apr_addto_bugger; do
7792      apr_addto_duplicate="0"
7793      for j in $CPPFLAGS; do
7794        if test "x$i" = "x$j"; then
7795          apr_addto_duplicate="1"
7796          break
7797        fi
7798      done
7799      if test $apr_addto_duplicate = "0"; then
7800        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7801        CPPFLAGS="$CPPFLAGS $i"
7802      fi
7803    done
7804  fi
7805
7806
7807  if test "x$LIBS" = "x"; then
7808    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc -L/usr/ucblib -lucb\""
7809    LIBS="-lc -L/usr/ucblib -lucb"
7810  else
7811    apr_addto_bugger="-lc -L/usr/ucblib -lucb"
7812    for i in $apr_addto_bugger; do
7813      apr_addto_duplicate="0"
7814      for j in $LIBS; do
7815        if test "x$i" = "x$j"; then
7816          apr_addto_duplicate="1"
7817          break
7818        fi
7819      done
7820      if test $apr_addto_duplicate = "0"; then
7821        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7822        LIBS="$LIBS $i"
7823      fi
7824    done
7825  fi
7826
7827	;;
7828    *-sysv4*)
7829
7830  if test "x$CPPFLAGS" = "x"; then
7831    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
7832    CPPFLAGS="-DSVR4"
7833  else
7834    apr_addto_bugger="-DSVR4"
7835    for i in $apr_addto_bugger; do
7836      apr_addto_duplicate="0"
7837      for j in $CPPFLAGS; do
7838        if test "x$i" = "x$j"; then
7839          apr_addto_duplicate="1"
7840          break
7841        fi
7842      done
7843      if test $apr_addto_duplicate = "0"; then
7844        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7845        CPPFLAGS="$CPPFLAGS $i"
7846      fi
7847    done
7848  fi
7849
7850
7851  if test "x$LIBS" = "x"; then
7852    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
7853    LIBS="-lc"
7854  else
7855    apr_addto_bugger="-lc"
7856    for i in $apr_addto_bugger; do
7857      apr_addto_duplicate="0"
7858      for j in $LIBS; do
7859        if test "x$i" = "x$j"; then
7860          apr_addto_duplicate="1"
7861          break
7862        fi
7863      done
7864      if test $apr_addto_duplicate = "0"; then
7865        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7866        LIBS="$LIBS $i"
7867      fi
7868    done
7869  fi
7870
7871	;;
7872    88k-encore-sysv4)
7873
7874  if test "x$CPPFLAGS" = "x"; then
7875    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -DENCORE\""
7876    CPPFLAGS="-DSVR4 -DENCORE"
7877  else
7878    apr_addto_bugger="-DSVR4 -DENCORE"
7879    for i in $apr_addto_bugger; do
7880      apr_addto_duplicate="0"
7881      for j in $CPPFLAGS; do
7882        if test "x$i" = "x$j"; then
7883          apr_addto_duplicate="1"
7884          break
7885        fi
7886      done
7887      if test $apr_addto_duplicate = "0"; then
7888        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7889        CPPFLAGS="$CPPFLAGS $i"
7890      fi
7891    done
7892  fi
7893
7894
7895  if test "x$LIBS" = "x"; then
7896    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lPW\""
7897    LIBS="-lPW"
7898  else
7899    apr_addto_bugger="-lPW"
7900    for i in $apr_addto_bugger; do
7901      apr_addto_duplicate="0"
7902      for j in $LIBS; do
7903        if test "x$i" = "x$j"; then
7904          apr_addto_duplicate="1"
7905          break
7906        fi
7907      done
7908      if test $apr_addto_duplicate = "0"; then
7909        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7910        LIBS="$LIBS $i"
7911      fi
7912    done
7913  fi
7914
7915	;;
7916    *-uts*)
7917	PLATOSVERS=`echo $host | sed 's/^.*,//'`
7918	case $PLATOSVERS in
7919	    2*)
7920  if test "x$CPPFLAGS" = "x"; then
7921    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUTS21\""
7922    CPPFLAGS="-DUTS21"
7923  else
7924    apr_addto_bugger="-DUTS21"
7925    for i in $apr_addto_bugger; do
7926      apr_addto_duplicate="0"
7927      for j in $CPPFLAGS; do
7928        if test "x$i" = "x$j"; then
7929          apr_addto_duplicate="1"
7930          break
7931        fi
7932      done
7933      if test $apr_addto_duplicate = "0"; then
7934        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7935        CPPFLAGS="$CPPFLAGS $i"
7936      fi
7937    done
7938  fi
7939
7940
7941  if test "x$CFLAGS" = "x"; then
7942    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Xa -eft\""
7943    CFLAGS="-Xa -eft"
7944  else
7945    apr_addto_bugger="-Xa -eft"
7946    for i in $apr_addto_bugger; do
7947      apr_addto_duplicate="0"
7948      for j in $CFLAGS; do
7949        if test "x$i" = "x$j"; then
7950          apr_addto_duplicate="1"
7951          break
7952        fi
7953      done
7954      if test $apr_addto_duplicate = "0"; then
7955        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
7956        CFLAGS="$CFLAGS $i"
7957      fi
7958    done
7959  fi
7960
7961
7962  if test "x$LIBS" = "x"; then
7963    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbsd -la\""
7964    LIBS="-lbsd -la"
7965  else
7966    apr_addto_bugger="-lbsd -la"
7967    for i in $apr_addto_bugger; do
7968      apr_addto_duplicate="0"
7969      for j in $LIBS; do
7970        if test "x$i" = "x$j"; then
7971          apr_addto_duplicate="1"
7972          break
7973        fi
7974      done
7975      if test $apr_addto_duplicate = "0"; then
7976        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7977        LIBS="$LIBS $i"
7978      fi
7979    done
7980  fi
7981
7982	        ;;
7983	    *)
7984  if test "x$CPPFLAGS" = "x"; then
7985    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
7986    CPPFLAGS="-DSVR4"
7987  else
7988    apr_addto_bugger="-DSVR4"
7989    for i in $apr_addto_bugger; do
7990      apr_addto_duplicate="0"
7991      for j in $CPPFLAGS; do
7992        if test "x$i" = "x$j"; then
7993          apr_addto_duplicate="1"
7994          break
7995        fi
7996      done
7997      if test $apr_addto_duplicate = "0"; then
7998        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7999        CPPFLAGS="$CPPFLAGS $i"
8000      fi
8001    done
8002  fi
8003
8004
8005  if test "x$CFLAGS" = "x"; then
8006    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Xa\""
8007    CFLAGS="-Xa"
8008  else
8009    apr_addto_bugger="-Xa"
8010    for i in $apr_addto_bugger; do
8011      apr_addto_duplicate="0"
8012      for j in $CFLAGS; do
8013        if test "x$i" = "x$j"; then
8014          apr_addto_duplicate="1"
8015          break
8016        fi
8017      done
8018      if test $apr_addto_duplicate = "0"; then
8019        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8020        CFLAGS="$CFLAGS $i"
8021      fi
8022    done
8023  fi
8024
8025	        ;;
8026	esac
8027	;;
8028    *-ultrix)
8029
8030  if test "x$CPPFLAGS" = "x"; then
8031    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DULTRIX\""
8032    CPPFLAGS="-DULTRIX"
8033  else
8034    apr_addto_bugger="-DULTRIX"
8035    for i in $apr_addto_bugger; do
8036      apr_addto_duplicate="0"
8037      for j in $CPPFLAGS; do
8038        if test "x$i" = "x$j"; then
8039          apr_addto_duplicate="1"
8040          break
8041        fi
8042      done
8043      if test $apr_addto_duplicate = "0"; then
8044        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8045        CPPFLAGS="$CPPFLAGS $i"
8046      fi
8047    done
8048  fi
8049
8050
8051  test "x$silent" != "xyes" && echo "  forcing SHELL to \"/bin/sh5\""
8052  SHELL="/bin/sh5"
8053
8054	;;
8055    *powerpc-tenon-machten*)
8056
8057  if test "x$LDFLAGS" = "x"; then
8058    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Xlstack=0x14000 -Xldelcsect\""
8059    LDFLAGS="-Xlstack=0x14000 -Xldelcsect"
8060  else
8061    apr_addto_bugger="-Xlstack=0x14000 -Xldelcsect"
8062    for i in $apr_addto_bugger; do
8063      apr_addto_duplicate="0"
8064      for j in $LDFLAGS; do
8065        if test "x$i" = "x$j"; then
8066          apr_addto_duplicate="1"
8067          break
8068        fi
8069      done
8070      if test $apr_addto_duplicate = "0"; then
8071        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
8072        LDFLAGS="$LDFLAGS $i"
8073      fi
8074    done
8075  fi
8076
8077	;;
8078    *-machten*)
8079
8080  if test "x$LDFLAGS" = "x"; then
8081    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-stack 0x14000\""
8082    LDFLAGS="-stack 0x14000"
8083  else
8084    apr_addto_bugger="-stack 0x14000"
8085    for i in $apr_addto_bugger; do
8086      apr_addto_duplicate="0"
8087      for j in $LDFLAGS; do
8088        if test "x$i" = "x$j"; then
8089          apr_addto_duplicate="1"
8090          break
8091        fi
8092      done
8093      if test $apr_addto_duplicate = "0"; then
8094        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
8095        LDFLAGS="$LDFLAGS $i"
8096      fi
8097    done
8098  fi
8099
8100	;;
8101    *convex-v11*)
8102
8103  if test "x$CPPFLAGS" = "x"; then
8104    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DCONVEXOS11\""
8105    CPPFLAGS="-DCONVEXOS11"
8106  else
8107    apr_addto_bugger="-DCONVEXOS11"
8108    for i in $apr_addto_bugger; do
8109      apr_addto_duplicate="0"
8110      for j in $CPPFLAGS; do
8111        if test "x$i" = "x$j"; then
8112          apr_addto_duplicate="1"
8113          break
8114        fi
8115      done
8116      if test $apr_addto_duplicate = "0"; then
8117        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8118        CPPFLAGS="$CPPFLAGS $i"
8119      fi
8120    done
8121  fi
8122
8123
8124  if test -z "$CFLAGS"; then
8125    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O1\""
8126    CFLAGS="-O1"
8127  fi
8128
8129
8130  if test "x$CFLAGS" = "x"; then
8131    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-ext\""
8132    CFLAGS="-ext"
8133  else
8134    apr_addto_bugger="-ext"
8135    for i in $apr_addto_bugger; do
8136      apr_addto_duplicate="0"
8137      for j in $CFLAGS; do
8138        if test "x$i" = "x$j"; then
8139          apr_addto_duplicate="1"
8140          break
8141        fi
8142      done
8143      if test $apr_addto_duplicate = "0"; then
8144        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8145        CFLAGS="$CFLAGS $i"
8146      fi
8147    done
8148  fi
8149
8150	;;
8151    i860-intel-osf1)
8152
8153  if test "x$CPPFLAGS" = "x"; then
8154    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DPARAGON\""
8155    CPPFLAGS="-DPARAGON"
8156  else
8157    apr_addto_bugger="-DPARAGON"
8158    for i in $apr_addto_bugger; do
8159      apr_addto_duplicate="0"
8160      for j in $CPPFLAGS; do
8161        if test "x$i" = "x$j"; then
8162          apr_addto_duplicate="1"
8163          break
8164        fi
8165      done
8166      if test $apr_addto_duplicate = "0"; then
8167        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8168        CPPFLAGS="$CPPFLAGS $i"
8169      fi
8170    done
8171  fi
8172
8173	;;
8174    *-sequent-ptx2.*.*)
8175
8176  if test "x$CPPFLAGS" = "x"; then
8177    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=20\""
8178    CPPFLAGS="-DSEQUENT=20"
8179  else
8180    apr_addto_bugger="-DSEQUENT=20"
8181    for i in $apr_addto_bugger; do
8182      apr_addto_duplicate="0"
8183      for j in $CPPFLAGS; do
8184        if test "x$i" = "x$j"; then
8185          apr_addto_duplicate="1"
8186          break
8187        fi
8188      done
8189      if test $apr_addto_duplicate = "0"; then
8190        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8191        CPPFLAGS="$CPPFLAGS $i"
8192      fi
8193    done
8194  fi
8195
8196
8197  if test "x$CFLAGS" = "x"; then
8198    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
8199    CFLAGS="-Wc,-pw"
8200  else
8201    apr_addto_bugger="-Wc,-pw"
8202    for i in $apr_addto_bugger; do
8203      apr_addto_duplicate="0"
8204      for j in $CFLAGS; do
8205        if test "x$i" = "x$j"; then
8206          apr_addto_duplicate="1"
8207          break
8208        fi
8209      done
8210      if test $apr_addto_duplicate = "0"; then
8211        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8212        CFLAGS="$CFLAGS $i"
8213      fi
8214    done
8215  fi
8216
8217
8218  if test "x$LIBS" = "x"; then
8219    test "x$silent" != "xyes" && echo "  setting LIBS to \"-linet -lc -lseq\""
8220    LIBS="-linet -lc -lseq"
8221  else
8222    apr_addto_bugger="-linet -lc -lseq"
8223    for i in $apr_addto_bugger; do
8224      apr_addto_duplicate="0"
8225      for j in $LIBS; do
8226        if test "x$i" = "x$j"; then
8227          apr_addto_duplicate="1"
8228          break
8229        fi
8230      done
8231      if test $apr_addto_duplicate = "0"; then
8232        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8233        LIBS="$LIBS $i"
8234      fi
8235    done
8236  fi
8237
8238	;;
8239    *-sequent-ptx4.0.*)
8240
8241  if test "x$CPPFLAGS" = "x"; then
8242    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=40\""
8243    CPPFLAGS="-DSEQUENT=40"
8244  else
8245    apr_addto_bugger="-DSEQUENT=40"
8246    for i in $apr_addto_bugger; do
8247      apr_addto_duplicate="0"
8248      for j in $CPPFLAGS; do
8249        if test "x$i" = "x$j"; then
8250          apr_addto_duplicate="1"
8251          break
8252        fi
8253      done
8254      if test $apr_addto_duplicate = "0"; then
8255        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8256        CPPFLAGS="$CPPFLAGS $i"
8257      fi
8258    done
8259  fi
8260
8261
8262  if test "x$CFLAGS" = "x"; then
8263    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
8264    CFLAGS="-Wc,-pw"
8265  else
8266    apr_addto_bugger="-Wc,-pw"
8267    for i in $apr_addto_bugger; do
8268      apr_addto_duplicate="0"
8269      for j in $CFLAGS; do
8270        if test "x$i" = "x$j"; then
8271          apr_addto_duplicate="1"
8272          break
8273        fi
8274      done
8275      if test $apr_addto_duplicate = "0"; then
8276        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8277        CFLAGS="$CFLAGS $i"
8278      fi
8279    done
8280  fi
8281
8282
8283  if test "x$LIBS" = "x"; then
8284    test "x$silent" != "xyes" && echo "  setting LIBS to \"-linet -lc\""
8285    LIBS="-linet -lc"
8286  else
8287    apr_addto_bugger="-linet -lc"
8288    for i in $apr_addto_bugger; do
8289      apr_addto_duplicate="0"
8290      for j in $LIBS; do
8291        if test "x$i" = "x$j"; then
8292          apr_addto_duplicate="1"
8293          break
8294        fi
8295      done
8296      if test $apr_addto_duplicate = "0"; then
8297        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8298        LIBS="$LIBS $i"
8299      fi
8300    done
8301  fi
8302
8303	;;
8304    *-sequent-ptx4.[123].*)
8305
8306  if test "x$CPPFLAGS" = "x"; then
8307    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=41\""
8308    CPPFLAGS="-DSEQUENT=41"
8309  else
8310    apr_addto_bugger="-DSEQUENT=41"
8311    for i in $apr_addto_bugger; do
8312      apr_addto_duplicate="0"
8313      for j in $CPPFLAGS; do
8314        if test "x$i" = "x$j"; then
8315          apr_addto_duplicate="1"
8316          break
8317        fi
8318      done
8319      if test $apr_addto_duplicate = "0"; then
8320        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8321        CPPFLAGS="$CPPFLAGS $i"
8322      fi
8323    done
8324  fi
8325
8326
8327  if test "x$CFLAGS" = "x"; then
8328    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
8329    CFLAGS="-Wc,-pw"
8330  else
8331    apr_addto_bugger="-Wc,-pw"
8332    for i in $apr_addto_bugger; do
8333      apr_addto_duplicate="0"
8334      for j in $CFLAGS; do
8335        if test "x$i" = "x$j"; then
8336          apr_addto_duplicate="1"
8337          break
8338        fi
8339      done
8340      if test $apr_addto_duplicate = "0"; then
8341        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8342        CFLAGS="$CFLAGS $i"
8343      fi
8344    done
8345  fi
8346
8347
8348  if test "x$LIBS" = "x"; then
8349    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
8350    LIBS="-lc"
8351  else
8352    apr_addto_bugger="-lc"
8353    for i in $apr_addto_bugger; do
8354      apr_addto_duplicate="0"
8355      for j in $LIBS; do
8356        if test "x$i" = "x$j"; then
8357          apr_addto_duplicate="1"
8358          break
8359        fi
8360      done
8361      if test $apr_addto_duplicate = "0"; then
8362        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8363        LIBS="$LIBS $i"
8364      fi
8365    done
8366  fi
8367
8368	;;
8369    *-sequent-ptx4.4.*)
8370
8371  if test "x$CPPFLAGS" = "x"; then
8372    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=44\""
8373    CPPFLAGS="-DSEQUENT=44"
8374  else
8375    apr_addto_bugger="-DSEQUENT=44"
8376    for i in $apr_addto_bugger; do
8377      apr_addto_duplicate="0"
8378      for j in $CPPFLAGS; do
8379        if test "x$i" = "x$j"; then
8380          apr_addto_duplicate="1"
8381          break
8382        fi
8383      done
8384      if test $apr_addto_duplicate = "0"; then
8385        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8386        CPPFLAGS="$CPPFLAGS $i"
8387      fi
8388    done
8389  fi
8390
8391
8392  if test "x$CFLAGS" = "x"; then
8393    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
8394    CFLAGS="-Wc,-pw"
8395  else
8396    apr_addto_bugger="-Wc,-pw"
8397    for i in $apr_addto_bugger; do
8398      apr_addto_duplicate="0"
8399      for j in $CFLAGS; do
8400        if test "x$i" = "x$j"; then
8401          apr_addto_duplicate="1"
8402          break
8403        fi
8404      done
8405      if test $apr_addto_duplicate = "0"; then
8406        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8407        CFLAGS="$CFLAGS $i"
8408      fi
8409    done
8410  fi
8411
8412
8413  if test "x$LIBS" = "x"; then
8414    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
8415    LIBS="-lc"
8416  else
8417    apr_addto_bugger="-lc"
8418    for i in $apr_addto_bugger; do
8419      apr_addto_duplicate="0"
8420      for j in $LIBS; do
8421        if test "x$i" = "x$j"; then
8422          apr_addto_duplicate="1"
8423          break
8424        fi
8425      done
8426      if test $apr_addto_duplicate = "0"; then
8427        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8428        LIBS="$LIBS $i"
8429      fi
8430    done
8431  fi
8432
8433	;;
8434    *-sequent-ptx4.5.*)
8435
8436  if test "x$CPPFLAGS" = "x"; then
8437    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=45\""
8438    CPPFLAGS="-DSEQUENT=45"
8439  else
8440    apr_addto_bugger="-DSEQUENT=45"
8441    for i in $apr_addto_bugger; do
8442      apr_addto_duplicate="0"
8443      for j in $CPPFLAGS; do
8444        if test "x$i" = "x$j"; then
8445          apr_addto_duplicate="1"
8446          break
8447        fi
8448      done
8449      if test $apr_addto_duplicate = "0"; then
8450        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8451        CPPFLAGS="$CPPFLAGS $i"
8452      fi
8453    done
8454  fi
8455
8456
8457  if test "x$CFLAGS" = "x"; then
8458    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
8459    CFLAGS="-Wc,-pw"
8460  else
8461    apr_addto_bugger="-Wc,-pw"
8462    for i in $apr_addto_bugger; do
8463      apr_addto_duplicate="0"
8464      for j in $CFLAGS; do
8465        if test "x$i" = "x$j"; then
8466          apr_addto_duplicate="1"
8467          break
8468        fi
8469      done
8470      if test $apr_addto_duplicate = "0"; then
8471        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8472        CFLAGS="$CFLAGS $i"
8473      fi
8474    done
8475  fi
8476
8477
8478  if test "x$LIBS" = "x"; then
8479    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
8480    LIBS="-lc"
8481  else
8482    apr_addto_bugger="-lc"
8483    for i in $apr_addto_bugger; do
8484      apr_addto_duplicate="0"
8485      for j in $LIBS; do
8486        if test "x$i" = "x$j"; then
8487          apr_addto_duplicate="1"
8488          break
8489        fi
8490      done
8491      if test $apr_addto_duplicate = "0"; then
8492        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8493        LIBS="$LIBS $i"
8494      fi
8495    done
8496  fi
8497
8498	;;
8499    *-sequent-ptx5.0.*)
8500
8501  if test "x$CPPFLAGS" = "x"; then
8502    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=50\""
8503    CPPFLAGS="-DSEQUENT=50"
8504  else
8505    apr_addto_bugger="-DSEQUENT=50"
8506    for i in $apr_addto_bugger; do
8507      apr_addto_duplicate="0"
8508      for j in $CPPFLAGS; do
8509        if test "x$i" = "x$j"; then
8510          apr_addto_duplicate="1"
8511          break
8512        fi
8513      done
8514      if test $apr_addto_duplicate = "0"; then
8515        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8516        CPPFLAGS="$CPPFLAGS $i"
8517      fi
8518    done
8519  fi
8520
8521
8522  if test "x$CFLAGS" = "x"; then
8523    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
8524    CFLAGS="-Wc,-pw"
8525  else
8526    apr_addto_bugger="-Wc,-pw"
8527    for i in $apr_addto_bugger; do
8528      apr_addto_duplicate="0"
8529      for j in $CFLAGS; do
8530        if test "x$i" = "x$j"; then
8531          apr_addto_duplicate="1"
8532          break
8533        fi
8534      done
8535      if test $apr_addto_duplicate = "0"; then
8536        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8537        CFLAGS="$CFLAGS $i"
8538      fi
8539    done
8540  fi
8541
8542
8543  if test "x$LIBS" = "x"; then
8544    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
8545    LIBS="-lc"
8546  else
8547    apr_addto_bugger="-lc"
8548    for i in $apr_addto_bugger; do
8549      apr_addto_duplicate="0"
8550      for j in $LIBS; do
8551        if test "x$i" = "x$j"; then
8552          apr_addto_duplicate="1"
8553          break
8554        fi
8555      done
8556      if test $apr_addto_duplicate = "0"; then
8557        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8558        LIBS="$LIBS $i"
8559      fi
8560    done
8561  fi
8562
8563	;;
8564    *NEWS-OS*)
8565
8566  if test "x$CPPFLAGS" = "x"; then
8567    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNEWSOS\""
8568    CPPFLAGS="-DNEWSOS"
8569  else
8570    apr_addto_bugger="-DNEWSOS"
8571    for i in $apr_addto_bugger; do
8572      apr_addto_duplicate="0"
8573      for j in $CPPFLAGS; do
8574        if test "x$i" = "x$j"; then
8575          apr_addto_duplicate="1"
8576          break
8577        fi
8578      done
8579      if test $apr_addto_duplicate = "0"; then
8580        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8581        CPPFLAGS="$CPPFLAGS $i"
8582      fi
8583    done
8584  fi
8585
8586	;;
8587    *-riscix)
8588
8589  if test "x$CPPFLAGS" = "x"; then
8590    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DRISCIX\""
8591    CPPFLAGS="-DRISCIX"
8592  else
8593    apr_addto_bugger="-DRISCIX"
8594    for i in $apr_addto_bugger; do
8595      apr_addto_duplicate="0"
8596      for j in $CPPFLAGS; do
8597        if test "x$i" = "x$j"; then
8598          apr_addto_duplicate="1"
8599          break
8600        fi
8601      done
8602      if test $apr_addto_duplicate = "0"; then
8603        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8604        CPPFLAGS="$CPPFLAGS $i"
8605      fi
8606    done
8607  fi
8608
8609
8610  if test -z "$CFLAGS"; then
8611    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
8612    CFLAGS="-O"
8613  fi
8614
8615	;;
8616    *-irix*)
8617
8618  if test "x$CPPFLAGS" = "x"; then
8619    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_POSIX_THREAD_SAFE_FUNCTIONS\""
8620    CPPFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
8621  else
8622    apr_addto_bugger="-D_POSIX_THREAD_SAFE_FUNCTIONS"
8623    for i in $apr_addto_bugger; do
8624      apr_addto_duplicate="0"
8625      for j in $CPPFLAGS; do
8626        if test "x$i" = "x$j"; then
8627          apr_addto_duplicate="1"
8628          break
8629        fi
8630      done
8631      if test $apr_addto_duplicate = "0"; then
8632        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8633        CPPFLAGS="$CPPFLAGS $i"
8634      fi
8635    done
8636  fi
8637
8638	;;
8639    *beos*)
8640
8641  if test "x$CPPFLAGS" = "x"; then
8642    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DBEOS\""
8643    CPPFLAGS="-DBEOS"
8644  else
8645    apr_addto_bugger="-DBEOS"
8646    for i in $apr_addto_bugger; do
8647      apr_addto_duplicate="0"
8648      for j in $CPPFLAGS; do
8649        if test "x$i" = "x$j"; then
8650          apr_addto_duplicate="1"
8651          break
8652        fi
8653      done
8654      if test $apr_addto_duplicate = "0"; then
8655        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8656        CPPFLAGS="$CPPFLAGS $i"
8657      fi
8658    done
8659  fi
8660
8661        PLATOSVERS=`uname -r`
8662
8663  if test -z "$apr_process_lock_is_global"; then
8664    test "x$silent" != "xyes" && echo "  setting apr_process_lock_is_global to \"yes\""
8665    apr_process_lock_is_global="yes"
8666  fi
8667
8668        case $PLATOSVERS in
8669            5.0.4)
8670
8671  if test "x$LDFLAGS" = "x"; then
8672    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L/boot/beos/system/lib\""
8673    LDFLAGS="-L/boot/beos/system/lib"
8674  else
8675    apr_addto_bugger="-L/boot/beos/system/lib"
8676    for i in $apr_addto_bugger; do
8677      apr_addto_duplicate="0"
8678      for j in $LDFLAGS; do
8679        if test "x$i" = "x$j"; then
8680          apr_addto_duplicate="1"
8681          break
8682        fi
8683      done
8684      if test $apr_addto_duplicate = "0"; then
8685        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
8686        LDFLAGS="$LDFLAGS $i"
8687      fi
8688    done
8689  fi
8690
8691
8692  if test "x$LIBS" = "x"; then
8693    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbind -lsocket\""
8694    LIBS="-lbind -lsocket"
8695  else
8696    apr_addto_bugger="-lbind -lsocket"
8697    for i in $apr_addto_bugger; do
8698      apr_addto_duplicate="0"
8699      for j in $LIBS; do
8700        if test "x$i" = "x$j"; then
8701          apr_addto_duplicate="1"
8702          break
8703        fi
8704      done
8705      if test $apr_addto_duplicate = "0"; then
8706        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8707        LIBS="$LIBS $i"
8708      fi
8709    done
8710  fi
8711
8712
8713  if test "x$CPPFLAGS" = "x"; then
8714    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DBONE7\""
8715    CPPFLAGS="-DBONE7"
8716  else
8717    apr_addto_bugger="-DBONE7"
8718    for i in $apr_addto_bugger; do
8719      apr_addto_duplicate="0"
8720      for j in $CPPFLAGS; do
8721        if test "x$i" = "x$j"; then
8722          apr_addto_duplicate="1"
8723          break
8724        fi
8725      done
8726      if test $apr_addto_duplicate = "0"; then
8727        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8728        CPPFLAGS="$CPPFLAGS $i"
8729      fi
8730    done
8731  fi
8732
8733                ;;
8734            5.1)
8735
8736  if test "x$LDFLAGS" = "x"; then
8737    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L/boot/beos/system/lib\""
8738    LDFLAGS="-L/boot/beos/system/lib"
8739  else
8740    apr_addto_bugger="-L/boot/beos/system/lib"
8741    for i in $apr_addto_bugger; do
8742      apr_addto_duplicate="0"
8743      for j in $LDFLAGS; do
8744        if test "x$i" = "x$j"; then
8745          apr_addto_duplicate="1"
8746          break
8747        fi
8748      done
8749      if test $apr_addto_duplicate = "0"; then
8750        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
8751        LDFLAGS="$LDFLAGS $i"
8752      fi
8753    done
8754  fi
8755
8756
8757  if test "x$LIBS" = "x"; then
8758    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbind -lsocket\""
8759    LIBS="-lbind -lsocket"
8760  else
8761    apr_addto_bugger="-lbind -lsocket"
8762    for i in $apr_addto_bugger; do
8763      apr_addto_duplicate="0"
8764      for j in $LIBS; do
8765        if test "x$i" = "x$j"; then
8766          apr_addto_duplicate="1"
8767          break
8768        fi
8769      done
8770      if test $apr_addto_duplicate = "0"; then
8771        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8772        LIBS="$LIBS $i"
8773      fi
8774    done
8775  fi
8776
8777                ;;
8778	esac
8779
8780  if test "x$CPPFLAGS" = "x"; then
8781    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSIGPROCMASK_SETS_THREAD_MASK\""
8782    CPPFLAGS="-DSIGPROCMASK_SETS_THREAD_MASK"
8783  else
8784    apr_addto_bugger="-DSIGPROCMASK_SETS_THREAD_MASK"
8785    for i in $apr_addto_bugger; do
8786      apr_addto_duplicate="0"
8787      for j in $CPPFLAGS; do
8788        if test "x$i" = "x$j"; then
8789          apr_addto_duplicate="1"
8790          break
8791        fi
8792      done
8793      if test $apr_addto_duplicate = "0"; then
8794        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8795        CPPFLAGS="$CPPFLAGS $i"
8796      fi
8797    done
8798  fi
8799
8800        ;;
8801    4850-*.*)
8802
8803  if test "x$CPPFLAGS" = "x"; then
8804    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
8805    CPPFLAGS="-DSVR4 -DMPRAS"
8806  else
8807    apr_addto_bugger="-DSVR4 -DMPRAS"
8808    for i in $apr_addto_bugger; do
8809      apr_addto_duplicate="0"
8810      for j in $CPPFLAGS; do
8811        if test "x$i" = "x$j"; then
8812          apr_addto_duplicate="1"
8813          break
8814        fi
8815      done
8816      if test $apr_addto_duplicate = "0"; then
8817        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8818        CPPFLAGS="$CPPFLAGS $i"
8819      fi
8820    done
8821  fi
8822
8823
8824  if test "x$LIBS" = "x"; then
8825    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc -L/usr/ucblib -lucb\""
8826    LIBS="-lc -L/usr/ucblib -lucb"
8827  else
8828    apr_addto_bugger="-lc -L/usr/ucblib -lucb"
8829    for i in $apr_addto_bugger; do
8830      apr_addto_duplicate="0"
8831      for j in $LIBS; do
8832        if test "x$i" = "x$j"; then
8833          apr_addto_duplicate="1"
8834          break
8835        fi
8836      done
8837      if test $apr_addto_duplicate = "0"; then
8838        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8839        LIBS="$LIBS $i"
8840      fi
8841    done
8842  fi
8843
8844	;;
8845    drs6000*)
8846
8847  if test "x$CPPFLAGS" = "x"; then
8848    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
8849    CPPFLAGS="-DSVR4"
8850  else
8851    apr_addto_bugger="-DSVR4"
8852    for i in $apr_addto_bugger; do
8853      apr_addto_duplicate="0"
8854      for j in $CPPFLAGS; do
8855        if test "x$i" = "x$j"; then
8856          apr_addto_duplicate="1"
8857          break
8858        fi
8859      done
8860      if test $apr_addto_duplicate = "0"; then
8861        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8862        CPPFLAGS="$CPPFLAGS $i"
8863      fi
8864    done
8865  fi
8866
8867
8868  if test "x$LIBS" = "x"; then
8869    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc -L/usr/ucblib -lucb\""
8870    LIBS="-lc -L/usr/ucblib -lucb"
8871  else
8872    apr_addto_bugger="-lc -L/usr/ucblib -lucb"
8873    for i in $apr_addto_bugger; do
8874      apr_addto_duplicate="0"
8875      for j in $LIBS; do
8876        if test "x$i" = "x$j"; then
8877          apr_addto_duplicate="1"
8878          break
8879        fi
8880      done
8881      if test $apr_addto_duplicate = "0"; then
8882        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8883        LIBS="$LIBS $i"
8884      fi
8885    done
8886  fi
8887
8888	;;
8889    m88k-*-CX/SX|CYBER)
8890
8891  if test "x$CPPFLAGS" = "x"; then
8892    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_CX_SX\""
8893    CPPFLAGS="-D_CX_SX"
8894  else
8895    apr_addto_bugger="-D_CX_SX"
8896    for i in $apr_addto_bugger; do
8897      apr_addto_duplicate="0"
8898      for j in $CPPFLAGS; do
8899        if test "x$i" = "x$j"; then
8900          apr_addto_duplicate="1"
8901          break
8902        fi
8903      done
8904      if test $apr_addto_duplicate = "0"; then
8905        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8906        CPPFLAGS="$CPPFLAGS $i"
8907      fi
8908    done
8909  fi
8910
8911
8912  if test "x$CFLAGS" = "x"; then
8913    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Xa\""
8914    CFLAGS="-Xa"
8915  else
8916    apr_addto_bugger="-Xa"
8917    for i in $apr_addto_bugger; do
8918      apr_addto_duplicate="0"
8919      for j in $CFLAGS; do
8920        if test "x$i" = "x$j"; then
8921          apr_addto_duplicate="1"
8922          break
8923        fi
8924      done
8925      if test $apr_addto_duplicate = "0"; then
8926        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8927        CFLAGS="$CFLAGS $i"
8928      fi
8929    done
8930  fi
8931
8932	;;
8933    *-tandem-oss)
8934
8935  if test "x$CPPFLAGS" = "x"; then
8936    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1\""
8937    CPPFLAGS="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
8938  else
8939    apr_addto_bugger="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
8940    for i in $apr_addto_bugger; do
8941      apr_addto_duplicate="0"
8942      for j in $CPPFLAGS; do
8943        if test "x$i" = "x$j"; then
8944          apr_addto_duplicate="1"
8945          break
8946        fi
8947      done
8948      if test $apr_addto_duplicate = "0"; then
8949        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8950        CPPFLAGS="$CPPFLAGS $i"
8951      fi
8952    done
8953  fi
8954
8955	;;
8956    *-ibm-os390)
8957
8958  if test -z "$apr_lock_method"; then
8959    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
8960    apr_lock_method="USE_SYSVSEM_SERIALIZE"
8961  fi
8962
8963
8964  if test -z "$apr_sysvsem_is_global"; then
8965    test "x$silent" != "xyes" && echo "  setting apr_sysvsem_is_global to \"yes\""
8966    apr_sysvsem_is_global="yes"
8967  fi
8968
8969
8970  if test -z "$apr_gethostbyname_is_thread_safe"; then
8971    test "x$silent" != "xyes" && echo "  setting apr_gethostbyname_is_thread_safe to \"yes\""
8972    apr_gethostbyname_is_thread_safe="yes"
8973  fi
8974
8975
8976  if test -z "$apr_gethostbyaddr_is_thread_safe"; then
8977    test "x$silent" != "xyes" && echo "  setting apr_gethostbyaddr_is_thread_safe to \"yes\""
8978    apr_gethostbyaddr_is_thread_safe="yes"
8979  fi
8980
8981
8982  if test -z "$apr_getservbyname_is_thread_safe"; then
8983    test "x$silent" != "xyes" && echo "  setting apr_getservbyname_is_thread_safe to \"yes\""
8984    apr_getservbyname_is_thread_safe="yes"
8985  fi
8986
8987
8988$as_echo "#define HAVE_ZOS_PTHREADS 1" >>confdefs.h
8989
8990
8991  if test "x$CPPFLAGS" = "x"; then
8992    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1\""
8993    CPPFLAGS="-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
8994  else
8995    apr_addto_bugger="-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
8996    for i in $apr_addto_bugger; do
8997      apr_addto_duplicate="0"
8998      for j in $CPPFLAGS; do
8999        if test "x$i" = "x$j"; then
9000          apr_addto_duplicate="1"
9001          break
9002        fi
9003      done
9004      if test $apr_addto_duplicate = "0"; then
9005        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
9006        CPPFLAGS="$CPPFLAGS $i"
9007      fi
9008    done
9009  fi
9010
9011        ;;
9012    *-ibm-as400)
9013
9014  if test -z "$apr_lock_method"; then
9015    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
9016    apr_lock_method="USE_SYSVSEM_SERIALIZE"
9017  fi
9018
9019
9020  if test -z "$apr_process_lock_is_global"; then
9021    test "x$silent" != "xyes" && echo "  setting apr_process_lock_is_global to \"yes\""
9022    apr_process_lock_is_global="yes"
9023  fi
9024
9025
9026  if test -z "$apr_gethostbyname_is_thread_safe"; then
9027    test "x$silent" != "xyes" && echo "  setting apr_gethostbyname_is_thread_safe to \"yes\""
9028    apr_gethostbyname_is_thread_safe="yes"
9029  fi
9030
9031
9032  if test -z "$apr_gethostbyaddr_is_thread_safe"; then
9033    test "x$silent" != "xyes" && echo "  setting apr_gethostbyaddr_is_thread_safe to \"yes\""
9034    apr_gethostbyaddr_is_thread_safe="yes"
9035  fi
9036
9037
9038  if test -z "$apr_getservbyname_is_thread_safe"; then
9039    test "x$silent" != "xyes" && echo "  setting apr_getservbyname_is_thread_safe to \"yes\""
9040    apr_getservbyname_is_thread_safe="yes"
9041  fi
9042
9043        ;;
9044    *mingw*)
9045
9046  if test "x$INTERNAL_CPPFLAGS" = "x"; then
9047    test "x$silent" != "xyes" && echo "  setting INTERNAL_CPPFLAGS to \"-DBINPATH=$apr_builddir/test/.libs\""
9048    INTERNAL_CPPFLAGS="-DBINPATH=$apr_builddir/test/.libs"
9049  else
9050    apr_addto_bugger="-DBINPATH=$apr_builddir/test/.libs"
9051    for i in $apr_addto_bugger; do
9052      apr_addto_duplicate="0"
9053      for j in $INTERNAL_CPPFLAGS; do
9054        if test "x$i" = "x$j"; then
9055          apr_addto_duplicate="1"
9056          break
9057        fi
9058      done
9059      if test $apr_addto_duplicate = "0"; then
9060        test "x$silent" != "xyes" && echo "  adding \"$i\" to INTERNAL_CPPFLAGS"
9061        INTERNAL_CPPFLAGS="$INTERNAL_CPPFLAGS $i"
9062      fi
9063    done
9064  fi
9065
9066
9067  if test "x$CPPFLAGS" = "x"; then
9068    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DWIN32 -D__MSVCRT__\""
9069    CPPFLAGS="-DWIN32 -D__MSVCRT__"
9070  else
9071    apr_addto_bugger="-DWIN32 -D__MSVCRT__"
9072    for i in $apr_addto_bugger; do
9073      apr_addto_duplicate="0"
9074      for j in $CPPFLAGS; do
9075        if test "x$i" = "x$j"; then
9076          apr_addto_duplicate="1"
9077          break
9078        fi
9079      done
9080      if test $apr_addto_duplicate = "0"; then
9081        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
9082        CPPFLAGS="$CPPFLAGS $i"
9083      fi
9084    done
9085  fi
9086
9087
9088  if test "x$LDFLAGS" = "x"; then
9089    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Wl,--enable-auto-import,--subsystem,console\""
9090    LDFLAGS="-Wl,--enable-auto-import,--subsystem,console"
9091  else
9092    apr_addto_bugger="-Wl,--enable-auto-import,--subsystem,console"
9093    for i in $apr_addto_bugger; do
9094      apr_addto_duplicate="0"
9095      for j in $LDFLAGS; do
9096        if test "x$i" = "x$j"; then
9097          apr_addto_duplicate="1"
9098          break
9099        fi
9100      done
9101      if test $apr_addto_duplicate = "0"; then
9102        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
9103        LDFLAGS="$LDFLAGS $i"
9104      fi
9105    done
9106  fi
9107
9108
9109  if test -z "$have_unicode_fs"; then
9110    test "x$silent" != "xyes" && echo "  setting have_unicode_fs to \"1\""
9111    have_unicode_fs="1"
9112  fi
9113
9114
9115  if test -z "$have_proc_invoked"; then
9116    test "x$silent" != "xyes" && echo "  setting have_proc_invoked to \"1\""
9117    have_proc_invoked="1"
9118  fi
9119
9120
9121  if test -z "$apr_lock_method"; then
9122    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"win32\""
9123    apr_lock_method="win32"
9124  fi
9125
9126
9127  if test -z "$apr_process_lock_is_global"; then
9128    test "x$silent" != "xyes" && echo "  setting apr_process_lock_is_global to \"yes\""
9129    apr_process_lock_is_global="yes"
9130  fi
9131
9132
9133  if test -z "$apr_cv_use_lfs64"; then
9134    test "x$silent" != "xyes" && echo "  setting apr_cv_use_lfs64 to \"yes\""
9135    apr_cv_use_lfs64="yes"
9136  fi
9137
9138
9139  if test -z "$apr_cv_osuuid"; then
9140    test "x$silent" != "xyes" && echo "  setting apr_cv_osuuid to \"yes\""
9141    apr_cv_osuuid="yes"
9142  fi
9143
9144
9145  if test -z "$apr_cv_tcp_nodelay_with_cork"; then
9146    test "x$silent" != "xyes" && echo "  setting apr_cv_tcp_nodelay_with_cork to \"no\""
9147    apr_cv_tcp_nodelay_with_cork="no"
9148  fi
9149
9150
9151  if test -z "$apr_thread_func"; then
9152    test "x$silent" != "xyes" && echo "  setting apr_thread_func to \"__stdcall\""
9153    apr_thread_func="__stdcall"
9154  fi
9155
9156
9157  if test -z "$ac_cv_o_nonblock_inherited"; then
9158    test "x$silent" != "xyes" && echo "  setting ac_cv_o_nonblock_inherited to \"yes\""
9159    ac_cv_o_nonblock_inherited="yes"
9160  fi
9161
9162
9163  if test -z "$ac_cv_tcp_nodelay_inherited"; then
9164    test "x$silent" != "xyes" && echo "  setting ac_cv_tcp_nodelay_inherited to \"yes\""
9165    ac_cv_tcp_nodelay_inherited="yes"
9166  fi
9167
9168
9169  if test -z "$ac_cv_file__dev_zero"; then
9170    test "x$silent" != "xyes" && echo "  setting ac_cv_file__dev_zero to \"no\""
9171    ac_cv_file__dev_zero="no"
9172  fi
9173
9174
9175  if test -z "$ac_cv_func_setpgrp_void"; then
9176    test "x$silent" != "xyes" && echo "  setting ac_cv_func_setpgrp_void to \"no\""
9177    ac_cv_func_setpgrp_void="no"
9178  fi
9179
9180
9181  if test -z "$ac_cv_func_mmap"; then
9182    test "x$silent" != "xyes" && echo "  setting ac_cv_func_mmap to \"yes\""
9183    ac_cv_func_mmap="yes"
9184  fi
9185
9186
9187  if test -z "$ac_cv_define_sockaddr_in6"; then
9188    test "x$silent" != "xyes" && echo "  setting ac_cv_define_sockaddr_in6 to \"yes\""
9189    ac_cv_define_sockaddr_in6="yes"
9190  fi
9191
9192
9193  if test -z "$ac_cv_working_getaddrinfo"; then
9194    test "x$silent" != "xyes" && echo "  setting ac_cv_working_getaddrinfo to \"yes\""
9195    ac_cv_working_getaddrinfo="yes"
9196  fi
9197
9198
9199  if test -z "$ac_cv_working_getnameinfo"; then
9200    test "x$silent" != "xyes" && echo "  setting ac_cv_working_getnameinfo to \"yes\""
9201    ac_cv_working_getnameinfo="yes"
9202  fi
9203
9204
9205  if test -z "$ac_cv_func_gai_strerror"; then
9206    test "x$silent" != "xyes" && echo "  setting ac_cv_func_gai_strerror to \"yes\""
9207    ac_cv_func_gai_strerror="yes"
9208  fi
9209
9210        case $host in
9211            *mingw32*)
9212
9213  if test -z "$apr_has_xthread_files"; then
9214    test "x$silent" != "xyes" && echo "  setting apr_has_xthread_files to \"1\""
9215    apr_has_xthread_files="1"
9216  fi
9217
9218
9219  if test -z "$apr_has_user"; then
9220    test "x$silent" != "xyes" && echo "  setting apr_has_user to \"1\""
9221    apr_has_user="1"
9222  fi
9223
9224
9225  if test -z "$apr_procattr_user_set_requires_password"; then
9226    test "x$silent" != "xyes" && echo "  setting apr_procattr_user_set_requires_password to \"1\""
9227    apr_procattr_user_set_requires_password="1"
9228  fi
9229
9230
9231  if test -z "$ac_cv_func_sendfile"; then
9232    test "x$silent" != "xyes" && echo "  setting ac_cv_func_sendfile to \"yes\""
9233    ac_cv_func_sendfile="yes"
9234  fi
9235
9236                ;;
9237            *mingwce)
9238
9239  if test -z "$apr_has_xthread_files"; then
9240    test "x$silent" != "xyes" && echo "  setting apr_has_xthread_files to \"0\""
9241    apr_has_xthread_files="0"
9242  fi
9243
9244
9245  if test -z "$apr_has_user"; then
9246    test "x$silent" != "xyes" && echo "  setting apr_has_user to \"0\""
9247    apr_has_user="0"
9248  fi
9249
9250
9251  if test -z "$apr_procattr_user_set_requires_password"; then
9252    test "x$silent" != "xyes" && echo "  setting apr_procattr_user_set_requires_password to \"0\""
9253    apr_procattr_user_set_requires_password="0"
9254  fi
9255
9256
9257  if test -z "$ac_cv_func_sendfile"; then
9258    test "x$silent" != "xyes" && echo "  setting ac_cv_func_sendfile to \"no\""
9259    ac_cv_func_sendfile="no"
9260  fi
9261
9262                ;;
9263        esac
9264        ;;
9265  esac
9266
9267fi
9268
9269
9270DEFAULT_OSDIR="unix"
9271echo "(Default will be ${DEFAULT_OSDIR})"
9272
9273apr_modules="file_io network_io threadproc misc locks time mmap shmem user memory atomic poll support random"
9274
9275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9276$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9277set x ${MAKE-make}
9278ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9279if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9280  $as_echo_n "(cached) " >&6
9281else
9282  cat >conftest.make <<\_ACEOF
9283SHELL = /bin/sh
9284all:
9285	@echo '@@@%%%=$(MAKE)=@@@%%%'
9286_ACEOF
9287# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9288case `${MAKE-make} -f conftest.make 2>/dev/null` in
9289  *@@@%%%=?*=@@@%%%*)
9290    eval ac_cv_prog_make_${ac_make}_set=yes;;
9291  *)
9292    eval ac_cv_prog_make_${ac_make}_set=no;;
9293esac
9294rm -f conftest.make
9295fi
9296if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9298$as_echo "yes" >&6; }
9299  SET_MAKE=
9300else
9301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9302$as_echo "no" >&6; }
9303  SET_MAKE="MAKE=${MAKE-make}"
9304fi
9305
9306ac_ext=c
9307ac_cpp='$CPP $CPPFLAGS'
9308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9310ac_compiler_gnu=$ac_cv_c_compiler_gnu
9311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9312$as_echo_n "checking how to run the C preprocessor... " >&6; }
9313# On Suns, sometimes $CPP names a directory.
9314if test -n "$CPP" && test -d "$CPP"; then
9315  CPP=
9316fi
9317if test -z "$CPP"; then
9318  if ${ac_cv_prog_CPP+:} false; then :
9319  $as_echo_n "(cached) " >&6
9320else
9321      # Double quotes because CPP needs to be expanded
9322    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9323    do
9324      ac_preproc_ok=false
9325for ac_c_preproc_warn_flag in '' yes
9326do
9327  # Use a header file that comes with gcc, so configuring glibc
9328  # with a fresh cross-compiler works.
9329  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9330  # <limits.h> exists even on freestanding compilers.
9331  # On the NeXT, cc -E runs the code through the compiler's parser,
9332  # not just through cpp. "Syntax error" is here to catch this case.
9333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334/* end confdefs.h.  */
9335#ifdef __STDC__
9336# include <limits.h>
9337#else
9338# include <assert.h>
9339#endif
9340		     Syntax error
9341_ACEOF
9342if ac_fn_c_try_cpp "$LINENO"; then :
9343
9344else
9345  # Broken: fails on valid input.
9346continue
9347fi
9348rm -f conftest.err conftest.i conftest.$ac_ext
9349
9350  # OK, works on sane cases.  Now check whether nonexistent headers
9351  # can be detected and how.
9352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353/* end confdefs.h.  */
9354#include <ac_nonexistent.h>
9355_ACEOF
9356if ac_fn_c_try_cpp "$LINENO"; then :
9357  # Broken: success on invalid input.
9358continue
9359else
9360  # Passes both tests.
9361ac_preproc_ok=:
9362break
9363fi
9364rm -f conftest.err conftest.i conftest.$ac_ext
9365
9366done
9367# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9368rm -f conftest.i conftest.err conftest.$ac_ext
9369if $ac_preproc_ok; then :
9370  break
9371fi
9372
9373    done
9374    ac_cv_prog_CPP=$CPP
9375
9376fi
9377  CPP=$ac_cv_prog_CPP
9378else
9379  ac_cv_prog_CPP=$CPP
9380fi
9381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9382$as_echo "$CPP" >&6; }
9383ac_preproc_ok=false
9384for ac_c_preproc_warn_flag in '' yes
9385do
9386  # Use a header file that comes with gcc, so configuring glibc
9387  # with a fresh cross-compiler works.
9388  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9389  # <limits.h> exists even on freestanding compilers.
9390  # On the NeXT, cc -E runs the code through the compiler's parser,
9391  # not just through cpp. "Syntax error" is here to catch this case.
9392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393/* end confdefs.h.  */
9394#ifdef __STDC__
9395# include <limits.h>
9396#else
9397# include <assert.h>
9398#endif
9399		     Syntax error
9400_ACEOF
9401if ac_fn_c_try_cpp "$LINENO"; then :
9402
9403else
9404  # Broken: fails on valid input.
9405continue
9406fi
9407rm -f conftest.err conftest.i conftest.$ac_ext
9408
9409  # OK, works on sane cases.  Now check whether nonexistent headers
9410  # can be detected and how.
9411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412/* end confdefs.h.  */
9413#include <ac_nonexistent.h>
9414_ACEOF
9415if ac_fn_c_try_cpp "$LINENO"; then :
9416  # Broken: success on invalid input.
9417continue
9418else
9419  # Passes both tests.
9420ac_preproc_ok=:
9421break
9422fi
9423rm -f conftest.err conftest.i conftest.$ac_ext
9424
9425done
9426# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9427rm -f conftest.i conftest.err conftest.$ac_ext
9428if $ac_preproc_ok; then :
9429
9430else
9431  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9433as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9434See \`config.log' for more details" "$LINENO" 5; }
9435fi
9436
9437ac_ext=c
9438ac_cpp='$CPP $CPPFLAGS'
9439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9441ac_compiler_gnu=$ac_cv_c_compiler_gnu
9442
9443for ac_prog in gawk mawk nawk awk
9444do
9445  # Extract the first word of "$ac_prog", so it can be a program name with args.
9446set dummy $ac_prog; ac_word=$2
9447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9448$as_echo_n "checking for $ac_word... " >&6; }
9449if ${ac_cv_prog_AWK+:} false; then :
9450  $as_echo_n "(cached) " >&6
9451else
9452  if test -n "$AWK"; then
9453  ac_cv_prog_AWK="$AWK" # Let the user override the test.
9454else
9455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9456for as_dir in $PATH
9457do
9458  IFS=$as_save_IFS
9459  test -z "$as_dir" && as_dir=.
9460    for ac_exec_ext in '' $ac_executable_extensions; do
9461  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9462    ac_cv_prog_AWK="$ac_prog"
9463    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9464    break 2
9465  fi
9466done
9467  done
9468IFS=$as_save_IFS
9469
9470fi
9471fi
9472AWK=$ac_cv_prog_AWK
9473if test -n "$AWK"; then
9474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9475$as_echo "$AWK" >&6; }
9476else
9477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9478$as_echo "no" >&6; }
9479fi
9480
9481
9482  test -n "$AWK" && break
9483done
9484
9485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9486$as_echo_n "checking whether ln -s works... " >&6; }
9487LN_S=$as_ln_s
9488if test "$LN_S" = "ln -s"; then
9489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9490$as_echo "yes" >&6; }
9491else
9492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9493$as_echo "no, using $LN_S" >&6; }
9494fi
9495
9496if test -n "$ac_tool_prefix"; then
9497  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9498set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9500$as_echo_n "checking for $ac_word... " >&6; }
9501if ${ac_cv_prog_RANLIB+:} false; then :
9502  $as_echo_n "(cached) " >&6
9503else
9504  if test -n "$RANLIB"; then
9505  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9506else
9507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9508for as_dir in $PATH
9509do
9510  IFS=$as_save_IFS
9511  test -z "$as_dir" && as_dir=.
9512    for ac_exec_ext in '' $ac_executable_extensions; do
9513  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9514    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9516    break 2
9517  fi
9518done
9519  done
9520IFS=$as_save_IFS
9521
9522fi
9523fi
9524RANLIB=$ac_cv_prog_RANLIB
9525if test -n "$RANLIB"; then
9526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9527$as_echo "$RANLIB" >&6; }
9528else
9529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9530$as_echo "no" >&6; }
9531fi
9532
9533
9534fi
9535if test -z "$ac_cv_prog_RANLIB"; then
9536  ac_ct_RANLIB=$RANLIB
9537  # Extract the first word of "ranlib", so it can be a program name with args.
9538set dummy ranlib; ac_word=$2
9539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9540$as_echo_n "checking for $ac_word... " >&6; }
9541if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9542  $as_echo_n "(cached) " >&6
9543else
9544  if test -n "$ac_ct_RANLIB"; then
9545  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9546else
9547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9548for as_dir in $PATH
9549do
9550  IFS=$as_save_IFS
9551  test -z "$as_dir" && as_dir=.
9552    for ac_exec_ext in '' $ac_executable_extensions; do
9553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9554    ac_cv_prog_ac_ct_RANLIB="ranlib"
9555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9556    break 2
9557  fi
9558done
9559  done
9560IFS=$as_save_IFS
9561
9562fi
9563fi
9564ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9565if test -n "$ac_ct_RANLIB"; then
9566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9567$as_echo "$ac_ct_RANLIB" >&6; }
9568else
9569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9570$as_echo "no" >&6; }
9571fi
9572
9573  if test "x$ac_ct_RANLIB" = x; then
9574    RANLIB=":"
9575  else
9576    case $cross_compiling:$ac_tool_warned in
9577yes:)
9578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9580ac_tool_warned=yes ;;
9581esac
9582    RANLIB=$ac_ct_RANLIB
9583  fi
9584else
9585  RANLIB="$ac_cv_prog_RANLIB"
9586fi
9587
9588# Find a good install program.  We prefer a C program (faster),
9589# so one script is as good as another.  But avoid the broken or
9590# incompatible versions:
9591# SysV /etc/install, /usr/sbin/install
9592# SunOS /usr/etc/install
9593# IRIX /sbin/install
9594# AIX /bin/install
9595# AmigaOS /C/install, which installs bootblocks on floppy discs
9596# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9597# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9598# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9599# OS/2's system install, which has a completely different semantic
9600# ./install, which can be erroneously created by make from ./install.sh.
9601# Reject install programs that cannot install multiple files.
9602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9603$as_echo_n "checking for a BSD-compatible install... " >&6; }
9604if test -z "$INSTALL"; then
9605if ${ac_cv_path_install+:} false; then :
9606  $as_echo_n "(cached) " >&6
9607else
9608  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9609for as_dir in $PATH
9610do
9611  IFS=$as_save_IFS
9612  test -z "$as_dir" && as_dir=.
9613    # Account for people who put trailing slashes in PATH elements.
9614case $as_dir/ in #((
9615  ./ | .// | /[cC]/* | \
9616  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9617  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9618  /usr/ucb/* ) ;;
9619  *)
9620    # OSF1 and SCO ODT 3.0 have their own names for install.
9621    # Don't use installbsd from OSF since it installs stuff as root
9622    # by default.
9623    for ac_prog in ginstall scoinst install; do
9624      for ac_exec_ext in '' $ac_executable_extensions; do
9625	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9626	  if test $ac_prog = install &&
9627	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9628	    # AIX install.  It has an incompatible calling convention.
9629	    :
9630	  elif test $ac_prog = install &&
9631	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9632	    # program-specific install script used by HP pwplus--don't use.
9633	    :
9634	  else
9635	    rm -rf conftest.one conftest.two conftest.dir
9636	    echo one > conftest.one
9637	    echo two > conftest.two
9638	    mkdir conftest.dir
9639	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9640	      test -s conftest.one && test -s conftest.two &&
9641	      test -s conftest.dir/conftest.one &&
9642	      test -s conftest.dir/conftest.two
9643	    then
9644	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9645	      break 3
9646	    fi
9647	  fi
9648	fi
9649      done
9650    done
9651    ;;
9652esac
9653
9654  done
9655IFS=$as_save_IFS
9656
9657rm -rf conftest.one conftest.two conftest.dir
9658
9659fi
9660  if test "${ac_cv_path_install+set}" = set; then
9661    INSTALL=$ac_cv_path_install
9662  else
9663    # As a last resort, use the slow shell script.  Don't cache a
9664    # value for INSTALL within a source directory, because that will
9665    # break other packages using the cache if that directory is
9666    # removed, or if the value is a relative name.
9667    INSTALL=$ac_install_sh
9668  fi
9669fi
9670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9671$as_echo "$INSTALL" >&6; }
9672
9673# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9674# It thinks the first close brace ends the variable substitution.
9675test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9676
9677test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9678
9679test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9680
9681# Extract the first word of "rm", so it can be a program name with args.
9682set dummy rm; ac_word=$2
9683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9684$as_echo_n "checking for $ac_word... " >&6; }
9685if ${ac_cv_prog_RM+:} false; then :
9686  $as_echo_n "(cached) " >&6
9687else
9688  if test -n "$RM"; then
9689  ac_cv_prog_RM="$RM" # Let the user override the test.
9690else
9691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692for as_dir in $PATH
9693do
9694  IFS=$as_save_IFS
9695  test -z "$as_dir" && as_dir=.
9696    for ac_exec_ext in '' $ac_executable_extensions; do
9697  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9698    ac_cv_prog_RM="rm"
9699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9700    break 2
9701  fi
9702done
9703  done
9704IFS=$as_save_IFS
9705
9706fi
9707fi
9708RM=$ac_cv_prog_RM
9709if test -n "$RM"; then
9710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9711$as_echo "$RM" >&6; }
9712else
9713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714$as_echo "no" >&6; }
9715fi
9716
9717
9718# Extract the first word of "as", so it can be a program name with args.
9719set dummy as; ac_word=$2
9720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9721$as_echo_n "checking for $ac_word... " >&6; }
9722if ${ac_cv_prog_AS+:} false; then :
9723  $as_echo_n "(cached) " >&6
9724else
9725  if test -n "$AS"; then
9726  ac_cv_prog_AS="$AS" # Let the user override the test.
9727else
9728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9729for as_dir in $PATH
9730do
9731  IFS=$as_save_IFS
9732  test -z "$as_dir" && as_dir=.
9733    for ac_exec_ext in '' $ac_executable_extensions; do
9734  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9735    ac_cv_prog_AS="as"
9736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9737    break 2
9738  fi
9739done
9740  done
9741IFS=$as_save_IFS
9742
9743fi
9744fi
9745AS=$ac_cv_prog_AS
9746if test -n "$AS"; then
9747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9748$as_echo "$AS" >&6; }
9749else
9750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9751$as_echo "no" >&6; }
9752fi
9753
9754
9755# Extract the first word of "cpp", so it can be a program name with args.
9756set dummy cpp; ac_word=$2
9757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9758$as_echo_n "checking for $ac_word... " >&6; }
9759if ${ac_cv_prog_ASCPP+:} false; then :
9760  $as_echo_n "(cached) " >&6
9761else
9762  if test -n "$ASCPP"; then
9763  ac_cv_prog_ASCPP="$ASCPP" # Let the user override the test.
9764else
9765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9766for as_dir in $PATH
9767do
9768  IFS=$as_save_IFS
9769  test -z "$as_dir" && as_dir=.
9770    for ac_exec_ext in '' $ac_executable_extensions; do
9771  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9772    ac_cv_prog_ASCPP="cpp"
9773    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9774    break 2
9775  fi
9776done
9777  done
9778IFS=$as_save_IFS
9779
9780fi
9781fi
9782ASCPP=$ac_cv_prog_ASCPP
9783if test -n "$ASCPP"; then
9784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCPP" >&5
9785$as_echo "$ASCPP" >&6; }
9786else
9787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9788$as_echo "no" >&6; }
9789fi
9790
9791
9792if test -n "$ac_tool_prefix"; then
9793  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9794set dummy ${ac_tool_prefix}ar; ac_word=$2
9795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9796$as_echo_n "checking for $ac_word... " >&6; }
9797if ${ac_cv_prog_AR+:} false; then :
9798  $as_echo_n "(cached) " >&6
9799else
9800  if test -n "$AR"; then
9801  ac_cv_prog_AR="$AR" # Let the user override the test.
9802else
9803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9804for as_dir in $PATH
9805do
9806  IFS=$as_save_IFS
9807  test -z "$as_dir" && as_dir=.
9808    for ac_exec_ext in '' $ac_executable_extensions; do
9809  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9810    ac_cv_prog_AR="${ac_tool_prefix}ar"
9811    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9812    break 2
9813  fi
9814done
9815  done
9816IFS=$as_save_IFS
9817
9818fi
9819fi
9820AR=$ac_cv_prog_AR
9821if test -n "$AR"; then
9822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9823$as_echo "$AR" >&6; }
9824else
9825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9826$as_echo "no" >&6; }
9827fi
9828
9829
9830fi
9831if test -z "$ac_cv_prog_AR"; then
9832  ac_ct_AR=$AR
9833  # Extract the first word of "ar", so it can be a program name with args.
9834set dummy ar; ac_word=$2
9835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9836$as_echo_n "checking for $ac_word... " >&6; }
9837if ${ac_cv_prog_ac_ct_AR+:} false; then :
9838  $as_echo_n "(cached) " >&6
9839else
9840  if test -n "$ac_ct_AR"; then
9841  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9842else
9843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9844for as_dir in $PATH
9845do
9846  IFS=$as_save_IFS
9847  test -z "$as_dir" && as_dir=.
9848    for ac_exec_ext in '' $ac_executable_extensions; do
9849  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9850    ac_cv_prog_ac_ct_AR="ar"
9851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9852    break 2
9853  fi
9854done
9855  done
9856IFS=$as_save_IFS
9857
9858fi
9859fi
9860ac_ct_AR=$ac_cv_prog_ac_ct_AR
9861if test -n "$ac_ct_AR"; then
9862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9863$as_echo "$ac_ct_AR" >&6; }
9864else
9865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866$as_echo "no" >&6; }
9867fi
9868
9869  if test "x$ac_ct_AR" = x; then
9870    AR="ar"
9871  else
9872    case $cross_compiling:$ac_tool_warned in
9873yes:)
9874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9876ac_tool_warned=yes ;;
9877esac
9878    AR=$ac_ct_AR
9879  fi
9880else
9881  AR="$ac_cv_prog_AR"
9882fi
9883
9884
9885
9886
9887
9888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
9889$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
9890if ${ac_cv_path_GREP+:} false; then :
9891  $as_echo_n "(cached) " >&6
9892else
9893  if test -z "$GREP"; then
9894  ac_path_GREP_found=false
9895  # Loop through the user's path and test for each of PROGNAME-LIST
9896  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9897for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9898do
9899  IFS=$as_save_IFS
9900  test -z "$as_dir" && as_dir=.
9901    for ac_prog in grep ggrep; do
9902    for ac_exec_ext in '' $ac_executable_extensions; do
9903      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
9904      as_fn_executable_p "$ac_path_GREP" || continue
9905# Check for GNU ac_path_GREP and select it if it is found.
9906  # Check for GNU $ac_path_GREP
9907case `"$ac_path_GREP" --version 2>&1` in
9908*GNU*)
9909  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
9910*)
9911  ac_count=0
9912  $as_echo_n 0123456789 >"conftest.in"
9913  while :
9914  do
9915    cat "conftest.in" "conftest.in" >"conftest.tmp"
9916    mv "conftest.tmp" "conftest.in"
9917    cp "conftest.in" "conftest.nl"
9918    $as_echo 'GREP' >> "conftest.nl"
9919    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9920    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9921    as_fn_arith $ac_count + 1 && ac_count=$as_val
9922    if test $ac_count -gt ${ac_path_GREP_max-0}; then
9923      # Best one so far, save it but keep looking for a better one
9924      ac_cv_path_GREP="$ac_path_GREP"
9925      ac_path_GREP_max=$ac_count
9926    fi
9927    # 10*(2^10) chars as input seems more than enough
9928    test $ac_count -gt 10 && break
9929  done
9930  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9931esac
9932
9933      $ac_path_GREP_found && break 3
9934    done
9935  done
9936  done
9937IFS=$as_save_IFS
9938  if test -z "$ac_cv_path_GREP"; then
9939    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9940  fi
9941else
9942  ac_cv_path_GREP=$GREP
9943fi
9944
9945fi
9946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
9947$as_echo "$ac_cv_path_GREP" >&6; }
9948 GREP="$ac_cv_path_GREP"
9949
9950
9951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9952$as_echo_n "checking for egrep... " >&6; }
9953if ${ac_cv_path_EGREP+:} false; then :
9954  $as_echo_n "(cached) " >&6
9955else
9956  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9957   then ac_cv_path_EGREP="$GREP -E"
9958   else
9959     if test -z "$EGREP"; then
9960  ac_path_EGREP_found=false
9961  # Loop through the user's path and test for each of PROGNAME-LIST
9962  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9963for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9964do
9965  IFS=$as_save_IFS
9966  test -z "$as_dir" && as_dir=.
9967    for ac_prog in egrep; do
9968    for ac_exec_ext in '' $ac_executable_extensions; do
9969      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9970      as_fn_executable_p "$ac_path_EGREP" || continue
9971# Check for GNU ac_path_EGREP and select it if it is found.
9972  # Check for GNU $ac_path_EGREP
9973case `"$ac_path_EGREP" --version 2>&1` in
9974*GNU*)
9975  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9976*)
9977  ac_count=0
9978  $as_echo_n 0123456789 >"conftest.in"
9979  while :
9980  do
9981    cat "conftest.in" "conftest.in" >"conftest.tmp"
9982    mv "conftest.tmp" "conftest.in"
9983    cp "conftest.in" "conftest.nl"
9984    $as_echo 'EGREP' >> "conftest.nl"
9985    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9986    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9987    as_fn_arith $ac_count + 1 && ac_count=$as_val
9988    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9989      # Best one so far, save it but keep looking for a better one
9990      ac_cv_path_EGREP="$ac_path_EGREP"
9991      ac_path_EGREP_max=$ac_count
9992    fi
9993    # 10*(2^10) chars as input seems more than enough
9994    test $ac_count -gt 10 && break
9995  done
9996  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9997esac
9998
9999      $ac_path_EGREP_found && break 3
10000    done
10001  done
10002  done
10003IFS=$as_save_IFS
10004  if test -z "$ac_cv_path_EGREP"; then
10005    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10006  fi
10007else
10008  ac_cv_path_EGREP=$EGREP
10009fi
10010
10011   fi
10012fi
10013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
10014$as_echo "$ac_cv_path_EGREP" >&6; }
10015 EGREP="$ac_cv_path_EGREP"
10016
10017
10018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10019$as_echo_n "checking for ANSI C header files... " >&6; }
10020if ${ac_cv_header_stdc+:} false; then :
10021  $as_echo_n "(cached) " >&6
10022else
10023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024/* end confdefs.h.  */
10025#include <stdlib.h>
10026#include <stdarg.h>
10027#include <string.h>
10028#include <float.h>
10029
10030int
10031main ()
10032{
10033
10034  ;
10035  return 0;
10036}
10037_ACEOF
10038if ac_fn_c_try_compile "$LINENO"; then :
10039  ac_cv_header_stdc=yes
10040else
10041  ac_cv_header_stdc=no
10042fi
10043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10044
10045if test $ac_cv_header_stdc = yes; then
10046  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048/* end confdefs.h.  */
10049#include <string.h>
10050
10051_ACEOF
10052if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10053  $EGREP "memchr" >/dev/null 2>&1; then :
10054
10055else
10056  ac_cv_header_stdc=no
10057fi
10058rm -f conftest*
10059
10060fi
10061
10062if test $ac_cv_header_stdc = yes; then
10063  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065/* end confdefs.h.  */
10066#include <stdlib.h>
10067
10068_ACEOF
10069if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10070  $EGREP "free" >/dev/null 2>&1; then :
10071
10072else
10073  ac_cv_header_stdc=no
10074fi
10075rm -f conftest*
10076
10077fi
10078
10079if test $ac_cv_header_stdc = yes; then
10080  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10081  if test "$cross_compiling" = yes; then :
10082  :
10083else
10084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085/* end confdefs.h.  */
10086#include <ctype.h>
10087#include <stdlib.h>
10088#if ((' ' & 0x0FF) == 0x020)
10089# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10090# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10091#else
10092# define ISLOWER(c) \
10093		   (('a' <= (c) && (c) <= 'i') \
10094		     || ('j' <= (c) && (c) <= 'r') \
10095		     || ('s' <= (c) && (c) <= 'z'))
10096# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10097#endif
10098
10099#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10100int
10101main ()
10102{
10103  int i;
10104  for (i = 0; i < 256; i++)
10105    if (XOR (islower (i), ISLOWER (i))
10106	|| toupper (i) != TOUPPER (i))
10107      return 2;
10108  return 0;
10109}
10110_ACEOF
10111if ac_fn_c_try_run "$LINENO"; then :
10112
10113else
10114  ac_cv_header_stdc=no
10115fi
10116rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10117  conftest.$ac_objext conftest.beam conftest.$ac_ext
10118fi
10119
10120fi
10121fi
10122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10123$as_echo "$ac_cv_header_stdc" >&6; }
10124if test $ac_cv_header_stdc = yes; then
10125
10126$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10127
10128fi
10129
10130# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10131for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10132		  inttypes.h stdint.h unistd.h
10133do :
10134  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10135ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10136"
10137if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10138  cat >>confdefs.h <<_ACEOF
10139#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10140_ACEOF
10141
10142fi
10143
10144done
10145
10146
10147
10148  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
10149if test "x$ac_cv_header_minix_config_h" = xyes; then :
10150  MINIX=yes
10151else
10152  MINIX=
10153fi
10154
10155
10156  if test "$MINIX" = yes; then
10157
10158$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
10159
10160
10161$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
10162
10163
10164$as_echo "#define _MINIX 1" >>confdefs.h
10165
10166  fi
10167
10168
10169  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
10170$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
10171if ${ac_cv_safe_to_define___extensions__+:} false; then :
10172  $as_echo_n "(cached) " >&6
10173else
10174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175/* end confdefs.h.  */
10176
10177#         define __EXTENSIONS__ 1
10178          $ac_includes_default
10179int
10180main ()
10181{
10182
10183  ;
10184  return 0;
10185}
10186_ACEOF
10187if ac_fn_c_try_compile "$LINENO"; then :
10188  ac_cv_safe_to_define___extensions__=yes
10189else
10190  ac_cv_safe_to_define___extensions__=no
10191fi
10192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10193fi
10194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
10195$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
10196  test $ac_cv_safe_to_define___extensions__ = yes &&
10197    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
10198
10199  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
10200
10201  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
10202
10203  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
10204
10205  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
10206
10207
10208
10209
10210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
10211$as_echo_n "checking for library containing strerror... " >&6; }
10212if ${ac_cv_search_strerror+:} false; then :
10213  $as_echo_n "(cached) " >&6
10214else
10215  ac_func_search_save_LIBS=$LIBS
10216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217/* end confdefs.h.  */
10218
10219/* Override any GCC internal prototype to avoid an error.
10220   Use char because int might match the return type of a GCC
10221   builtin and then its argument prototype would still apply.  */
10222#ifdef __cplusplus
10223extern "C"
10224#endif
10225char strerror ();
10226int
10227main ()
10228{
10229return strerror ();
10230  ;
10231  return 0;
10232}
10233_ACEOF
10234for ac_lib in '' cposix; do
10235  if test -z "$ac_lib"; then
10236    ac_res="none required"
10237  else
10238    ac_res=-l$ac_lib
10239    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10240  fi
10241  if ac_fn_c_try_link "$LINENO"; then :
10242  ac_cv_search_strerror=$ac_res
10243fi
10244rm -f core conftest.err conftest.$ac_objext \
10245    conftest$ac_exeext
10246  if ${ac_cv_search_strerror+:} false; then :
10247  break
10248fi
10249done
10250if ${ac_cv_search_strerror+:} false; then :
10251
10252else
10253  ac_cv_search_strerror=no
10254fi
10255rm conftest.$ac_ext
10256LIBS=$ac_func_search_save_LIBS
10257fi
10258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
10259$as_echo "$ac_cv_search_strerror" >&6; }
10260ac_res=$ac_cv_search_strerror
10261if test "$ac_res" != no; then :
10262  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10263
10264fi
10265
10266
10267  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses EBCDIC" >&5
10268$as_echo_n "checking whether system uses EBCDIC... " >&6; }
10269if ${ac_cv_ebcdic+:} false; then :
10270  $as_echo_n "(cached) " >&6
10271else
10272
10273  if test "$cross_compiling" = yes; then :
10274
10275  ac_cv_ebcdic="no"
10276
10277else
10278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279/* end confdefs.h.  */
10280
10281int main(void) {
10282  return (unsigned char)'A' != (unsigned char)0xC1;
10283}
10284
10285_ACEOF
10286if ac_fn_c_try_run "$LINENO"; then :
10287
10288  ac_cv_ebcdic="yes"
10289
10290else
10291
10292  ac_cv_ebcdic="no"
10293
10294fi
10295rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10296  conftest.$ac_objext conftest.beam conftest.$ac_ext
10297fi
10298
10299fi
10300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ebcdic" >&5
10301$as_echo "$ac_cv_ebcdic" >&6; }
10302  if test "$ac_cv_ebcdic" = "yes"; then
10303    apr_charset_ebcdic=1
10304  else
10305    apr_charset_ebcdic=0
10306  fi
10307
10308
10309
10310APR_LIBNAME="apr${libsuffix}"
10311
10312
10313echo "performing libtool configuration..."
10314
10315# Check whether --enable-experimental-libtool was given.
10316if test "${enable_experimental_libtool+set}" = set; then :
10317  enableval=$enable_experimental_libtool; experimental_libtool=$enableval
10318else
10319  experimental_libtool=no
10320fi
10321
10322
10323if test "x$Xsed" = "x"; then
10324  Xsed="$SED -e 1s/^X//"
10325fi
10326
10327case $host in
10328*-os2*)
10329    # Use a custom-made libtool replacement
10330    echo "using aplibtool"
10331    LIBTOOL="$srcdir/build/aplibtool"
10332    gcc $CFLAGS $CPPFLAGS -o $LIBTOOL.exe $LIBTOOL.c
10333    ;;
10334*)
10335    if test "x$LTFLAGS" = "x"; then
10336        LTFLAGS='--silent'
10337    fi
10338    if test "$experimental_libtool" = "yes"; then
10339        # Use a custom-made libtool replacement
10340        echo "using jlibtool"
10341        LIBTOOL="$apr_builddir/libtool"
10342        LIBTOOL_SRC="$apr_srcdir/build/jlibtool.c"
10343        $CC $CFLAGS $CPPFLAGS -o $LIBTOOL $LIBTOOL_SRC
10344        eval `$apr_builddir/libtool --config | grep "^shlibpath_var=[A-Z_]*$"`
10345        if test "x$shlibpath_var" = "x"; then
10346            shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
10347        fi
10348    else
10349        enable_win32_dll=yes
10350
10351case $host in
10352*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10353  if test -n "$ac_tool_prefix"; then
10354  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10355set dummy ${ac_tool_prefix}as; ac_word=$2
10356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10357$as_echo_n "checking for $ac_word... " >&6; }
10358if ${ac_cv_prog_AS+:} false; then :
10359  $as_echo_n "(cached) " >&6
10360else
10361  if test -n "$AS"; then
10362  ac_cv_prog_AS="$AS" # Let the user override the test.
10363else
10364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10365for as_dir in $PATH
10366do
10367  IFS=$as_save_IFS
10368  test -z "$as_dir" && as_dir=.
10369    for ac_exec_ext in '' $ac_executable_extensions; do
10370  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10371    ac_cv_prog_AS="${ac_tool_prefix}as"
10372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10373    break 2
10374  fi
10375done
10376  done
10377IFS=$as_save_IFS
10378
10379fi
10380fi
10381AS=$ac_cv_prog_AS
10382if test -n "$AS"; then
10383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10384$as_echo "$AS" >&6; }
10385else
10386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387$as_echo "no" >&6; }
10388fi
10389
10390
10391fi
10392if test -z "$ac_cv_prog_AS"; then
10393  ac_ct_AS=$AS
10394  # Extract the first word of "as", so it can be a program name with args.
10395set dummy as; ac_word=$2
10396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10397$as_echo_n "checking for $ac_word... " >&6; }
10398if ${ac_cv_prog_ac_ct_AS+:} false; then :
10399  $as_echo_n "(cached) " >&6
10400else
10401  if test -n "$ac_ct_AS"; then
10402  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10403else
10404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10405for as_dir in $PATH
10406do
10407  IFS=$as_save_IFS
10408  test -z "$as_dir" && as_dir=.
10409    for ac_exec_ext in '' $ac_executable_extensions; do
10410  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10411    ac_cv_prog_ac_ct_AS="as"
10412    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10413    break 2
10414  fi
10415done
10416  done
10417IFS=$as_save_IFS
10418
10419fi
10420fi
10421ac_ct_AS=$ac_cv_prog_ac_ct_AS
10422if test -n "$ac_ct_AS"; then
10423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10424$as_echo "$ac_ct_AS" >&6; }
10425else
10426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10427$as_echo "no" >&6; }
10428fi
10429
10430  if test "x$ac_ct_AS" = x; then
10431    AS="false"
10432  else
10433    case $cross_compiling:$ac_tool_warned in
10434yes:)
10435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10437ac_tool_warned=yes ;;
10438esac
10439    AS=$ac_ct_AS
10440  fi
10441else
10442  AS="$ac_cv_prog_AS"
10443fi
10444
10445  if test -n "$ac_tool_prefix"; then
10446  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10447set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10449$as_echo_n "checking for $ac_word... " >&6; }
10450if ${ac_cv_prog_DLLTOOL+:} false; then :
10451  $as_echo_n "(cached) " >&6
10452else
10453  if test -n "$DLLTOOL"; then
10454  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10455else
10456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10457for as_dir in $PATH
10458do
10459  IFS=$as_save_IFS
10460  test -z "$as_dir" && as_dir=.
10461    for ac_exec_ext in '' $ac_executable_extensions; do
10462  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10463    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10465    break 2
10466  fi
10467done
10468  done
10469IFS=$as_save_IFS
10470
10471fi
10472fi
10473DLLTOOL=$ac_cv_prog_DLLTOOL
10474if test -n "$DLLTOOL"; then
10475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10476$as_echo "$DLLTOOL" >&6; }
10477else
10478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479$as_echo "no" >&6; }
10480fi
10481
10482
10483fi
10484if test -z "$ac_cv_prog_DLLTOOL"; then
10485  ac_ct_DLLTOOL=$DLLTOOL
10486  # Extract the first word of "dlltool", so it can be a program name with args.
10487set dummy dlltool; ac_word=$2
10488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10489$as_echo_n "checking for $ac_word... " >&6; }
10490if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10491  $as_echo_n "(cached) " >&6
10492else
10493  if test -n "$ac_ct_DLLTOOL"; then
10494  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10495else
10496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497for as_dir in $PATH
10498do
10499  IFS=$as_save_IFS
10500  test -z "$as_dir" && as_dir=.
10501    for ac_exec_ext in '' $ac_executable_extensions; do
10502  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10503    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10505    break 2
10506  fi
10507done
10508  done
10509IFS=$as_save_IFS
10510
10511fi
10512fi
10513ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10514if test -n "$ac_ct_DLLTOOL"; then
10515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10516$as_echo "$ac_ct_DLLTOOL" >&6; }
10517else
10518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519$as_echo "no" >&6; }
10520fi
10521
10522  if test "x$ac_ct_DLLTOOL" = x; then
10523    DLLTOOL="false"
10524  else
10525    case $cross_compiling:$ac_tool_warned in
10526yes:)
10527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10529ac_tool_warned=yes ;;
10530esac
10531    DLLTOOL=$ac_ct_DLLTOOL
10532  fi
10533else
10534  DLLTOOL="$ac_cv_prog_DLLTOOL"
10535fi
10536
10537  if test -n "$ac_tool_prefix"; then
10538  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10539set dummy ${ac_tool_prefix}objdump; ac_word=$2
10540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10541$as_echo_n "checking for $ac_word... " >&6; }
10542if ${ac_cv_prog_OBJDUMP+:} false; then :
10543  $as_echo_n "(cached) " >&6
10544else
10545  if test -n "$OBJDUMP"; then
10546  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10547else
10548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10549for as_dir in $PATH
10550do
10551  IFS=$as_save_IFS
10552  test -z "$as_dir" && as_dir=.
10553    for ac_exec_ext in '' $ac_executable_extensions; do
10554  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10555    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10557    break 2
10558  fi
10559done
10560  done
10561IFS=$as_save_IFS
10562
10563fi
10564fi
10565OBJDUMP=$ac_cv_prog_OBJDUMP
10566if test -n "$OBJDUMP"; then
10567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10568$as_echo "$OBJDUMP" >&6; }
10569else
10570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10571$as_echo "no" >&6; }
10572fi
10573
10574
10575fi
10576if test -z "$ac_cv_prog_OBJDUMP"; then
10577  ac_ct_OBJDUMP=$OBJDUMP
10578  # Extract the first word of "objdump", so it can be a program name with args.
10579set dummy objdump; ac_word=$2
10580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10581$as_echo_n "checking for $ac_word... " >&6; }
10582if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10583  $as_echo_n "(cached) " >&6
10584else
10585  if test -n "$ac_ct_OBJDUMP"; then
10586  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10587else
10588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10589for as_dir in $PATH
10590do
10591  IFS=$as_save_IFS
10592  test -z "$as_dir" && as_dir=.
10593    for ac_exec_ext in '' $ac_executable_extensions; do
10594  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10595    ac_cv_prog_ac_ct_OBJDUMP="objdump"
10596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10597    break 2
10598  fi
10599done
10600  done
10601IFS=$as_save_IFS
10602
10603fi
10604fi
10605ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10606if test -n "$ac_ct_OBJDUMP"; then
10607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10608$as_echo "$ac_ct_OBJDUMP" >&6; }
10609else
10610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10611$as_echo "no" >&6; }
10612fi
10613
10614  if test "x$ac_ct_OBJDUMP" = x; then
10615    OBJDUMP="false"
10616  else
10617    case $cross_compiling:$ac_tool_warned in
10618yes:)
10619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10621ac_tool_warned=yes ;;
10622esac
10623    OBJDUMP=$ac_ct_OBJDUMP
10624  fi
10625else
10626  OBJDUMP="$ac_cv_prog_OBJDUMP"
10627fi
10628
10629  ;;
10630esac
10631
10632test -z "$AS" && AS=as
10633
10634
10635
10636
10637
10638test -z "$DLLTOOL" && DLLTOOL=dlltool
10639
10640
10641
10642
10643
10644test -z "$OBJDUMP" && OBJDUMP=objdump
10645
10646
10647
10648
10649
10650
10651
10652case `pwd` in
10653  *\ * | *\	*)
10654    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10655$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10656esac
10657
10658
10659
10660macro_version='2.4.2'
10661macro_revision='1.3337'
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675ltmain="$ac_aux_dir/ltmain.sh"
10676
10677# Backslashify metacharacters that are still active within
10678# double-quoted strings.
10679sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10680
10681# Same as above, but do not quote variable references.
10682double_quote_subst='s/\(["`\\]\)/\\\1/g'
10683
10684# Sed substitution to delay expansion of an escaped shell variable in a
10685# double_quote_subst'ed string.
10686delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10687
10688# Sed substitution to delay expansion of an escaped single quote.
10689delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10690
10691# Sed substitution to avoid accidental globbing in evaled expressions
10692no_glob_subst='s/\*/\\\*/g'
10693
10694ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10695ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10696ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10697
10698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10699$as_echo_n "checking how to print strings... " >&6; }
10700# Test print first, because it will be a builtin if present.
10701if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10702   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10703  ECHO='print -r --'
10704elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10705  ECHO='printf %s\n'
10706else
10707  # Use this function as a fallback that always works.
10708  func_fallback_echo ()
10709  {
10710    eval 'cat <<_LTECHO_EOF
10711$1
10712_LTECHO_EOF'
10713  }
10714  ECHO='func_fallback_echo'
10715fi
10716
10717# func_echo_all arg...
10718# Invoke $ECHO with all args, space-separated.
10719func_echo_all ()
10720{
10721    $ECHO ""
10722}
10723
10724case "$ECHO" in
10725  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10726$as_echo "printf" >&6; } ;;
10727  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10728$as_echo "print -r" >&6; } ;;
10729  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10730$as_echo "cat" >&6; } ;;
10731esac
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10747$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10748if ${ac_cv_path_SED+:} false; then :
10749  $as_echo_n "(cached) " >&6
10750else
10751            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10752     for ac_i in 1 2 3 4 5 6 7; do
10753       ac_script="$ac_script$as_nl$ac_script"
10754     done
10755     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10756     { ac_script=; unset ac_script;}
10757     if test -z "$SED"; then
10758  ac_path_SED_found=false
10759  # Loop through the user's path and test for each of PROGNAME-LIST
10760  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761for as_dir in $PATH
10762do
10763  IFS=$as_save_IFS
10764  test -z "$as_dir" && as_dir=.
10765    for ac_prog in sed gsed; do
10766    for ac_exec_ext in '' $ac_executable_extensions; do
10767      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10768      as_fn_executable_p "$ac_path_SED" || continue
10769# Check for GNU ac_path_SED and select it if it is found.
10770  # Check for GNU $ac_path_SED
10771case `"$ac_path_SED" --version 2>&1` in
10772*GNU*)
10773  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10774*)
10775  ac_count=0
10776  $as_echo_n 0123456789 >"conftest.in"
10777  while :
10778  do
10779    cat "conftest.in" "conftest.in" >"conftest.tmp"
10780    mv "conftest.tmp" "conftest.in"
10781    cp "conftest.in" "conftest.nl"
10782    $as_echo '' >> "conftest.nl"
10783    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10784    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10785    as_fn_arith $ac_count + 1 && ac_count=$as_val
10786    if test $ac_count -gt ${ac_path_SED_max-0}; then
10787      # Best one so far, save it but keep looking for a better one
10788      ac_cv_path_SED="$ac_path_SED"
10789      ac_path_SED_max=$ac_count
10790    fi
10791    # 10*(2^10) chars as input seems more than enough
10792    test $ac_count -gt 10 && break
10793  done
10794  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10795esac
10796
10797      $ac_path_SED_found && break 3
10798    done
10799  done
10800  done
10801IFS=$as_save_IFS
10802  if test -z "$ac_cv_path_SED"; then
10803    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10804  fi
10805else
10806  ac_cv_path_SED=$SED
10807fi
10808
10809fi
10810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10811$as_echo "$ac_cv_path_SED" >&6; }
10812 SED="$ac_cv_path_SED"
10813  rm -f conftest.sed
10814
10815test -z "$SED" && SED=sed
10816Xsed="$SED -e 1s/^X//"
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10829$as_echo_n "checking for fgrep... " >&6; }
10830if ${ac_cv_path_FGREP+:} false; then :
10831  $as_echo_n "(cached) " >&6
10832else
10833  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10834   then ac_cv_path_FGREP="$GREP -F"
10835   else
10836     if test -z "$FGREP"; then
10837  ac_path_FGREP_found=false
10838  # Loop through the user's path and test for each of PROGNAME-LIST
10839  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10841do
10842  IFS=$as_save_IFS
10843  test -z "$as_dir" && as_dir=.
10844    for ac_prog in fgrep; do
10845    for ac_exec_ext in '' $ac_executable_extensions; do
10846      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10847      as_fn_executable_p "$ac_path_FGREP" || continue
10848# Check for GNU ac_path_FGREP and select it if it is found.
10849  # Check for GNU $ac_path_FGREP
10850case `"$ac_path_FGREP" --version 2>&1` in
10851*GNU*)
10852  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10853*)
10854  ac_count=0
10855  $as_echo_n 0123456789 >"conftest.in"
10856  while :
10857  do
10858    cat "conftest.in" "conftest.in" >"conftest.tmp"
10859    mv "conftest.tmp" "conftest.in"
10860    cp "conftest.in" "conftest.nl"
10861    $as_echo 'FGREP' >> "conftest.nl"
10862    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10863    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10864    as_fn_arith $ac_count + 1 && ac_count=$as_val
10865    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10866      # Best one so far, save it but keep looking for a better one
10867      ac_cv_path_FGREP="$ac_path_FGREP"
10868      ac_path_FGREP_max=$ac_count
10869    fi
10870    # 10*(2^10) chars as input seems more than enough
10871    test $ac_count -gt 10 && break
10872  done
10873  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10874esac
10875
10876      $ac_path_FGREP_found && break 3
10877    done
10878  done
10879  done
10880IFS=$as_save_IFS
10881  if test -z "$ac_cv_path_FGREP"; then
10882    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10883  fi
10884else
10885  ac_cv_path_FGREP=$FGREP
10886fi
10887
10888   fi
10889fi
10890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10891$as_echo "$ac_cv_path_FGREP" >&6; }
10892 FGREP="$ac_cv_path_FGREP"
10893
10894
10895test -z "$GREP" && GREP=grep
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915# Check whether --with-gnu-ld was given.
10916if test "${with_gnu_ld+set}" = set; then :
10917  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10918else
10919  with_gnu_ld=no
10920fi
10921
10922ac_prog=ld
10923if test "$GCC" = yes; then
10924  # Check if gcc -print-prog-name=ld gives a path.
10925  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10926$as_echo_n "checking for ld used by $CC... " >&6; }
10927  case $host in
10928  *-*-mingw*)
10929    # gcc leaves a trailing carriage return which upsets mingw
10930    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10931  *)
10932    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10933  esac
10934  case $ac_prog in
10935    # Accept absolute paths.
10936    [\\/]* | ?:[\\/]*)
10937      re_direlt='/[^/][^/]*/\.\./'
10938      # Canonicalize the pathname of ld
10939      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10940      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10941	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10942      done
10943      test -z "$LD" && LD="$ac_prog"
10944      ;;
10945  "")
10946    # If it fails, then pretend we aren't using GCC.
10947    ac_prog=ld
10948    ;;
10949  *)
10950    # If it is relative, then search for the first ld in PATH.
10951    with_gnu_ld=unknown
10952    ;;
10953  esac
10954elif test "$with_gnu_ld" = yes; then
10955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10956$as_echo_n "checking for GNU ld... " >&6; }
10957else
10958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10959$as_echo_n "checking for non-GNU ld... " >&6; }
10960fi
10961if ${lt_cv_path_LD+:} false; then :
10962  $as_echo_n "(cached) " >&6
10963else
10964  if test -z "$LD"; then
10965  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10966  for ac_dir in $PATH; do
10967    IFS="$lt_save_ifs"
10968    test -z "$ac_dir" && ac_dir=.
10969    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10970      lt_cv_path_LD="$ac_dir/$ac_prog"
10971      # Check to see if the program is GNU ld.  I'd rather use --version,
10972      # but apparently some variants of GNU ld only accept -v.
10973      # Break only if it was the GNU/non-GNU ld that we prefer.
10974      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10975      *GNU* | *'with BFD'*)
10976	test "$with_gnu_ld" != no && break
10977	;;
10978      *)
10979	test "$with_gnu_ld" != yes && break
10980	;;
10981      esac
10982    fi
10983  done
10984  IFS="$lt_save_ifs"
10985else
10986  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10987fi
10988fi
10989
10990LD="$lt_cv_path_LD"
10991if test -n "$LD"; then
10992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10993$as_echo "$LD" >&6; }
10994else
10995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10996$as_echo "no" >&6; }
10997fi
10998test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11000$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11001if ${lt_cv_prog_gnu_ld+:} false; then :
11002  $as_echo_n "(cached) " >&6
11003else
11004  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11005case `$LD -v 2>&1 </dev/null` in
11006*GNU* | *'with BFD'*)
11007  lt_cv_prog_gnu_ld=yes
11008  ;;
11009*)
11010  lt_cv_prog_gnu_ld=no
11011  ;;
11012esac
11013fi
11014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11015$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11016with_gnu_ld=$lt_cv_prog_gnu_ld
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11027$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11028if ${lt_cv_path_NM+:} false; then :
11029  $as_echo_n "(cached) " >&6
11030else
11031  if test -n "$NM"; then
11032  # Let the user override the test.
11033  lt_cv_path_NM="$NM"
11034else
11035  lt_nm_to_check="${ac_tool_prefix}nm"
11036  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11037    lt_nm_to_check="$lt_nm_to_check nm"
11038  fi
11039  for lt_tmp_nm in $lt_nm_to_check; do
11040    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11041    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11042      IFS="$lt_save_ifs"
11043      test -z "$ac_dir" && ac_dir=.
11044      tmp_nm="$ac_dir/$lt_tmp_nm"
11045      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11046	# Check to see if the nm accepts a BSD-compat flag.
11047	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11048	#   nm: unknown option "B" ignored
11049	# Tru64's nm complains that /dev/null is an invalid object file
11050	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11051	*/dev/null* | *'Invalid file or object type'*)
11052	  lt_cv_path_NM="$tmp_nm -B"
11053	  break
11054	  ;;
11055	*)
11056	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11057	  */dev/null*)
11058	    lt_cv_path_NM="$tmp_nm -p"
11059	    break
11060	    ;;
11061	  *)
11062	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11063	    continue # so that we can try to find one that supports BSD flags
11064	    ;;
11065	  esac
11066	  ;;
11067	esac
11068      fi
11069    done
11070    IFS="$lt_save_ifs"
11071  done
11072  : ${lt_cv_path_NM=no}
11073fi
11074fi
11075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11076$as_echo "$lt_cv_path_NM" >&6; }
11077if test "$lt_cv_path_NM" != "no"; then
11078  NM="$lt_cv_path_NM"
11079else
11080  # Didn't find any BSD compatible name lister, look for dumpbin.
11081  if test -n "$DUMPBIN"; then :
11082    # Let the user override the test.
11083  else
11084    if test -n "$ac_tool_prefix"; then
11085  for ac_prog in dumpbin "link -dump"
11086  do
11087    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11088set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11090$as_echo_n "checking for $ac_word... " >&6; }
11091if ${ac_cv_prog_DUMPBIN+:} false; then :
11092  $as_echo_n "(cached) " >&6
11093else
11094  if test -n "$DUMPBIN"; then
11095  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11096else
11097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11098for as_dir in $PATH
11099do
11100  IFS=$as_save_IFS
11101  test -z "$as_dir" && as_dir=.
11102    for ac_exec_ext in '' $ac_executable_extensions; do
11103  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11104    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11105    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11106    break 2
11107  fi
11108done
11109  done
11110IFS=$as_save_IFS
11111
11112fi
11113fi
11114DUMPBIN=$ac_cv_prog_DUMPBIN
11115if test -n "$DUMPBIN"; then
11116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11117$as_echo "$DUMPBIN" >&6; }
11118else
11119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11120$as_echo "no" >&6; }
11121fi
11122
11123
11124    test -n "$DUMPBIN" && break
11125  done
11126fi
11127if test -z "$DUMPBIN"; then
11128  ac_ct_DUMPBIN=$DUMPBIN
11129  for ac_prog in dumpbin "link -dump"
11130do
11131  # Extract the first word of "$ac_prog", so it can be a program name with args.
11132set dummy $ac_prog; ac_word=$2
11133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11134$as_echo_n "checking for $ac_word... " >&6; }
11135if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11136  $as_echo_n "(cached) " >&6
11137else
11138  if test -n "$ac_ct_DUMPBIN"; then
11139  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11140else
11141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11142for as_dir in $PATH
11143do
11144  IFS=$as_save_IFS
11145  test -z "$as_dir" && as_dir=.
11146    for ac_exec_ext in '' $ac_executable_extensions; do
11147  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11148    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11150    break 2
11151  fi
11152done
11153  done
11154IFS=$as_save_IFS
11155
11156fi
11157fi
11158ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11159if test -n "$ac_ct_DUMPBIN"; then
11160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11161$as_echo "$ac_ct_DUMPBIN" >&6; }
11162else
11163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11164$as_echo "no" >&6; }
11165fi
11166
11167
11168  test -n "$ac_ct_DUMPBIN" && break
11169done
11170
11171  if test "x$ac_ct_DUMPBIN" = x; then
11172    DUMPBIN=":"
11173  else
11174    case $cross_compiling:$ac_tool_warned in
11175yes:)
11176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11178ac_tool_warned=yes ;;
11179esac
11180    DUMPBIN=$ac_ct_DUMPBIN
11181  fi
11182fi
11183
11184    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11185    *COFF*)
11186      DUMPBIN="$DUMPBIN -symbols"
11187      ;;
11188    *)
11189      DUMPBIN=:
11190      ;;
11191    esac
11192  fi
11193
11194  if test "$DUMPBIN" != ":"; then
11195    NM="$DUMPBIN"
11196  fi
11197fi
11198test -z "$NM" && NM=nm
11199
11200
11201
11202
11203
11204
11205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11206$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11207if ${lt_cv_nm_interface+:} false; then :
11208  $as_echo_n "(cached) " >&6
11209else
11210  lt_cv_nm_interface="BSD nm"
11211  echo "int some_variable = 0;" > conftest.$ac_ext
11212  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11213  (eval "$ac_compile" 2>conftest.err)
11214  cat conftest.err >&5
11215  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11216  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11217  cat conftest.err >&5
11218  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11219  cat conftest.out >&5
11220  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11221    lt_cv_nm_interface="MS dumpbin"
11222  fi
11223  rm -f conftest*
11224fi
11225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11226$as_echo "$lt_cv_nm_interface" >&6; }
11227
11228# find the maximum length of command line arguments
11229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11230$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11231if ${lt_cv_sys_max_cmd_len+:} false; then :
11232  $as_echo_n "(cached) " >&6
11233else
11234    i=0
11235  teststring="ABCD"
11236
11237  case $build_os in
11238  msdosdjgpp*)
11239    # On DJGPP, this test can blow up pretty badly due to problems in libc
11240    # (any single argument exceeding 2000 bytes causes a buffer overrun
11241    # during glob expansion).  Even if it were fixed, the result of this
11242    # check would be larger than it should be.
11243    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11244    ;;
11245
11246  gnu*)
11247    # Under GNU Hurd, this test is not required because there is
11248    # no limit to the length of command line arguments.
11249    # Libtool will interpret -1 as no limit whatsoever
11250    lt_cv_sys_max_cmd_len=-1;
11251    ;;
11252
11253  cygwin* | mingw* | cegcc*)
11254    # On Win9x/ME, this test blows up -- it succeeds, but takes
11255    # about 5 minutes as the teststring grows exponentially.
11256    # Worse, since 9x/ME are not pre-emptively multitasking,
11257    # you end up with a "frozen" computer, even though with patience
11258    # the test eventually succeeds (with a max line length of 256k).
11259    # Instead, let's just punt: use the minimum linelength reported by
11260    # all of the supported platforms: 8192 (on NT/2K/XP).
11261    lt_cv_sys_max_cmd_len=8192;
11262    ;;
11263
11264  mint*)
11265    # On MiNT this can take a long time and run out of memory.
11266    lt_cv_sys_max_cmd_len=8192;
11267    ;;
11268
11269  amigaos*)
11270    # On AmigaOS with pdksh, this test takes hours, literally.
11271    # So we just punt and use a minimum line length of 8192.
11272    lt_cv_sys_max_cmd_len=8192;
11273    ;;
11274
11275  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11276    # This has been around since 386BSD, at least.  Likely further.
11277    if test -x /sbin/sysctl; then
11278      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11279    elif test -x /usr/sbin/sysctl; then
11280      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11281    else
11282      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11283    fi
11284    # And add a safety zone
11285    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11286    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11287    ;;
11288
11289  interix*)
11290    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11291    lt_cv_sys_max_cmd_len=196608
11292    ;;
11293
11294  os2*)
11295    # The test takes a long time on OS/2.
11296    lt_cv_sys_max_cmd_len=8192
11297    ;;
11298
11299  osf*)
11300    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11301    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11302    # nice to cause kernel panics so lets avoid the loop below.
11303    # First set a reasonable default.
11304    lt_cv_sys_max_cmd_len=16384
11305    #
11306    if test -x /sbin/sysconfig; then
11307      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11308        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11309      esac
11310    fi
11311    ;;
11312  sco3.2v5*)
11313    lt_cv_sys_max_cmd_len=102400
11314    ;;
11315  sysv5* | sco5v6* | sysv4.2uw2*)
11316    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11317    if test -n "$kargmax"; then
11318      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11319    else
11320      lt_cv_sys_max_cmd_len=32768
11321    fi
11322    ;;
11323  *)
11324    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11325    if test -n "$lt_cv_sys_max_cmd_len"; then
11326      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11327      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11328    else
11329      # Make teststring a little bigger before we do anything with it.
11330      # a 1K string should be a reasonable start.
11331      for i in 1 2 3 4 5 6 7 8 ; do
11332        teststring=$teststring$teststring
11333      done
11334      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11335      # If test is not a shell built-in, we'll probably end up computing a
11336      # maximum length that is only half of the actual maximum length, but
11337      # we can't tell.
11338      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11339	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11340	      test $i != 17 # 1/2 MB should be enough
11341      do
11342        i=`expr $i + 1`
11343        teststring=$teststring$teststring
11344      done
11345      # Only check the string length outside the loop.
11346      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11347      teststring=
11348      # Add a significant safety factor because C++ compilers can tack on
11349      # massive amounts of additional arguments before passing them to the
11350      # linker.  It appears as though 1/2 is a usable value.
11351      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11352    fi
11353    ;;
11354  esac
11355
11356fi
11357
11358if test -n $lt_cv_sys_max_cmd_len ; then
11359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11360$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11361else
11362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11363$as_echo "none" >&6; }
11364fi
11365max_cmd_len=$lt_cv_sys_max_cmd_len
11366
11367
11368
11369
11370
11371
11372: ${CP="cp -f"}
11373: ${MV="mv -f"}
11374: ${RM="rm -f"}
11375
11376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11377$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11378# Try some XSI features
11379xsi_shell=no
11380( _lt_dummy="a/b/c"
11381  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11382      = c,a/b,b/c, \
11383    && eval 'test $(( 1 + 1 )) -eq 2 \
11384    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11385  && xsi_shell=yes
11386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11387$as_echo "$xsi_shell" >&6; }
11388
11389
11390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11391$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11392lt_shell_append=no
11393( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11394    >/dev/null 2>&1 \
11395  && lt_shell_append=yes
11396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11397$as_echo "$lt_shell_append" >&6; }
11398
11399
11400if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11401  lt_unset=unset
11402else
11403  lt_unset=false
11404fi
11405
11406
11407
11408
11409
11410# test EBCDIC or ASCII
11411case `echo X|tr X '\101'` in
11412 A) # ASCII based system
11413    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11414  lt_SP2NL='tr \040 \012'
11415  lt_NL2SP='tr \015\012 \040\040'
11416  ;;
11417 *) # EBCDIC based system
11418  lt_SP2NL='tr \100 \n'
11419  lt_NL2SP='tr \r\n \100\100'
11420  ;;
11421esac
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11432$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11433if ${lt_cv_to_host_file_cmd+:} false; then :
11434  $as_echo_n "(cached) " >&6
11435else
11436  case $host in
11437  *-*-mingw* )
11438    case $build in
11439      *-*-mingw* ) # actually msys
11440        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11441        ;;
11442      *-*-cygwin* )
11443        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11444        ;;
11445      * ) # otherwise, assume *nix
11446        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11447        ;;
11448    esac
11449    ;;
11450  *-*-cygwin* )
11451    case $build in
11452      *-*-mingw* ) # actually msys
11453        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11454        ;;
11455      *-*-cygwin* )
11456        lt_cv_to_host_file_cmd=func_convert_file_noop
11457        ;;
11458      * ) # otherwise, assume *nix
11459        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11460        ;;
11461    esac
11462    ;;
11463  * ) # unhandled hosts (and "normal" native builds)
11464    lt_cv_to_host_file_cmd=func_convert_file_noop
11465    ;;
11466esac
11467
11468fi
11469
11470to_host_file_cmd=$lt_cv_to_host_file_cmd
11471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11472$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11473
11474
11475
11476
11477
11478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11479$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11480if ${lt_cv_to_tool_file_cmd+:} false; then :
11481  $as_echo_n "(cached) " >&6
11482else
11483  #assume ordinary cross tools, or native build.
11484lt_cv_to_tool_file_cmd=func_convert_file_noop
11485case $host in
11486  *-*-mingw* )
11487    case $build in
11488      *-*-mingw* ) # actually msys
11489        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11490        ;;
11491    esac
11492    ;;
11493esac
11494
11495fi
11496
11497to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11499$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11500
11501
11502
11503
11504
11505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11506$as_echo_n "checking for $LD option to reload object files... " >&6; }
11507if ${lt_cv_ld_reload_flag+:} false; then :
11508  $as_echo_n "(cached) " >&6
11509else
11510  lt_cv_ld_reload_flag='-r'
11511fi
11512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11513$as_echo "$lt_cv_ld_reload_flag" >&6; }
11514reload_flag=$lt_cv_ld_reload_flag
11515case $reload_flag in
11516"" | " "*) ;;
11517*) reload_flag=" $reload_flag" ;;
11518esac
11519reload_cmds='$LD$reload_flag -o $output$reload_objs'
11520case $host_os in
11521  cygwin* | mingw* | pw32* | cegcc*)
11522    if test "$GCC" != yes; then
11523      reload_cmds=false
11524    fi
11525    ;;
11526  darwin*)
11527    if test "$GCC" = yes; then
11528      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11529    else
11530      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11531    fi
11532    ;;
11533esac
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543if test -n "$ac_tool_prefix"; then
11544  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11545set dummy ${ac_tool_prefix}objdump; ac_word=$2
11546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11547$as_echo_n "checking for $ac_word... " >&6; }
11548if ${ac_cv_prog_OBJDUMP+:} false; then :
11549  $as_echo_n "(cached) " >&6
11550else
11551  if test -n "$OBJDUMP"; then
11552  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11553else
11554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555for as_dir in $PATH
11556do
11557  IFS=$as_save_IFS
11558  test -z "$as_dir" && as_dir=.
11559    for ac_exec_ext in '' $ac_executable_extensions; do
11560  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11561    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11563    break 2
11564  fi
11565done
11566  done
11567IFS=$as_save_IFS
11568
11569fi
11570fi
11571OBJDUMP=$ac_cv_prog_OBJDUMP
11572if test -n "$OBJDUMP"; then
11573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11574$as_echo "$OBJDUMP" >&6; }
11575else
11576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577$as_echo "no" >&6; }
11578fi
11579
11580
11581fi
11582if test -z "$ac_cv_prog_OBJDUMP"; then
11583  ac_ct_OBJDUMP=$OBJDUMP
11584  # Extract the first word of "objdump", so it can be a program name with args.
11585set dummy objdump; ac_word=$2
11586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11587$as_echo_n "checking for $ac_word... " >&6; }
11588if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11589  $as_echo_n "(cached) " >&6
11590else
11591  if test -n "$ac_ct_OBJDUMP"; then
11592  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11593else
11594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595for as_dir in $PATH
11596do
11597  IFS=$as_save_IFS
11598  test -z "$as_dir" && as_dir=.
11599    for ac_exec_ext in '' $ac_executable_extensions; do
11600  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11601    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11603    break 2
11604  fi
11605done
11606  done
11607IFS=$as_save_IFS
11608
11609fi
11610fi
11611ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11612if test -n "$ac_ct_OBJDUMP"; then
11613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11614$as_echo "$ac_ct_OBJDUMP" >&6; }
11615else
11616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617$as_echo "no" >&6; }
11618fi
11619
11620  if test "x$ac_ct_OBJDUMP" = x; then
11621    OBJDUMP="false"
11622  else
11623    case $cross_compiling:$ac_tool_warned in
11624yes:)
11625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11627ac_tool_warned=yes ;;
11628esac
11629    OBJDUMP=$ac_ct_OBJDUMP
11630  fi
11631else
11632  OBJDUMP="$ac_cv_prog_OBJDUMP"
11633fi
11634
11635test -z "$OBJDUMP" && OBJDUMP=objdump
11636
11637
11638
11639
11640
11641
11642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11643$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11644if ${lt_cv_deplibs_check_method+:} false; then :
11645  $as_echo_n "(cached) " >&6
11646else
11647  lt_cv_file_magic_cmd='$MAGIC_CMD'
11648lt_cv_file_magic_test_file=
11649lt_cv_deplibs_check_method='unknown'
11650# Need to set the preceding variable on all platforms that support
11651# interlibrary dependencies.
11652# 'none' -- dependencies not supported.
11653# `unknown' -- same as none, but documents that we really don't know.
11654# 'pass_all' -- all dependencies passed with no checks.
11655# 'test_compile' -- check by making test program.
11656# 'file_magic [[regex]]' -- check by looking for files in library path
11657# which responds to the $file_magic_cmd with a given extended regex.
11658# If you have `file' or equivalent on your system and you're not sure
11659# whether `pass_all' will *always* work, you probably want this one.
11660
11661case $host_os in
11662aix[4-9]*)
11663  lt_cv_deplibs_check_method=pass_all
11664  ;;
11665
11666beos*)
11667  lt_cv_deplibs_check_method=pass_all
11668  ;;
11669
11670bsdi[45]*)
11671  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11672  lt_cv_file_magic_cmd='/usr/bin/file -L'
11673  lt_cv_file_magic_test_file=/shlib/libc.so
11674  ;;
11675
11676cygwin*)
11677  # func_win32_libid is a shell function defined in ltmain.sh
11678  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11679  lt_cv_file_magic_cmd='func_win32_libid'
11680  ;;
11681
11682mingw* | pw32*)
11683  # Base MSYS/MinGW do not provide the 'file' command needed by
11684  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11685  # unless we find 'file', for example because we are cross-compiling.
11686  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11687  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11688    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11689    lt_cv_file_magic_cmd='func_win32_libid'
11690  else
11691    # Keep this pattern in sync with the one in func_win32_libid.
11692    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11693    lt_cv_file_magic_cmd='$OBJDUMP -f'
11694  fi
11695  ;;
11696
11697cegcc*)
11698  # use the weaker test based on 'objdump'. See mingw*.
11699  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11700  lt_cv_file_magic_cmd='$OBJDUMP -f'
11701  ;;
11702
11703darwin* | rhapsody*)
11704  lt_cv_deplibs_check_method=pass_all
11705  ;;
11706
11707freebsd* | dragonfly*)
11708  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11709    case $host_cpu in
11710    i*86 )
11711      # Not sure whether the presence of OpenBSD here was a mistake.
11712      # Let's accept both of them until this is cleared up.
11713      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11714      lt_cv_file_magic_cmd=/usr/bin/file
11715      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11716      ;;
11717    esac
11718  else
11719    lt_cv_deplibs_check_method=pass_all
11720  fi
11721  ;;
11722
11723gnu*)
11724  lt_cv_deplibs_check_method=pass_all
11725  ;;
11726
11727haiku*)
11728  lt_cv_deplibs_check_method=pass_all
11729  ;;
11730
11731hpux10.20* | hpux11*)
11732  lt_cv_file_magic_cmd=/usr/bin/file
11733  case $host_cpu in
11734  ia64*)
11735    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11736    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11737    ;;
11738  hppa*64*)
11739    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]'
11740    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11741    ;;
11742  *)
11743    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11744    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11745    ;;
11746  esac
11747  ;;
11748
11749interix[3-9]*)
11750  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11751  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11752  ;;
11753
11754irix5* | irix6* | nonstopux*)
11755  case $LD in
11756  *-32|*"-32 ") libmagic=32-bit;;
11757  *-n32|*"-n32 ") libmagic=N32;;
11758  *-64|*"-64 ") libmagic=64-bit;;
11759  *) libmagic=never-match;;
11760  esac
11761  lt_cv_deplibs_check_method=pass_all
11762  ;;
11763
11764# This must be glibc/ELF.
11765linux* | k*bsd*-gnu | kopensolaris*-gnu)
11766  lt_cv_deplibs_check_method=pass_all
11767  ;;
11768
11769netbsd*)
11770  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11771    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11772  else
11773    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11774  fi
11775  ;;
11776
11777newos6*)
11778  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11779  lt_cv_file_magic_cmd=/usr/bin/file
11780  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11781  ;;
11782
11783*nto* | *qnx*)
11784  lt_cv_deplibs_check_method=pass_all
11785  ;;
11786
11787openbsd*)
11788  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11789    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11790  else
11791    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11792  fi
11793  ;;
11794
11795osf3* | osf4* | osf5*)
11796  lt_cv_deplibs_check_method=pass_all
11797  ;;
11798
11799rdos*)
11800  lt_cv_deplibs_check_method=pass_all
11801  ;;
11802
11803solaris*)
11804  lt_cv_deplibs_check_method=pass_all
11805  ;;
11806
11807sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11808  lt_cv_deplibs_check_method=pass_all
11809  ;;
11810
11811sysv4 | sysv4.3*)
11812  case $host_vendor in
11813  motorola)
11814    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]'
11815    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11816    ;;
11817  ncr)
11818    lt_cv_deplibs_check_method=pass_all
11819    ;;
11820  sequent)
11821    lt_cv_file_magic_cmd='/bin/file'
11822    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11823    ;;
11824  sni)
11825    lt_cv_file_magic_cmd='/bin/file'
11826    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11827    lt_cv_file_magic_test_file=/lib/libc.so
11828    ;;
11829  siemens)
11830    lt_cv_deplibs_check_method=pass_all
11831    ;;
11832  pc)
11833    lt_cv_deplibs_check_method=pass_all
11834    ;;
11835  esac
11836  ;;
11837
11838tpf*)
11839  lt_cv_deplibs_check_method=pass_all
11840  ;;
11841esac
11842
11843fi
11844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11845$as_echo "$lt_cv_deplibs_check_method" >&6; }
11846
11847file_magic_glob=
11848want_nocaseglob=no
11849if test "$build" = "$host"; then
11850  case $host_os in
11851  mingw* | pw32*)
11852    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11853      want_nocaseglob=yes
11854    else
11855      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11856    fi
11857    ;;
11858  esac
11859fi
11860
11861file_magic_cmd=$lt_cv_file_magic_cmd
11862deplibs_check_method=$lt_cv_deplibs_check_method
11863test -z "$deplibs_check_method" && deplibs_check_method=unknown
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886if test -n "$ac_tool_prefix"; then
11887  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11888set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890$as_echo_n "checking for $ac_word... " >&6; }
11891if ${ac_cv_prog_DLLTOOL+:} false; then :
11892  $as_echo_n "(cached) " >&6
11893else
11894  if test -n "$DLLTOOL"; then
11895  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11896else
11897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898for as_dir in $PATH
11899do
11900  IFS=$as_save_IFS
11901  test -z "$as_dir" && as_dir=.
11902    for ac_exec_ext in '' $ac_executable_extensions; do
11903  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11904    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11906    break 2
11907  fi
11908done
11909  done
11910IFS=$as_save_IFS
11911
11912fi
11913fi
11914DLLTOOL=$ac_cv_prog_DLLTOOL
11915if test -n "$DLLTOOL"; then
11916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11917$as_echo "$DLLTOOL" >&6; }
11918else
11919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920$as_echo "no" >&6; }
11921fi
11922
11923
11924fi
11925if test -z "$ac_cv_prog_DLLTOOL"; then
11926  ac_ct_DLLTOOL=$DLLTOOL
11927  # Extract the first word of "dlltool", so it can be a program name with args.
11928set dummy dlltool; ac_word=$2
11929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930$as_echo_n "checking for $ac_word... " >&6; }
11931if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11932  $as_echo_n "(cached) " >&6
11933else
11934  if test -n "$ac_ct_DLLTOOL"; then
11935  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11936else
11937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11938for as_dir in $PATH
11939do
11940  IFS=$as_save_IFS
11941  test -z "$as_dir" && as_dir=.
11942    for ac_exec_ext in '' $ac_executable_extensions; do
11943  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11944    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11946    break 2
11947  fi
11948done
11949  done
11950IFS=$as_save_IFS
11951
11952fi
11953fi
11954ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11955if test -n "$ac_ct_DLLTOOL"; then
11956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11957$as_echo "$ac_ct_DLLTOOL" >&6; }
11958else
11959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960$as_echo "no" >&6; }
11961fi
11962
11963  if test "x$ac_ct_DLLTOOL" = x; then
11964    DLLTOOL="false"
11965  else
11966    case $cross_compiling:$ac_tool_warned in
11967yes:)
11968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11970ac_tool_warned=yes ;;
11971esac
11972    DLLTOOL=$ac_ct_DLLTOOL
11973  fi
11974else
11975  DLLTOOL="$ac_cv_prog_DLLTOOL"
11976fi
11977
11978test -z "$DLLTOOL" && DLLTOOL=dlltool
11979
11980
11981
11982
11983
11984
11985
11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11987$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11988if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11989  $as_echo_n "(cached) " >&6
11990else
11991  lt_cv_sharedlib_from_linklib_cmd='unknown'
11992
11993case $host_os in
11994cygwin* | mingw* | pw32* | cegcc*)
11995  # two different shell functions defined in ltmain.sh
11996  # decide which to use based on capabilities of $DLLTOOL
11997  case `$DLLTOOL --help 2>&1` in
11998  *--identify-strict*)
11999    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12000    ;;
12001  *)
12002    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12003    ;;
12004  esac
12005  ;;
12006*)
12007  # fallback: assume linklib IS sharedlib
12008  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12009  ;;
12010esac
12011
12012fi
12013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12014$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12015sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12016test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12017
12018
12019
12020
12021
12022
12023
12024if test -n "$ac_tool_prefix"; then
12025  for ac_prog in ar
12026  do
12027    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12028set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12030$as_echo_n "checking for $ac_word... " >&6; }
12031if ${ac_cv_prog_AR+:} false; then :
12032  $as_echo_n "(cached) " >&6
12033else
12034  if test -n "$AR"; then
12035  ac_cv_prog_AR="$AR" # Let the user override the test.
12036else
12037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12038for as_dir in $PATH
12039do
12040  IFS=$as_save_IFS
12041  test -z "$as_dir" && as_dir=.
12042    for ac_exec_ext in '' $ac_executable_extensions; do
12043  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12044    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12046    break 2
12047  fi
12048done
12049  done
12050IFS=$as_save_IFS
12051
12052fi
12053fi
12054AR=$ac_cv_prog_AR
12055if test -n "$AR"; then
12056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12057$as_echo "$AR" >&6; }
12058else
12059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12060$as_echo "no" >&6; }
12061fi
12062
12063
12064    test -n "$AR" && break
12065  done
12066fi
12067if test -z "$AR"; then
12068  ac_ct_AR=$AR
12069  for ac_prog in ar
12070do
12071  # Extract the first word of "$ac_prog", so it can be a program name with args.
12072set dummy $ac_prog; ac_word=$2
12073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12074$as_echo_n "checking for $ac_word... " >&6; }
12075if ${ac_cv_prog_ac_ct_AR+:} false; then :
12076  $as_echo_n "(cached) " >&6
12077else
12078  if test -n "$ac_ct_AR"; then
12079  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12080else
12081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082for as_dir in $PATH
12083do
12084  IFS=$as_save_IFS
12085  test -z "$as_dir" && as_dir=.
12086    for ac_exec_ext in '' $ac_executable_extensions; do
12087  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12088    ac_cv_prog_ac_ct_AR="$ac_prog"
12089    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12090    break 2
12091  fi
12092done
12093  done
12094IFS=$as_save_IFS
12095
12096fi
12097fi
12098ac_ct_AR=$ac_cv_prog_ac_ct_AR
12099if test -n "$ac_ct_AR"; then
12100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12101$as_echo "$ac_ct_AR" >&6; }
12102else
12103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104$as_echo "no" >&6; }
12105fi
12106
12107
12108  test -n "$ac_ct_AR" && break
12109done
12110
12111  if test "x$ac_ct_AR" = x; then
12112    AR="false"
12113  else
12114    case $cross_compiling:$ac_tool_warned in
12115yes:)
12116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12118ac_tool_warned=yes ;;
12119esac
12120    AR=$ac_ct_AR
12121  fi
12122fi
12123
12124: ${AR=ar}
12125: ${AR_FLAGS=cru}
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12138$as_echo_n "checking for archiver @FILE support... " >&6; }
12139if ${lt_cv_ar_at_file+:} false; then :
12140  $as_echo_n "(cached) " >&6
12141else
12142  lt_cv_ar_at_file=no
12143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144/* end confdefs.h.  */
12145
12146int
12147main ()
12148{
12149
12150  ;
12151  return 0;
12152}
12153_ACEOF
12154if ac_fn_c_try_compile "$LINENO"; then :
12155  echo conftest.$ac_objext > conftest.lst
12156      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12157      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12158  (eval $lt_ar_try) 2>&5
12159  ac_status=$?
12160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12161  test $ac_status = 0; }
12162      if test "$ac_status" -eq 0; then
12163	# Ensure the archiver fails upon bogus file names.
12164	rm -f conftest.$ac_objext libconftest.a
12165	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12166  (eval $lt_ar_try) 2>&5
12167  ac_status=$?
12168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12169  test $ac_status = 0; }
12170	if test "$ac_status" -ne 0; then
12171          lt_cv_ar_at_file=@
12172        fi
12173      fi
12174      rm -f conftest.* libconftest.a
12175
12176fi
12177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12178
12179fi
12180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12181$as_echo "$lt_cv_ar_at_file" >&6; }
12182
12183if test "x$lt_cv_ar_at_file" = xno; then
12184  archiver_list_spec=
12185else
12186  archiver_list_spec=$lt_cv_ar_at_file
12187fi
12188
12189
12190
12191
12192
12193
12194
12195if test -n "$ac_tool_prefix"; then
12196  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12197set dummy ${ac_tool_prefix}strip; ac_word=$2
12198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12199$as_echo_n "checking for $ac_word... " >&6; }
12200if ${ac_cv_prog_STRIP+:} false; then :
12201  $as_echo_n "(cached) " >&6
12202else
12203  if test -n "$STRIP"; then
12204  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12205else
12206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207for as_dir in $PATH
12208do
12209  IFS=$as_save_IFS
12210  test -z "$as_dir" && as_dir=.
12211    for ac_exec_ext in '' $ac_executable_extensions; do
12212  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12213    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12215    break 2
12216  fi
12217done
12218  done
12219IFS=$as_save_IFS
12220
12221fi
12222fi
12223STRIP=$ac_cv_prog_STRIP
12224if test -n "$STRIP"; then
12225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12226$as_echo "$STRIP" >&6; }
12227else
12228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229$as_echo "no" >&6; }
12230fi
12231
12232
12233fi
12234if test -z "$ac_cv_prog_STRIP"; then
12235  ac_ct_STRIP=$STRIP
12236  # Extract the first word of "strip", so it can be a program name with args.
12237set dummy strip; ac_word=$2
12238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12239$as_echo_n "checking for $ac_word... " >&6; }
12240if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12241  $as_echo_n "(cached) " >&6
12242else
12243  if test -n "$ac_ct_STRIP"; then
12244  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12245else
12246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247for as_dir in $PATH
12248do
12249  IFS=$as_save_IFS
12250  test -z "$as_dir" && as_dir=.
12251    for ac_exec_ext in '' $ac_executable_extensions; do
12252  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12253    ac_cv_prog_ac_ct_STRIP="strip"
12254    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12255    break 2
12256  fi
12257done
12258  done
12259IFS=$as_save_IFS
12260
12261fi
12262fi
12263ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12264if test -n "$ac_ct_STRIP"; then
12265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12266$as_echo "$ac_ct_STRIP" >&6; }
12267else
12268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12269$as_echo "no" >&6; }
12270fi
12271
12272  if test "x$ac_ct_STRIP" = x; then
12273    STRIP=":"
12274  else
12275    case $cross_compiling:$ac_tool_warned in
12276yes:)
12277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12279ac_tool_warned=yes ;;
12280esac
12281    STRIP=$ac_ct_STRIP
12282  fi
12283else
12284  STRIP="$ac_cv_prog_STRIP"
12285fi
12286
12287test -z "$STRIP" && STRIP=:
12288
12289
12290
12291
12292
12293
12294if test -n "$ac_tool_prefix"; then
12295  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12296set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12298$as_echo_n "checking for $ac_word... " >&6; }
12299if ${ac_cv_prog_RANLIB+:} false; then :
12300  $as_echo_n "(cached) " >&6
12301else
12302  if test -n "$RANLIB"; then
12303  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12304else
12305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306for as_dir in $PATH
12307do
12308  IFS=$as_save_IFS
12309  test -z "$as_dir" && as_dir=.
12310    for ac_exec_ext in '' $ac_executable_extensions; do
12311  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12312    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12313    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12314    break 2
12315  fi
12316done
12317  done
12318IFS=$as_save_IFS
12319
12320fi
12321fi
12322RANLIB=$ac_cv_prog_RANLIB
12323if test -n "$RANLIB"; then
12324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12325$as_echo "$RANLIB" >&6; }
12326else
12327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328$as_echo "no" >&6; }
12329fi
12330
12331
12332fi
12333if test -z "$ac_cv_prog_RANLIB"; then
12334  ac_ct_RANLIB=$RANLIB
12335  # Extract the first word of "ranlib", so it can be a program name with args.
12336set dummy ranlib; ac_word=$2
12337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12338$as_echo_n "checking for $ac_word... " >&6; }
12339if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12340  $as_echo_n "(cached) " >&6
12341else
12342  if test -n "$ac_ct_RANLIB"; then
12343  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12344else
12345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12346for as_dir in $PATH
12347do
12348  IFS=$as_save_IFS
12349  test -z "$as_dir" && as_dir=.
12350    for ac_exec_ext in '' $ac_executable_extensions; do
12351  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12352    ac_cv_prog_ac_ct_RANLIB="ranlib"
12353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12354    break 2
12355  fi
12356done
12357  done
12358IFS=$as_save_IFS
12359
12360fi
12361fi
12362ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12363if test -n "$ac_ct_RANLIB"; then
12364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12365$as_echo "$ac_ct_RANLIB" >&6; }
12366else
12367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12368$as_echo "no" >&6; }
12369fi
12370
12371  if test "x$ac_ct_RANLIB" = x; then
12372    RANLIB=":"
12373  else
12374    case $cross_compiling:$ac_tool_warned in
12375yes:)
12376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12378ac_tool_warned=yes ;;
12379esac
12380    RANLIB=$ac_ct_RANLIB
12381  fi
12382else
12383  RANLIB="$ac_cv_prog_RANLIB"
12384fi
12385
12386test -z "$RANLIB" && RANLIB=:
12387
12388
12389
12390
12391
12392
12393# Determine commands to create old-style static archives.
12394old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12395old_postinstall_cmds='chmod 644 $oldlib'
12396old_postuninstall_cmds=
12397
12398if test -n "$RANLIB"; then
12399  case $host_os in
12400  openbsd*)
12401    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12402    ;;
12403  *)
12404    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12405    ;;
12406  esac
12407  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12408fi
12409
12410case $host_os in
12411  darwin*)
12412    lock_old_archive_extraction=yes ;;
12413  *)
12414    lock_old_archive_extraction=no ;;
12415esac
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455# If no C compiler was specified, use CC.
12456LTCC=${LTCC-"$CC"}
12457
12458# If no C compiler flags were specified, use CFLAGS.
12459LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12460
12461# Allow CC to be a program name with arguments.
12462compiler=$CC
12463
12464
12465# Check for command to grab the raw symbol name followed by C symbol from nm.
12466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12467$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12468if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12469  $as_echo_n "(cached) " >&6
12470else
12471
12472# These are sane defaults that work on at least a few old systems.
12473# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12474
12475# Character class describing NM global symbol codes.
12476symcode='[BCDEGRST]'
12477
12478# Regexp to match symbols that can be accessed directly from C.
12479sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12480
12481# Define system-specific variables.
12482case $host_os in
12483aix*)
12484  symcode='[BCDT]'
12485  ;;
12486cygwin* | mingw* | pw32* | cegcc*)
12487  symcode='[ABCDGISTW]'
12488  ;;
12489hpux*)
12490  if test "$host_cpu" = ia64; then
12491    symcode='[ABCDEGRST]'
12492  fi
12493  ;;
12494irix* | nonstopux*)
12495  symcode='[BCDEGRST]'
12496  ;;
12497osf*)
12498  symcode='[BCDEGQRST]'
12499  ;;
12500solaris*)
12501  symcode='[BDRT]'
12502  ;;
12503sco3.2v5*)
12504  symcode='[DT]'
12505  ;;
12506sysv4.2uw2*)
12507  symcode='[DT]'
12508  ;;
12509sysv5* | sco5v6* | unixware* | OpenUNIX*)
12510  symcode='[ABDT]'
12511  ;;
12512sysv4)
12513  symcode='[DFNSTU]'
12514  ;;
12515esac
12516
12517# If we're using GNU nm, then use its standard symbol codes.
12518case `$NM -V 2>&1` in
12519*GNU* | *'with BFD'*)
12520  symcode='[ABCDGIRSTW]' ;;
12521esac
12522
12523# Transform an extracted symbol line into a proper C declaration.
12524# Some systems (esp. on ia64) link data and code symbols differently,
12525# so use this general approach.
12526lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12527
12528# Transform an extracted symbol line into symbol name and symbol address
12529lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12530lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
12531
12532# Handle CRLF in mingw tool chain
12533opt_cr=
12534case $build_os in
12535mingw*)
12536  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12537  ;;
12538esac
12539
12540# Try without a prefix underscore, then with it.
12541for ac_symprfx in "" "_"; do
12542
12543  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12544  symxfrm="\\1 $ac_symprfx\\2 \\2"
12545
12546  # Write the raw and C identifiers.
12547  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12548    # Fake it for dumpbin and say T for any non-static function
12549    # and D for any global variable.
12550    # Also find C++ and __fastcall symbols from MSVC++,
12551    # which start with @ or ?.
12552    lt_cv_sys_global_symbol_pipe="$AWK '"\
12553"     {last_section=section; section=\$ 3};"\
12554"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12555"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12556"     \$ 0!~/External *\|/{next};"\
12557"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12558"     {if(hide[section]) next};"\
12559"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12560"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12561"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12562"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12563"     ' prfx=^$ac_symprfx"
12564  else
12565    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12566  fi
12567  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12568
12569  # Check to see that the pipe works correctly.
12570  pipe_works=no
12571
12572  rm -f conftest*
12573  cat > conftest.$ac_ext <<_LT_EOF
12574#ifdef __cplusplus
12575extern "C" {
12576#endif
12577char nm_test_var;
12578void nm_test_func(void);
12579void nm_test_func(void){}
12580#ifdef __cplusplus
12581}
12582#endif
12583int main(){nm_test_var='a';nm_test_func();return(0);}
12584_LT_EOF
12585
12586  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12587  (eval $ac_compile) 2>&5
12588  ac_status=$?
12589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12590  test $ac_status = 0; }; then
12591    # Now try to grab the symbols.
12592    nlist=conftest.nm
12593    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12594  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12595  ac_status=$?
12596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12597  test $ac_status = 0; } && test -s "$nlist"; then
12598      # Try sorting and uniquifying the output.
12599      if sort "$nlist" | uniq > "$nlist"T; then
12600	mv -f "$nlist"T "$nlist"
12601      else
12602	rm -f "$nlist"T
12603      fi
12604
12605      # Make sure that we snagged all the symbols we need.
12606      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12607	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12608	  cat <<_LT_EOF > conftest.$ac_ext
12609/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12610#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12611/* DATA imports from DLLs on WIN32 con't be const, because runtime
12612   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12613# define LT_DLSYM_CONST
12614#elif defined(__osf__)
12615/* This system does not cope well with relocations in const data.  */
12616# define LT_DLSYM_CONST
12617#else
12618# define LT_DLSYM_CONST const
12619#endif
12620
12621#ifdef __cplusplus
12622extern "C" {
12623#endif
12624
12625_LT_EOF
12626	  # Now generate the symbol file.
12627	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12628
12629	  cat <<_LT_EOF >> conftest.$ac_ext
12630
12631/* The mapping between symbol names and symbols.  */
12632LT_DLSYM_CONST struct {
12633  const char *name;
12634  void       *address;
12635}
12636lt__PROGRAM__LTX_preloaded_symbols[] =
12637{
12638  { "@PROGRAM@", (void *) 0 },
12639_LT_EOF
12640	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12641	  cat <<\_LT_EOF >> conftest.$ac_ext
12642  {0, (void *) 0}
12643};
12644
12645/* This works around a problem in FreeBSD linker */
12646#ifdef FREEBSD_WORKAROUND
12647static const void *lt_preloaded_setup() {
12648  return lt__PROGRAM__LTX_preloaded_symbols;
12649}
12650#endif
12651
12652#ifdef __cplusplus
12653}
12654#endif
12655_LT_EOF
12656	  # Now try linking the two files.
12657	  mv conftest.$ac_objext conftstm.$ac_objext
12658	  lt_globsym_save_LIBS=$LIBS
12659	  lt_globsym_save_CFLAGS=$CFLAGS
12660	  LIBS="conftstm.$ac_objext"
12661	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12662	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12663  (eval $ac_link) 2>&5
12664  ac_status=$?
12665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12666  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12667	    pipe_works=yes
12668	  fi
12669	  LIBS=$lt_globsym_save_LIBS
12670	  CFLAGS=$lt_globsym_save_CFLAGS
12671	else
12672	  echo "cannot find nm_test_func in $nlist" >&5
12673	fi
12674      else
12675	echo "cannot find nm_test_var in $nlist" >&5
12676      fi
12677    else
12678      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12679    fi
12680  else
12681    echo "$progname: failed program was:" >&5
12682    cat conftest.$ac_ext >&5
12683  fi
12684  rm -rf conftest* conftst*
12685
12686  # Do not use the global_symbol_pipe unless it works.
12687  if test "$pipe_works" = yes; then
12688    break
12689  else
12690    lt_cv_sys_global_symbol_pipe=
12691  fi
12692done
12693
12694fi
12695
12696if test -z "$lt_cv_sys_global_symbol_pipe"; then
12697  lt_cv_sys_global_symbol_to_cdecl=
12698fi
12699if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12701$as_echo "failed" >&6; }
12702else
12703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12704$as_echo "ok" >&6; }
12705fi
12706
12707# Response file support.
12708if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12709  nm_file_list_spec='@'
12710elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12711  nm_file_list_spec='@'
12712fi
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12741$as_echo_n "checking for sysroot... " >&6; }
12742
12743# Check whether --with-sysroot was given.
12744if test "${with_sysroot+set}" = set; then :
12745  withval=$with_sysroot;
12746else
12747  with_sysroot=no
12748fi
12749
12750
12751lt_sysroot=
12752case ${with_sysroot} in #(
12753 yes)
12754   if test "$GCC" = yes; then
12755     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12756   fi
12757   ;; #(
12758 /*)
12759   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12760   ;; #(
12761 no|'')
12762   ;; #(
12763 *)
12764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12765$as_echo "${with_sysroot}" >&6; }
12766   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12767   ;;
12768esac
12769
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12771$as_echo "${lt_sysroot:-no}" >&6; }
12772
12773
12774
12775
12776
12777# Check whether --enable-libtool-lock was given.
12778if test "${enable_libtool_lock+set}" = set; then :
12779  enableval=$enable_libtool_lock;
12780fi
12781
12782test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12783
12784# Some flags need to be propagated to the compiler or linker for good
12785# libtool support.
12786case $host in
12787ia64-*-hpux*)
12788  # Find out which ABI we are using.
12789  echo 'int i;' > conftest.$ac_ext
12790  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12791  (eval $ac_compile) 2>&5
12792  ac_status=$?
12793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12794  test $ac_status = 0; }; then
12795    case `/usr/bin/file conftest.$ac_objext` in
12796      *ELF-32*)
12797	HPUX_IA64_MODE="32"
12798	;;
12799      *ELF-64*)
12800	HPUX_IA64_MODE="64"
12801	;;
12802    esac
12803  fi
12804  rm -rf conftest*
12805  ;;
12806*-*-irix6*)
12807  # Find out which ABI we are using.
12808  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12809  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12810  (eval $ac_compile) 2>&5
12811  ac_status=$?
12812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12813  test $ac_status = 0; }; then
12814    if test "$lt_cv_prog_gnu_ld" = yes; then
12815      case `/usr/bin/file conftest.$ac_objext` in
12816	*32-bit*)
12817	  LD="${LD-ld} -melf32bsmip"
12818	  ;;
12819	*N32*)
12820	  LD="${LD-ld} -melf32bmipn32"
12821	  ;;
12822	*64-bit*)
12823	  LD="${LD-ld} -melf64bmip"
12824	;;
12825      esac
12826    else
12827      case `/usr/bin/file conftest.$ac_objext` in
12828	*32-bit*)
12829	  LD="${LD-ld} -32"
12830	  ;;
12831	*N32*)
12832	  LD="${LD-ld} -n32"
12833	  ;;
12834	*64-bit*)
12835	  LD="${LD-ld} -64"
12836	  ;;
12837      esac
12838    fi
12839  fi
12840  rm -rf conftest*
12841  ;;
12842
12843x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12844s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12845  # Find out which ABI we are using.
12846  echo 'int i;' > conftest.$ac_ext
12847  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12848  (eval $ac_compile) 2>&5
12849  ac_status=$?
12850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12851  test $ac_status = 0; }; then
12852    case `/usr/bin/file conftest.o` in
12853      *32-bit*)
12854	case $host in
12855	  x86_64-*kfreebsd*-gnu)
12856	    LD="${LD-ld} -m elf_i386_fbsd"
12857	    ;;
12858	  x86_64-*linux*)
12859	    LD="${LD-ld} -m elf_i386"
12860	    ;;
12861	  ppc64-*linux*|powerpc64-*linux*)
12862	    LD="${LD-ld} -m elf32ppclinux"
12863	    ;;
12864	  s390x-*linux*)
12865	    LD="${LD-ld} -m elf_s390"
12866	    ;;
12867	  sparc64-*linux*)
12868	    LD="${LD-ld} -m elf32_sparc"
12869	    ;;
12870	esac
12871	;;
12872      *64-bit*)
12873	case $host in
12874	  x86_64-*kfreebsd*-gnu)
12875	    LD="${LD-ld} -m elf_x86_64_fbsd"
12876	    ;;
12877	  x86_64-*linux*)
12878	    LD="${LD-ld} -m elf_x86_64"
12879	    ;;
12880	  ppc*-*linux*|powerpc*-*linux*)
12881	    LD="${LD-ld} -m elf64ppc"
12882	    ;;
12883	  s390*-*linux*|s390*-*tpf*)
12884	    LD="${LD-ld} -m elf64_s390"
12885	    ;;
12886	  sparc*-*linux*)
12887	    LD="${LD-ld} -m elf64_sparc"
12888	    ;;
12889	esac
12890	;;
12891    esac
12892  fi
12893  rm -rf conftest*
12894  ;;
12895
12896*-*-sco3.2v5*)
12897  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12898  SAVE_CFLAGS="$CFLAGS"
12899  CFLAGS="$CFLAGS -belf"
12900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12901$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12902if ${lt_cv_cc_needs_belf+:} false; then :
12903  $as_echo_n "(cached) " >&6
12904else
12905  ac_ext=c
12906ac_cpp='$CPP $CPPFLAGS'
12907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12909ac_compiler_gnu=$ac_cv_c_compiler_gnu
12910
12911     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912/* end confdefs.h.  */
12913
12914int
12915main ()
12916{
12917
12918  ;
12919  return 0;
12920}
12921_ACEOF
12922if ac_fn_c_try_link "$LINENO"; then :
12923  lt_cv_cc_needs_belf=yes
12924else
12925  lt_cv_cc_needs_belf=no
12926fi
12927rm -f core conftest.err conftest.$ac_objext \
12928    conftest$ac_exeext conftest.$ac_ext
12929     ac_ext=c
12930ac_cpp='$CPP $CPPFLAGS'
12931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12933ac_compiler_gnu=$ac_cv_c_compiler_gnu
12934
12935fi
12936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12937$as_echo "$lt_cv_cc_needs_belf" >&6; }
12938  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12939    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12940    CFLAGS="$SAVE_CFLAGS"
12941  fi
12942  ;;
12943*-*solaris*)
12944  # Find out which ABI we are using.
12945  echo 'int i;' > conftest.$ac_ext
12946  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12947  (eval $ac_compile) 2>&5
12948  ac_status=$?
12949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12950  test $ac_status = 0; }; then
12951    case `/usr/bin/file conftest.o` in
12952    *64-bit*)
12953      case $lt_cv_prog_gnu_ld in
12954      yes*)
12955        case $host in
12956        i?86-*-solaris*)
12957          LD="${LD-ld} -m elf_x86_64"
12958          ;;
12959        sparc*-*-solaris*)
12960          LD="${LD-ld} -m elf64_sparc"
12961          ;;
12962        esac
12963        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
12964        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12965          LD="${LD-ld}_sol2"
12966        fi
12967        ;;
12968      *)
12969	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12970	  LD="${LD-ld} -64"
12971	fi
12972	;;
12973      esac
12974      ;;
12975    esac
12976  fi
12977  rm -rf conftest*
12978  ;;
12979esac
12980
12981need_locks="$enable_libtool_lock"
12982
12983if test -n "$ac_tool_prefix"; then
12984  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12985set dummy ${ac_tool_prefix}mt; ac_word=$2
12986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12987$as_echo_n "checking for $ac_word... " >&6; }
12988if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12989  $as_echo_n "(cached) " >&6
12990else
12991  if test -n "$MANIFEST_TOOL"; then
12992  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12993else
12994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12995for as_dir in $PATH
12996do
12997  IFS=$as_save_IFS
12998  test -z "$as_dir" && as_dir=.
12999    for ac_exec_ext in '' $ac_executable_extensions; do
13000  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13001    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13003    break 2
13004  fi
13005done
13006  done
13007IFS=$as_save_IFS
13008
13009fi
13010fi
13011MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13012if test -n "$MANIFEST_TOOL"; then
13013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13014$as_echo "$MANIFEST_TOOL" >&6; }
13015else
13016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13017$as_echo "no" >&6; }
13018fi
13019
13020
13021fi
13022if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13023  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13024  # Extract the first word of "mt", so it can be a program name with args.
13025set dummy mt; ac_word=$2
13026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13027$as_echo_n "checking for $ac_word... " >&6; }
13028if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13029  $as_echo_n "(cached) " >&6
13030else
13031  if test -n "$ac_ct_MANIFEST_TOOL"; then
13032  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13033else
13034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13035for as_dir in $PATH
13036do
13037  IFS=$as_save_IFS
13038  test -z "$as_dir" && as_dir=.
13039    for ac_exec_ext in '' $ac_executable_extensions; do
13040  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13041    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13042    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13043    break 2
13044  fi
13045done
13046  done
13047IFS=$as_save_IFS
13048
13049fi
13050fi
13051ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13052if test -n "$ac_ct_MANIFEST_TOOL"; then
13053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13054$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13055else
13056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13057$as_echo "no" >&6; }
13058fi
13059
13060  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13061    MANIFEST_TOOL=":"
13062  else
13063    case $cross_compiling:$ac_tool_warned in
13064yes:)
13065{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13066$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13067ac_tool_warned=yes ;;
13068esac
13069    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13070  fi
13071else
13072  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13073fi
13074
13075test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13077$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13078if ${lt_cv_path_mainfest_tool+:} false; then :
13079  $as_echo_n "(cached) " >&6
13080else
13081  lt_cv_path_mainfest_tool=no
13082  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13083  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13084  cat conftest.err >&5
13085  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13086    lt_cv_path_mainfest_tool=yes
13087  fi
13088  rm -f conftest*
13089fi
13090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13091$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13092if test "x$lt_cv_path_mainfest_tool" != xyes; then
13093  MANIFEST_TOOL=:
13094fi
13095
13096
13097
13098
13099
13100
13101  case $host_os in
13102    rhapsody* | darwin*)
13103    if test -n "$ac_tool_prefix"; then
13104  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13105set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13107$as_echo_n "checking for $ac_word... " >&6; }
13108if ${ac_cv_prog_DSYMUTIL+:} false; then :
13109  $as_echo_n "(cached) " >&6
13110else
13111  if test -n "$DSYMUTIL"; then
13112  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13113else
13114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13115for as_dir in $PATH
13116do
13117  IFS=$as_save_IFS
13118  test -z "$as_dir" && as_dir=.
13119    for ac_exec_ext in '' $ac_executable_extensions; do
13120  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13121    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13123    break 2
13124  fi
13125done
13126  done
13127IFS=$as_save_IFS
13128
13129fi
13130fi
13131DSYMUTIL=$ac_cv_prog_DSYMUTIL
13132if test -n "$DSYMUTIL"; then
13133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13134$as_echo "$DSYMUTIL" >&6; }
13135else
13136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137$as_echo "no" >&6; }
13138fi
13139
13140
13141fi
13142if test -z "$ac_cv_prog_DSYMUTIL"; then
13143  ac_ct_DSYMUTIL=$DSYMUTIL
13144  # Extract the first word of "dsymutil", so it can be a program name with args.
13145set dummy dsymutil; ac_word=$2
13146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13147$as_echo_n "checking for $ac_word... " >&6; }
13148if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13149  $as_echo_n "(cached) " >&6
13150else
13151  if test -n "$ac_ct_DSYMUTIL"; then
13152  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13153else
13154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13155for as_dir in $PATH
13156do
13157  IFS=$as_save_IFS
13158  test -z "$as_dir" && as_dir=.
13159    for ac_exec_ext in '' $ac_executable_extensions; do
13160  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13161    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13163    break 2
13164  fi
13165done
13166  done
13167IFS=$as_save_IFS
13168
13169fi
13170fi
13171ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13172if test -n "$ac_ct_DSYMUTIL"; then
13173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13174$as_echo "$ac_ct_DSYMUTIL" >&6; }
13175else
13176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13177$as_echo "no" >&6; }
13178fi
13179
13180  if test "x$ac_ct_DSYMUTIL" = x; then
13181    DSYMUTIL=":"
13182  else
13183    case $cross_compiling:$ac_tool_warned in
13184yes:)
13185{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13186$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13187ac_tool_warned=yes ;;
13188esac
13189    DSYMUTIL=$ac_ct_DSYMUTIL
13190  fi
13191else
13192  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13193fi
13194
13195    if test -n "$ac_tool_prefix"; then
13196  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13197set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13199$as_echo_n "checking for $ac_word... " >&6; }
13200if ${ac_cv_prog_NMEDIT+:} false; then :
13201  $as_echo_n "(cached) " >&6
13202else
13203  if test -n "$NMEDIT"; then
13204  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13205else
13206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13207for as_dir in $PATH
13208do
13209  IFS=$as_save_IFS
13210  test -z "$as_dir" && as_dir=.
13211    for ac_exec_ext in '' $ac_executable_extensions; do
13212  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13213    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13215    break 2
13216  fi
13217done
13218  done
13219IFS=$as_save_IFS
13220
13221fi
13222fi
13223NMEDIT=$ac_cv_prog_NMEDIT
13224if test -n "$NMEDIT"; then
13225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13226$as_echo "$NMEDIT" >&6; }
13227else
13228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13229$as_echo "no" >&6; }
13230fi
13231
13232
13233fi
13234if test -z "$ac_cv_prog_NMEDIT"; then
13235  ac_ct_NMEDIT=$NMEDIT
13236  # Extract the first word of "nmedit", so it can be a program name with args.
13237set dummy nmedit; ac_word=$2
13238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13239$as_echo_n "checking for $ac_word... " >&6; }
13240if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13241  $as_echo_n "(cached) " >&6
13242else
13243  if test -n "$ac_ct_NMEDIT"; then
13244  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13245else
13246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247for as_dir in $PATH
13248do
13249  IFS=$as_save_IFS
13250  test -z "$as_dir" && as_dir=.
13251    for ac_exec_ext in '' $ac_executable_extensions; do
13252  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13253    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13254    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13255    break 2
13256  fi
13257done
13258  done
13259IFS=$as_save_IFS
13260
13261fi
13262fi
13263ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13264if test -n "$ac_ct_NMEDIT"; then
13265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13266$as_echo "$ac_ct_NMEDIT" >&6; }
13267else
13268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13269$as_echo "no" >&6; }
13270fi
13271
13272  if test "x$ac_ct_NMEDIT" = x; then
13273    NMEDIT=":"
13274  else
13275    case $cross_compiling:$ac_tool_warned in
13276yes:)
13277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13279ac_tool_warned=yes ;;
13280esac
13281    NMEDIT=$ac_ct_NMEDIT
13282  fi
13283else
13284  NMEDIT="$ac_cv_prog_NMEDIT"
13285fi
13286
13287    if test -n "$ac_tool_prefix"; then
13288  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13289set dummy ${ac_tool_prefix}lipo; ac_word=$2
13290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13291$as_echo_n "checking for $ac_word... " >&6; }
13292if ${ac_cv_prog_LIPO+:} false; then :
13293  $as_echo_n "(cached) " >&6
13294else
13295  if test -n "$LIPO"; then
13296  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13297else
13298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299for as_dir in $PATH
13300do
13301  IFS=$as_save_IFS
13302  test -z "$as_dir" && as_dir=.
13303    for ac_exec_ext in '' $ac_executable_extensions; do
13304  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13305    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13306    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13307    break 2
13308  fi
13309done
13310  done
13311IFS=$as_save_IFS
13312
13313fi
13314fi
13315LIPO=$ac_cv_prog_LIPO
13316if test -n "$LIPO"; then
13317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13318$as_echo "$LIPO" >&6; }
13319else
13320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13321$as_echo "no" >&6; }
13322fi
13323
13324
13325fi
13326if test -z "$ac_cv_prog_LIPO"; then
13327  ac_ct_LIPO=$LIPO
13328  # Extract the first word of "lipo", so it can be a program name with args.
13329set dummy lipo; ac_word=$2
13330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13331$as_echo_n "checking for $ac_word... " >&6; }
13332if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13333  $as_echo_n "(cached) " >&6
13334else
13335  if test -n "$ac_ct_LIPO"; then
13336  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13337else
13338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13339for as_dir in $PATH
13340do
13341  IFS=$as_save_IFS
13342  test -z "$as_dir" && as_dir=.
13343    for ac_exec_ext in '' $ac_executable_extensions; do
13344  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13345    ac_cv_prog_ac_ct_LIPO="lipo"
13346    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13347    break 2
13348  fi
13349done
13350  done
13351IFS=$as_save_IFS
13352
13353fi
13354fi
13355ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13356if test -n "$ac_ct_LIPO"; then
13357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13358$as_echo "$ac_ct_LIPO" >&6; }
13359else
13360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13361$as_echo "no" >&6; }
13362fi
13363
13364  if test "x$ac_ct_LIPO" = x; then
13365    LIPO=":"
13366  else
13367    case $cross_compiling:$ac_tool_warned in
13368yes:)
13369{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13370$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13371ac_tool_warned=yes ;;
13372esac
13373    LIPO=$ac_ct_LIPO
13374  fi
13375else
13376  LIPO="$ac_cv_prog_LIPO"
13377fi
13378
13379    if test -n "$ac_tool_prefix"; then
13380  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13381set dummy ${ac_tool_prefix}otool; ac_word=$2
13382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13383$as_echo_n "checking for $ac_word... " >&6; }
13384if ${ac_cv_prog_OTOOL+:} false; then :
13385  $as_echo_n "(cached) " >&6
13386else
13387  if test -n "$OTOOL"; then
13388  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13389else
13390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13391for as_dir in $PATH
13392do
13393  IFS=$as_save_IFS
13394  test -z "$as_dir" && as_dir=.
13395    for ac_exec_ext in '' $ac_executable_extensions; do
13396  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13397    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13399    break 2
13400  fi
13401done
13402  done
13403IFS=$as_save_IFS
13404
13405fi
13406fi
13407OTOOL=$ac_cv_prog_OTOOL
13408if test -n "$OTOOL"; then
13409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13410$as_echo "$OTOOL" >&6; }
13411else
13412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13413$as_echo "no" >&6; }
13414fi
13415
13416
13417fi
13418if test -z "$ac_cv_prog_OTOOL"; then
13419  ac_ct_OTOOL=$OTOOL
13420  # Extract the first word of "otool", so it can be a program name with args.
13421set dummy otool; ac_word=$2
13422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13423$as_echo_n "checking for $ac_word... " >&6; }
13424if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13425  $as_echo_n "(cached) " >&6
13426else
13427  if test -n "$ac_ct_OTOOL"; then
13428  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13429else
13430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13431for as_dir in $PATH
13432do
13433  IFS=$as_save_IFS
13434  test -z "$as_dir" && as_dir=.
13435    for ac_exec_ext in '' $ac_executable_extensions; do
13436  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13437    ac_cv_prog_ac_ct_OTOOL="otool"
13438    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13439    break 2
13440  fi
13441done
13442  done
13443IFS=$as_save_IFS
13444
13445fi
13446fi
13447ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13448if test -n "$ac_ct_OTOOL"; then
13449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13450$as_echo "$ac_ct_OTOOL" >&6; }
13451else
13452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453$as_echo "no" >&6; }
13454fi
13455
13456  if test "x$ac_ct_OTOOL" = x; then
13457    OTOOL=":"
13458  else
13459    case $cross_compiling:$ac_tool_warned in
13460yes:)
13461{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13463ac_tool_warned=yes ;;
13464esac
13465    OTOOL=$ac_ct_OTOOL
13466  fi
13467else
13468  OTOOL="$ac_cv_prog_OTOOL"
13469fi
13470
13471    if test -n "$ac_tool_prefix"; then
13472  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13473set dummy ${ac_tool_prefix}otool64; ac_word=$2
13474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13475$as_echo_n "checking for $ac_word... " >&6; }
13476if ${ac_cv_prog_OTOOL64+:} false; then :
13477  $as_echo_n "(cached) " >&6
13478else
13479  if test -n "$OTOOL64"; then
13480  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13481else
13482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13483for as_dir in $PATH
13484do
13485  IFS=$as_save_IFS
13486  test -z "$as_dir" && as_dir=.
13487    for ac_exec_ext in '' $ac_executable_extensions; do
13488  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13489    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13490    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13491    break 2
13492  fi
13493done
13494  done
13495IFS=$as_save_IFS
13496
13497fi
13498fi
13499OTOOL64=$ac_cv_prog_OTOOL64
13500if test -n "$OTOOL64"; then
13501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13502$as_echo "$OTOOL64" >&6; }
13503else
13504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13505$as_echo "no" >&6; }
13506fi
13507
13508
13509fi
13510if test -z "$ac_cv_prog_OTOOL64"; then
13511  ac_ct_OTOOL64=$OTOOL64
13512  # Extract the first word of "otool64", so it can be a program name with args.
13513set dummy otool64; ac_word=$2
13514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13515$as_echo_n "checking for $ac_word... " >&6; }
13516if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13517  $as_echo_n "(cached) " >&6
13518else
13519  if test -n "$ac_ct_OTOOL64"; then
13520  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13521else
13522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13523for as_dir in $PATH
13524do
13525  IFS=$as_save_IFS
13526  test -z "$as_dir" && as_dir=.
13527    for ac_exec_ext in '' $ac_executable_extensions; do
13528  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13529    ac_cv_prog_ac_ct_OTOOL64="otool64"
13530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13531    break 2
13532  fi
13533done
13534  done
13535IFS=$as_save_IFS
13536
13537fi
13538fi
13539ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13540if test -n "$ac_ct_OTOOL64"; then
13541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13542$as_echo "$ac_ct_OTOOL64" >&6; }
13543else
13544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545$as_echo "no" >&6; }
13546fi
13547
13548  if test "x$ac_ct_OTOOL64" = x; then
13549    OTOOL64=":"
13550  else
13551    case $cross_compiling:$ac_tool_warned in
13552yes:)
13553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13555ac_tool_warned=yes ;;
13556esac
13557    OTOOL64=$ac_ct_OTOOL64
13558  fi
13559else
13560  OTOOL64="$ac_cv_prog_OTOOL64"
13561fi
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13590$as_echo_n "checking for -single_module linker flag... " >&6; }
13591if ${lt_cv_apple_cc_single_mod+:} false; then :
13592  $as_echo_n "(cached) " >&6
13593else
13594  lt_cv_apple_cc_single_mod=no
13595      if test -z "${LT_MULTI_MODULE}"; then
13596	# By default we will add the -single_module flag. You can override
13597	# by either setting the environment variable LT_MULTI_MODULE
13598	# non-empty at configure time, or by adding -multi_module to the
13599	# link flags.
13600	rm -rf libconftest.dylib*
13601	echo "int foo(void){return 1;}" > conftest.c
13602	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13603-dynamiclib -Wl,-single_module conftest.c" >&5
13604	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13605	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13606        _lt_result=$?
13607	# If there is a non-empty error log, and "single_module"
13608	# appears in it, assume the flag caused a linker warning
13609        if test -s conftest.err && $GREP single_module conftest.err; then
13610	  cat conftest.err >&5
13611	# Otherwise, if the output was created with a 0 exit code from
13612	# the compiler, it worked.
13613	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13614	  lt_cv_apple_cc_single_mod=yes
13615	else
13616	  cat conftest.err >&5
13617	fi
13618	rm -rf libconftest.dylib*
13619	rm -f conftest.*
13620      fi
13621fi
13622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13623$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13624
13625    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13626$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13627if ${lt_cv_ld_exported_symbols_list+:} false; then :
13628  $as_echo_n "(cached) " >&6
13629else
13630  lt_cv_ld_exported_symbols_list=no
13631      save_LDFLAGS=$LDFLAGS
13632      echo "_main" > conftest.sym
13633      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13634      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635/* end confdefs.h.  */
13636
13637int
13638main ()
13639{
13640
13641  ;
13642  return 0;
13643}
13644_ACEOF
13645if ac_fn_c_try_link "$LINENO"; then :
13646  lt_cv_ld_exported_symbols_list=yes
13647else
13648  lt_cv_ld_exported_symbols_list=no
13649fi
13650rm -f core conftest.err conftest.$ac_objext \
13651    conftest$ac_exeext conftest.$ac_ext
13652	LDFLAGS="$save_LDFLAGS"
13653
13654fi
13655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13656$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13657
13658    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13659$as_echo_n "checking for -force_load linker flag... " >&6; }
13660if ${lt_cv_ld_force_load+:} false; then :
13661  $as_echo_n "(cached) " >&6
13662else
13663  lt_cv_ld_force_load=no
13664      cat > conftest.c << _LT_EOF
13665int forced_loaded() { return 2;}
13666_LT_EOF
13667      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13668      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13669      echo "$AR cru libconftest.a conftest.o" >&5
13670      $AR cru libconftest.a conftest.o 2>&5
13671      echo "$RANLIB libconftest.a" >&5
13672      $RANLIB libconftest.a 2>&5
13673      cat > conftest.c << _LT_EOF
13674int main() { return 0;}
13675_LT_EOF
13676      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13677      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13678      _lt_result=$?
13679      if test -s conftest.err && $GREP force_load conftest.err; then
13680	cat conftest.err >&5
13681      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13682	lt_cv_ld_force_load=yes
13683      else
13684	cat conftest.err >&5
13685      fi
13686        rm -f conftest.err libconftest.a conftest conftest.c
13687        rm -rf conftest.dSYM
13688
13689fi
13690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13691$as_echo "$lt_cv_ld_force_load" >&6; }
13692    case $host_os in
13693    rhapsody* | darwin1.[012])
13694      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13695    darwin1.*)
13696      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13697    darwin*) # darwin 5.x on
13698      # if running on 10.5 or later, the deployment target defaults
13699      # to the OS version, if on x86, and 10.4, the deployment
13700      # target defaults to 10.4. Don't you love it?
13701      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13702	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13703	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13704	10.[012]*)
13705	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13706	10.*)
13707	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13708      esac
13709    ;;
13710  esac
13711    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13712      _lt_dar_single_mod='$single_module'
13713    fi
13714    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13715      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13716    else
13717      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13718    fi
13719    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13720      _lt_dsymutil='~$DSYMUTIL $lib || :'
13721    else
13722      _lt_dsymutil=
13723    fi
13724    ;;
13725  esac
13726
13727for ac_header in dlfcn.h
13728do :
13729  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13730"
13731if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13732  cat >>confdefs.h <<_ACEOF
13733#define HAVE_DLFCN_H 1
13734_ACEOF
13735
13736fi
13737
13738done
13739
13740
13741
13742
13743
13744# Set options
13745
13746
13747
13748        enable_dlopen=no
13749
13750
13751
13752            # Check whether --enable-shared was given.
13753if test "${enable_shared+set}" = set; then :
13754  enableval=$enable_shared; p=${PACKAGE-default}
13755    case $enableval in
13756    yes) enable_shared=yes ;;
13757    no) enable_shared=no ;;
13758    *)
13759      enable_shared=no
13760      # Look at the argument we got.  We use all the common list separators.
13761      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13762      for pkg in $enableval; do
13763	IFS="$lt_save_ifs"
13764	if test "X$pkg" = "X$p"; then
13765	  enable_shared=yes
13766	fi
13767      done
13768      IFS="$lt_save_ifs"
13769      ;;
13770    esac
13771else
13772  enable_shared=yes
13773fi
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783  # Check whether --enable-static was given.
13784if test "${enable_static+set}" = set; then :
13785  enableval=$enable_static; p=${PACKAGE-default}
13786    case $enableval in
13787    yes) enable_static=yes ;;
13788    no) enable_static=no ;;
13789    *)
13790     enable_static=no
13791      # Look at the argument we got.  We use all the common list separators.
13792      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13793      for pkg in $enableval; do
13794	IFS="$lt_save_ifs"
13795	if test "X$pkg" = "X$p"; then
13796	  enable_static=yes
13797	fi
13798      done
13799      IFS="$lt_save_ifs"
13800      ;;
13801    esac
13802else
13803  enable_static=yes
13804fi
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815# Check whether --with-pic was given.
13816if test "${with_pic+set}" = set; then :
13817  withval=$with_pic; lt_p=${PACKAGE-default}
13818    case $withval in
13819    yes|no) pic_mode=$withval ;;
13820    *)
13821      pic_mode=default
13822      # Look at the argument we got.  We use all the common list separators.
13823      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13824      for lt_pkg in $withval; do
13825	IFS="$lt_save_ifs"
13826	if test "X$lt_pkg" = "X$lt_p"; then
13827	  pic_mode=yes
13828	fi
13829      done
13830      IFS="$lt_save_ifs"
13831      ;;
13832    esac
13833else
13834  pic_mode=default
13835fi
13836
13837
13838test -z "$pic_mode" && pic_mode=default
13839
13840
13841
13842
13843
13844
13845
13846  # Check whether --enable-fast-install was given.
13847if test "${enable_fast_install+set}" = set; then :
13848  enableval=$enable_fast_install; p=${PACKAGE-default}
13849    case $enableval in
13850    yes) enable_fast_install=yes ;;
13851    no) enable_fast_install=no ;;
13852    *)
13853      enable_fast_install=no
13854      # Look at the argument we got.  We use all the common list separators.
13855      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13856      for pkg in $enableval; do
13857	IFS="$lt_save_ifs"
13858	if test "X$pkg" = "X$p"; then
13859	  enable_fast_install=yes
13860	fi
13861      done
13862      IFS="$lt_save_ifs"
13863      ;;
13864    esac
13865else
13866  enable_fast_install=yes
13867fi
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879# This can be used to rebuild libtool when needed
13880LIBTOOL_DEPS="$ltmain"
13881
13882# Always use our own libtool.
13883LIBTOOL='$(SHELL) $(apr_builddir)/libtool'
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914test -z "$LN_S" && LN_S="ln -s"
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929if test -n "${ZSH_VERSION+set}" ; then
13930   setopt NO_GLOB_SUBST
13931fi
13932
13933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13934$as_echo_n "checking for objdir... " >&6; }
13935if ${lt_cv_objdir+:} false; then :
13936  $as_echo_n "(cached) " >&6
13937else
13938  rm -f .libs 2>/dev/null
13939mkdir .libs 2>/dev/null
13940if test -d .libs; then
13941  lt_cv_objdir=.libs
13942else
13943  # MS-DOS does not allow filenames that begin with a dot.
13944  lt_cv_objdir=_libs
13945fi
13946rmdir .libs 2>/dev/null
13947fi
13948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13949$as_echo "$lt_cv_objdir" >&6; }
13950objdir=$lt_cv_objdir
13951
13952
13953
13954
13955
13956cat >>confdefs.h <<_ACEOF
13957#define LT_OBJDIR "$lt_cv_objdir/"
13958_ACEOF
13959
13960
13961
13962
13963case $host_os in
13964aix3*)
13965  # AIX sometimes has problems with the GCC collect2 program.  For some
13966  # reason, if we set the COLLECT_NAMES environment variable, the problems
13967  # vanish in a puff of smoke.
13968  if test "X${COLLECT_NAMES+set}" != Xset; then
13969    COLLECT_NAMES=
13970    export COLLECT_NAMES
13971  fi
13972  ;;
13973esac
13974
13975# Global variables:
13976ofile=libtool
13977can_build_shared=yes
13978
13979# All known linkers require a `.a' archive for static linking (except MSVC,
13980# which needs '.lib').
13981libext=a
13982
13983with_gnu_ld="$lt_cv_prog_gnu_ld"
13984
13985old_CC="$CC"
13986old_CFLAGS="$CFLAGS"
13987
13988# Set sane defaults for various variables
13989test -z "$CC" && CC=cc
13990test -z "$LTCC" && LTCC=$CC
13991test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13992test -z "$LD" && LD=ld
13993test -z "$ac_objext" && ac_objext=o
13994
13995for cc_temp in $compiler""; do
13996  case $cc_temp in
13997    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13998    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13999    \-*) ;;
14000    *) break;;
14001  esac
14002done
14003cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14004
14005
14006# Only perform the check for file, if the check method requires it
14007test -z "$MAGIC_CMD" && MAGIC_CMD=file
14008case $deplibs_check_method in
14009file_magic*)
14010  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14011    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14012$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14013if ${lt_cv_path_MAGIC_CMD+:} false; then :
14014  $as_echo_n "(cached) " >&6
14015else
14016  case $MAGIC_CMD in
14017[\\/*] |  ?:[\\/]*)
14018  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14019  ;;
14020*)
14021  lt_save_MAGIC_CMD="$MAGIC_CMD"
14022  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14023  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14024  for ac_dir in $ac_dummy; do
14025    IFS="$lt_save_ifs"
14026    test -z "$ac_dir" && ac_dir=.
14027    if test -f $ac_dir/${ac_tool_prefix}file; then
14028      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14029      if test -n "$file_magic_test_file"; then
14030	case $deplibs_check_method in
14031	"file_magic "*)
14032	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14033	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14034	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14035	    $EGREP "$file_magic_regex" > /dev/null; then
14036	    :
14037	  else
14038	    cat <<_LT_EOF 1>&2
14039
14040*** Warning: the command libtool uses to detect shared libraries,
14041*** $file_magic_cmd, produces output that libtool cannot recognize.
14042*** The result is that libtool may fail to recognize shared libraries
14043*** as such.  This will affect the creation of libtool libraries that
14044*** depend on shared libraries, but programs linked with such libtool
14045*** libraries will work regardless of this problem.  Nevertheless, you
14046*** may want to report the problem to your system manager and/or to
14047*** bug-libtool@gnu.org
14048
14049_LT_EOF
14050	  fi ;;
14051	esac
14052      fi
14053      break
14054    fi
14055  done
14056  IFS="$lt_save_ifs"
14057  MAGIC_CMD="$lt_save_MAGIC_CMD"
14058  ;;
14059esac
14060fi
14061
14062MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14063if test -n "$MAGIC_CMD"; then
14064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14065$as_echo "$MAGIC_CMD" >&6; }
14066else
14067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14068$as_echo "no" >&6; }
14069fi
14070
14071
14072
14073
14074
14075if test -z "$lt_cv_path_MAGIC_CMD"; then
14076  if test -n "$ac_tool_prefix"; then
14077    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14078$as_echo_n "checking for file... " >&6; }
14079if ${lt_cv_path_MAGIC_CMD+:} false; then :
14080  $as_echo_n "(cached) " >&6
14081else
14082  case $MAGIC_CMD in
14083[\\/*] |  ?:[\\/]*)
14084  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14085  ;;
14086*)
14087  lt_save_MAGIC_CMD="$MAGIC_CMD"
14088  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14089  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14090  for ac_dir in $ac_dummy; do
14091    IFS="$lt_save_ifs"
14092    test -z "$ac_dir" && ac_dir=.
14093    if test -f $ac_dir/file; then
14094      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14095      if test -n "$file_magic_test_file"; then
14096	case $deplibs_check_method in
14097	"file_magic "*)
14098	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14099	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14100	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14101	    $EGREP "$file_magic_regex" > /dev/null; then
14102	    :
14103	  else
14104	    cat <<_LT_EOF 1>&2
14105
14106*** Warning: the command libtool uses to detect shared libraries,
14107*** $file_magic_cmd, produces output that libtool cannot recognize.
14108*** The result is that libtool may fail to recognize shared libraries
14109*** as such.  This will affect the creation of libtool libraries that
14110*** depend on shared libraries, but programs linked with such libtool
14111*** libraries will work regardless of this problem.  Nevertheless, you
14112*** may want to report the problem to your system manager and/or to
14113*** bug-libtool@gnu.org
14114
14115_LT_EOF
14116	  fi ;;
14117	esac
14118      fi
14119      break
14120    fi
14121  done
14122  IFS="$lt_save_ifs"
14123  MAGIC_CMD="$lt_save_MAGIC_CMD"
14124  ;;
14125esac
14126fi
14127
14128MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14129if test -n "$MAGIC_CMD"; then
14130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14131$as_echo "$MAGIC_CMD" >&6; }
14132else
14133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14134$as_echo "no" >&6; }
14135fi
14136
14137
14138  else
14139    MAGIC_CMD=:
14140  fi
14141fi
14142
14143  fi
14144  ;;
14145esac
14146
14147# Use C for the default configuration in the libtool script
14148
14149lt_save_CC="$CC"
14150ac_ext=c
14151ac_cpp='$CPP $CPPFLAGS'
14152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14154ac_compiler_gnu=$ac_cv_c_compiler_gnu
14155
14156
14157# Source file extension for C test sources.
14158ac_ext=c
14159
14160# Object file extension for compiled C test sources.
14161objext=o
14162objext=$objext
14163
14164# Code to be used in simple compile tests
14165lt_simple_compile_test_code="int some_variable = 0;"
14166
14167# Code to be used in simple link tests
14168lt_simple_link_test_code='int main(){return(0);}'
14169
14170
14171
14172
14173
14174
14175
14176# If no C compiler was specified, use CC.
14177LTCC=${LTCC-"$CC"}
14178
14179# If no C compiler flags were specified, use CFLAGS.
14180LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14181
14182# Allow CC to be a program name with arguments.
14183compiler=$CC
14184
14185# Save the default compiler, since it gets overwritten when the other
14186# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14187compiler_DEFAULT=$CC
14188
14189# save warnings/boilerplate of simple test code
14190ac_outfile=conftest.$ac_objext
14191echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14192eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14193_lt_compiler_boilerplate=`cat conftest.err`
14194$RM conftest*
14195
14196ac_outfile=conftest.$ac_objext
14197echo "$lt_simple_link_test_code" >conftest.$ac_ext
14198eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14199_lt_linker_boilerplate=`cat conftest.err`
14200$RM -r conftest*
14201
14202
14203## CAVEAT EMPTOR:
14204## There is no encapsulation within the following macros, do not change
14205## the running order or otherwise move them around unless you know exactly
14206## what you are doing...
14207if test -n "$compiler"; then
14208
14209lt_prog_compiler_no_builtin_flag=
14210
14211if test "$GCC" = yes; then
14212  case $cc_basename in
14213  nvcc*)
14214    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14215  *)
14216    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14217  esac
14218
14219  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14220$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14221if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14222  $as_echo_n "(cached) " >&6
14223else
14224  lt_cv_prog_compiler_rtti_exceptions=no
14225   ac_outfile=conftest.$ac_objext
14226   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14227   lt_compiler_flag="-fno-rtti -fno-exceptions"
14228   # Insert the option either (1) after the last *FLAGS variable, or
14229   # (2) before a word containing "conftest.", or (3) at the end.
14230   # Note that $ac_compile itself does not contain backslashes and begins
14231   # with a dollar sign (not a hyphen), so the echo should work correctly.
14232   # The option is referenced via a variable to avoid confusing sed.
14233   lt_compile=`echo "$ac_compile" | $SED \
14234   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14235   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14236   -e 's:$: $lt_compiler_flag:'`
14237   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14238   (eval "$lt_compile" 2>conftest.err)
14239   ac_status=$?
14240   cat conftest.err >&5
14241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242   if (exit $ac_status) && test -s "$ac_outfile"; then
14243     # The compiler can only warn and ignore the option if not recognized
14244     # So say no if there are warnings other than the usual output.
14245     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14246     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14247     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14248       lt_cv_prog_compiler_rtti_exceptions=yes
14249     fi
14250   fi
14251   $RM conftest*
14252
14253fi
14254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14255$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14256
14257if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14258    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14259else
14260    :
14261fi
14262
14263fi
14264
14265
14266
14267
14268
14269
14270  lt_prog_compiler_wl=
14271lt_prog_compiler_pic=
14272lt_prog_compiler_static=
14273
14274
14275  if test "$GCC" = yes; then
14276    lt_prog_compiler_wl='-Wl,'
14277    lt_prog_compiler_static='-static'
14278
14279    case $host_os in
14280      aix*)
14281      # All AIX code is PIC.
14282      if test "$host_cpu" = ia64; then
14283	# AIX 5 now supports IA64 processor
14284	lt_prog_compiler_static='-Bstatic'
14285      fi
14286      ;;
14287
14288    amigaos*)
14289      case $host_cpu in
14290      powerpc)
14291            # see comment about AmigaOS4 .so support
14292            lt_prog_compiler_pic='-fPIC'
14293        ;;
14294      m68k)
14295            # FIXME: we need at least 68020 code to build shared libraries, but
14296            # adding the `-m68020' flag to GCC prevents building anything better,
14297            # like `-m68040'.
14298            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14299        ;;
14300      esac
14301      ;;
14302
14303    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14304      # PIC is the default for these OSes.
14305      ;;
14306
14307    mingw* | cygwin* | pw32* | os2* | cegcc*)
14308      # This hack is so that the source file can tell whether it is being
14309      # built for inclusion in a dll (and should export symbols for example).
14310      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14311      # (--disable-auto-import) libraries
14312      lt_prog_compiler_pic='-DDLL_EXPORT'
14313      ;;
14314
14315    darwin* | rhapsody*)
14316      # PIC is the default on this platform
14317      # Common symbols not allowed in MH_DYLIB files
14318      lt_prog_compiler_pic='-fno-common'
14319      ;;
14320
14321    haiku*)
14322      # PIC is the default for Haiku.
14323      # The "-static" flag exists, but is broken.
14324      lt_prog_compiler_static=
14325      ;;
14326
14327    hpux*)
14328      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14329      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14330      # sets the default TLS model and affects inlining.
14331      case $host_cpu in
14332      hppa*64*)
14333	# +Z the default
14334	;;
14335      *)
14336	lt_prog_compiler_pic='-fPIC'
14337	;;
14338      esac
14339      ;;
14340
14341    interix[3-9]*)
14342      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14343      # Instead, we relocate shared libraries at runtime.
14344      ;;
14345
14346    msdosdjgpp*)
14347      # Just because we use GCC doesn't mean we suddenly get shared libraries
14348      # on systems that don't support them.
14349      lt_prog_compiler_can_build_shared=no
14350      enable_shared=no
14351      ;;
14352
14353    *nto* | *qnx*)
14354      # QNX uses GNU C++, but need to define -shared option too, otherwise
14355      # it will coredump.
14356      lt_prog_compiler_pic='-fPIC -shared'
14357      ;;
14358
14359    sysv4*MP*)
14360      if test -d /usr/nec; then
14361	lt_prog_compiler_pic=-Kconform_pic
14362      fi
14363      ;;
14364
14365    *)
14366      lt_prog_compiler_pic='-fPIC'
14367      ;;
14368    esac
14369
14370    case $cc_basename in
14371    nvcc*) # Cuda Compiler Driver 2.2
14372      lt_prog_compiler_wl='-Xlinker '
14373      if test -n "$lt_prog_compiler_pic"; then
14374        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14375      fi
14376      ;;
14377    esac
14378  else
14379    # PORTME Check for flag to pass linker flags through the system compiler.
14380    case $host_os in
14381    aix*)
14382      lt_prog_compiler_wl='-Wl,'
14383      if test "$host_cpu" = ia64; then
14384	# AIX 5 now supports IA64 processor
14385	lt_prog_compiler_static='-Bstatic'
14386      else
14387	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14388      fi
14389      ;;
14390
14391    mingw* | cygwin* | pw32* | os2* | cegcc*)
14392      # This hack is so that the source file can tell whether it is being
14393      # built for inclusion in a dll (and should export symbols for example).
14394      lt_prog_compiler_pic='-DDLL_EXPORT'
14395      ;;
14396
14397    hpux9* | hpux10* | hpux11*)
14398      lt_prog_compiler_wl='-Wl,'
14399      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14400      # not for PA HP-UX.
14401      case $host_cpu in
14402      hppa*64*|ia64*)
14403	# +Z the default
14404	;;
14405      *)
14406	lt_prog_compiler_pic='+Z'
14407	;;
14408      esac
14409      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14410      lt_prog_compiler_static='${wl}-a ${wl}archive'
14411      ;;
14412
14413    irix5* | irix6* | nonstopux*)
14414      lt_prog_compiler_wl='-Wl,'
14415      # PIC (with -KPIC) is the default.
14416      lt_prog_compiler_static='-non_shared'
14417      ;;
14418
14419    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14420      case $cc_basename in
14421      # old Intel for x86_64 which still supported -KPIC.
14422      ecc*)
14423	lt_prog_compiler_wl='-Wl,'
14424	lt_prog_compiler_pic='-KPIC'
14425	lt_prog_compiler_static='-static'
14426        ;;
14427      # icc used to be incompatible with GCC.
14428      # ICC 10 doesn't accept -KPIC any more.
14429      icc* | ifort*)
14430	lt_prog_compiler_wl='-Wl,'
14431	lt_prog_compiler_pic='-fPIC'
14432	lt_prog_compiler_static='-static'
14433        ;;
14434      # Lahey Fortran 8.1.
14435      lf95*)
14436	lt_prog_compiler_wl='-Wl,'
14437	lt_prog_compiler_pic='--shared'
14438	lt_prog_compiler_static='--static'
14439	;;
14440      nagfor*)
14441	# NAG Fortran compiler
14442	lt_prog_compiler_wl='-Wl,-Wl,,'
14443	lt_prog_compiler_pic='-PIC'
14444	lt_prog_compiler_static='-Bstatic'
14445	;;
14446      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14447        # Portland Group compilers (*not* the Pentium gcc compiler,
14448	# which looks to be a dead project)
14449	lt_prog_compiler_wl='-Wl,'
14450	lt_prog_compiler_pic='-fpic'
14451	lt_prog_compiler_static='-Bstatic'
14452        ;;
14453      ccc*)
14454        lt_prog_compiler_wl='-Wl,'
14455        # All Alpha code is PIC.
14456        lt_prog_compiler_static='-non_shared'
14457        ;;
14458      xl* | bgxl* | bgf* | mpixl*)
14459	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14460	lt_prog_compiler_wl='-Wl,'
14461	lt_prog_compiler_pic='-qpic'
14462	lt_prog_compiler_static='-qstaticlink'
14463	;;
14464      *)
14465	case `$CC -V 2>&1 | sed 5q` in
14466	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14467	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14468	  lt_prog_compiler_pic='-KPIC'
14469	  lt_prog_compiler_static='-Bstatic'
14470	  lt_prog_compiler_wl=''
14471	  ;;
14472	*Sun\ F* | *Sun*Fortran*)
14473	  lt_prog_compiler_pic='-KPIC'
14474	  lt_prog_compiler_static='-Bstatic'
14475	  lt_prog_compiler_wl='-Qoption ld '
14476	  ;;
14477	*Sun\ C*)
14478	  # Sun C 5.9
14479	  lt_prog_compiler_pic='-KPIC'
14480	  lt_prog_compiler_static='-Bstatic'
14481	  lt_prog_compiler_wl='-Wl,'
14482	  ;;
14483        *Intel*\ [CF]*Compiler*)
14484	  lt_prog_compiler_wl='-Wl,'
14485	  lt_prog_compiler_pic='-fPIC'
14486	  lt_prog_compiler_static='-static'
14487	  ;;
14488	*Portland\ Group*)
14489	  lt_prog_compiler_wl='-Wl,'
14490	  lt_prog_compiler_pic='-fpic'
14491	  lt_prog_compiler_static='-Bstatic'
14492	  ;;
14493	esac
14494	;;
14495      esac
14496      ;;
14497
14498    newsos6)
14499      lt_prog_compiler_pic='-KPIC'
14500      lt_prog_compiler_static='-Bstatic'
14501      ;;
14502
14503    *nto* | *qnx*)
14504      # QNX uses GNU C++, but need to define -shared option too, otherwise
14505      # it will coredump.
14506      lt_prog_compiler_pic='-fPIC -shared'
14507      ;;
14508
14509    osf3* | osf4* | osf5*)
14510      lt_prog_compiler_wl='-Wl,'
14511      # All OSF/1 code is PIC.
14512      lt_prog_compiler_static='-non_shared'
14513      ;;
14514
14515    rdos*)
14516      lt_prog_compiler_static='-non_shared'
14517      ;;
14518
14519    solaris*)
14520      lt_prog_compiler_pic='-KPIC'
14521      lt_prog_compiler_static='-Bstatic'
14522      case $cc_basename in
14523      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14524	lt_prog_compiler_wl='-Qoption ld ';;
14525      *)
14526	lt_prog_compiler_wl='-Wl,';;
14527      esac
14528      ;;
14529
14530    sunos4*)
14531      lt_prog_compiler_wl='-Qoption ld '
14532      lt_prog_compiler_pic='-PIC'
14533      lt_prog_compiler_static='-Bstatic'
14534      ;;
14535
14536    sysv4 | sysv4.2uw2* | sysv4.3*)
14537      lt_prog_compiler_wl='-Wl,'
14538      lt_prog_compiler_pic='-KPIC'
14539      lt_prog_compiler_static='-Bstatic'
14540      ;;
14541
14542    sysv4*MP*)
14543      if test -d /usr/nec ;then
14544	lt_prog_compiler_pic='-Kconform_pic'
14545	lt_prog_compiler_static='-Bstatic'
14546      fi
14547      ;;
14548
14549    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14550      lt_prog_compiler_wl='-Wl,'
14551      lt_prog_compiler_pic='-KPIC'
14552      lt_prog_compiler_static='-Bstatic'
14553      ;;
14554
14555    unicos*)
14556      lt_prog_compiler_wl='-Wl,'
14557      lt_prog_compiler_can_build_shared=no
14558      ;;
14559
14560    uts4*)
14561      lt_prog_compiler_pic='-pic'
14562      lt_prog_compiler_static='-Bstatic'
14563      ;;
14564
14565    *)
14566      lt_prog_compiler_can_build_shared=no
14567      ;;
14568    esac
14569  fi
14570
14571case $host_os in
14572  # For platforms which do not support PIC, -DPIC is meaningless:
14573  *djgpp*)
14574    lt_prog_compiler_pic=
14575    ;;
14576  *)
14577    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14578    ;;
14579esac
14580
14581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14582$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14583if ${lt_cv_prog_compiler_pic+:} false; then :
14584  $as_echo_n "(cached) " >&6
14585else
14586  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14587fi
14588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14589$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14590lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14591
14592#
14593# Check to make sure the PIC flag actually works.
14594#
14595if test -n "$lt_prog_compiler_pic"; then
14596  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14597$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14598if ${lt_cv_prog_compiler_pic_works+:} false; then :
14599  $as_echo_n "(cached) " >&6
14600else
14601  lt_cv_prog_compiler_pic_works=no
14602   ac_outfile=conftest.$ac_objext
14603   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14604   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14605   # Insert the option either (1) after the last *FLAGS variable, or
14606   # (2) before a word containing "conftest.", or (3) at the end.
14607   # Note that $ac_compile itself does not contain backslashes and begins
14608   # with a dollar sign (not a hyphen), so the echo should work correctly.
14609   # The option is referenced via a variable to avoid confusing sed.
14610   lt_compile=`echo "$ac_compile" | $SED \
14611   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14612   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14613   -e 's:$: $lt_compiler_flag:'`
14614   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14615   (eval "$lt_compile" 2>conftest.err)
14616   ac_status=$?
14617   cat conftest.err >&5
14618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619   if (exit $ac_status) && test -s "$ac_outfile"; then
14620     # The compiler can only warn and ignore the option if not recognized
14621     # So say no if there are warnings other than the usual output.
14622     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14623     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14624     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14625       lt_cv_prog_compiler_pic_works=yes
14626     fi
14627   fi
14628   $RM conftest*
14629
14630fi
14631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14632$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14633
14634if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14635    case $lt_prog_compiler_pic in
14636     "" | " "*) ;;
14637     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14638     esac
14639else
14640    lt_prog_compiler_pic=
14641     lt_prog_compiler_can_build_shared=no
14642fi
14643
14644fi
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656#
14657# Check to make sure the static flag actually works.
14658#
14659wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14661$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14662if ${lt_cv_prog_compiler_static_works+:} false; then :
14663  $as_echo_n "(cached) " >&6
14664else
14665  lt_cv_prog_compiler_static_works=no
14666   save_LDFLAGS="$LDFLAGS"
14667   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14668   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14669   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14670     # The linker can only warn and ignore the option if not recognized
14671     # So say no if there are warnings
14672     if test -s conftest.err; then
14673       # Append any errors to the config.log.
14674       cat conftest.err 1>&5
14675       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14676       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14677       if diff conftest.exp conftest.er2 >/dev/null; then
14678         lt_cv_prog_compiler_static_works=yes
14679       fi
14680     else
14681       lt_cv_prog_compiler_static_works=yes
14682     fi
14683   fi
14684   $RM -r conftest*
14685   LDFLAGS="$save_LDFLAGS"
14686
14687fi
14688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14689$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14690
14691if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14692    :
14693else
14694    lt_prog_compiler_static=
14695fi
14696
14697
14698
14699
14700
14701
14702
14703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14704$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14705if ${lt_cv_prog_compiler_c_o+:} false; then :
14706  $as_echo_n "(cached) " >&6
14707else
14708  lt_cv_prog_compiler_c_o=no
14709   $RM -r conftest 2>/dev/null
14710   mkdir conftest
14711   cd conftest
14712   mkdir out
14713   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14714
14715   lt_compiler_flag="-o out/conftest2.$ac_objext"
14716   # Insert the option either (1) after the last *FLAGS variable, or
14717   # (2) before a word containing "conftest.", or (3) at the end.
14718   # Note that $ac_compile itself does not contain backslashes and begins
14719   # with a dollar sign (not a hyphen), so the echo should work correctly.
14720   lt_compile=`echo "$ac_compile" | $SED \
14721   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14722   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14723   -e 's:$: $lt_compiler_flag:'`
14724   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14725   (eval "$lt_compile" 2>out/conftest.err)
14726   ac_status=$?
14727   cat out/conftest.err >&5
14728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14730   then
14731     # The compiler can only warn and ignore the option if not recognized
14732     # So say no if there are warnings
14733     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14734     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14735     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14736       lt_cv_prog_compiler_c_o=yes
14737     fi
14738   fi
14739   chmod u+w . 2>&5
14740   $RM conftest*
14741   # SGI C++ compiler will create directory out/ii_files/ for
14742   # template instantiation
14743   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14744   $RM out/* && rmdir out
14745   cd ..
14746   $RM -r conftest
14747   $RM conftest*
14748
14749fi
14750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14751$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14752
14753
14754
14755
14756
14757
14758  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14759$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14760if ${lt_cv_prog_compiler_c_o+:} false; then :
14761  $as_echo_n "(cached) " >&6
14762else
14763  lt_cv_prog_compiler_c_o=no
14764   $RM -r conftest 2>/dev/null
14765   mkdir conftest
14766   cd conftest
14767   mkdir out
14768   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14769
14770   lt_compiler_flag="-o out/conftest2.$ac_objext"
14771   # Insert the option either (1) after the last *FLAGS variable, or
14772   # (2) before a word containing "conftest.", or (3) at the end.
14773   # Note that $ac_compile itself does not contain backslashes and begins
14774   # with a dollar sign (not a hyphen), so the echo should work correctly.
14775   lt_compile=`echo "$ac_compile" | $SED \
14776   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14777   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14778   -e 's:$: $lt_compiler_flag:'`
14779   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14780   (eval "$lt_compile" 2>out/conftest.err)
14781   ac_status=$?
14782   cat out/conftest.err >&5
14783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14785   then
14786     # The compiler can only warn and ignore the option if not recognized
14787     # So say no if there are warnings
14788     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14789     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14790     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14791       lt_cv_prog_compiler_c_o=yes
14792     fi
14793   fi
14794   chmod u+w . 2>&5
14795   $RM conftest*
14796   # SGI C++ compiler will create directory out/ii_files/ for
14797   # template instantiation
14798   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14799   $RM out/* && rmdir out
14800   cd ..
14801   $RM -r conftest
14802   $RM conftest*
14803
14804fi
14805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14806$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14807
14808
14809
14810
14811hard_links="nottested"
14812if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14813  # do not overwrite the value of need_locks provided by the user
14814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14815$as_echo_n "checking if we can lock with hard links... " >&6; }
14816  hard_links=yes
14817  $RM conftest*
14818  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14819  touch conftest.a
14820  ln conftest.a conftest.b 2>&5 || hard_links=no
14821  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14823$as_echo "$hard_links" >&6; }
14824  if test "$hard_links" = no; then
14825    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14826$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14827    need_locks=warn
14828  fi
14829else
14830  need_locks=no
14831fi
14832
14833
14834
14835
14836
14837
14838  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14839$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14840
14841  runpath_var=
14842  allow_undefined_flag=
14843  always_export_symbols=no
14844  archive_cmds=
14845  archive_expsym_cmds=
14846  compiler_needs_object=no
14847  enable_shared_with_static_runtimes=no
14848  export_dynamic_flag_spec=
14849  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14850  hardcode_automatic=no
14851  hardcode_direct=no
14852  hardcode_direct_absolute=no
14853  hardcode_libdir_flag_spec=
14854  hardcode_libdir_separator=
14855  hardcode_minus_L=no
14856  hardcode_shlibpath_var=unsupported
14857  inherit_rpath=no
14858  link_all_deplibs=unknown
14859  module_cmds=
14860  module_expsym_cmds=
14861  old_archive_from_new_cmds=
14862  old_archive_from_expsyms_cmds=
14863  thread_safe_flag_spec=
14864  whole_archive_flag_spec=
14865  # include_expsyms should be a list of space-separated symbols to be *always*
14866  # included in the symbol list
14867  include_expsyms=
14868  # exclude_expsyms can be an extended regexp of symbols to exclude
14869  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14870  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14871  # as well as any symbol that contains `d'.
14872  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14873  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14874  # platforms (ab)use it in PIC code, but their linkers get confused if
14875  # the symbol is explicitly referenced.  Since portable code cannot
14876  # rely on this symbol name, it's probably fine to never include it in
14877  # preloaded symbol tables.
14878  # Exclude shared library initialization/finalization symbols.
14879  extract_expsyms_cmds=
14880
14881  case $host_os in
14882  cygwin* | mingw* | pw32* | cegcc*)
14883    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14884    # When not using gcc, we currently assume that we are using
14885    # Microsoft Visual C++.
14886    if test "$GCC" != yes; then
14887      with_gnu_ld=no
14888    fi
14889    ;;
14890  interix*)
14891    # we just hope/assume this is gcc and not c89 (= MSVC++)
14892    with_gnu_ld=yes
14893    ;;
14894  openbsd*)
14895    with_gnu_ld=no
14896    ;;
14897  esac
14898
14899  ld_shlibs=yes
14900
14901  # On some targets, GNU ld is compatible enough with the native linker
14902  # that we're better off using the native interface for both.
14903  lt_use_gnu_ld_interface=no
14904  if test "$with_gnu_ld" = yes; then
14905    case $host_os in
14906      aix*)
14907	# The AIX port of GNU ld has always aspired to compatibility
14908	# with the native linker.  However, as the warning in the GNU ld
14909	# block says, versions before 2.19.5* couldn't really create working
14910	# shared libraries, regardless of the interface used.
14911	case `$LD -v 2>&1` in
14912	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14913	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14914	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14915	  *)
14916	    lt_use_gnu_ld_interface=yes
14917	    ;;
14918	esac
14919	;;
14920      *)
14921	lt_use_gnu_ld_interface=yes
14922	;;
14923    esac
14924  fi
14925
14926  if test "$lt_use_gnu_ld_interface" = yes; then
14927    # If archive_cmds runs LD, not CC, wlarc should be empty
14928    wlarc='${wl}'
14929
14930    # Set some defaults for GNU ld with shared library support. These
14931    # are reset later if shared libraries are not supported. Putting them
14932    # here allows them to be overridden if necessary.
14933    runpath_var=LD_RUN_PATH
14934    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14935    export_dynamic_flag_spec='${wl}--export-dynamic'
14936    # ancient GNU ld didn't support --whole-archive et. al.
14937    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14938      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14939    else
14940      whole_archive_flag_spec=
14941    fi
14942    supports_anon_versioning=no
14943    case `$LD -v 2>&1` in
14944      *GNU\ gold*) supports_anon_versioning=yes ;;
14945      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14946      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14947      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14948      *\ 2.11.*) ;; # other 2.11 versions
14949      *) supports_anon_versioning=yes ;;
14950    esac
14951
14952    # See if GNU ld supports shared libraries.
14953    case $host_os in
14954    aix[3-9]*)
14955      # On AIX/PPC, the GNU linker is very broken
14956      if test "$host_cpu" != ia64; then
14957	ld_shlibs=no
14958	cat <<_LT_EOF 1>&2
14959
14960*** Warning: the GNU linker, at least up to release 2.19, is reported
14961*** to be unable to reliably create shared libraries on AIX.
14962*** Therefore, libtool is disabling shared libraries support.  If you
14963*** really care for shared libraries, you may want to install binutils
14964*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14965*** You will then need to restart the configuration process.
14966
14967_LT_EOF
14968      fi
14969      ;;
14970
14971    amigaos*)
14972      case $host_cpu in
14973      powerpc)
14974            # see comment about AmigaOS4 .so support
14975            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14976            archive_expsym_cmds=''
14977        ;;
14978      m68k)
14979            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)'
14980            hardcode_libdir_flag_spec='-L$libdir'
14981            hardcode_minus_L=yes
14982        ;;
14983      esac
14984      ;;
14985
14986    beos*)
14987      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14988	allow_undefined_flag=unsupported
14989	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14990	# support --undefined.  This deserves some investigation.  FIXME
14991	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14992      else
14993	ld_shlibs=no
14994      fi
14995      ;;
14996
14997    cygwin* | mingw* | pw32* | cegcc*)
14998      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14999      # as there is no search path for DLLs.
15000      hardcode_libdir_flag_spec='-L$libdir'
15001      export_dynamic_flag_spec='${wl}--export-all-symbols'
15002      allow_undefined_flag=unsupported
15003      always_export_symbols=no
15004      enable_shared_with_static_runtimes=yes
15005      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'
15006      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15007
15008      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15009        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15010	# If the export-symbols file already is a .def file (1st line
15011	# is EXPORTS), use it as is; otherwise, prepend...
15012	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15013	  cp $export_symbols $output_objdir/$soname.def;
15014	else
15015	  echo EXPORTS > $output_objdir/$soname.def;
15016	  cat $export_symbols >> $output_objdir/$soname.def;
15017	fi~
15018	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15019      else
15020	ld_shlibs=no
15021      fi
15022      ;;
15023
15024    haiku*)
15025      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15026      link_all_deplibs=yes
15027      ;;
15028
15029    interix[3-9]*)
15030      hardcode_direct=no
15031      hardcode_shlibpath_var=no
15032      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15033      export_dynamic_flag_spec='${wl}-E'
15034      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15035      # Instead, shared libraries are loaded at an image base (0x10000000 by
15036      # default) and relocated if they conflict, which is a slow very memory
15037      # consuming and fragmenting process.  To avoid this, we pick a random,
15038      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15039      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15040      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15041      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'
15042      ;;
15043
15044    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15045      tmp_diet=no
15046      if test "$host_os" = linux-dietlibc; then
15047	case $cc_basename in
15048	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15049	esac
15050      fi
15051      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15052	 && test "$tmp_diet" = no
15053      then
15054	tmp_addflag=' $pic_flag'
15055	tmp_sharedflag='-shared'
15056	case $cc_basename,$host_cpu in
15057        pgcc*)				# Portland Group C compiler
15058	  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'
15059	  tmp_addflag=' $pic_flag'
15060	  ;;
15061	pgf77* | pgf90* | pgf95* | pgfortran*)
15062					# Portland Group f77 and f90 compilers
15063	  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'
15064	  tmp_addflag=' $pic_flag -Mnomain' ;;
15065	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15066	  tmp_addflag=' -i_dynamic' ;;
15067	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15068	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15069	ifc* | ifort*)			# Intel Fortran compiler
15070	  tmp_addflag=' -nofor_main' ;;
15071	lf95*)				# Lahey Fortran 8.1
15072	  whole_archive_flag_spec=
15073	  tmp_sharedflag='--shared' ;;
15074	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15075	  tmp_sharedflag='-qmkshrobj'
15076	  tmp_addflag= ;;
15077	nvcc*)	# Cuda Compiler Driver 2.2
15078	  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'
15079	  compiler_needs_object=yes
15080	  ;;
15081	esac
15082	case `$CC -V 2>&1 | sed 5q` in
15083	*Sun\ C*)			# Sun C 5.9
15084	  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'
15085	  compiler_needs_object=yes
15086	  tmp_sharedflag='-G' ;;
15087	*Sun\ F*)			# Sun Fortran 8.3
15088	  tmp_sharedflag='-G' ;;
15089	esac
15090	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15091
15092        if test "x$supports_anon_versioning" = xyes; then
15093          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15094	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15095	    echo "local: *; };" >> $output_objdir/$libname.ver~
15096	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15097        fi
15098
15099	case $cc_basename in
15100	xlf* | bgf* | bgxlf* | mpixlf*)
15101	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15102	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15103	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15104	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15105	  if test "x$supports_anon_versioning" = xyes; then
15106	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15107	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15108	      echo "local: *; };" >> $output_objdir/$libname.ver~
15109	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15110	  fi
15111	  ;;
15112	esac
15113      else
15114        ld_shlibs=no
15115      fi
15116      ;;
15117
15118    netbsd*)
15119      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15120	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15121	wlarc=
15122      else
15123	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15124	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15125      fi
15126      ;;
15127
15128    solaris*)
15129      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15130	ld_shlibs=no
15131	cat <<_LT_EOF 1>&2
15132
15133*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15134*** create shared libraries on Solaris systems.  Therefore, libtool
15135*** is disabling shared libraries support.  We urge you to upgrade GNU
15136*** binutils to release 2.9.1 or newer.  Another option is to modify
15137*** your PATH or compiler configuration so that the native linker is
15138*** used, and then restart.
15139
15140_LT_EOF
15141      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15142	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15143	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15144      else
15145	ld_shlibs=no
15146      fi
15147      ;;
15148
15149    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15150      case `$LD -v 2>&1` in
15151        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15152	ld_shlibs=no
15153	cat <<_LT_EOF 1>&2
15154
15155*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15156*** reliably create shared libraries on SCO systems.  Therefore, libtool
15157*** is disabling shared libraries support.  We urge you to upgrade GNU
15158*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15159*** your PATH or compiler configuration so that the native linker is
15160*** used, and then restart.
15161
15162_LT_EOF
15163	;;
15164	*)
15165	  # For security reasons, it is highly recommended that you always
15166	  # use absolute paths for naming shared libraries, and exclude the
15167	  # DT_RUNPATH tag from executables and libraries.  But doing so
15168	  # requires that you compile everything twice, which is a pain.
15169	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15170	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15171	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15172	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15173	  else
15174	    ld_shlibs=no
15175	  fi
15176	;;
15177      esac
15178      ;;
15179
15180    sunos4*)
15181      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15182      wlarc=
15183      hardcode_direct=yes
15184      hardcode_shlibpath_var=no
15185      ;;
15186
15187    *)
15188      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15189	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15190	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15191      else
15192	ld_shlibs=no
15193      fi
15194      ;;
15195    esac
15196
15197    if test "$ld_shlibs" = no; then
15198      runpath_var=
15199      hardcode_libdir_flag_spec=
15200      export_dynamic_flag_spec=
15201      whole_archive_flag_spec=
15202    fi
15203  else
15204    # PORTME fill in a description of your system's linker (not GNU ld)
15205    case $host_os in
15206    aix3*)
15207      allow_undefined_flag=unsupported
15208      always_export_symbols=yes
15209      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'
15210      # Note: this linker hardcodes the directories in LIBPATH if there
15211      # are no directories specified by -L.
15212      hardcode_minus_L=yes
15213      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15214	# Neither direct hardcoding nor static linking is supported with a
15215	# broken collect2.
15216	hardcode_direct=unsupported
15217      fi
15218      ;;
15219
15220    aix[4-9]*)
15221      if test "$host_cpu" = ia64; then
15222	# On IA64, the linker does run time linking by default, so we don't
15223	# have to do anything special.
15224	aix_use_runtimelinking=no
15225	exp_sym_flag='-Bexport'
15226	no_entry_flag=""
15227      else
15228	# If we're using GNU nm, then we don't want the "-C" option.
15229	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15230	# Also, AIX nm treats weak defined symbols like other global
15231	# defined symbols, whereas GNU nm marks them as "W".
15232	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15233	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15234	else
15235	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15236	fi
15237	aix_use_runtimelinking=no
15238
15239	# Test if we are trying to use run time linking or normal
15240	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15241	# need to do runtime linking.
15242	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15243	  for ld_flag in $LDFLAGS; do
15244	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15245	    aix_use_runtimelinking=yes
15246	    break
15247	  fi
15248	  done
15249	  ;;
15250	esac
15251
15252	exp_sym_flag='-bexport'
15253	no_entry_flag='-bnoentry'
15254      fi
15255
15256      # When large executables or shared objects are built, AIX ld can
15257      # have problems creating the table of contents.  If linking a library
15258      # or program results in "error TOC overflow" add -mminimal-toc to
15259      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15260      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15261
15262      archive_cmds=''
15263      hardcode_direct=yes
15264      hardcode_direct_absolute=yes
15265      hardcode_libdir_separator=':'
15266      link_all_deplibs=yes
15267      file_list_spec='${wl}-f,'
15268
15269      if test "$GCC" = yes; then
15270	case $host_os in aix4.[012]|aix4.[012].*)
15271	# We only want to do this on AIX 4.2 and lower, the check
15272	# below for broken collect2 doesn't work under 4.3+
15273	  collect2name=`${CC} -print-prog-name=collect2`
15274	  if test -f "$collect2name" &&
15275	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15276	  then
15277	  # We have reworked collect2
15278	  :
15279	  else
15280	  # We have old collect2
15281	  hardcode_direct=unsupported
15282	  # It fails to find uninstalled libraries when the uninstalled
15283	  # path is not listed in the libpath.  Setting hardcode_minus_L
15284	  # to unsupported forces relinking
15285	  hardcode_minus_L=yes
15286	  hardcode_libdir_flag_spec='-L$libdir'
15287	  hardcode_libdir_separator=
15288	  fi
15289	  ;;
15290	esac
15291	shared_flag='-shared'
15292	if test "$aix_use_runtimelinking" = yes; then
15293	  shared_flag="$shared_flag "'${wl}-G'
15294	fi
15295      else
15296	# not using gcc
15297	if test "$host_cpu" = ia64; then
15298	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15299	# chokes on -Wl,-G. The following line is correct:
15300	  shared_flag='-G'
15301	else
15302	  if test "$aix_use_runtimelinking" = yes; then
15303	    shared_flag='${wl}-G'
15304	  else
15305	    shared_flag='${wl}-bM:SRE'
15306	  fi
15307	fi
15308      fi
15309
15310      export_dynamic_flag_spec='${wl}-bexpall'
15311      # It seems that -bexpall does not export symbols beginning with
15312      # underscore (_), so it is better to generate a list of symbols to export.
15313      always_export_symbols=yes
15314      if test "$aix_use_runtimelinking" = yes; then
15315	# Warning - without using the other runtime loading flags (-brtl),
15316	# -berok will link without error, but may produce a broken library.
15317	allow_undefined_flag='-berok'
15318        # Determine the default libpath from the value encoded in an
15319        # empty executable.
15320        if test "${lt_cv_aix_libpath+set}" = set; then
15321  aix_libpath=$lt_cv_aix_libpath
15322else
15323  if ${lt_cv_aix_libpath_+:} false; then :
15324  $as_echo_n "(cached) " >&6
15325else
15326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327/* end confdefs.h.  */
15328
15329int
15330main ()
15331{
15332
15333  ;
15334  return 0;
15335}
15336_ACEOF
15337if ac_fn_c_try_link "$LINENO"; then :
15338
15339  lt_aix_libpath_sed='
15340      /Import File Strings/,/^$/ {
15341	  /^0/ {
15342	      s/^0  *\([^ ]*\) *$/\1/
15343	      p
15344	  }
15345      }'
15346  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15347  # Check for a 64-bit object if we didn't find anything.
15348  if test -z "$lt_cv_aix_libpath_"; then
15349    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15350  fi
15351fi
15352rm -f core conftest.err conftest.$ac_objext \
15353    conftest$ac_exeext conftest.$ac_ext
15354  if test -z "$lt_cv_aix_libpath_"; then
15355    lt_cv_aix_libpath_="/usr/lib:/lib"
15356  fi
15357
15358fi
15359
15360  aix_libpath=$lt_cv_aix_libpath_
15361fi
15362
15363        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15364        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15365      else
15366	if test "$host_cpu" = ia64; then
15367	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15368	  allow_undefined_flag="-z nodefs"
15369	  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"
15370	else
15371	 # Determine the default libpath from the value encoded in an
15372	 # empty executable.
15373	 if test "${lt_cv_aix_libpath+set}" = set; then
15374  aix_libpath=$lt_cv_aix_libpath
15375else
15376  if ${lt_cv_aix_libpath_+:} false; then :
15377  $as_echo_n "(cached) " >&6
15378else
15379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15380/* end confdefs.h.  */
15381
15382int
15383main ()
15384{
15385
15386  ;
15387  return 0;
15388}
15389_ACEOF
15390if ac_fn_c_try_link "$LINENO"; then :
15391
15392  lt_aix_libpath_sed='
15393      /Import File Strings/,/^$/ {
15394	  /^0/ {
15395	      s/^0  *\([^ ]*\) *$/\1/
15396	      p
15397	  }
15398      }'
15399  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15400  # Check for a 64-bit object if we didn't find anything.
15401  if test -z "$lt_cv_aix_libpath_"; then
15402    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15403  fi
15404fi
15405rm -f core conftest.err conftest.$ac_objext \
15406    conftest$ac_exeext conftest.$ac_ext
15407  if test -z "$lt_cv_aix_libpath_"; then
15408    lt_cv_aix_libpath_="/usr/lib:/lib"
15409  fi
15410
15411fi
15412
15413  aix_libpath=$lt_cv_aix_libpath_
15414fi
15415
15416	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15417	  # Warning - without using the other run time loading flags,
15418	  # -berok will link without error, but may produce a broken library.
15419	  no_undefined_flag=' ${wl}-bernotok'
15420	  allow_undefined_flag=' ${wl}-berok'
15421	  if test "$with_gnu_ld" = yes; then
15422	    # We only use this code for GNU lds that support --whole-archive.
15423	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15424	  else
15425	    # Exported symbols can be pulled into shared objects from archives
15426	    whole_archive_flag_spec='$convenience'
15427	  fi
15428	  archive_cmds_need_lc=yes
15429	  # This is similar to how AIX traditionally builds its shared libraries.
15430	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15431	fi
15432      fi
15433      ;;
15434
15435    amigaos*)
15436      case $host_cpu in
15437      powerpc)
15438            # see comment about AmigaOS4 .so support
15439            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15440            archive_expsym_cmds=''
15441        ;;
15442      m68k)
15443            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)'
15444            hardcode_libdir_flag_spec='-L$libdir'
15445            hardcode_minus_L=yes
15446        ;;
15447      esac
15448      ;;
15449
15450    bsdi[45]*)
15451      export_dynamic_flag_spec=-rdynamic
15452      ;;
15453
15454    cygwin* | mingw* | pw32* | cegcc*)
15455      # When not using gcc, we currently assume that we are using
15456      # Microsoft Visual C++.
15457      # hardcode_libdir_flag_spec is actually meaningless, as there is
15458      # no search path for DLLs.
15459      case $cc_basename in
15460      cl*)
15461	# Native MSVC
15462	hardcode_libdir_flag_spec=' '
15463	allow_undefined_flag=unsupported
15464	always_export_symbols=yes
15465	file_list_spec='@'
15466	# Tell ltmain to make .lib files, not .a files.
15467	libext=lib
15468	# Tell ltmain to make .dll files, not .so files.
15469	shrext_cmds=".dll"
15470	# FIXME: Setting linknames here is a bad hack.
15471	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15472	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15473	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15474	  else
15475	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15476	  fi~
15477	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15478	  linknames='
15479	# The linker will not automatically build a static lib if we build a DLL.
15480	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15481	enable_shared_with_static_runtimes=yes
15482	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15483	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15484	# Don't use ranlib
15485	old_postinstall_cmds='chmod 644 $oldlib'
15486	postlink_cmds='lt_outputfile="@OUTPUT@"~
15487	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15488	  case $lt_outputfile in
15489	    *.exe|*.EXE) ;;
15490	    *)
15491	      lt_outputfile="$lt_outputfile.exe"
15492	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15493	      ;;
15494	  esac~
15495	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15496	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15497	    $RM "$lt_outputfile.manifest";
15498	  fi'
15499	;;
15500      *)
15501	# Assume MSVC wrapper
15502	hardcode_libdir_flag_spec=' '
15503	allow_undefined_flag=unsupported
15504	# Tell ltmain to make .lib files, not .a files.
15505	libext=lib
15506	# Tell ltmain to make .dll files, not .so files.
15507	shrext_cmds=".dll"
15508	# FIXME: Setting linknames here is a bad hack.
15509	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15510	# The linker will automatically build a .lib file if we build a DLL.
15511	old_archive_from_new_cmds='true'
15512	# FIXME: Should let the user specify the lib program.
15513	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15514	enable_shared_with_static_runtimes=yes
15515	;;
15516      esac
15517      ;;
15518
15519    darwin* | rhapsody*)
15520
15521
15522  archive_cmds_need_lc=no
15523  hardcode_direct=no
15524  hardcode_automatic=yes
15525  hardcode_shlibpath_var=unsupported
15526  if test "$lt_cv_ld_force_load" = "yes"; then
15527    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\"`'
15528
15529  else
15530    whole_archive_flag_spec=''
15531  fi
15532  link_all_deplibs=yes
15533  allow_undefined_flag="$_lt_dar_allow_undefined"
15534  case $cc_basename in
15535     ifort*) _lt_dar_can_shared=yes ;;
15536     *) _lt_dar_can_shared=$GCC ;;
15537  esac
15538  if test "$_lt_dar_can_shared" = "yes"; then
15539    output_verbose_link_cmd=func_echo_all
15540    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15541    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15542    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}"
15543    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}"
15544
15545  else
15546  ld_shlibs=no
15547  fi
15548
15549      ;;
15550
15551    dgux*)
15552      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15553      hardcode_libdir_flag_spec='-L$libdir'
15554      hardcode_shlibpath_var=no
15555      ;;
15556
15557    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15558    # support.  Future versions do this automatically, but an explicit c++rt0.o
15559    # does not break anything, and helps significantly (at the cost of a little
15560    # extra space).
15561    freebsd2.2*)
15562      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15563      hardcode_libdir_flag_spec='-R$libdir'
15564      hardcode_direct=yes
15565      hardcode_shlibpath_var=no
15566      ;;
15567
15568    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15569    freebsd2.*)
15570      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15571      hardcode_direct=yes
15572      hardcode_minus_L=yes
15573      hardcode_shlibpath_var=no
15574      ;;
15575
15576    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15577    freebsd* | dragonfly*)
15578      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15579      hardcode_libdir_flag_spec='-R$libdir'
15580      hardcode_direct=yes
15581      hardcode_shlibpath_var=no
15582      ;;
15583
15584    hpux9*)
15585      if test "$GCC" = yes; then
15586	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15587      else
15588	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15589      fi
15590      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15591      hardcode_libdir_separator=:
15592      hardcode_direct=yes
15593
15594      # hardcode_minus_L: Not really in the search PATH,
15595      # but as the default location of the library.
15596      hardcode_minus_L=yes
15597      export_dynamic_flag_spec='${wl}-E'
15598      ;;
15599
15600    hpux10*)
15601      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15602	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15603      else
15604	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15605      fi
15606      if test "$with_gnu_ld" = no; then
15607	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15608	hardcode_libdir_separator=:
15609	hardcode_direct=yes
15610	hardcode_direct_absolute=yes
15611	export_dynamic_flag_spec='${wl}-E'
15612	# hardcode_minus_L: Not really in the search PATH,
15613	# but as the default location of the library.
15614	hardcode_minus_L=yes
15615      fi
15616      ;;
15617
15618    hpux11*)
15619      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15620	case $host_cpu in
15621	hppa*64*)
15622	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15623	  ;;
15624	ia64*)
15625	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15626	  ;;
15627	*)
15628	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15629	  ;;
15630	esac
15631      else
15632	case $host_cpu in
15633	hppa*64*)
15634	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15635	  ;;
15636	ia64*)
15637	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15638	  ;;
15639	*)
15640
15641	  # Older versions of the 11.00 compiler do not understand -b yet
15642	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15643	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15644$as_echo_n "checking if $CC understands -b... " >&6; }
15645if ${lt_cv_prog_compiler__b+:} false; then :
15646  $as_echo_n "(cached) " >&6
15647else
15648  lt_cv_prog_compiler__b=no
15649   save_LDFLAGS="$LDFLAGS"
15650   LDFLAGS="$LDFLAGS -b"
15651   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15652   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15653     # The linker can only warn and ignore the option if not recognized
15654     # So say no if there are warnings
15655     if test -s conftest.err; then
15656       # Append any errors to the config.log.
15657       cat conftest.err 1>&5
15658       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15659       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15660       if diff conftest.exp conftest.er2 >/dev/null; then
15661         lt_cv_prog_compiler__b=yes
15662       fi
15663     else
15664       lt_cv_prog_compiler__b=yes
15665     fi
15666   fi
15667   $RM -r conftest*
15668   LDFLAGS="$save_LDFLAGS"
15669
15670fi
15671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15672$as_echo "$lt_cv_prog_compiler__b" >&6; }
15673
15674if test x"$lt_cv_prog_compiler__b" = xyes; then
15675    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15676else
15677    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15678fi
15679
15680	  ;;
15681	esac
15682      fi
15683      if test "$with_gnu_ld" = no; then
15684	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15685	hardcode_libdir_separator=:
15686
15687	case $host_cpu in
15688	hppa*64*|ia64*)
15689	  hardcode_direct=no
15690	  hardcode_shlibpath_var=no
15691	  ;;
15692	*)
15693	  hardcode_direct=yes
15694	  hardcode_direct_absolute=yes
15695	  export_dynamic_flag_spec='${wl}-E'
15696
15697	  # hardcode_minus_L: Not really in the search PATH,
15698	  # but as the default location of the library.
15699	  hardcode_minus_L=yes
15700	  ;;
15701	esac
15702      fi
15703      ;;
15704
15705    irix5* | irix6* | nonstopux*)
15706      if test "$GCC" = yes; then
15707	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'
15708	# Try to use the -exported_symbol ld option, if it does not
15709	# work, assume that -exports_file does not work either and
15710	# implicitly export all symbols.
15711	# This should be the same for all languages, so no per-tag cache variable.
15712	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15713$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15714if ${lt_cv_irix_exported_symbol+:} false; then :
15715  $as_echo_n "(cached) " >&6
15716else
15717  save_LDFLAGS="$LDFLAGS"
15718	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15719	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720/* end confdefs.h.  */
15721int foo (void) { return 0; }
15722_ACEOF
15723if ac_fn_c_try_link "$LINENO"; then :
15724  lt_cv_irix_exported_symbol=yes
15725else
15726  lt_cv_irix_exported_symbol=no
15727fi
15728rm -f core conftest.err conftest.$ac_objext \
15729    conftest$ac_exeext conftest.$ac_ext
15730           LDFLAGS="$save_LDFLAGS"
15731fi
15732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15733$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15734	if test "$lt_cv_irix_exported_symbol" = yes; then
15735          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'
15736	fi
15737      else
15738	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'
15739	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'
15740      fi
15741      archive_cmds_need_lc='no'
15742      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15743      hardcode_libdir_separator=:
15744      inherit_rpath=yes
15745      link_all_deplibs=yes
15746      ;;
15747
15748    netbsd*)
15749      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15750	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15751      else
15752	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15753      fi
15754      hardcode_libdir_flag_spec='-R$libdir'
15755      hardcode_direct=yes
15756      hardcode_shlibpath_var=no
15757      ;;
15758
15759    newsos6)
15760      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15761      hardcode_direct=yes
15762      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15763      hardcode_libdir_separator=:
15764      hardcode_shlibpath_var=no
15765      ;;
15766
15767    *nto* | *qnx*)
15768      ;;
15769
15770    openbsd*)
15771      if test -f /usr/libexec/ld.so; then
15772	hardcode_direct=yes
15773	hardcode_shlibpath_var=no
15774	hardcode_direct_absolute=yes
15775	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15776	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15777	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15778	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15779	  export_dynamic_flag_spec='${wl}-E'
15780	else
15781	  case $host_os in
15782	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15783	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15784	     hardcode_libdir_flag_spec='-R$libdir'
15785	     ;;
15786	   *)
15787	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15788	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15789	     ;;
15790	  esac
15791	fi
15792      else
15793	ld_shlibs=no
15794      fi
15795      ;;
15796
15797    os2*)
15798      hardcode_libdir_flag_spec='-L$libdir'
15799      hardcode_minus_L=yes
15800      allow_undefined_flag=unsupported
15801      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15802      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15803      ;;
15804
15805    osf3*)
15806      if test "$GCC" = yes; then
15807	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15808	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'
15809      else
15810	allow_undefined_flag=' -expect_unresolved \*'
15811	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'
15812      fi
15813      archive_cmds_need_lc='no'
15814      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15815      hardcode_libdir_separator=:
15816      ;;
15817
15818    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15819      if test "$GCC" = yes; then
15820	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15821	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'
15822	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15823      else
15824	allow_undefined_flag=' -expect_unresolved \*'
15825	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'
15826	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~
15827	$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'
15828
15829	# Both c and cxx compiler support -rpath directly
15830	hardcode_libdir_flag_spec='-rpath $libdir'
15831      fi
15832      archive_cmds_need_lc='no'
15833      hardcode_libdir_separator=:
15834      ;;
15835
15836    solaris*)
15837      no_undefined_flag=' -z defs'
15838      if test "$GCC" = yes; then
15839	wlarc='${wl}'
15840	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15841	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15842	  $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'
15843      else
15844	case `$CC -V 2>&1` in
15845	*"Compilers 5.0"*)
15846	  wlarc=''
15847	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15848	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15849	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15850	  ;;
15851	*)
15852	  wlarc='${wl}'
15853	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15854	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15855	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15856	  ;;
15857	esac
15858      fi
15859      hardcode_libdir_flag_spec='-R$libdir'
15860      hardcode_shlibpath_var=no
15861      case $host_os in
15862      solaris2.[0-5] | solaris2.[0-5].*) ;;
15863      *)
15864	# The compiler driver will combine and reorder linker options,
15865	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15866	# but is careful enough not to reorder.
15867	# Supported since Solaris 2.6 (maybe 2.5.1?)
15868	if test "$GCC" = yes; then
15869	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15870	else
15871	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15872	fi
15873	;;
15874      esac
15875      link_all_deplibs=yes
15876      ;;
15877
15878    sunos4*)
15879      if test "x$host_vendor" = xsequent; then
15880	# Use $CC to link under sequent, because it throws in some extra .o
15881	# files that make .init and .fini sections work.
15882	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15883      else
15884	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15885      fi
15886      hardcode_libdir_flag_spec='-L$libdir'
15887      hardcode_direct=yes
15888      hardcode_minus_L=yes
15889      hardcode_shlibpath_var=no
15890      ;;
15891
15892    sysv4)
15893      case $host_vendor in
15894	sni)
15895	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15896	  hardcode_direct=yes # is this really true???
15897	;;
15898	siemens)
15899	  ## LD is ld it makes a PLAMLIB
15900	  ## CC just makes a GrossModule.
15901	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15902	  reload_cmds='$CC -r -o $output$reload_objs'
15903	  hardcode_direct=no
15904        ;;
15905	motorola)
15906	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15907	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15908	;;
15909      esac
15910      runpath_var='LD_RUN_PATH'
15911      hardcode_shlibpath_var=no
15912      ;;
15913
15914    sysv4.3*)
15915      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15916      hardcode_shlibpath_var=no
15917      export_dynamic_flag_spec='-Bexport'
15918      ;;
15919
15920    sysv4*MP*)
15921      if test -d /usr/nec; then
15922	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15923	hardcode_shlibpath_var=no
15924	runpath_var=LD_RUN_PATH
15925	hardcode_runpath_var=yes
15926	ld_shlibs=yes
15927      fi
15928      ;;
15929
15930    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15931      no_undefined_flag='${wl}-z,text'
15932      archive_cmds_need_lc=no
15933      hardcode_shlibpath_var=no
15934      runpath_var='LD_RUN_PATH'
15935
15936      if test "$GCC" = yes; then
15937	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15938	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15939      else
15940	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15941	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15942      fi
15943      ;;
15944
15945    sysv5* | sco3.2v5* | sco5v6*)
15946      # Note: We can NOT use -z defs as we might desire, because we do not
15947      # link with -lc, and that would cause any symbols used from libc to
15948      # always be unresolved, which means just about no library would
15949      # ever link correctly.  If we're not using GNU ld we use -z text
15950      # though, which does catch some bad symbols but isn't as heavy-handed
15951      # as -z defs.
15952      no_undefined_flag='${wl}-z,text'
15953      allow_undefined_flag='${wl}-z,nodefs'
15954      archive_cmds_need_lc=no
15955      hardcode_shlibpath_var=no
15956      hardcode_libdir_flag_spec='${wl}-R,$libdir'
15957      hardcode_libdir_separator=':'
15958      link_all_deplibs=yes
15959      export_dynamic_flag_spec='${wl}-Bexport'
15960      runpath_var='LD_RUN_PATH'
15961
15962      if test "$GCC" = yes; then
15963	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15964	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15965      else
15966	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15967	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15968      fi
15969      ;;
15970
15971    uts4*)
15972      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15973      hardcode_libdir_flag_spec='-L$libdir'
15974      hardcode_shlibpath_var=no
15975      ;;
15976
15977    *)
15978      ld_shlibs=no
15979      ;;
15980    esac
15981
15982    if test x$host_vendor = xsni; then
15983      case $host in
15984      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15985	export_dynamic_flag_spec='${wl}-Blargedynsym'
15986	;;
15987      esac
15988    fi
15989  fi
15990
15991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15992$as_echo "$ld_shlibs" >&6; }
15993test "$ld_shlibs" = no && can_build_shared=no
15994
15995with_gnu_ld=$with_gnu_ld
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011#
16012# Do we need to explicitly link libc?
16013#
16014case "x$archive_cmds_need_lc" in
16015x|xyes)
16016  # Assume -lc should be added
16017  archive_cmds_need_lc=yes
16018
16019  if test "$enable_shared" = yes && test "$GCC" = yes; then
16020    case $archive_cmds in
16021    *'~'*)
16022      # FIXME: we may have to deal with multi-command sequences.
16023      ;;
16024    '$CC '*)
16025      # Test whether the compiler implicitly links with -lc since on some
16026      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16027      # to ld, don't add -lc before -lgcc.
16028      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16029$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16030if ${lt_cv_archive_cmds_need_lc+:} false; then :
16031  $as_echo_n "(cached) " >&6
16032else
16033  $RM conftest*
16034	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16035
16036	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16037  (eval $ac_compile) 2>&5
16038  ac_status=$?
16039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16040  test $ac_status = 0; } 2>conftest.err; then
16041	  soname=conftest
16042	  lib=conftest
16043	  libobjs=conftest.$ac_objext
16044	  deplibs=
16045	  wl=$lt_prog_compiler_wl
16046	  pic_flag=$lt_prog_compiler_pic
16047	  compiler_flags=-v
16048	  linker_flags=-v
16049	  verstring=
16050	  output_objdir=.
16051	  libname=conftest
16052	  lt_save_allow_undefined_flag=$allow_undefined_flag
16053	  allow_undefined_flag=
16054	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16055  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16056  ac_status=$?
16057  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16058  test $ac_status = 0; }
16059	  then
16060	    lt_cv_archive_cmds_need_lc=no
16061	  else
16062	    lt_cv_archive_cmds_need_lc=yes
16063	  fi
16064	  allow_undefined_flag=$lt_save_allow_undefined_flag
16065	else
16066	  cat conftest.err 1>&5
16067	fi
16068	$RM conftest*
16069
16070fi
16071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16072$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16073      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16074      ;;
16075    esac
16076  fi
16077  ;;
16078esac
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16232$as_echo_n "checking dynamic linker characteristics... " >&6; }
16233
16234if test "$GCC" = yes; then
16235  case $host_os in
16236    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16237    *) lt_awk_arg="/^libraries:/" ;;
16238  esac
16239  case $host_os in
16240    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16241    *) lt_sed_strip_eq="s,=/,/,g" ;;
16242  esac
16243  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16244  case $lt_search_path_spec in
16245  *\;*)
16246    # if the path contains ";" then we assume it to be the separator
16247    # otherwise default to the standard path separator (i.e. ":") - it is
16248    # assumed that no part of a normal pathname contains ";" but that should
16249    # okay in the real world where ";" in dirpaths is itself problematic.
16250    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16251    ;;
16252  *)
16253    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16254    ;;
16255  esac
16256  # Ok, now we have the path, separated by spaces, we can step through it
16257  # and add multilib dir if necessary.
16258  lt_tmp_lt_search_path_spec=
16259  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16260  for lt_sys_path in $lt_search_path_spec; do
16261    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16262      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16263    else
16264      test -d "$lt_sys_path" && \
16265	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16266    fi
16267  done
16268  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16269BEGIN {RS=" "; FS="/|\n";} {
16270  lt_foo="";
16271  lt_count=0;
16272  for (lt_i = NF; lt_i > 0; lt_i--) {
16273    if ($lt_i != "" && $lt_i != ".") {
16274      if ($lt_i == "..") {
16275        lt_count++;
16276      } else {
16277        if (lt_count == 0) {
16278          lt_foo="/" $lt_i lt_foo;
16279        } else {
16280          lt_count--;
16281        }
16282      }
16283    }
16284  }
16285  if (lt_foo != "") { lt_freq[lt_foo]++; }
16286  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16287}'`
16288  # AWK program above erroneously prepends '/' to C:/dos/paths
16289  # for these hosts.
16290  case $host_os in
16291    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16292      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16293  esac
16294  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16295else
16296  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16297fi
16298library_names_spec=
16299libname_spec='lib$name'
16300soname_spec=
16301shrext_cmds=".so"
16302postinstall_cmds=
16303postuninstall_cmds=
16304finish_cmds=
16305finish_eval=
16306shlibpath_var=
16307shlibpath_overrides_runpath=unknown
16308version_type=none
16309dynamic_linker="$host_os ld.so"
16310sys_lib_dlsearch_path_spec="/lib /usr/lib"
16311need_lib_prefix=unknown
16312hardcode_into_libs=no
16313
16314# when you set need_version to no, make sure it does not cause -set_version
16315# flags to be left without arguments
16316need_version=unknown
16317
16318case $host_os in
16319aix3*)
16320  version_type=linux # correct to gnu/linux during the next big refactor
16321  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16322  shlibpath_var=LIBPATH
16323
16324  # AIX 3 has no versioning support, so we append a major version to the name.
16325  soname_spec='${libname}${release}${shared_ext}$major'
16326  ;;
16327
16328aix[4-9]*)
16329  version_type=linux # correct to gnu/linux during the next big refactor
16330  need_lib_prefix=no
16331  need_version=no
16332  hardcode_into_libs=yes
16333  if test "$host_cpu" = ia64; then
16334    # AIX 5 supports IA64
16335    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16336    shlibpath_var=LD_LIBRARY_PATH
16337  else
16338    # With GCC up to 2.95.x, collect2 would create an import file
16339    # for dependence libraries.  The import file would start with
16340    # the line `#! .'.  This would cause the generated library to
16341    # depend on `.', always an invalid library.  This was fixed in
16342    # development snapshots of GCC prior to 3.0.
16343    case $host_os in
16344      aix4 | aix4.[01] | aix4.[01].*)
16345      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16346	   echo ' yes '
16347	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16348	:
16349      else
16350	can_build_shared=no
16351      fi
16352      ;;
16353    esac
16354    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16355    # soname into executable. Probably we can add versioning support to
16356    # collect2, so additional links can be useful in future.
16357    if test "$aix_use_runtimelinking" = yes; then
16358      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16359      # instead of lib<name>.a to let people know that these are not
16360      # typical AIX shared libraries.
16361      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16362    else
16363      # We preserve .a as extension for shared libraries through AIX4.2
16364      # and later when we are not doing run time linking.
16365      library_names_spec='${libname}${release}.a $libname.a'
16366      soname_spec='${libname}${release}${shared_ext}$major'
16367    fi
16368    shlibpath_var=LIBPATH
16369  fi
16370  ;;
16371
16372amigaos*)
16373  case $host_cpu in
16374  powerpc)
16375    # Since July 2007 AmigaOS4 officially supports .so libraries.
16376    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16377    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16378    ;;
16379  m68k)
16380    library_names_spec='$libname.ixlibrary $libname.a'
16381    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16382    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
16383    ;;
16384  esac
16385  ;;
16386
16387beos*)
16388  library_names_spec='${libname}${shared_ext}'
16389  dynamic_linker="$host_os ld.so"
16390  shlibpath_var=LIBRARY_PATH
16391  ;;
16392
16393bsdi[45]*)
16394  version_type=linux # correct to gnu/linux during the next big refactor
16395  need_version=no
16396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16397  soname_spec='${libname}${release}${shared_ext}$major'
16398  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16399  shlibpath_var=LD_LIBRARY_PATH
16400  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16401  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16402  # the default ld.so.conf also contains /usr/contrib/lib and
16403  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16404  # libtool to hard-code these into programs
16405  ;;
16406
16407cygwin* | mingw* | pw32* | cegcc*)
16408  version_type=windows
16409  shrext_cmds=".dll"
16410  need_version=no
16411  need_lib_prefix=no
16412
16413  case $GCC,$cc_basename in
16414  yes,*)
16415    # gcc
16416    library_names_spec='$libname.dll.a'
16417    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16418    postinstall_cmds='base_file=`basename \${file}`~
16419      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16420      dldir=$destdir/`dirname \$dlpath`~
16421      test -d \$dldir || mkdir -p \$dldir~
16422      $install_prog $dir/$dlname \$dldir/$dlname~
16423      chmod a+x \$dldir/$dlname~
16424      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16425        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16426      fi'
16427    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16428      dlpath=$dir/\$dldll~
16429       $RM \$dlpath'
16430    shlibpath_overrides_runpath=yes
16431
16432    case $host_os in
16433    cygwin*)
16434      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16435      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16436
16437      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16438      ;;
16439    mingw* | cegcc*)
16440      # MinGW DLLs use traditional 'lib' prefix
16441      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16442      ;;
16443    pw32*)
16444      # pw32 DLLs use 'pw' prefix rather than 'lib'
16445      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16446      ;;
16447    esac
16448    dynamic_linker='Win32 ld.exe'
16449    ;;
16450
16451  *,cl*)
16452    # Native MSVC
16453    libname_spec='$name'
16454    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16455    library_names_spec='${libname}.dll.lib'
16456
16457    case $build_os in
16458    mingw*)
16459      sys_lib_search_path_spec=
16460      lt_save_ifs=$IFS
16461      IFS=';'
16462      for lt_path in $LIB
16463      do
16464        IFS=$lt_save_ifs
16465        # Let DOS variable expansion print the short 8.3 style file name.
16466        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16467        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16468      done
16469      IFS=$lt_save_ifs
16470      # Convert to MSYS style.
16471      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16472      ;;
16473    cygwin*)
16474      # Convert to unix form, then to dos form, then back to unix form
16475      # but this time dos style (no spaces!) so that the unix form looks
16476      # like /cygdrive/c/PROGRA~1:/cygdr...
16477      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16478      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16479      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16480      ;;
16481    *)
16482      sys_lib_search_path_spec="$LIB"
16483      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16484        # It is most probably a Windows format PATH.
16485        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16486      else
16487        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16488      fi
16489      # FIXME: find the short name or the path components, as spaces are
16490      # common. (e.g. "Program Files" -> "PROGRA~1")
16491      ;;
16492    esac
16493
16494    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16495    postinstall_cmds='base_file=`basename \${file}`~
16496      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16497      dldir=$destdir/`dirname \$dlpath`~
16498      test -d \$dldir || mkdir -p \$dldir~
16499      $install_prog $dir/$dlname \$dldir/$dlname'
16500    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16501      dlpath=$dir/\$dldll~
16502       $RM \$dlpath'
16503    shlibpath_overrides_runpath=yes
16504    dynamic_linker='Win32 link.exe'
16505    ;;
16506
16507  *)
16508    # Assume MSVC wrapper
16509    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16510    dynamic_linker='Win32 ld.exe'
16511    ;;
16512  esac
16513  # FIXME: first we should search . and the directory the executable is in
16514  shlibpath_var=PATH
16515  ;;
16516
16517darwin* | rhapsody*)
16518  dynamic_linker="$host_os dyld"
16519  version_type=darwin
16520  need_lib_prefix=no
16521  need_version=no
16522  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16523  soname_spec='${libname}${release}${major}$shared_ext'
16524  shlibpath_overrides_runpath=yes
16525  shlibpath_var=DYLD_LIBRARY_PATH
16526  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16527
16528  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16529  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16530  ;;
16531
16532dgux*)
16533  version_type=linux # correct to gnu/linux during the next big refactor
16534  need_lib_prefix=no
16535  need_version=no
16536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16537  soname_spec='${libname}${release}${shared_ext}$major'
16538  shlibpath_var=LD_LIBRARY_PATH
16539  ;;
16540
16541freebsd* | dragonfly*)
16542  # DragonFly does not have aout.  When/if they implement a new
16543  # versioning mechanism, adjust this.
16544  if test -x /usr/bin/objformat; then
16545    objformat=`/usr/bin/objformat`
16546  else
16547    case $host_os in
16548    freebsd[23].*) objformat=aout ;;
16549    *) objformat=elf ;;
16550    esac
16551  fi
16552  version_type=freebsd-$objformat
16553  case $version_type in
16554    freebsd-elf*)
16555      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16556      need_version=no
16557      need_lib_prefix=no
16558      ;;
16559    freebsd-*)
16560      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16561      need_version=yes
16562      ;;
16563  esac
16564  shlibpath_var=LD_LIBRARY_PATH
16565  case $host_os in
16566  freebsd2.*)
16567    shlibpath_overrides_runpath=yes
16568    ;;
16569  freebsd3.[01]* | freebsdelf3.[01]*)
16570    shlibpath_overrides_runpath=yes
16571    hardcode_into_libs=yes
16572    ;;
16573  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16574  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16575    shlibpath_overrides_runpath=no
16576    hardcode_into_libs=yes
16577    ;;
16578  *) # from 4.6 on, and DragonFly
16579    shlibpath_overrides_runpath=yes
16580    hardcode_into_libs=yes
16581    ;;
16582  esac
16583  ;;
16584
16585gnu*)
16586  version_type=linux # correct to gnu/linux during the next big refactor
16587  need_lib_prefix=no
16588  need_version=no
16589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16590  soname_spec='${libname}${release}${shared_ext}$major'
16591  shlibpath_var=LD_LIBRARY_PATH
16592  shlibpath_overrides_runpath=no
16593  hardcode_into_libs=yes
16594  ;;
16595
16596haiku*)
16597  version_type=linux # correct to gnu/linux during the next big refactor
16598  need_lib_prefix=no
16599  need_version=no
16600  dynamic_linker="$host_os runtime_loader"
16601  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16602  soname_spec='${libname}${release}${shared_ext}$major'
16603  shlibpath_var=LIBRARY_PATH
16604  shlibpath_overrides_runpath=yes
16605  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16606  hardcode_into_libs=yes
16607  ;;
16608
16609hpux9* | hpux10* | hpux11*)
16610  # Give a soname corresponding to the major version so that dld.sl refuses to
16611  # link against other versions.
16612  version_type=sunos
16613  need_lib_prefix=no
16614  need_version=no
16615  case $host_cpu in
16616  ia64*)
16617    shrext_cmds='.so'
16618    hardcode_into_libs=yes
16619    dynamic_linker="$host_os dld.so"
16620    shlibpath_var=LD_LIBRARY_PATH
16621    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16622    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623    soname_spec='${libname}${release}${shared_ext}$major'
16624    if test "X$HPUX_IA64_MODE" = X32; then
16625      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16626    else
16627      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16628    fi
16629    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16630    ;;
16631  hppa*64*)
16632    shrext_cmds='.sl'
16633    hardcode_into_libs=yes
16634    dynamic_linker="$host_os dld.sl"
16635    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16636    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16637    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16638    soname_spec='${libname}${release}${shared_ext}$major'
16639    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16640    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16641    ;;
16642  *)
16643    shrext_cmds='.sl'
16644    dynamic_linker="$host_os dld.sl"
16645    shlibpath_var=SHLIB_PATH
16646    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16647    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16648    soname_spec='${libname}${release}${shared_ext}$major'
16649    ;;
16650  esac
16651  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16652  postinstall_cmds='chmod 555 $lib'
16653  # or fails outright, so override atomically:
16654  install_override_mode=555
16655  ;;
16656
16657interix[3-9]*)
16658  version_type=linux # correct to gnu/linux during the next big refactor
16659  need_lib_prefix=no
16660  need_version=no
16661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16662  soname_spec='${libname}${release}${shared_ext}$major'
16663  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16664  shlibpath_var=LD_LIBRARY_PATH
16665  shlibpath_overrides_runpath=no
16666  hardcode_into_libs=yes
16667  ;;
16668
16669irix5* | irix6* | nonstopux*)
16670  case $host_os in
16671    nonstopux*) version_type=nonstopux ;;
16672    *)
16673	if test "$lt_cv_prog_gnu_ld" = yes; then
16674		version_type=linux # correct to gnu/linux during the next big refactor
16675	else
16676		version_type=irix
16677	fi ;;
16678  esac
16679  need_lib_prefix=no
16680  need_version=no
16681  soname_spec='${libname}${release}${shared_ext}$major'
16682  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16683  case $host_os in
16684  irix5* | nonstopux*)
16685    libsuff= shlibsuff=
16686    ;;
16687  *)
16688    case $LD in # libtool.m4 will add one of these switches to LD
16689    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16690      libsuff= shlibsuff= libmagic=32-bit;;
16691    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16692      libsuff=32 shlibsuff=N32 libmagic=N32;;
16693    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16694      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16695    *) libsuff= shlibsuff= libmagic=never-match;;
16696    esac
16697    ;;
16698  esac
16699  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16700  shlibpath_overrides_runpath=no
16701  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16702  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16703  hardcode_into_libs=yes
16704  ;;
16705
16706# No shared lib support for Linux oldld, aout, or coff.
16707linux*oldld* | linux*aout* | linux*coff*)
16708  dynamic_linker=no
16709  ;;
16710
16711# This must be glibc/ELF.
16712linux* | k*bsd*-gnu | kopensolaris*-gnu)
16713  version_type=linux # correct to gnu/linux during the next big refactor
16714  need_lib_prefix=no
16715  need_version=no
16716  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16717  soname_spec='${libname}${release}${shared_ext}$major'
16718  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16719  shlibpath_var=LD_LIBRARY_PATH
16720  shlibpath_overrides_runpath=no
16721
16722  # Some binutils ld are patched to set DT_RUNPATH
16723  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16724  $as_echo_n "(cached) " >&6
16725else
16726  lt_cv_shlibpath_overrides_runpath=no
16727    save_LDFLAGS=$LDFLAGS
16728    save_libdir=$libdir
16729    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16730	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16731    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732/* end confdefs.h.  */
16733
16734int
16735main ()
16736{
16737
16738  ;
16739  return 0;
16740}
16741_ACEOF
16742if ac_fn_c_try_link "$LINENO"; then :
16743  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16744  lt_cv_shlibpath_overrides_runpath=yes
16745fi
16746fi
16747rm -f core conftest.err conftest.$ac_objext \
16748    conftest$ac_exeext conftest.$ac_ext
16749    LDFLAGS=$save_LDFLAGS
16750    libdir=$save_libdir
16751
16752fi
16753
16754  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16755
16756  # This implies no fast_install, which is unacceptable.
16757  # Some rework will be needed to allow for fast_install
16758  # before this can be enabled.
16759  hardcode_into_libs=yes
16760
16761  # Append ld.so.conf contents to the search path
16762  if test -f /etc/ld.so.conf; then
16763    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' ' '`
16764    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16765  fi
16766
16767  # We used to test for /lib/ld.so.1 and disable shared libraries on
16768  # powerpc, because MkLinux only supported shared libraries with the
16769  # GNU dynamic linker.  Since this was broken with cross compilers,
16770  # most powerpc-linux boxes support dynamic linking these days and
16771  # people can always --disable-shared, the test was removed, and we
16772  # assume the GNU/Linux dynamic linker is in use.
16773  dynamic_linker='GNU/Linux ld.so'
16774  ;;
16775
16776netbsd*)
16777  version_type=sunos
16778  need_lib_prefix=no
16779  need_version=no
16780  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16781    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16782    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16783    dynamic_linker='NetBSD (a.out) ld.so'
16784  else
16785    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16786    soname_spec='${libname}${release}${shared_ext}$major'
16787    dynamic_linker='NetBSD ld.elf_so'
16788  fi
16789  shlibpath_var=LD_LIBRARY_PATH
16790  shlibpath_overrides_runpath=yes
16791  hardcode_into_libs=yes
16792  ;;
16793
16794newsos6)
16795  version_type=linux # correct to gnu/linux during the next big refactor
16796  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16797  shlibpath_var=LD_LIBRARY_PATH
16798  shlibpath_overrides_runpath=yes
16799  ;;
16800
16801*nto* | *qnx*)
16802  version_type=qnx
16803  need_lib_prefix=no
16804  need_version=no
16805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16806  soname_spec='${libname}${release}${shared_ext}$major'
16807  shlibpath_var=LD_LIBRARY_PATH
16808  shlibpath_overrides_runpath=no
16809  hardcode_into_libs=yes
16810  dynamic_linker='ldqnx.so'
16811  ;;
16812
16813openbsd*)
16814  version_type=sunos
16815  sys_lib_dlsearch_path_spec="/usr/lib"
16816  need_lib_prefix=no
16817  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16818  case $host_os in
16819    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16820    *)				need_version=no  ;;
16821  esac
16822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16823  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16824  shlibpath_var=LD_LIBRARY_PATH
16825  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16826    case $host_os in
16827      openbsd2.[89] | openbsd2.[89].*)
16828	shlibpath_overrides_runpath=no
16829	;;
16830      *)
16831	shlibpath_overrides_runpath=yes
16832	;;
16833      esac
16834  else
16835    shlibpath_overrides_runpath=yes
16836  fi
16837  ;;
16838
16839os2*)
16840  libname_spec='$name'
16841  shrext_cmds=".dll"
16842  need_lib_prefix=no
16843  library_names_spec='$libname${shared_ext} $libname.a'
16844  dynamic_linker='OS/2 ld.exe'
16845  shlibpath_var=LIBPATH
16846  ;;
16847
16848osf3* | osf4* | osf5*)
16849  version_type=osf
16850  need_lib_prefix=no
16851  need_version=no
16852  soname_spec='${libname}${release}${shared_ext}$major'
16853  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16854  shlibpath_var=LD_LIBRARY_PATH
16855  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16856  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16857  ;;
16858
16859rdos*)
16860  dynamic_linker=no
16861  ;;
16862
16863solaris*)
16864  version_type=linux # correct to gnu/linux during the next big refactor
16865  need_lib_prefix=no
16866  need_version=no
16867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16868  soname_spec='${libname}${release}${shared_ext}$major'
16869  shlibpath_var=LD_LIBRARY_PATH
16870  shlibpath_overrides_runpath=yes
16871  hardcode_into_libs=yes
16872  # ldd complains unless libraries are executable
16873  postinstall_cmds='chmod +x $lib'
16874  ;;
16875
16876sunos4*)
16877  version_type=sunos
16878  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16879  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16880  shlibpath_var=LD_LIBRARY_PATH
16881  shlibpath_overrides_runpath=yes
16882  if test "$with_gnu_ld" = yes; then
16883    need_lib_prefix=no
16884  fi
16885  need_version=yes
16886  ;;
16887
16888sysv4 | sysv4.3*)
16889  version_type=linux # correct to gnu/linux during the next big refactor
16890  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16891  soname_spec='${libname}${release}${shared_ext}$major'
16892  shlibpath_var=LD_LIBRARY_PATH
16893  case $host_vendor in
16894    sni)
16895      shlibpath_overrides_runpath=no
16896      need_lib_prefix=no
16897      runpath_var=LD_RUN_PATH
16898      ;;
16899    siemens)
16900      need_lib_prefix=no
16901      ;;
16902    motorola)
16903      need_lib_prefix=no
16904      need_version=no
16905      shlibpath_overrides_runpath=no
16906      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16907      ;;
16908  esac
16909  ;;
16910
16911sysv4*MP*)
16912  if test -d /usr/nec ;then
16913    version_type=linux # correct to gnu/linux during the next big refactor
16914    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16915    soname_spec='$libname${shared_ext}.$major'
16916    shlibpath_var=LD_LIBRARY_PATH
16917  fi
16918  ;;
16919
16920sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16921  version_type=freebsd-elf
16922  need_lib_prefix=no
16923  need_version=no
16924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16925  soname_spec='${libname}${release}${shared_ext}$major'
16926  shlibpath_var=LD_LIBRARY_PATH
16927  shlibpath_overrides_runpath=yes
16928  hardcode_into_libs=yes
16929  if test "$with_gnu_ld" = yes; then
16930    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16931  else
16932    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16933    case $host_os in
16934      sco3.2v5*)
16935        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16936	;;
16937    esac
16938  fi
16939  sys_lib_dlsearch_path_spec='/usr/lib'
16940  ;;
16941
16942tpf*)
16943  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16944  version_type=linux # correct to gnu/linux during the next big refactor
16945  need_lib_prefix=no
16946  need_version=no
16947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16948  shlibpath_var=LD_LIBRARY_PATH
16949  shlibpath_overrides_runpath=no
16950  hardcode_into_libs=yes
16951  ;;
16952
16953uts4*)
16954  version_type=linux # correct to gnu/linux during the next big refactor
16955  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16956  soname_spec='${libname}${release}${shared_ext}$major'
16957  shlibpath_var=LD_LIBRARY_PATH
16958  ;;
16959
16960*)
16961  dynamic_linker=no
16962  ;;
16963esac
16964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16965$as_echo "$dynamic_linker" >&6; }
16966test "$dynamic_linker" = no && can_build_shared=no
16967
16968variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16969if test "$GCC" = yes; then
16970  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16971fi
16972
16973if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16974  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16975fi
16976if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16977  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16978fi
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17072$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17073hardcode_action=
17074if test -n "$hardcode_libdir_flag_spec" ||
17075   test -n "$runpath_var" ||
17076   test "X$hardcode_automatic" = "Xyes" ; then
17077
17078  # We can hardcode non-existent directories.
17079  if test "$hardcode_direct" != no &&
17080     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17081     # have to relink, otherwise we might link with an installed library
17082     # when we should be linking with a yet-to-be-installed one
17083     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17084     test "$hardcode_minus_L" != no; then
17085    # Linking always hardcodes the temporary library directory.
17086    hardcode_action=relink
17087  else
17088    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17089    hardcode_action=immediate
17090  fi
17091else
17092  # We cannot hardcode anything, or else we can only hardcode existing
17093  # directories.
17094  hardcode_action=unsupported
17095fi
17096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17097$as_echo "$hardcode_action" >&6; }
17098
17099if test "$hardcode_action" = relink ||
17100   test "$inherit_rpath" = yes; then
17101  # Fast installation is not supported
17102  enable_fast_install=no
17103elif test "$shlibpath_overrides_runpath" = yes ||
17104     test "$enable_shared" = no; then
17105  # Fast installation is not necessary
17106  enable_fast_install=needless
17107fi
17108
17109
17110
17111
17112
17113
17114  if test "x$enable_dlopen" != xyes; then
17115  enable_dlopen=unknown
17116  enable_dlopen_self=unknown
17117  enable_dlopen_self_static=unknown
17118else
17119  lt_cv_dlopen=no
17120  lt_cv_dlopen_libs=
17121
17122  case $host_os in
17123  beos*)
17124    lt_cv_dlopen="load_add_on"
17125    lt_cv_dlopen_libs=
17126    lt_cv_dlopen_self=yes
17127    ;;
17128
17129  mingw* | pw32* | cegcc*)
17130    lt_cv_dlopen="LoadLibrary"
17131    lt_cv_dlopen_libs=
17132    ;;
17133
17134  cygwin*)
17135    lt_cv_dlopen="dlopen"
17136    lt_cv_dlopen_libs=
17137    ;;
17138
17139  darwin*)
17140  # if libdl is installed we need to link against it
17141    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17142$as_echo_n "checking for dlopen in -ldl... " >&6; }
17143if ${ac_cv_lib_dl_dlopen+:} false; then :
17144  $as_echo_n "(cached) " >&6
17145else
17146  ac_check_lib_save_LIBS=$LIBS
17147LIBS="-ldl  $LIBS"
17148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17149/* end confdefs.h.  */
17150
17151/* Override any GCC internal prototype to avoid an error.
17152   Use char because int might match the return type of a GCC
17153   builtin and then its argument prototype would still apply.  */
17154#ifdef __cplusplus
17155extern "C"
17156#endif
17157char dlopen ();
17158int
17159main ()
17160{
17161return dlopen ();
17162  ;
17163  return 0;
17164}
17165_ACEOF
17166if ac_fn_c_try_link "$LINENO"; then :
17167  ac_cv_lib_dl_dlopen=yes
17168else
17169  ac_cv_lib_dl_dlopen=no
17170fi
17171rm -f core conftest.err conftest.$ac_objext \
17172    conftest$ac_exeext conftest.$ac_ext
17173LIBS=$ac_check_lib_save_LIBS
17174fi
17175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17176$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17177if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17178  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17179else
17180
17181    lt_cv_dlopen="dyld"
17182    lt_cv_dlopen_libs=
17183    lt_cv_dlopen_self=yes
17184
17185fi
17186
17187    ;;
17188
17189  *)
17190    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17191if test "x$ac_cv_func_shl_load" = xyes; then :
17192  lt_cv_dlopen="shl_load"
17193else
17194  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17195$as_echo_n "checking for shl_load in -ldld... " >&6; }
17196if ${ac_cv_lib_dld_shl_load+:} false; then :
17197  $as_echo_n "(cached) " >&6
17198else
17199  ac_check_lib_save_LIBS=$LIBS
17200LIBS="-ldld  $LIBS"
17201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17202/* end confdefs.h.  */
17203
17204/* Override any GCC internal prototype to avoid an error.
17205   Use char because int might match the return type of a GCC
17206   builtin and then its argument prototype would still apply.  */
17207#ifdef __cplusplus
17208extern "C"
17209#endif
17210char shl_load ();
17211int
17212main ()
17213{
17214return shl_load ();
17215  ;
17216  return 0;
17217}
17218_ACEOF
17219if ac_fn_c_try_link "$LINENO"; then :
17220  ac_cv_lib_dld_shl_load=yes
17221else
17222  ac_cv_lib_dld_shl_load=no
17223fi
17224rm -f core conftest.err conftest.$ac_objext \
17225    conftest$ac_exeext conftest.$ac_ext
17226LIBS=$ac_check_lib_save_LIBS
17227fi
17228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17229$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17230if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17231  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17232else
17233  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17234if test "x$ac_cv_func_dlopen" = xyes; then :
17235  lt_cv_dlopen="dlopen"
17236else
17237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17238$as_echo_n "checking for dlopen in -ldl... " >&6; }
17239if ${ac_cv_lib_dl_dlopen+:} false; then :
17240  $as_echo_n "(cached) " >&6
17241else
17242  ac_check_lib_save_LIBS=$LIBS
17243LIBS="-ldl  $LIBS"
17244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17245/* end confdefs.h.  */
17246
17247/* Override any GCC internal prototype to avoid an error.
17248   Use char because int might match the return type of a GCC
17249   builtin and then its argument prototype would still apply.  */
17250#ifdef __cplusplus
17251extern "C"
17252#endif
17253char dlopen ();
17254int
17255main ()
17256{
17257return dlopen ();
17258  ;
17259  return 0;
17260}
17261_ACEOF
17262if ac_fn_c_try_link "$LINENO"; then :
17263  ac_cv_lib_dl_dlopen=yes
17264else
17265  ac_cv_lib_dl_dlopen=no
17266fi
17267rm -f core conftest.err conftest.$ac_objext \
17268    conftest$ac_exeext conftest.$ac_ext
17269LIBS=$ac_check_lib_save_LIBS
17270fi
17271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17272$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17273if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17274  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17275else
17276  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17277$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17278if ${ac_cv_lib_svld_dlopen+:} false; then :
17279  $as_echo_n "(cached) " >&6
17280else
17281  ac_check_lib_save_LIBS=$LIBS
17282LIBS="-lsvld  $LIBS"
17283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17284/* end confdefs.h.  */
17285
17286/* Override any GCC internal prototype to avoid an error.
17287   Use char because int might match the return type of a GCC
17288   builtin and then its argument prototype would still apply.  */
17289#ifdef __cplusplus
17290extern "C"
17291#endif
17292char dlopen ();
17293int
17294main ()
17295{
17296return dlopen ();
17297  ;
17298  return 0;
17299}
17300_ACEOF
17301if ac_fn_c_try_link "$LINENO"; then :
17302  ac_cv_lib_svld_dlopen=yes
17303else
17304  ac_cv_lib_svld_dlopen=no
17305fi
17306rm -f core conftest.err conftest.$ac_objext \
17307    conftest$ac_exeext conftest.$ac_ext
17308LIBS=$ac_check_lib_save_LIBS
17309fi
17310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17311$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17312if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17313  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17314else
17315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17316$as_echo_n "checking for dld_link in -ldld... " >&6; }
17317if ${ac_cv_lib_dld_dld_link+:} false; then :
17318  $as_echo_n "(cached) " >&6
17319else
17320  ac_check_lib_save_LIBS=$LIBS
17321LIBS="-ldld  $LIBS"
17322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17323/* end confdefs.h.  */
17324
17325/* Override any GCC internal prototype to avoid an error.
17326   Use char because int might match the return type of a GCC
17327   builtin and then its argument prototype would still apply.  */
17328#ifdef __cplusplus
17329extern "C"
17330#endif
17331char dld_link ();
17332int
17333main ()
17334{
17335return dld_link ();
17336  ;
17337  return 0;
17338}
17339_ACEOF
17340if ac_fn_c_try_link "$LINENO"; then :
17341  ac_cv_lib_dld_dld_link=yes
17342else
17343  ac_cv_lib_dld_dld_link=no
17344fi
17345rm -f core conftest.err conftest.$ac_objext \
17346    conftest$ac_exeext conftest.$ac_ext
17347LIBS=$ac_check_lib_save_LIBS
17348fi
17349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17350$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17351if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17352  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17353fi
17354
17355
17356fi
17357
17358
17359fi
17360
17361
17362fi
17363
17364
17365fi
17366
17367
17368fi
17369
17370    ;;
17371  esac
17372
17373  if test "x$lt_cv_dlopen" != xno; then
17374    enable_dlopen=yes
17375  else
17376    enable_dlopen=no
17377  fi
17378
17379  case $lt_cv_dlopen in
17380  dlopen)
17381    save_CPPFLAGS="$CPPFLAGS"
17382    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17383
17384    save_LDFLAGS="$LDFLAGS"
17385    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17386
17387    save_LIBS="$LIBS"
17388    LIBS="$lt_cv_dlopen_libs $LIBS"
17389
17390    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17391$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17392if ${lt_cv_dlopen_self+:} false; then :
17393  $as_echo_n "(cached) " >&6
17394else
17395  	  if test "$cross_compiling" = yes; then :
17396  lt_cv_dlopen_self=cross
17397else
17398  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17399  lt_status=$lt_dlunknown
17400  cat > conftest.$ac_ext <<_LT_EOF
17401#line $LINENO "configure"
17402#include "confdefs.h"
17403
17404#if HAVE_DLFCN_H
17405#include <dlfcn.h>
17406#endif
17407
17408#include <stdio.h>
17409
17410#ifdef RTLD_GLOBAL
17411#  define LT_DLGLOBAL		RTLD_GLOBAL
17412#else
17413#  ifdef DL_GLOBAL
17414#    define LT_DLGLOBAL		DL_GLOBAL
17415#  else
17416#    define LT_DLGLOBAL		0
17417#  endif
17418#endif
17419
17420/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17421   find out it does not work in some platform. */
17422#ifndef LT_DLLAZY_OR_NOW
17423#  ifdef RTLD_LAZY
17424#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17425#  else
17426#    ifdef DL_LAZY
17427#      define LT_DLLAZY_OR_NOW		DL_LAZY
17428#    else
17429#      ifdef RTLD_NOW
17430#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17431#      else
17432#        ifdef DL_NOW
17433#          define LT_DLLAZY_OR_NOW	DL_NOW
17434#        else
17435#          define LT_DLLAZY_OR_NOW	0
17436#        endif
17437#      endif
17438#    endif
17439#  endif
17440#endif
17441
17442/* When -fvisbility=hidden is used, assume the code has been annotated
17443   correspondingly for the symbols needed.  */
17444#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17445int fnord () __attribute__((visibility("default")));
17446#endif
17447
17448int fnord () { return 42; }
17449int main ()
17450{
17451  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17452  int status = $lt_dlunknown;
17453
17454  if (self)
17455    {
17456      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17457      else
17458        {
17459	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17460          else puts (dlerror ());
17461	}
17462      /* dlclose (self); */
17463    }
17464  else
17465    puts (dlerror ());
17466
17467  return status;
17468}
17469_LT_EOF
17470  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17471  (eval $ac_link) 2>&5
17472  ac_status=$?
17473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17474  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17475    (./conftest; exit; ) >&5 2>/dev/null
17476    lt_status=$?
17477    case x$lt_status in
17478      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17479      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17480      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17481    esac
17482  else :
17483    # compilation failed
17484    lt_cv_dlopen_self=no
17485  fi
17486fi
17487rm -fr conftest*
17488
17489
17490fi
17491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17492$as_echo "$lt_cv_dlopen_self" >&6; }
17493
17494    if test "x$lt_cv_dlopen_self" = xyes; then
17495      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17496      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17497$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17498if ${lt_cv_dlopen_self_static+:} false; then :
17499  $as_echo_n "(cached) " >&6
17500else
17501  	  if test "$cross_compiling" = yes; then :
17502  lt_cv_dlopen_self_static=cross
17503else
17504  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17505  lt_status=$lt_dlunknown
17506  cat > conftest.$ac_ext <<_LT_EOF
17507#line $LINENO "configure"
17508#include "confdefs.h"
17509
17510#if HAVE_DLFCN_H
17511#include <dlfcn.h>
17512#endif
17513
17514#include <stdio.h>
17515
17516#ifdef RTLD_GLOBAL
17517#  define LT_DLGLOBAL		RTLD_GLOBAL
17518#else
17519#  ifdef DL_GLOBAL
17520#    define LT_DLGLOBAL		DL_GLOBAL
17521#  else
17522#    define LT_DLGLOBAL		0
17523#  endif
17524#endif
17525
17526/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17527   find out it does not work in some platform. */
17528#ifndef LT_DLLAZY_OR_NOW
17529#  ifdef RTLD_LAZY
17530#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17531#  else
17532#    ifdef DL_LAZY
17533#      define LT_DLLAZY_OR_NOW		DL_LAZY
17534#    else
17535#      ifdef RTLD_NOW
17536#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17537#      else
17538#        ifdef DL_NOW
17539#          define LT_DLLAZY_OR_NOW	DL_NOW
17540#        else
17541#          define LT_DLLAZY_OR_NOW	0
17542#        endif
17543#      endif
17544#    endif
17545#  endif
17546#endif
17547
17548/* When -fvisbility=hidden is used, assume the code has been annotated
17549   correspondingly for the symbols needed.  */
17550#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17551int fnord () __attribute__((visibility("default")));
17552#endif
17553
17554int fnord () { return 42; }
17555int main ()
17556{
17557  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17558  int status = $lt_dlunknown;
17559
17560  if (self)
17561    {
17562      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17563      else
17564        {
17565	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17566          else puts (dlerror ());
17567	}
17568      /* dlclose (self); */
17569    }
17570  else
17571    puts (dlerror ());
17572
17573  return status;
17574}
17575_LT_EOF
17576  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17577  (eval $ac_link) 2>&5
17578  ac_status=$?
17579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17580  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17581    (./conftest; exit; ) >&5 2>/dev/null
17582    lt_status=$?
17583    case x$lt_status in
17584      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17585      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17586      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17587    esac
17588  else :
17589    # compilation failed
17590    lt_cv_dlopen_self_static=no
17591  fi
17592fi
17593rm -fr conftest*
17594
17595
17596fi
17597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17598$as_echo "$lt_cv_dlopen_self_static" >&6; }
17599    fi
17600
17601    CPPFLAGS="$save_CPPFLAGS"
17602    LDFLAGS="$save_LDFLAGS"
17603    LIBS="$save_LIBS"
17604    ;;
17605  esac
17606
17607  case $lt_cv_dlopen_self in
17608  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17609  *) enable_dlopen_self=unknown ;;
17610  esac
17611
17612  case $lt_cv_dlopen_self_static in
17613  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17614  *) enable_dlopen_self_static=unknown ;;
17615  esac
17616fi
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634striplib=
17635old_striplib=
17636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17637$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17638if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17639  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17640  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17642$as_echo "yes" >&6; }
17643else
17644# FIXME - insert some real tests, host_os isn't really good enough
17645  case $host_os in
17646  darwin*)
17647    if test -n "$STRIP" ; then
17648      striplib="$STRIP -x"
17649      old_striplib="$STRIP -S"
17650      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17651$as_echo "yes" >&6; }
17652    else
17653      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17654$as_echo "no" >&6; }
17655    fi
17656    ;;
17657  *)
17658    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17659$as_echo "no" >&6; }
17660    ;;
17661  esac
17662fi
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675  # Report which library types will actually be built
17676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17677$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17679$as_echo "$can_build_shared" >&6; }
17680
17681  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17682$as_echo_n "checking whether to build shared libraries... " >&6; }
17683  test "$can_build_shared" = "no" && enable_shared=no
17684
17685  # On AIX, shared libraries and static libraries use the same namespace, and
17686  # are all built from PIC.
17687  case $host_os in
17688  aix3*)
17689    test "$enable_shared" = yes && enable_static=no
17690    if test -n "$RANLIB"; then
17691      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17692      postinstall_cmds='$RANLIB $lib'
17693    fi
17694    ;;
17695
17696  aix[4-9]*)
17697    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17698      test "$enable_shared" = yes && enable_static=no
17699    fi
17700    ;;
17701  esac
17702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17703$as_echo "$enable_shared" >&6; }
17704
17705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17706$as_echo_n "checking whether to build static libraries... " >&6; }
17707  # Make sure either enable_shared or enable_static is yes.
17708  test "$enable_shared" = yes || enable_static=yes
17709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17710$as_echo "$enable_static" >&6; }
17711
17712
17713
17714
17715fi
17716ac_ext=c
17717ac_cpp='$CPP $CPPFLAGS'
17718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17720ac_compiler_gnu=$ac_cv_c_compiler_gnu
17721
17722CC="$lt_save_CC"
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738        ac_config_commands="$ac_config_commands libtool"
17739
17740
17741
17742
17743# Only expand once:
17744
17745
17746        # get libtool's setting of shlibpath_var
17747        eval `grep "^shlibpath_var=[A-Z_]*$" $apr_builddir/libtool`
17748        if test "x$shlibpath_var" = "x"; then
17749            shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
17750        fi
17751    fi
17752    ;;
17753esac
17754
17755
17756# Check whether --with-installbuilddir was given.
17757if test "${with_installbuilddir+set}" = set; then :
17758  withval=$with_installbuilddir;  installbuilddir=$withval
17759else
17760   installbuilddir="${datadir}/build-${APR_MAJOR_VERSION}"
17761fi
17762
17763
17764
17765
17766# Check whether --with-libtool was given.
17767if test "${with_libtool+set}" = set; then :
17768  withval=$with_libtool;  use_libtool=$withval
17769else
17770   use_libtool="yes"
17771fi
17772
17773
17774if test "x$use_libtool" = "xyes"; then
17775      lt_compile='$(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) -o $@ -c $< && touch $@'
17776      LT_VERSION="-version-info `$get_version libtool $version_hdr APR`"
17777      link="\$(LIBTOOL) \$(LTFLAGS) --mode=link \$(COMPILE) \$(LT_LDFLAGS) \$(LT_VERSION) \$(ALL_LDFLAGS) -o \$@"
17778      so_ext='lo'
17779      lib_target='-rpath $(libdir) $(OBJECTS)'
17780      export_lib_target='-rpath \$(libdir) \$(OBJECTS)'
17781else
17782      lt_compile='$(COMPILE) -o $@ -c $<'
17783      link='$(AR) cr $(TARGET_LIB) $(OBJECTS); $(RANLIB) $(TARGET_LIB)'
17784      so_ext='o'
17785      lib_target=''
17786      export_lib_target=''
17787fi
17788
17789case $host in
17790    *-solaris2*)
17791        apr_platform_runtime_link_flag="-R"
17792        ;;
17793    *-mingw* | *-cygwin*)
17794        LT_LDFLAGS="$LT_LDFLAGS -no-undefined"
17795        ;;
17796    *)
17797        ;;
17798esac
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810nl='
17811'
17812echo "${nl}Check for compiler flags..."
17813
17814
17815case $host in
17816    *os390)
17817        if test "$ac_test_CFLAGS" != set; then
17818
17819  if test "x$CFLAGS" = "x-g"; then
17820    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
17821    CFLAGS=""
17822  else
17823    apr_new_bugger=""
17824    apr_removed=0
17825    for i in $CFLAGS; do
17826      if test "x$i" != "x-g"; then
17827        apr_new_bugger="$apr_new_bugger $i"
17828      else
17829        apr_removed=1
17830      fi
17831    done
17832    if test $apr_removed = "1"; then
17833      test "x$silent" != "xyes" && echo "  removed \"-g\" from CFLAGS"
17834      CFLAGS=$apr_new_bugger
17835    fi
17836  fi
17837
17838        fi
17839        ;;
17840esac
17841
17842# Check whether --enable-debug was given.
17843if test "${enable_debug+set}" = set; then :
17844  enableval=$enable_debug;
17845  if test "x$CFLAGS" = "x"; then
17846    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-g\""
17847    CFLAGS="-g"
17848  else
17849    apr_addto_bugger="-g"
17850    for i in $apr_addto_bugger; do
17851      apr_addto_duplicate="0"
17852      for j in $CFLAGS; do
17853        if test "x$i" = "x$j"; then
17854          apr_addto_duplicate="1"
17855          break
17856        fi
17857      done
17858      if test $apr_addto_duplicate = "0"; then
17859        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
17860        CFLAGS="$CFLAGS $i"
17861      fi
17862    done
17863  fi
17864
17865   if test "$GCC" = "yes"; then
17866
17867  if test "x$CFLAGS" = "x"; then
17868    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wall\""
17869    CFLAGS="-Wall"
17870  else
17871    apr_addto_bugger="-Wall"
17872    for i in $apr_addto_bugger; do
17873      apr_addto_duplicate="0"
17874      for j in $CFLAGS; do
17875        if test "x$i" = "x$j"; then
17876          apr_addto_duplicate="1"
17877          break
17878        fi
17879      done
17880      if test $apr_addto_duplicate = "0"; then
17881        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
17882        CFLAGS="$CFLAGS $i"
17883      fi
17884    done
17885  fi
17886
17887   elif test "$AIX_XLC" = "yes"; then
17888
17889  if test "x$CFLAGS" = "x"; then
17890    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-qfullpath\""
17891    CFLAGS="-qfullpath"
17892  else
17893    apr_addto_bugger="-qfullpath"
17894    for i in $apr_addto_bugger; do
17895      apr_addto_duplicate="0"
17896      for j in $CFLAGS; do
17897        if test "x$i" = "x$j"; then
17898          apr_addto_duplicate="1"
17899          break
17900        fi
17901      done
17902      if test $apr_addto_duplicate = "0"; then
17903        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
17904        CFLAGS="$CFLAGS $i"
17905      fi
17906    done
17907  fi
17908
17909   fi
17910
17911fi
17912
17913# Check whether --enable-maintainer-mode was given.
17914if test "${enable_maintainer_mode+set}" = set; then :
17915  enableval=$enable_maintainer_mode;
17916  if test "x$CFLAGS" = "x"; then
17917    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-g\""
17918    CFLAGS="-g"
17919  else
17920    apr_addto_bugger="-g"
17921    for i in $apr_addto_bugger; do
17922      apr_addto_duplicate="0"
17923      for j in $CFLAGS; do
17924        if test "x$i" = "x$j"; then
17925          apr_addto_duplicate="1"
17926          break
17927        fi
17928      done
17929      if test $apr_addto_duplicate = "0"; then
17930        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
17931        CFLAGS="$CFLAGS $i"
17932      fi
17933    done
17934  fi
17935
17936   if test "$GCC" = "yes"; then
17937
17938  if test "x$CFLAGS" = "x"; then
17939    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations\""
17940    CFLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
17941  else
17942    apr_addto_bugger="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
17943    for i in $apr_addto_bugger; do
17944      apr_addto_duplicate="0"
17945      for j in $CFLAGS; do
17946        if test "x$i" = "x$j"; then
17947          apr_addto_duplicate="1"
17948          break
17949        fi
17950      done
17951      if test $apr_addto_duplicate = "0"; then
17952        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
17953        CFLAGS="$CFLAGS $i"
17954      fi
17955    done
17956  fi
17957
17958   elif test "$AIX_XLC" = "yes"; then
17959
17960  if test "x$CFLAGS" = "x"; then
17961    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro\""
17962    CFLAGS="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
17963  else
17964    apr_addto_bugger="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
17965    for i in $apr_addto_bugger; do
17966      apr_addto_duplicate="0"
17967      for j in $CFLAGS; do
17968        if test "x$i" = "x$j"; then
17969          apr_addto_duplicate="1"
17970          break
17971        fi
17972      done
17973      if test $apr_addto_duplicate = "0"; then
17974        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
17975        CFLAGS="$CFLAGS $i"
17976      fi
17977    done
17978  fi
17979
17980   fi
17981
17982fi
17983
17984# Check whether --enable-profile was given.
17985if test "${enable_profile+set}" = set; then :
17986  enableval=$enable_profile; if test "$GCC" = "yes"; then
17987
17988  if test "x$CFLAGS" = "x"; then
17989    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-pg\""
17990    CFLAGS="-pg"
17991  else
17992    apr_addto_bugger="-pg"
17993    for i in $apr_addto_bugger; do
17994      apr_addto_duplicate="0"
17995      for j in $CFLAGS; do
17996        if test "x$i" = "x$j"; then
17997          apr_addto_duplicate="1"
17998          break
17999        fi
18000      done
18001      if test $apr_addto_duplicate = "0"; then
18002        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
18003        CFLAGS="$CFLAGS $i"
18004      fi
18005    done
18006  fi
18007
18008
18009  if test "x$CFLAGS" = "x-g"; then
18010    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
18011    CFLAGS=""
18012  else
18013    apr_new_bugger=""
18014    apr_removed=0
18015    for i in $CFLAGS; do
18016      if test "x$i" != "x-g"; then
18017        apr_new_bugger="$apr_new_bugger $i"
18018      else
18019        apr_removed=1
18020      fi
18021    done
18022    if test $apr_removed = "1"; then
18023      test "x$silent" != "xyes" && echo "  removed \"-g\" from CFLAGS"
18024      CFLAGS=$apr_new_bugger
18025    fi
18026  fi
18027
18028    if test "$host" = "i586-pc-beos"; then
18029
18030  if test "x$CFLAGS" = "x-O2"; then
18031    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
18032    CFLAGS=""
18033  else
18034    apr_new_bugger=""
18035    apr_removed=0
18036    for i in $CFLAGS; do
18037      if test "x$i" != "x-O2"; then
18038        apr_new_bugger="$apr_new_bugger $i"
18039      else
18040        apr_removed=1
18041      fi
18042    done
18043    if test $apr_removed = "1"; then
18044      test "x$silent" != "xyes" && echo "  removed \"-O2\" from CFLAGS"
18045      CFLAGS=$apr_new_bugger
18046    fi
18047  fi
18048
18049
18050  if test "x$CFLAGS" = "x"; then
18051    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O1\""
18052    CFLAGS="-O1"
18053  else
18054    apr_addto_bugger="-O1"
18055    for i in $apr_addto_bugger; do
18056      apr_addto_duplicate="0"
18057      for j in $CFLAGS; do
18058        if test "x$i" = "x$j"; then
18059          apr_addto_duplicate="1"
18060          break
18061        fi
18062      done
18063      if test $apr_addto_duplicate = "0"; then
18064        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
18065        CFLAGS="$CFLAGS $i"
18066      fi
18067    done
18068  fi
18069
18070
18071  if test "x$LDFLAGS" = "x"; then
18072    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-p\""
18073    LDFLAGS="-p"
18074  else
18075    apr_addto_bugger="-p"
18076    for i in $apr_addto_bugger; do
18077      apr_addto_duplicate="0"
18078      for j in $LDFLAGS; do
18079        if test "x$i" = "x$j"; then
18080          apr_addto_duplicate="1"
18081          break
18082        fi
18083      done
18084      if test $apr_addto_duplicate = "0"; then
18085        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
18086        LDFLAGS="$LDFLAGS $i"
18087      fi
18088    done
18089  fi
18090
18091    fi
18092  fi
18093
18094fi
18095
18096# Check whether --enable-pool-debug was given.
18097if test "${enable_pool_debug+set}" = set; then :
18098  enableval=$enable_pool_debug;  if test -z "$enableval"; then
18099
18100  if test "x$CPPFLAGS" = "x"; then
18101    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAPR_POOL_DEBUG=1\""
18102    CPPFLAGS="-DAPR_POOL_DEBUG=1"
18103  else
18104    apr_addto_bugger="-DAPR_POOL_DEBUG=1"
18105    for i in $apr_addto_bugger; do
18106      apr_addto_duplicate="0"
18107      for j in $CPPFLAGS; do
18108        if test "x$i" = "x$j"; then
18109          apr_addto_duplicate="1"
18110          break
18111        fi
18112      done
18113      if test $apr_addto_duplicate = "0"; then
18114        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18115        CPPFLAGS="$CPPFLAGS $i"
18116      fi
18117    done
18118  fi
18119
18120    elif test ! "$enableval" = "no"; then
18121        apr_pool_debug=1
18122
18123        for i in $enableval
18124        do
18125            flag=0
18126
18127            case $i in
18128            yes)
18129                flag=1
18130                ;;
18131            verbose)
18132                flag=2
18133                ;;
18134            lifetime)
18135                flag=4
18136                ;;
18137            owner)
18138                flag=8
18139                ;;
18140            verbose-alloc)
18141                flag=16
18142                ;;
18143            all)
18144                apr_pool_debug=31
18145                ;;
18146            *)
18147                ;;
18148            esac
18149
18150            if test $flag -gt 0; then
18151                apr_pool_debug=`expr '(' $apr_pool_debug - $apr_pool_debug % \
18152                    '(' $flag '*' 2 ')' ')' + $flag + $apr_pool_debug % $flag`
18153            fi
18154        done
18155
18156
18157  if test "x$CPPFLAGS" = "x"; then
18158    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAPR_POOL_DEBUG=$apr_pool_debug\""
18159    CPPFLAGS="-DAPR_POOL_DEBUG=$apr_pool_debug"
18160  else
18161    apr_addto_bugger="-DAPR_POOL_DEBUG=$apr_pool_debug"
18162    for i in $apr_addto_bugger; do
18163      apr_addto_duplicate="0"
18164      for j in $CPPFLAGS; do
18165        if test "x$i" = "x$j"; then
18166          apr_addto_duplicate="1"
18167          break
18168        fi
18169      done
18170      if test $apr_addto_duplicate = "0"; then
18171        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18172        CPPFLAGS="$CPPFLAGS $i"
18173      fi
18174    done
18175  fi
18176
18177    fi
18178
18179fi
18180
18181
18182if test "$host" = "i586-pc-beos"; then
18183  # Check whether --enable-malloc-debug was given.
18184if test "${enable_malloc_debug+set}" = set; then :
18185  enableval=$enable_malloc_debug;
18186  if test "x$CFLAGS" = "x-O2"; then
18187    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
18188    CFLAGS=""
18189  else
18190    apr_new_bugger=""
18191    apr_removed=0
18192    for i in $CFLAGS; do
18193      if test "x$i" != "x-O2"; then
18194        apr_new_bugger="$apr_new_bugger $i"
18195      else
18196        apr_removed=1
18197      fi
18198    done
18199    if test $apr_removed = "1"; then
18200      test "x$silent" != "xyes" && echo "  removed \"-O2\" from CFLAGS"
18201      CFLAGS=$apr_new_bugger
18202    fi
18203  fi
18204
18205
18206  if test "x$CPPFLAGS" = "x"; then
18207    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-fcheck-memory-usage -D_KERNEL_MODE\""
18208    CPPFLAGS="-fcheck-memory-usage -D_KERNEL_MODE"
18209  else
18210    apr_addto_bugger="-fcheck-memory-usage -D_KERNEL_MODE"
18211    for i in $apr_addto_bugger; do
18212      apr_addto_duplicate="0"
18213      for j in $CPPFLAGS; do
18214        if test "x$i" = "x$j"; then
18215          apr_addto_duplicate="1"
18216          break
18217        fi
18218      done
18219      if test $apr_addto_duplicate = "0"; then
18220        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18221        CPPFLAGS="$CPPFLAGS $i"
18222      fi
18223    done
18224  fi
18225
18226
18227fi
18228 fi
18229
18230# this is the place to put specific options for platform/compiler
18231# combinations
18232case "$host:$CC" in
18233    *-hp-hpux*:cc )
18234
18235  if test "x$CFLAGS" = "x"; then
18236    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Ae +Z\""
18237    CFLAGS="-Ae +Z"
18238  else
18239    apr_addto_bugger="-Ae +Z"
18240    for i in $apr_addto_bugger; do
18241      apr_addto_duplicate="0"
18242      for j in $CFLAGS; do
18243        if test "x$i" = "x$j"; then
18244          apr_addto_duplicate="1"
18245          break
18246        fi
18247      done
18248      if test $apr_addto_duplicate = "0"; then
18249        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
18250        CFLAGS="$CFLAGS $i"
18251      fi
18252    done
18253  fi
18254
18255	case $host in
18256	  ia64-* )
18257	    ;;
18258          * )
18259	    if echo "$CFLAGS " | grep '+DA' >/dev/null; then :
18260	    else
18261
18262  if test "x$CFLAGS" = "x"; then
18263    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"+DAportable\""
18264    CFLAGS="+DAportable"
18265  else
18266    apr_addto_bugger="+DAportable"
18267    for i in $apr_addto_bugger; do
18268      apr_addto_duplicate="0"
18269      for j in $CFLAGS; do
18270        if test "x$i" = "x$j"; then
18271          apr_addto_duplicate="1"
18272          break
18273        fi
18274      done
18275      if test $apr_addto_duplicate = "0"; then
18276        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
18277        CFLAGS="$CFLAGS $i"
18278      fi
18279    done
18280  fi
18281
18282	    fi
18283	    ;;
18284        esac
18285	;;
18286    powerpc-*-beos:mwcc* )
18287
18288  test "x$silent" != "xyes" && echo "  forcing CPP to \"mwcc -E\""
18289  CPP="mwcc -E"
18290
18291
18292  test "x$silent" != "xyes" && echo "  forcing CC to \"mwcc\""
18293  CC="mwcc"
18294
18295
18296  test "x$silent" != "xyes" && echo "  forcing AR to \"ar\""
18297  AR="ar"
18298
18299	;;
18300                        *-mingw* | *-cygwin*)
18301        if test "$enable_shared" = "yes"; then
18302
18303  if test "x$INTERNAL_CPPFLAGS" = "x"; then
18304    test "x$silent" != "xyes" && echo "  setting INTERNAL_CPPFLAGS to \"-DAPR_DECLARE_EXPORT\""
18305    INTERNAL_CPPFLAGS="-DAPR_DECLARE_EXPORT"
18306  else
18307    apr_addto_bugger="-DAPR_DECLARE_EXPORT"
18308    for i in $apr_addto_bugger; do
18309      apr_addto_duplicate="0"
18310      for j in $INTERNAL_CPPFLAGS; do
18311        if test "x$i" = "x$j"; then
18312          apr_addto_duplicate="1"
18313          break
18314        fi
18315      done
18316      if test $apr_addto_duplicate = "0"; then
18317        test "x$silent" != "xyes" && echo "  adding \"$i\" to INTERNAL_CPPFLAGS"
18318        INTERNAL_CPPFLAGS="$INTERNAL_CPPFLAGS $i"
18319      fi
18320    done
18321  fi
18322
18323        else
18324
18325  if test "x$CPPFLAGS" = "x"; then
18326    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAPR_DECLARE_STATIC\""
18327    CPPFLAGS="-DAPR_DECLARE_STATIC"
18328  else
18329    apr_addto_bugger="-DAPR_DECLARE_STATIC"
18330    for i in $apr_addto_bugger; do
18331      apr_addto_duplicate="0"
18332      for j in $CPPFLAGS; do
18333        if test "x$i" = "x$j"; then
18334          apr_addto_duplicate="1"
18335          break
18336        fi
18337      done
18338      if test $apr_addto_duplicate = "0"; then
18339        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18340        CPPFLAGS="$CPPFLAGS $i"
18341      fi
18342    done
18343  fi
18344
18345        fi
18346        ;;
18347esac
18348
18349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
18350$as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
18351if ${ap_cv_atomic_builtins+:} false; then :
18352  $as_echo_n "(cached) " >&6
18353else
18354  if test "$cross_compiling" = yes; then :
18355  ap_cv_atomic_builtins=no
18356else
18357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18358/* end confdefs.h.  */
18359
18360int main()
18361{
18362    unsigned long val = 1010, tmp, *mem = &val;
18363
18364    if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
18365        return 1;
18366
18367    tmp = val;
18368
18369    if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
18370        return 1;
18371
18372    if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
18373        return 1;
18374
18375    tmp = 3030;
18376
18377    if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
18378        return 1;
18379
18380    if (__sync_lock_test_and_set(&val, 4040) != 3030)
18381        return 1;
18382
18383    mem = &tmp;
18384
18385    if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
18386        return 1;
18387
18388    __sync_synchronize();
18389
18390    if (mem != &val)
18391        return 1;
18392
18393    return 0;
18394}
18395_ACEOF
18396if ac_fn_c_try_run "$LINENO"; then :
18397  ap_cv_atomic_builtins=yes
18398else
18399  ap_cv_atomic_builtins=no
18400fi
18401rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18402  conftest.$ac_objext conftest.beam conftest.$ac_ext
18403fi
18404
18405fi
18406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_atomic_builtins" >&5
18407$as_echo "$ap_cv_atomic_builtins" >&6; }
18408
18409if test "$ap_cv_atomic_builtins" = "yes"; then
18410
18411$as_echo "#define HAVE_ATOMIC_BUILTINS 1" >>confdefs.h
18412
18413fi
18414
18415case $host in
18416    powerpc-405-*)
18417        # The IBM ppc405cr processor has a bugged stwcx instruction.
18418
18419$as_echo "#define PPC405_ERRATA 1" >>confdefs.h
18420
18421        ;;
18422    *)
18423        ;;
18424esac
18425
18426
18427if test "$GCC" = "yes"; then
18428  MKDEP='$(CC) -MM'
18429else
18430  rm -f conftest.c
18431  cat > conftest.c <<EOF
18432#include <sys/types.h>
18433  int main() { return 0; }
18434EOF
18435  MKDEP="true"
18436  for i in "$CC -MM" "$CC -M" "$CPP -MM" "$CPP -M" "cpp -M"; do
18437    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $i can create proper make dependencies" >&5
18438$as_echo_n "checking if $i can create proper make dependencies... " >&6; }
18439    if $i conftest.c 2>/dev/null | grep 'conftest.o: conftest.c' >/dev/null; then
18440      MKDEP=$i
18441      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18442$as_echo "yes" >&6; }
18443      break;
18444    fi
18445    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18446$as_echo "no" >&6; }
18447  done
18448  rm -f conftest.c
18449fi
18450
18451
18452
18453
18454proc_mutex_is_global=0
18455
18456config_subdirs="none"
18457INSTALL_SUBDIRS="none"
18458OBJECTS_PLATFORM='$(OBJECTS_unix)'
18459
18460case $host in
18461   i386-ibm-aix* | *-ibm-aix[1-2].* | *-ibm-aix3.* | *-ibm-aix4.1 | *-ibm-aix4.1.* | *-ibm-aix4.2 | *-ibm-aix4.2.*)
18462       OSDIR="aix"
18463
18464  if test "x$LDFLAGS" = "x"; then
18465    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-lld\""
18466    LDFLAGS="-lld"
18467  else
18468    apr_addto_bugger="-lld"
18469    for i in $apr_addto_bugger; do
18470      apr_addto_duplicate="0"
18471      for j in $LDFLAGS; do
18472        if test "x$i" = "x$j"; then
18473          apr_addto_duplicate="1"
18474          break
18475        fi
18476      done
18477      if test $apr_addto_duplicate = "0"; then
18478        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
18479        LDFLAGS="$LDFLAGS $i"
18480      fi
18481    done
18482  fi
18483
18484       eolstr="\\n"
18485       OBJECTS_PLATFORM='$(OBJECTS_aix)'
18486       ;;
18487   *-os2*)
18488
18489  if test "x$CPPFLAGS" = "x"; then
18490    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DOS2\""
18491    CPPFLAGS="-DOS2"
18492  else
18493    apr_addto_bugger="-DOS2"
18494    for i in $apr_addto_bugger; do
18495      apr_addto_duplicate="0"
18496      for j in $CPPFLAGS; do
18497        if test "x$i" = "x$j"; then
18498          apr_addto_duplicate="1"
18499          break
18500        fi
18501      done
18502      if test $apr_addto_duplicate = "0"; then
18503        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18504        CPPFLAGS="$CPPFLAGS $i"
18505      fi
18506    done
18507  fi
18508
18509
18510  if test "x$CFLAGS" = "x"; then
18511    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Zmt\""
18512    CFLAGS="-Zmt"
18513  else
18514    apr_addto_bugger="-Zmt"
18515    for i in $apr_addto_bugger; do
18516      apr_addto_duplicate="0"
18517      for j in $CFLAGS; do
18518        if test "x$i" = "x$j"; then
18519          apr_addto_duplicate="1"
18520          break
18521        fi
18522      done
18523      if test $apr_addto_duplicate = "0"; then
18524        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
18525        CFLAGS="$CFLAGS $i"
18526      fi
18527    done
18528  fi
18529
18530       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random in -lbsd" >&5
18531$as_echo_n "checking for random in -lbsd... " >&6; }
18532if ${ac_cv_lib_bsd_random+:} false; then :
18533  $as_echo_n "(cached) " >&6
18534else
18535  ac_check_lib_save_LIBS=$LIBS
18536LIBS="-lbsd  $LIBS"
18537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18538/* end confdefs.h.  */
18539
18540/* Override any GCC internal prototype to avoid an error.
18541   Use char because int might match the return type of a GCC
18542   builtin and then its argument prototype would still apply.  */
18543#ifdef __cplusplus
18544extern "C"
18545#endif
18546char random ();
18547int
18548main ()
18549{
18550return random ();
18551  ;
18552  return 0;
18553}
18554_ACEOF
18555if ac_fn_c_try_link "$LINENO"; then :
18556  ac_cv_lib_bsd_random=yes
18557else
18558  ac_cv_lib_bsd_random=no
18559fi
18560rm -f core conftest.err conftest.$ac_objext \
18561    conftest$ac_exeext conftest.$ac_ext
18562LIBS=$ac_check_lib_save_LIBS
18563fi
18564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_random" >&5
18565$as_echo "$ac_cv_lib_bsd_random" >&6; }
18566if test "x$ac_cv_lib_bsd_random" = xyes; then :
18567  cat >>confdefs.h <<_ACEOF
18568#define HAVE_LIBBSD 1
18569_ACEOF
18570
18571  LIBS="-lbsd $LIBS"
18572
18573fi
18574
18575       OSDIR="os2"
18576       enable_threads="system_threads"
18577       eolstr="\\r\\n"
18578       file_as_socket="0"
18579       proc_mutex_is_global=1
18580       OBJECTS_PLATFORM='$(OBJECTS_os2)'
18581       ;;
18582   *beos*)
18583       OSDIR="beos"
18584
18585  if test "x$CPPFLAGS" = "x"; then
18586    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DBEOS\""
18587    CPPFLAGS="-DBEOS"
18588  else
18589    apr_addto_bugger="-DBEOS"
18590    for i in $apr_addto_bugger; do
18591      apr_addto_duplicate="0"
18592      for j in $CPPFLAGS; do
18593        if test "x$i" = "x$j"; then
18594          apr_addto_duplicate="1"
18595          break
18596        fi
18597      done
18598      if test $apr_addto_duplicate = "0"; then
18599        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18600        CPPFLAGS="$CPPFLAGS $i"
18601      fi
18602    done
18603  fi
18604
18605       enable_threads="system_threads"
18606       native_mmap_emul="1"
18607
18608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BONE_VERSION in sys/socket.h" >&5
18609$as_echo_n "checking for BONE_VERSION in sys/socket.h... " >&6; }
18610if ${ac_cv_define_BONE_VERSION+:} false; then :
18611  $as_echo_n "(cached) " >&6
18612else
18613
18614    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18615/* end confdefs.h.  */
18616
18617#include <sys/socket.h>
18618#ifdef BONE_VERSION
18619YES_IS_DEFINED
18620#endif
18621
18622_ACEOF
18623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18624  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
18625  ac_cv_define_BONE_VERSION=yes
18626else
18627  ac_cv_define_BONE_VERSION=no
18628fi
18629rm -f conftest*
18630
18631
18632fi
18633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_BONE_VERSION" >&5
18634$as_echo "$ac_cv_define_BONE_VERSION" >&6; }
18635  if test "$ac_cv_define_BONE_VERSION" = "yes"; then
18636
18637$as_echo "#define HAVE_BONE_VERSION 1" >>confdefs.h
18638
18639  fi
18640
18641       eolstr="\\n"
18642       osver=`uname -r`
18643       proc_mutex_is_global=1
18644       OBJECTS_PLATFORM='$(OBJECTS_beos)'
18645       case $osver in
18646          5.0.4)
18647             file_as_socket="1"
18648             ;;
18649          *)
18650             file_as_socket="0"
18651             ;;
18652       esac
18653       ;;
18654   *os390)
18655       OSDIR="os390"
18656       OBJECTS_PLATFORM='$(OBJECTS_os390)'
18657       eolstr="\\n"
18658       ;;
18659   *os400)
18660       OSDIR="as400"
18661       eolstr="\\n"
18662       ;;
18663   *mingw*)
18664       OSDIR="win32"
18665       enable_threads="system_threads"
18666       eolstr="\\r\\n"
18667       file_as_socket=0
18668       proc_mutex_is_global=1
18669       OBJECTS_PLATFORM='$(OBJECTS_win32)'
18670       ;;
18671   *cygwin*)
18672       OSDIR="unix"
18673       enable_threads="no"
18674       eolstr="\\n"
18675       ;;
18676   *hpux10* )
18677       enable_threads="no"
18678       OSDIR="unix"
18679       eolstr="\\n"
18680       ;;
18681   *)
18682       OSDIR="unix"
18683       eolstr="\\n"
18684       ;;
18685esac
18686
18687
18688
18689# Check whether LFS has explicitly been disabled
18690# Check whether --enable-lfs was given.
18691if test "${enable_lfs+set}" = set; then :
18692  enableval=$enable_lfs; apr_lfs_choice=$enableval
18693else
18694  apr_lfs_choice=yes
18695fi
18696
18697
18698if test "$apr_lfs_choice" = "yes"; then
18699   # Check whether the transitional LFS API is sufficient
18700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable -D_LARGEFILE64_SOURCE" >&5
18701$as_echo_n "checking whether to enable -D_LARGEFILE64_SOURCE... " >&6; }
18702if ${apr_cv_use_lfs64+:} false; then :
18703  $as_echo_n "(cached) " >&6
18704else
18705
18706   apr_save_CPPFLAGS=$CPPFLAGS
18707   CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
18708   if test "$cross_compiling" = yes; then :
18709  apr_cv_use_lfs64=no
18710else
18711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18712/* end confdefs.h.  */
18713
18714#include <sys/types.h>
18715#include <sys/stat.h>
18716#include <fcntl.h>
18717#include <stdlib.h>
18718#include <stdio.h>
18719#include <unistd.h>
18720
18721void main(void)
18722{
18723    int fd, ret = 0;
18724    struct stat64 st;
18725    off64_t off = 4242;
18726
18727    if (sizeof(off64_t) != 8 || sizeof(off_t) != 4)
18728       exit(1);
18729    if ((fd = open("conftest.lfs", O_LARGEFILE|O_CREAT|O_WRONLY, 0644)) < 0)
18730       exit(2);
18731    if (ftruncate64(fd, off) != 0)
18732       ret = 3;
18733    else if (fstat64(fd, &st) != 0 || st.st_size != off)
18734       ret = 4;
18735    else if (lseek64(fd, off, SEEK_SET) != off)
18736       ret = 5;
18737    else if (close(fd) != 0)
18738       ret = 6;
18739    else if (lstat64("conftest.lfs", &st) != 0 || st.st_size != off)
18740       ret = 7;
18741    else if (stat64("conftest.lfs", &st) != 0 || st.st_size != off)
18742       ret = 8;
18743    unlink("conftest.lfs");
18744
18745    exit(ret);
18746}
18747_ACEOF
18748if ac_fn_c_try_run "$LINENO"; then :
18749  apr_cv_use_lfs64=yes
18750else
18751  apr_cv_use_lfs64=no
18752fi
18753rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18754  conftest.$ac_objext conftest.beam conftest.$ac_ext
18755fi
18756
18757   CPPFLAGS=$apr_save_CPPFLAGS
18758fi
18759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_use_lfs64" >&5
18760$as_echo "$apr_cv_use_lfs64" >&6; }
18761   if test "$apr_cv_use_lfs64" = "yes"; then
18762
18763  if test "x$CPPFLAGS" = "x"; then
18764    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_LARGEFILE64_SOURCE\""
18765    CPPFLAGS="-D_LARGEFILE64_SOURCE"
18766  else
18767    apr_addto_bugger="-D_LARGEFILE64_SOURCE"
18768    for i in $apr_addto_bugger; do
18769      apr_addto_duplicate="0"
18770      for j in $CPPFLAGS; do
18771        if test "x$i" = "x$j"; then
18772          apr_addto_duplicate="1"
18773          break
18774        fi
18775      done
18776      if test $apr_addto_duplicate = "0"; then
18777        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18778        CPPFLAGS="$CPPFLAGS $i"
18779      fi
18780    done
18781  fi
18782
18783   fi
18784fi
18785
18786# Check whether --enable-nonportable-atomics was given.
18787if test "${enable_nonportable_atomics+set}" = set; then :
18788  enableval=$enable_nonportable_atomics; if test $enableval = yes; then
18789   force_generic_atomics=no
18790 else
18791   force_generic_atomics=yes
18792 fi
18793
18794else
18795  case $host_cpu in
18796   i[456]86) force_generic_atomics=yes ;;
18797   *) force_generic_atomics=no ;;
18798esac
18799
18800fi
18801
18802
18803if test $force_generic_atomics = yes; then
18804
18805$as_echo "#define USE_ATOMICS_GENERIC 1" >>confdefs.h
18806
18807fi
18808
18809
18810
18811
18812
18813# For some platforms we need a version string which allows easy numeric
18814# comparisons.
18815case $host in
18816    *freebsd*)
18817        if test -x /sbin/sysctl; then
18818            os_version=`/sbin/sysctl -n kern.osreldate`
18819        else
18820            os_version=000000
18821        fi
18822        ;;
18823    *linux*)
18824        os_major=`uname -r | sed -e 's/\([1-9][0-9]*\)\..*/\1/'`
18825        os_minor=`uname -r | sed -e 's/[1-9][0-9]*\.\([0-9]\+\)\..*/\1/'`
18826        if test $os_major -lt 2 -o \( $os_major -eq 2 -a $os_minor -lt 4 \); then
18827            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configured for pre-2.4 Linux $os_major.$os_minor" >&5
18828$as_echo "$as_me: WARNING: Configured for pre-2.4 Linux $os_major.$os_minor" >&2;}
18829            os_pre24linux=1
18830        else
18831            os_pre24linux=0
18832            { $as_echo "$as_me:${as_lineno-$LINENO}: Configured for Linux $os_major.$os_minor" >&5
18833$as_echo "$as_me: Configured for Linux $os_major.$os_minor" >&6;}
18834        fi
18835        ;;
18836    *os390)
18837        os_version=`uname -r | sed -e 's/\.//g'`
18838        ;;
18839    *)
18840        os_version=OS_VERSION_IS_NOT_SET
18841        ;;
18842esac
18843
18844echo "${nl}Checking for libraries..."
18845
18846case $host in
18847   *mingw*)
18848
18849  if test "x$LIBS" = "x"; then
18850    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock\""
18851    LIBS="-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock"
18852  else
18853    apr_addto_bugger="-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock"
18854    for i in $apr_addto_bugger; do
18855      apr_addto_duplicate="0"
18856      for j in $LIBS; do
18857        if test "x$i" = "x$j"; then
18858          apr_addto_duplicate="1"
18859          break
18860        fi
18861      done
18862      if test $apr_addto_duplicate = "0"; then
18863        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
18864        LIBS="$LIBS $i"
18865      fi
18866    done
18867  fi
18868
18869      ac_cv_func_CreateFileMapping=yes
18870      ;;
18871   *)
18872      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
18873$as_echo_n "checking for library containing gethostbyname... " >&6; }
18874if ${ac_cv_search_gethostbyname+:} false; then :
18875  $as_echo_n "(cached) " >&6
18876else
18877  ac_func_search_save_LIBS=$LIBS
18878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18879/* end confdefs.h.  */
18880
18881/* Override any GCC internal prototype to avoid an error.
18882   Use char because int might match the return type of a GCC
18883   builtin and then its argument prototype would still apply.  */
18884#ifdef __cplusplus
18885extern "C"
18886#endif
18887char gethostbyname ();
18888int
18889main ()
18890{
18891return gethostbyname ();
18892  ;
18893  return 0;
18894}
18895_ACEOF
18896for ac_lib in '' nsl; do
18897  if test -z "$ac_lib"; then
18898    ac_res="none required"
18899  else
18900    ac_res=-l$ac_lib
18901    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18902  fi
18903  if ac_fn_c_try_link "$LINENO"; then :
18904  ac_cv_search_gethostbyname=$ac_res
18905fi
18906rm -f core conftest.err conftest.$ac_objext \
18907    conftest$ac_exeext
18908  if ${ac_cv_search_gethostbyname+:} false; then :
18909  break
18910fi
18911done
18912if ${ac_cv_search_gethostbyname+:} false; then :
18913
18914else
18915  ac_cv_search_gethostbyname=no
18916fi
18917rm conftest.$ac_ext
18918LIBS=$ac_func_search_save_LIBS
18919fi
18920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
18921$as_echo "$ac_cv_search_gethostbyname" >&6; }
18922ac_res=$ac_cv_search_gethostbyname
18923if test "$ac_res" != no; then :
18924  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18925
18926fi
18927
18928      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
18929$as_echo_n "checking for library containing gethostname... " >&6; }
18930if ${ac_cv_search_gethostname+:} false; then :
18931  $as_echo_n "(cached) " >&6
18932else
18933  ac_func_search_save_LIBS=$LIBS
18934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18935/* end confdefs.h.  */
18936
18937/* Override any GCC internal prototype to avoid an error.
18938   Use char because int might match the return type of a GCC
18939   builtin and then its argument prototype would still apply.  */
18940#ifdef __cplusplus
18941extern "C"
18942#endif
18943char gethostname ();
18944int
18945main ()
18946{
18947return gethostname ();
18948  ;
18949  return 0;
18950}
18951_ACEOF
18952for ac_lib in '' nsl; do
18953  if test -z "$ac_lib"; then
18954    ac_res="none required"
18955  else
18956    ac_res=-l$ac_lib
18957    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18958  fi
18959  if ac_fn_c_try_link "$LINENO"; then :
18960  ac_cv_search_gethostname=$ac_res
18961fi
18962rm -f core conftest.err conftest.$ac_objext \
18963    conftest$ac_exeext
18964  if ${ac_cv_search_gethostname+:} false; then :
18965  break
18966fi
18967done
18968if ${ac_cv_search_gethostname+:} false; then :
18969
18970else
18971  ac_cv_search_gethostname=no
18972fi
18973rm conftest.$ac_ext
18974LIBS=$ac_func_search_save_LIBS
18975fi
18976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
18977$as_echo "$ac_cv_search_gethostname" >&6; }
18978ac_res=$ac_cv_search_gethostname
18979if test "$ac_res" != no; then :
18980  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18981
18982fi
18983
18984      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
18985$as_echo_n "checking for library containing socket... " >&6; }
18986if ${ac_cv_search_socket+:} false; then :
18987  $as_echo_n "(cached) " >&6
18988else
18989  ac_func_search_save_LIBS=$LIBS
18990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18991/* end confdefs.h.  */
18992
18993/* Override any GCC internal prototype to avoid an error.
18994   Use char because int might match the return type of a GCC
18995   builtin and then its argument prototype would still apply.  */
18996#ifdef __cplusplus
18997extern "C"
18998#endif
18999char socket ();
19000int
19001main ()
19002{
19003return socket ();
19004  ;
19005  return 0;
19006}
19007_ACEOF
19008for ac_lib in '' socket; do
19009  if test -z "$ac_lib"; then
19010    ac_res="none required"
19011  else
19012    ac_res=-l$ac_lib
19013    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19014  fi
19015  if ac_fn_c_try_link "$LINENO"; then :
19016  ac_cv_search_socket=$ac_res
19017fi
19018rm -f core conftest.err conftest.$ac_objext \
19019    conftest$ac_exeext
19020  if ${ac_cv_search_socket+:} false; then :
19021  break
19022fi
19023done
19024if ${ac_cv_search_socket+:} false; then :
19025
19026else
19027  ac_cv_search_socket=no
19028fi
19029rm conftest.$ac_ext
19030LIBS=$ac_func_search_save_LIBS
19031fi
19032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19033$as_echo "$ac_cv_search_socket" >&6; }
19034ac_res=$ac_cv_search_socket
19035if test "$ac_res" != no; then :
19036  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19037
19038fi
19039
19040      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19041$as_echo_n "checking for library containing crypt... " >&6; }
19042if ${ac_cv_search_crypt+:} false; then :
19043  $as_echo_n "(cached) " >&6
19044else
19045  ac_func_search_save_LIBS=$LIBS
19046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19047/* end confdefs.h.  */
19048
19049/* Override any GCC internal prototype to avoid an error.
19050   Use char because int might match the return type of a GCC
19051   builtin and then its argument prototype would still apply.  */
19052#ifdef __cplusplus
19053extern "C"
19054#endif
19055char crypt ();
19056int
19057main ()
19058{
19059return crypt ();
19060  ;
19061  return 0;
19062}
19063_ACEOF
19064for ac_lib in '' crypt ufc; do
19065  if test -z "$ac_lib"; then
19066    ac_res="none required"
19067  else
19068    ac_res=-l$ac_lib
19069    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19070  fi
19071  if ac_fn_c_try_link "$LINENO"; then :
19072  ac_cv_search_crypt=$ac_res
19073fi
19074rm -f core conftest.err conftest.$ac_objext \
19075    conftest$ac_exeext
19076  if ${ac_cv_search_crypt+:} false; then :
19077  break
19078fi
19079done
19080if ${ac_cv_search_crypt+:} false; then :
19081
19082else
19083  ac_cv_search_crypt=no
19084fi
19085rm conftest.$ac_ext
19086LIBS=$ac_func_search_save_LIBS
19087fi
19088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19089$as_echo "$ac_cv_search_crypt" >&6; }
19090ac_res=$ac_cv_search_crypt
19091if test "$ac_res" != no; then :
19092  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19093
19094fi
19095
19096      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltruerand" >&5
19097$as_echo_n "checking for main in -ltruerand... " >&6; }
19098if ${ac_cv_lib_truerand_main+:} false; then :
19099  $as_echo_n "(cached) " >&6
19100else
19101  ac_check_lib_save_LIBS=$LIBS
19102LIBS="-ltruerand  $LIBS"
19103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19104/* end confdefs.h.  */
19105
19106
19107int
19108main ()
19109{
19110return main ();
19111  ;
19112  return 0;
19113}
19114_ACEOF
19115if ac_fn_c_try_link "$LINENO"; then :
19116  ac_cv_lib_truerand_main=yes
19117else
19118  ac_cv_lib_truerand_main=no
19119fi
19120rm -f core conftest.err conftest.$ac_objext \
19121    conftest$ac_exeext conftest.$ac_ext
19122LIBS=$ac_check_lib_save_LIBS
19123fi
19124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_truerand_main" >&5
19125$as_echo "$ac_cv_lib_truerand_main" >&6; }
19126if test "x$ac_cv_lib_truerand_main" = xyes; then :
19127  cat >>confdefs.h <<_ACEOF
19128#define HAVE_LIBTRUERAND 1
19129_ACEOF
19130
19131  LIBS="-ltruerand $LIBS"
19132
19133fi
19134
19135      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing modf" >&5
19136$as_echo_n "checking for library containing modf... " >&6; }
19137if ${ac_cv_search_modf+:} false; then :
19138  $as_echo_n "(cached) " >&6
19139else
19140  ac_func_search_save_LIBS=$LIBS
19141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19142/* end confdefs.h.  */
19143
19144/* Override any GCC internal prototype to avoid an error.
19145   Use char because int might match the return type of a GCC
19146   builtin and then its argument prototype would still apply.  */
19147#ifdef __cplusplus
19148extern "C"
19149#endif
19150char modf ();
19151int
19152main ()
19153{
19154return modf ();
19155  ;
19156  return 0;
19157}
19158_ACEOF
19159for ac_lib in '' m; do
19160  if test -z "$ac_lib"; then
19161    ac_res="none required"
19162  else
19163    ac_res=-l$ac_lib
19164    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19165  fi
19166  if ac_fn_c_try_link "$LINENO"; then :
19167  ac_cv_search_modf=$ac_res
19168fi
19169rm -f core conftest.err conftest.$ac_objext \
19170    conftest$ac_exeext
19171  if ${ac_cv_search_modf+:} false; then :
19172  break
19173fi
19174done
19175if ${ac_cv_search_modf+:} false; then :
19176
19177else
19178  ac_cv_search_modf=no
19179fi
19180rm conftest.$ac_ext
19181LIBS=$ac_func_search_save_LIBS
19182fi
19183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_modf" >&5
19184$as_echo "$ac_cv_search_modf" >&6; }
19185ac_res=$ac_cv_search_modf
19186if test "$ac_res" != no; then :
19187  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19188
19189fi
19190
19191       ;;
19192esac
19193
19194echo "${nl}Checking for Threads..."
19195
19196if test -z "$enable_threads"; then
19197	# Check whether --enable-threads was given.
19198if test "${enable_threads+set}" = set; then :
19199  enableval=$enable_threads;  enable_threads=$enableval
19200else
19201
19202  if test "$GCC" = "yes"; then
19203    SAVE_FL="$CPPFLAGS"
19204    CPPFLAGS="$CPPFLAGS -w"
19205    for ac_header in pthread.h
19206do :
19207  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19208if test "x$ac_cv_header_pthread_h" = xyes; then :
19209  cat >>confdefs.h <<_ACEOF
19210#define HAVE_PTHREAD_H 1
19211_ACEOF
19212   enable_threads="pthread"
19213else
19214    enable_threads="no"
19215fi
19216
19217done
19218
19219    CPPFLAGS="$SAVE_FL"
19220  else
19221    for ac_header in pthread.h
19222do :
19223  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19224if test "x$ac_cv_header_pthread_h" = xyes; then :
19225  cat >>confdefs.h <<_ACEOF
19226#define HAVE_PTHREAD_H 1
19227_ACEOF
19228   enable_threads="pthread"
19229else
19230    enable_threads="no"
19231fi
19232
19233done
19234
19235  fi
19236
19237fi
19238
19239fi
19240
19241if test "$enable_threads" = "no"; then
19242    threads="0"
19243    pthreadh="0"
19244    pthreadser="0"
19245else
19246    if test "$enable_threads" = "pthread"; then
19247# We have specified pthreads for our threading library, just make sure
19248# that we have everything we need
19249
19250  apr_pthsv_CFLAGS="$CFLAGS"
19251  apr_pthsv_LIBS="$LIBS"
19252
19253
19254
19255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5
19256$as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
19257if ${apr_cv_pthreads_cflags+:} false; then :
19258  $as_echo_n "(cached) " >&6
19259else
19260  apr_ptc_cflags=$CFLAGS
19261 for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
19262    CFLAGS=$apr_ptc_cflags
19263    test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
19264
19265if test "$cross_compiling" = yes; then :
19266  apr_p_t_r=no
19267else
19268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19269/* end confdefs.h.  */
19270
19271#include <pthread.h>
19272#include <stddef.h>
19273
19274void *thread_routine(void *data) {
19275    return data;
19276}
19277
19278int main() {
19279    pthread_t thd;
19280    pthread_mutexattr_t mattr;
19281    pthread_once_t once_init = PTHREAD_ONCE_INIT;
19282    int data = 1;
19283    pthread_mutexattr_init(&mattr);
19284    return pthread_create(&thd, NULL, thread_routine, &data);
19285}
19286_ACEOF
19287if ac_fn_c_try_run "$LINENO"; then :
19288  apr_p_t_r=yes
19289else
19290  apr_p_t_r=no
19291fi
19292rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19293  conftest.$ac_objext conftest.beam conftest.$ac_ext
19294fi
19295
19296
19297if test $apr_p_t_r = yes; then
19298
19299      apr_cv_pthreads_cflags="$flag"
19300      break
19301
19302fi
19303
19304
19305 done
19306 CFLAGS=$apr_ptc_cflags
19307
19308fi
19309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5
19310$as_echo "$apr_cv_pthreads_cflags" >&6; }
19311
19312if test -n "$apr_cv_pthreads_cflags"; then
19313   pthreads_working=yes
19314   if test "x$apr_cv_pthreads_cflags" != "xnone"; then
19315
19316  if test "x$CFLAGS" = "x"; then
19317    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"$apr_cv_pthreads_cflags\""
19318    CFLAGS="$apr_cv_pthreads_cflags"
19319  else
19320    apr_addto_bugger="$apr_cv_pthreads_cflags"
19321    for i in $apr_addto_bugger; do
19322      apr_addto_duplicate="0"
19323      for j in $CFLAGS; do
19324        if test "x$i" = "x$j"; then
19325          apr_addto_duplicate="1"
19326          break
19327        fi
19328      done
19329      if test $apr_addto_duplicate = "0"; then
19330        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
19331        CFLAGS="$CFLAGS $i"
19332      fi
19333    done
19334  fi
19335
19336   fi
19337fi
19338
19339# The CFLAGS may or may not be sufficient to ensure that libapr
19340# depends on the pthreads library: some versions of libtool
19341# drop -pthread when passed on the link line; some versions of
19342# gcc ignore -pthread when linking a shared object.  So always
19343# try and add the relevant library to LIBS too.
19344
19345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5
19346$as_echo_n "checking for LIBS needed for pthreads... " >&6; }
19347if ${apr_cv_pthreads_lib+:} false; then :
19348  $as_echo_n "(cached) " >&6
19349else
19350
19351  apr_ptc_libs=$LIBS
19352  for lib in -lpthread -lpthreads -lc_r; do
19353    LIBS="$apr_ptc_libs $lib"
19354
19355if test "$cross_compiling" = yes; then :
19356  apr_p_t_r=no
19357else
19358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19359/* end confdefs.h.  */
19360
19361#include <pthread.h>
19362#include <stddef.h>
19363
19364void *thread_routine(void *data) {
19365    return data;
19366}
19367
19368int main() {
19369    pthread_t thd;
19370    pthread_mutexattr_t mattr;
19371    pthread_once_t once_init = PTHREAD_ONCE_INIT;
19372    int data = 1;
19373    pthread_mutexattr_init(&mattr);
19374    return pthread_create(&thd, NULL, thread_routine, &data);
19375}
19376_ACEOF
19377if ac_fn_c_try_run "$LINENO"; then :
19378  apr_p_t_r=yes
19379else
19380  apr_p_t_r=no
19381fi
19382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19383  conftest.$ac_objext conftest.beam conftest.$ac_ext
19384fi
19385
19386
19387if test $apr_p_t_r = yes; then
19388
19389      apr_cv_pthreads_lib=$lib
19390      break
19391
19392fi
19393
19394
19395  done
19396  LIBS=$apr_ptc_libs
19397
19398fi
19399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5
19400$as_echo "$apr_cv_pthreads_lib" >&6; }
19401
19402if test -n "$apr_cv_pthreads_lib"; then
19403   pthreads_working=yes
19404
19405  if test "x$LIBS" = "x"; then
19406    test "x$silent" != "xyes" && echo "  setting LIBS to \"$apr_cv_pthreads_lib\""
19407    LIBS="$apr_cv_pthreads_lib"
19408  else
19409    apr_addto_bugger="$apr_cv_pthreads_lib"
19410    for i in $apr_addto_bugger; do
19411      apr_addto_duplicate="0"
19412      for j in $LIBS; do
19413        if test "x$i" = "x$j"; then
19414          apr_addto_duplicate="1"
19415          break
19416        fi
19417      done
19418      if test $apr_addto_duplicate = "0"; then
19419        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
19420        LIBS="$LIBS $i"
19421      fi
19422    done
19423  fi
19424
19425fi
19426
19427if test "$pthreads_working" = "yes"; then
19428  threads_result="POSIX Threads found"
19429else
19430  threads_result="POSIX Threads not found"
19431fi
19432
19433
19434  if test "$GCC" = "yes"; then
19435    SAVE_FL="$CPPFLAGS"
19436    CPPFLAGS="$CPPFLAGS -w"
19437    for ac_header in pthread.h
19438do :
19439  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19440if test "x$ac_cv_header_pthread_h" = xyes; then :
19441  cat >>confdefs.h <<_ACEOF
19442#define HAVE_PTHREAD_H 1
19443_ACEOF
19444
19445          threads="1"
19446          pthreadh="1"
19447          pthreadser="1"
19448else
19449
19450          threads="0"
19451          pthreadh="0"
19452          pthreadser="0"
19453
19454  CFLAGS="$apr_pthsv_CFLAGS"
19455  LIBS="$apr_pthsv_LIBS"
19456
19457fi
19458
19459done
19460
19461    CPPFLAGS="$SAVE_FL"
19462  else
19463    for ac_header in pthread.h
19464do :
19465  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19466if test "x$ac_cv_header_pthread_h" = xyes; then :
19467  cat >>confdefs.h <<_ACEOF
19468#define HAVE_PTHREAD_H 1
19469_ACEOF
19470
19471          threads="1"
19472          pthreadh="1"
19473          pthreadser="1"
19474else
19475
19476          threads="0"
19477          pthreadh="0"
19478          pthreadser="0"
19479
19480  CFLAGS="$apr_pthsv_CFLAGS"
19481  LIBS="$apr_pthsv_LIBS"
19482
19483fi
19484
19485done
19486
19487  fi
19488
19489    elif test "$enable_threads" = "system_threads"; then
19490        threads="1"
19491        pthreadh="0"
19492        pthreadser="0"
19493    else
19494# We basically specified that we wanted threads, but not how to implement
19495# them.  In this case, just look for pthreads.  In the future, we can check
19496# for other threading libraries as well.
19497
19498  apr_pthsv_CFLAGS="$CFLAGS"
19499  apr_pthsv_LIBS="$LIBS"
19500
19501
19502
19503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5
19504$as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
19505if ${apr_cv_pthreads_cflags+:} false; then :
19506  $as_echo_n "(cached) " >&6
19507else
19508  apr_ptc_cflags=$CFLAGS
19509 for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
19510    CFLAGS=$apr_ptc_cflags
19511    test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
19512
19513if test "$cross_compiling" = yes; then :
19514  apr_p_t_r=no
19515else
19516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19517/* end confdefs.h.  */
19518
19519#include <pthread.h>
19520#include <stddef.h>
19521
19522void *thread_routine(void *data) {
19523    return data;
19524}
19525
19526int main() {
19527    pthread_t thd;
19528    pthread_mutexattr_t mattr;
19529    pthread_once_t once_init = PTHREAD_ONCE_INIT;
19530    int data = 1;
19531    pthread_mutexattr_init(&mattr);
19532    return pthread_create(&thd, NULL, thread_routine, &data);
19533}
19534_ACEOF
19535if ac_fn_c_try_run "$LINENO"; then :
19536  apr_p_t_r=yes
19537else
19538  apr_p_t_r=no
19539fi
19540rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19541  conftest.$ac_objext conftest.beam conftest.$ac_ext
19542fi
19543
19544
19545if test $apr_p_t_r = yes; then
19546
19547      apr_cv_pthreads_cflags="$flag"
19548      break
19549
19550fi
19551
19552
19553 done
19554 CFLAGS=$apr_ptc_cflags
19555
19556fi
19557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5
19558$as_echo "$apr_cv_pthreads_cflags" >&6; }
19559
19560if test -n "$apr_cv_pthreads_cflags"; then
19561   pthreads_working=yes
19562   if test "x$apr_cv_pthreads_cflags" != "xnone"; then
19563
19564  if test "x$CFLAGS" = "x"; then
19565    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"$apr_cv_pthreads_cflags\""
19566    CFLAGS="$apr_cv_pthreads_cflags"
19567  else
19568    apr_addto_bugger="$apr_cv_pthreads_cflags"
19569    for i in $apr_addto_bugger; do
19570      apr_addto_duplicate="0"
19571      for j in $CFLAGS; do
19572        if test "x$i" = "x$j"; then
19573          apr_addto_duplicate="1"
19574          break
19575        fi
19576      done
19577      if test $apr_addto_duplicate = "0"; then
19578        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
19579        CFLAGS="$CFLAGS $i"
19580      fi
19581    done
19582  fi
19583
19584   fi
19585fi
19586
19587# The CFLAGS may or may not be sufficient to ensure that libapr
19588# depends on the pthreads library: some versions of libtool
19589# drop -pthread when passed on the link line; some versions of
19590# gcc ignore -pthread when linking a shared object.  So always
19591# try and add the relevant library to LIBS too.
19592
19593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5
19594$as_echo_n "checking for LIBS needed for pthreads... " >&6; }
19595if ${apr_cv_pthreads_lib+:} false; then :
19596  $as_echo_n "(cached) " >&6
19597else
19598
19599  apr_ptc_libs=$LIBS
19600  for lib in -lpthread -lpthreads -lc_r; do
19601    LIBS="$apr_ptc_libs $lib"
19602
19603if test "$cross_compiling" = yes; then :
19604  apr_p_t_r=no
19605else
19606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19607/* end confdefs.h.  */
19608
19609#include <pthread.h>
19610#include <stddef.h>
19611
19612void *thread_routine(void *data) {
19613    return data;
19614}
19615
19616int main() {
19617    pthread_t thd;
19618    pthread_mutexattr_t mattr;
19619    pthread_once_t once_init = PTHREAD_ONCE_INIT;
19620    int data = 1;
19621    pthread_mutexattr_init(&mattr);
19622    return pthread_create(&thd, NULL, thread_routine, &data);
19623}
19624_ACEOF
19625if ac_fn_c_try_run "$LINENO"; then :
19626  apr_p_t_r=yes
19627else
19628  apr_p_t_r=no
19629fi
19630rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19631  conftest.$ac_objext conftest.beam conftest.$ac_ext
19632fi
19633
19634
19635if test $apr_p_t_r = yes; then
19636
19637      apr_cv_pthreads_lib=$lib
19638      break
19639
19640fi
19641
19642
19643  done
19644  LIBS=$apr_ptc_libs
19645
19646fi
19647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5
19648$as_echo "$apr_cv_pthreads_lib" >&6; }
19649
19650if test -n "$apr_cv_pthreads_lib"; then
19651   pthreads_working=yes
19652
19653  if test "x$LIBS" = "x"; then
19654    test "x$silent" != "xyes" && echo "  setting LIBS to \"$apr_cv_pthreads_lib\""
19655    LIBS="$apr_cv_pthreads_lib"
19656  else
19657    apr_addto_bugger="$apr_cv_pthreads_lib"
19658    for i in $apr_addto_bugger; do
19659      apr_addto_duplicate="0"
19660      for j in $LIBS; do
19661        if test "x$i" = "x$j"; then
19662          apr_addto_duplicate="1"
19663          break
19664        fi
19665      done
19666      if test $apr_addto_duplicate = "0"; then
19667        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
19668        LIBS="$LIBS $i"
19669      fi
19670    done
19671  fi
19672
19673fi
19674
19675if test "$pthreads_working" = "yes"; then
19676  threads_result="POSIX Threads found"
19677else
19678  threads_result="POSIX Threads not found"
19679fi
19680
19681
19682  if test "$GCC" = "yes"; then
19683    SAVE_FL="$CPPFLAGS"
19684    CPPFLAGS="$CPPFLAGS -w"
19685    for ac_header in pthread.h
19686do :
19687  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19688if test "x$ac_cv_header_pthread_h" = xyes; then :
19689  cat >>confdefs.h <<_ACEOF
19690#define HAVE_PTHREAD_H 1
19691_ACEOF
19692
19693          threads="1"
19694          pthreadh="1"
19695          pthreadser="1"
19696else
19697
19698          threads="0"
19699          pthreadser="0"
19700          pthreadh="0"
19701
19702  CFLAGS="$apr_pthsv_CFLAGS"
19703  LIBS="$apr_pthsv_LIBS"
19704
19705fi
19706
19707done
19708
19709    CPPFLAGS="$SAVE_FL"
19710  else
19711    for ac_header in pthread.h
19712do :
19713  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19714if test "x$ac_cv_header_pthread_h" = xyes; then :
19715  cat >>confdefs.h <<_ACEOF
19716#define HAVE_PTHREAD_H 1
19717_ACEOF
19718
19719          threads="1"
19720          pthreadh="1"
19721          pthreadser="1"
19722else
19723
19724          threads="0"
19725          pthreadser="0"
19726          pthreadh="0"
19727
19728  CFLAGS="$apr_pthsv_CFLAGS"
19729  LIBS="$apr_pthsv_LIBS"
19730
19731fi
19732
19733done
19734
19735  fi
19736
19737    fi
19738    if test "$pthreadh" = "1"; then
19739
19740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_getspecific takes two arguments" >&5
19741$as_echo_n "checking whether pthread_getspecific takes two arguments... " >&6; }
19742if ${ac_cv_pthread_getspecific_two_args+:} false; then :
19743  $as_echo_n "(cached) " >&6
19744else
19745
19746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19747/* end confdefs.h.  */
19748
19749#include <pthread.h>
19750
19751int
19752main ()
19753{
19754
19755pthread_key_t key;
19756void *tmp;
19757pthread_getspecific(key,&tmp);
19758
19759  ;
19760  return 0;
19761}
19762_ACEOF
19763if ac_fn_c_try_compile "$LINENO"; then :
19764
19765    ac_cv_pthread_getspecific_two_args=yes
19766
19767else
19768
19769    ac_cv_pthread_getspecific_two_args=no
19770
19771fi
19772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19773
19774fi
19775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_getspecific_two_args" >&5
19776$as_echo "$ac_cv_pthread_getspecific_two_args" >&6; }
19777
19778if test "$ac_cv_pthread_getspecific_two_args" = "yes"; then
19779
19780$as_echo "#define PTHREAD_GETSPECIFIC_TAKES_TWO_ARGS 1" >>confdefs.h
19781
19782fi
19783
19784
19785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_attr_getdetachstate takes one argument" >&5
19786$as_echo_n "checking whether pthread_attr_getdetachstate takes one argument... " >&6; }
19787if ${ac_cv_pthread_attr_getdetachstate_one_arg+:} false; then :
19788  $as_echo_n "(cached) " >&6
19789else
19790
19791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19792/* end confdefs.h.  */
19793
19794#include <pthread.h>
19795
19796int
19797main ()
19798{
19799
19800pthread_attr_t *attr;
19801pthread_attr_getdetachstate(attr);
19802
19803  ;
19804  return 0;
19805}
19806_ACEOF
19807if ac_fn_c_try_compile "$LINENO"; then :
19808
19809    ac_cv_pthread_attr_getdetachstate_one_arg=yes
19810
19811else
19812
19813    ac_cv_pthread_attr_getdetachstate_one_arg=no
19814
19815fi
19816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19817
19818fi
19819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_attr_getdetachstate_one_arg" >&5
19820$as_echo "$ac_cv_pthread_attr_getdetachstate_one_arg" >&6; }
19821
19822if test "$ac_cv_pthread_attr_getdetachstate_one_arg" = "yes"; then
19823
19824$as_echo "#define PTHREAD_ATTR_GETDETACHSTATE_TAKES_ONE_ARG 1" >>confdefs.h
19825
19826fi
19827
19828
19829  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutex support" >&5
19830$as_echo_n "checking for recursive mutex support... " >&6; }
19831if ${apr_cv_mutex_recursive+:} false; then :
19832  $as_echo_n "(cached) " >&6
19833else
19834  if test "$cross_compiling" = yes; then :
19835  apr_cv_mutex_recursive=no
19836else
19837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19838/* end confdefs.h.  */
19839#include <sys/types.h>
19840#include <pthread.h>
19841#include <stdlib.h>
19842
19843int main() {
19844    pthread_mutexattr_t attr;
19845    pthread_mutex_t m;
19846
19847    exit (pthread_mutexattr_init(&attr)
19848          || pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
19849          || pthread_mutex_init(&m, &attr));
19850}
19851_ACEOF
19852if ac_fn_c_try_run "$LINENO"; then :
19853  apr_cv_mutex_recursive=yes
19854else
19855  apr_cv_mutex_recursive=no
19856fi
19857rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19858  conftest.$ac_objext conftest.beam conftest.$ac_ext
19859fi
19860
19861fi
19862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_recursive" >&5
19863$as_echo "$apr_cv_mutex_recursive" >&6; }
19864
19865if test "$apr_cv_mutex_recursive" = "yes"; then
19866
19867$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
19868
19869fi
19870
19871        for ac_func in pthread_key_delete pthread_rwlock_init \
19872                        pthread_attr_setguardsize pthread_yield
19873do :
19874  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19875ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19876if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19877  cat >>confdefs.h <<_ACEOF
19878#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19879_ACEOF
19880
19881fi
19882done
19883
19884
19885        if test "$ac_cv_func_pthread_rwlock_init" = "yes"; then
19886                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_t" >&5
19887$as_echo_n "checking for pthread_rwlock_t... " >&6; }
19888if ${apr_cv_type_rwlock_t+:} false; then :
19889  $as_echo_n "(cached) " >&6
19890else
19891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19892/* end confdefs.h.  */
19893#include <sys/types.h>
19894#include <pthread.h>
19895int
19896main ()
19897{
19898pthread_rwlock_t *rwlock;
19899  ;
19900  return 0;
19901}
19902_ACEOF
19903if ac_fn_c_try_compile "$LINENO"; then :
19904  apr_cv_type_rwlock_t=yes
19905else
19906  apr_cv_type_rwlock_t=no
19907fi
19908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19909fi
19910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_type_rwlock_t" >&5
19911$as_echo "$apr_cv_type_rwlock_t" >&6; }
19912            if test "$apr_cv_type_rwlock_t" = "yes"; then
19913
19914$as_echo "#define HAVE_PTHREAD_RWLOCKS 1" >>confdefs.h
19915
19916            fi
19917        fi
19918
19919        if test "$ac_cv_func_pthread_yield" = "no"; then
19920                        for ac_header in sched.h
19921do :
19922  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19923if test "x$ac_cv_header_sched_h" = xyes; then :
19924  cat >>confdefs.h <<_ACEOF
19925#define HAVE_SCHED_H 1
19926_ACEOF
19927
19928fi
19929
19930done
19931
19932            for ac_func in sched_yield
19933do :
19934  ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
19935if test "x$ac_cv_func_sched_yield" = xyes; then :
19936  cat >>confdefs.h <<_ACEOF
19937#define HAVE_SCHED_YIELD 1
19938_ACEOF
19939
19940fi
19941done
19942
19943        fi
19944    fi
19945fi
19946
19947ac_cv_define_READDIR_IS_THREAD_SAFE=no
19948ac_cv_define_GETHOSTBYNAME_IS_THREAD_SAFE=no
19949ac_cv_define_GETHOSTBYADDR_IS_THREAD_SAFE=no
19950ac_cv_define_GETSERVBYNAME_IS_THREAD_SAFE=no
19951if test "$threads" = "1"; then
19952    echo "APR will use threads"
19953    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readdir in -lc_r" >&5
19954$as_echo_n "checking for readdir in -lc_r... " >&6; }
19955if ${ac_cv_lib_c_r_readdir+:} false; then :
19956  $as_echo_n "(cached) " >&6
19957else
19958  ac_check_lib_save_LIBS=$LIBS
19959LIBS="-lc_r  $LIBS"
19960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19961/* end confdefs.h.  */
19962
19963/* Override any GCC internal prototype to avoid an error.
19964   Use char because int might match the return type of a GCC
19965   builtin and then its argument prototype would still apply.  */
19966#ifdef __cplusplus
19967extern "C"
19968#endif
19969char readdir ();
19970int
19971main ()
19972{
19973return readdir ();
19974  ;
19975  return 0;
19976}
19977_ACEOF
19978if ac_fn_c_try_link "$LINENO"; then :
19979  ac_cv_lib_c_r_readdir=yes
19980else
19981  ac_cv_lib_c_r_readdir=no
19982fi
19983rm -f core conftest.err conftest.$ac_objext \
19984    conftest$ac_exeext conftest.$ac_ext
19985LIBS=$ac_check_lib_save_LIBS
19986fi
19987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_readdir" >&5
19988$as_echo "$ac_cv_lib_c_r_readdir" >&6; }
19989if test "x$ac_cv_lib_c_r_readdir" = xyes; then :
19990
19991$as_echo "#define READDIR_IS_THREAD_SAFE 1" >>confdefs.h
19992
19993fi
19994
19995    if test "x$apr_gethostbyname_is_thread_safe" = "x"; then
19996        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lc_r" >&5
19997$as_echo_n "checking for gethostbyname in -lc_r... " >&6; }
19998if ${ac_cv_lib_c_r_gethostbyname+:} false; then :
19999  $as_echo_n "(cached) " >&6
20000else
20001  ac_check_lib_save_LIBS=$LIBS
20002LIBS="-lc_r  $LIBS"
20003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20004/* end confdefs.h.  */
20005
20006/* Override any GCC internal prototype to avoid an error.
20007   Use char because int might match the return type of a GCC
20008   builtin and then its argument prototype would still apply.  */
20009#ifdef __cplusplus
20010extern "C"
20011#endif
20012char gethostbyname ();
20013int
20014main ()
20015{
20016return gethostbyname ();
20017  ;
20018  return 0;
20019}
20020_ACEOF
20021if ac_fn_c_try_link "$LINENO"; then :
20022  ac_cv_lib_c_r_gethostbyname=yes
20023else
20024  ac_cv_lib_c_r_gethostbyname=no
20025fi
20026rm -f core conftest.err conftest.$ac_objext \
20027    conftest$ac_exeext conftest.$ac_ext
20028LIBS=$ac_check_lib_save_LIBS
20029fi
20030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyname" >&5
20031$as_echo "$ac_cv_lib_c_r_gethostbyname" >&6; }
20032if test "x$ac_cv_lib_c_r_gethostbyname" = xyes; then :
20033  apr_gethostbyname_is_thread_safe=yes
20034fi
20035
20036    fi
20037    if test "$apr_gethostbyname_is_thread_safe" = "yes"; then
20038
20039$as_echo "#define GETHOSTBYNAME_IS_THREAD_SAFE 1" >>confdefs.h
20040
20041    fi
20042    if test "x$apr_gethostbyaddr_is_thread_safe" = "x"; then
20043        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lc_r" >&5
20044$as_echo_n "checking for gethostbyaddr in -lc_r... " >&6; }
20045if ${ac_cv_lib_c_r_gethostbyaddr+:} false; then :
20046  $as_echo_n "(cached) " >&6
20047else
20048  ac_check_lib_save_LIBS=$LIBS
20049LIBS="-lc_r  $LIBS"
20050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20051/* end confdefs.h.  */
20052
20053/* Override any GCC internal prototype to avoid an error.
20054   Use char because int might match the return type of a GCC
20055   builtin and then its argument prototype would still apply.  */
20056#ifdef __cplusplus
20057extern "C"
20058#endif
20059char gethostbyaddr ();
20060int
20061main ()
20062{
20063return gethostbyaddr ();
20064  ;
20065  return 0;
20066}
20067_ACEOF
20068if ac_fn_c_try_link "$LINENO"; then :
20069  ac_cv_lib_c_r_gethostbyaddr=yes
20070else
20071  ac_cv_lib_c_r_gethostbyaddr=no
20072fi
20073rm -f core conftest.err conftest.$ac_objext \
20074    conftest$ac_exeext conftest.$ac_ext
20075LIBS=$ac_check_lib_save_LIBS
20076fi
20077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyaddr" >&5
20078$as_echo "$ac_cv_lib_c_r_gethostbyaddr" >&6; }
20079if test "x$ac_cv_lib_c_r_gethostbyaddr" = xyes; then :
20080  apr_gethostbyaddr_is_thread_safe=yes
20081fi
20082
20083    fi
20084    if test "$apr_gethostbyaddr_is_thread_safe" = "yes"; then
20085
20086$as_echo "#define GETHOSTBYADDR_IS_THREAD_SAFE 1" >>confdefs.h
20087
20088    fi
20089    if test "x$apr_getservbyname_is_thread_safe" = "x"; then
20090        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in -lc_r" >&5
20091$as_echo_n "checking for getservbyname in -lc_r... " >&6; }
20092if ${ac_cv_lib_c_r_getservbyname+:} false; then :
20093  $as_echo_n "(cached) " >&6
20094else
20095  ac_check_lib_save_LIBS=$LIBS
20096LIBS="-lc_r  $LIBS"
20097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20098/* end confdefs.h.  */
20099
20100/* Override any GCC internal prototype to avoid an error.
20101   Use char because int might match the return type of a GCC
20102   builtin and then its argument prototype would still apply.  */
20103#ifdef __cplusplus
20104extern "C"
20105#endif
20106char getservbyname ();
20107int
20108main ()
20109{
20110return getservbyname ();
20111  ;
20112  return 0;
20113}
20114_ACEOF
20115if ac_fn_c_try_link "$LINENO"; then :
20116  ac_cv_lib_c_r_getservbyname=yes
20117else
20118  ac_cv_lib_c_r_getservbyname=no
20119fi
20120rm -f core conftest.err conftest.$ac_objext \
20121    conftest$ac_exeext conftest.$ac_ext
20122LIBS=$ac_check_lib_save_LIBS
20123fi
20124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_getservbyname" >&5
20125$as_echo "$ac_cv_lib_c_r_getservbyname" >&6; }
20126if test "x$ac_cv_lib_c_r_getservbyname" = xyes; then :
20127  apr_getservbyname_is_thread_safe=yes
20128fi
20129
20130    fi
20131    if test "$apr_getservbyname_is_thread_safe" = "yes"; then
20132
20133$as_echo "#define GETSERVBYNAME_IS_THREAD_SAFE 1" >>confdefs.h
20134
20135    fi
20136    for ac_func in gethostbyname_r gethostbyaddr_r getservbyname_r
20137do :
20138  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20139ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20140if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20141  cat >>confdefs.h <<_ACEOF
20142#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20143_ACEOF
20144
20145fi
20146done
20147
20148else
20149    echo "APR will be non-threaded"
20150fi
20151
20152
20153# Check whether --with-efence was given.
20154if test "${with_efence+set}" = set; then :
20155  withval=$with_efence;  apr_efence_dir="$withval"
20156    if test "$apr_efence_dir" != "yes"; then
20157
20158  if test "x$LDFLAGS" = "x"; then
20159    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L$apr_efence_dir/lib\""
20160    LDFLAGS="-L$apr_efence_dir/lib"
20161  else
20162    apr_addto_bugger="-L$apr_efence_dir/lib"
20163    for i in $apr_addto_bugger; do
20164      apr_addto_duplicate="0"
20165      for j in $LDFLAGS; do
20166        if test "x$i" = "x$j"; then
20167          apr_addto_duplicate="1"
20168          break
20169        fi
20170      done
20171      if test $apr_addto_duplicate = "0"; then
20172        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
20173        LDFLAGS="$LDFLAGS $i"
20174      fi
20175    done
20176  fi
20177
20178      if test "x$apr_platform_runtime_link_flag" != "x"; then
20179
20180  if test "x$LDFLAGS" = "x"; then
20181    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$apr_platform_runtime_link_flag$apr_efence_dir/lib\""
20182    LDFLAGS="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
20183  else
20184    apr_addto_bugger="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
20185    for i in $apr_addto_bugger; do
20186      apr_addto_duplicate="0"
20187      for j in $LDFLAGS; do
20188        if test "x$i" = "x$j"; then
20189          apr_addto_duplicate="1"
20190          break
20191        fi
20192      done
20193      if test $apr_addto_duplicate = "0"; then
20194        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
20195        LDFLAGS="$LDFLAGS $i"
20196      fi
20197    done
20198  fi
20199
20200      fi
20201    fi
20202    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5
20203$as_echo_n "checking for malloc in -lefence... " >&6; }
20204if ${ac_cv_lib_efence_malloc+:} false; then :
20205  $as_echo_n "(cached) " >&6
20206else
20207  ac_check_lib_save_LIBS=$LIBS
20208LIBS="-lefence  $LIBS"
20209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20210/* end confdefs.h.  */
20211
20212/* Override any GCC internal prototype to avoid an error.
20213   Use char because int might match the return type of a GCC
20214   builtin and then its argument prototype would still apply.  */
20215#ifdef __cplusplus
20216extern "C"
20217#endif
20218char malloc ();
20219int
20220main ()
20221{
20222return malloc ();
20223  ;
20224  return 0;
20225}
20226_ACEOF
20227if ac_fn_c_try_link "$LINENO"; then :
20228  ac_cv_lib_efence_malloc=yes
20229else
20230  ac_cv_lib_efence_malloc=no
20231fi
20232rm -f core conftest.err conftest.$ac_objext \
20233    conftest$ac_exeext conftest.$ac_ext
20234LIBS=$ac_check_lib_save_LIBS
20235fi
20236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_malloc" >&5
20237$as_echo "$ac_cv_lib_efence_malloc" >&6; }
20238if test "x$ac_cv_lib_efence_malloc" = xyes; then :
20239
20240  if test "x$LIBS" = "x"; then
20241    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lefence\""
20242    LIBS="-lefence"
20243  else
20244    apr_addto_bugger="-lefence"
20245    for i in $apr_addto_bugger; do
20246      apr_addto_duplicate="0"
20247      for j in $LIBS; do
20248        if test "x$i" = "x$j"; then
20249          apr_addto_duplicate="1"
20250          break
20251        fi
20252      done
20253      if test $apr_addto_duplicate = "0"; then
20254        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
20255        LIBS="$LIBS $i"
20256      fi
20257    done
20258  fi
20259
20260else
20261   as_fn_error $? "Electric Fence requested but not detected" "$LINENO" 5
20262fi
20263
20264
20265fi
20266
20267
20268for ac_func in sigsuspend
20269do :
20270  ac_fn_c_check_func "$LINENO" "sigsuspend" "ac_cv_func_sigsuspend"
20271if test "x$ac_cv_func_sigsuspend" = xyes; then :
20272  cat >>confdefs.h <<_ACEOF
20273#define HAVE_SIGSUSPEND 1
20274_ACEOF
20275  have_sigsuspend="1"
20276else
20277   have_sigsuspend="0"
20278fi
20279done
20280
20281for ac_func in sigwait
20282do :
20283  ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
20284if test "x$ac_cv_func_sigwait" = xyes; then :
20285  cat >>confdefs.h <<_ACEOF
20286#define HAVE_SIGWAIT 1
20287_ACEOF
20288  have_sigwait="1"
20289else
20290   have_sigwait="0"
20291fi
20292done
20293
20294case $host in
20295    *alpha*-dec-osf* )
20296        have_sigwait="1"
20297        ;;
20298esac
20299
20300
20301
20302
20303
20304for ac_func in poll kqueue port_create
20305do :
20306  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20307ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20308if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20309  cat >>confdefs.h <<_ACEOF
20310#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20311_ACEOF
20312
20313fi
20314done
20315
20316
20317# Check for the Linux epoll interface; epoll* may be available in libc
20318# but return ENOSYS on a pre-2.6 kernel, so do a run-time check.
20319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support" >&5
20320$as_echo_n "checking for epoll support... " >&6; }
20321if ${apr_cv_epoll+:} false; then :
20322  $as_echo_n "(cached) " >&6
20323else
20324  if test "$cross_compiling" = yes; then :
20325  apr_cv_epoll=no
20326else
20327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20328/* end confdefs.h.  */
20329
20330#include <sys/epoll.h>
20331#include <unistd.h>
20332
20333int main()
20334{
20335    return epoll_create(5) == -1;
20336}
20337_ACEOF
20338if ac_fn_c_try_run "$LINENO"; then :
20339  apr_cv_epoll=yes
20340else
20341  apr_cv_epoll=no
20342fi
20343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20344  conftest.$ac_objext conftest.beam conftest.$ac_ext
20345fi
20346
20347fi
20348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll" >&5
20349$as_echo "$apr_cv_epoll" >&6; }
20350
20351if test "$apr_cv_epoll" = "yes"; then
20352
20353$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
20354
20355fi
20356
20357# test for epoll_create1
20358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5
20359$as_echo_n "checking for epoll_create1 support... " >&6; }
20360if ${apr_cv_epoll_create1+:} false; then :
20361  $as_echo_n "(cached) " >&6
20362else
20363  if test "$cross_compiling" = yes; then :
20364  apr_cv_epoll_create1=no
20365else
20366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20367/* end confdefs.h.  */
20368
20369#include <sys/epoll.h>
20370#include <unistd.h>
20371
20372int main()
20373{
20374    return epoll_create1(0) == -1;
20375}
20376_ACEOF
20377if ac_fn_c_try_run "$LINENO"; then :
20378  apr_cv_epoll_create1=yes
20379else
20380  apr_cv_epoll_create1=no
20381fi
20382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20383  conftest.$ac_objext conftest.beam conftest.$ac_ext
20384fi
20385
20386fi
20387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5
20388$as_echo "$apr_cv_epoll_create1" >&6; }
20389
20390if test "$apr_cv_epoll_create1" = "yes"; then
20391
20392$as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
20393
20394fi
20395
20396# test for dup3
20397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5
20398$as_echo_n "checking for dup3 support... " >&6; }
20399if ${apr_cv_dup3+:} false; then :
20400  $as_echo_n "(cached) " >&6
20401else
20402  if test "$cross_compiling" = yes; then :
20403  apr_cv_dup3=no
20404else
20405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20406/* end confdefs.h.  */
20407
20408#include <unistd.h>
20409
20410int main()
20411{
20412    return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
20413}
20414_ACEOF
20415if ac_fn_c_try_run "$LINENO"; then :
20416  apr_cv_dup3=yes
20417else
20418  apr_cv_dup3=no
20419fi
20420rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20421  conftest.$ac_objext conftest.beam conftest.$ac_ext
20422fi
20423
20424fi
20425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5
20426$as_echo "$apr_cv_dup3" >&6; }
20427
20428if test "$apr_cv_dup3" = "yes"; then
20429
20430$as_echo "#define HAVE_DUP3 1" >>confdefs.h
20431
20432fi
20433
20434# Test for accept4().  Create a non-blocking socket, bind it to
20435# an unspecified port & address (kernel picks), and attempt to
20436# call accept4() on it.  If the syscall is wired up (i.e. the
20437# kernel is new enough), it should return EAGAIN.
20438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5
20439$as_echo_n "checking for accept4 support... " >&6; }
20440if ${apr_cv_accept4+:} false; then :
20441  $as_echo_n "(cached) " >&6
20442else
20443  if test "$cross_compiling" = yes; then :
20444  apr_cv_accept4=no
20445else
20446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20447/* end confdefs.h.  */
20448
20449#include <sys/types.h>
20450#include <sys/socket.h>
20451#include <sys/wait.h>
20452#include <netinet/in.h>
20453#include <netinet/tcp.h>
20454#include <errno.h>
20455#include <string.h>
20456#include <unistd.h>
20457#include <fcntl.h>
20458
20459int main(int argc, char **argv)
20460{
20461    int fd, flags;
20462    struct sockaddr_in sin;
20463
20464    if ((fd = socket(AF_INET, SOCK_STREAM, 0)) == -1)
20465        return 1;
20466    flags = fcntl(fd, F_GETFL);
20467    if (flags == -1 || fcntl(fd, F_SETFL, flags|O_NONBLOCK) == -1)
20468        return 5;
20469
20470    memset(&sin, 0, sizeof sin);
20471    sin.sin_family = AF_INET;
20472
20473    if (bind(fd, (struct sockaddr *) &sin, sizeof sin) == -1)
20474        return 2;
20475
20476    if (listen(fd, 5) == -1)
20477        return 3;
20478
20479    if (accept4(fd, NULL, 0, SOCK_NONBLOCK) == 0
20480        || errno == EAGAIN || errno == EWOULDBLOCK)
20481        return 0;
20482
20483    return 4;
20484}
20485_ACEOF
20486if ac_fn_c_try_run "$LINENO"; then :
20487  apr_cv_accept4=yes
20488else
20489  apr_cv_accept4=no
20490fi
20491rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20492  conftest.$ac_objext conftest.beam conftest.$ac_ext
20493fi
20494
20495fi
20496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5
20497$as_echo "$apr_cv_accept4" >&6; }
20498
20499if test "$apr_cv_accept4" = "yes"; then
20500
20501$as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
20502
20503fi
20504
20505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5
20506$as_echo_n "checking for SOCK_CLOEXEC support... " >&6; }
20507if ${apr_cv_sock_cloexec+:} false; then :
20508  $as_echo_n "(cached) " >&6
20509else
20510  if test "$cross_compiling" = yes; then :
20511  apr_cv_sock_cloexec=no
20512else
20513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20514/* end confdefs.h.  */
20515
20516#include <sys/types.h>
20517#include <sys/socket.h>
20518
20519int main()
20520{
20521    return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
20522}
20523_ACEOF
20524if ac_fn_c_try_run "$LINENO"; then :
20525  apr_cv_sock_cloexec=yes
20526else
20527  apr_cv_sock_cloexec=no
20528fi
20529rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20530  conftest.$ac_objext conftest.beam conftest.$ac_ext
20531fi
20532
20533fi
20534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5
20535$as_echo "$apr_cv_sock_cloexec" >&6; }
20536
20537if test "$apr_cv_sock_cloexec" = "yes"; then
20538
20539$as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
20540
20541fi
20542
20543for ac_func in fdatasync
20544do :
20545  ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
20546if test "x$ac_cv_func_fdatasync" = xyes; then :
20547  cat >>confdefs.h <<_ACEOF
20548#define HAVE_FDATASYNC 1
20549_ACEOF
20550
20551fi
20552done
20553
20554
20555# test for epoll_create1
20556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5
20557$as_echo_n "checking for epoll_create1 support... " >&6; }
20558if ${apr_cv_epoll_create1+:} false; then :
20559  $as_echo_n "(cached) " >&6
20560else
20561  if test "$cross_compiling" = yes; then :
20562  apr_cv_epoll_create1=no
20563else
20564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20565/* end confdefs.h.  */
20566
20567#include <sys/epoll.h>
20568#include <unistd.h>
20569
20570int main()
20571{
20572    return epoll_create1(0) == -1;
20573}
20574_ACEOF
20575if ac_fn_c_try_run "$LINENO"; then :
20576  apr_cv_epoll_create1=yes
20577else
20578  apr_cv_epoll_create1=no
20579fi
20580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20581  conftest.$ac_objext conftest.beam conftest.$ac_ext
20582fi
20583
20584fi
20585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5
20586$as_echo "$apr_cv_epoll_create1" >&6; }
20587
20588if test "$apr_cv_epoll_create1" = "yes"; then
20589
20590$as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
20591
20592fi
20593
20594# Check for z/OS async i/o support.
20595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asio -> message queue support" >&5
20596$as_echo_n "checking for asio -> message queue support... " >&6; }
20597if ${apr_cv_aio_msgq+:} false; then :
20598  $as_echo_n "(cached) " >&6
20599else
20600  if test "$cross_compiling" = yes; then :
20601  apr_cv_aio_msgq=no
20602else
20603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20604/* end confdefs.h.  */
20605
20606#define _AIO_OS390
20607#include <aio.h>
20608
20609int main()
20610{
20611    struct aiocb a;
20612
20613    a.aio_notifytype = AIO_MSGQ;  /* use IPC message queue for notification */
20614
20615    return aio_cancel(2, NULL) == -1;
20616}
20617_ACEOF
20618if ac_fn_c_try_run "$LINENO"; then :
20619  apr_cv_aio_msgq=yes
20620else
20621  apr_cv_aio_msgq=no
20622fi
20623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20624  conftest.$ac_objext conftest.beam conftest.$ac_ext
20625fi
20626
20627fi
20628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_aio_msgq" >&5
20629$as_echo "$apr_cv_aio_msgq" >&6; }
20630
20631if test "$apr_cv_aio_msgq" = "yes"; then
20632
20633$as_echo "#define HAVE_AIO_MSGQ 1" >>confdefs.h
20634
20635fi
20636
20637# test for dup3
20638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5
20639$as_echo_n "checking for dup3 support... " >&6; }
20640if ${apr_cv_dup3+:} false; then :
20641  $as_echo_n "(cached) " >&6
20642else
20643  if test "$cross_compiling" = yes; then :
20644  apr_cv_dup3=no
20645else
20646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20647/* end confdefs.h.  */
20648
20649#include <unistd.h>
20650
20651int main()
20652{
20653    return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
20654}
20655_ACEOF
20656if ac_fn_c_try_run "$LINENO"; then :
20657  apr_cv_dup3=yes
20658else
20659  apr_cv_dup3=no
20660fi
20661rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20662  conftest.$ac_objext conftest.beam conftest.$ac_ext
20663fi
20664
20665fi
20666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5
20667$as_echo "$apr_cv_dup3" >&6; }
20668
20669if test "$apr_cv_dup3" = "yes"; then
20670
20671$as_echo "#define HAVE_DUP3 1" >>confdefs.h
20672
20673fi
20674
20675# test for accept4
20676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5
20677$as_echo_n "checking for accept4 support... " >&6; }
20678if ${apr_cv_accept4+:} false; then :
20679  $as_echo_n "(cached) " >&6
20680else
20681  if test "$cross_compiling" = yes; then :
20682  apr_cv_accept4=no
20683else
20684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20685/* end confdefs.h.  */
20686
20687#include <unistd.h>
20688#include <sys/types.h>
20689#include <sys/socket.h>
20690#include <sys/un.h>
20691#include <sys/wait.h>
20692#include <signal.h>
20693#include <errno.h>
20694
20695#define A4_SOCK "./apr_accept4_test_socket"
20696
20697int main()
20698{
20699    pid_t pid;
20700    int fd;
20701    struct sockaddr_un loc, rem;
20702    socklen_t rem_sz;
20703
20704    if ((pid = fork())) {
20705        int status;
20706
20707        unlink(A4_SOCK);
20708
20709        if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
20710            goto cleanup_failure2;
20711
20712        loc.sun_family = AF_UNIX;
20713        strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
20714
20715        if (bind(fd, (struct sockaddr *) &loc,
20716                 sizeof(struct sockaddr_un)) == -1)
20717            goto cleanup_failure;
20718
20719        if (listen(fd, 5) == -1)
20720            goto cleanup_failure;
20721
20722        rem_sz = sizeof(struct sockaddr_un);
20723        if (accept4(fd, (struct sockaddr *) &rem, &rem_sz, 0) == -1) {
20724            goto cleanup_failure;
20725        }
20726        else {
20727            close(fd);
20728            waitpid(pid, &status, 0);
20729            unlink(A4_SOCK);
20730            return 0;
20731        }
20732
20733cleanup_failure:
20734        close(fd);
20735cleanup_failure2:
20736        kill(pid, SIGKILL);
20737        waitpid(pid, &status, 0);
20738        unlink(A4_SOCK);
20739        return 1;
20740    }
20741    else {
20742        if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
20743            return 1; /* this will be bad: we'll hang */
20744
20745        loc.sun_family = AF_UNIX;
20746        strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
20747
20748        while(connect(fd, (struct sockaddr *) &loc,
20749                      sizeof(struct sockaddr_un)) == -1 &&
20750              (errno==ENOENT || errno==ECONNREFUSED))
20751            ;
20752
20753        close(fd);
20754        return 0;
20755    }
20756}
20757_ACEOF
20758if ac_fn_c_try_run "$LINENO"; then :
20759  apr_cv_accept4=yes
20760else
20761  apr_cv_accept4=no
20762fi
20763rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20764  conftest.$ac_objext conftest.beam conftest.$ac_ext
20765fi
20766
20767fi
20768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5
20769$as_echo "$apr_cv_accept4" >&6; }
20770
20771if test "$apr_cv_accept4" = "yes"; then
20772
20773$as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
20774
20775fi
20776
20777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5
20778$as_echo_n "checking for SOCK_CLOEXEC support... " >&6; }
20779if ${apr_cv_sock_cloexec+:} false; then :
20780  $as_echo_n "(cached) " >&6
20781else
20782  if test "$cross_compiling" = yes; then :
20783  apr_cv_sock_cloexec=no
20784else
20785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20786/* end confdefs.h.  */
20787
20788#include <sys/types.h>
20789#include <sys/socket.h>
20790
20791int main()
20792{
20793    return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
20794}
20795_ACEOF
20796if ac_fn_c_try_run "$LINENO"; then :
20797  apr_cv_sock_cloexec=yes
20798else
20799  apr_cv_sock_cloexec=no
20800fi
20801rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20802  conftest.$ac_objext conftest.beam conftest.$ac_ext
20803fi
20804
20805fi
20806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5
20807$as_echo "$apr_cv_sock_cloexec" >&6; }
20808
20809if test "$apr_cv_sock_cloexec" = "yes"; then
20810
20811$as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
20812
20813fi
20814
20815for ac_func in getpwnam_r getpwuid_r getgrnam_r getgrgid_r
20816do :
20817  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20818ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20819if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20820  cat >>confdefs.h <<_ACEOF
20821#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20822_ACEOF
20823
20824fi
20825done
20826
20827
20828echo "${nl}Checking for Shared Memory Support..."
20829
20830# The real-time POSIX extensions (e.g. shm_*, sem_*) may only
20831# be available if linking against librt.
20832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
20833$as_echo_n "checking for library containing shm_open... " >&6; }
20834if ${ac_cv_search_shm_open+:} false; then :
20835  $as_echo_n "(cached) " >&6
20836else
20837  ac_func_search_save_LIBS=$LIBS
20838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20839/* end confdefs.h.  */
20840
20841/* Override any GCC internal prototype to avoid an error.
20842   Use char because int might match the return type of a GCC
20843   builtin and then its argument prototype would still apply.  */
20844#ifdef __cplusplus
20845extern "C"
20846#endif
20847char shm_open ();
20848int
20849main ()
20850{
20851return shm_open ();
20852  ;
20853  return 0;
20854}
20855_ACEOF
20856for ac_lib in '' rt; do
20857  if test -z "$ac_lib"; then
20858    ac_res="none required"
20859  else
20860    ac_res=-l$ac_lib
20861    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20862  fi
20863  if ac_fn_c_try_link "$LINENO"; then :
20864  ac_cv_search_shm_open=$ac_res
20865fi
20866rm -f core conftest.err conftest.$ac_objext \
20867    conftest$ac_exeext
20868  if ${ac_cv_search_shm_open+:} false; then :
20869  break
20870fi
20871done
20872if ${ac_cv_search_shm_open+:} false; then :
20873
20874else
20875  ac_cv_search_shm_open=no
20876fi
20877rm conftest.$ac_ext
20878LIBS=$ac_func_search_save_LIBS
20879fi
20880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
20881$as_echo "$ac_cv_search_shm_open" >&6; }
20882ac_res=$ac_cv_search_shm_open
20883if test "$ac_res" != no; then :
20884  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20885
20886fi
20887
20888
20889case $host in
20890 *-sysv*)
20891   ac_includes_default="$ac_includes_default
20892#if HAVE_SYS_MUTEX_H /* needed to define lock_t for sys/shm.h */
20893# include <sys/mutex.h>
20894#endif";;
20895esac
20896
20897for ac_header in sys/types.h sys/mman.h sys/ipc.h sys/mutex.h sys/shm.h sys/file.h kernel/OS.h os2.h windows.h
20898do :
20899  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20900ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20901if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20902  cat >>confdefs.h <<_ACEOF
20903#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20904_ACEOF
20905
20906fi
20907
20908done
20909
20910for ac_func in mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \
20911                create_area
20912do :
20913  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20914ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20915if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20916  cat >>confdefs.h <<_ACEOF
20917#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20918_ACEOF
20919
20920fi
20921done
20922
20923
20924
20925  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON in sys/mman.h" >&5
20926$as_echo_n "checking for MAP_ANON in sys/mman.h... " >&6; }
20927if ${ac_cv_define_MAP_ANON+:} false; then :
20928  $as_echo_n "(cached) " >&6
20929else
20930
20931    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20932/* end confdefs.h.  */
20933
20934#include <sys/mman.h>
20935#ifdef MAP_ANON
20936YES_IS_DEFINED
20937#endif
20938
20939_ACEOF
20940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20941  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
20942  ac_cv_define_MAP_ANON=yes
20943else
20944  ac_cv_define_MAP_ANON=no
20945fi
20946rm -f conftest*
20947
20948
20949fi
20950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_MAP_ANON" >&5
20951$as_echo "$ac_cv_define_MAP_ANON" >&6; }
20952  if test "$ac_cv_define_MAP_ANON" = "yes"; then
20953
20954$as_echo "#define HAVE_MAP_ANON 1" >>confdefs.h
20955
20956  fi
20957
20958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
20959$as_echo_n "checking for /dev/zero... " >&6; }
20960if ${ac_cv_file__dev_zero+:} false; then :
20961  $as_echo_n "(cached) " >&6
20962else
20963  test "$cross_compiling" = yes &&
20964  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20965if test -r "/dev/zero"; then
20966  ac_cv_file__dev_zero=yes
20967else
20968  ac_cv_file__dev_zero=no
20969fi
20970fi
20971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5
20972$as_echo "$ac_cv_file__dev_zero" >&6; }
20973if test "x$ac_cv_file__dev_zero" = xyes; then :
20974
20975fi
20976
20977
20978# Not all systems can mmap /dev/zero (such as HP-UX).  Check for that.
20979if test "$ac_cv_func_mmap" = "yes" &&
20980   test "$ac_cv_file__dev_zero" = "yes"; then
20981    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap that can map /dev/zero" >&5
20982$as_echo_n "checking for mmap that can map /dev/zero... " >&6; }
20983    if test "$cross_compiling" = yes; then :
20984  ac_cv_file__dev_zero=no
20985else
20986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20987/* end confdefs.h.  */
20988
20989#include <sys/types.h>
20990#include <sys/stat.h>
20991#include <fcntl.h>
20992#ifdef HAVE_SYS_MMAN_H
20993#include <sys/mman.h>
20994#endif
20995    int main()
20996    {
20997        int fd;
20998        void *m;
20999        fd = open("/dev/zero", O_RDWR);
21000        if (fd < 0) {
21001            return 1;
21002        }
21003        m = mmap(0, sizeof(void*), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
21004        if (m == (void *)-1) {  /* aka MAP_FAILED */
21005            return 2;
21006        }
21007        if (munmap(m, sizeof(void*)) < 0) {
21008            return 3;
21009        }
21010        return 0;
21011    }
21012_ACEOF
21013if ac_fn_c_try_run "$LINENO"; then :
21014
21015else
21016  ac_cv_file__dev_zero=no
21017fi
21018rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21019  conftest.$ac_objext conftest.beam conftest.$ac_ext
21020fi
21021
21022
21023    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5
21024$as_echo "$ac_cv_file__dev_zero" >&6; }
21025fi
21026
21027# Now we determine which one is our anonymous shmem preference.
21028haveshmgetanon="0"
21029havemmapzero="0"
21030havemmapanon="0"
21031ac_decision_item='anonymous shared memory allocation method'
21032ac_decision_msg='FAILED'
21033ac_decision=''
21034
21035ac_rc=yes
21036for ac_spec in header:sys/ipc.h header:sys/shm.h header:sys/file.h              func:shmget func:shmat func:shmdt func:shmctl; do
21037    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21038    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21039    case $ac_type in
21040        header )
21041            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21042            ac_var="ac_cv_header_$ac_item"
21043            ;;
21044        file )
21045            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21046            ac_var="ac_cv_file_$ac_item"
21047            ;;
21048        func )   ac_var="ac_cv_func_$ac_item"   ;;
21049        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21050        define ) ac_var="ac_cv_define_$ac_item" ;;
21051        custom ) ac_var="$ac_item" ;;
21052    esac
21053    eval "ac_val=\$$ac_var"
21054    if test ".$ac_val" != .yes; then
21055        ac_rc=no
21056        break
21057    fi
21058done
21059if test ".$ac_rc" = .yes; then
21060    :
21061    haveshmgetanon="1"
21062
21063ac_decision='USE_SHMEM_SHMGET_ANON'
21064ac_decision_msg='SysV IPC shmget()'
21065ac_decision_USE_SHMEM_SHMGET_ANON=yes
21066ac_decision_USE_SHMEM_SHMGET_ANON_msg='SysV IPC shmget()'
21067
21068else
21069    :
21070
21071fi
21072
21073ac_rc=yes
21074for ac_spec in header:sys/mman.h func:mmap func:munmap file:/dev/zero; do
21075    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21076    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21077    case $ac_type in
21078        header )
21079            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21080            ac_var="ac_cv_header_$ac_item"
21081            ;;
21082        file )
21083            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21084            ac_var="ac_cv_file_$ac_item"
21085            ;;
21086        func )   ac_var="ac_cv_func_$ac_item"   ;;
21087        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21088        define ) ac_var="ac_cv_define_$ac_item" ;;
21089        custom ) ac_var="$ac_item" ;;
21090    esac
21091    eval "ac_val=\$$ac_var"
21092    if test ".$ac_val" != .yes; then
21093        ac_rc=no
21094        break
21095    fi
21096done
21097if test ".$ac_rc" = .yes; then
21098    :
21099    havemmapzero="1"
21100
21101ac_decision='USE_SHMEM_MMAP_ZERO'
21102ac_decision_msg='SVR4-style mmap() on /dev/zero'
21103ac_decision_USE_SHMEM_MMAP_ZERO=yes
21104ac_decision_USE_SHMEM_MMAP_ZERO_msg='SVR4-style mmap() on /dev/zero'
21105
21106else
21107    :
21108
21109fi
21110
21111ac_rc=yes
21112for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
21113    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21114    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21115    case $ac_type in
21116        header )
21117            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21118            ac_var="ac_cv_header_$ac_item"
21119            ;;
21120        file )
21121            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21122            ac_var="ac_cv_file_$ac_item"
21123            ;;
21124        func )   ac_var="ac_cv_func_$ac_item"   ;;
21125        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21126        define ) ac_var="ac_cv_define_$ac_item" ;;
21127        custom ) ac_var="$ac_item" ;;
21128    esac
21129    eval "ac_val=\$$ac_var"
21130    if test ".$ac_val" != .yes; then
21131        ac_rc=no
21132        break
21133    fi
21134done
21135if test ".$ac_rc" = .yes; then
21136    :
21137    havemmapanon="1"
21138
21139ac_decision='USE_SHMEM_MMAP_ANON'
21140ac_decision_msg='4.4BSD-style mmap() via MAP_ANON'
21141ac_decision_USE_SHMEM_MMAP_ANON=yes
21142ac_decision_USE_SHMEM_MMAP_ANON_msg='4.4BSD-style mmap() via MAP_ANON'
21143
21144else
21145    :
21146
21147fi
21148
21149ac_rc=yes
21150for ac_spec in header:os2.h; do
21151    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21152    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21153    case $ac_type in
21154        header )
21155            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21156            ac_var="ac_cv_header_$ac_item"
21157            ;;
21158        file )
21159            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21160            ac_var="ac_cv_file_$ac_item"
21161            ;;
21162        func )   ac_var="ac_cv_func_$ac_item"   ;;
21163        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21164        define ) ac_var="ac_cv_define_$ac_item" ;;
21165        custom ) ac_var="$ac_item" ;;
21166    esac
21167    eval "ac_val=\$$ac_var"
21168    if test ".$ac_val" != .yes; then
21169        ac_rc=no
21170        break
21171    fi
21172done
21173if test ".$ac_rc" = .yes; then
21174    :
21175    haveos2shm="1"
21176
21177ac_decision='USE_SHMEM_OS2_ANON'
21178ac_decision_msg='OS/2 DosAllocSharedMem()'
21179ac_decision_USE_SHMEM_OS2_ANON=yes
21180ac_decision_USE_SHMEM_OS2_ANON_msg='OS/2 DosAllocSharedMem()'
21181
21182else
21183    :
21184
21185fi
21186
21187ac_rc=yes
21188for ac_spec in header:kernel/OS.h func:create_area; do
21189    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21190    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21191    case $ac_type in
21192        header )
21193            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21194            ac_var="ac_cv_header_$ac_item"
21195            ;;
21196        file )
21197            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21198            ac_var="ac_cv_file_$ac_item"
21199            ;;
21200        func )   ac_var="ac_cv_func_$ac_item"   ;;
21201        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21202        define ) ac_var="ac_cv_define_$ac_item" ;;
21203        custom ) ac_var="$ac_item" ;;
21204    esac
21205    eval "ac_val=\$$ac_var"
21206    if test ".$ac_val" != .yes; then
21207        ac_rc=no
21208        break
21209    fi
21210done
21211if test ".$ac_rc" = .yes; then
21212    :
21213    havebeosshm="1"
21214
21215ac_decision='USE_SHMEM_BEOS_ANON'
21216ac_decision_msg='BeOS areas'
21217ac_decision_USE_SHMEM_BEOS_ANON=yes
21218ac_decision_USE_SHMEM_BEOS_ANON_msg='BeOS areas'
21219
21220else
21221    :
21222
21223fi
21224
21225ac_rc=yes
21226for ac_spec in header:windows.h func:CreateFileMapping; do
21227    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21228    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21229    case $ac_type in
21230        header )
21231            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21232            ac_var="ac_cv_header_$ac_item"
21233            ;;
21234        file )
21235            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21236            ac_var="ac_cv_file_$ac_item"
21237            ;;
21238        func )   ac_var="ac_cv_func_$ac_item"   ;;
21239        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21240        define ) ac_var="ac_cv_define_$ac_item" ;;
21241        custom ) ac_var="$ac_item" ;;
21242    esac
21243    eval "ac_val=\$$ac_var"
21244    if test ".$ac_val" != .yes; then
21245        ac_rc=no
21246        break
21247    fi
21248done
21249if test ".$ac_rc" = .yes; then
21250    :
21251    havewin32shm="1"
21252
21253ac_decision='USE_SHMEM_WIN32_ANON'
21254ac_decision_msg='Windows CreateFileMapping()'
21255ac_decision_USE_SHMEM_WIN32_ANON=yes
21256ac_decision_USE_SHMEM_WIN32_ANON_msg='Windows CreateFileMapping()'
21257
21258else
21259    :
21260
21261fi
21262
21263case $host in
21264    *linux* )
21265        # Linux has problems with MM_SHMT_MMANON even though it reports
21266        # that it has it.
21267        # FIXME - find exact 2.3 version that MMANON was fixed in.  It is
21268        # confirmed fixed in 2.4 series.
21269        if test $os_pre24linux -eq 1; then
21270            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling anon mmap() support for Linux pre-2.4" >&5
21271$as_echo "$as_me: WARNING: Disabling anon mmap() support for Linux pre-2.4" >&2;}
21272                ac_decision=''
21273    for ac_item in USE_SHMEM_MMAP_ZERO USE_SHMEM_SHMGET_ANON; do
21274         eval "ac_decision_this=\$ac_decision_${ac_item}"
21275         if test ".$ac_decision_this" = .yes; then
21276             ac_decision=$ac_item
21277             eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21278         fi
21279    done
21280
21281        fi
21282        ;;
21283    *hpux11* )
21284            ac_decision=''
21285    for ac_item in USE_SHMEM_SHMGET_ANON; do
21286         eval "ac_decision_this=\$ac_decision_${ac_item}"
21287         if test ".$ac_decision_this" = .yes; then
21288             ac_decision=$ac_item
21289             eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21290         fi
21291    done
21292
21293        ;;
21294esac
21295if test ".$ac_decision" = .; then
21296    echo "$0:Error: decision on $ac_decision_item failed" 1>&2
21297    exit 1
21298else
21299    if test ".$ac_decision_msg" = .; then
21300        ac_decision_msg="$ac_decision"
21301    fi
21302    cat >>confdefs.h <<_ACEOF
21303#define ${ac_decision_item} 1
21304_ACEOF
21305
21306    { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
21307$as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
21308fi
21309
21310cat >>confdefs.h <<_ACEOF
21311#define $ac_decision 1
21312_ACEOF
21313
21314
21315useshmgetanon="0"
21316usemmapzero="0"
21317usemmapanon="0"
21318
21319case $ac_decision in
21320    USE_SHMEM_SHMGET_ANON )
21321        useshmgetanon="1"
21322        ;;
21323    USE_SHMEM_MMAP_ZERO )
21324        usemmapzero="1"
21325        ;;
21326    USE_SHMEM_MMAP_ANON )
21327        usemmapanon="1"
21328        ;;
21329esac
21330
21331
21332
21333
21334
21335
21336
21337
21338# Now we determine which one is our name-based shmem preference.
21339havemmaptmp="0"
21340havemmapshm="0"
21341haveshmget="0"
21342havebeosarea="0"
21343haveos2shm="0"
21344havewin32shm="0"
21345ac_decision_item='namebased memory allocation method'
21346ac_decision_msg='FAILED'
21347ac_decision=''
21348
21349ac_rc=yes
21350for ac_spec in header:sys/mman.h func:mmap func:munmap; do
21351    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21352    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21353    case $ac_type in
21354        header )
21355            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21356            ac_var="ac_cv_header_$ac_item"
21357            ;;
21358        file )
21359            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21360            ac_var="ac_cv_file_$ac_item"
21361            ;;
21362        func )   ac_var="ac_cv_func_$ac_item"   ;;
21363        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21364        define ) ac_var="ac_cv_define_$ac_item" ;;
21365        custom ) ac_var="$ac_item" ;;
21366    esac
21367    eval "ac_val=\$$ac_var"
21368    if test ".$ac_val" != .yes; then
21369        ac_rc=no
21370        break
21371    fi
21372done
21373if test ".$ac_rc" = .yes; then
21374    :
21375    havemmaptmp="1"
21376
21377ac_decision='USE_SHMEM_MMAP_TMP'
21378ac_decision_msg='Classical mmap() on temporary file'
21379ac_decision_USE_SHMEM_MMAP_TMP=yes
21380ac_decision_USE_SHMEM_MMAP_TMP_msg='Classical mmap() on temporary file'
21381
21382else
21383    :
21384
21385fi
21386
21387ac_rc=yes
21388for ac_spec in header:sys/mman.h func:mmap func:munmap func:shm_open              func:shm_unlink; do
21389    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21390    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21391    case $ac_type in
21392        header )
21393            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21394            ac_var="ac_cv_header_$ac_item"
21395            ;;
21396        file )
21397            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21398            ac_var="ac_cv_file_$ac_item"
21399            ;;
21400        func )   ac_var="ac_cv_func_$ac_item"   ;;
21401        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21402        define ) ac_var="ac_cv_define_$ac_item" ;;
21403        custom ) ac_var="$ac_item" ;;
21404    esac
21405    eval "ac_val=\$$ac_var"
21406    if test ".$ac_val" != .yes; then
21407        ac_rc=no
21408        break
21409    fi
21410done
21411if test ".$ac_rc" = .yes; then
21412    :
21413    havemmapshm="1"
21414
21415ac_decision='USE_SHMEM_MMAP_SHM'
21416ac_decision_msg='mmap() via POSIX.1 shm_open() on temporary file'
21417ac_decision_USE_SHMEM_MMAP_SHM=yes
21418ac_decision_USE_SHMEM_MMAP_SHM_msg='mmap() via POSIX.1 shm_open() on temporary file'
21419
21420else
21421    :
21422
21423fi
21424
21425ac_rc=yes
21426for ac_spec in header:sys/ipc.h header:sys/shm.h header:sys/file.h              func:shmget func:shmat func:shmdt func:shmctl; do
21427    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21428    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21429    case $ac_type in
21430        header )
21431            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21432            ac_var="ac_cv_header_$ac_item"
21433            ;;
21434        file )
21435            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21436            ac_var="ac_cv_file_$ac_item"
21437            ;;
21438        func )   ac_var="ac_cv_func_$ac_item"   ;;
21439        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21440        define ) ac_var="ac_cv_define_$ac_item" ;;
21441        custom ) ac_var="$ac_item" ;;
21442    esac
21443    eval "ac_val=\$$ac_var"
21444    if test ".$ac_val" != .yes; then
21445        ac_rc=no
21446        break
21447    fi
21448done
21449if test ".$ac_rc" = .yes; then
21450    :
21451    haveshmget="1"
21452
21453ac_decision='USE_SHMEM_SHMGET'
21454ac_decision_msg='SysV IPC shmget()'
21455ac_decision_USE_SHMEM_SHMGET=yes
21456ac_decision_USE_SHMEM_SHMGET_msg='SysV IPC shmget()'
21457
21458else
21459    :
21460
21461fi
21462
21463ac_rc=yes
21464for ac_spec in header:kernel/OS.h func:create_area; do
21465    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21466    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21467    case $ac_type in
21468        header )
21469            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21470            ac_var="ac_cv_header_$ac_item"
21471            ;;
21472        file )
21473            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21474            ac_var="ac_cv_file_$ac_item"
21475            ;;
21476        func )   ac_var="ac_cv_func_$ac_item"   ;;
21477        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21478        define ) ac_var="ac_cv_define_$ac_item" ;;
21479        custom ) ac_var="$ac_item" ;;
21480    esac
21481    eval "ac_val=\$$ac_var"
21482    if test ".$ac_val" != .yes; then
21483        ac_rc=no
21484        break
21485    fi
21486done
21487if test ".$ac_rc" = .yes; then
21488    :
21489    havebeosshm="1"
21490
21491ac_decision='USE_SHMEM_BEOS'
21492ac_decision_msg='BeOS areas'
21493ac_decision_USE_SHMEM_BEOS=yes
21494ac_decision_USE_SHMEM_BEOS_msg='BeOS areas'
21495
21496else
21497    :
21498
21499fi
21500
21501ac_rc=yes
21502for ac_spec in header:os2.h; do
21503    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21504    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21505    case $ac_type in
21506        header )
21507            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21508            ac_var="ac_cv_header_$ac_item"
21509            ;;
21510        file )
21511            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21512            ac_var="ac_cv_file_$ac_item"
21513            ;;
21514        func )   ac_var="ac_cv_func_$ac_item"   ;;
21515        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21516        define ) ac_var="ac_cv_define_$ac_item" ;;
21517        custom ) ac_var="$ac_item" ;;
21518    esac
21519    eval "ac_val=\$$ac_var"
21520    if test ".$ac_val" != .yes; then
21521        ac_rc=no
21522        break
21523    fi
21524done
21525if test ".$ac_rc" = .yes; then
21526    :
21527    haveos2shm="1"
21528
21529ac_decision='USE_SHMEM_OS2'
21530ac_decision_msg='OS/2 DosAllocSharedMem()'
21531ac_decision_USE_SHMEM_OS2=yes
21532ac_decision_USE_SHMEM_OS2_msg='OS/2 DosAllocSharedMem()'
21533
21534else
21535    :
21536
21537fi
21538
21539ac_rc=yes
21540for ac_spec in header:windows.h; do
21541    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21542    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21543    case $ac_type in
21544        header )
21545            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21546            ac_var="ac_cv_header_$ac_item"
21547            ;;
21548        file )
21549            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21550            ac_var="ac_cv_file_$ac_item"
21551            ;;
21552        func )   ac_var="ac_cv_func_$ac_item"   ;;
21553        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21554        define ) ac_var="ac_cv_define_$ac_item" ;;
21555        custom ) ac_var="$ac_item" ;;
21556    esac
21557    eval "ac_val=\$$ac_var"
21558    if test ".$ac_val" != .yes; then
21559        ac_rc=no
21560        break
21561    fi
21562done
21563if test ".$ac_rc" = .yes; then
21564    :
21565    havewin32shm="1"
21566
21567ac_decision='USE_SHMEM_WIN32'
21568ac_decision_msg='Windows shared memory'
21569ac_decision_USE_SHMEM_WIN32=yes
21570ac_decision_USE_SHMEM_WIN32_msg='Windows shared memory'
21571
21572else
21573    :
21574
21575fi
21576
21577# Check whether --enable-posix-shm was given.
21578if test "${enable_posix_shm+set}" = set; then :
21579  enableval=$enable_posix_shm;
21580if test "$havemmapshm" = "1"; then
21581      ac_decision=''
21582    for ac_item in USE_SHMEM_MMAP_SHM; do
21583         eval "ac_decision_this=\$ac_decision_${ac_item}"
21584         if test ".$ac_decision_this" = .yes; then
21585             ac_decision=$ac_item
21586             eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21587         fi
21588    done
21589
21590fi
21591
21592fi
21593
21594case $host in
21595    *linux* )
21596        # Linux pre-2.4 had problems with MM_SHMT_MMANON even though
21597        # it reports that it has it.
21598        if test $os_pre24linux -eq 1; then
21599                ac_decision=''
21600    for ac_item in USE_SHMEM_MMAP_TMP USE_SHMEM_MMAP_SHM                                   USE_SHMEM_SHMGET; do
21601         eval "ac_decision_this=\$ac_decision_${ac_item}"
21602         if test ".$ac_decision_this" = .yes; then
21603             ac_decision=$ac_item
21604             eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21605         fi
21606    done
21607
21608        fi
21609        ;;
21610esac
21611if test ".$ac_decision" = .; then
21612    echo "$0:Error: decision on $ac_decision_item failed" 1>&2
21613    exit 1
21614else
21615    if test ".$ac_decision_msg" = .; then
21616        ac_decision_msg="$ac_decision"
21617    fi
21618    cat >>confdefs.h <<_ACEOF
21619#define ${ac_decision_item} 1
21620_ACEOF
21621
21622    { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
21623$as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
21624fi
21625
21626cat >>confdefs.h <<_ACEOF
21627#define $ac_decision 1
21628_ACEOF
21629
21630
21631usemmaptmp="0"
21632usemmapshm="0"
21633useshmget="0"
21634usebeosarea="0"
21635useos2shm="0"
21636usewin32shm="0"
21637
21638case $ac_decision in
21639    USE_SHMEM_MMAP_TMP )
21640        usemmaptmp="1"
21641        ;;
21642    USE_SHMEM_MMAP_SHM )
21643        usemmapshm="1"
21644        ;;
21645    USE_SHMEM_SHMGET )
21646        useshmget="1"
21647        ;;
21648    USE_SHMEM_BEOS )
21649        usebeosarea="1"
21650        ;;
21651    USE_SHMEM_OS2 )
21652        useos2shm="1"
21653        ;;
21654    USE_SHMEM_WIN32 )
21655        usewin32shm="1"
21656        ;;
21657esac
21658
21659# Do we have any shared memory support?
21660if test "$usemmaptmp$usemmapshm$usemmapzero$useshmget$usemmapanon$usebeosarea$useos2shm$usewin32shm" = "00000000"; then
21661  sharedmem="0"
21662else
21663  sharedmem="1"
21664fi
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21682if test "x$ac_cv_type_size_t" = xyes; then :
21683
21684else
21685
21686cat >>confdefs.h <<_ACEOF
21687#define size_t unsigned int
21688_ACEOF
21689
21690fi
21691
21692# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21693# for constant arguments.  Useless!
21694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21695$as_echo_n "checking for working alloca.h... " >&6; }
21696if ${ac_cv_working_alloca_h+:} false; then :
21697  $as_echo_n "(cached) " >&6
21698else
21699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21700/* end confdefs.h.  */
21701#include <alloca.h>
21702int
21703main ()
21704{
21705char *p = (char *) alloca (2 * sizeof (int));
21706			  if (p) return 0;
21707  ;
21708  return 0;
21709}
21710_ACEOF
21711if ac_fn_c_try_link "$LINENO"; then :
21712  ac_cv_working_alloca_h=yes
21713else
21714  ac_cv_working_alloca_h=no
21715fi
21716rm -f core conftest.err conftest.$ac_objext \
21717    conftest$ac_exeext conftest.$ac_ext
21718fi
21719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21720$as_echo "$ac_cv_working_alloca_h" >&6; }
21721if test $ac_cv_working_alloca_h = yes; then
21722
21723$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21724
21725fi
21726
21727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21728$as_echo_n "checking for alloca... " >&6; }
21729if ${ac_cv_func_alloca_works+:} false; then :
21730  $as_echo_n "(cached) " >&6
21731else
21732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21733/* end confdefs.h.  */
21734#ifdef __GNUC__
21735# define alloca __builtin_alloca
21736#else
21737# ifdef _MSC_VER
21738#  include <malloc.h>
21739#  define alloca _alloca
21740# else
21741#  ifdef HAVE_ALLOCA_H
21742#   include <alloca.h>
21743#  else
21744#   ifdef _AIX
21745 #pragma alloca
21746#   else
21747#    ifndef alloca /* predefined by HP cc +Olibcalls */
21748void *alloca (size_t);
21749#    endif
21750#   endif
21751#  endif
21752# endif
21753#endif
21754
21755int
21756main ()
21757{
21758char *p = (char *) alloca (1);
21759				    if (p) return 0;
21760  ;
21761  return 0;
21762}
21763_ACEOF
21764if ac_fn_c_try_link "$LINENO"; then :
21765  ac_cv_func_alloca_works=yes
21766else
21767  ac_cv_func_alloca_works=no
21768fi
21769rm -f core conftest.err conftest.$ac_objext \
21770    conftest$ac_exeext conftest.$ac_ext
21771fi
21772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21773$as_echo "$ac_cv_func_alloca_works" >&6; }
21774
21775if test $ac_cv_func_alloca_works = yes; then
21776
21777$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21778
21779else
21780  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21781# that cause trouble.  Some versions do not even contain alloca or
21782# contain a buggy version.  If you still want to use their alloca,
21783# use ar to extract alloca.o from them instead of compiling alloca.c.
21784
21785ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21786
21787$as_echo "#define C_ALLOCA 1" >>confdefs.h
21788
21789
21790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21791$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21792if ${ac_cv_os_cray+:} false; then :
21793  $as_echo_n "(cached) " >&6
21794else
21795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21796/* end confdefs.h.  */
21797#if defined CRAY && ! defined CRAY2
21798webecray
21799#else
21800wenotbecray
21801#endif
21802
21803_ACEOF
21804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21805  $EGREP "webecray" >/dev/null 2>&1; then :
21806  ac_cv_os_cray=yes
21807else
21808  ac_cv_os_cray=no
21809fi
21810rm -f conftest*
21811
21812fi
21813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21814$as_echo "$ac_cv_os_cray" >&6; }
21815if test $ac_cv_os_cray = yes; then
21816  for ac_func in _getb67 GETB67 getb67; do
21817    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21818ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21819if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21820
21821cat >>confdefs.h <<_ACEOF
21822#define CRAY_STACKSEG_END $ac_func
21823_ACEOF
21824
21825    break
21826fi
21827
21828  done
21829fi
21830
21831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21832$as_echo_n "checking stack direction for C alloca... " >&6; }
21833if ${ac_cv_c_stack_direction+:} false; then :
21834  $as_echo_n "(cached) " >&6
21835else
21836  if test "$cross_compiling" = yes; then :
21837  ac_cv_c_stack_direction=0
21838else
21839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21840/* end confdefs.h.  */
21841$ac_includes_default
21842int
21843find_stack_direction (int *addr, int depth)
21844{
21845  int dir, dummy = 0;
21846  if (! addr)
21847    addr = &dummy;
21848  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
21849  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
21850  return dir + dummy;
21851}
21852
21853int
21854main (int argc, char **argv)
21855{
21856  return find_stack_direction (0, argc + !argv + 20) < 0;
21857}
21858_ACEOF
21859if ac_fn_c_try_run "$LINENO"; then :
21860  ac_cv_c_stack_direction=1
21861else
21862  ac_cv_c_stack_direction=-1
21863fi
21864rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21865  conftest.$ac_objext conftest.beam conftest.$ac_ext
21866fi
21867
21868fi
21869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21870$as_echo "$ac_cv_c_stack_direction" >&6; }
21871cat >>confdefs.h <<_ACEOF
21872#define STACK_DIRECTION $ac_cv_c_stack_direction
21873_ACEOF
21874
21875
21876fi
21877
21878
21879for ac_func in calloc setsid isinf isnan \
21880                getenv putenv setenv unsetenv \
21881                writev getifaddrs utime utimes
21882do :
21883  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21884ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21885if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21886  cat >>confdefs.h <<_ACEOF
21887#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21888_ACEOF
21889
21890fi
21891done
21892
21893for ac_func in setrlimit
21894do :
21895  ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
21896if test "x$ac_cv_func_setrlimit" = xyes; then :
21897  cat >>confdefs.h <<_ACEOF
21898#define HAVE_SETRLIMIT 1
21899_ACEOF
21900  have_setrlimit="1"
21901else
21902   have_setrlimit="0"
21903fi
21904done
21905
21906for ac_func in getrlimit
21907do :
21908  ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
21909if test "x$ac_cv_func_getrlimit" = xyes; then :
21910  cat >>confdefs.h <<_ACEOF
21911#define HAVE_GETRLIMIT 1
21912_ACEOF
21913  have_getrlimit="1"
21914else
21915   have_getrlimit="0"
21916fi
21917done
21918
21919sendfile="0"
21920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfilev in -lsendfile" >&5
21921$as_echo_n "checking for sendfilev in -lsendfile... " >&6; }
21922if ${ac_cv_lib_sendfile_sendfilev+:} false; then :
21923  $as_echo_n "(cached) " >&6
21924else
21925  ac_check_lib_save_LIBS=$LIBS
21926LIBS="-lsendfile  $LIBS"
21927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21928/* end confdefs.h.  */
21929
21930/* Override any GCC internal prototype to avoid an error.
21931   Use char because int might match the return type of a GCC
21932   builtin and then its argument prototype would still apply.  */
21933#ifdef __cplusplus
21934extern "C"
21935#endif
21936char sendfilev ();
21937int
21938main ()
21939{
21940return sendfilev ();
21941  ;
21942  return 0;
21943}
21944_ACEOF
21945if ac_fn_c_try_link "$LINENO"; then :
21946  ac_cv_lib_sendfile_sendfilev=yes
21947else
21948  ac_cv_lib_sendfile_sendfilev=no
21949fi
21950rm -f core conftest.err conftest.$ac_objext \
21951    conftest$ac_exeext conftest.$ac_ext
21952LIBS=$ac_check_lib_save_LIBS
21953fi
21954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfilev" >&5
21955$as_echo "$ac_cv_lib_sendfile_sendfilev" >&6; }
21956if test "x$ac_cv_lib_sendfile_sendfilev" = xyes; then :
21957  cat >>confdefs.h <<_ACEOF
21958#define HAVE_LIBSENDFILE 1
21959_ACEOF
21960
21961  LIBS="-lsendfile $LIBS"
21962
21963fi
21964
21965for ac_func in sendfile send_file sendfilev
21966do :
21967  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21968ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21969if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21970  cat >>confdefs.h <<_ACEOF
21971#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21972_ACEOF
21973  sendfile="1"
21974fi
21975done
21976
21977
21978
21979
21980# Check whether --with-sendfile was given.
21981if test "${with_sendfile+set}" = set; then :
21982  withval=$with_sendfile;  if test "$withval" = "yes"; then
21983        sendfile="1"
21984    else
21985        sendfile="0"
21986    fi
21987else
21988
21989    orig_sendfile=$sendfile
21990    case $host in
21991        *freebsd*)
21992            # FreeBSD < 4.2 has issues with threads+sendfile
21993            if test $os_version -le "401999"; then
21994                if test "$threads" = "1"; then
21995                    sendfile="0"
21996                fi
21997            fi
21998            ;;
21999        *alpha*-dec-osf* )
22000            sendfile="0"
22001            ;;
22002        s390-*-linux-gnu)
22003            # disable sendfile support for 2.2 on S/390
22004            if test $os_pre24linux -eq 1; then
22005                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabled sendfile support for Linux 2.2 on S/390" >&5
22006$as_echo "$as_me: WARNING: Disabled sendfile support for Linux 2.2 on S/390" >&2;}
22007                sendfile="0"
22008            fi
22009            ;;
22010        *aix*)
22011            # compiler-independent check for 64-bit build
22012            # The cast to long int works around a bug in the HP C Compiler
22013# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22014# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22015# This bug is HP SR number 8606223364.
22016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
22017$as_echo_n "checking size of void*... " >&6; }
22018if ${ac_cv_sizeof_voidp+:} false; then :
22019  $as_echo_n "(cached) " >&6
22020else
22021  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
22022
22023else
22024  if test "$ac_cv_type_voidp" = yes; then
22025     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22027as_fn_error 77 "cannot compute sizeof (void*)
22028See \`config.log' for more details" "$LINENO" 5; }
22029   else
22030     ac_cv_sizeof_voidp=0
22031   fi
22032fi
22033
22034fi
22035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
22036$as_echo "$ac_cv_sizeof_voidp" >&6; }
22037
22038
22039
22040cat >>confdefs.h <<_ACEOF
22041#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
22042_ACEOF
22043
22044
22045            if test "x$ac_cv_sizeof_voidp" = "x8"; then
22046                # sendfile not working for 64-bit build
22047                sendfile="0"
22048            fi
22049            ;;
22050    esac
22051    if test "$orig_sendfile" != "$sendfile"; then
22052      echo "sendfile support disabled to avoid system problem"
22053    fi
22054fi
22055
22056
22057
22058for ac_func in sigaction
22059do :
22060  ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
22061if test "x$ac_cv_func_sigaction" = xyes; then :
22062  cat >>confdefs.h <<_ACEOF
22063#define HAVE_SIGACTION 1
22064_ACEOF
22065  have_sigaction="1"
22066else
22067   have_sigaction="0"
22068fi
22069done
22070
22071ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
22072/* NetBSD declares sys_siglist in unistd.h.  */
22073#ifdef HAVE_UNISTD_H
22074# include <unistd.h>
22075#endif
22076
22077"
22078if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
22079  ac_have_decl=1
22080else
22081  ac_have_decl=0
22082fi
22083
22084cat >>confdefs.h <<_ACEOF
22085#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
22086_ACEOF
22087
22088
22089
22090for ac_func in fork
22091do :
22092  ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
22093if test "x$ac_cv_func_fork" = xyes; then :
22094  cat >>confdefs.h <<_ACEOF
22095#define HAVE_FORK 1
22096_ACEOF
22097  fork="1"
22098else
22099   fork="0"
22100fi
22101done
22102
22103
22104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr" >&5
22105$as_echo_n "checking for inet_addr... " >&6; }
22106if ${ac_cv_func_inet_addr+:} false; then :
22107  $as_echo_n "(cached) " >&6
22108else
22109
22110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22111/* end confdefs.h.  */
22112
22113#ifdef HAVE_SYS_TYPES_H
22114#include <sys/types.h>
22115#endif
22116#ifdef HAVE_ARPA_INET_H
22117#include <arpa/inet.h>
22118#endif
22119
22120int
22121main ()
22122{
22123
22124inet_addr("127.0.0.1");
22125
22126  ;
22127  return 0;
22128}
22129_ACEOF
22130if ac_fn_c_try_compile "$LINENO"; then :
22131
22132    ac_cv_func_inet_addr=yes
22133
22134else
22135
22136    ac_cv_func_inet_addr=no
22137
22138fi
22139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22140
22141fi
22142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_addr" >&5
22143$as_echo "$ac_cv_func_inet_addr" >&6; }
22144
22145if test "$ac_cv_func_inet_addr" = "yes"; then
22146  have_inet_addr=1
22147else
22148  have_inet_addr=0
22149fi
22150
22151
22152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_network" >&5
22153$as_echo_n "checking for inet_network... " >&6; }
22154if ${ac_cv_func_inet_network+:} false; then :
22155  $as_echo_n "(cached) " >&6
22156else
22157
22158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22159/* end confdefs.h.  */
22160
22161#ifdef HAVE_SYS_TYPES_H
22162#include <sys/types.h>
22163#endif
22164#ifdef HAVE_ARPA_INET_H
22165#include <arpa/inet.h>
22166#endif
22167
22168int
22169main ()
22170{
22171
22172inet_network("127.0.0.1");
22173
22174  ;
22175  return 0;
22176}
22177_ACEOF
22178if ac_fn_c_try_compile "$LINENO"; then :
22179
22180    ac_cv_func_inet_network=yes
22181
22182else
22183
22184    ac_cv_func_inet_network=no
22185
22186fi
22187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22188
22189fi
22190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_network" >&5
22191$as_echo "$ac_cv_func_inet_network" >&6; }
22192
22193if test "$ac_cv_func_inet_network" = "yes"; then
22194  have_inet_network=1
22195else
22196  have_inet_network=0
22197fi
22198
22199
22200ac_fn_c_check_func "$LINENO" "_getch" "ac_cv_func__getch"
22201if test "x$ac_cv_func__getch" = xyes; then :
22202
22203fi
22204
22205for ac_func in strerror_r
22206do :
22207  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
22208if test "x$ac_cv_func_strerror_r" = xyes; then :
22209  cat >>confdefs.h <<_ACEOF
22210#define HAVE_STRERROR_R 1
22211_ACEOF
22212  strerror_r="1"
22213else
22214   strerror_r="0"
22215fi
22216done
22217
22218if test "$strerror_r" = "1"; then
22219
22220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of return code from strerror_r" >&5
22221$as_echo_n "checking for type of return code from strerror_r... " >&6; }
22222if test "$cross_compiling" = yes; then :
22223
22224    ac_cv_strerror_r_rc_int=no
22225else
22226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22227/* end confdefs.h.  */
22228
22229#include <errno.h>
22230#include <string.h>
22231#include <stdio.h>
22232main()
22233{
22234  char buf[1024];
22235  if (strerror_r(ERANGE, buf, sizeof buf) < 1) {
22236    exit(0);
22237  }
22238  else {
22239    exit(1);
22240  }
22241}
22242_ACEOF
22243if ac_fn_c_try_run "$LINENO"; then :
22244
22245    ac_cv_strerror_r_rc_int=yes
22246else
22247
22248    ac_cv_strerror_r_rc_int=no
22249fi
22250rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22251  conftest.$ac_objext conftest.beam conftest.$ac_ext
22252fi
22253
22254if test "x$ac_cv_strerror_r_rc_int" = xyes; then
22255
22256$as_echo "#define STRERROR_R_RC_INT 1" >>confdefs.h
22257
22258  msg="int"
22259else
22260  msg="pointer"
22261fi
22262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
22263$as_echo "$msg" >&6; }
22264
22265fi
22266for ac_func in mmap
22267do :
22268  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
22269if test "x$ac_cv_func_mmap" = xyes; then :
22270  cat >>confdefs.h <<_ACEOF
22271#define HAVE_MMAP 1
22272_ACEOF
22273  mmap="1"
22274else
22275   mmap="0"
22276fi
22277done
22278
22279if test "$native_mmap_emul" = "1"; then
22280    mmap="1"
22281fi
22282for ac_func in memmove
22283do :
22284  ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22285if test "x$ac_cv_func_memmove" = xyes; then :
22286  cat >>confdefs.h <<_ACEOF
22287#define HAVE_MEMMOVE 1
22288_ACEOF
22289  have_memmove="1"
22290else
22291  have_memmove="0"
22292fi
22293done
22294
22295for ac_func in getpass getpassphrase gmtime_r localtime_r mkstemp
22296do :
22297  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22298ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22299if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22300  cat >>confdefs.h <<_ACEOF
22301#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22302_ACEOF
22303
22304fi
22305done
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sigwait takes one argument" >&5
22321$as_echo_n "checking whether sigwait takes one argument... " >&6; }
22322if ${ac_cv_sigwait_one_arg+:} false; then :
22323  $as_echo_n "(cached) " >&6
22324else
22325
22326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22327/* end confdefs.h.  */
22328
22329#if defined(__NETBSD__) || defined(DARWIN)
22330    /* When using the unproven-pthreads package, we need to pull in this
22331     * header to get a prototype for sigwait().  Else things will fail later
22332     * on.  XXX Should probably be fixed in the unproven-pthreads package.
22333     * Darwin is declaring sigwait() in the wrong place as well.
22334     */
22335#include <pthread.h>
22336#endif
22337#include <signal.h>
22338
22339int
22340main ()
22341{
22342
22343  sigset_t set;
22344
22345  sigwait(&set);
22346
22347  ;
22348  return 0;
22349}
22350_ACEOF
22351if ac_fn_c_try_compile "$LINENO"; then :
22352
22353  ac_cv_sigwait_one_arg=yes
22354
22355else
22356
22357  ac_cv_sigwait_one_arg=no
22358
22359fi
22360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22361fi
22362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sigwait_one_arg" >&5
22363$as_echo "$ac_cv_sigwait_one_arg" >&6; }
22364  if test "$ac_cv_sigwait_one_arg" = "yes"; then
22365
22366$as_echo "#define SIGWAIT_TAKES_ONE_ARG 1" >>confdefs.h
22367
22368  fi
22369
22370
22371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
22372$as_echo_n "checking for ANSI C header files... " >&6; }
22373if ${ac_cv_header_stdc+:} false; then :
22374  $as_echo_n "(cached) " >&6
22375else
22376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22377/* end confdefs.h.  */
22378#include <stdlib.h>
22379#include <stdarg.h>
22380#include <string.h>
22381#include <float.h>
22382
22383int
22384main ()
22385{
22386
22387  ;
22388  return 0;
22389}
22390_ACEOF
22391if ac_fn_c_try_compile "$LINENO"; then :
22392  ac_cv_header_stdc=yes
22393else
22394  ac_cv_header_stdc=no
22395fi
22396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22397
22398if test $ac_cv_header_stdc = yes; then
22399  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22401/* end confdefs.h.  */
22402#include <string.h>
22403
22404_ACEOF
22405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22406  $EGREP "memchr" >/dev/null 2>&1; then :
22407
22408else
22409  ac_cv_header_stdc=no
22410fi
22411rm -f conftest*
22412
22413fi
22414
22415if test $ac_cv_header_stdc = yes; then
22416  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22418/* end confdefs.h.  */
22419#include <stdlib.h>
22420
22421_ACEOF
22422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22423  $EGREP "free" >/dev/null 2>&1; then :
22424
22425else
22426  ac_cv_header_stdc=no
22427fi
22428rm -f conftest*
22429
22430fi
22431
22432if test $ac_cv_header_stdc = yes; then
22433  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22434  if test "$cross_compiling" = yes; then :
22435  :
22436else
22437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22438/* end confdefs.h.  */
22439#include <ctype.h>
22440#include <stdlib.h>
22441#if ((' ' & 0x0FF) == 0x020)
22442# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22443# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22444#else
22445# define ISLOWER(c) \
22446		   (('a' <= (c) && (c) <= 'i') \
22447		     || ('j' <= (c) && (c) <= 'r') \
22448		     || ('s' <= (c) && (c) <= 'z'))
22449# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22450#endif
22451
22452#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22453int
22454main ()
22455{
22456  int i;
22457  for (i = 0; i < 256; i++)
22458    if (XOR (islower (i), ISLOWER (i))
22459	|| toupper (i) != TOUPPER (i))
22460      return 2;
22461  return 0;
22462}
22463_ACEOF
22464if ac_fn_c_try_run "$LINENO"; then :
22465
22466else
22467  ac_cv_header_stdc=no
22468fi
22469rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22470  conftest.$ac_objext conftest.beam conftest.$ac_ext
22471fi
22472
22473fi
22474fi
22475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
22476$as_echo "$ac_cv_header_stdc" >&6; }
22477if test $ac_cv_header_stdc = yes; then
22478
22479$as_echo "#define STDC_HEADERS 1" >>confdefs.h
22480
22481fi
22482
22483
22484
22485for ac_header in ByteOrder.h		\
22486    conio.h		\
22487    crypt.h		\
22488    ctype.h		\
22489    dir.h		\
22490    dirent.h		\
22491    dl.h		\
22492    dlfcn.h		\
22493    errno.h		\
22494    fcntl.h		\
22495    grp.h		\
22496    io.h		\
22497    limits.h		\
22498    mach-o/dyld.h	\
22499    malloc.h		\
22500    memory.h		\
22501    netdb.h		\
22502    osreldate.h		\
22503    poll.h		\
22504    process.h		\
22505    pwd.h		\
22506    semaphore.h		\
22507    signal.h		\
22508    stdarg.h		\
22509    stddef.h		\
22510    stdio.h		\
22511    stdlib.h		\
22512    string.h		\
22513    strings.h		\
22514    sysapi.h		\
22515    sysgtime.h		\
22516    termios.h		\
22517    time.h		\
22518    tpfeq.h		\
22519    tpfio.h		\
22520    unistd.h		\
22521    unix.h		\
22522    windows.h		\
22523    winsock2.h		\
22524    arpa/inet.h		\
22525    kernel/OS.h		\
22526    net/errno.h		\
22527    netinet/in.h	\
22528    netinet/sctp.h      \
22529    netinet/sctp_uio.h  \
22530    sys/file.h		\
22531    sys/ioctl.h         \
22532    sys/mman.h		\
22533    sys/param.h         \
22534    sys/poll.h		\
22535    sys/resource.h	\
22536    sys/select.h	\
22537    sys/sem.h		\
22538    sys/sendfile.h	\
22539    sys/signal.h	\
22540    sys/socket.h	\
22541    sys/sockio.h	\
22542    sys/stat.h          \
22543    sys/sysctl.h	\
22544    sys/syslimits.h	\
22545    sys/time.h		\
22546    sys/types.h		\
22547    sys/uio.h		\
22548    sys/un.h		\
22549    sys/wait.h
22550do :
22551  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22552ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22553if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22554  cat >>confdefs.h <<_ACEOF
22555#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22556_ACEOF
22557
22558fi
22559
22560done
22561
22562for aprt_i in ByteOrder.h		\
22563    conio.h		\
22564    crypt.h		\
22565    ctype.h		\
22566    dir.h		\
22567    dirent.h		\
22568    dl.h		\
22569    dlfcn.h		\
22570    errno.h		\
22571    fcntl.h		\
22572    grp.h		\
22573    io.h		\
22574    limits.h		\
22575    mach-o/dyld.h	\
22576    malloc.h		\
22577    memory.h		\
22578    netdb.h		\
22579    osreldate.h		\
22580    poll.h		\
22581    process.h		\
22582    pwd.h		\
22583    semaphore.h		\
22584    signal.h		\
22585    stdarg.h		\
22586    stddef.h		\
22587    stdio.h		\
22588    stdlib.h		\
22589    string.h		\
22590    strings.h		\
22591    sysapi.h		\
22592    sysgtime.h		\
22593    termios.h		\
22594    time.h		\
22595    tpfeq.h		\
22596    tpfio.h		\
22597    unistd.h		\
22598    unix.h		\
22599    windows.h		\
22600    winsock2.h		\
22601    arpa/inet.h		\
22602    kernel/OS.h		\
22603    net/errno.h		\
22604    netinet/in.h	\
22605    netinet/sctp.h      \
22606    netinet/sctp_uio.h  \
22607    sys/file.h		\
22608    sys/ioctl.h         \
22609    sys/mman.h		\
22610    sys/param.h         \
22611    sys/poll.h		\
22612    sys/resource.h	\
22613    sys/select.h	\
22614    sys/sem.h		\
22615    sys/sendfile.h	\
22616    sys/signal.h	\
22617    sys/socket.h	\
22618    sys/sockio.h	\
22619    sys/stat.h          \
22620    sys/sysctl.h	\
22621    sys/syslimits.h	\
22622    sys/time.h		\
22623    sys/types.h		\
22624    sys/uio.h		\
22625    sys/un.h		\
22626    sys/wait.h
22627do
22628    ac_safe=`echo "$aprt_i" | sed 'y%./+-%__p_%'`
22629    aprt_2=`echo "$aprt_i" | sed -e 's%/%_%g' -e 's/\.//g' -e 's/-//g'`
22630    if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22631       eval "$aprt_2=1"
22632    else
22633       eval "$aprt_2=0"
22634    fi
22635done
22636
22637
22638# IRIX 6.5 has a problem in <netinet/tcp.h> which prevents it from
22639# being included by itself.  Check for <netinet/tcp.h> manually,
22640# including another header file first.
22641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netinet/tcp.h" >&5
22642$as_echo_n "checking for netinet/tcp.h... " >&6; }
22643if ${apr_cv_hdr_netinet_tcp_h+:} false; then :
22644  $as_echo_n "(cached) " >&6
22645else
22646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22647/* end confdefs.h.  */
22648#ifdef HAVE_NETINET_IN_H
22649#include <netinet/in.h>
22650#endif
22651#include <netinet/tcp.h>
22652
22653_ACEOF
22654if ac_fn_c_try_cpp "$LINENO"; then :
22655  apr_cv_hdr_netinet_tcp_h=yes
22656else
22657  apr_cv_hdr_netinet_tcp_h=no
22658fi
22659rm -f conftest.err conftest.i conftest.$ac_ext
22660fi
22661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_hdr_netinet_tcp_h" >&5
22662$as_echo "$apr_cv_hdr_netinet_tcp_h" >&6; }
22663if test "$apr_cv_hdr_netinet_tcp_h" = "yes"; then
22664   netinet_tcph=1
22665
22666$as_echo "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
22667
22668else
22669   netinet_tcph=0
22670fi
22671
22672
22673
22674
22675
22676
22677
22678
22679
22680
22681
22682
22683
22684
22685
22686
22687
22688
22689
22690
22691
22692
22693
22694
22695
22696
22697
22698
22699
22700
22701
22702
22703
22704
22705
22706
22707
22708
22709
22710
22711# Checking for h_errno in <netdb.h>
22712if test "$netdbh" = "1"; then
22713
22714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5
22715$as_echo_n "checking for h_errno in netdb.h... " >&6; }
22716  if ${ac_cv_h_errno_cppflags+:} false; then :
22717  $as_echo_n "(cached) " >&6
22718else
22719
22720
22721  if test x != x; then
22722    CPPFLAGS="-D $CPPFLAGS"
22723  fi
22724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22725/* end confdefs.h.  */
22726
22727#ifdef HAVE_SYS_TYPES_H
22728#include <sys/types.h>
22729#endif
22730#ifdef HAVE_NETDB_H
22731#include <netdb.h>
22732#endif
22733
22734int
22735main ()
22736{
22737
22738int h_e = h_errno;
22739
22740  ;
22741  return 0;
22742}
22743_ACEOF
22744if ac_fn_c_try_compile "$LINENO"; then :
22745
22746  if test x != x; then
22747    ac_cv_h_errno_cppflags=""
22748  else
22749    ac_cv_h_errno_cppflags=yes
22750  fi
22751
22752else
22753
22754  ac_cv_h_errno_cppflags=no
22755
22756fi
22757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22758    if test "$ac_cv_h_errno_cppflags" = "no"; then
22759      ac_save="$CPPFLAGS"
22760      for flag in _XOPEN_SOURCE_EXTENDED; do
22761
22762  if test x$flag != x; then
22763    CPPFLAGS="-D$flag $CPPFLAGS"
22764  fi
22765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22766/* end confdefs.h.  */
22767
22768#ifdef HAVE_SYS_TYPES_H
22769#include <sys/types.h>
22770#endif
22771#ifdef HAVE_NETDB_H
22772#include <netdb.h>
22773#endif
22774
22775int
22776main ()
22777{
22778
22779int h_e = h_errno;
22780
22781  ;
22782  return 0;
22783}
22784_ACEOF
22785if ac_fn_c_try_compile "$LINENO"; then :
22786
22787  if test x$flag != x; then
22788    ac_cv_h_errno_cppflags="$flag"
22789  else
22790    ac_cv_h_errno_cppflags=yes
22791  fi
22792
22793else
22794
22795  ac_cv_h_errno_cppflags=no
22796
22797fi
22798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22799        if test "$ac_cv_h_errno_cppflags" != "no"; then
22800          break
22801        fi
22802      done
22803      CPPFLAGS="$ac_save"
22804    fi
22805
22806fi
22807
22808  if test "$ac_cv_h_errno_cppflags" != "no"; then
22809    if test "$ac_cv_h_errno_cppflags" != "yes"; then
22810      CPPFLAGS="-D$ac_cv_h_errno_cppflags $CPPFLAGS"
22811      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -D$ac_cv_h_errno_cppflags" >&5
22812$as_echo "yes, with -D$ac_cv_h_errno_cppflags" >&6; }
22813    else
22814      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5
22815$as_echo "$ac_cv_h_errno_cppflags" >&6; }
22816    fi
22817  else
22818    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5
22819$as_echo "$ac_cv_h_errno_cppflags" >&6; }
22820  fi
22821
22822  if test "$ac_cv_h_errno_cflags" = "no"; then
22823    as_fn_error $? "can not find h_errno in netdb.h" "$LINENO" 5
22824  fi
22825fi
22826
22827# Check whether --enable-allocator-uses-mmap was given.
22828if test "${enable_allocator_uses_mmap+set}" = set; then :
22829  enableval=$enable_allocator_uses_mmap;  if test "$enableval" = "yes"; then
22830        ac_rc=yes
22831for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
22832    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
22833    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
22834    case $ac_type in
22835        header )
22836            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22837            ac_var="ac_cv_header_$ac_item"
22838            ;;
22839        file )
22840            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22841            ac_var="ac_cv_file_$ac_item"
22842            ;;
22843        func )   ac_var="ac_cv_func_$ac_item"   ;;
22844        struct ) ac_var="ac_cv_struct_$ac_item" ;;
22845        define ) ac_var="ac_cv_define_$ac_item" ;;
22846        custom ) ac_var="$ac_item" ;;
22847    esac
22848    eval "ac_val=\$$ac_var"
22849    if test ".$ac_val" != .yes; then
22850        ac_rc=no
22851        break
22852    fi
22853done
22854if test ".$ac_rc" = .yes; then
22855    :
22856
22857$as_echo "#define APR_ALLOCATOR_USES_MMAP 1" >>confdefs.h
22858
22859else
22860    :
22861    as_fn_error $? "mmap()/MAP_ANON not supported" "$LINENO" 5
22862
22863fi
22864
22865    fi
22866
22867fi
22868
22869
22870ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22871if test "x$ac_cv_type_off_t" = xyes; then :
22872
22873else
22874
22875cat >>confdefs.h <<_ACEOF
22876#define off_t long int
22877_ACEOF
22878
22879fi
22880
22881ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22882if test "x$ac_cv_type_pid_t" = xyes; then :
22883
22884else
22885
22886cat >>confdefs.h <<_ACEOF
22887#define pid_t int
22888_ACEOF
22889
22890fi
22891
22892ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22893if test "x$ac_cv_type_size_t" = xyes; then :
22894
22895else
22896
22897cat >>confdefs.h <<_ACEOF
22898#define size_t unsigned int
22899_ACEOF
22900
22901fi
22902
22903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22904$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22905if ${ac_cv_type_uid_t+:} false; then :
22906  $as_echo_n "(cached) " >&6
22907else
22908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22909/* end confdefs.h.  */
22910#include <sys/types.h>
22911
22912_ACEOF
22913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22914  $EGREP "uid_t" >/dev/null 2>&1; then :
22915  ac_cv_type_uid_t=yes
22916else
22917  ac_cv_type_uid_t=no
22918fi
22919rm -f conftest*
22920
22921fi
22922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22923$as_echo "$ac_cv_type_uid_t" >&6; }
22924if test $ac_cv_type_uid_t = no; then
22925
22926$as_echo "#define uid_t int" >>confdefs.h
22927
22928
22929$as_echo "#define gid_t int" >>confdefs.h
22930
22931fi
22932
22933ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22934if test "x$ac_cv_type_ssize_t" = xyes; then :
22935
22936else
22937
22938cat >>confdefs.h <<_ACEOF
22939#define ssize_t int
22940_ACEOF
22941
22942fi
22943
22944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22945$as_echo_n "checking for inline... " >&6; }
22946if ${ac_cv_c_inline+:} false; then :
22947  $as_echo_n "(cached) " >&6
22948else
22949  ac_cv_c_inline=no
22950for ac_kw in inline __inline__ __inline; do
22951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22952/* end confdefs.h.  */
22953#ifndef __cplusplus
22954typedef int foo_t;
22955static $ac_kw foo_t static_foo () {return 0; }
22956$ac_kw foo_t foo () {return 0; }
22957#endif
22958
22959_ACEOF
22960if ac_fn_c_try_compile "$LINENO"; then :
22961  ac_cv_c_inline=$ac_kw
22962fi
22963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22964  test "$ac_cv_c_inline" != no && break
22965done
22966
22967fi
22968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22969$as_echo "$ac_cv_c_inline" >&6; }
22970
22971case $ac_cv_c_inline in
22972  inline | yes) ;;
22973  *)
22974    case $ac_cv_c_inline in
22975      no) ac_val=;;
22976      *) ac_val=$ac_cv_c_inline;;
22977    esac
22978    cat >>confdefs.h <<_ACEOF
22979#ifndef __cplusplus
22980#define inline $ac_val
22981#endif
22982_ACEOF
22983    ;;
22984esac
22985
22986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22987$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22988if ${ac_cv_c_const+:} false; then :
22989  $as_echo_n "(cached) " >&6
22990else
22991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22992/* end confdefs.h.  */
22993
22994int
22995main ()
22996{
22997
22998#ifndef __cplusplus
22999  /* Ultrix mips cc rejects this sort of thing.  */
23000  typedef int charset[2];
23001  const charset cs = { 0, 0 };
23002  /* SunOS 4.1.1 cc rejects this.  */
23003  char const *const *pcpcc;
23004  char **ppc;
23005  /* NEC SVR4.0.2 mips cc rejects this.  */
23006  struct point {int x, y;};
23007  static struct point const zero = {0,0};
23008  /* AIX XL C 1.02.0.0 rejects this.
23009     It does not let you subtract one const X* pointer from another in
23010     an arm of an if-expression whose if-part is not a constant
23011     expression */
23012  const char *g = "string";
23013  pcpcc = &g + (g ? g-g : 0);
23014  /* HPUX 7.0 cc rejects these. */
23015  ++pcpcc;
23016  ppc = (char**) pcpcc;
23017  pcpcc = (char const *const *) ppc;
23018  { /* SCO 3.2v4 cc rejects this sort of thing.  */
23019    char tx;
23020    char *t = &tx;
23021    char const *s = 0 ? (char *) 0 : (char const *) 0;
23022
23023    *t++ = 0;
23024    if (s) return 0;
23025  }
23026  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23027    int x[] = {25, 17};
23028    const int *foo = &x[0];
23029    ++foo;
23030  }
23031  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23032    typedef const int *iptr;
23033    iptr p = 0;
23034    ++p;
23035  }
23036  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23037       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23038    struct s { int j; const int *ap[3]; } bx;
23039    struct s *b = &bx; b->j = 5;
23040  }
23041  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23042    const int foo = 10;
23043    if (!foo) return 0;
23044  }
23045  return !cs[0] && !zero.x;
23046#endif
23047
23048  ;
23049  return 0;
23050}
23051_ACEOF
23052if ac_fn_c_try_compile "$LINENO"; then :
23053  ac_cv_c_const=yes
23054else
23055  ac_cv_c_const=no
23056fi
23057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23058fi
23059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23060$as_echo "$ac_cv_c_const" >&6; }
23061if test $ac_cv_c_const = no; then
23062
23063$as_echo "#define const /**/" >>confdefs.h
23064
23065fi
23066
23067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
23068$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
23069if ${ac_cv_func_setpgrp_void+:} false; then :
23070  $as_echo_n "(cached) " >&6
23071else
23072  if test "$cross_compiling" = yes; then :
23073  as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
23074else
23075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23076/* end confdefs.h.  */
23077$ac_includes_default
23078int
23079main ()
23080{
23081/* If this system has a BSD-style setpgrp which takes arguments,
23082  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
23083  exit successfully. */
23084  return setpgrp (1,1) != -1;
23085  ;
23086  return 0;
23087}
23088_ACEOF
23089if ac_fn_c_try_run "$LINENO"; then :
23090  ac_cv_func_setpgrp_void=no
23091else
23092  ac_cv_func_setpgrp_void=yes
23093fi
23094rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23095  conftest.$ac_objext conftest.beam conftest.$ac_ext
23096fi
23097
23098fi
23099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
23100$as_echo "$ac_cv_func_setpgrp_void" >&6; }
23101if test $ac_cv_func_setpgrp_void = yes; then
23102
23103$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
23104
23105fi
23106
23107
23108
23109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
23110$as_echo_n "checking for socklen_t... " >&6; }
23111if ${ac_cv_socklen_t+:} false; then :
23112  $as_echo_n "(cached) " >&6
23113else
23114
23115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23116/* end confdefs.h.  */
23117
23118#ifdef HAVE_SYS_TYPES_H
23119#include <sys/types.h>
23120#endif
23121#ifdef HAVE_SYS_SOCKET_H
23122#include <sys/socket.h>
23123#endif
23124
23125int
23126main ()
23127{
23128
23129socklen_t foo = (socklen_t) 0;
23130
23131  ;
23132  return 0;
23133}
23134_ACEOF
23135if ac_fn_c_try_compile "$LINENO"; then :
23136
23137    ac_cv_socklen_t=yes
23138
23139else
23140
23141    ac_cv_socklen_t=no
23142
23143fi
23144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23145
23146fi
23147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_socklen_t" >&5
23148$as_echo "$ac_cv_socklen_t" >&6; }
23149
23150if test "$ac_cv_socklen_t" = "yes"; then
23151
23152$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
23153
23154fi
23155
23156
23157# The cast to long int works around a bug in the HP C Compiler
23158# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23159# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23160# This bug is HP SR number 8606223364.
23161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
23162$as_echo_n "checking size of void*... " >&6; }
23163if ${ac_cv_sizeof_voidp+:} false; then :
23164  $as_echo_n "(cached) " >&6
23165else
23166  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
23167
23168else
23169  if test "$ac_cv_type_voidp" = yes; then
23170     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23172as_fn_error 77 "cannot compute sizeof (void*)
23173See \`config.log' for more details" "$LINENO" 5; }
23174   else
23175     ac_cv_sizeof_voidp=0
23176   fi
23177fi
23178
23179fi
23180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
23181$as_echo "$ac_cv_sizeof_voidp" >&6; }
23182
23183
23184
23185cat >>confdefs.h <<_ACEOF
23186#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
23187_ACEOF
23188
23189
23190
23191if test "x$ac_cv_sizeof_voidp" != "x"; then
23192    voidp_size=$ac_cv_sizeof_voidp
23193else
23194    as_fn_error $? "Cannot determine size of void*" "$LINENO" 5
23195fi
23196
23197# The cast to long int works around a bug in the HP C Compiler
23198# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23199# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23200# This bug is HP SR number 8606223364.
23201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
23202$as_echo_n "checking size of char... " >&6; }
23203if ${ac_cv_sizeof_char+:} false; then :
23204  $as_echo_n "(cached) " >&6
23205else
23206  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
23207
23208else
23209  if test "$ac_cv_type_char" = yes; then
23210     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23212as_fn_error 77 "cannot compute sizeof (char)
23213See \`config.log' for more details" "$LINENO" 5; }
23214   else
23215     ac_cv_sizeof_char=0
23216   fi
23217fi
23218
23219fi
23220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
23221$as_echo "$ac_cv_sizeof_char" >&6; }
23222
23223
23224
23225cat >>confdefs.h <<_ACEOF
23226#define SIZEOF_CHAR $ac_cv_sizeof_char
23227_ACEOF
23228
23229
23230# The cast to long int works around a bug in the HP C Compiler
23231# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23232# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23233# This bug is HP SR number 8606223364.
23234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23235$as_echo_n "checking size of int... " >&6; }
23236if ${ac_cv_sizeof_int+:} false; then :
23237  $as_echo_n "(cached) " >&6
23238else
23239  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
23240
23241else
23242  if test "$ac_cv_type_int" = yes; then
23243     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23245as_fn_error 77 "cannot compute sizeof (int)
23246See \`config.log' for more details" "$LINENO" 5; }
23247   else
23248     ac_cv_sizeof_int=0
23249   fi
23250fi
23251
23252fi
23253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23254$as_echo "$ac_cv_sizeof_int" >&6; }
23255
23256
23257
23258cat >>confdefs.h <<_ACEOF
23259#define SIZEOF_INT $ac_cv_sizeof_int
23260_ACEOF
23261
23262
23263# The cast to long int works around a bug in the HP C Compiler
23264# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23265# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23266# This bug is HP SR number 8606223364.
23267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23268$as_echo_n "checking size of long... " >&6; }
23269if ${ac_cv_sizeof_long+:} false; then :
23270  $as_echo_n "(cached) " >&6
23271else
23272  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
23273
23274else
23275  if test "$ac_cv_type_long" = yes; then
23276     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23278as_fn_error 77 "cannot compute sizeof (long)
23279See \`config.log' for more details" "$LINENO" 5; }
23280   else
23281     ac_cv_sizeof_long=0
23282   fi
23283fi
23284
23285fi
23286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23287$as_echo "$ac_cv_sizeof_long" >&6; }
23288
23289
23290
23291cat >>confdefs.h <<_ACEOF
23292#define SIZEOF_LONG $ac_cv_sizeof_long
23293_ACEOF
23294
23295
23296# The cast to long int works around a bug in the HP C Compiler
23297# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23298# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23299# This bug is HP SR number 8606223364.
23300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23301$as_echo_n "checking size of short... " >&6; }
23302if ${ac_cv_sizeof_short+:} false; then :
23303  $as_echo_n "(cached) " >&6
23304else
23305  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
23306
23307else
23308  if test "$ac_cv_type_short" = yes; then
23309     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23311as_fn_error 77 "cannot compute sizeof (short)
23312See \`config.log' for more details" "$LINENO" 5; }
23313   else
23314     ac_cv_sizeof_short=0
23315   fi
23316fi
23317
23318fi
23319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23320$as_echo "$ac_cv_sizeof_short" >&6; }
23321
23322
23323
23324cat >>confdefs.h <<_ACEOF
23325#define SIZEOF_SHORT $ac_cv_sizeof_short
23326_ACEOF
23327
23328
23329# The cast to long int works around a bug in the HP C Compiler
23330# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23331# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23332# This bug is HP SR number 8606223364.
23333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23334$as_echo_n "checking size of long long... " >&6; }
23335if ${ac_cv_sizeof_long_long+:} false; then :
23336  $as_echo_n "(cached) " >&6
23337else
23338  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
23339
23340else
23341  if test "$ac_cv_type_long_long" = yes; then
23342     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23344as_fn_error 77 "cannot compute sizeof (long long)
23345See \`config.log' for more details" "$LINENO" 5; }
23346   else
23347     ac_cv_sizeof_long_long=0
23348   fi
23349fi
23350
23351fi
23352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23353$as_echo "$ac_cv_sizeof_long_long" >&6; }
23354
23355
23356
23357cat >>confdefs.h <<_ACEOF
23358#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23359_ACEOF
23360
23361
23362
23363if test "$ac_cv_sizeof_short" = "2"; then
23364    short_value=short
23365fi
23366if test "$ac_cv_sizeof_int" = "4"; then
23367    int_value=int
23368fi
23369# Now we need to find what apr_int64_t (sizeof == 8) will be.
23370# The first match is our preference.
23371if test "$ac_cv_sizeof_int" = "8"; then
23372    int64_literal='#define APR_INT64_C(val) (val)'
23373    uint64_literal='#define APR_UINT64_C(val) (val##U)'
23374    int64_t_fmt='#define APR_INT64_T_FMT "d"'
23375    uint64_t_fmt='#define APR_UINT64_T_FMT "u"'
23376    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "x"'
23377    int64_value="int"
23378    long_value=int
23379    int64_strfn="strtoi"
23380elif test "$ac_cv_sizeof_long" = "8"; then
23381    int64_literal='#define APR_INT64_C(val) (val##L)'
23382    uint64_literal='#define APR_UINT64_C(val) (val##UL)'
23383    int64_t_fmt='#define APR_INT64_T_FMT "ld"'
23384    uint64_t_fmt='#define APR_UINT64_T_FMT "lu"'
23385    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "lx"'
23386    int64_value="long"
23387    long_value=long
23388    int64_strfn="strtol"
23389elif test "$ac_cv_sizeof_long_long" = "8"; then
23390    int64_literal='#define APR_INT64_C(val) (val##LL)'
23391    uint64_literal='#define APR_UINT64_C(val) (val##ULL)'
23392    # Linux, Solaris, FreeBSD all support ll with printf.
23393    # BSD 4.4 originated 'q'.  Solaris is more popular and
23394    # doesn't support 'q'.  Solaris wins.  Exceptions can
23395    # go to the OS-dependent section.
23396    int64_t_fmt='#define APR_INT64_T_FMT "lld"'
23397    uint64_t_fmt='#define APR_UINT64_T_FMT "llu"'
23398    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "llx"'
23399    int64_value="long long"
23400    long_value="long long"
23401    int64_strfn="strtoll"
23402elif test "$ac_cv_sizeof_longlong" = "8"; then
23403    int64_literal='#define APR_INT64_C(val) (val##LL)'
23404    uint64_literal='#define APR_UINT64_C(val) (val##ULL)'
23405    int64_t_fmt='#define APR_INT64_T_FMT "qd"'
23406    uint64_t_fmt='#define APR_UINT64_T_FMT "qu"'
23407    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "qx"'
23408    int64_value="__int64"
23409    long_value="__int64"
23410    int64_strfn="strtoll"
23411else
23412    # int64_literal may be overriden if your compiler thinks you have
23413    # a 64-bit value but APR does not agree.
23414    as_fn_error $? "could not detect a 64-bit integer type" "$LINENO" 5
23415fi
23416
23417# If present, allow the C99 macro INT64_C to override our conversion.
23418#
23419# HP-UX's ANSI C compiler provides this without any includes, so we
23420# will first look for INT64_C without adding stdint.h
23421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for INT64_C" >&5
23422$as_echo_n "checking for INT64_C... " >&6; }
23423if ${apr_cv_define_INT64_C+:} false; then :
23424  $as_echo_n "(cached) " >&6
23425else
23426
23427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23428/* end confdefs.h.  */
23429#ifdef INT64_C
23430YES_IS_DEFINED
23431#endif
23432_ACEOF
23433if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23434  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
23435  apr_cv_define_INT64_C=yes
23436else
23437
23438    # Now check for INT64_C in stdint.h
23439    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23440/* end confdefs.h.  */
23441#include <stdint.h>
23442#ifdef INT64_C
23443YES_IS_DEFINED
23444#endif
23445_ACEOF
23446if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23447  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
23448  apr_cv_define_INT64_C=yes
23449else
23450  apr_cv_define_INT64_C=no
23451fi
23452rm -f conftest*
23453
23454fi
23455rm -f conftest*
23456
23457fi
23458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_INT64_C" >&5
23459$as_echo "$apr_cv_define_INT64_C" >&6; }
23460
23461if test "$apr_cv_define_INT64_C" = "yes"; then
23462    int64_literal='#define APR_INT64_C(val) INT64_C(val)'
23463    uint64_literal='#define APR_UINT64_C(val) UINT64_C(val)'
23464    stdint=1
23465else
23466    stdint=0
23467fi
23468
23469if test "$ac_cv_type_size_t" = "yes"; then
23470    size_t_value="size_t"
23471else
23472    size_t_value="apr_int32_t"
23473fi
23474if test "$ac_cv_type_ssize_t" = "yes"; then
23475    ssize_t_value="ssize_t"
23476else
23477    ssize_t_value="apr_int32_t"
23478fi
23479if test "$ac_cv_socklen_t" = "yes"; then
23480    socklen_t_value="socklen_t"
23481    case $host in
23482        *-hp-hpux*)
23483            if test "$ac_cv_sizeof_long" = "8"; then
23484                # 64-bit HP-UX requires 32-bit socklens in
23485                # kernel, but user-space declarations say
23486                # 64-bit (socklen_t == size_t == long).
23487                # This will result in many compile warnings,
23488                # but we're functionally busted otherwise.
23489                socklen_t_value="int"
23490            fi
23491            ;;
23492    esac
23493else
23494    socklen_t_value="int"
23495fi
23496
23497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
23498$as_echo_n "checking size of pid_t... " >&6; }
23499if ${ac_cv_sizeof_pid_t+:} false; then :
23500  $as_echo_n "(cached) " >&6
23501else
23502  if test "$cross_compiling" = yes; then :
23503  ac_cv_sizeof_pid_t=8
23504else
23505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23506/* end confdefs.h.  */
23507#include <stdio.h>
23508#include <sys/types.h>
23509#ifdef WIN32
23510#define binmode "b"
23511#else
23512#define binmode
23513#endif
23514main()
23515{
23516  FILE *f=fopen("conftestval", "w" binmode);
23517  if (!f) exit(1);
23518  fprintf(f, "%d\n", sizeof(pid_t));
23519  exit(0);
23520}
23521_ACEOF
23522if ac_fn_c_try_run "$LINENO"; then :
23523  ac_cv_sizeof_pid_t=`cat conftestval`
23524else
23525  ac_cv_sizeof_pid_t=0
23526fi
23527rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23528  conftest.$ac_objext conftest.beam conftest.$ac_ext
23529fi
23530
23531fi
23532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
23533$as_echo "$ac_cv_sizeof_pid_t" >&6; }
23534
23535cat >>confdefs.h <<_ACEOF
23536#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
23537_ACEOF
23538
23539
23540
23541if test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_short"; then
23542    pid_t_fmt='#define APR_PID_T_FMT "hd"'
23543elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_int"; then
23544    pid_t_fmt='#define APR_PID_T_FMT "d"'
23545elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long"; then
23546    pid_t_fmt='#define APR_PID_T_FMT "ld"'
23547elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long_long"; then
23548    pid_t_fmt='#define APR_PID_T_FMT APR_INT64_T_FMT'
23549else
23550    pid_t_fmt='#error Can not determine the proper size for pid_t'
23551fi
23552
23553# Basically, we have tried to figure out the correct format strings
23554# for APR types which vary between platforms, but we don't always get
23555# it right.
23556case $host in
23557   s390*linux*)
23558       # uniquely, the 31-bit Linux/s390 uses "unsigned long int"
23559       # for size_t rather than "unsigned int":
23560       size_t_fmt="lu"
23561       ssize_t_fmt="ld"
23562       ;;
23563   *-os2*)
23564       size_t_fmt="lu"
23565       ;;
23566   *-solaris*)
23567       if test "$ac_cv_sizeof_long" = "8"; then
23568         pid_t_fmt='#define APR_PID_T_FMT "d"'
23569       else
23570         pid_t_fmt='#define APR_PID_T_FMT "ld"'
23571       fi
23572       ;;
23573   *aix4*|*aix5*)
23574       ssize_t_fmt="ld"
23575       size_t_fmt="lu"
23576       ;;
23577    *beos*)
23578        ssize_t_fmt="ld"
23579        size_t_fmt="ld"
23580        ;;
23581    *apple-darwin*)
23582        osver=`uname -r`
23583        case $osver in
23584           [0-7].*)
23585              ssize_t_fmt="d"
23586              ;;
23587           *)
23588              ssize_t_fmt="ld"
23589              ;;
23590        esac
23591        size_t_fmt="lu"
23592        ;;
23593    *-mingw*)
23594        int64_t_fmt='#define APR_INT64_T_FMT "I64d"'
23595        uint64_t_fmt='#define APR_UINT64_T_FMT "I64u"'
23596        uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "I64x"'
23597        int64_value="__int64"
23598        long_value="__int64"
23599        int64_strfn="_strtoi64"
23600        ;;
23601esac
23602
23603
23604
23605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and int are the same" >&5
23606$as_echo_n "checking whether ssize_t and int are the same... " >&6; }
23607if ${apr_cv_typematch_ssize_t_int+:} false; then :
23608  $as_echo_n "(cached) " >&6
23609else
23610
23611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23612/* end confdefs.h.  */
23613$ac_includes_default
23614int
23615main ()
23616{
23617
23618    int foo[0 - !__builtin_types_compatible_p(ssize_t, int)];
23619
23620  ;
23621  return 0;
23622}
23623_ACEOF
23624if ac_fn_c_try_compile "$LINENO"; then :
23625  apr_cv_typematch_ssize_t_int=yes
23626ssize_t_fmt="d"
23627else
23628  apr_cv_typematch_ssize_t_int=no
23629fi
23630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23631fi
23632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_int" >&5
23633$as_echo "$apr_cv_typematch_ssize_t_int" >&6; }
23634
23635
23636
23637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and long are the same" >&5
23638$as_echo_n "checking whether ssize_t and long are the same... " >&6; }
23639if ${apr_cv_typematch_ssize_t_long+:} false; then :
23640  $as_echo_n "(cached) " >&6
23641else
23642
23643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23644/* end confdefs.h.  */
23645$ac_includes_default
23646int
23647main ()
23648{
23649
23650    int foo[0 - !__builtin_types_compatible_p(ssize_t, long)];
23651
23652  ;
23653  return 0;
23654}
23655_ACEOF
23656if ac_fn_c_try_compile "$LINENO"; then :
23657  apr_cv_typematch_ssize_t_long=yes
23658ssize_t_fmt="ld"
23659else
23660  apr_cv_typematch_ssize_t_long=no
23661fi
23662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23663fi
23664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_long" >&5
23665$as_echo "$apr_cv_typematch_ssize_t_long" >&6; }
23666
23667
23668
23669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned int are the same" >&5
23670$as_echo_n "checking whether size_t and unsigned int are the same... " >&6; }
23671if ${apr_cv_typematch_size_t_unsigned_int+:} false; then :
23672  $as_echo_n "(cached) " >&6
23673else
23674
23675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23676/* end confdefs.h.  */
23677$ac_includes_default
23678int
23679main ()
23680{
23681
23682    int foo[0 - !__builtin_types_compatible_p(size_t, unsigned int)];
23683
23684  ;
23685  return 0;
23686}
23687_ACEOF
23688if ac_fn_c_try_compile "$LINENO"; then :
23689  apr_cv_typematch_size_t_unsigned_int=yes
23690size_t_fmt="u"
23691else
23692  apr_cv_typematch_size_t_unsigned_int=no
23693fi
23694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23695fi
23696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_int" >&5
23697$as_echo "$apr_cv_typematch_size_t_unsigned_int" >&6; }
23698
23699
23700
23701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned long are the same" >&5
23702$as_echo_n "checking whether size_t and unsigned long are the same... " >&6; }
23703if ${apr_cv_typematch_size_t_unsigned_long+:} false; then :
23704  $as_echo_n "(cached) " >&6
23705else
23706
23707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23708/* end confdefs.h.  */
23709$ac_includes_default
23710int
23711main ()
23712{
23713
23714    int foo[0 - !__builtin_types_compatible_p(size_t, unsigned long)];
23715
23716  ;
23717  return 0;
23718}
23719_ACEOF
23720if ac_fn_c_try_compile "$LINENO"; then :
23721  apr_cv_typematch_size_t_unsigned_long=yes
23722size_t_fmt="lu"
23723else
23724  apr_cv_typematch_size_t_unsigned_long=no
23725fi
23726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23727fi
23728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_long" >&5
23729$as_echo "$apr_cv_typematch_size_t_unsigned_long" >&6; }
23730
23731
23732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23733$as_echo_n "checking size of ssize_t... " >&6; }
23734if ${ac_cv_sizeof_ssize_t+:} false; then :
23735  $as_echo_n "(cached) " >&6
23736else
23737  if test "$cross_compiling" = yes; then :
23738  ac_cv_sizeof_ssize_t=8
23739else
23740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23741/* end confdefs.h.  */
23742#include <stdio.h>
23743#include <sys/types.h>
23744#ifdef WIN32
23745#define binmode "b"
23746#else
23747#define binmode
23748#endif
23749main()
23750{
23751  FILE *f=fopen("conftestval", "w" binmode);
23752  if (!f) exit(1);
23753  fprintf(f, "%d\n", sizeof(ssize_t));
23754  exit(0);
23755}
23756_ACEOF
23757if ac_fn_c_try_run "$LINENO"; then :
23758  ac_cv_sizeof_ssize_t=`cat conftestval`
23759else
23760  ac_cv_sizeof_ssize_t=0
23761fi
23762rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23763  conftest.$ac_objext conftest.beam conftest.$ac_ext
23764fi
23765
23766fi
23767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23768$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23769
23770cat >>confdefs.h <<_ACEOF
23771#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23772_ACEOF
23773
23774
23775
23776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_ssize_t" >&5
23777$as_echo_n "checking which format to use for apr_ssize_t... " >&6; }
23778if test -n "$ssize_t_fmt"; then
23779    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$ssize_t_fmt" >&5
23780$as_echo "%$ssize_t_fmt" >&6; }
23781elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_int"; then
23782    ssize_t_fmt="d"
23783    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5
23784$as_echo "%d" >&6; }
23785elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_long"; then
23786    ssize_t_fmt="ld"
23787    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5
23788$as_echo "%ld" >&6; }
23789else
23790    as_fn_error $? "could not determine the proper format for apr_ssize_t" "$LINENO" 5
23791fi
23792
23793ssize_t_fmt="#define APR_SSIZE_T_FMT \"$ssize_t_fmt\""
23794
23795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23796$as_echo_n "checking size of size_t... " >&6; }
23797if ${ac_cv_sizeof_size_t+:} false; then :
23798  $as_echo_n "(cached) " >&6
23799else
23800  if test "$cross_compiling" = yes; then :
23801  ac_cv_sizeof_size_t=8
23802else
23803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23804/* end confdefs.h.  */
23805#include <stdio.h>
23806#include <stddef.h>
23807#ifdef WIN32
23808#define binmode "b"
23809#else
23810#define binmode
23811#endif
23812main()
23813{
23814  FILE *f=fopen("conftestval", "w" binmode);
23815  if (!f) exit(1);
23816  fprintf(f, "%d\n", sizeof(size_t));
23817  exit(0);
23818}
23819_ACEOF
23820if ac_fn_c_try_run "$LINENO"; then :
23821  ac_cv_sizeof_size_t=`cat conftestval`
23822else
23823  ac_cv_sizeof_size_t=0
23824fi
23825rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23826  conftest.$ac_objext conftest.beam conftest.$ac_ext
23827fi
23828
23829fi
23830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23831$as_echo "$ac_cv_sizeof_size_t" >&6; }
23832
23833cat >>confdefs.h <<_ACEOF
23834#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23835_ACEOF
23836
23837
23838
23839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_size_t" >&5
23840$as_echo_n "checking which format to use for apr_size_t... " >&6; }
23841if test -n "$size_t_fmt"; then
23842    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$size_t_fmt" >&5
23843$as_echo "%$size_t_fmt" >&6; }
23844elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_int"; then
23845    size_t_fmt="d"
23846    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5
23847$as_echo "%d" >&6; }
23848elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_long"; then
23849    size_t_fmt="ld"
23850    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5
23851$as_echo "%ld" >&6; }
23852else
23853    as_fn_error $? "could not determine the proper format for apr_size_t" "$LINENO" 5
23854fi
23855
23856size_t_fmt="#define APR_SIZE_T_FMT \"$size_t_fmt\""
23857
23858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23859$as_echo_n "checking size of off_t... " >&6; }
23860if ${ac_cv_sizeof_off_t+:} false; then :
23861  $as_echo_n "(cached) " >&6
23862else
23863  if test "$cross_compiling" = yes; then :
23864  ac_cv_sizeof_off_t=8
23865else
23866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23867/* end confdefs.h.  */
23868#include <stdio.h>
23869#include <sys/types.h>
23870#ifdef WIN32
23871#define binmode "b"
23872#else
23873#define binmode
23874#endif
23875main()
23876{
23877  FILE *f=fopen("conftestval", "w" binmode);
23878  if (!f) exit(1);
23879  fprintf(f, "%d\n", sizeof(off_t));
23880  exit(0);
23881}
23882_ACEOF
23883if ac_fn_c_try_run "$LINENO"; then :
23884  ac_cv_sizeof_off_t=`cat conftestval`
23885else
23886  ac_cv_sizeof_off_t=0
23887fi
23888rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23889  conftest.$ac_objext conftest.beam conftest.$ac_ext
23890fi
23891
23892fi
23893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23894$as_echo "$ac_cv_sizeof_off_t" >&6; }
23895
23896cat >>confdefs.h <<_ACEOF
23897#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23898_ACEOF
23899
23900
23901
23902if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
23903    # Enable LFS
23904    aprlfs=1
23905    for ac_func in mmap64 sendfile64 sendfilev64 mkstemp64 readdir64_r
23906do :
23907  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23908ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23909if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23910  cat >>confdefs.h <<_ACEOF
23911#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23912_ACEOF
23913
23914fi
23915done
23916
23917elif test "${ac_cv_sizeof_off_t}" != "${ac_cv_sizeof_size_t}"; then
23918    # unsure of using -gt above is as portable, can can't forsee where
23919    # off_t can legitimately be smaller than size_t
23920    aprlfs=1
23921else
23922    aprlfs=0
23923fi
23924
23925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which type to use for apr_off_t" >&5
23926$as_echo_n "checking which type to use for apr_off_t... " >&6; }
23927if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
23928    # LFS is go!
23929    off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
23930    off_t_value='off64_t'
23931    off_t_strfn='apr_strtoi64'
23932elif test "${ac_cv_sizeof_off_t}x${ac_cv_sizeof_long}" = "4x4"; then
23933    # Special case: off_t may change size with _FILE_OFFSET_BITS
23934    # on 32-bit systems with LFS support.  To avoid compatibility
23935    # issues when other packages do define _FILE_OFFSET_BITS,
23936    # hard-code apr_off_t to long.
23937    off_t_value=long
23938    off_t_fmt='#define APR_OFF_T_FMT "ld"'
23939    off_t_strfn='strtol'
23940elif test "$ac_cv_type_off_t" = "yes"; then
23941    off_t_value=off_t
23942    # off_t is more commonly a long than an int; prefer that case
23943    # where int and long are the same size.
23944    if test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_long"; then
23945        off_t_fmt='#define APR_OFF_T_FMT "ld"'
23946        off_t_strfn='strtol'
23947    elif test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_int"; then
23948        off_t_fmt='#define APR_OFF_T_FMT "d"'
23949        off_t_strfn='strtoi'
23950    elif test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_long_long"; then
23951        off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
23952        off_t_strfn='apr_strtoi64'
23953    else
23954        as_fn_error $? "could not determine the size of off_t" "$LINENO" 5
23955    fi
23956    # Per OS tuning...
23957    case $host in
23958    *-mingw*)
23959        off_t_value=apr_int64_t
23960        off_t_fmt='#define APR_OFF_T_FMT "I64d"'
23961        off_t_strfn='_strtoi64'
23962        ;;
23963    esac
23964else
23965   # Fallback on int
23966   off_t_value=apr_int32_t
23967   off_t_fmt=d
23968   off_t_strfn='strtoi'
23969fi
23970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $off_t_value" >&5
23971$as_echo "$off_t_value" >&6; }
23972
23973# Regardless of whether _LARGEFILE64_SOURCE is used, on some
23974# platforms _FILE_OFFSET_BITS will affect the size of ino_t and hence
23975# the build-time ABI may be different from the apparent ABI when using
23976# APR with another package which *does* define _FILE_OFFSET_BITS.
23977# (Exactly as per the case above with off_t where LFS is *not* used)
23978#
23979# To be safe, hard-code apr_ino_t as 'unsigned long' or 'unsigned int'
23980# iff that is exactly the size of ino_t here; otherwise use ino_t as existing
23981# releases did.  To be correct, apr_ino_t should have been made an
23982# ino64_t as apr_off_t is off64_t, but this can't be done now without
23983# breaking ABI.
23984
23985# Per OS tuning...
23986case $host in
23987*mingw*)
23988    ino_t_value=apr_int64_t
23989    ;;
23990*)
23991    ino_t_value=ino_t
23992    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
23993$as_echo_n "checking size of ino_t... " >&6; }
23994if ${ac_cv_sizeof_ino_t+:} false; then :
23995  $as_echo_n "(cached) " >&6
23996else
23997  if test "$cross_compiling" = yes; then :
23998  ac_cv_sizeof_ino_t=$ac_cv_sizeof_long
23999else
24000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24001/* end confdefs.h.  */
24002#include <stdio.h>
24003$ac_includes_default
24004#ifdef WIN32
24005#define binmode "b"
24006#else
24007#define binmode
24008#endif
24009main()
24010{
24011  FILE *f=fopen("conftestval", "w" binmode);
24012  if (!f) exit(1);
24013  fprintf(f, "%d\n", sizeof(ino_t));
24014  exit(0);
24015}
24016_ACEOF
24017if ac_fn_c_try_run "$LINENO"; then :
24018  ac_cv_sizeof_ino_t=`cat conftestval`
24019else
24020  ac_cv_sizeof_ino_t=0
24021fi
24022rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24023  conftest.$ac_objext conftest.beam conftest.$ac_ext
24024fi
24025
24026fi
24027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
24028$as_echo "$ac_cv_sizeof_ino_t" >&6; }
24029
24030cat >>confdefs.h <<_ACEOF
24031#define SIZEOF_INO_T $ac_cv_sizeof_ino_t
24032_ACEOF
24033
24034
24035    if test $ac_cv_sizeof_ino_t = 4; then
24036        if test $ac_cv_sizeof_long = 4; then
24037            ino_t_value="unsigned long"
24038        else
24039            ino_t_value="unsigned int"
24040        fi
24041    fi
24042    ;;
24043esac
24044{ $as_echo "$as_me:${as_lineno-$LINENO}: using $ino_t_value for ino_t" >&5
24045$as_echo "$as_me: using $ino_t_value for ino_t" >&6;}
24046
24047# Checks for endianness
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
24049$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
24050if ${ac_cv_c_bigendian+:} false; then :
24051  $as_echo_n "(cached) " >&6
24052else
24053  ac_cv_c_bigendian=unknown
24054    # See if we're dealing with a universal compiler.
24055    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24056/* end confdefs.h.  */
24057#ifndef __APPLE_CC__
24058	       not a universal capable compiler
24059	     #endif
24060	     typedef int dummy;
24061
24062_ACEOF
24063if ac_fn_c_try_compile "$LINENO"; then :
24064
24065	# Check for potential -arch flags.  It is not universal unless
24066	# there are at least two -arch flags with different values.
24067	ac_arch=
24068	ac_prev=
24069	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
24070	 if test -n "$ac_prev"; then
24071	   case $ac_word in
24072	     i?86 | x86_64 | ppc | ppc64)
24073	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
24074		 ac_arch=$ac_word
24075	       else
24076		 ac_cv_c_bigendian=universal
24077		 break
24078	       fi
24079	       ;;
24080	   esac
24081	   ac_prev=
24082	 elif test "x$ac_word" = "x-arch"; then
24083	   ac_prev=arch
24084	 fi
24085       done
24086fi
24087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24088    if test $ac_cv_c_bigendian = unknown; then
24089      # See if sys/param.h defines the BYTE_ORDER macro.
24090      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24091/* end confdefs.h.  */
24092#include <sys/types.h>
24093	     #include <sys/param.h>
24094
24095int
24096main ()
24097{
24098#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24099		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24100		     && LITTLE_ENDIAN)
24101	      bogus endian macros
24102	     #endif
24103
24104  ;
24105  return 0;
24106}
24107_ACEOF
24108if ac_fn_c_try_compile "$LINENO"; then :
24109  # It does; now see whether it defined to BIG_ENDIAN or not.
24110	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24111/* end confdefs.h.  */
24112#include <sys/types.h>
24113		#include <sys/param.h>
24114
24115int
24116main ()
24117{
24118#if BYTE_ORDER != BIG_ENDIAN
24119		 not big endian
24120		#endif
24121
24122  ;
24123  return 0;
24124}
24125_ACEOF
24126if ac_fn_c_try_compile "$LINENO"; then :
24127  ac_cv_c_bigendian=yes
24128else
24129  ac_cv_c_bigendian=no
24130fi
24131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24132fi
24133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24134    fi
24135    if test $ac_cv_c_bigendian = unknown; then
24136      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24137      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24138/* end confdefs.h.  */
24139#include <limits.h>
24140
24141int
24142main ()
24143{
24144#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24145	      bogus endian macros
24146	     #endif
24147
24148  ;
24149  return 0;
24150}
24151_ACEOF
24152if ac_fn_c_try_compile "$LINENO"; then :
24153  # It does; now see whether it defined to _BIG_ENDIAN or not.
24154	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24155/* end confdefs.h.  */
24156#include <limits.h>
24157
24158int
24159main ()
24160{
24161#ifndef _BIG_ENDIAN
24162		 not big endian
24163		#endif
24164
24165  ;
24166  return 0;
24167}
24168_ACEOF
24169if ac_fn_c_try_compile "$LINENO"; then :
24170  ac_cv_c_bigendian=yes
24171else
24172  ac_cv_c_bigendian=no
24173fi
24174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24175fi
24176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24177    fi
24178    if test $ac_cv_c_bigendian = unknown; then
24179      # Compile a test program.
24180      if test "$cross_compiling" = yes; then :
24181  # Try to guess by grepping values from an object file.
24182	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24183/* end confdefs.h.  */
24184short int ascii_mm[] =
24185		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24186		short int ascii_ii[] =
24187		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24188		int use_ascii (int i) {
24189		  return ascii_mm[i] + ascii_ii[i];
24190		}
24191		short int ebcdic_ii[] =
24192		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24193		short int ebcdic_mm[] =
24194		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24195		int use_ebcdic (int i) {
24196		  return ebcdic_mm[i] + ebcdic_ii[i];
24197		}
24198		extern int foo;
24199
24200int
24201main ()
24202{
24203return use_ascii (foo) == use_ebcdic (foo);
24204  ;
24205  return 0;
24206}
24207_ACEOF
24208if ac_fn_c_try_compile "$LINENO"; then :
24209  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24210	      ac_cv_c_bigendian=yes
24211	    fi
24212	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24213	      if test "$ac_cv_c_bigendian" = unknown; then
24214		ac_cv_c_bigendian=no
24215	      else
24216		# finding both strings is unlikely to happen, but who knows?
24217		ac_cv_c_bigendian=unknown
24218	      fi
24219	    fi
24220fi
24221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24222else
24223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24224/* end confdefs.h.  */
24225$ac_includes_default
24226int
24227main ()
24228{
24229
24230	     /* Are we little or big endian?  From Harbison&Steele.  */
24231	     union
24232	     {
24233	       long int l;
24234	       char c[sizeof (long int)];
24235	     } u;
24236	     u.l = 1;
24237	     return u.c[sizeof (long int) - 1] == 1;
24238
24239  ;
24240  return 0;
24241}
24242_ACEOF
24243if ac_fn_c_try_run "$LINENO"; then :
24244  ac_cv_c_bigendian=no
24245else
24246  ac_cv_c_bigendian=yes
24247fi
24248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24249  conftest.$ac_objext conftest.beam conftest.$ac_ext
24250fi
24251
24252    fi
24253fi
24254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
24255$as_echo "$ac_cv_c_bigendian" >&6; }
24256 case $ac_cv_c_bigendian in #(
24257   yes)
24258     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
24259;; #(
24260   no)
24261      ;; #(
24262   universal)
24263
24264$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
24265
24266     ;; #(
24267   *)
24268     as_fn_error $? "unknown endianness
24269 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
24270 esac
24271
24272if test $ac_cv_c_bigendian = yes; then
24273    bigendian=1
24274else
24275    bigendian=0
24276fi
24277
24278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iovec" >&5
24279$as_echo_n "checking size of struct iovec... " >&6; }
24280if ${ac_cv_sizeof_struct_iovec+:} false; then :
24281  $as_echo_n "(cached) " >&6
24282else
24283  if test "$cross_compiling" = yes; then :
24284  ac_cv_sizeof_struct_iovec=0
24285else
24286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24287/* end confdefs.h.  */
24288#include <stdio.h>
24289#include <sys/types.h>
24290#include <sys/uio.h>
24291#ifdef WIN32
24292#define binmode "b"
24293#else
24294#define binmode
24295#endif
24296main()
24297{
24298  FILE *f=fopen("conftestval", "w" binmode);
24299  if (!f) exit(1);
24300  fprintf(f, "%d\n", sizeof(struct iovec));
24301  exit(0);
24302}
24303_ACEOF
24304if ac_fn_c_try_run "$LINENO"; then :
24305  ac_cv_sizeof_struct_iovec=`cat conftestval`
24306else
24307  ac_cv_sizeof_struct_iovec=0
24308fi
24309rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24310  conftest.$ac_objext conftest.beam conftest.$ac_ext
24311fi
24312
24313fi
24314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iovec" >&5
24315$as_echo "$ac_cv_sizeof_struct_iovec" >&6; }
24316
24317cat >>confdefs.h <<_ACEOF
24318#define SIZEOF_STRUCT_IOVEC $ac_cv_sizeof_struct_iovec
24319_ACEOF
24320
24321
24322if test "$ac_cv_sizeof_struct_iovec" = "0"; then
24323    have_iovec=0
24324else
24325    have_iovec=1
24326fi
24327
24328
24329
24330
24331
24332
24333
24334
24335
24336
24337
24338
24339
24340
24341
24342
24343
24344
24345
24346
24347
24348
24349
24350
24351
24352for ac_func in strnicmp
24353do :
24354  ac_fn_c_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp"
24355if test "x$ac_cv_func_strnicmp" = xyes; then :
24356  cat >>confdefs.h <<_ACEOF
24357#define HAVE_STRNICMP 1
24358_ACEOF
24359 have_strnicmp="1"
24360else
24361  have_strnicmp="0"
24362fi
24363done
24364
24365for ac_func in strncasecmp
24366do :
24367  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
24368if test "x$ac_cv_func_strncasecmp" = xyes; then :
24369  cat >>confdefs.h <<_ACEOF
24370#define HAVE_STRNCASECMP 1
24371_ACEOF
24372 have_strncasecmp="1"
24373else
24374  have_strncasecmp="0"
24375fi
24376done
24377
24378for ac_func in stricmp
24379do :
24380  ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp"
24381if test "x$ac_cv_func_stricmp" = xyes; then :
24382  cat >>confdefs.h <<_ACEOF
24383#define HAVE_STRICMP 1
24384_ACEOF
24385 have_stricmp="1"
24386else
24387  have_stricmp="0"
24388fi
24389done
24390
24391for ac_func in strcasecmp
24392do :
24393  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
24394if test "x$ac_cv_func_strcasecmp" = xyes; then :
24395  cat >>confdefs.h <<_ACEOF
24396#define HAVE_STRCASECMP 1
24397_ACEOF
24398 have_strcasecmp="1"
24399else
24400  have_strcasecmp="0"
24401fi
24402done
24403
24404for ac_func in strdup
24405do :
24406  ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
24407if test "x$ac_cv_func_strdup" = xyes; then :
24408  cat >>confdefs.h <<_ACEOF
24409#define HAVE_STRDUP 1
24410_ACEOF
24411 have_strdup="1"
24412else
24413  have_strdup="0"
24414fi
24415done
24416
24417for ac_func in strstr
24418do :
24419  ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
24420if test "x$ac_cv_func_strstr" = xyes; then :
24421  cat >>confdefs.h <<_ACEOF
24422#define HAVE_STRSTR 1
24423_ACEOF
24424 have_strstr="1"
24425else
24426  have_strstr="0"
24427fi
24428done
24429
24430for ac_func in memchr
24431do :
24432  ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
24433if test "x$ac_cv_func_memchr" = xyes; then :
24434  cat >>confdefs.h <<_ACEOF
24435#define HAVE_MEMCHR 1
24436_ACEOF
24437 have_memchr="1"
24438else
24439  have_memchr="0"
24440fi
24441done
24442
24443as_ac_var=`$as_echo "ac_cv_func_$int64_strfn" | $as_tr_sh`
24444ac_fn_c_check_func "$LINENO" "$int64_strfn" "$as_ac_var"
24445if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24446  have_int64_strfn="1"
24447else
24448  have_int64_strfn="0"
24449fi
24450
24451
24452if test "$have_int64_strfn" = "0" && test "$int64_strfn" = "strtoll"; then
24453    int64_strfn="strtoq"
24454    ac_fn_c_check_func "$LINENO" "strtoq" "ac_cv_func_strtoq"
24455if test "x$ac_cv_func_strtoq" = xyes; then :
24456  have_int64_strfn=1
24457else
24458  have_int64_strfn=0
24459fi
24460
24461fi
24462
24463if test "$have_int64_strfn" = "1"; then
24464
24465cat >>confdefs.h <<_ACEOF
24466#define APR_INT64_STRFN $int64_strfn
24467_ACEOF
24468
24469fi
24470
24471
24472
24473
24474
24475
24476
24477
24478
24479if test "$off_t_strfn" = "apr_strtoi64" && test "$have_int64_strfn" = "1"; then
24480    off_t_strfn=$int64_strfn
24481fi
24482
24483cat >>confdefs.h <<_ACEOF
24484#define APR_OFF_T_STRFN $off_t_strfn
24485_ACEOF
24486
24487
24488echo "${nl}Checking for DSO..."
24489# Check whether --enable-dso was given.
24490if test "${enable_dso+set}" = set; then :
24491  enableval=$enable_dso; if test "x$enableval" = "xyes"; then
24492      dsotype=any
24493   else
24494      dsotype=$enableval
24495   fi
24496
24497else
24498  dsotype=any
24499fi
24500
24501
24502if test "$dsotype" = "any"; then
24503    if test "$dsotype" = "any"; then
24504      case $host in
24505        *darwin[0-8]\.*)
24506          # Original Darwin, not for 9.0!:
24507          ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule"
24508if test "x$ac_cv_func_NSLinkModule" = xyes; then :
24509  dsotype=dyld
24510fi
24511;;
24512        hppa*-hpux[1-9]\.*|hppa*-hpux1[01]*)
24513          # shl is specific to parisc hpux SOM binaries, not used for 64 bit
24514          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
24515$as_echo_n "checking for shl_load in -ldld... " >&6; }
24516if ${ac_cv_lib_dld_shl_load+:} false; then :
24517  $as_echo_n "(cached) " >&6
24518else
24519  ac_check_lib_save_LIBS=$LIBS
24520LIBS="-ldld  $LIBS"
24521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24522/* end confdefs.h.  */
24523
24524/* Override any GCC internal prototype to avoid an error.
24525   Use char because int might match the return type of a GCC
24526   builtin and then its argument prototype would still apply.  */
24527#ifdef __cplusplus
24528extern "C"
24529#endif
24530char shl_load ();
24531int
24532main ()
24533{
24534return shl_load ();
24535  ;
24536  return 0;
24537}
24538_ACEOF
24539if ac_fn_c_try_link "$LINENO"; then :
24540  ac_cv_lib_dld_shl_load=yes
24541else
24542  ac_cv_lib_dld_shl_load=no
24543fi
24544rm -f core conftest.err conftest.$ac_objext \
24545    conftest$ac_exeext conftest.$ac_ext
24546LIBS=$ac_check_lib_save_LIBS
24547fi
24548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
24549$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
24550if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
24551  have_shl=1
24552fi
24553
24554          if test "$ac_cv_sizeof_voidp$have_shl" = "41"; then
24555            dsotype=shl;
24556  if test "x$LIBS" = "x"; then
24557    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldld\""
24558    LIBS="-ldld"
24559  else
24560    apr_addto_bugger="-ldld"
24561    for i in $apr_addto_bugger; do
24562      apr_addto_duplicate="0"
24563      for j in $LIBS; do
24564        if test "x$i" = "x$j"; then
24565          apr_addto_duplicate="1"
24566          break
24567        fi
24568      done
24569      if test $apr_addto_duplicate = "0"; then
24570        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
24571        LIBS="$LIBS $i"
24572      fi
24573    done
24574  fi
24575
24576          fi;;
24577        *mingw*|*-os2*)
24578          # several 'other's below probably belong up here.  If they always
24579          # use a platform implementation and shouldn't test the dlopen/dlfcn
24580          # features, then bring them up here.
24581          # But if they -should- optionally use dlfcn, and/or need the config
24582          # detection of dlopen/dlsym, do not move them up.
24583          dsotype=other ;;
24584      esac
24585    fi
24586    # Normal POSIX:
24587    if test "$dsotype" = "any"; then
24588      ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
24589if test "x$ac_cv_func_dlopen" = xyes; then :
24590  dsotype=dlfcn
24591fi
24592
24593    fi
24594    if test "$dsotype" = "any"; then
24595      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
24596$as_echo_n "checking for dlopen in -ldl... " >&6; }
24597if ${ac_cv_lib_dl_dlopen+:} false; then :
24598  $as_echo_n "(cached) " >&6
24599else
24600  ac_check_lib_save_LIBS=$LIBS
24601LIBS="-ldl  $LIBS"
24602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24603/* end confdefs.h.  */
24604
24605/* Override any GCC internal prototype to avoid an error.
24606   Use char because int might match the return type of a GCC
24607   builtin and then its argument prototype would still apply.  */
24608#ifdef __cplusplus
24609extern "C"
24610#endif
24611char dlopen ();
24612int
24613main ()
24614{
24615return dlopen ();
24616  ;
24617  return 0;
24618}
24619_ACEOF
24620if ac_fn_c_try_link "$LINENO"; then :
24621  ac_cv_lib_dl_dlopen=yes
24622else
24623  ac_cv_lib_dl_dlopen=no
24624fi
24625rm -f core conftest.err conftest.$ac_objext \
24626    conftest$ac_exeext conftest.$ac_ext
24627LIBS=$ac_check_lib_save_LIBS
24628fi
24629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
24630$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
24631if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
24632  dsotype=dlfcn;
24633  if test "x$LIBS" = "x"; then
24634    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldl\""
24635    LIBS="-ldl"
24636  else
24637    apr_addto_bugger="-ldl"
24638    for i in $apr_addto_bugger; do
24639      apr_addto_duplicate="0"
24640      for j in $LIBS; do
24641        if test "x$i" = "x$j"; then
24642          apr_addto_duplicate="1"
24643          break
24644        fi
24645      done
24646      if test $apr_addto_duplicate = "0"; then
24647        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
24648        LIBS="$LIBS $i"
24649      fi
24650    done
24651  fi
24652
24653fi
24654
24655    fi
24656    if test "$dsotype" = "dlfcn"; then
24657        # ReliantUnix has dlopen() in libc but dlsym() in libdl :(
24658        ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
24659if test "x$ac_cv_func_dlsym" = xyes; then :
24660
24661else
24662  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
24663$as_echo_n "checking for dlsym in -ldl... " >&6; }
24664if ${ac_cv_lib_dl_dlsym+:} false; then :
24665  $as_echo_n "(cached) " >&6
24666else
24667  ac_check_lib_save_LIBS=$LIBS
24668LIBS="-ldl  $LIBS"
24669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24670/* end confdefs.h.  */
24671
24672/* Override any GCC internal prototype to avoid an error.
24673   Use char because int might match the return type of a GCC
24674   builtin and then its argument prototype would still apply.  */
24675#ifdef __cplusplus
24676extern "C"
24677#endif
24678char dlsym ();
24679int
24680main ()
24681{
24682return dlsym ();
24683  ;
24684  return 0;
24685}
24686_ACEOF
24687if ac_fn_c_try_link "$LINENO"; then :
24688  ac_cv_lib_dl_dlsym=yes
24689else
24690  ac_cv_lib_dl_dlsym=no
24691fi
24692rm -f core conftest.err conftest.$ac_objext \
24693    conftest$ac_exeext conftest.$ac_ext
24694LIBS=$ac_check_lib_save_LIBS
24695fi
24696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
24697$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
24698if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
24699
24700  if test "x$LIBS" = "x"; then
24701    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldl\""
24702    LIBS="-ldl"
24703  else
24704    apr_addto_bugger="-ldl"
24705    for i in $apr_addto_bugger; do
24706      apr_addto_duplicate="0"
24707      for j in $LIBS; do
24708        if test "x$i" = "x$j"; then
24709          apr_addto_duplicate="1"
24710          break
24711        fi
24712      done
24713      if test $apr_addto_duplicate = "0"; then
24714        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
24715        LIBS="$LIBS $i"
24716      fi
24717    done
24718  fi
24719
24720else
24721  dsotype=any
24722              echo "Weird: dlopen() was found but dlsym() was not found!"
24723fi
24724
24725fi
24726
24727    fi
24728    if test "$dsotype" = "any"; then
24729      # BeOS:
24730      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for load_image in -lroot" >&5
24731$as_echo_n "checking for load_image in -lroot... " >&6; }
24732if ${ac_cv_lib_root_load_image+:} false; then :
24733  $as_echo_n "(cached) " >&6
24734else
24735  ac_check_lib_save_LIBS=$LIBS
24736LIBS="-lroot  $LIBS"
24737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24738/* end confdefs.h.  */
24739
24740/* Override any GCC internal prototype to avoid an error.
24741   Use char because int might match the return type of a GCC
24742   builtin and then its argument prototype would still apply.  */
24743#ifdef __cplusplus
24744extern "C"
24745#endif
24746char load_image ();
24747int
24748main ()
24749{
24750return load_image ();
24751  ;
24752  return 0;
24753}
24754_ACEOF
24755if ac_fn_c_try_link "$LINENO"; then :
24756  ac_cv_lib_root_load_image=yes
24757else
24758  ac_cv_lib_root_load_image=no
24759fi
24760rm -f core conftest.err conftest.$ac_objext \
24761    conftest$ac_exeext conftest.$ac_ext
24762LIBS=$ac_check_lib_save_LIBS
24763fi
24764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_load_image" >&5
24765$as_echo "$ac_cv_lib_root_load_image" >&6; }
24766if test "x$ac_cv_lib_root_load_image" = xyes; then :
24767  dsotype=other
24768fi
24769
24770    fi
24771    # Everything else:
24772    if test "$dsotype" = "any"; then
24773        case $host in
24774        *os390|*os400|*-aix*)
24775          # Some -aix5 will use dl, no hassles.  Keep that pattern here.
24776          dsotype=other ;;
24777        *-hpux*)
24778          if test "$have_shl" = "1"; then
24779            dsotype=shl;
24780  if test "x$LIBS" = "x"; then
24781    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldld\""
24782    LIBS="-ldld"
24783  else
24784    apr_addto_bugger="-ldld"
24785    for i in $apr_addto_bugger; do
24786      apr_addto_duplicate="0"
24787      for j in $LIBS; do
24788        if test "x$i" = "x$j"; then
24789          apr_addto_duplicate="1"
24790          break
24791        fi
24792      done
24793      if test $apr_addto_duplicate = "0"; then
24794        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
24795        LIBS="$LIBS $i"
24796      fi
24797    done
24798  fi
24799
24800          fi;;
24801        esac
24802    fi
24803fi
24804
24805if test "$dsotype" = "any"; then
24806    as_fn_error $? "Could not detect suitable DSO implementation" "$LINENO" 5
24807elif test "$dsotype" = "no"; then
24808    aprdso="0"
24809else
24810    case "$dsotype" in
24811    dlfcn)
24812$as_echo "#define DSO_USE_DLFCN 1" >>confdefs.h
24813;;
24814    shl)
24815$as_echo "#define DSO_USE_SHL 1" >>confdefs.h
24816;;
24817    dyld)
24818$as_echo "#define DSO_USE_DYLD 1" >>confdefs.h
24819;;
24820    other) ;; # Use whatever is in dso/OSDIR
24821    *) as_fn_error $? "Unknown DSO implementation \"$dsotype\"" "$LINENO" 5;;
24822    esac
24823    aprdso="1"
24824    apr_modules="$apr_modules dso"
24825fi
24826
24827
24828
24829echo "${nl}Checking for Processes..."
24830
24831for ac_func in waitpid
24832do :
24833  ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
24834if test "x$ac_cv_func_waitpid" = xyes; then :
24835  cat >>confdefs.h <<_ACEOF
24836#define HAVE_WAITPID 1
24837_ACEOF
24838
24839fi
24840done
24841
24842
24843# Check whether --enable-other-child was given.
24844if test "${enable_other_child+set}" = set; then :
24845  enableval=$enable_other_child;  if test "$enableval" = "yes"; then
24846        oc="1"
24847    else
24848        oc="0"
24849    fi
24850else
24851   oc=1
24852fi
24853
24854
24855
24856
24857if test -z "$have_proc_invoked"; then
24858  have_proc_invoked="0"
24859fi
24860
24861
24862
24863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Variable Length Arrays" >&5
24864$as_echo_n "checking for Variable Length Arrays... " >&6; }
24865apr_save_CFLAGS=$CFLAGS
24866 CFLAGS="$CFLAGS $CFLAGS_WARN"
24867 if test "$ac_cv_c_compiler_gnu" = "yes"; then
24868   CFLAGS="$CFLAGS -Werror"
24869 fi
24870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24871/* end confdefs.h.  */
24872#include "confdefs.h"
24873
24874
24875   int main(int argc, const char *const *argv) {
24876
24877    int foo[argc];
24878    foo[0] = 0;
24879
24880      return 0; }
24881
24882_ACEOF
24883if ac_fn_c_try_compile "$LINENO"; then :
24884  vla_msg=yes
24885else
24886  vla_msg=no
24887fi
24888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24889 CFLAGS=$apr_save_CFLAGS
24890
24891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vla_msg" >&5
24892$as_echo "$vla_msg" >&6; }
24893if test "$vla_msg" = "yes"; then
24894
24895$as_echo "#define HAVE_VLA 1" >>confdefs.h
24896
24897fi
24898
24899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct rlimit" >&5
24900$as_echo_n "checking struct rlimit... " >&6; }
24901if ${ac_cv_struct_rlimit+:} false; then :
24902  $as_echo_n "(cached) " >&6
24903else
24904
24905if test "$cross_compiling" = yes; then :
24906
24907    ac_cv_struct_rlimit=no
24908else
24909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24910/* end confdefs.h.  */
24911
24912#include <sys/types.h>
24913#include <sys/time.h>
24914#include <sys/resource.h>
24915main()
24916{
24917    struct rlimit limit;
24918    limit.rlim_cur = 0;
24919    limit.rlim_max = 0;
24920    exit(0);
24921}
24922_ACEOF
24923if ac_fn_c_try_run "$LINENO"; then :
24924
24925    ac_cv_struct_rlimit=yes
24926else
24927
24928    ac_cv_struct_rlimit=no
24929fi
24930rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24931  conftest.$ac_objext conftest.beam conftest.$ac_ext
24932fi
24933
24934fi
24935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rlimit" >&5
24936$as_echo "$ac_cv_struct_rlimit" >&6; }
24937struct_rlimit=0
24938test "x$ac_cv_struct_rlimit" = xyes && struct_rlimit=1
24939
24940
24941echo "${nl}Checking for Locking..."
24942
24943for ac_func in semget semctl flock
24944do :
24945  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24946ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24947if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24948  cat >>confdefs.h <<_ACEOF
24949#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24950_ACEOF
24951
24952fi
24953done
24954
24955for ac_header in semaphore.h OS.h
24956do :
24957  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24958ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24959if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24960  cat >>confdefs.h <<_ACEOF
24961#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24962_ACEOF
24963
24964fi
24965
24966done
24967
24968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
24969$as_echo_n "checking for library containing sem_open... " >&6; }
24970if ${ac_cv_search_sem_open+:} false; then :
24971  $as_echo_n "(cached) " >&6
24972else
24973  ac_func_search_save_LIBS=$LIBS
24974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24975/* end confdefs.h.  */
24976
24977/* Override any GCC internal prototype to avoid an error.
24978   Use char because int might match the return type of a GCC
24979   builtin and then its argument prototype would still apply.  */
24980#ifdef __cplusplus
24981extern "C"
24982#endif
24983char sem_open ();
24984int
24985main ()
24986{
24987return sem_open ();
24988  ;
24989  return 0;
24990}
24991_ACEOF
24992for ac_lib in '' rt; do
24993  if test -z "$ac_lib"; then
24994    ac_res="none required"
24995  else
24996    ac_res=-l$ac_lib
24997    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24998  fi
24999  if ac_fn_c_try_link "$LINENO"; then :
25000  ac_cv_search_sem_open=$ac_res
25001fi
25002rm -f core conftest.err conftest.$ac_objext \
25003    conftest$ac_exeext
25004  if ${ac_cv_search_sem_open+:} false; then :
25005  break
25006fi
25007done
25008if ${ac_cv_search_sem_open+:} false; then :
25009
25010else
25011  ac_cv_search_sem_open=no
25012fi
25013rm conftest.$ac_ext
25014LIBS=$ac_func_search_save_LIBS
25015fi
25016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
25017$as_echo "$ac_cv_search_sem_open" >&6; }
25018ac_res=$ac_cv_search_sem_open
25019if test "$ac_res" != no; then :
25020  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25021
25022fi
25023
25024for ac_func in sem_close sem_unlink sem_post sem_wait create_sem
25025do :
25026  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25027ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25028if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25029  cat >>confdefs.h <<_ACEOF
25030#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25031_ACEOF
25032
25033fi
25034done
25035
25036
25037# Some systems return ENOSYS from sem_open.
25038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sem_open" >&5
25039$as_echo_n "checking for working sem_open... " >&6; }
25040if ${ac_cv_func_sem_open+:} false; then :
25041  $as_echo_n "(cached) " >&6
25042else
25043
25044if test "$cross_compiling" = yes; then :
25045  ac_cv_func_sem_open=no
25046else
25047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25048/* end confdefs.h.  */
25049
25050#include <errno.h>
25051#include <stdlib.h>
25052#include <fcntl.h>
25053#include <semaphore.h>
25054#ifndef SEM_FAILED
25055#define SEM_FAILED (-1)
25056#endif
25057main()
25058{
25059    sem_t *psem;
25060    const char *sem_name = "/apr_autoconf";
25061
25062    psem = sem_open(sem_name, O_CREAT, 0644, 1);
25063    if (psem == (sem_t *)SEM_FAILED) {
25064	exit(1);
25065    }
25066    sem_close(psem);
25067    psem = sem_open(sem_name, O_CREAT | O_EXCL, 0644, 1);
25068    if (psem != (sem_t *)SEM_FAILED) {
25069        sem_close(psem);
25070        exit(1);
25071    }
25072    sem_unlink(sem_name);
25073    exit(0);
25074}
25075_ACEOF
25076if ac_fn_c_try_run "$LINENO"; then :
25077  ac_cv_func_sem_open=yes
25078else
25079  ac_cv_func_sem_open=no
25080fi
25081rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25082  conftest.$ac_objext conftest.beam conftest.$ac_ext
25083fi
25084
25085fi
25086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sem_open" >&5
25087$as_echo "$ac_cv_func_sem_open" >&6; }
25088
25089# It's stupid, but not all platforms have union semun, even those that need it.
25090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun in sys/sem.h" >&5
25091$as_echo_n "checking for union semun in sys/sem.h... " >&6; }
25092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25093/* end confdefs.h.  */
25094
25095#include <sys/types.h>
25096#include <sys/ipc.h>
25097#include <sys/sem.h>
25098
25099int
25100main ()
25101{
25102
25103union semun arg;
25104semctl(0, 0, 0, arg);
25105
25106  ;
25107  return 0;
25108}
25109_ACEOF
25110if ac_fn_c_try_compile "$LINENO"; then :
25111  have_union_semun="1" union_semun=yes
25112msg=yes
25113else
25114
25115have_union_semun="0"
25116msg=no
25117fi
25118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
25120$as_echo "$msg" >&6; }
25121
25122
25123
25124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOCK_EX in sys/file.h" >&5
25125$as_echo_n "checking for LOCK_EX in sys/file.h... " >&6; }
25126if ${ac_cv_define_LOCK_EX+:} false; then :
25127  $as_echo_n "(cached) " >&6
25128else
25129
25130    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25131/* end confdefs.h.  */
25132
25133#include <sys/file.h>
25134#ifdef LOCK_EX
25135YES_IS_DEFINED
25136#endif
25137
25138_ACEOF
25139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25140  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25141  ac_cv_define_LOCK_EX=yes
25142else
25143  ac_cv_define_LOCK_EX=no
25144fi
25145rm -f conftest*
25146
25147
25148fi
25149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_LOCK_EX" >&5
25150$as_echo "$ac_cv_define_LOCK_EX" >&6; }
25151  if test "$ac_cv_define_LOCK_EX" = "yes"; then
25152
25153$as_echo "#define HAVE_LOCK_EX 1" >>confdefs.h
25154
25155  fi
25156
25157
25158  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLK in fcntl.h" >&5
25159$as_echo_n "checking for F_SETLK in fcntl.h... " >&6; }
25160if ${ac_cv_define_F_SETLK+:} false; then :
25161  $as_echo_n "(cached) " >&6
25162else
25163
25164    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25165/* end confdefs.h.  */
25166
25167#include <fcntl.h>
25168#ifdef F_SETLK
25169YES_IS_DEFINED
25170#endif
25171
25172_ACEOF
25173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25174  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25175  ac_cv_define_F_SETLK=yes
25176else
25177  ac_cv_define_F_SETLK=no
25178fi
25179rm -f conftest*
25180
25181
25182fi
25183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_F_SETLK" >&5
25184$as_echo "$ac_cv_define_F_SETLK" >&6; }
25185  if test "$ac_cv_define_F_SETLK" = "yes"; then
25186
25187$as_echo "#define HAVE_F_SETLK 1" >>confdefs.h
25188
25189  fi
25190
25191
25192  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SEM_UNDO in sys/sem.h" >&5
25193$as_echo_n "checking for SEM_UNDO in sys/sem.h... " >&6; }
25194if ${ac_cv_define_SEM_UNDO+:} false; then :
25195  $as_echo_n "(cached) " >&6
25196else
25197
25198    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25199/* end confdefs.h.  */
25200
25201#include <sys/sem.h>
25202#ifdef SEM_UNDO
25203YES_IS_DEFINED
25204#endif
25205
25206_ACEOF
25207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25208  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25209  ac_cv_define_SEM_UNDO=yes
25210else
25211  ac_cv_define_SEM_UNDO=no
25212fi
25213rm -f conftest*
25214
25215
25216fi
25217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SEM_UNDO" >&5
25218$as_echo "$ac_cv_define_SEM_UNDO" >&6; }
25219  if test "$ac_cv_define_SEM_UNDO" = "yes"; then
25220
25221$as_echo "#define HAVE_SEM_UNDO 1" >>confdefs.h
25222
25223  fi
25224
25225
25226# We are assuming that if the platform doesn't have POLLIN, it doesn't have
25227# any POLL definitions.
25228
25229  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POLLIN in poll.h sys/poll.h" >&5
25230$as_echo_n "checking for POLLIN in poll.h sys/poll.h... " >&6; }
25231if ${ac_cv_define_POLLIN+:} false; then :
25232  $as_echo_n "(cached) " >&6
25233else
25234
25235    ac_cv_define_POLLIN=no
25236    for curhdr in poll.h sys/poll.h
25237    do
25238      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25239/* end confdefs.h.  */
25240
25241#include <$curhdr>
25242#ifdef POLLIN
25243YES_IS_DEFINED
25244#endif
25245
25246_ACEOF
25247if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25248  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25249  ac_cv_define_POLLIN=yes
25250fi
25251rm -f conftest*
25252
25253    done
25254
25255fi
25256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_POLLIN" >&5
25257$as_echo "$ac_cv_define_POLLIN" >&6; }
25258  if test "$ac_cv_define_POLLIN" = "yes"; then
25259
25260$as_echo "#define HAVE_POLLIN 1" >>confdefs.h
25261
25262  fi
25263
25264
25265if test "$threads" = "1"; then
25266
25267  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PROCESS_SHARED in pthread.h" >&5
25268$as_echo_n "checking for PTHREAD_PROCESS_SHARED in pthread.h... " >&6; }
25269if ${ac_cv_define_PTHREAD_PROCESS_SHARED+:} false; then :
25270  $as_echo_n "(cached) " >&6
25271else
25272
25273    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25274/* end confdefs.h.  */
25275
25276#include <pthread.h>
25277#ifdef PTHREAD_PROCESS_SHARED
25278YES_IS_DEFINED
25279#endif
25280
25281_ACEOF
25282if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25283  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25284  ac_cv_define_PTHREAD_PROCESS_SHARED=yes
25285else
25286  ac_cv_define_PTHREAD_PROCESS_SHARED=no
25287fi
25288rm -f conftest*
25289
25290
25291fi
25292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_PTHREAD_PROCESS_SHARED" >&5
25293$as_echo "$ac_cv_define_PTHREAD_PROCESS_SHARED" >&6; }
25294  if test "$ac_cv_define_PTHREAD_PROCESS_SHARED" = "yes"; then
25295
25296$as_echo "#define HAVE_PTHREAD_PROCESS_SHARED 1" >>confdefs.h
25297
25298  fi
25299
25300    for ac_func in pthread_mutexattr_setpshared
25301do :
25302  ac_fn_c_check_func "$LINENO" "pthread_mutexattr_setpshared" "ac_cv_func_pthread_mutexattr_setpshared"
25303if test "x$ac_cv_func_pthread_mutexattr_setpshared" = xyes; then :
25304  cat >>confdefs.h <<_ACEOF
25305#define HAVE_PTHREAD_MUTEXATTR_SETPSHARED 1
25306_ACEOF
25307
25308fi
25309done
25310
25311    # Some systems have setpshared and define PROCESS_SHARED, but don't
25312    # really support PROCESS_SHARED locks.  So, we must validate that we
25313    # can go through the steps without receiving some sort of system error.
25314    # Linux and older versions of AIX have this problem.
25315    ac_rc=yes
25316for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED func:pthread_mutexattr_setpshared; do
25317    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25318    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25319    case $ac_type in
25320        header )
25321            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25322            ac_var="ac_cv_header_$ac_item"
25323            ;;
25324        file )
25325            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25326            ac_var="ac_cv_file_$ac_item"
25327            ;;
25328        func )   ac_var="ac_cv_func_$ac_item"   ;;
25329        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25330        define ) ac_var="ac_cv_define_$ac_item" ;;
25331        custom ) ac_var="$ac_item" ;;
25332    esac
25333    eval "ac_val=\$$ac_var"
25334    if test ".$ac_val" != .yes; then
25335        ac_rc=no
25336        break
25337    fi
25338done
25339if test ".$ac_rc" = .yes; then
25340    :
25341
25342      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working PROCESS_SHARED locks" >&5
25343$as_echo_n "checking for working PROCESS_SHARED locks... " >&6; }
25344if ${apr_cv_process_shared_works+:} false; then :
25345  $as_echo_n "(cached) " >&6
25346else
25347
25348      if test "$cross_compiling" = yes; then :
25349  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25351as_fn_error $? "cannot run test program while cross compiling
25352See \`config.log' for more details" "$LINENO" 5; }
25353else
25354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25355/* end confdefs.h.  */
25356
25357#include <sys/types.h>
25358#include <pthread.h>
25359        int main()
25360        {
25361            pthread_mutex_t mutex;
25362            pthread_mutexattr_t attr;
25363            if (pthread_mutexattr_init(&attr))
25364                exit(1);
25365            if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
25366                exit(2);
25367            if (pthread_mutex_init(&mutex, &attr))
25368                exit(3);
25369            if (pthread_mutexattr_destroy(&attr))
25370                exit(4);
25371            if (pthread_mutex_destroy(&mutex))
25372                exit(5);
25373            exit(0);
25374        }
25375_ACEOF
25376if ac_fn_c_try_run "$LINENO"; then :
25377  apr_cv_process_shared_works=yes
25378else
25379  apr_cv_process_shared_works=no
25380fi
25381rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25382  conftest.$ac_objext conftest.beam conftest.$ac_ext
25383fi
25384
25385fi
25386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_process_shared_works" >&5
25387$as_echo "$apr_cv_process_shared_works" >&6; }
25388      # Override detection of pthread_mutexattr_setpshared
25389      ac_cv_func_pthread_mutexattr_setpshared=$apr_cv_process_shared_works
25390else
25391    :
25392
25393fi
25394
25395
25396    if test "$ac_cv_func_pthread_mutexattr_setpshared" = "yes"; then
25397
25398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for robust cross-process mutex support" >&5
25399$as_echo_n "checking for robust cross-process mutex support... " >&6; }
25400if ${apr_cv_mutex_robust_shared+:} false; then :
25401  $as_echo_n "(cached) " >&6
25402else
25403  if test "$cross_compiling" = yes; then :
25404  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25406as_fn_error $? "cannot run test program while cross compiling
25407See \`config.log' for more details" "$LINENO" 5; }
25408else
25409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25410/* end confdefs.h.  */
25411
25412#include <sys/types.h>
25413#include <pthread.h>
25414#include <stdlib.h>
25415
25416int main(int argc, char **argv)
25417{
25418    pthread_mutex_t mutex;
25419    pthread_mutexattr_t attr;
25420
25421    if (pthread_mutexattr_init(&attr))
25422        exit(1);
25423    if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
25424        exit(2);
25425    if (pthread_mutexattr_setrobust_np(&attr, PTHREAD_MUTEX_ROBUST_NP))
25426        exit(3);
25427    if (pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT))
25428        exit(4);
25429    if (pthread_mutex_init(&mutex, &attr))
25430        exit(5);
25431    if (pthread_mutexattr_destroy(&attr))
25432        exit(6);
25433    if (pthread_mutex_destroy(&mutex))
25434        exit(7);
25435
25436    exit(0);
25437}
25438_ACEOF
25439if ac_fn_c_try_run "$LINENO"; then :
25440  apr_cv_mutex_robust_shared=yes
25441else
25442  apr_cv_mutex_robust_shared=no
25443fi
25444rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25445  conftest.$ac_objext conftest.beam conftest.$ac_ext
25446fi
25447
25448fi
25449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_robust_shared" >&5
25450$as_echo "$apr_cv_mutex_robust_shared" >&6; }
25451
25452if test "$apr_cv_mutex_robust_shared" = "yes"; then
25453
25454$as_echo "#define HAVE_PTHREAD_MUTEX_ROBUST 1" >>confdefs.h
25455
25456fi
25457
25458    fi
25459fi
25460
25461# See which lock mechanisms we can support on this system.
25462ac_rc=yes
25463for ac_spec in header:semaphore.h func:sem_open func:sem_close              func:sem_unlink func:sem_post func:sem_wait; do
25464    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25465    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25466    case $ac_type in
25467        header )
25468            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25469            ac_var="ac_cv_header_$ac_item"
25470            ;;
25471        file )
25472            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25473            ac_var="ac_cv_file_$ac_item"
25474            ;;
25475        func )   ac_var="ac_cv_func_$ac_item"   ;;
25476        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25477        define ) ac_var="ac_cv_define_$ac_item" ;;
25478        custom ) ac_var="$ac_item" ;;
25479    esac
25480    eval "ac_val=\$$ac_var"
25481    if test ".$ac_val" != .yes; then
25482        ac_rc=no
25483        break
25484    fi
25485done
25486if test ".$ac_rc" = .yes; then
25487    :
25488    hasposixser="1"
25489else
25490    :
25491    hasposixser="0"
25492fi
25493
25494ac_rc=yes
25495for ac_spec in func:semget func:semctl define:SEM_UNDO; do
25496    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25497    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25498    case $ac_type in
25499        header )
25500            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25501            ac_var="ac_cv_header_$ac_item"
25502            ;;
25503        file )
25504            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25505            ac_var="ac_cv_file_$ac_item"
25506            ;;
25507        func )   ac_var="ac_cv_func_$ac_item"   ;;
25508        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25509        define ) ac_var="ac_cv_define_$ac_item" ;;
25510        custom ) ac_var="$ac_item" ;;
25511    esac
25512    eval "ac_val=\$$ac_var"
25513    if test ".$ac_val" != .yes; then
25514        ac_rc=no
25515        break
25516    fi
25517done
25518if test ".$ac_rc" = .yes; then
25519    :
25520    hassysvser="1"
25521else
25522    :
25523    hassysvser="0"
25524fi
25525
25526ac_rc=yes
25527for ac_spec in func:flock define:LOCK_EX; do
25528    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25529    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25530    case $ac_type in
25531        header )
25532            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25533            ac_var="ac_cv_header_$ac_item"
25534            ;;
25535        file )
25536            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25537            ac_var="ac_cv_file_$ac_item"
25538            ;;
25539        func )   ac_var="ac_cv_func_$ac_item"   ;;
25540        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25541        define ) ac_var="ac_cv_define_$ac_item" ;;
25542        custom ) ac_var="$ac_item" ;;
25543    esac
25544    eval "ac_val=\$$ac_var"
25545    if test ".$ac_val" != .yes; then
25546        ac_rc=no
25547        break
25548    fi
25549done
25550if test ".$ac_rc" = .yes; then
25551    :
25552    hasflockser="1"
25553else
25554    :
25555    hasflockser="0"
25556fi
25557
25558ac_rc=yes
25559for ac_spec in header:fcntl.h define:F_SETLK; do
25560    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25561    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25562    case $ac_type in
25563        header )
25564            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25565            ac_var="ac_cv_header_$ac_item"
25566            ;;
25567        file )
25568            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25569            ac_var="ac_cv_file_$ac_item"
25570            ;;
25571        func )   ac_var="ac_cv_func_$ac_item"   ;;
25572        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25573        define ) ac_var="ac_cv_define_$ac_item" ;;
25574        custom ) ac_var="$ac_item" ;;
25575    esac
25576    eval "ac_val=\$$ac_var"
25577    if test ".$ac_val" != .yes; then
25578        ac_rc=no
25579        break
25580    fi
25581done
25582if test ".$ac_rc" = .yes; then
25583    :
25584    hasfcntlser="1"
25585else
25586    :
25587    hasfcntlser="0"
25588fi
25589
25590# note: the current APR use of shared mutex requires /dev/zero
25591ac_rc=yes
25592for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED              func:pthread_mutexattr_setpshared              file:/dev/zero; do
25593    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25594    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25595    case $ac_type in
25596        header )
25597            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25598            ac_var="ac_cv_header_$ac_item"
25599            ;;
25600        file )
25601            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25602            ac_var="ac_cv_file_$ac_item"
25603            ;;
25604        func )   ac_var="ac_cv_func_$ac_item"   ;;
25605        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25606        define ) ac_var="ac_cv_define_$ac_item" ;;
25607        custom ) ac_var="$ac_item" ;;
25608    esac
25609    eval "ac_val=\$$ac_var"
25610    if test ".$ac_val" != .yes; then
25611        ac_rc=no
25612        break
25613    fi
25614done
25615if test ".$ac_rc" = .yes; then
25616    :
25617    hasprocpthreadser="1"
25618else
25619    :
25620    hasprocpthreadser="0"
25621fi
25622
25623ac_rc=yes
25624for ac_spec in header:OS.h func:create_sem; do
25625    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25626    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25627    case $ac_type in
25628        header )
25629            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25630            ac_var="ac_cv_header_$ac_item"
25631            ;;
25632        file )
25633            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25634            ac_var="ac_cv_file_$ac_item"
25635            ;;
25636        func )   ac_var="ac_cv_func_$ac_item"   ;;
25637        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25638        define ) ac_var="ac_cv_define_$ac_item" ;;
25639        custom ) ac_var="$ac_item" ;;
25640    esac
25641    eval "ac_val=\$$ac_var"
25642    if test ".$ac_val" != .yes; then
25643        ac_rc=no
25644        break
25645    fi
25646done
25647if test ".$ac_rc" = .yes; then
25648    :
25649    hasbeossem="1"
25650else
25651    :
25652    hasbeossem="0"
25653fi
25654
25655
25656# See which lock mechanism we'll select by default on this system.
25657# The last APR_DECIDE to execute sets the default.
25658# At this stage, we match the ordering in Apache 1.3
25659# which is (highest to lowest): sysvsem -> fcntl -> flock.
25660# POSIX semaphores and cross-process pthread mutexes are not
25661# used by default since they have less desirable behaviour when
25662# e.g. a process holding the mutex segfaults.
25663# The BEOSSEM decision doesn't require any substitutions but is
25664# included here to prevent the fcntl() branch being selected
25665# from the decision making.
25666ac_decision_item='apr_lock implementation method'
25667ac_decision_msg='FAILED'
25668ac_decision=''
25669
25670ac_rc=yes
25671for ac_spec in func:flock define:LOCK_EX; do
25672    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25673    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25674    case $ac_type in
25675        header )
25676            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25677            ac_var="ac_cv_header_$ac_item"
25678            ;;
25679        file )
25680            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25681            ac_var="ac_cv_file_$ac_item"
25682            ;;
25683        func )   ac_var="ac_cv_func_$ac_item"   ;;
25684        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25685        define ) ac_var="ac_cv_define_$ac_item" ;;
25686        custom ) ac_var="$ac_item" ;;
25687    esac
25688    eval "ac_val=\$$ac_var"
25689    if test ".$ac_val" != .yes; then
25690        ac_rc=no
25691        break
25692    fi
25693done
25694if test ".$ac_rc" = .yes; then
25695    :
25696
25697ac_decision='USE_FLOCK_SERIALIZE'
25698ac_decision_msg='4.2BSD-style flock()'
25699ac_decision_USE_FLOCK_SERIALIZE=yes
25700ac_decision_USE_FLOCK_SERIALIZE_msg='4.2BSD-style flock()'
25701
25702else
25703    :
25704
25705fi
25706
25707ac_rc=yes
25708for ac_spec in header:fcntl.h define:F_SETLK; do
25709    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25710    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25711    case $ac_type in
25712        header )
25713            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25714            ac_var="ac_cv_header_$ac_item"
25715            ;;
25716        file )
25717            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25718            ac_var="ac_cv_file_$ac_item"
25719            ;;
25720        func )   ac_var="ac_cv_func_$ac_item"   ;;
25721        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25722        define ) ac_var="ac_cv_define_$ac_item" ;;
25723        custom ) ac_var="$ac_item" ;;
25724    esac
25725    eval "ac_val=\$$ac_var"
25726    if test ".$ac_val" != .yes; then
25727        ac_rc=no
25728        break
25729    fi
25730done
25731if test ".$ac_rc" = .yes; then
25732    :
25733
25734ac_decision='USE_FCNTL_SERIALIZE'
25735ac_decision_msg='SVR4-style fcntl()'
25736ac_decision_USE_FCNTL_SERIALIZE=yes
25737ac_decision_USE_FCNTL_SERIALIZE_msg='SVR4-style fcntl()'
25738
25739else
25740    :
25741
25742fi
25743
25744ac_rc=yes
25745for ac_spec in func:semget func:semctl define:SEM_UNDO; do
25746    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25747    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25748    case $ac_type in
25749        header )
25750            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25751            ac_var="ac_cv_header_$ac_item"
25752            ;;
25753        file )
25754            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25755            ac_var="ac_cv_file_$ac_item"
25756            ;;
25757        func )   ac_var="ac_cv_func_$ac_item"   ;;
25758        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25759        define ) ac_var="ac_cv_define_$ac_item" ;;
25760        custom ) ac_var="$ac_item" ;;
25761    esac
25762    eval "ac_val=\$$ac_var"
25763    if test ".$ac_val" != .yes; then
25764        ac_rc=no
25765        break
25766    fi
25767done
25768if test ".$ac_rc" = .yes; then
25769    :
25770
25771ac_decision='USE_SYSVSEM_SERIALIZE'
25772ac_decision_msg='SysV IPC semget()'
25773ac_decision_USE_SYSVSEM_SERIALIZE=yes
25774ac_decision_USE_SYSVSEM_SERIALIZE_msg='SysV IPC semget()'
25775
25776else
25777    :
25778
25779fi
25780
25781ac_rc=yes
25782for ac_spec in header:OS.h func:create_sem; do
25783    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25784    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25785    case $ac_type in
25786        header )
25787            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25788            ac_var="ac_cv_header_$ac_item"
25789            ;;
25790        file )
25791            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25792            ac_var="ac_cv_file_$ac_item"
25793            ;;
25794        func )   ac_var="ac_cv_func_$ac_item"   ;;
25795        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25796        define ) ac_var="ac_cv_define_$ac_item" ;;
25797        custom ) ac_var="$ac_item" ;;
25798    esac
25799    eval "ac_val=\$$ac_var"
25800    if test ".$ac_val" != .yes; then
25801        ac_rc=no
25802        break
25803    fi
25804done
25805if test ".$ac_rc" = .yes; then
25806    :
25807
25808ac_decision='USE_BEOSSEM'
25809ac_decision_msg='BeOS Semaphores'
25810ac_decision_USE_BEOSSEM=yes
25811ac_decision_USE_BEOSSEM_msg='BeOS Semaphores'
25812
25813else
25814    :
25815
25816fi
25817
25818if test "x$apr_lock_method" != "x"; then
25819    ac_decision="$apr_lock_method"
25820eval "ac_decision_msg=\"\$ac_decision_${ac_decision}_msg\""
25821
25822fi
25823if test ".$ac_decision" = .; then
25824    echo "$0:Error: decision on $ac_decision_item failed" 1>&2
25825    exit 1
25826else
25827    if test ".$ac_decision_msg" = .; then
25828        ac_decision_msg="$ac_decision"
25829    fi
25830    cat >>confdefs.h <<_ACEOF
25831#define ${ac_decision_item} 1
25832_ACEOF
25833
25834    { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
25835$as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
25836fi
25837
25838cat >>confdefs.h <<_ACEOF
25839#define $ac_decision 1
25840_ACEOF
25841
25842
25843flockser="0"
25844sysvser="0"
25845posixser="0"
25846procpthreadser="0"
25847fcntlser="0"
25848case $ac_decision in
25849    USE_FLOCK_SERIALIZE )
25850        flockser="1"
25851        ;;
25852    USE_FCNTL_SERIALIZE )
25853        fcntlser="1"
25854        ;;
25855    USE_SYSVSEM_SERIALIZE )
25856        sysvser="1"
25857        ;;
25858    USE_POSIXSEM_SERIALIZE )
25859        posixser="1"
25860        ;;
25861    USE_PROC_PTHREAD_SERIALIZE )
25862        procpthreadser="1"
25863        ;;
25864    USE_BEOSSEM )
25865        beossem="1"
25866        ;;
25867esac
25868
25869if test $hasfcntlser = "1"; then
25870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl returns EACCES when F_SETLK is already held" >&5
25871$as_echo_n "checking if fcntl returns EACCES when F_SETLK is already held... " >&6; }
25872if test "$cross_compiling" = yes; then :
25873  apr_fcntl_tryacquire_eacces=0
25874else
25875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25876/* end confdefs.h.  */
25877
25878#ifdef HAVE_STDLIB_H
25879#include <stdlib.h>
25880#endif
25881#ifdef HAVE_SYS_TYPES_H
25882#include <sys/types.h>
25883#endif
25884#ifdef HAVE_SYS_STAT_H
25885#include <sys/stat.h>
25886#endif
25887#ifdef HAVE_SYS_WAIT_H
25888#include <sys/wait.h>
25889#endif
25890#if defined(HAVE_UNISTD_H)
25891#include <unistd.h>
25892#endif
25893#include <fcntl.h>
25894#include <errno.h>
25895
25896int fd;
25897struct flock proc_mutex_lock_it = {0};
25898const char *fname = "conftest.fcntl";
25899
25900int main()
25901{
25902    int rc, status;;
25903    proc_mutex_lock_it.l_whence = SEEK_SET;   /* from current point */
25904    proc_mutex_lock_it.l_type = F_WRLCK;      /* set exclusive/write lock */
25905
25906    fd = creat(fname, S_IRWXU);
25907    unlink(fname);
25908
25909    if (rc = lockit()) {
25910        exit(-1);
25911    }
25912
25913    if (fork()) {
25914        wait(&status);
25915    }
25916    else {
25917      return(lockit());
25918    }
25919
25920    close(fd);
25921    exit(WEXITSTATUS(status) != EACCES);
25922}
25923
25924int lockit() {
25925    int rc;
25926    do {
25927        rc = fcntl(fd, F_SETLK, &proc_mutex_lock_it);
25928    } while ( rc < 0 && errno == EINTR);
25929
25930    return (rc < 0) ? errno : 0;
25931}
25932_ACEOF
25933if ac_fn_c_try_run "$LINENO"; then :
25934  apr_fcntl_tryacquire_eacces=1
25935else
25936  apr_fcntl_tryacquire_eacces=0
25937fi
25938rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25939  conftest.$ac_objext conftest.beam conftest.$ac_ext
25940fi
25941
25942fi
25943
25944if test "$apr_fcntl_tryacquire_eacces" = "1"; then
25945
25946$as_echo "#define FCNTL_TRYACQUIRE_EACCES 1" >>confdefs.h
25947
25948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25949$as_echo "yes" >&6; }
25950else
25951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25952$as_echo "no" >&6; }
25953fi
25954
25955
25956
25957
25958
25959
25960
25961
25962
25963
25964
25965
25966
25967
25968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if all interprocess locks affect threads" >&5
25969$as_echo_n "checking if all interprocess locks affect threads... " >&6; }
25970if test "x$apr_process_lock_is_global" = "xyes"; then
25971    proclockglobal="1"
25972    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25973$as_echo "yes" >&6; }
25974else
25975    proclockglobal="0"
25976    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25977$as_echo "no" >&6; }
25978fi
25979
25980
25981
25982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if POSIX sems affect threads in the same process" >&5
25983$as_echo_n "checking if POSIX sems affect threads in the same process... " >&6; }
25984if test "x$apr_posixsem_is_global" = "xyes"; then
25985
25986$as_echo "#define POSIXSEM_IS_GLOBAL 1" >>confdefs.h
25987
25988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25989$as_echo "yes" >&6; }
25990else
25991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25992$as_echo "no" >&6; }
25993fi
25994
25995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SysV sems affect threads in the same process" >&5
25996$as_echo_n "checking if SysV sems affect threads in the same process... " >&6; }
25997if test "x$apr_sysvsem_is_global" = "xyes"; then
25998
25999$as_echo "#define SYSVSEM_IS_GLOBAL 1" >>confdefs.h
26000
26001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26002$as_echo "yes" >&6; }
26003else
26004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26005$as_echo "no" >&6; }
26006fi
26007
26008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl locks affect threads in the same process" >&5
26009$as_echo_n "checking if fcntl locks affect threads in the same process... " >&6; }
26010if test "x$apr_fcntl_is_global" = "xyes"; then
26011
26012$as_echo "#define FCNTL_IS_GLOBAL 1" >>confdefs.h
26013
26014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26015$as_echo "yes" >&6; }
26016else
26017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26018$as_echo "no" >&6; }
26019fi
26020
26021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if flock locks affect threads in the same process" >&5
26022$as_echo_n "checking if flock locks affect threads in the same process... " >&6; }
26023if test "x$apr_flock_is_global" = "xyes"; then
26024
26025$as_echo "#define FLOCK_IS_GLOBAL 1" >>confdefs.h
26026
26027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26028$as_echo "yes" >&6; }
26029else
26030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26031$as_echo "no" >&6; }
26032fi
26033
26034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for entropy source" >&5
26035$as_echo_n "checking for entropy source... " >&6; }
26036
26037why_no_rand=""
26038
26039
26040# Check whether --with-egd was given.
26041if test "${with_egd+set}" = set; then :
26042  withval=$with_egd;
26043$as_echo "#define HAVE_EGD 1" >>confdefs.h
26044
26045    if test "$withval" = "yes"; then
26046
26047cat >>confdefs.h <<_ACEOF
26048#define EGD_DEFAULT_SOCKET "/var/run/egd-pool","/dev/egd-pool","/etc/egd-pool","/etc/entropy"
26049_ACEOF
26050
26051    else
26052        cat >>confdefs.h <<_ACEOF
26053#define EGD_DEFAULT_SOCKET "$withval"
26054_ACEOF
26055
26056    fi
26057    { $as_echo "$as_me:${as_lineno-$LINENO}: result: EGD-compatible daemon" >&5
26058$as_echo "EGD-compatible daemon" >&6; }
26059    rand="1"
26060
26061fi
26062
26063
26064if test "$rand" != "1"; then
26065
26066# Check whether --with-devrandom was given.
26067if test "${with_devrandom+set}" = set; then :
26068  withval=$with_devrandom;  apr_devrandom="$withval"
26069else
26070   apr_devrandom="yes"
26071fi
26072
26073
26074  if test "$apr_devrandom" = "yes"; then
26075    # /dev/random on OpenBSD doesn't provide random data, so
26076    # prefer /dev/arandom, which does; see random(4).
26077    for f in /dev/arandom /dev/urandom /dev/random; do
26078      if test -r $f; then
26079        apr_devrandom=$f
26080        rand=1
26081        break
26082      fi
26083    done
26084  elif test "$apr_devrandom" != "no"; then
26085    if test -r "$apr_devrandom"; then
26086      rand="1"
26087    else
26088      as_fn_error $? "$apr_devrandom not found or unreadable." "$LINENO" 5
26089    fi
26090  fi
26091
26092  if test "$rand" = "1"; then
26093    case $host in
26094      *os390)
26095        if test $os_version -lt 1700; then
26096          rand="0"
26097          why_no_rand=" ($apr_devrandom unusable on z/OS before V1R7)"
26098        fi
26099        ;;
26100    esac
26101  fi
26102
26103  if test "$rand" = "1"; then
26104
26105cat >>confdefs.h <<_ACEOF
26106#define DEV_RANDOM "$apr_devrandom"
26107_ACEOF
26108
26109    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_devrandom" >&5
26110$as_echo "$apr_devrandom" >&6; }
26111  fi
26112fi
26113
26114if test "$rand" != "1"; then
26115    case $host in
26116        # we have built in support for OS/2
26117        *-os2*)
26118            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OS/2 builtin random" >&5
26119$as_echo "Using OS/2 builtin random" >&6; }
26120            rand="1"
26121            ;;
26122        *)
26123            if test "$rand" != "1"; then
26124              if test "$ac_cv_lib_truerand_main" = "yes"; then
26125
26126$as_echo "#define HAVE_TRUERAND 1" >>confdefs.h
26127
26128                { $as_echo "$as_me:${as_lineno-$LINENO}: result: truerand" >&5
26129$as_echo "truerand" >&6; }
26130                rand="1"
26131              else
26132                { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found$why_no_rand" >&5
26133$as_echo "not found$why_no_rand" >&6; }
26134                rand="0"
26135              fi
26136            fi
26137            ;;
26138    esac
26139fi
26140
26141
26142
26143echo "${nl}Checking for File Info Support..."
26144ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "
26145#ifdef HAVE_SYS_TYPES_H
26146#include <sys/types.h>
26147#endif
26148#ifdef HAVE_SYS_STAT_H
26149#include <sys/stat.h>
26150#endif
26151#ifdef HAVE_UNISTD_H
26152#include <unistd.h>
26153#endif
26154"
26155if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26156
26157cat >>confdefs.h <<_ACEOF
26158#define HAVE_STRUCT_STAT_ST_BLOCKS 1
26159_ACEOF
26160
26161
26162fi
26163ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "
26164#ifdef HAVE_SYS_TYPES_H
26165#include <sys/types.h>
26166#endif
26167#ifdef HAVE_SYS_STAT_H
26168#include <sys/stat.h>
26169#endif
26170#ifdef HAVE_UNISTD_H
26171#include <unistd.h>
26172#endif
26173"
26174if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
26175
26176cat >>confdefs.h <<_ACEOF
26177#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
26178_ACEOF
26179
26180
26181fi
26182ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "
26183#ifdef HAVE_SYS_TYPES_H
26184#include <sys/types.h>
26185#endif
26186#ifdef HAVE_SYS_STAT_H
26187#include <sys/stat.h>
26188#endif
26189#ifdef HAVE_UNISTD_H
26190#include <unistd.h>
26191#endif
26192"
26193if test "x$ac_cv_member_struct_stat_st_ctimensec" = xyes; then :
26194
26195cat >>confdefs.h <<_ACEOF
26196#define HAVE_STRUCT_STAT_ST_CTIMENSEC 1
26197_ACEOF
26198
26199
26200fi
26201ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "
26202#ifdef HAVE_SYS_TYPES_H
26203#include <sys/types.h>
26204#endif
26205#ifdef HAVE_SYS_STAT_H
26206#include <sys/stat.h>
26207#endif
26208#ifdef HAVE_UNISTD_H
26209#include <unistd.h>
26210#endif
26211"
26212if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
26213
26214cat >>confdefs.h <<_ACEOF
26215#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
26216_ACEOF
26217
26218
26219fi
26220ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "
26221#ifdef HAVE_SYS_TYPES_H
26222#include <sys/types.h>
26223#endif
26224#ifdef HAVE_SYS_STAT_H
26225#include <sys/stat.h>
26226#endif
26227#ifdef HAVE_UNISTD_H
26228#include <unistd.h>
26229#endif
26230"
26231if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
26232
26233cat >>confdefs.h <<_ACEOF
26234#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
26235_ACEOF
26236
26237
26238fi
26239ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim.tv_nsec" "ac_cv_member_struct_stat_st_ctim_tv_nsec" "
26240#ifdef HAVE_SYS_TYPES_H
26241#include <sys/types.h>
26242#endif
26243#ifdef HAVE_SYS_STAT_H
26244#include <sys/stat.h>
26245#endif
26246#ifdef HAVE_UNISTD_H
26247#include <unistd.h>
26248#endif
26249"
26250if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = xyes; then :
26251
26252cat >>confdefs.h <<_ACEOF
26253#define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1
26254_ACEOF
26255
26256
26257fi
26258ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "
26259#ifdef HAVE_SYS_TYPES_H
26260#include <sys/types.h>
26261#endif
26262#ifdef HAVE_SYS_STAT_H
26263#include <sys/stat.h>
26264#endif
26265#ifdef HAVE_UNISTD_H
26266#include <unistd.h>
26267#endif
26268"
26269if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
26270
26271cat >>confdefs.h <<_ACEOF
26272#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
26273_ACEOF
26274
26275
26276fi
26277ac_fn_c_check_member "$LINENO" "struct stat" "st_atime_n" "ac_cv_member_struct_stat_st_atime_n" "
26278#ifdef HAVE_SYS_TYPES_H
26279#include <sys/types.h>
26280#endif
26281#ifdef HAVE_SYS_STAT_H
26282#include <sys/stat.h>
26283#endif
26284#ifdef HAVE_UNISTD_H
26285#include <unistd.h>
26286#endif
26287"
26288if test "x$ac_cv_member_struct_stat_st_atime_n" = xyes; then :
26289
26290cat >>confdefs.h <<_ACEOF
26291#define HAVE_STRUCT_STAT_ST_ATIME_N 1
26292_ACEOF
26293
26294
26295fi
26296ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime_n" "ac_cv_member_struct_stat_st_ctime_n" "
26297#ifdef HAVE_SYS_TYPES_H
26298#include <sys/types.h>
26299#endif
26300#ifdef HAVE_SYS_STAT_H
26301#include <sys/stat.h>
26302#endif
26303#ifdef HAVE_UNISTD_H
26304#include <unistd.h>
26305#endif
26306"
26307if test "x$ac_cv_member_struct_stat_st_ctime_n" = xyes; then :
26308
26309cat >>confdefs.h <<_ACEOF
26310#define HAVE_STRUCT_STAT_ST_CTIME_N 1
26311_ACEOF
26312
26313
26314fi
26315ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_n" "ac_cv_member_struct_stat_st_mtime_n" "
26316#ifdef HAVE_SYS_TYPES_H
26317#include <sys/types.h>
26318#endif
26319#ifdef HAVE_SYS_STAT_H
26320#include <sys/stat.h>
26321#endif
26322#ifdef HAVE_UNISTD_H
26323#include <unistd.h>
26324#endif
26325"
26326if test "x$ac_cv_member_struct_stat_st_mtime_n" = xyes; then :
26327
26328cat >>confdefs.h <<_ACEOF
26329#define HAVE_STRUCT_STAT_ST_MTIME_N 1
26330_ACEOF
26331
26332
26333fi
26334
26335
26336
26337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inode member of struct dirent" >&5
26338$as_echo_n "checking for inode member of struct dirent... " >&6; }
26339if ${apr_cv_dirent_inode+:} false; then :
26340  $as_echo_n "(cached) " >&6
26341else
26342
26343apr_cv_dirent_inode=no
26344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26345/* end confdefs.h.  */
26346
26347#include <sys/types.h>
26348#include <dirent.h>
26349
26350int
26351main ()
26352{
26353
26354#ifdef d_ino
26355#undef d_ino
26356#endif
26357struct dirent de; de.d_fileno;
26358
26359  ;
26360  return 0;
26361}
26362_ACEOF
26363if ac_fn_c_try_compile "$LINENO"; then :
26364  apr_cv_dirent_inode=d_fileno
26365fi
26366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26367if test "$apr_cv_dirent_inode" = "no"; then
26368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26369/* end confdefs.h.  */
26370
26371#include <sys/types.h>
26372#include <dirent.h>
26373
26374int
26375main ()
26376{
26377
26378#ifdef d_fileno
26379#undef d_fileno
26380#endif
26381struct dirent de; de.d_ino;
26382
26383  ;
26384  return 0;
26385}
26386_ACEOF
26387if ac_fn_c_try_compile "$LINENO"; then :
26388  apr_cv_dirent_inode=d_ino
26389fi
26390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26391fi
26392
26393fi
26394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_inode" >&5
26395$as_echo "$apr_cv_dirent_inode" >&6; }
26396if test "$apr_cv_dirent_inode" != "no"; then
26397
26398cat >>confdefs.h <<_ACEOF
26399#define DIRENT_INODE $apr_cv_dirent_inode
26400_ACEOF
26401
26402fi
26403
26404
26405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file type member of struct dirent" >&5
26406$as_echo_n "checking for file type member of struct dirent... " >&6; }
26407if ${apr_cv_dirent_type+:} false; then :
26408  $as_echo_n "(cached) " >&6
26409else
26410
26411apr_cv_dirent_type=no
26412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26413/* end confdefs.h.  */
26414
26415#include <sys/types.h>
26416#include <dirent.h>
26417
26418int
26419main ()
26420{
26421
26422struct dirent de; de.d_type = DT_REG;
26423
26424  ;
26425  return 0;
26426}
26427_ACEOF
26428if ac_fn_c_try_compile "$LINENO"; then :
26429  apr_cv_dirent_type=d_type
26430fi
26431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26432
26433fi
26434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_type" >&5
26435$as_echo "$apr_cv_dirent_type" >&6; }
26436if test "$apr_cv_dirent_type" != "no"; then
26437
26438cat >>confdefs.h <<_ACEOF
26439#define DIRENT_TYPE $apr_cv_dirent_type
26440_ACEOF
26441
26442fi
26443
26444
26445echo "${nl}Checking for OS UUID Support..."
26446
26447for ac_header in uuid.h uuid/uuid.h sys/uuid.h
26448do :
26449  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26450ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26451if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26452  cat >>confdefs.h <<_ACEOF
26453#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26454_ACEOF
26455 break
26456fi
26457
26458done
26459
26460
26461apr_revert_save_LIBS=$LIBS
26462
26463# Prefer the flavor(s) that live in libc;
26464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
26465$as_echo_n "checking for library containing uuid_create... " >&6; }
26466if ${ac_cv_search_uuid_create+:} false; then :
26467  $as_echo_n "(cached) " >&6
26468else
26469  ac_func_search_save_LIBS=$LIBS
26470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26471/* end confdefs.h.  */
26472
26473/* Override any GCC internal prototype to avoid an error.
26474   Use char because int might match the return type of a GCC
26475   builtin and then its argument prototype would still apply.  */
26476#ifdef __cplusplus
26477extern "C"
26478#endif
26479char uuid_create ();
26480int
26481main ()
26482{
26483return uuid_create ();
26484  ;
26485  return 0;
26486}
26487_ACEOF
26488for ac_lib in '' uuid; do
26489  if test -z "$ac_lib"; then
26490    ac_res="none required"
26491  else
26492    ac_res=-l$ac_lib
26493    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26494  fi
26495  if ac_fn_c_try_link "$LINENO"; then :
26496  ac_cv_search_uuid_create=$ac_res
26497fi
26498rm -f core conftest.err conftest.$ac_objext \
26499    conftest$ac_exeext
26500  if ${ac_cv_search_uuid_create+:} false; then :
26501  break
26502fi
26503done
26504if ${ac_cv_search_uuid_create+:} false; then :
26505
26506else
26507  ac_cv_search_uuid_create=no
26508fi
26509rm conftest.$ac_ext
26510LIBS=$ac_func_search_save_LIBS
26511fi
26512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5
26513$as_echo "$ac_cv_search_uuid_create" >&6; }
26514ac_res=$ac_cv_search_uuid_create
26515if test "$ac_res" != no; then :
26516  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26517
26518fi
26519
26520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
26521$as_echo_n "checking for library containing uuid_generate... " >&6; }
26522if ${ac_cv_search_uuid_generate+:} false; then :
26523  $as_echo_n "(cached) " >&6
26524else
26525  ac_func_search_save_LIBS=$LIBS
26526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26527/* end confdefs.h.  */
26528
26529/* Override any GCC internal prototype to avoid an error.
26530   Use char because int might match the return type of a GCC
26531   builtin and then its argument prototype would still apply.  */
26532#ifdef __cplusplus
26533extern "C"
26534#endif
26535char uuid_generate ();
26536int
26537main ()
26538{
26539return uuid_generate ();
26540  ;
26541  return 0;
26542}
26543_ACEOF
26544for ac_lib in '' uuid; do
26545  if test -z "$ac_lib"; then
26546    ac_res="none required"
26547  else
26548    ac_res=-l$ac_lib
26549    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26550  fi
26551  if ac_fn_c_try_link "$LINENO"; then :
26552  ac_cv_search_uuid_generate=$ac_res
26553fi
26554rm -f core conftest.err conftest.$ac_objext \
26555    conftest$ac_exeext
26556  if ${ac_cv_search_uuid_generate+:} false; then :
26557  break
26558fi
26559done
26560if ${ac_cv_search_uuid_generate+:} false; then :
26561
26562else
26563  ac_cv_search_uuid_generate=no
26564fi
26565rm conftest.$ac_ext
26566LIBS=$ac_func_search_save_LIBS
26567fi
26568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
26569$as_echo "$ac_cv_search_uuid_generate" >&6; }
26570ac_res=$ac_cv_search_uuid_generate
26571if test "$ac_res" != no; then :
26572  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26573
26574fi
26575
26576if test "$ac_cv_search_uuid_create" = "none required" -o \
26577        "$ac_cv_search_uuid_generate" = "none required"; then
26578 LIBS=$apr_revert_save_LIBS
26579fi
26580
26581for ac_func in uuid_create uuid_generate
26582do :
26583  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26584ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26585if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26586  cat >>confdefs.h <<_ACEOF
26587#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26588_ACEOF
26589
26590fi
26591done
26592
26593
26594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for os uuid usability" >&5
26595$as_echo_n "checking for os uuid usability... " >&6; }
26596if ${apr_cv_osuuid+:} false; then :
26597  $as_echo_n "(cached) " >&6
26598else
26599
26600# Ensure this test closely mirrors misc/unix/rand.c!
26601uuid_includes="
26602#if defined(HAVE_SYS_TYPES_H)
26603#include <sys/types.h>
26604#endif
26605#if defined(HAVE_UNISTD_H)
26606#include <unistd.h>
26607#endif
26608#if defined(HAVE_UUID_H)
26609#include <uuid.h>
26610#elif defined(HAVE_UUID_UUID_H)
26611#include <uuid/uuid.h>
26612#elif defined(HAVE_SYS_UUID_H)
26613#include <sys/uuid.h>
26614#endif
26615"
26616 apr_cv_osuuid=no
26617 if test $ac_cv_func_uuid_create = yes; then
26618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26619/* end confdefs.h.  */
26620$uuid_includes
26621int
26622main ()
26623{
26624
26625    uuid_t g;
26626    uint32_t s;
26627    uuid_create(&g, &s);
26628    if (s == uuid_s_ok) s = 0;
26629
26630  ;
26631  return 0;
26632}
26633_ACEOF
26634if ac_fn_c_try_link "$LINENO"; then :
26635  apr_cv_osuuid=yes
26636else
26637  apr_cv_func_uuid_create=no
26638fi
26639rm -f core conftest.err conftest.$ac_objext \
26640    conftest$ac_exeext conftest.$ac_ext
26641 fi
26642 if test $ac_cv_func_uuid_generate = yes; then
26643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26644/* end confdefs.h.  */
26645$uuid_includes
26646int
26647main ()
26648{
26649
26650    uuid_t g;
26651    uuid_generate(g);
26652
26653  ;
26654  return 0;
26655}
26656_ACEOF
26657if ac_fn_c_try_link "$LINENO"; then :
26658  apr_cv_osuuid=yes
26659else
26660  apr_cv_func_uuid_generate=no
26661fi
26662rm -f core conftest.err conftest.$ac_objext \
26663    conftest$ac_exeext conftest.$ac_ext
26664 fi
26665
26666fi
26667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_osuuid" >&5
26668$as_echo "$apr_cv_osuuid" >&6; }
26669
26670if test $apr_cv_osuuid = yes; then
26671  osuuid="1"
26672else
26673  osuuid="0"
26674  LIBS=$apr_revert_save_LIBS
26675fi
26676
26677
26678
26679echo "${nl}Checking for Time Support..."
26680
26681ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "
26682#include <sys/types.h>
26683#include <time.h>
26684"
26685if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
26686
26687cat >>confdefs.h <<_ACEOF
26688#define HAVE_STRUCT_TM_TM_GMTOFF 1
26689_ACEOF
26690
26691
26692fi
26693ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "
26694#include <sys/types.h>
26695#include <time.h>
26696"
26697if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then :
26698
26699cat >>confdefs.h <<_ACEOF
26700#define HAVE_STRUCT_TM___TM_GMTOFF 1
26701_ACEOF
26702
26703
26704fi
26705
26706
26707echo "${nl}Checking for Networking support..."
26708
26709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type in_addr" >&5
26710$as_echo_n "checking for type in_addr... " >&6; }
26711if ${ac_cv_type_in_addr+:} false; then :
26712  $as_echo_n "(cached) " >&6
26713else
26714
26715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26716/* end confdefs.h.  */
26717
26718#ifdef HAVE_SYS_TYPES_H
26719#include <sys/types.h>
26720#endif
26721#ifdef HAVE_NETINET_IN_H
26722#include <netinet/in.h>
26723#endif
26724#ifdef HAVE_WINSOCK2_H
26725#include <winsock2.h>
26726#endif
26727
26728int
26729main ()
26730{
26731
26732 struct in_addr arg;
26733 arg.s_addr = htonl(INADDR_ANY);
26734
26735  ;
26736  return 0;
26737}
26738_ACEOF
26739if ac_fn_c_try_compile "$LINENO"; then :
26740   ac_cv_type_in_addr="yes"
26741else
26742
26743ac_cv_type_in_addr="no"
26744fi
26745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26746
26747fi
26748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_in_addr" >&5
26749$as_echo "$ac_cv_type_in_addr" >&6; }
26750
26751if test "$ac_cv_type_in_addr" = "yes"; then
26752  have_in_addr="1"
26753else
26754  have_in_addr="0"
26755fi
26756
26757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fd == socket on this platform" >&5
26758$as_echo_n "checking if fd == socket on this platform... " >&6; }
26759if test "x$file_as_socket" != "x0" ; then
26760    file_as_socket="1";
26761    echo "yes"
26762else
26763    echo "no"
26764fi
26765
26766
26767
26768
26769if test "$ac_cv_func_poll $file_as_socket" = "yes 1"; then
26770
26771$as_echo "#define WAITIO_USES_POLL 1" >>confdefs.h
26772
26773fi
26774
26775# Check the types only if we have gethostbyname_r
26776if test "$ac_cv_func_gethostbyname_r" = "yes"; then
26777
26778
26779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking style of gethostbyname_r routine" >&5
26780$as_echo_n "checking style of gethostbyname_r routine... " >&6; }
26781if ${ac_cv_gethostbyname_r_style+:} false; then :
26782  $as_echo_n "(cached) " >&6
26783else
26784  apr_save_CFLAGS=$CFLAGS
26785 CFLAGS="$CFLAGS $CFLAGS_WARN"
26786 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26787   CFLAGS="$CFLAGS -Werror"
26788 fi
26789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26790/* end confdefs.h.  */
26791#include "confdefs.h"
26792
26793
26794#ifdef HAVE_SYS_TYPES_H
26795#include <sys/types.h>
26796#endif
26797#ifdef HAVE_NETINET_IN_H
26798#include <netinet/in.h>
26799#endif
26800#ifdef HAVE_ARPA_INET_H
26801#include <arpa/inet.h>
26802#endif
26803#ifdef HAVE_NETDB_H
26804#include <netdb.h>
26805#endif
26806#ifdef HAVE_STDLIB_H
26807#include <stdlib.h>
26808#endif
26809
26810   int main(int argc, const char *const *argv) {
26811
26812int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
26813                          (char *) 0, 0, (struct hostent **) 0, &tmp);
26814/* use tmp to suppress the warning */
26815tmp=0;
26816
26817      return 0; }
26818
26819_ACEOF
26820if ac_fn_c_try_compile "$LINENO"; then :
26821  ac_cv_gethostbyname_r_style=glibc2
26822else
26823  ac_cv_gethostbyname_r_style=none
26824fi
26825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26826 CFLAGS=$apr_save_CFLAGS
26827
26828fi
26829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_style" >&5
26830$as_echo "$ac_cv_gethostbyname_r_style" >&6; }
26831
26832if test "$ac_cv_gethostbyname_r_style" = "glibc2"; then
26833
26834$as_echo "#define GETHOSTBYNAME_R_GLIBC2 1" >>confdefs.h
26835
26836fi
26837
26838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking 3rd argument to the gethostbyname_r routines" >&5
26839$as_echo_n "checking 3rd argument to the gethostbyname_r routines... " >&6; }
26840if ${ac_cv_gethostbyname_r_arg+:} false; then :
26841  $as_echo_n "(cached) " >&6
26842else
26843  apr_save_CFLAGS=$CFLAGS
26844 CFLAGS="$CFLAGS $CFLAGS_WARN"
26845 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26846   CFLAGS="$CFLAGS -Werror"
26847 fi
26848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26849/* end confdefs.h.  */
26850#include "confdefs.h"
26851
26852
26853#ifdef HAVE_SYS_TYPES_H
26854#include <sys/types.h>
26855#endif
26856#ifdef HAVE_NETINET_IN_H
26857#include <netinet/in.h>
26858#endif
26859#ifdef HAVE_ARPA_INET_H
26860#include <arpa/inet.h>
26861#endif
26862#ifdef HAVE_NETDB_H
26863#include <netdb.h>
26864#endif
26865#ifdef HAVE_STDLIB_H
26866#include <stdlib.h>
26867#endif
26868
26869   int main(int argc, const char *const *argv) {
26870
26871int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
26872                          (struct hostent_data *) 0);
26873/* use tmp to suppress the warning */
26874tmp=0;
26875
26876      return 0; }
26877
26878_ACEOF
26879if ac_fn_c_try_compile "$LINENO"; then :
26880  ac_cv_gethostbyname_r_arg=hostent_data
26881else
26882  ac_cv_gethostbyname_r_arg=char
26883fi
26884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26885 CFLAGS=$apr_save_CFLAGS
26886
26887fi
26888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_arg" >&5
26889$as_echo "$ac_cv_gethostbyname_r_arg" >&6; }
26890
26891if test "$ac_cv_gethostbyname_r_arg" = "hostent_data"; then
26892
26893$as_echo "#define GETHOSTBYNAME_R_HOSTENT_DATA 1" >>confdefs.h
26894
26895fi
26896
26897fi
26898
26899# Check the types only if we have getservbyname_r
26900if test "$ac_cv_func_getservbyname_r" = "yes"; then
26901
26902
26903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking style of getservbyname_r routine" >&5
26904$as_echo_n "checking style of getservbyname_r routine... " >&6; }
26905if ${ac_cv_getservbyname_r_style+:} false; then :
26906  $as_echo_n "(cached) " >&6
26907else
26908
26909apr_save_CFLAGS=$CFLAGS
26910 CFLAGS="$CFLAGS $CFLAGS_WARN"
26911 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26912   CFLAGS="$CFLAGS -Werror"
26913 fi
26914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26915/* end confdefs.h.  */
26916#include "confdefs.h"
26917
26918
26919#ifdef HAVE_SYS_TYPES_H
26920#include <sys/types.h>
26921#endif
26922#ifdef HAVE_NETINET_IN_H
26923#include <netinet/in.h>
26924#endif
26925#ifdef HAVE_ARPA_INET_H
26926#include <arpa/inet.h>
26927#endif
26928#ifdef HAVE_NETDB_H
26929#include <netdb.h>
26930#endif
26931#ifdef HAVE_STDLIB_H
26932#include <stdlib.h>
26933#endif
26934
26935   int main(int argc, const char *const *argv) {
26936
26937int tmp = getservbyname_r((const char *) 0, (const char *) 0,
26938                          (struct servent *) 0, (char *) 0, 0,
26939                          (struct servent **) 0);
26940/* use tmp to suppress the warning */
26941tmp=0;
26942
26943      return 0; }
26944
26945_ACEOF
26946if ac_fn_c_try_compile "$LINENO"; then :
26947  ac_cv_getservbyname_r_style=glibc2
26948else
26949  ac_cv_getservbyname_r_style=none
26950fi
26951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26952 CFLAGS=$apr_save_CFLAGS
26953
26954
26955if test "$ac_cv_getservbyname_r_style" = "none"; then
26956            apr_save_CFLAGS=$CFLAGS
26957 CFLAGS="$CFLAGS $CFLAGS_WARN"
26958 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26959   CFLAGS="$CFLAGS -Werror"
26960 fi
26961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26962/* end confdefs.h.  */
26963#include "confdefs.h"
26964
26965
26966    #ifdef HAVE_SYS_TYPES_H
26967    #include <sys/types.h>
26968    #endif
26969    #ifdef HAVE_NETINET_IN_H
26970    #include <netinet/in.h>
26971    #endif
26972    #ifdef HAVE_ARPA_INET_H
26973    #include <arpa/inet.h>
26974    #endif
26975    #ifdef HAVE_NETDB_H
26976    #include <netdb.h>
26977    #endif
26978    #ifdef HAVE_STDLIB_H
26979    #include <stdlib.h>
26980    #endif
26981
26982   int main(int argc, const char *const *argv) {
26983
26984    struct servent *tmp = getservbyname_r((const char *) 0, (const char *) 0,
26985                                          (struct servent *) 0, (char *) 0, 0);
26986    /* use tmp to suppress the warning */
26987    tmp=NULL;
26988
26989      return 0; }
26990
26991_ACEOF
26992if ac_fn_c_try_compile "$LINENO"; then :
26993  ac_cv_getservbyname_r_style=solaris
26994else
26995  ac_cv_getservbyname_r_style=none
26996fi
26997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26998 CFLAGS=$apr_save_CFLAGS
26999
27000fi
27001
27002if test "$ac_cv_getservbyname_r_style" = "none"; then
27003            apr_save_CFLAGS=$CFLAGS
27004 CFLAGS="$CFLAGS $CFLAGS_WARN"
27005 if test "$ac_cv_c_compiler_gnu" = "yes"; then
27006   CFLAGS="$CFLAGS -Werror"
27007 fi
27008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27009/* end confdefs.h.  */
27010#include "confdefs.h"
27011
27012
27013    #ifdef HAVE_SYS_TYPES_H
27014    #include <sys/types.h>
27015    #endif
27016    #ifdef HAVE_NETINET_IN_H
27017    #include <netinet/in.h>
27018    #endif
27019    #ifdef HAVE_ARPA_INET_H
27020    #include <arpa/inet.h>
27021    #endif
27022    #ifdef HAVE_NETDB_H
27023    #include <netdb.h>
27024    #endif
27025    #ifdef HAVE_STDLIB_H
27026    #include <stdlib.h>
27027    #endif
27028
27029   int main(int argc, const char *const *argv) {
27030
27031    int tmp = getservbyname_r((const char *) 0, (const char *) 0,
27032                              (struct servent *) 0, (struct servent_data *) 0);
27033    /* use tmp to suppress the warning */
27034    tmp=0;
27035
27036      return 0; }
27037
27038_ACEOF
27039if ac_fn_c_try_compile "$LINENO"; then :
27040  ac_cv_getservbyname_r_style=osf1
27041else
27042  ac_cv_getservbyname_r_style=none
27043fi
27044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27045 CFLAGS=$apr_save_CFLAGS
27046
27047fi
27048
27049fi
27050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_getservbyname_r_style" >&5
27051$as_echo "$ac_cv_getservbyname_r_style" >&6; }
27052
27053if test "$ac_cv_getservbyname_r_style" = "glibc2"; then
27054
27055$as_echo "#define GETSERVBYNAME_R_GLIBC2 1" >>confdefs.h
27056
27057elif test "$ac_cv_getservbyname_r_style" = "solaris"; then
27058
27059$as_echo "#define GETSERVBYNAME_R_SOLARIS 1" >>confdefs.h
27060
27061elif test "$ac_cv_getservbyname_r_style" = "osf1"; then
27062
27063$as_echo "#define GETSERVBYNAME_R_OSF1 1" >>confdefs.h
27064
27065fi
27066
27067fi
27068
27069
27070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TCP_NODELAY setting is inherited from listening sockets" >&5
27071$as_echo_n "checking if TCP_NODELAY setting is inherited from listening sockets... " >&6; }
27072if ${ac_cv_tcp_nodelay_inherited+:} false; then :
27073  $as_echo_n "(cached) " >&6
27074else
27075
27076  if test "$cross_compiling" = yes; then :
27077
27078    ac_cv_tcp_nodelay_inherited="yes"
27079
27080else
27081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27082/* end confdefs.h.  */
27083
27084#include <stdio.h>
27085#ifdef HAVE_SYS_TYPES_H
27086#include <sys/types.h>
27087#endif
27088#ifdef HAVE_SYS_SOCKET_H
27089#include <sys/socket.h>
27090#endif
27091#ifdef HAVE_NETINET_IN_H
27092#include <netinet/in.h>
27093#endif
27094#ifdef HAVE_NETINET_TCP_H
27095#include <netinet/tcp.h>
27096#endif
27097#ifndef HAVE_SOCKLEN_T
27098typedef int socklen_t;
27099#endif
27100int main(void) {
27101    int listen_s, connected_s, client_s;
27102    int listen_port, rc;
27103    struct sockaddr_in sa;
27104    socklen_t sa_len;
27105    socklen_t option_len;
27106    int option;
27107
27108    listen_s = socket(AF_INET, SOCK_STREAM, 0);
27109    if (listen_s < 0) {
27110        perror("socket");
27111        exit(1);
27112    }
27113    option = 1;
27114    rc = setsockopt(listen_s, IPPROTO_TCP, TCP_NODELAY, &option, sizeof option);
27115    if (rc < 0) {
27116        perror("setsockopt TCP_NODELAY");
27117        exit(1);
27118    }
27119    memset(&sa, 0, sizeof sa);
27120    sa.sin_family = AF_INET;
27121#ifdef BEOS
27122    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27123#endif
27124    /* leave port 0 to get ephemeral */
27125    rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
27126    if (rc < 0) {
27127        perror("bind for ephemeral port");
27128        exit(1);
27129    }
27130    /* find ephemeral port */
27131    sa_len = sizeof(sa);
27132    rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
27133    if (rc < 0) {
27134        perror("getsockname");
27135        exit(1);
27136    }
27137    listen_port = sa.sin_port;
27138    rc = listen(listen_s, 5);
27139    if (rc < 0) {
27140        perror("listen");
27141        exit(1);
27142    }
27143    client_s = socket(AF_INET, SOCK_STREAM, 0);
27144    if (client_s < 0) {
27145        perror("socket");
27146        exit(1);
27147    }
27148    memset(&sa, 0, sizeof sa);
27149    sa.sin_family = AF_INET;
27150    sa.sin_port   = listen_port;
27151#ifdef BEOS
27152    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27153#endif
27154    /* leave sin_addr all zeros to use loopback */
27155    rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
27156    if (rc < 0) {
27157        perror("connect");
27158        exit(1);
27159    }
27160    sa_len = sizeof sa;
27161    connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
27162    if (connected_s < 0) {
27163        perror("accept");
27164        exit(1);
27165    }
27166    option_len = sizeof option;
27167    rc = getsockopt(connected_s, IPPROTO_TCP, TCP_NODELAY, &option, &option_len);
27168    if (rc < 0) {
27169        perror("getsockopt");
27170        exit(1);
27171    }
27172    if (!option) {
27173        fprintf(stderr, "TCP_NODELAY is not set in the child.\n");
27174        exit(1);
27175    }
27176    return 0;
27177}
27178
27179_ACEOF
27180if ac_fn_c_try_run "$LINENO"; then :
27181
27182    ac_cv_tcp_nodelay_inherited="yes"
27183
27184else
27185
27186    ac_cv_tcp_nodelay_inherited="no"
27187
27188fi
27189rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27190  conftest.$ac_objext conftest.beam conftest.$ac_ext
27191fi
27192
27193fi
27194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tcp_nodelay_inherited" >&5
27195$as_echo "$ac_cv_tcp_nodelay_inherited" >&6; }
27196if test "$ac_cv_tcp_nodelay_inherited" = "yes"; then
27197    tcp_nodelay_inherited=1
27198else
27199    tcp_nodelay_inherited=0
27200fi
27201
27202
27203  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if O_NONBLOCK setting is inherited from listening sockets" >&5
27204$as_echo_n "checking if O_NONBLOCK setting is inherited from listening sockets... " >&6; }
27205if ${ac_cv_o_nonblock_inherited+:} false; then :
27206  $as_echo_n "(cached) " >&6
27207else
27208
27209  if test "$cross_compiling" = yes; then :
27210
27211    ac_cv_o_nonblock_inherited="yes"
27212
27213else
27214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27215/* end confdefs.h.  */
27216
27217#ifdef HAVE_STDLIB_H
27218#include <stdlib.h>
27219#endif
27220#ifdef HAVE_STRING_H
27221#include <string.h>
27222#endif
27223#ifdef HAVE_STDIO_H
27224#include <stdio.h>
27225#endif
27226#ifdef HAVE_SYS_TYPES_H
27227#include <sys/types.h>
27228#endif
27229#ifdef HAVE_SYS_SOCKET_H
27230#include <sys/socket.h>
27231#endif
27232#ifdef HAVE_SYS_TIME_H
27233#include <sys/time.h>
27234#endif
27235#ifdef HAVE_SYS_SELECT_H
27236#include <sys/select.h>
27237#endif
27238#ifdef HAVE_NETINET_IN_H
27239#include <netinet/in.h>
27240#endif
27241#ifdef HAVE_NETINET_TCP_H
27242#include <netinet/tcp.h>
27243#endif
27244#ifndef HAVE_SOCKLEN_T
27245typedef int socklen_t;
27246#endif
27247#ifdef HAVE_FCNTL_H
27248#include <fcntl.h>
27249#endif
27250int main(void) {
27251    int listen_s, connected_s, client_s;
27252    int listen_port, rc;
27253    struct sockaddr_in sa;
27254    socklen_t sa_len;
27255    fd_set fds;
27256    struct timeval tv;
27257
27258    listen_s = socket(AF_INET, SOCK_STREAM, 0);
27259    if (listen_s < 0) {
27260        perror("socket");
27261        exit(1);
27262    }
27263    memset(&sa, 0, sizeof sa);
27264    sa.sin_family = AF_INET;
27265#ifdef BEOS
27266    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27267#endif
27268    /* leave port 0 to get ephemeral */
27269    rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
27270    if (rc < 0) {
27271        perror("bind for ephemeral port");
27272        exit(1);
27273    }
27274    /* find ephemeral port */
27275    sa_len = sizeof(sa);
27276    rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
27277    if (rc < 0) {
27278        perror("getsockname");
27279        exit(1);
27280    }
27281    listen_port = sa.sin_port;
27282    rc = listen(listen_s, 5);
27283    if (rc < 0) {
27284        perror("listen");
27285        exit(1);
27286    }
27287    rc = fcntl(listen_s, F_SETFL, O_NONBLOCK);
27288    if (rc < 0) {
27289        perror("fcntl(F_SETFL)");
27290        exit(1);
27291    }
27292    client_s = socket(AF_INET, SOCK_STREAM, 0);
27293    if (client_s < 0) {
27294        perror("socket");
27295        exit(1);
27296    }
27297    memset(&sa, 0, sizeof sa);
27298    sa.sin_family = AF_INET;
27299    sa.sin_port   = listen_port;
27300#ifdef BEOS
27301    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27302#endif
27303    /* leave sin_addr all zeros to use loopback */
27304    rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
27305    if (rc < 0) {
27306        perror("connect");
27307        exit(1);
27308    }
27309    sa_len = sizeof sa;
27310    /* 1 second select timeout */
27311    tv.tv_sec = 1;
27312    tv.tv_usec = 0;
27313    /* Set up fd set */
27314    FD_ZERO(&fds);
27315    FD_SET(listen_s, &fds);
27316    /* Wait for socket to become readable */
27317    rc = select(listen_s + 1, &fds, NULL, NULL, &tv);
27318    if (rc < 0) {
27319        perror("select");
27320        exit(1);
27321    }
27322    if (rc == 0) {
27323        fprintf(stderr, "Socket failed to become readable (timeout)\n");
27324        exit(1);
27325    }
27326    if (!FD_ISSET(listen_s, &fds)) {
27327        fprintf(stderr, "Socket failed to become readable (selected another fd)\n");
27328        exit(1);
27329    }
27330    connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
27331    if (connected_s < 0) {
27332        perror("accept");
27333        exit(1);
27334    }
27335    rc = fcntl(connected_s, F_GETFL, 0);
27336    if (rc < 0) {
27337        perror("fcntl(F_GETFL)");
27338        exit(1);
27339    }
27340    if (!(rc & O_NONBLOCK)) {
27341        fprintf(stderr, "O_NONBLOCK is not set in the child.\n");
27342        exit(1);
27343    }
27344    return 0;
27345}
27346
27347_ACEOF
27348if ac_fn_c_try_run "$LINENO"; then :
27349
27350    ac_cv_o_nonblock_inherited="yes"
27351
27352else
27353
27354    ac_cv_o_nonblock_inherited="no"
27355
27356fi
27357rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27358  conftest.$ac_objext conftest.beam conftest.$ac_ext
27359fi
27360
27361fi
27362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_nonblock_inherited" >&5
27363$as_echo "$ac_cv_o_nonblock_inherited" >&6; }
27364if test "$ac_cv_o_nonblock_inherited" = "yes"; then
27365    o_nonblock_inherited=1
27366else
27367    o_nonblock_inherited=0
27368fi
27369
27370
27371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCP_NODELAY and TCP_CORK can both be enabled" >&5
27372$as_echo_n "checking whether TCP_NODELAY and TCP_CORK can both be enabled... " >&6; }
27373if ${apr_cv_tcp_nodelay_with_cork+:} false; then :
27374  $as_echo_n "(cached) " >&6
27375else
27376  if test "$cross_compiling" = yes; then :
27377  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27379as_fn_error $? "cannot run test program while cross compiling
27380See \`config.log' for more details" "$LINENO" 5; }
27381else
27382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27383/* end confdefs.h.  */
27384
27385#ifdef HAVE_SYS_TYPES_H
27386#include <sys/types.h>
27387#endif
27388#ifdef HAVE_SYS_SOCKET_H
27389#include <sys/socket.h>
27390#endif
27391#ifdef HAVE_NETINET_IN_H
27392#include <netinet/in.h>
27393#endif
27394#ifdef HAVE_NETINET_TCP_H
27395#include <netinet/tcp.h>
27396#endif
27397#include <stdio.h>
27398#include <stdlib.h>
27399
27400int
27401main ()
27402{
27403
27404    int fd, flag, rc;
27405
27406    fd = socket(AF_INET, SOCK_STREAM, 0);
27407    if (fd < 0) {
27408       exit(1);
27409    }
27410
27411    flag = 1;
27412    rc = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &flag, sizeof flag);
27413    if (rc < 0) {
27414        perror("setsockopt TCP_NODELAY");
27415        exit(2);
27416    }
27417
27418    flag = 1;
27419    rc = setsockopt(fd, IPPROTO_TCP, TCP_CORK, &flag, sizeof flag);
27420    if (rc < 0) {
27421        perror("setsockopt TCP_CORK");
27422        exit(3);
27423    }
27424
27425    exit(0);
27426
27427  ;
27428  return 0;
27429}
27430_ACEOF
27431if ac_fn_c_try_run "$LINENO"; then :
27432  apr_cv_tcp_nodelay_with_cork=yes
27433else
27434  apr_cv_tcp_nodelay_with_cork=no
27435fi
27436rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27437  conftest.$ac_objext conftest.beam conftest.$ac_ext
27438fi
27439
27440fi
27441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_tcp_nodelay_with_cork" >&5
27442$as_echo "$apr_cv_tcp_nodelay_with_cork" >&6; }
27443
27444if test "$apr_cv_tcp_nodelay_with_cork" = "yes"; then
27445
27446$as_echo "#define HAVE_TCP_NODELAY_WITH_CORK 1" >>confdefs.h
27447
27448fi
27449
27450
27451# Look for a way of corking TCP...
27452
27453  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_CORK in netinet/tcp.h" >&5
27454$as_echo_n "checking for TCP_CORK in netinet/tcp.h... " >&6; }
27455if ${ac_cv_define_TCP_CORK+:} false; then :
27456  $as_echo_n "(cached) " >&6
27457else
27458
27459    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27460/* end confdefs.h.  */
27461
27462#include <netinet/tcp.h>
27463#ifdef TCP_CORK
27464YES_IS_DEFINED
27465#endif
27466
27467_ACEOF
27468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27469  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
27470  ac_cv_define_TCP_CORK=yes
27471else
27472  ac_cv_define_TCP_CORK=no
27473fi
27474rm -f conftest*
27475
27476
27477fi
27478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_CORK" >&5
27479$as_echo "$ac_cv_define_TCP_CORK" >&6; }
27480  if test "$ac_cv_define_TCP_CORK" = "yes"; then
27481
27482$as_echo "#define HAVE_TCP_CORK 1" >>confdefs.h
27483
27484  fi
27485
27486
27487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_NOPUSH in netinet/tcp.h" >&5
27488$as_echo_n "checking for TCP_NOPUSH in netinet/tcp.h... " >&6; }
27489if ${ac_cv_define_TCP_NOPUSH+:} false; then :
27490  $as_echo_n "(cached) " >&6
27491else
27492
27493    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27494/* end confdefs.h.  */
27495
27496#include <netinet/tcp.h>
27497#ifdef TCP_NOPUSH
27498YES_IS_DEFINED
27499#endif
27500
27501_ACEOF
27502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27503  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
27504  ac_cv_define_TCP_NOPUSH=yes
27505else
27506  ac_cv_define_TCP_NOPUSH=no
27507fi
27508rm -f conftest*
27509
27510
27511fi
27512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_NOPUSH" >&5
27513$as_echo "$ac_cv_define_TCP_NOPUSH" >&6; }
27514  if test "$ac_cv_define_TCP_NOPUSH" = "yes"; then
27515
27516$as_echo "#define HAVE_TCP_NOPUSH 1" >>confdefs.h
27517
27518  fi
27519
27520apr_tcp_nopush_flag="0"
27521have_corkable_tcp="0"
27522if test "x$ac_cv_define_TCP_CORK" = "xyes"; then
27523    apr_tcp_nopush_flag="TCP_CORK"
27524    have_corkable_tcp="1"
27525else
27526    case $host in
27527        *linux*)
27528            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27529/* end confdefs.h.  */
27530
27531#include <linux/socket.h>
27532#ifdef TCP_CORK
27533yes
27534#endif
27535
27536_ACEOF
27537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27538  $EGREP "yes" >/dev/null 2>&1; then :
27539
27540                apr_tcp_nopush_flag="3"
27541                have_corkable_tcp="1"
27542
27543fi
27544rm -f conftest*
27545
27546            ;;
27547        *)
27548            ;;
27549    esac
27550fi
27551if test "x$ac_cv_define_TCP_NOPUSH" = "xyes"; then
27552    apr_tcp_nopush_flag="TCP_NOPUSH"
27553    have_corkable_tcp="1"
27554fi
27555
27556
27557  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_ACCEPTFILTER in sys/socket.h" >&5
27558$as_echo_n "checking for SO_ACCEPTFILTER in sys/socket.h... " >&6; }
27559if ${ac_cv_define_SO_ACCEPTFILTER+:} false; then :
27560  $as_echo_n "(cached) " >&6
27561else
27562
27563    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27564/* end confdefs.h.  */
27565
27566#include <sys/socket.h>
27567#ifdef SO_ACCEPTFILTER
27568YES_IS_DEFINED
27569#endif
27570
27571_ACEOF
27572if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27573  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
27574  ac_cv_define_SO_ACCEPTFILTER=yes
27575else
27576  ac_cv_define_SO_ACCEPTFILTER=no
27577fi
27578rm -f conftest*
27579
27580
27581fi
27582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SO_ACCEPTFILTER" >&5
27583$as_echo "$ac_cv_define_SO_ACCEPTFILTER" >&6; }
27584  if test "$ac_cv_define_SO_ACCEPTFILTER" = "yes"; then
27585
27586$as_echo "#define HAVE_SO_ACCEPTFILTER 1" >>confdefs.h
27587
27588  fi
27589
27590if test "x$ac_cv_define_SO_ACCEPTFILTER" = "xyes"; then
27591    acceptfilter="1"
27592else
27593    acceptfilter="0"
27594fi
27595
27596
27597  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SCTP is supported" >&5
27598$as_echo_n "checking whether SCTP is supported... " >&6; }
27599if ${apr_cv_sctp+:} false; then :
27600  $as_echo_n "(cached) " >&6
27601else
27602
27603  if test "$cross_compiling" = yes; then :
27604  apr_cv_sctp=no
27605else
27606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27607/* end confdefs.h.  */
27608
27609#ifdef HAVE_SYS_TYPES_H
27610#include <sys/types.h>
27611#endif
27612#ifdef HAVE_SYS_SOCKET_H
27613#include <sys/socket.h>
27614#endif
27615#ifdef HAVE_NETINET_IN_H
27616#include <netinet/in.h>
27617#endif
27618#ifdef HAVE_NETINET_SCTP_H
27619#include <netinet/sctp.h>
27620#endif
27621#ifdef HAVE_NETINET_SCTP_UIO_H
27622#include <netinet/sctp_uio.h>
27623#endif
27624#include <stdlib.h>
27625int main(void) {
27626    int s, opt = 1;
27627    if ((s = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP)) < 0)
27628       exit(1);
27629    if (setsockopt(s, IPPROTO_SCTP, SCTP_NODELAY, &opt, sizeof(int)) < 0)
27630       exit(2);
27631    exit(0);
27632}
27633_ACEOF
27634if ac_fn_c_try_run "$LINENO"; then :
27635  apr_cv_sctp=yes
27636else
27637  apr_cv_sctp=no
27638fi
27639rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27640  conftest.$ac_objext conftest.beam conftest.$ac_ext
27641fi
27642
27643fi
27644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sctp" >&5
27645$as_echo "$apr_cv_sctp" >&6; }
27646
27647if test "$apr_cv_sctp" = "yes"; then
27648    have_sctp=1
27649else
27650    have_sctp=0
27651fi
27652
27653
27654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip_mreq" >&5
27655$as_echo_n "checking for struct ip_mreq... " >&6; }
27656if ${apr_cv_struct_ipmreq+:} false; then :
27657  $as_echo_n "(cached) " >&6
27658else
27659
27660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27661/* end confdefs.h.  */
27662
27663#include <sys/types.h>
27664#include <netinet/in.h>
27665
27666int
27667main ()
27668{
27669
27670    struct ip_mreq mip;
27671    mip.imr_interface.s_addr = INADDR_ANY;
27672
27673  ;
27674  return 0;
27675}
27676_ACEOF
27677if ac_fn_c_try_compile "$LINENO"; then :
27678  apr_cv_struct_ipmreq=yes
27679else
27680  apr_cv_struct_ipmreq=no
27681fi
27682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27683fi
27684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_struct_ipmreq" >&5
27685$as_echo "$apr_cv_struct_ipmreq" >&6; }
27686
27687if test $apr_cv_struct_ipmreq = yes; then
27688
27689$as_echo "#define HAVE_STRUCT_IPMREQ 1" >>confdefs.h
27690
27691fi
27692
27693
27694
27695
27696
27697
27698
27699for ac_func in set_h_errno
27700do :
27701  ac_fn_c_check_func "$LINENO" "set_h_errno" "ac_cv_func_set_h_errno"
27702if test "x$ac_cv_func_set_h_errno" = xyes; then :
27703  cat >>confdefs.h <<_ACEOF
27704#define HAVE_SET_H_ERRNO 1
27705_ACEOF
27706
27707fi
27708done
27709
27710
27711echo "${nl}Checking for IPv6 Networking support..."
27712
27713# Check whether --enable-ipv6 was given.
27714if test "${enable_ipv6+set}" = set; then :
27715  enableval=$enable_ipv6;  if test "$enableval" = "no"; then
27716        user_disabled_ipv6=1
27717    fi
27718else
27719   user_disabled_ipv6=0
27720fi
27721
27722
27723case $host in
27724  *)
27725    broken_ipv6=0
27726esac
27727
27728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
27729$as_echo_n "checking for library containing getaddrinfo... " >&6; }
27730if ${ac_cv_search_getaddrinfo+:} false; then :
27731  $as_echo_n "(cached) " >&6
27732else
27733  ac_func_search_save_LIBS=$LIBS
27734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27735/* end confdefs.h.  */
27736
27737/* Override any GCC internal prototype to avoid an error.
27738   Use char because int might match the return type of a GCC
27739   builtin and then its argument prototype would still apply.  */
27740#ifdef __cplusplus
27741extern "C"
27742#endif
27743char getaddrinfo ();
27744int
27745main ()
27746{
27747return getaddrinfo ();
27748  ;
27749  return 0;
27750}
27751_ACEOF
27752for ac_lib in '' socket inet6; do
27753  if test -z "$ac_lib"; then
27754    ac_res="none required"
27755  else
27756    ac_res=-l$ac_lib
27757    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27758  fi
27759  if ac_fn_c_try_link "$LINENO"; then :
27760  ac_cv_search_getaddrinfo=$ac_res
27761fi
27762rm -f core conftest.err conftest.$ac_objext \
27763    conftest$ac_exeext
27764  if ${ac_cv_search_getaddrinfo+:} false; then :
27765  break
27766fi
27767done
27768if ${ac_cv_search_getaddrinfo+:} false; then :
27769
27770else
27771  ac_cv_search_getaddrinfo=no
27772fi
27773rm conftest.$ac_ext
27774LIBS=$ac_func_search_save_LIBS
27775fi
27776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
27777$as_echo "$ac_cv_search_getaddrinfo" >&6; }
27778ac_res=$ac_cv_search_getaddrinfo
27779if test "$ac_res" != no; then :
27780  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27781
27782fi
27783
27784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gai_strerror" >&5
27785$as_echo_n "checking for library containing gai_strerror... " >&6; }
27786if ${ac_cv_search_gai_strerror+:} false; then :
27787  $as_echo_n "(cached) " >&6
27788else
27789  ac_func_search_save_LIBS=$LIBS
27790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27791/* end confdefs.h.  */
27792
27793/* Override any GCC internal prototype to avoid an error.
27794   Use char because int might match the return type of a GCC
27795   builtin and then its argument prototype would still apply.  */
27796#ifdef __cplusplus
27797extern "C"
27798#endif
27799char gai_strerror ();
27800int
27801main ()
27802{
27803return gai_strerror ();
27804  ;
27805  return 0;
27806}
27807_ACEOF
27808for ac_lib in '' socket inet6; do
27809  if test -z "$ac_lib"; then
27810    ac_res="none required"
27811  else
27812    ac_res=-l$ac_lib
27813    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27814  fi
27815  if ac_fn_c_try_link "$LINENO"; then :
27816  ac_cv_search_gai_strerror=$ac_res
27817fi
27818rm -f core conftest.err conftest.$ac_objext \
27819    conftest$ac_exeext
27820  if ${ac_cv_search_gai_strerror+:} false; then :
27821  break
27822fi
27823done
27824if ${ac_cv_search_gai_strerror+:} false; then :
27825
27826else
27827  ac_cv_search_gai_strerror=no
27828fi
27829rm conftest.$ac_ext
27830LIBS=$ac_func_search_save_LIBS
27831fi
27832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gai_strerror" >&5
27833$as_echo "$ac_cv_search_gai_strerror" >&6; }
27834ac_res=$ac_cv_search_gai_strerror
27835if test "$ac_res" != no; then :
27836  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27837
27838fi
27839
27840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
27841$as_echo_n "checking for library containing getnameinfo... " >&6; }
27842if ${ac_cv_search_getnameinfo+:} false; then :
27843  $as_echo_n "(cached) " >&6
27844else
27845  ac_func_search_save_LIBS=$LIBS
27846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27847/* end confdefs.h.  */
27848
27849/* Override any GCC internal prototype to avoid an error.
27850   Use char because int might match the return type of a GCC
27851   builtin and then its argument prototype would still apply.  */
27852#ifdef __cplusplus
27853extern "C"
27854#endif
27855char getnameinfo ();
27856int
27857main ()
27858{
27859return getnameinfo ();
27860  ;
27861  return 0;
27862}
27863_ACEOF
27864for ac_lib in '' socket inet6; do
27865  if test -z "$ac_lib"; then
27866    ac_res="none required"
27867  else
27868    ac_res=-l$ac_lib
27869    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27870  fi
27871  if ac_fn_c_try_link "$LINENO"; then :
27872  ac_cv_search_getnameinfo=$ac_res
27873fi
27874rm -f core conftest.err conftest.$ac_objext \
27875    conftest$ac_exeext
27876  if ${ac_cv_search_getnameinfo+:} false; then :
27877  break
27878fi
27879done
27880if ${ac_cv_search_getnameinfo+:} false; then :
27881
27882else
27883  ac_cv_search_getnameinfo=no
27884fi
27885rm conftest.$ac_ext
27886LIBS=$ac_func_search_save_LIBS
27887fi
27888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
27889$as_echo "$ac_cv_search_getnameinfo" >&6; }
27890ac_res=$ac_cv_search_getnameinfo
27891if test "$ac_res" != no; then :
27892  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27893
27894fi
27895
27896for ac_func in gai_strerror
27897do :
27898  ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
27899if test "x$ac_cv_func_gai_strerror" = xyes; then :
27900  cat >>confdefs.h <<_ACEOF
27901#define HAVE_GAI_STRERROR 1
27902_ACEOF
27903
27904fi
27905done
27906
27907
27908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
27909$as_echo_n "checking for working getaddrinfo... " >&6; }
27910if ${ac_cv_working_getaddrinfo+:} false; then :
27911  $as_echo_n "(cached) " >&6
27912else
27913
27914  if test "$cross_compiling" = yes; then :
27915
27916  ac_cv_working_getaddrinfo="yes"
27917
27918else
27919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27920/* end confdefs.h.  */
27921
27922#ifdef HAVE_NETDB_H
27923#include <netdb.h>
27924#endif
27925#ifdef HAVE_STRING_H
27926#include <string.h>
27927#endif
27928#ifdef HAVE_SYS_TYPES_H
27929#include <sys/types.h>
27930#endif
27931#ifdef HAVE_SYS_SOCKET_H
27932#include <sys/socket.h>
27933#endif
27934
27935int main(void) {
27936    struct addrinfo hints, *ai;
27937    int error;
27938
27939    memset(&hints, 0, sizeof(hints));
27940    hints.ai_family = AF_UNSPEC;
27941    hints.ai_socktype = SOCK_STREAM;
27942    error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
27943    if (error) {
27944        exit(1);
27945    }
27946    if (ai->ai_addr->sa_family != AF_INET) {
27947        exit(1);
27948    }
27949    exit(0);
27950}
27951
27952_ACEOF
27953if ac_fn_c_try_run "$LINENO"; then :
27954
27955  ac_cv_working_getaddrinfo="yes"
27956
27957else
27958
27959  ac_cv_working_getaddrinfo="no"
27960
27961fi
27962rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27963  conftest.$ac_objext conftest.beam conftest.$ac_ext
27964fi
27965
27966fi
27967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
27968$as_echo "$ac_cv_working_getaddrinfo" >&6; }
27969if test "$ac_cv_working_getaddrinfo" = "yes"; then
27970  if test "$ac_cv_func_gai_strerror" != "yes"; then
27971    ac_cv_working_getaddrinfo="no"
27972  else
27973
27974$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
27975
27976  fi
27977fi
27978
27979
27980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for negative error codes for getaddrinfo" >&5
27981$as_echo_n "checking for negative error codes for getaddrinfo... " >&6; }
27982if ${ac_cv_negative_eai+:} false; then :
27983  $as_echo_n "(cached) " >&6
27984else
27985
27986  if test "$cross_compiling" = yes; then :
27987
27988  ac_cv_negative_eai="no"
27989
27990else
27991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27992/* end confdefs.h.  */
27993
27994#ifdef HAVE_NETDB_H
27995#include <netdb.h>
27996#endif
27997
27998int main(void) {
27999    if (EAI_ADDRFAMILY < 0) {
28000        exit(0);
28001    }
28002    exit(1);
28003}
28004
28005_ACEOF
28006if ac_fn_c_try_run "$LINENO"; then :
28007
28008  ac_cv_negative_eai="yes"
28009
28010else
28011
28012  ac_cv_negative_eai="no"
28013
28014fi
28015rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28016  conftest.$ac_objext conftest.beam conftest.$ac_ext
28017fi
28018
28019fi
28020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_negative_eai" >&5
28021$as_echo "$ac_cv_negative_eai" >&6; }
28022if test "$ac_cv_negative_eai" = "yes"; then
28023
28024$as_echo "#define NEGATIVE_EAI 1" >>confdefs.h
28025
28026fi
28027
28028
28029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getnameinfo" >&5
28030$as_echo_n "checking for working getnameinfo... " >&6; }
28031if ${ac_cv_working_getnameinfo+:} false; then :
28032  $as_echo_n "(cached) " >&6
28033else
28034
28035  if test "$cross_compiling" = yes; then :
28036
28037  ac_cv_working_getnameinfo="yes"
28038
28039else
28040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28041/* end confdefs.h.  */
28042
28043#ifdef HAVE_NETDB_H
28044#include <netdb.h>
28045#endif
28046#ifdef HAVE_STRING_H
28047#include <string.h>
28048#endif
28049#ifdef HAVE_SYS_TYPES_H
28050#include <sys/types.h>
28051#endif
28052#ifdef HAVE_SYS_SOCKET_H
28053#include <sys/socket.h>
28054#endif
28055#ifdef HAVE_NETINET_IN_H
28056#include <netinet/in.h>
28057#endif
28058
28059int main(void) {
28060    struct sockaddr_in sa;
28061    char hbuf[256];
28062    int error;
28063
28064    sa.sin_family = AF_INET;
28065    sa.sin_port = 0;
28066    sa.sin_addr.s_addr = inet_addr("127.0.0.1");
28067#ifdef SIN6_LEN
28068    sa.sin_len = sizeof(sa);
28069#endif
28070
28071    error = getnameinfo((const struct sockaddr *)&sa, sizeof(sa),
28072                        hbuf, 256, NULL, 0,
28073                        NI_NUMERICHOST);
28074    if (error) {
28075        exit(1);
28076    } else {
28077        exit(0);
28078    }
28079}
28080
28081_ACEOF
28082if ac_fn_c_try_run "$LINENO"; then :
28083
28084  ac_cv_working_getnameinfo="yes"
28085
28086else
28087
28088  ac_cv_working_getnameinfo="no"
28089
28090fi
28091rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28092  conftest.$ac_objext conftest.beam conftest.$ac_ext
28093fi
28094
28095fi
28096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getnameinfo" >&5
28097$as_echo "$ac_cv_working_getnameinfo" >&6; }
28098if test "$ac_cv_working_getnameinfo" = "yes"; then
28099
28100$as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28101
28102fi
28103
28104
28105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6" >&5
28106$as_echo_n "checking for sockaddr_in6... " >&6; }
28107if ${ac_cv_define_sockaddr_in6+:} false; then :
28108  $as_echo_n "(cached) " >&6
28109else
28110
28111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28112/* end confdefs.h.  */
28113
28114#ifdef HAVE_SYS_TYPES_H
28115#include <sys/types.h>
28116#endif
28117#ifdef HAVE_NETINET_IN_H
28118#include <netinet/in.h>
28119#endif
28120
28121int
28122main ()
28123{
28124
28125struct sockaddr_in6 sa;
28126
28127  ;
28128  return 0;
28129}
28130_ACEOF
28131if ac_fn_c_try_compile "$LINENO"; then :
28132
28133    ac_cv_define_sockaddr_in6=yes
28134
28135else
28136
28137    ac_cv_define_sockaddr_in6=no
28138
28139fi
28140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28141
28142fi
28143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_sockaddr_in6" >&5
28144$as_echo "$ac_cv_define_sockaddr_in6" >&6; }
28145
28146if test "$ac_cv_define_sockaddr_in6" = "yes"; then
28147  have_sockaddr_in6=1
28148else
28149  have_sockaddr_in6=0
28150fi
28151
28152
28153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
28154$as_echo_n "checking for sockaddr_storage... " >&6; }
28155if ${apr_cv_define_sockaddr_storage+:} false; then :
28156  $as_echo_n "(cached) " >&6
28157else
28158
28159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28160/* end confdefs.h.  */
28161
28162#ifdef HAVE_SYS_TYPES_H
28163#include <sys/types.h>
28164#endif
28165#ifdef HAVE_NETINET_IN_H
28166#include <netinet/in.h>
28167#endif
28168
28169int
28170main ()
28171{
28172struct sockaddr_storage sa;
28173  ;
28174  return 0;
28175}
28176_ACEOF
28177if ac_fn_c_try_compile "$LINENO"; then :
28178  apr_cv_define_sockaddr_storage=yes
28179else
28180  apr_cv_define_sockaddr_storage=no
28181fi
28182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28183fi
28184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_sockaddr_storage" >&5
28185$as_echo "$apr_cv_define_sockaddr_storage" >&6; }
28186
28187if test "$apr_cv_define_sockaddr_storage" = "yes"; then
28188  have_sa_storage=1
28189else
28190  have_sa_storage=0
28191fi
28192
28193
28194
28195have_ipv6="0"
28196if test "$user_disabled_ipv6" = 1; then
28197    ipv6_result="no -- disabled by user"
28198else
28199    if test "x$broken_ipv6" = "x0"; then
28200        if test "x$have_sockaddr_in6" = "x1"; then
28201            if test "x$ac_cv_working_getaddrinfo" = "xyes"; then
28202                if test "x$ac_cv_working_getnameinfo" = "xyes"; then
28203
28204  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working AI_ADDRCONFIG" >&5
28205$as_echo_n "checking for working AI_ADDRCONFIG... " >&6; }
28206if ${apr_cv_gai_addrconfig+:} false; then :
28207  $as_echo_n "(cached) " >&6
28208else
28209
28210  if test "$cross_compiling" = yes; then :
28211  apr_cv_gai_addrconfig=no
28212else
28213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28214/* end confdefs.h.  */
28215
28216#ifdef HAVE_NETDB_H
28217#include <netdb.h>
28218#endif
28219#ifdef HAVE_STRING_H
28220#include <string.h>
28221#endif
28222#ifdef HAVE_SYS_TYPES_H
28223#include <sys/types.h>
28224#endif
28225#ifdef HAVE_SYS_SOCKET_H
28226#include <sys/socket.h>
28227#endif
28228
28229int main(int argc, char **argv) {
28230    struct addrinfo hints, *ai;
28231
28232    memset(&hints, 0, sizeof(hints));
28233    hints.ai_family = AF_UNSPEC;
28234    hints.ai_socktype = SOCK_STREAM;
28235    hints.ai_flags = AI_ADDRCONFIG;
28236    return getaddrinfo("localhost", NULL, &hints, &ai) != 0;
28237}
28238_ACEOF
28239if ac_fn_c_try_run "$LINENO"; then :
28240  apr_cv_gai_addrconfig=yes
28241else
28242  apr_cv_gai_addrconfig=no
28243fi
28244rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28245  conftest.$ac_objext conftest.beam conftest.$ac_ext
28246fi
28247
28248fi
28249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_gai_addrconfig" >&5
28250$as_echo "$apr_cv_gai_addrconfig" >&6; }
28251
28252if test $apr_cv_gai_addrconfig = yes; then
28253
28254$as_echo "#define HAVE_GAI_ADDRCONFIG 1" >>confdefs.h
28255
28256fi
28257
28258                    have_ipv6="1"
28259                    ipv6_result="yes"
28260                else
28261                    ipv6_result="no -- no getnameinfo"
28262                fi
28263            else
28264                ipv6_result="no -- no working getaddrinfo"
28265            fi
28266        else
28267            ipv6_result="no -- no sockaddr_in6"
28268        fi
28269    else
28270        ipv6_result="no -- the platform has known problems supporting IPv6"
28271    fi
28272fi
28273
28274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if APR supports IPv6" >&5
28275$as_echo_n "checking if APR supports IPv6... " >&6; }
28276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_result" >&5
28277$as_echo "$ipv6_result" >&6; }
28278
28279
28280
28281# hstrerror is only needed if IPv6 is not enabled,
28282# so getaddrinfo/gai_strerror are not used.
28283if test $have_ipv6 = 0; then
28284  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
28285$as_echo_n "checking for library containing hstrerror... " >&6; }
28286if ${ac_cv_search_hstrerror+:} false; then :
28287  $as_echo_n "(cached) " >&6
28288else
28289  ac_func_search_save_LIBS=$LIBS
28290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28291/* end confdefs.h.  */
28292
28293/* Override any GCC internal prototype to avoid an error.
28294   Use char because int might match the return type of a GCC
28295   builtin and then its argument prototype would still apply.  */
28296#ifdef __cplusplus
28297extern "C"
28298#endif
28299char hstrerror ();
28300int
28301main ()
28302{
28303return hstrerror ();
28304  ;
28305  return 0;
28306}
28307_ACEOF
28308for ac_lib in '' resolv; do
28309  if test -z "$ac_lib"; then
28310    ac_res="none required"
28311  else
28312    ac_res=-l$ac_lib
28313    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28314  fi
28315  if ac_fn_c_try_link "$LINENO"; then :
28316  ac_cv_search_hstrerror=$ac_res
28317fi
28318rm -f core conftest.err conftest.$ac_objext \
28319    conftest$ac_exeext
28320  if ${ac_cv_search_hstrerror+:} false; then :
28321  break
28322fi
28323done
28324if ${ac_cv_search_hstrerror+:} false; then :
28325
28326else
28327  ac_cv_search_hstrerror=no
28328fi
28329rm conftest.$ac_ext
28330LIBS=$ac_func_search_save_LIBS
28331fi
28332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
28333$as_echo "$ac_cv_search_hstrerror" >&6; }
28334ac_res=$ac_cv_search_hstrerror
28335if test "$ac_res" != no; then :
28336  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28337
28338$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
28339
28340fi
28341
28342fi
28343
28344
28345for ac_header in langinfo.h
28346do :
28347  ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
28348if test "x$ac_cv_header_langinfo_h" = xyes; then :
28349  cat >>confdefs.h <<_ACEOF
28350#define HAVE_LANGINFO_H 1
28351_ACEOF
28352
28353fi
28354
28355done
28356
28357for ac_func in nl_langinfo
28358do :
28359  ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
28360if test "x$ac_cv_func_nl_langinfo" = xyes; then :
28361  cat >>confdefs.h <<_ACEOF
28362#define HAVE_NL_LANGINFO 1
28363_ACEOF
28364
28365fi
28366done
28367
28368
28369
28370
28371  if test -z "$have_unicode_fs"; then
28372    test "x$silent" != "xyes" && echo "  setting have_unicode_fs to \"0\""
28373    have_unicode_fs="0"
28374  fi
28375
28376
28377
28378
28379  if test -z "$apr_has_xthread_files"; then
28380    test "x$silent" != "xyes" && echo "  setting apr_has_xthread_files to \"0\""
28381    apr_has_xthread_files="0"
28382  fi
28383
28384
28385
28386
28387  if test -z "$apr_procattr_user_set_requires_password"; then
28388    test "x$silent" != "xyes" && echo "  setting apr_procattr_user_set_requires_password to \"0\""
28389    apr_procattr_user_set_requires_password="0"
28390  fi
28391
28392
28393
28394
28395  if test -z "$apr_thread_func"; then
28396    test "x$silent" != "xyes" && echo "  setting apr_thread_func to \"\""
28397    apr_thread_func=""
28398  fi
28399
28400
28401
28402
28403  if test -z "$apr_has_user"; then
28404    test "x$silent" != "xyes" && echo "  setting apr_has_user to \"1\""
28405    apr_has_user="1"
28406  fi
28407
28408
28409
28410
28411echo "${nl}Restore user-defined environment settings..."
28412
28413
28414set X $apr_ste_save_CPPFLAGS
28415if test ${#} -eq 1; then
28416  EXTRA_CPPFLAGS="$CPPFLAGS"
28417  CPPFLAGS=
28418else
28419  if test "x$apr_ste_save_CPPFLAGS" = "x$CPPFLAGS"; then
28420    EXTRA_CPPFLAGS=
28421  else
28422    EXTRA_CPPFLAGS=`echo "$CPPFLAGS" | sed -e "s%${apr_ste_save_CPPFLAGS}%%"`
28423    CPPFLAGS="$apr_ste_save_CPPFLAGS"
28424  fi
28425fi
28426if test "x$silent" != "xyes"; then
28427  echo "  restoring CPPFLAGS to \"$CPPFLAGS\""
28428  echo "  setting EXTRA_CPPFLAGS to \"$EXTRA_CPPFLAGS\""
28429fi
28430
28431
28432
28433set X $apr_ste_save_CFLAGS
28434if test ${#} -eq 1; then
28435  EXTRA_CFLAGS="$CFLAGS"
28436  CFLAGS=
28437else
28438  if test "x$apr_ste_save_CFLAGS" = "x$CFLAGS"; then
28439    EXTRA_CFLAGS=
28440  else
28441    EXTRA_CFLAGS=`echo "$CFLAGS" | sed -e "s%${apr_ste_save_CFLAGS}%%"`
28442    CFLAGS="$apr_ste_save_CFLAGS"
28443  fi
28444fi
28445if test "x$silent" != "xyes"; then
28446  echo "  restoring CFLAGS to \"$CFLAGS\""
28447  echo "  setting EXTRA_CFLAGS to \"$EXTRA_CFLAGS\""
28448fi
28449
28450
28451
28452set X $apr_ste_save_LDFLAGS
28453if test ${#} -eq 1; then
28454  EXTRA_LDFLAGS="$LDFLAGS"
28455  LDFLAGS=
28456else
28457  if test "x$apr_ste_save_LDFLAGS" = "x$LDFLAGS"; then
28458    EXTRA_LDFLAGS=
28459  else
28460    EXTRA_LDFLAGS=`echo "$LDFLAGS" | sed -e "s%${apr_ste_save_LDFLAGS}%%"`
28461    LDFLAGS="$apr_ste_save_LDFLAGS"
28462  fi
28463fi
28464if test "x$silent" != "xyes"; then
28465  echo "  restoring LDFLAGS to \"$LDFLAGS\""
28466  echo "  setting EXTRA_LDFLAGS to \"$EXTRA_LDFLAGS\""
28467fi
28468
28469
28470
28471set X $apr_ste_save_LIBS
28472if test ${#} -eq 1; then
28473  EXTRA_LIBS="$LIBS"
28474  LIBS=
28475else
28476  if test "x$apr_ste_save_LIBS" = "x$LIBS"; then
28477    EXTRA_LIBS=
28478  else
28479    EXTRA_LIBS=`echo "$LIBS" | sed -e "s%${apr_ste_save_LIBS}%%"`
28480    LIBS="$apr_ste_save_LIBS"
28481  fi
28482fi
28483if test "x$silent" != "xyes"; then
28484  echo "  restoring LIBS to \"$LIBS\""
28485  echo "  setting EXTRA_LIBS to \"$EXTRA_LIBS\""
28486fi
28487
28488
28489
28490set X $apr_ste_save_INCLUDES
28491if test ${#} -eq 1; then
28492  EXTRA_INCLUDES="$INCLUDES"
28493  INCLUDES=
28494else
28495  if test "x$apr_ste_save_INCLUDES" = "x$INCLUDES"; then
28496    EXTRA_INCLUDES=
28497  else
28498    EXTRA_INCLUDES=`echo "$INCLUDES" | sed -e "s%${apr_ste_save_INCLUDES}%%"`
28499    INCLUDES="$apr_ste_save_INCLUDES"
28500  fi
28501fi
28502if test "x$silent" != "xyes"; then
28503  echo "  restoring INCLUDES to \"$INCLUDES\""
28504  echo "  setting EXTRA_INCLUDES to \"$EXTRA_INCLUDES\""
28505fi
28506
28507
28508
28509
28510
28511
28512
28513
28514
28515
28516
28517
28518
28519
28520
28521
28522
28523
28524
28525# Use -no-install or -no-fast-install to link the test
28526# programs on all platforms but Darwin, where it would cause
28527# the programs to be linked against installed versions of
28528# libapr instead of those just built.
28529case $host in
28530    *-apple-darwin*)
28531        LT_NO_INSTALL=""
28532        ;;
28533    *-mingw*)
28534        LT_NO_INSTALL="-no-fast-install"
28535        ;;
28536    *)
28537        LT_NO_INSTALL="-no-install"
28538        ;;
28539esac
28540
28541
28542#
28543# BSD/OS (BSDi) needs to use a different include syntax in the Makefiles
28544#
28545case $host in
28546*bsdi*)
28547    # Check whether they've installed GNU make
28548    if make --version > /dev/null 2>&1; then
28549	INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
28550	INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk"
28551    else
28552	# BSDi make
28553	INCLUDE_RULES=".include \"$apr_buildout/apr_rules.mk\""
28554	INCLUDE_OUTPUTS=".include \"$apr_srcdir/build-outputs.mk\""
28555    fi
28556    ;;
28557*)
28558    INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
28559    INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk"
28560    ;;
28561esac
28562
28563
28564
28565ac_config_files="$ac_config_files Makefile include/apr.h build/apr_rules.mk build/pkg/pkginfo apr-$APR_MAJOR_VERSION-config:apr-config.in apr.pc"
28566
28567
28568if test -d $srcdir/test; then
28569   ac_config_files="$ac_config_files test/Makefile test/internal/Makefile"
28570
28571fi
28572
28573dir=include/arch/unix
28574test -d $dir || $MKDIR $dir
28575
28576ac_config_commands="$ac_config_commands default"
28577
28578
28579cat >confcache <<\_ACEOF
28580# This file is a shell script that caches the results of configure
28581# tests run on this system so they can be shared between configure
28582# scripts and configure runs, see configure's option --config-cache.
28583# It is not useful on other systems.  If it contains results you don't
28584# want to keep, you may remove or edit it.
28585#
28586# config.status only pays attention to the cache file if you give it
28587# the --recheck option to rerun configure.
28588#
28589# `ac_cv_env_foo' variables (set or unset) will be overridden when
28590# loading this file, other *unset* `ac_cv_foo' will be assigned the
28591# following values.
28592
28593_ACEOF
28594
28595# The following way of writing the cache mishandles newlines in values,
28596# but we know of no workaround that is simple, portable, and efficient.
28597# So, we kill variables containing newlines.
28598# Ultrix sh set writes to stderr and can't be redirected directly,
28599# and sets the high bit in the cache file unless we assign to the vars.
28600(
28601  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28602    eval ac_val=\$$ac_var
28603    case $ac_val in #(
28604    *${as_nl}*)
28605      case $ac_var in #(
28606      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28607$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28608      esac
28609      case $ac_var in #(
28610      _ | IFS | as_nl) ;; #(
28611      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28612      *) { eval $ac_var=; unset $ac_var;} ;;
28613      esac ;;
28614    esac
28615  done
28616
28617  (set) 2>&1 |
28618    case $as_nl`(ac_space=' '; set) 2>&1` in #(
28619    *${as_nl}ac_space=\ *)
28620      # `set' does not quote correctly, so add quotes: double-quote
28621      # substitution turns \\\\ into \\, and sed turns \\ into \.
28622      sed -n \
28623	"s/'/'\\\\''/g;
28624	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28625      ;; #(
28626    *)
28627      # `set' quotes correctly as required by POSIX, so do not add quotes.
28628      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28629      ;;
28630    esac |
28631    sort
28632) |
28633  sed '
28634     /^ac_cv_env_/b end
28635     t clear
28636     :clear
28637     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28638     t end
28639     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28640     :end' >>confcache
28641if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28642  if test -w "$cache_file"; then
28643    if test "x$cache_file" != "x/dev/null"; then
28644      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28645$as_echo "$as_me: updating cache $cache_file" >&6;}
28646      if test ! -f "$cache_file" || test -h "$cache_file"; then
28647	cat confcache >"$cache_file"
28648      else
28649        case $cache_file in #(
28650        */* | ?:*)
28651	  mv -f confcache "$cache_file"$$ &&
28652	  mv -f "$cache_file"$$ "$cache_file" ;; #(
28653        *)
28654	  mv -f confcache "$cache_file" ;;
28655	esac
28656      fi
28657    fi
28658  else
28659    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28660$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28661  fi
28662fi
28663rm -f confcache
28664
28665test "x$prefix" = xNONE && prefix=$ac_default_prefix
28666# Let make expand exec_prefix.
28667test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28668
28669DEFS=-DHAVE_CONFIG_H
28670
28671ac_libobjs=
28672ac_ltlibobjs=
28673U=
28674for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28675  # 1. Remove the extension, and $U if already installed.
28676  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28677  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28678  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28679  #    will be set to the directory where LIBOBJS objects are built.
28680  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28681  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28682done
28683LIBOBJS=$ac_libobjs
28684
28685LTLIBOBJS=$ac_ltlibobjs
28686
28687
28688
28689
28690: "${CONFIG_STATUS=./config.status}"
28691ac_write_fail=0
28692ac_clean_files_save=$ac_clean_files
28693ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28694{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28695$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28696as_write_fail=0
28697cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28698#! $SHELL
28699# Generated by $as_me.
28700# Run this file to recreate the current configuration.
28701# Compiler output produced by configure, useful for debugging
28702# configure, is in config.log if it exists.
28703
28704debug=false
28705ac_cs_recheck=false
28706ac_cs_silent=false
28707
28708SHELL=\${CONFIG_SHELL-$SHELL}
28709export SHELL
28710_ASEOF
28711cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28712## -------------------- ##
28713## M4sh Initialization. ##
28714## -------------------- ##
28715
28716# Be more Bourne compatible
28717DUALCASE=1; export DUALCASE # for MKS sh
28718if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28719  emulate sh
28720  NULLCMD=:
28721  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28722  # is contrary to our usage.  Disable this feature.
28723  alias -g '${1+"$@"}'='"$@"'
28724  setopt NO_GLOB_SUBST
28725else
28726  case `(set -o) 2>/dev/null` in #(
28727  *posix*) :
28728    set -o posix ;; #(
28729  *) :
28730     ;;
28731esac
28732fi
28733
28734
28735as_nl='
28736'
28737export as_nl
28738# Printing a long string crashes Solaris 7 /usr/bin/printf.
28739as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28740as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28741as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28742# Prefer a ksh shell builtin over an external printf program on Solaris,
28743# but without wasting forks for bash or zsh.
28744if test -z "$BASH_VERSION$ZSH_VERSION" \
28745    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28746  as_echo='print -r --'
28747  as_echo_n='print -rn --'
28748elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28749  as_echo='printf %s\n'
28750  as_echo_n='printf %s'
28751else
28752  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28753    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28754    as_echo_n='/usr/ucb/echo -n'
28755  else
28756    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28757    as_echo_n_body='eval
28758      arg=$1;
28759      case $arg in #(
28760      *"$as_nl"*)
28761	expr "X$arg" : "X\\(.*\\)$as_nl";
28762	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28763      esac;
28764      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28765    '
28766    export as_echo_n_body
28767    as_echo_n='sh -c $as_echo_n_body as_echo'
28768  fi
28769  export as_echo_body
28770  as_echo='sh -c $as_echo_body as_echo'
28771fi
28772
28773# The user is always right.
28774if test "${PATH_SEPARATOR+set}" != set; then
28775  PATH_SEPARATOR=:
28776  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28777    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28778      PATH_SEPARATOR=';'
28779  }
28780fi
28781
28782
28783# IFS
28784# We need space, tab and new line, in precisely that order.  Quoting is
28785# there to prevent editors from complaining about space-tab.
28786# (If _AS_PATH_WALK were called with IFS unset, it would disable word
28787# splitting by setting IFS to empty value.)
28788IFS=" ""	$as_nl"
28789
28790# Find who we are.  Look in the path if we contain no directory separator.
28791as_myself=
28792case $0 in #((
28793  *[\\/]* ) as_myself=$0 ;;
28794  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28795for as_dir in $PATH
28796do
28797  IFS=$as_save_IFS
28798  test -z "$as_dir" && as_dir=.
28799    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28800  done
28801IFS=$as_save_IFS
28802
28803     ;;
28804esac
28805# We did not find ourselves, most probably we were run as `sh COMMAND'
28806# in which case we are not to be found in the path.
28807if test "x$as_myself" = x; then
28808  as_myself=$0
28809fi
28810if test ! -f "$as_myself"; then
28811  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28812  exit 1
28813fi
28814
28815# Unset variables that we do not need and which cause bugs (e.g. in
28816# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
28817# suppresses any "Segmentation fault" message there.  '((' could
28818# trigger a bug in pdksh 5.2.14.
28819for as_var in BASH_ENV ENV MAIL MAILPATH
28820do eval test x\${$as_var+set} = xset \
28821  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28822done
28823PS1='$ '
28824PS2='> '
28825PS4='+ '
28826
28827# NLS nuisances.
28828LC_ALL=C
28829export LC_ALL
28830LANGUAGE=C
28831export LANGUAGE
28832
28833# CDPATH.
28834(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28835
28836
28837# as_fn_error STATUS ERROR [LINENO LOG_FD]
28838# ----------------------------------------
28839# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28840# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28841# script with STATUS, using 1 if that was 0.
28842as_fn_error ()
28843{
28844  as_status=$1; test $as_status -eq 0 && as_status=1
28845  if test "$4"; then
28846    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28847    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28848  fi
28849  $as_echo "$as_me: error: $2" >&2
28850  as_fn_exit $as_status
28851} # as_fn_error
28852
28853
28854# as_fn_set_status STATUS
28855# -----------------------
28856# Set $? to STATUS, without forking.
28857as_fn_set_status ()
28858{
28859  return $1
28860} # as_fn_set_status
28861
28862# as_fn_exit STATUS
28863# -----------------
28864# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28865as_fn_exit ()
28866{
28867  set +e
28868  as_fn_set_status $1
28869  exit $1
28870} # as_fn_exit
28871
28872# as_fn_unset VAR
28873# ---------------
28874# Portably unset VAR.
28875as_fn_unset ()
28876{
28877  { eval $1=; unset $1;}
28878}
28879as_unset=as_fn_unset
28880# as_fn_append VAR VALUE
28881# ----------------------
28882# Append the text in VALUE to the end of the definition contained in VAR. Take
28883# advantage of any shell optimizations that allow amortized linear growth over
28884# repeated appends, instead of the typical quadratic growth present in naive
28885# implementations.
28886if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28887  eval 'as_fn_append ()
28888  {
28889    eval $1+=\$2
28890  }'
28891else
28892  as_fn_append ()
28893  {
28894    eval $1=\$$1\$2
28895  }
28896fi # as_fn_append
28897
28898# as_fn_arith ARG...
28899# ------------------
28900# Perform arithmetic evaluation on the ARGs, and store the result in the
28901# global $as_val. Take advantage of shells that can avoid forks. The arguments
28902# must be portable across $(()) and expr.
28903if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28904  eval 'as_fn_arith ()
28905  {
28906    as_val=$(( $* ))
28907  }'
28908else
28909  as_fn_arith ()
28910  {
28911    as_val=`expr "$@" || test $? -eq 1`
28912  }
28913fi # as_fn_arith
28914
28915
28916if expr a : '\(a\)' >/dev/null 2>&1 &&
28917   test "X`expr 00001 : '.*\(...\)'`" = X001; then
28918  as_expr=expr
28919else
28920  as_expr=false
28921fi
28922
28923if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28924  as_basename=basename
28925else
28926  as_basename=false
28927fi
28928
28929if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28930  as_dirname=dirname
28931else
28932  as_dirname=false
28933fi
28934
28935as_me=`$as_basename -- "$0" ||
28936$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28937	 X"$0" : 'X\(//\)$' \| \
28938	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28939$as_echo X/"$0" |
28940    sed '/^.*\/\([^/][^/]*\)\/*$/{
28941	    s//\1/
28942	    q
28943	  }
28944	  /^X\/\(\/\/\)$/{
28945	    s//\1/
28946	    q
28947	  }
28948	  /^X\/\(\/\).*/{
28949	    s//\1/
28950	    q
28951	  }
28952	  s/.*/./; q'`
28953
28954# Avoid depending upon Character Ranges.
28955as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28956as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28957as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28958as_cr_digits='0123456789'
28959as_cr_alnum=$as_cr_Letters$as_cr_digits
28960
28961ECHO_C= ECHO_N= ECHO_T=
28962case `echo -n x` in #(((((
28963-n*)
28964  case `echo 'xy\c'` in
28965  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
28966  xy)  ECHO_C='\c';;
28967  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
28968       ECHO_T='	';;
28969  esac;;
28970*)
28971  ECHO_N='-n';;
28972esac
28973
28974rm -f conf$$ conf$$.exe conf$$.file
28975if test -d conf$$.dir; then
28976  rm -f conf$$.dir/conf$$.file
28977else
28978  rm -f conf$$.dir
28979  mkdir conf$$.dir 2>/dev/null
28980fi
28981if (echo >conf$$.file) 2>/dev/null; then
28982  if ln -s conf$$.file conf$$ 2>/dev/null; then
28983    as_ln_s='ln -s'
28984    # ... but there are two gotchas:
28985    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28986    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28987    # In both cases, we have to default to `cp -pR'.
28988    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28989      as_ln_s='cp -pR'
28990  elif ln conf$$.file conf$$ 2>/dev/null; then
28991    as_ln_s=ln
28992  else
28993    as_ln_s='cp -pR'
28994  fi
28995else
28996  as_ln_s='cp -pR'
28997fi
28998rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28999rmdir conf$$.dir 2>/dev/null
29000
29001
29002# as_fn_mkdir_p
29003# -------------
29004# Create "$as_dir" as a directory, including parents if necessary.
29005as_fn_mkdir_p ()
29006{
29007
29008  case $as_dir in #(
29009  -*) as_dir=./$as_dir;;
29010  esac
29011  test -d "$as_dir" || eval $as_mkdir_p || {
29012    as_dirs=
29013    while :; do
29014      case $as_dir in #(
29015      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29016      *) as_qdir=$as_dir;;
29017      esac
29018      as_dirs="'$as_qdir' $as_dirs"
29019      as_dir=`$as_dirname -- "$as_dir" ||
29020$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29021	 X"$as_dir" : 'X\(//\)[^/]' \| \
29022	 X"$as_dir" : 'X\(//\)$' \| \
29023	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29024$as_echo X"$as_dir" |
29025    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29026	    s//\1/
29027	    q
29028	  }
29029	  /^X\(\/\/\)[^/].*/{
29030	    s//\1/
29031	    q
29032	  }
29033	  /^X\(\/\/\)$/{
29034	    s//\1/
29035	    q
29036	  }
29037	  /^X\(\/\).*/{
29038	    s//\1/
29039	    q
29040	  }
29041	  s/.*/./; q'`
29042      test -d "$as_dir" && break
29043    done
29044    test -z "$as_dirs" || eval "mkdir $as_dirs"
29045  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
29046
29047
29048} # as_fn_mkdir_p
29049if mkdir -p . 2>/dev/null; then
29050  as_mkdir_p='mkdir -p "$as_dir"'
29051else
29052  test -d ./-p && rmdir ./-p
29053  as_mkdir_p=false
29054fi
29055
29056
29057# as_fn_executable_p FILE
29058# -----------------------
29059# Test if FILE is an executable regular file.
29060as_fn_executable_p ()
29061{
29062  test -f "$1" && test -x "$1"
29063} # as_fn_executable_p
29064as_test_x='test -x'
29065as_executable_p=as_fn_executable_p
29066
29067# Sed expression to map a string onto a valid CPP name.
29068as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29069
29070# Sed expression to map a string onto a valid variable name.
29071as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29072
29073
29074exec 6>&1
29075## ----------------------------------- ##
29076## Main body of $CONFIG_STATUS script. ##
29077## ----------------------------------- ##
29078_ASEOF
29079test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29080
29081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29082# Save the log message, to keep $0 and so on meaningful, and to
29083# report actual input values of CONFIG_FILES etc. instead of their
29084# values after options handling.
29085ac_log="
29086This file was extended by $as_me, which was
29087generated by GNU Autoconf 2.69.  Invocation command line was
29088
29089  CONFIG_FILES    = $CONFIG_FILES
29090  CONFIG_HEADERS  = $CONFIG_HEADERS
29091  CONFIG_LINKS    = $CONFIG_LINKS
29092  CONFIG_COMMANDS = $CONFIG_COMMANDS
29093  $ $0 $@
29094
29095on `(hostname || uname -n) 2>/dev/null | sed 1q`
29096"
29097
29098_ACEOF
29099
29100case $ac_config_files in *"
29101"*) set x $ac_config_files; shift; ac_config_files=$*;;
29102esac
29103
29104case $ac_config_headers in *"
29105"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29106esac
29107
29108
29109cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29110# Files that config.status was made for.
29111config_files="$ac_config_files"
29112config_headers="$ac_config_headers"
29113config_commands="$ac_config_commands"
29114
29115_ACEOF
29116
29117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29118ac_cs_usage="\
29119\`$as_me' instantiates files and other configuration actions
29120from templates according to the current configuration.  Unless the files
29121and actions are specified as TAGs, all are instantiated by default.
29122
29123Usage: $0 [OPTION]... [TAG]...
29124
29125  -h, --help       print this help, then exit
29126  -V, --version    print version number and configuration settings, then exit
29127      --config     print configuration, then exit
29128  -q, --quiet, --silent
29129                   do not print progress messages
29130  -d, --debug      don't remove temporary files
29131      --recheck    update $as_me by reconfiguring in the same conditions
29132      --file=FILE[:TEMPLATE]
29133                   instantiate the configuration file FILE
29134      --header=FILE[:TEMPLATE]
29135                   instantiate the configuration header FILE
29136
29137Configuration files:
29138$config_files
29139
29140Configuration headers:
29141$config_headers
29142
29143Configuration commands:
29144$config_commands
29145
29146Report bugs to the package provider."
29147
29148_ACEOF
29149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29150ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29151ac_cs_version="\\
29152config.status
29153configured by $0, generated by GNU Autoconf 2.69,
29154  with options \\"\$ac_cs_config\\"
29155
29156Copyright (C) 2012 Free Software Foundation, Inc.
29157This config.status script is free software; the Free Software Foundation
29158gives unlimited permission to copy, distribute and modify it."
29159
29160ac_pwd='$ac_pwd'
29161srcdir='$srcdir'
29162INSTALL='$INSTALL'
29163AWK='$AWK'
29164test -n "\$AWK" || AWK=awk
29165_ACEOF
29166
29167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29168# The default lists apply if the user does not specify any file.
29169ac_need_defaults=:
29170while test $# != 0
29171do
29172  case $1 in
29173  --*=?*)
29174    ac_option=`expr "X$1" : 'X\([^=]*\)='`
29175    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29176    ac_shift=:
29177    ;;
29178  --*=)
29179    ac_option=`expr "X$1" : 'X\([^=]*\)='`
29180    ac_optarg=
29181    ac_shift=:
29182    ;;
29183  *)
29184    ac_option=$1
29185    ac_optarg=$2
29186    ac_shift=shift
29187    ;;
29188  esac
29189
29190  case $ac_option in
29191  # Handling of the options.
29192  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29193    ac_cs_recheck=: ;;
29194  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29195    $as_echo "$ac_cs_version"; exit ;;
29196  --config | --confi | --conf | --con | --co | --c )
29197    $as_echo "$ac_cs_config"; exit ;;
29198  --debug | --debu | --deb | --de | --d | -d )
29199    debug=: ;;
29200  --file | --fil | --fi | --f )
29201    $ac_shift
29202    case $ac_optarg in
29203    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29204    '') as_fn_error $? "missing file argument" ;;
29205    esac
29206    as_fn_append CONFIG_FILES " '$ac_optarg'"
29207    ac_need_defaults=false;;
29208  --header | --heade | --head | --hea )
29209    $ac_shift
29210    case $ac_optarg in
29211    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29212    esac
29213    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29214    ac_need_defaults=false;;
29215  --he | --h)
29216    # Conflict between --help and --header
29217    as_fn_error $? "ambiguous option: \`$1'
29218Try \`$0 --help' for more information.";;
29219  --help | --hel | -h )
29220    $as_echo "$ac_cs_usage"; exit ;;
29221  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29222  | -silent | --silent | --silen | --sile | --sil | --si | --s)
29223    ac_cs_silent=: ;;
29224
29225  # This is an error.
29226  -*) as_fn_error $? "unrecognized option: \`$1'
29227Try \`$0 --help' for more information." ;;
29228
29229  *) as_fn_append ac_config_targets " $1"
29230     ac_need_defaults=false ;;
29231
29232  esac
29233  shift
29234done
29235
29236ac_configure_extra_args=
29237
29238if $ac_cs_silent; then
29239  exec 6>/dev/null
29240  ac_configure_extra_args="$ac_configure_extra_args --silent"
29241fi
29242
29243_ACEOF
29244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29245if \$ac_cs_recheck; then
29246  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29247  shift
29248  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29249  CONFIG_SHELL='$SHELL'
29250  export CONFIG_SHELL
29251  exec "\$@"
29252fi
29253
29254_ACEOF
29255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29256exec 5>>config.log
29257{
29258  echo
29259  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29260## Running $as_me. ##
29261_ASBOX
29262  $as_echo "$ac_log"
29263} >&5
29264
29265_ACEOF
29266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29267#
29268# INIT-COMMANDS
29269#
29270
29271
29272# The HP-UX ksh and POSIX shell print the target directory to stdout
29273# if CDPATH is set.
29274(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29275
29276sed_quote_subst='$sed_quote_subst'
29277double_quote_subst='$double_quote_subst'
29278delay_variable_subst='$delay_variable_subst'
29279AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
29280DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
29281OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
29282macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
29283macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
29284enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
29285enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
29286pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
29287enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
29288SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
29289ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
29290PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
29291host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
29292host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
29293host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
29294build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
29295build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
29296build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
29297SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
29298Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
29299GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
29300EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
29301FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
29302LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
29303NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
29304LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
29305max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
29306ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
29307exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
29308lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
29309lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
29310lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
29311lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
29312lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
29313reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
29314reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
29315deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
29316file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
29317file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
29318want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
29319sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
29320AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
29321AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
29322archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
29323STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
29324RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
29325old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29326old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29327old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
29328lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
29329CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
29330CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
29331compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
29332GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
29333lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
29334lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
29335lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
29336lt_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"`'
29337nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
29338lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
29339objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
29340MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
29341lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
29342lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
29343lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
29344lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
29345lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
29346need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
29347MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
29348DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
29349NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
29350LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
29351OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
29352OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
29353libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
29354shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
29355extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29356archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
29357enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
29358export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
29359whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
29360compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
29361old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
29362old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29363archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
29364archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29365module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
29366module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29367with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
29368allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
29369no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
29370hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
29371hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
29372hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
29373hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
29374hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
29375hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
29376hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
29377inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
29378link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
29379always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
29380export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
29381exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
29382include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
29383prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
29384postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
29385file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
29386variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
29387need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
29388need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
29389version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
29390runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
29391shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
29392shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
29393libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
29394library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
29395soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
29396install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
29397postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29398postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29399finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
29400finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
29401hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
29402sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
29403sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
29404hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
29405enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
29406enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
29407enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
29408old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
29409striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
29410
29411LTCC='$LTCC'
29412LTCFLAGS='$LTCFLAGS'
29413compiler='$compiler_DEFAULT'
29414
29415# A function that is used when there is no print builtin or printf.
29416func_fallback_echo ()
29417{
29418  eval 'cat <<_LTECHO_EOF
29419\$1
29420_LTECHO_EOF'
29421}
29422
29423# Quote evaled strings.
29424for var in AS \
29425DLLTOOL \
29426OBJDUMP \
29427SHELL \
29428ECHO \
29429PATH_SEPARATOR \
29430SED \
29431GREP \
29432EGREP \
29433FGREP \
29434LD \
29435NM \
29436LN_S \
29437lt_SP2NL \
29438lt_NL2SP \
29439reload_flag \
29440deplibs_check_method \
29441file_magic_cmd \
29442file_magic_glob \
29443want_nocaseglob \
29444sharedlib_from_linklib_cmd \
29445AR \
29446AR_FLAGS \
29447archiver_list_spec \
29448STRIP \
29449RANLIB \
29450CC \
29451CFLAGS \
29452compiler \
29453lt_cv_sys_global_symbol_pipe \
29454lt_cv_sys_global_symbol_to_cdecl \
29455lt_cv_sys_global_symbol_to_c_name_address \
29456lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29457nm_file_list_spec \
29458lt_prog_compiler_no_builtin_flag \
29459lt_prog_compiler_pic \
29460lt_prog_compiler_wl \
29461lt_prog_compiler_static \
29462lt_cv_prog_compiler_c_o \
29463need_locks \
29464MANIFEST_TOOL \
29465DSYMUTIL \
29466NMEDIT \
29467LIPO \
29468OTOOL \
29469OTOOL64 \
29470shrext_cmds \
29471export_dynamic_flag_spec \
29472whole_archive_flag_spec \
29473compiler_needs_object \
29474with_gnu_ld \
29475allow_undefined_flag \
29476no_undefined_flag \
29477hardcode_libdir_flag_spec \
29478hardcode_libdir_separator \
29479exclude_expsyms \
29480include_expsyms \
29481file_list_spec \
29482variables_saved_for_relink \
29483libname_spec \
29484library_names_spec \
29485soname_spec \
29486install_override_mode \
29487finish_eval \
29488old_striplib \
29489striplib; do
29490    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29491    *[\\\\\\\`\\"\\\$]*)
29492      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29493      ;;
29494    *)
29495      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29496      ;;
29497    esac
29498done
29499
29500# Double-quote double-evaled strings.
29501for var in reload_cmds \
29502old_postinstall_cmds \
29503old_postuninstall_cmds \
29504old_archive_cmds \
29505extract_expsyms_cmds \
29506old_archive_from_new_cmds \
29507old_archive_from_expsyms_cmds \
29508archive_cmds \
29509archive_expsym_cmds \
29510module_cmds \
29511module_expsym_cmds \
29512export_symbols_cmds \
29513prelink_cmds \
29514postlink_cmds \
29515postinstall_cmds \
29516postuninstall_cmds \
29517finish_cmds \
29518sys_lib_search_path_spec \
29519sys_lib_dlsearch_path_spec; do
29520    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29521    *[\\\\\\\`\\"\\\$]*)
29522      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29523      ;;
29524    *)
29525      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29526      ;;
29527    esac
29528done
29529
29530ac_aux_dir='$ac_aux_dir'
29531xsi_shell='$xsi_shell'
29532lt_shell_append='$lt_shell_append'
29533
29534# See if we are running on zsh, and set the options which allow our
29535# commands through without removal of \ escapes INIT.
29536if test -n "\${ZSH_VERSION+set}" ; then
29537   setopt NO_GLOB_SUBST
29538fi
29539
29540
29541    PACKAGE='$PACKAGE'
29542    VERSION='$VERSION'
29543    TIMESTAMP='$TIMESTAMP'
29544    RM='$RM'
29545    ofile='$ofile'
29546
29547
29548
29549
29550
29551# Commands run at the beginning of config.status:
29552APR_SAVE_HEADERS="include/apr.h include/arch/unix/apr_private.h"
29553APR_MAJOR_VERSION=$APR_MAJOR_VERSION
29554APR_PLATFORM=$host
29555
29556for apri in \${APR_SAVE_HEADERS}; do
29557  test -r \${apri} && mv \${apri} \${apri}.save
29558done
29559
29560
29561_ACEOF
29562
29563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29564
29565# Handling of arguments.
29566for ac_config_target in $ac_config_targets
29567do
29568  case $ac_config_target in
29569    "include/arch/unix/apr_private.h") CONFIG_HEADERS="$CONFIG_HEADERS include/arch/unix/apr_private.h" ;;
29570    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29571    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29572    "include/apr.h") CONFIG_FILES="$CONFIG_FILES include/apr.h" ;;
29573    "build/apr_rules.mk") CONFIG_FILES="$CONFIG_FILES build/apr_rules.mk" ;;
29574    "build/pkg/pkginfo") CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;;
29575    "apr-$APR_MAJOR_VERSION-config") CONFIG_FILES="$CONFIG_FILES apr-$APR_MAJOR_VERSION-config:apr-config.in" ;;
29576    "apr.pc") CONFIG_FILES="$CONFIG_FILES apr.pc" ;;
29577    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
29578    "test/internal/Makefile") CONFIG_FILES="$CONFIG_FILES test/internal/Makefile" ;;
29579    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29580
29581  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29582  esac
29583done
29584
29585
29586# If the user did not use the arguments to specify the items to instantiate,
29587# then the envvar interface is used.  Set only those that are not.
29588# We use the long form for the default assignment because of an extremely
29589# bizarre bug on SunOS 4.1.3.
29590if $ac_need_defaults; then
29591  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29592  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29593  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29594fi
29595
29596# Have a temporary directory for convenience.  Make it in the build tree
29597# simply because there is no reason against having it here, and in addition,
29598# creating and moving files from /tmp can sometimes cause problems.
29599# Hook for its removal unless debugging.
29600# Note that there is a small window in which the directory will not be cleaned:
29601# after its creation but before its name has been assigned to `$tmp'.
29602$debug ||
29603{
29604  tmp= ac_tmp=
29605  trap 'exit_status=$?
29606  : "${ac_tmp:=$tmp}"
29607  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29608' 0
29609  trap 'as_fn_exit 1' 1 2 13 15
29610}
29611# Create a (secure) tmp directory for tmp files.
29612
29613{
29614  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29615  test -d "$tmp"
29616}  ||
29617{
29618  tmp=./conf$$-$RANDOM
29619  (umask 077 && mkdir "$tmp")
29620} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29621ac_tmp=$tmp
29622
29623# Set up the scripts for CONFIG_FILES section.
29624# No need to generate them if there are no CONFIG_FILES.
29625# This happens for instance with `./config.status config.h'.
29626if test -n "$CONFIG_FILES"; then
29627
29628
29629ac_cr=`echo X | tr X '\015'`
29630# On cygwin, bash can eat \r inside `` if the user requested igncr.
29631# But we know of no other shell where ac_cr would be empty at this
29632# point, so we can use a bashism as a fallback.
29633if test "x$ac_cr" = x; then
29634  eval ac_cr=\$\'\\r\'
29635fi
29636ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29637if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29638  ac_cs_awk_cr='\\r'
29639else
29640  ac_cs_awk_cr=$ac_cr
29641fi
29642
29643echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29644_ACEOF
29645
29646
29647{
29648  echo "cat >conf$$subs.awk <<_ACEOF" &&
29649  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29650  echo "_ACEOF"
29651} >conf$$subs.sh ||
29652  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29653ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29654ac_delim='%!_!# '
29655for ac_last_try in false false false false false :; do
29656  . ./conf$$subs.sh ||
29657    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29658
29659  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29660  if test $ac_delim_n = $ac_delim_num; then
29661    break
29662  elif $ac_last_try; then
29663    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29664  else
29665    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29666  fi
29667done
29668rm -f conf$$subs.sh
29669
29670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29671cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
29672_ACEOF
29673sed -n '
29674h
29675s/^/S["/; s/!.*/"]=/
29676p
29677g
29678s/^[^!]*!//
29679:repl
29680t repl
29681s/'"$ac_delim"'$//
29682t delim
29683:nl
29684h
29685s/\(.\{148\}\)..*/\1/
29686t more1
29687s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29688p
29689n
29690b repl
29691:more1
29692s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29693p
29694g
29695s/.\{148\}//
29696t nl
29697:delim
29698h
29699s/\(.\{148\}\)..*/\1/
29700t more2
29701s/["\\]/\\&/g; s/^/"/; s/$/"/
29702p
29703b
29704:more2
29705s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29706p
29707g
29708s/.\{148\}//
29709t delim
29710' <conf$$subs.awk | sed '
29711/^[^""]/{
29712  N
29713  s/\n//
29714}
29715' >>$CONFIG_STATUS || ac_write_fail=1
29716rm -f conf$$subs.awk
29717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29718_ACAWK
29719cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
29720  for (key in S) S_is_set[key] = 1
29721  FS = ""
29722
29723}
29724{
29725  line = $ 0
29726  nfields = split(line, field, "@")
29727  substed = 0
29728  len = length(field[1])
29729  for (i = 2; i < nfields; i++) {
29730    key = field[i]
29731    keylen = length(key)
29732    if (S_is_set[key]) {
29733      value = S[key]
29734      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29735      len += length(value) + length(field[++i])
29736      substed = 1
29737    } else
29738      len += 1 + keylen
29739  }
29740
29741  print line
29742}
29743
29744_ACAWK
29745_ACEOF
29746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29747if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29748  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29749else
29750  cat
29751fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
29752  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
29753_ACEOF
29754
29755# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29756# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
29757# trailing colons and then remove the whole line if VPATH becomes empty
29758# (actually we leave an empty line to preserve line numbers).
29759if test "x$srcdir" = x.; then
29760  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
29761h
29762s///
29763s/^/:/
29764s/[	 ]*$/:/
29765s/:\$(srcdir):/:/g
29766s/:\${srcdir}:/:/g
29767s/:@srcdir@:/:/g
29768s/^:*//
29769s/:*$//
29770x
29771s/\(=[	 ]*\).*/\1/
29772G
29773s/\n//
29774s/^[^=]*=[	 ]*$//
29775}'
29776fi
29777
29778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29779fi # test -n "$CONFIG_FILES"
29780
29781# Set up the scripts for CONFIG_HEADERS section.
29782# No need to generate them if there are no CONFIG_HEADERS.
29783# This happens for instance with `./config.status Makefile'.
29784if test -n "$CONFIG_HEADERS"; then
29785cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29786BEGIN {
29787_ACEOF
29788
29789# Transform confdefs.h into an awk script `defines.awk', embedded as
29790# here-document in config.status, that substitutes the proper values into
29791# config.h.in to produce config.h.
29792
29793# Create a delimiter string that does not exist in confdefs.h, to ease
29794# handling of long lines.
29795ac_delim='%!_!# '
29796for ac_last_try in false false :; do
29797  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29798  if test -z "$ac_tt"; then
29799    break
29800  elif $ac_last_try; then
29801    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29802  else
29803    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29804  fi
29805done
29806
29807# For the awk script, D is an array of macro values keyed by name,
29808# likewise P contains macro parameters if any.  Preserve backslash
29809# newline sequences.
29810
29811ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29812sed -n '
29813s/.\{148\}/&'"$ac_delim"'/g
29814t rset
29815:rset
29816s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
29817t def
29818d
29819:def
29820s/\\$//
29821t bsnl
29822s/["\\]/\\&/g
29823s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
29824D["\1"]=" \3"/p
29825s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
29826d
29827:bsnl
29828s/["\\]/\\&/g
29829s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
29830D["\1"]=" \3\\\\\\n"\\/p
29831t cont
29832s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29833t cont
29834d
29835:cont
29836n
29837s/.\{148\}/&'"$ac_delim"'/g
29838t clear
29839:clear
29840s/\\$//
29841t bsnlc
29842s/["\\]/\\&/g; s/^/"/; s/$/"/p
29843d
29844:bsnlc
29845s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29846b cont
29847' <confdefs.h | sed '
29848s/'"$ac_delim"'/"\\\
29849"/g' >>$CONFIG_STATUS || ac_write_fail=1
29850
29851cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29852  for (key in D) D_is_set[key] = 1
29853  FS = ""
29854}
29855/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29856  line = \$ 0
29857  split(line, arg, " ")
29858  if (arg[1] == "#") {
29859    defundef = arg[2]
29860    mac1 = arg[3]
29861  } else {
29862    defundef = substr(arg[1], 2)
29863    mac1 = arg[2]
29864  }
29865  split(mac1, mac2, "(") #)
29866  macro = mac2[1]
29867  prefix = substr(line, 1, index(line, defundef) - 1)
29868  if (D_is_set[macro]) {
29869    # Preserve the white space surrounding the "#".
29870    print prefix "define", macro P[macro] D[macro]
29871    next
29872  } else {
29873    # Replace #undef with comments.  This is necessary, for example,
29874    # in the case of _POSIX_SOURCE, which is predefined and required
29875    # on some systems where configure will not decide to define it.
29876    if (defundef == "undef") {
29877      print "/*", prefix defundef, macro, "*/"
29878      next
29879    }
29880  }
29881}
29882{ print }
29883_ACAWK
29884_ACEOF
29885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29886  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29887fi # test -n "$CONFIG_HEADERS"
29888
29889
29890eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
29891shift
29892for ac_tag
29893do
29894  case $ac_tag in
29895  :[FHLC]) ac_mode=$ac_tag; continue;;
29896  esac
29897  case $ac_mode$ac_tag in
29898  :[FHL]*:*);;
29899  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29900  :[FH]-) ac_tag=-:-;;
29901  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29902  esac
29903  ac_save_IFS=$IFS
29904  IFS=:
29905  set x $ac_tag
29906  IFS=$ac_save_IFS
29907  shift
29908  ac_file=$1
29909  shift
29910
29911  case $ac_mode in
29912  :L) ac_source=$1;;
29913  :[FH])
29914    ac_file_inputs=
29915    for ac_f
29916    do
29917      case $ac_f in
29918      -) ac_f="$ac_tmp/stdin";;
29919      *) # Look for the file first in the build tree, then in the source tree
29920	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
29921	 # because $ac_f cannot contain `:'.
29922	 test -f "$ac_f" ||
29923	   case $ac_f in
29924	   [\\/$]*) false;;
29925	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29926	   esac ||
29927	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29928      esac
29929      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29930      as_fn_append ac_file_inputs " '$ac_f'"
29931    done
29932
29933    # Let's still pretend it is `configure' which instantiates (i.e., don't
29934    # use $as_me), people would be surprised to read:
29935    #    /* config.h.  Generated by config.status.  */
29936    configure_input='Generated from '`
29937	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29938	`' by configure.'
29939    if test x"$ac_file" != x-; then
29940      configure_input="$ac_file.  $configure_input"
29941      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29942$as_echo "$as_me: creating $ac_file" >&6;}
29943    fi
29944    # Neutralize special characters interpreted by sed in replacement strings.
29945    case $configure_input in #(
29946    *\&* | *\|* | *\\* )
29947       ac_sed_conf_input=`$as_echo "$configure_input" |
29948       sed 's/[\\\\&|]/\\\\&/g'`;; #(
29949    *) ac_sed_conf_input=$configure_input;;
29950    esac
29951
29952    case $ac_tag in
29953    *:-:* | *:-) cat >"$ac_tmp/stdin" \
29954      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29955    esac
29956    ;;
29957  esac
29958
29959  ac_dir=`$as_dirname -- "$ac_file" ||
29960$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29961	 X"$ac_file" : 'X\(//\)[^/]' \| \
29962	 X"$ac_file" : 'X\(//\)$' \| \
29963	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29964$as_echo X"$ac_file" |
29965    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29966	    s//\1/
29967	    q
29968	  }
29969	  /^X\(\/\/\)[^/].*/{
29970	    s//\1/
29971	    q
29972	  }
29973	  /^X\(\/\/\)$/{
29974	    s//\1/
29975	    q
29976	  }
29977	  /^X\(\/\).*/{
29978	    s//\1/
29979	    q
29980	  }
29981	  s/.*/./; q'`
29982  as_dir="$ac_dir"; as_fn_mkdir_p
29983  ac_builddir=.
29984
29985case "$ac_dir" in
29986.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29987*)
29988  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29989  # A ".." for each directory in $ac_dir_suffix.
29990  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29991  case $ac_top_builddir_sub in
29992  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29993  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29994  esac ;;
29995esac
29996ac_abs_top_builddir=$ac_pwd
29997ac_abs_builddir=$ac_pwd$ac_dir_suffix
29998# for backward compatibility:
29999ac_top_builddir=$ac_top_build_prefix
30000
30001case $srcdir in
30002  .)  # We are building in place.
30003    ac_srcdir=.
30004    ac_top_srcdir=$ac_top_builddir_sub
30005    ac_abs_top_srcdir=$ac_pwd ;;
30006  [\\/]* | ?:[\\/]* )  # Absolute name.
30007    ac_srcdir=$srcdir$ac_dir_suffix;
30008    ac_top_srcdir=$srcdir
30009    ac_abs_top_srcdir=$srcdir ;;
30010  *) # Relative name.
30011    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30012    ac_top_srcdir=$ac_top_build_prefix$srcdir
30013    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30014esac
30015ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30016
30017
30018  case $ac_mode in
30019  :F)
30020  #
30021  # CONFIG_FILE
30022  #
30023
30024  case $INSTALL in
30025  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30026  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30027  esac
30028_ACEOF
30029
30030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30031# If the template does not know about datarootdir, expand it.
30032# FIXME: This hack should be removed a few years after 2.60.
30033ac_datarootdir_hack=; ac_datarootdir_seen=
30034ac_sed_dataroot='
30035/datarootdir/ {
30036  p
30037  q
30038}
30039/@datadir@/p
30040/@docdir@/p
30041/@infodir@/p
30042/@localedir@/p
30043/@mandir@/p'
30044case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30045*datarootdir*) ac_datarootdir_seen=yes;;
30046*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30047  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30048$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30049_ACEOF
30050cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30051  ac_datarootdir_hack='
30052  s&@datadir@&$datadir&g
30053  s&@docdir@&$docdir&g
30054  s&@infodir@&$infodir&g
30055  s&@localedir@&$localedir&g
30056  s&@mandir@&$mandir&g
30057  s&\\\${datarootdir}&$datarootdir&g' ;;
30058esac
30059_ACEOF
30060
30061# Neutralize VPATH when `$srcdir' = `.'.
30062# Shell code in configure.ac might set extrasub.
30063# FIXME: do we really want to maintain this feature?
30064cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30065ac_sed_extra="$ac_vpsub
30066$extrasub
30067_ACEOF
30068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30069:t
30070/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30071s|@configure_input@|$ac_sed_conf_input|;t t
30072s&@top_builddir@&$ac_top_builddir_sub&;t t
30073s&@top_build_prefix@&$ac_top_build_prefix&;t t
30074s&@srcdir@&$ac_srcdir&;t t
30075s&@abs_srcdir@&$ac_abs_srcdir&;t t
30076s&@top_srcdir@&$ac_top_srcdir&;t t
30077s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30078s&@builddir@&$ac_builddir&;t t
30079s&@abs_builddir@&$ac_abs_builddir&;t t
30080s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30081s&@INSTALL@&$ac_INSTALL&;t t
30082$ac_datarootdir_hack
30083"
30084eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
30085  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30086
30087test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30088  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
30089  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
30090      "$ac_tmp/out"`; test -z "$ac_out"; } &&
30091  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30092which seems to be undefined.  Please make sure it is defined" >&5
30093$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30094which seems to be undefined.  Please make sure it is defined" >&2;}
30095
30096  rm -f "$ac_tmp/stdin"
30097  case $ac_file in
30098  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
30099  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
30100  esac \
30101  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30102 ;;
30103  :H)
30104  #
30105  # CONFIG_HEADER
30106  #
30107  if test x"$ac_file" != x-; then
30108    {
30109      $as_echo "/* $configure_input  */" \
30110      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
30111    } >"$ac_tmp/config.h" \
30112      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30113    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
30114      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30115$as_echo "$as_me: $ac_file is unchanged" >&6;}
30116    else
30117      rm -f "$ac_file"
30118      mv "$ac_tmp/config.h" "$ac_file" \
30119	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
30120    fi
30121  else
30122    $as_echo "/* $configure_input  */" \
30123      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
30124      || as_fn_error $? "could not create -" "$LINENO" 5
30125  fi
30126 ;;
30127
30128  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30129$as_echo "$as_me: executing $ac_file commands" >&6;}
30130 ;;
30131  esac
30132
30133
30134  case $ac_file$ac_mode in
30135    "libtool":C)
30136
30137    # See if we are running on zsh, and set the options which allow our
30138    # commands through without removal of \ escapes.
30139    if test -n "${ZSH_VERSION+set}" ; then
30140      setopt NO_GLOB_SUBST
30141    fi
30142
30143    cfgfile="${ofile}T"
30144    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30145    $RM "$cfgfile"
30146
30147    cat <<_LT_EOF >> "$cfgfile"
30148#! $SHELL
30149
30150# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30151# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30152# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30153# NOTE: Changes made to this file will be lost: look at ltmain.sh.
30154#
30155#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30156#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
30157#                 Foundation, Inc.
30158#   Written by Gordon Matzigkeit, 1996
30159#
30160#   This file is part of GNU Libtool.
30161#
30162# GNU Libtool is free software; you can redistribute it and/or
30163# modify it under the terms of the GNU General Public License as
30164# published by the Free Software Foundation; either version 2 of
30165# the License, or (at your option) any later version.
30166#
30167# As a special exception to the GNU General Public License,
30168# if you distribute this file as part of a program or library that
30169# is built using GNU Libtool, you may include this file under the
30170# same distribution terms that you use for the rest of that program.
30171#
30172# GNU Libtool is distributed in the hope that it will be useful,
30173# but WITHOUT ANY WARRANTY; without even the implied warranty of
30174# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30175# GNU General Public License for more details.
30176#
30177# You should have received a copy of the GNU General Public License
30178# along with GNU Libtool; see the file COPYING.  If not, a copy
30179# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30180# obtained by writing to the Free Software Foundation, Inc.,
30181# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30182
30183
30184# The names of the tagged configurations supported by this script.
30185available_tags=""
30186
30187# ### BEGIN LIBTOOL CONFIG
30188
30189# Assembler program.
30190AS=$lt_AS
30191
30192# DLL creation program.
30193DLLTOOL=$lt_DLLTOOL
30194
30195# Object dumper program.
30196OBJDUMP=$lt_OBJDUMP
30197
30198# Which release of libtool.m4 was used?
30199macro_version=$macro_version
30200macro_revision=$macro_revision
30201
30202# Whether or not to build shared libraries.
30203build_libtool_libs=$enable_shared
30204
30205# Whether or not to build static libraries.
30206build_old_libs=$enable_static
30207
30208# What type of objects to build.
30209pic_mode=$pic_mode
30210
30211# Whether or not to optimize for fast installation.
30212fast_install=$enable_fast_install
30213
30214# Shell to use when invoking shell scripts.
30215SHELL=$lt_SHELL
30216
30217# An echo program that protects backslashes.
30218ECHO=$lt_ECHO
30219
30220# The PATH separator for the build system.
30221PATH_SEPARATOR=$lt_PATH_SEPARATOR
30222
30223# The host system.
30224host_alias=$host_alias
30225host=$host
30226host_os=$host_os
30227
30228# The build system.
30229build_alias=$build_alias
30230build=$build
30231build_os=$build_os
30232
30233# A sed program that does not truncate output.
30234SED=$lt_SED
30235
30236# Sed that helps us avoid accidentally triggering echo(1) options like -n.
30237Xsed="\$SED -e 1s/^X//"
30238
30239# A grep program that handles long lines.
30240GREP=$lt_GREP
30241
30242# An ERE matcher.
30243EGREP=$lt_EGREP
30244
30245# A literal string matcher.
30246FGREP=$lt_FGREP
30247
30248# A BSD- or MS-compatible name lister.
30249NM=$lt_NM
30250
30251# Whether we need soft or hard links.
30252LN_S=$lt_LN_S
30253
30254# What is the maximum length of a command?
30255max_cmd_len=$max_cmd_len
30256
30257# Object file suffix (normally "o").
30258objext=$ac_objext
30259
30260# Executable file suffix (normally "").
30261exeext=$exeext
30262
30263# whether the shell understands "unset".
30264lt_unset=$lt_unset
30265
30266# turn spaces into newlines.
30267SP2NL=$lt_lt_SP2NL
30268
30269# turn newlines into spaces.
30270NL2SP=$lt_lt_NL2SP
30271
30272# convert \$build file names to \$host format.
30273to_host_file_cmd=$lt_cv_to_host_file_cmd
30274
30275# convert \$build files to toolchain format.
30276to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30277
30278# Method to check whether dependent libraries are shared objects.
30279deplibs_check_method=$lt_deplibs_check_method
30280
30281# Command to use when deplibs_check_method = "file_magic".
30282file_magic_cmd=$lt_file_magic_cmd
30283
30284# How to find potential files when deplibs_check_method = "file_magic".
30285file_magic_glob=$lt_file_magic_glob
30286
30287# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
30288want_nocaseglob=$lt_want_nocaseglob
30289
30290# Command to associate shared and link libraries.
30291sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
30292
30293# The archiver.
30294AR=$lt_AR
30295
30296# Flags to create an archive.
30297AR_FLAGS=$lt_AR_FLAGS
30298
30299# How to feed a file listing to the archiver.
30300archiver_list_spec=$lt_archiver_list_spec
30301
30302# A symbol stripping program.
30303STRIP=$lt_STRIP
30304
30305# Commands used to install an old-style archive.
30306RANLIB=$lt_RANLIB
30307old_postinstall_cmds=$lt_old_postinstall_cmds
30308old_postuninstall_cmds=$lt_old_postuninstall_cmds
30309
30310# Whether to use a lock for old archive extraction.
30311lock_old_archive_extraction=$lock_old_archive_extraction
30312
30313# A C compiler.
30314LTCC=$lt_CC
30315
30316# LTCC compiler flags.
30317LTCFLAGS=$lt_CFLAGS
30318
30319# Take the output of nm and produce a listing of raw symbols and C names.
30320global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30321
30322# Transform the output of nm in a proper C declaration.
30323global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30324
30325# Transform the output of nm in a C name address pair.
30326global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30327
30328# Transform the output of nm in a C name address pair when lib prefix is needed.
30329global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30330
30331# Specify filename containing input files for \$NM.
30332nm_file_list_spec=$lt_nm_file_list_spec
30333
30334# The root where to search for dependent libraries,and in which our libraries should be installed.
30335lt_sysroot=$lt_sysroot
30336
30337# The name of the directory that contains temporary libtool files.
30338objdir=$objdir
30339
30340# Used to examine libraries when file_magic_cmd begins with "file".
30341MAGIC_CMD=$MAGIC_CMD
30342
30343# Must we lock files when doing compilation?
30344need_locks=$lt_need_locks
30345
30346# Manifest tool.
30347MANIFEST_TOOL=$lt_MANIFEST_TOOL
30348
30349# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30350DSYMUTIL=$lt_DSYMUTIL
30351
30352# Tool to change global to local symbols on Mac OS X.
30353NMEDIT=$lt_NMEDIT
30354
30355# Tool to manipulate fat objects and archives on Mac OS X.
30356LIPO=$lt_LIPO
30357
30358# ldd/readelf like tool for Mach-O binaries on Mac OS X.
30359OTOOL=$lt_OTOOL
30360
30361# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30362OTOOL64=$lt_OTOOL64
30363
30364# Old archive suffix (normally "a").
30365libext=$libext
30366
30367# Shared library suffix (normally ".so").
30368shrext_cmds=$lt_shrext_cmds
30369
30370# The commands to extract the exported symbol list from a shared archive.
30371extract_expsyms_cmds=$lt_extract_expsyms_cmds
30372
30373# Variables whose values should be saved in libtool wrapper scripts and
30374# restored at link time.
30375variables_saved_for_relink=$lt_variables_saved_for_relink
30376
30377# Do we need the "lib" prefix for modules?
30378need_lib_prefix=$need_lib_prefix
30379
30380# Do we need a version for libraries?
30381need_version=$need_version
30382
30383# Library versioning type.
30384version_type=$version_type
30385
30386# Shared library runtime path variable.
30387runpath_var=$runpath_var
30388
30389# Shared library path variable.
30390shlibpath_var=$shlibpath_var
30391
30392# Is shlibpath searched before the hard-coded library search path?
30393shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30394
30395# Format of library name prefix.
30396libname_spec=$lt_libname_spec
30397
30398# List of archive names.  First name is the real one, the rest are links.
30399# The last name is the one that the linker finds with -lNAME
30400library_names_spec=$lt_library_names_spec
30401
30402# The coded name of the library, if different from the real name.
30403soname_spec=$lt_soname_spec
30404
30405# Permission mode override for installation of shared libraries.
30406install_override_mode=$lt_install_override_mode
30407
30408# Command to use after installation of a shared archive.
30409postinstall_cmds=$lt_postinstall_cmds
30410
30411# Command to use after uninstallation of a shared archive.
30412postuninstall_cmds=$lt_postuninstall_cmds
30413
30414# Commands used to finish a libtool library installation in a directory.
30415finish_cmds=$lt_finish_cmds
30416
30417# As "finish_cmds", except a single script fragment to be evaled but
30418# not shown.
30419finish_eval=$lt_finish_eval
30420
30421# Whether we should hardcode library paths into libraries.
30422hardcode_into_libs=$hardcode_into_libs
30423
30424# Compile-time system search path for libraries.
30425sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30426
30427# Run-time system search path for libraries.
30428sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30429
30430# Whether dlopen is supported.
30431dlopen_support=$enable_dlopen
30432
30433# Whether dlopen of programs is supported.
30434dlopen_self=$enable_dlopen_self
30435
30436# Whether dlopen of statically linked programs is supported.
30437dlopen_self_static=$enable_dlopen_self_static
30438
30439# Commands to strip libraries.
30440old_striplib=$lt_old_striplib
30441striplib=$lt_striplib
30442
30443
30444# The linker used to build libraries.
30445LD=$lt_LD
30446
30447# How to create reloadable object files.
30448reload_flag=$lt_reload_flag
30449reload_cmds=$lt_reload_cmds
30450
30451# Commands used to build an old-style archive.
30452old_archive_cmds=$lt_old_archive_cmds
30453
30454# A language specific compiler.
30455CC=$lt_compiler
30456
30457# Is the compiler the GNU compiler?
30458with_gcc=$GCC
30459
30460# Compiler flag to turn off builtin functions.
30461no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30462
30463# Additional compiler flags for building library objects.
30464pic_flag=$lt_lt_prog_compiler_pic
30465
30466# How to pass a linker flag through the compiler.
30467wl=$lt_lt_prog_compiler_wl
30468
30469# Compiler flag to prevent dynamic linking.
30470link_static_flag=$lt_lt_prog_compiler_static
30471
30472# Does compiler simultaneously support -c and -o options?
30473compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30474
30475# Whether or not to add -lc for building shared libraries.
30476build_libtool_need_lc=$archive_cmds_need_lc
30477
30478# Whether or not to disallow shared libs when runtime libs are static.
30479allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30480
30481# Compiler flag to allow reflexive dlopens.
30482export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30483
30484# Compiler flag to generate shared objects directly from archives.
30485whole_archive_flag_spec=$lt_whole_archive_flag_spec
30486
30487# Whether the compiler copes with passing no objects directly.
30488compiler_needs_object=$lt_compiler_needs_object
30489
30490# Create an old-style archive from a shared archive.
30491old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30492
30493# Create a temporary old-style archive to link instead of a shared archive.
30494old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30495
30496# Commands used to build a shared archive.
30497archive_cmds=$lt_archive_cmds
30498archive_expsym_cmds=$lt_archive_expsym_cmds
30499
30500# Commands used to build a loadable module if different from building
30501# a shared archive.
30502module_cmds=$lt_module_cmds
30503module_expsym_cmds=$lt_module_expsym_cmds
30504
30505# Whether we are building with GNU ld or not.
30506with_gnu_ld=$lt_with_gnu_ld
30507
30508# Flag that allows shared libraries with undefined symbols to be built.
30509allow_undefined_flag=$lt_allow_undefined_flag
30510
30511# Flag that enforces no undefined symbols.
30512no_undefined_flag=$lt_no_undefined_flag
30513
30514# Flag to hardcode \$libdir into a binary during linking.
30515# This must work even if \$libdir does not exist
30516hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30517
30518# Whether we need a single "-rpath" flag with a separated argument.
30519hardcode_libdir_separator=$lt_hardcode_libdir_separator
30520
30521# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30522# DIR into the resulting binary.
30523hardcode_direct=$hardcode_direct
30524
30525# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30526# DIR into the resulting binary and the resulting library dependency is
30527# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30528# library is relocated.
30529hardcode_direct_absolute=$hardcode_direct_absolute
30530
30531# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30532# into the resulting binary.
30533hardcode_minus_L=$hardcode_minus_L
30534
30535# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30536# into the resulting binary.
30537hardcode_shlibpath_var=$hardcode_shlibpath_var
30538
30539# Set to "yes" if building a shared library automatically hardcodes DIR
30540# into the library and all subsequent libraries and executables linked
30541# against it.
30542hardcode_automatic=$hardcode_automatic
30543
30544# Set to yes if linker adds runtime paths of dependent libraries
30545# to runtime path list.
30546inherit_rpath=$inherit_rpath
30547
30548# Whether libtool must link a program against all its dependency libraries.
30549link_all_deplibs=$link_all_deplibs
30550
30551# Set to "yes" if exported symbols are required.
30552always_export_symbols=$always_export_symbols
30553
30554# The commands to list exported symbols.
30555export_symbols_cmds=$lt_export_symbols_cmds
30556
30557# Symbols that should not be listed in the preloaded symbols.
30558exclude_expsyms=$lt_exclude_expsyms
30559
30560# Symbols that must always be exported.
30561include_expsyms=$lt_include_expsyms
30562
30563# Commands necessary for linking programs (against libraries) with templates.
30564prelink_cmds=$lt_prelink_cmds
30565
30566# Commands necessary for finishing linking programs.
30567postlink_cmds=$lt_postlink_cmds
30568
30569# Specify filename containing input files.
30570file_list_spec=$lt_file_list_spec
30571
30572# How to hardcode a shared library path into an executable.
30573hardcode_action=$hardcode_action
30574
30575# ### END LIBTOOL CONFIG
30576
30577_LT_EOF
30578
30579  case $host_os in
30580  aix3*)
30581    cat <<\_LT_EOF >> "$cfgfile"
30582# AIX sometimes has problems with the GCC collect2 program.  For some
30583# reason, if we set the COLLECT_NAMES environment variable, the problems
30584# vanish in a puff of smoke.
30585if test "X${COLLECT_NAMES+set}" != Xset; then
30586  COLLECT_NAMES=
30587  export COLLECT_NAMES
30588fi
30589_LT_EOF
30590    ;;
30591  esac
30592
30593
30594ltmain="$ac_aux_dir/ltmain.sh"
30595
30596
30597  # We use sed instead of cat because bash on DJGPP gets confused if
30598  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
30599  # text mode, it properly converts lines to CR/LF.  This bash problem
30600  # is reportedly fixed, but why not run on old versions too?
30601  sed '$q' "$ltmain" >> "$cfgfile" \
30602     || (rm -f "$cfgfile"; exit 1)
30603
30604  if test x"$xsi_shell" = xyes; then
30605  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
30606func_dirname ()\
30607{\
30608\    case ${1} in\
30609\      */*) func_dirname_result="${1%/*}${2}" ;;\
30610\      *  ) func_dirname_result="${3}" ;;\
30611\    esac\
30612} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
30613  && mv -f "$cfgfile.tmp" "$cfgfile" \
30614    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30615test 0 -eq $? || _lt_function_replace_fail=:
30616
30617
30618  sed -e '/^func_basename ()$/,/^} # func_basename /c\
30619func_basename ()\
30620{\
30621\    func_basename_result="${1##*/}"\
30622} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
30623  && mv -f "$cfgfile.tmp" "$cfgfile" \
30624    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30625test 0 -eq $? || _lt_function_replace_fail=:
30626
30627
30628  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
30629func_dirname_and_basename ()\
30630{\
30631\    case ${1} in\
30632\      */*) func_dirname_result="${1%/*}${2}" ;;\
30633\      *  ) func_dirname_result="${3}" ;;\
30634\    esac\
30635\    func_basename_result="${1##*/}"\
30636} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
30637  && mv -f "$cfgfile.tmp" "$cfgfile" \
30638    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30639test 0 -eq $? || _lt_function_replace_fail=:
30640
30641
30642  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
30643func_stripname ()\
30644{\
30645\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
30646\    # positional parameters, so assign one to ordinary parameter first.\
30647\    func_stripname_result=${3}\
30648\    func_stripname_result=${func_stripname_result#"${1}"}\
30649\    func_stripname_result=${func_stripname_result%"${2}"}\
30650} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
30651  && mv -f "$cfgfile.tmp" "$cfgfile" \
30652    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30653test 0 -eq $? || _lt_function_replace_fail=:
30654
30655
30656  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
30657func_split_long_opt ()\
30658{\
30659\    func_split_long_opt_name=${1%%=*}\
30660\    func_split_long_opt_arg=${1#*=}\
30661} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
30662  && mv -f "$cfgfile.tmp" "$cfgfile" \
30663    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30664test 0 -eq $? || _lt_function_replace_fail=:
30665
30666
30667  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
30668func_split_short_opt ()\
30669{\
30670\    func_split_short_opt_arg=${1#??}\
30671\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
30672} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
30673  && mv -f "$cfgfile.tmp" "$cfgfile" \
30674    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30675test 0 -eq $? || _lt_function_replace_fail=:
30676
30677
30678  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
30679func_lo2o ()\
30680{\
30681\    case ${1} in\
30682\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
30683\      *)    func_lo2o_result=${1} ;;\
30684\    esac\
30685} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
30686  && mv -f "$cfgfile.tmp" "$cfgfile" \
30687    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30688test 0 -eq $? || _lt_function_replace_fail=:
30689
30690
30691  sed -e '/^func_xform ()$/,/^} # func_xform /c\
30692func_xform ()\
30693{\
30694    func_xform_result=${1%.*}.lo\
30695} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
30696  && mv -f "$cfgfile.tmp" "$cfgfile" \
30697    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30698test 0 -eq $? || _lt_function_replace_fail=:
30699
30700
30701  sed -e '/^func_arith ()$/,/^} # func_arith /c\
30702func_arith ()\
30703{\
30704    func_arith_result=$(( $* ))\
30705} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
30706  && mv -f "$cfgfile.tmp" "$cfgfile" \
30707    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30708test 0 -eq $? || _lt_function_replace_fail=:
30709
30710
30711  sed -e '/^func_len ()$/,/^} # func_len /c\
30712func_len ()\
30713{\
30714    func_len_result=${#1}\
30715} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
30716  && mv -f "$cfgfile.tmp" "$cfgfile" \
30717    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30718test 0 -eq $? || _lt_function_replace_fail=:
30719
30720fi
30721
30722if test x"$lt_shell_append" = xyes; then
30723  sed -e '/^func_append ()$/,/^} # func_append /c\
30724func_append ()\
30725{\
30726    eval "${1}+=\\${2}"\
30727} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
30728  && mv -f "$cfgfile.tmp" "$cfgfile" \
30729    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30730test 0 -eq $? || _lt_function_replace_fail=:
30731
30732
30733  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
30734func_append_quoted ()\
30735{\
30736\    func_quote_for_eval "${2}"\
30737\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
30738} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
30739  && mv -f "$cfgfile.tmp" "$cfgfile" \
30740    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30741test 0 -eq $? || _lt_function_replace_fail=:
30742
30743
30744  # Save a `func_append' function call where possible by direct use of '+='
30745  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
30746    && mv -f "$cfgfile.tmp" "$cfgfile" \
30747      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30748  test 0 -eq $? || _lt_function_replace_fail=:
30749else
30750  # Save a `func_append' function call even when '+=' is not available
30751  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
30752    && mv -f "$cfgfile.tmp" "$cfgfile" \
30753      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30754  test 0 -eq $? || _lt_function_replace_fail=:
30755fi
30756
30757if test x"$_lt_function_replace_fail" = x":"; then
30758  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
30759$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
30760fi
30761
30762
30763   mv -f "$cfgfile" "$ofile" ||
30764    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30765  chmod +x "$ofile"
30766
30767 ;;
30768    "default":C)
30769# Commands run at the end of config.status:
30770for i in $APR_SAVE_HEADERS; do
30771  if cmp -s $i $i.save 2>/dev/null; then
30772    mv $i.save $i
30773    { $as_echo "$as_me:${as_lineno-$LINENO}: $i is unchanged" >&5
30774$as_echo "$as_me: $i is unchanged" >&6;}
30775  fi
30776  rm -f $i.save
30777done
30778chmod +x apr-$APR_MAJOR_VERSION-config
30779 ;;
30780
30781  esac
30782done # for ac_tag
30783
30784
30785as_fn_exit 0
30786_ACEOF
30787ac_clean_files=$ac_clean_files_save
30788
30789test $ac_write_fail = 0 ||
30790  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30791
30792
30793# configure is writing to config.log, and then calls config.status.
30794# config.status does its own redirection, appending to config.log.
30795# Unfortunately, on DOS this fails, as config.log is still kept open
30796# by configure, so config.status won't be able to write to it; its
30797# output is simply discarded.  So we exec the FD to /dev/null,
30798# effectively closing config.log, so it can be properly (re)opened and
30799# appended to by config.status.  When coming back to configure, we
30800# need to make the FD available again.
30801if test "$no_create" != yes; then
30802  ac_cs_success=:
30803  ac_config_status_args=
30804  test "$silent" = yes &&
30805    ac_config_status_args="$ac_config_status_args --quiet"
30806  exec 5>/dev/null
30807  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30808  exec 5>>config.log
30809  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30810  # would make configure fail if this is the last instruction.
30811  $ac_cs_success || as_fn_exit 1
30812fi
30813if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30814  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30815$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30816fi
30817
30818