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
642NOTEST_INCLUDES
643NOTEST_LIBS
644NOTEST_LDFLAGS
645NOTEST_CFLAGS
646NOTEST_CPPFLAGS
647EXTRA_INCLUDES
648EXTRA_LIBS
649EXTRA_LDFLAGS
650EXTRA_CFLAGS
651EXTRA_CPPFLAGS
652apr_has_user
653apr_thread_func
654apr_procattr_user_set_requires_password
655apr_has_xthread_files
656have_unicode_fs
657have_ipv6
658have_sa_storage
659have_sctp
660acceptfilter
661have_corkable_tcp
662apr_tcp_nopush_flag
663file_as_socket
664have_in_addr
665osuuid
666rand
667proclockglobal
668pthreadser
669procpthreadser
670fcntlser
671posixser
672sysvser
673flockser
674hasprocpthreadser
675hasfcntlser
676hasposixser
677hassysvser
678hasflockser
679have_union_semun
680struct_rlimit
681have_proc_invoked
682oc
683aprdso
684have_memchr
685have_strstr
686have_strdup
687have_strcasecmp
688have_stricmp
689have_strncasecmp
690have_strnicmp
691ino_t_value
692have_iovec
693aprlfs
694bigendian
695stdint
696uint64_literal
697int64_literal
698pid_t_fmt
699off_t_fmt
700size_t_fmt
701ssize_t_fmt
702uint64_t_hex_fmt
703uint64_t_fmt
704int64_t_fmt
705socklen_t_value
706ssize_t_value
707size_t_value
708off_t_value
709int64_value
710long_value
711int_value
712short_value
713voidp_size
714winsock2h
715windowsh
716semaphoreh
717pthreadh
718processh
719sys_waith
720signalh
721unistdh
722timeh
723sys_unh
724sys_uioh
725sys_timeh
726sys_typesh
727sys_sockioh
728sys_socketh
729sys_signalh
730sys_sendfileh
731sys_ioctlh
732stringsh
733stringh
734stdlibh
735stdioh
736stdargh
737netinet_tcph
738netinet_sctp_uioh
739netinet_sctph
740netinet_inh
741sys_syslimitsh
742netdbh
743limitsh
744ioh
745fcntlh
746direnth
747errnoh
748crypth
749ctypeh
750conioh
751arpa_ineth
752have_memmove
753mmap
754have_getrlimit
755have_setrlimit
756have_sigaction
757have_inet_network
758o_nonblock_inherited
759tcp_nodelay_inherited
760have_inet_addr
761fork
762apr_inaddr_none
763sendfile
764ALLOCA
765sharedmem
766havewin32shm
767haveos2shm
768havebeosarea
769haveshmget
770havemmapshm
771havemmaptmp
772usewin32shm
773useos2shm
774usebeosarea
775useshmget
776usemmapshm
777usemmaptmp
778havemmapanon
779havemmapzero
780haveshmgetanon
781usemmapanon
782usemmapzero
783useshmgetanon
784have_sigwait
785have_sigsuspend
786threads
787INSTALL_SUBDIRS
788eolstr
789proc_mutex_is_global
790OBJECTS_PLATFORM
791MKDEP
792LT_VERSION
793LT_LDFLAGS
794LTFLAGS
795shlibpath_var
796export_lib_target
797lib_target
798so_ext
799link
800lt_compile
801installbuilddir
802OTOOL64
803OTOOL
804LIPO
805NMEDIT
806DSYMUTIL
807MANIFEST_TOOL
808STRIP
809ac_ct_AR
810NM
811ac_ct_DUMPBIN
812DUMPBIN
813LD
814FGREP
815LIBTOOL
816OBJDUMP
817DLLTOOL
818APR_LIBNAME
819apr_charset_ebcdic
820EGREP
821GREP
822AR
823ASCPP
824AS
825RM
826INSTALL_DATA
827INSTALL_SCRIPT
828INSTALL_PROGRAM
829RANLIB
830LN_S
831AWK
832CPP
833SET_MAKE
834SED
835OBJEXT
836EXEEXT
837ac_ct_CC
838CPPFLAGS
839LDFLAGS
840CFLAGS
841CC
842APR_MAJOR_VERSION
843APR_DOTTED_VERSION
844apr_builders
845top_builddir
846APR_CONFIG_LOCATION
847apr_builddir
848apr_srcdir
849target_os
850target_vendor
851target_cpu
852target
853host_os
854host_vendor
855host_cpu
856host
857build_os
858build_vendor
859build_cpu
860build
861target_alias
862host_alias
863build_alias
864LIBS
865ECHO_T
866ECHO_N
867ECHO_C
868DEFS
869mandir
870localedir
871libdir
872psdir
873pdfdir
874dvidir
875htmldir
876infodir
877docdir
878oldincludedir
879includedir
880localstatedir
881sharedstatedir
882sysconfdir
883datadir
884datarootdir
885libexecdir
886sbindir
887bindir
888program_transform_name
889prefix
890exec_prefix
891PACKAGE_URL
892PACKAGE_BUGREPORT
893PACKAGE_STRING
894PACKAGE_VERSION
895PACKAGE_TARNAME
896PACKAGE_NAME
897PATH_SEPARATOR
898SHELL'
899ac_subst_files=''
900ac_user_opts='
901enable_option_checking
902enable_layout
903enable_experimental_libtool
904enable_shared
905enable_static
906with_pic
907enable_fast_install
908with_gnu_ld
909with_sysroot
910enable_libtool_lock
911with_installbuilddir
912with_libtool
913enable_debug
914enable_maintainer_mode
915enable_profile
916enable_pool_debug
917enable_malloc_debug
918enable_lfs
919enable_nonportable_atomics
920enable_threads
921with_efence
922with_sendfile
923enable_allocator_uses_mmap
924enable_dso
925enable_other_child
926with_egd
927with_devrandom
928enable_ipv6
929'
930      ac_precious_vars='build_alias
931host_alias
932target_alias
933CC
934CFLAGS
935LDFLAGS
936LIBS
937CPPFLAGS
938CPP'
939
940
941# Initialize some variables set by options.
942ac_init_help=
943ac_init_version=false
944ac_unrecognized_opts=
945ac_unrecognized_sep=
946# The variables have the same names as the options, with
947# dashes changed to underlines.
948cache_file=/dev/null
949exec_prefix=NONE
950no_create=
951no_recursion=
952prefix=NONE
953program_prefix=NONE
954program_suffix=NONE
955program_transform_name=s,x,x,
956silent=
957site=
958srcdir=
959verbose=
960x_includes=NONE
961x_libraries=NONE
962
963# Installation directory options.
964# These are left unexpanded so users can "make install exec_prefix=/foo"
965# and all the variables that are supposed to be based on exec_prefix
966# by default will actually change.
967# Use braces instead of parens because sh, perl, etc. also accept them.
968# (The list follows the same order as the GNU Coding Standards.)
969bindir='${exec_prefix}/bin'
970sbindir='${exec_prefix}/sbin'
971libexecdir='${exec_prefix}/libexec'
972datarootdir='${prefix}/share'
973datadir='${datarootdir}'
974sysconfdir='${prefix}/etc'
975sharedstatedir='${prefix}/com'
976localstatedir='${prefix}/var'
977includedir='${prefix}/include'
978oldincludedir='/usr/include'
979docdir='${datarootdir}/doc/${PACKAGE}'
980infodir='${datarootdir}/info'
981htmldir='${docdir}'
982dvidir='${docdir}'
983pdfdir='${docdir}'
984psdir='${docdir}'
985libdir='${exec_prefix}/lib'
986localedir='${datarootdir}/locale'
987mandir='${datarootdir}/man'
988
989ac_prev=
990ac_dashdash=
991for ac_option
992do
993  # If the previous option needs an argument, assign it.
994  if test -n "$ac_prev"; then
995    eval $ac_prev=\$ac_option
996    ac_prev=
997    continue
998  fi
999
1000  case $ac_option in
1001  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1002  *=)   ac_optarg= ;;
1003  *)    ac_optarg=yes ;;
1004  esac
1005
1006  # Accept the important Cygnus configure options, so we can diagnose typos.
1007
1008  case $ac_dashdash$ac_option in
1009  --)
1010    ac_dashdash=yes ;;
1011
1012  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013    ac_prev=bindir ;;
1014  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015    bindir=$ac_optarg ;;
1016
1017  -build | --build | --buil | --bui | --bu)
1018    ac_prev=build_alias ;;
1019  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020    build_alias=$ac_optarg ;;
1021
1022  -cache-file | --cache-file | --cache-fil | --cache-fi \
1023  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024    ac_prev=cache_file ;;
1025  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027    cache_file=$ac_optarg ;;
1028
1029  --config-cache | -C)
1030    cache_file=config.cache ;;
1031
1032  -datadir | --datadir | --datadi | --datad)
1033    ac_prev=datadir ;;
1034  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035    datadir=$ac_optarg ;;
1036
1037  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038  | --dataroo | --dataro | --datar)
1039    ac_prev=datarootdir ;;
1040  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042    datarootdir=$ac_optarg ;;
1043
1044  -disable-* | --disable-*)
1045    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046    # Reject names that are not valid shell variable names.
1047    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048      as_fn_error $? "invalid feature name: $ac_useropt"
1049    ac_useropt_orig=$ac_useropt
1050    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051    case $ac_user_opts in
1052      *"
1053"enable_$ac_useropt"
1054"*) ;;
1055      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056	 ac_unrecognized_sep=', ';;
1057    esac
1058    eval enable_$ac_useropt=no ;;
1059
1060  -docdir | --docdir | --docdi | --doc | --do)
1061    ac_prev=docdir ;;
1062  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063    docdir=$ac_optarg ;;
1064
1065  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066    ac_prev=dvidir ;;
1067  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068    dvidir=$ac_optarg ;;
1069
1070  -enable-* | --enable-*)
1071    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072    # Reject names that are not valid shell variable names.
1073    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074      as_fn_error $? "invalid feature name: $ac_useropt"
1075    ac_useropt_orig=$ac_useropt
1076    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077    case $ac_user_opts in
1078      *"
1079"enable_$ac_useropt"
1080"*) ;;
1081      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082	 ac_unrecognized_sep=', ';;
1083    esac
1084    eval enable_$ac_useropt=\$ac_optarg ;;
1085
1086  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088  | --exec | --exe | --ex)
1089    ac_prev=exec_prefix ;;
1090  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092  | --exec=* | --exe=* | --ex=*)
1093    exec_prefix=$ac_optarg ;;
1094
1095  -gas | --gas | --ga | --g)
1096    # Obsolete; use --with-gas.
1097    with_gas=yes ;;
1098
1099  -help | --help | --hel | --he | -h)
1100    ac_init_help=long ;;
1101  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102    ac_init_help=recursive ;;
1103  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104    ac_init_help=short ;;
1105
1106  -host | --host | --hos | --ho)
1107    ac_prev=host_alias ;;
1108  -host=* | --host=* | --hos=* | --ho=*)
1109    host_alias=$ac_optarg ;;
1110
1111  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112    ac_prev=htmldir ;;
1113  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114  | --ht=*)
1115    htmldir=$ac_optarg ;;
1116
1117  -includedir | --includedir | --includedi | --included | --include \
1118  | --includ | --inclu | --incl | --inc)
1119    ac_prev=includedir ;;
1120  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121  | --includ=* | --inclu=* | --incl=* | --inc=*)
1122    includedir=$ac_optarg ;;
1123
1124  -infodir | --infodir | --infodi | --infod | --info | --inf)
1125    ac_prev=infodir ;;
1126  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127    infodir=$ac_optarg ;;
1128
1129  -libdir | --libdir | --libdi | --libd)
1130    ac_prev=libdir ;;
1131  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132    libdir=$ac_optarg ;;
1133
1134  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135  | --libexe | --libex | --libe)
1136    ac_prev=libexecdir ;;
1137  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138  | --libexe=* | --libex=* | --libe=*)
1139    libexecdir=$ac_optarg ;;
1140
1141  -localedir | --localedir | --localedi | --localed | --locale)
1142    ac_prev=localedir ;;
1143  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144    localedir=$ac_optarg ;;
1145
1146  -localstatedir | --localstatedir | --localstatedi | --localstated \
1147  | --localstate | --localstat | --localsta | --localst | --locals)
1148    ac_prev=localstatedir ;;
1149  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151    localstatedir=$ac_optarg ;;
1152
1153  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154    ac_prev=mandir ;;
1155  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156    mandir=$ac_optarg ;;
1157
1158  -nfp | --nfp | --nf)
1159    # Obsolete; use --without-fp.
1160    with_fp=no ;;
1161
1162  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163  | --no-cr | --no-c | -n)
1164    no_create=yes ;;
1165
1166  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168    no_recursion=yes ;;
1169
1170  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172  | --oldin | --oldi | --old | --ol | --o)
1173    ac_prev=oldincludedir ;;
1174  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177    oldincludedir=$ac_optarg ;;
1178
1179  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180    ac_prev=prefix ;;
1181  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182    prefix=$ac_optarg ;;
1183
1184  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185  | --program-pre | --program-pr | --program-p)
1186    ac_prev=program_prefix ;;
1187  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189    program_prefix=$ac_optarg ;;
1190
1191  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192  | --program-suf | --program-su | --program-s)
1193    ac_prev=program_suffix ;;
1194  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196    program_suffix=$ac_optarg ;;
1197
1198  -program-transform-name | --program-transform-name \
1199  | --program-transform-nam | --program-transform-na \
1200  | --program-transform-n | --program-transform- \
1201  | --program-transform | --program-transfor \
1202  | --program-transfo | --program-transf \
1203  | --program-trans | --program-tran \
1204  | --progr-tra | --program-tr | --program-t)
1205    ac_prev=program_transform_name ;;
1206  -program-transform-name=* | --program-transform-name=* \
1207  | --program-transform-nam=* | --program-transform-na=* \
1208  | --program-transform-n=* | --program-transform-=* \
1209  | --program-transform=* | --program-transfor=* \
1210  | --program-transfo=* | --program-transf=* \
1211  | --program-trans=* | --program-tran=* \
1212  | --progr-tra=* | --program-tr=* | --program-t=*)
1213    program_transform_name=$ac_optarg ;;
1214
1215  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216    ac_prev=pdfdir ;;
1217  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218    pdfdir=$ac_optarg ;;
1219
1220  -psdir | --psdir | --psdi | --psd | --ps)
1221    ac_prev=psdir ;;
1222  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223    psdir=$ac_optarg ;;
1224
1225  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226  | -silent | --silent | --silen | --sile | --sil)
1227    silent=yes ;;
1228
1229  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230    ac_prev=sbindir ;;
1231  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232  | --sbi=* | --sb=*)
1233    sbindir=$ac_optarg ;;
1234
1235  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237  | --sharedst | --shareds | --shared | --share | --shar \
1238  | --sha | --sh)
1239    ac_prev=sharedstatedir ;;
1240  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243  | --sha=* | --sh=*)
1244    sharedstatedir=$ac_optarg ;;
1245
1246  -site | --site | --sit)
1247    ac_prev=site ;;
1248  -site=* | --site=* | --sit=*)
1249    site=$ac_optarg ;;
1250
1251  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252    ac_prev=srcdir ;;
1253  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254    srcdir=$ac_optarg ;;
1255
1256  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257  | --syscon | --sysco | --sysc | --sys | --sy)
1258    ac_prev=sysconfdir ;;
1259  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261    sysconfdir=$ac_optarg ;;
1262
1263  -target | --target | --targe | --targ | --tar | --ta | --t)
1264    ac_prev=target_alias ;;
1265  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266    target_alias=$ac_optarg ;;
1267
1268  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269    verbose=yes ;;
1270
1271  -version | --version | --versio | --versi | --vers | -V)
1272    ac_init_version=: ;;
1273
1274  -with-* | --with-*)
1275    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276    # Reject names that are not valid shell variable names.
1277    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278      as_fn_error $? "invalid package name: $ac_useropt"
1279    ac_useropt_orig=$ac_useropt
1280    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281    case $ac_user_opts in
1282      *"
1283"with_$ac_useropt"
1284"*) ;;
1285      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286	 ac_unrecognized_sep=', ';;
1287    esac
1288    eval with_$ac_useropt=\$ac_optarg ;;
1289
1290  -without-* | --without-*)
1291    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292    # Reject names that are not valid shell variable names.
1293    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294      as_fn_error $? "invalid package name: $ac_useropt"
1295    ac_useropt_orig=$ac_useropt
1296    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297    case $ac_user_opts in
1298      *"
1299"with_$ac_useropt"
1300"*) ;;
1301      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302	 ac_unrecognized_sep=', ';;
1303    esac
1304    eval with_$ac_useropt=no ;;
1305
1306  --x)
1307    # Obsolete; use --with-x.
1308    with_x=yes ;;
1309
1310  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311  | --x-incl | --x-inc | --x-in | --x-i)
1312    ac_prev=x_includes ;;
1313  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315    x_includes=$ac_optarg ;;
1316
1317  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319    ac_prev=x_libraries ;;
1320  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322    x_libraries=$ac_optarg ;;
1323
1324  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1325Try \`$0 --help' for more information"
1326    ;;
1327
1328  *=*)
1329    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330    # Reject names that are not valid shell variable names.
1331    case $ac_envvar in #(
1332      '' | [0-9]* | *[!_$as_cr_alnum]* )
1333      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1334    esac
1335    eval $ac_envvar=\$ac_optarg
1336    export $ac_envvar ;;
1337
1338  *)
1339    # FIXME: should be removed in autoconf 3.0.
1340    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1344    ;;
1345
1346  esac
1347done
1348
1349if test -n "$ac_prev"; then
1350  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351  as_fn_error $? "missing argument to $ac_option"
1352fi
1353
1354if test -n "$ac_unrecognized_opts"; then
1355  case $enable_option_checking in
1356    no) ;;
1357    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1358    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359  esac
1360fi
1361
1362# Check all directory arguments for consistency.
1363for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364		datadir sysconfdir sharedstatedir localstatedir includedir \
1365		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366		libdir localedir mandir
1367do
1368  eval ac_val=\$$ac_var
1369  # Remove trailing slashes.
1370  case $ac_val in
1371    */ )
1372      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373      eval $ac_var=\$ac_val;;
1374  esac
1375  # Be sure to have absolute directory names.
1376  case $ac_val in
1377    [\\/$]* | ?:[\\/]* )  continue;;
1378    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379  esac
1380  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1381done
1382
1383# There might be people who depend on the old broken behavior: `$host'
1384# used to hold the argument of --host etc.
1385# FIXME: To remove some day.
1386build=$build_alias
1387host=$host_alias
1388target=$target_alias
1389
1390# FIXME: To remove some day.
1391if test "x$host_alias" != x; then
1392  if test "x$build_alias" = x; then
1393    cross_compiling=maybe
1394  elif test "x$build_alias" != "x$host_alias"; then
1395    cross_compiling=yes
1396  fi
1397fi
1398
1399ac_tool_prefix=
1400test -n "$host_alias" && ac_tool_prefix=$host_alias-
1401
1402test "$silent" = yes && exec 6>/dev/null
1403
1404
1405ac_pwd=`pwd` && test -n "$ac_pwd" &&
1406ac_ls_di=`ls -di .` &&
1407ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1408  as_fn_error $? "working directory cannot be determined"
1409test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410  as_fn_error $? "pwd does not report name of working directory"
1411
1412
1413# Find the source files, if location was not specified.
1414if test -z "$srcdir"; then
1415  ac_srcdir_defaulted=yes
1416  # Try the directory containing this script, then the parent directory.
1417  ac_confdir=`$as_dirname -- "$as_myself" ||
1418$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419	 X"$as_myself" : 'X\(//\)[^/]' \| \
1420	 X"$as_myself" : 'X\(//\)$' \| \
1421	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1422$as_echo X"$as_myself" |
1423    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1424	    s//\1/
1425	    q
1426	  }
1427	  /^X\(\/\/\)[^/].*/{
1428	    s//\1/
1429	    q
1430	  }
1431	  /^X\(\/\/\)$/{
1432	    s//\1/
1433	    q
1434	  }
1435	  /^X\(\/\).*/{
1436	    s//\1/
1437	    q
1438	  }
1439	  s/.*/./; q'`
1440  srcdir=$ac_confdir
1441  if test ! -r "$srcdir/$ac_unique_file"; then
1442    srcdir=..
1443  fi
1444else
1445  ac_srcdir_defaulted=no
1446fi
1447if test ! -r "$srcdir/$ac_unique_file"; then
1448  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1449  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1450fi
1451ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1452ac_abs_confdir=`(
1453	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1454	pwd)`
1455# When building in place, set srcdir=.
1456if test "$ac_abs_confdir" = "$ac_pwd"; then
1457  srcdir=.
1458fi
1459# Remove unnecessary trailing slashes from srcdir.
1460# Double slashes in file names in object file debugging info
1461# mess up M-x gdb in Emacs.
1462case $srcdir in
1463*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1464esac
1465for ac_var in $ac_precious_vars; do
1466  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467  eval ac_env_${ac_var}_value=\$${ac_var}
1468  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1470done
1471
1472#
1473# Report the --help message.
1474#
1475if test "$ac_init_help" = "long"; then
1476  # Omit some internal or obsolete options to make the list less imposing.
1477  # This message is too long to be a string in the A/UX 3.1 sh.
1478  cat <<_ACEOF
1479\`configure' configures this package to adapt to many kinds of systems.
1480
1481Usage: $0 [OPTION]... [VAR=VALUE]...
1482
1483To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484VAR=VALUE.  See below for descriptions of some of the useful variables.
1485
1486Defaults for the options are specified in brackets.
1487
1488Configuration:
1489  -h, --help              display this help and exit
1490      --help=short        display options specific to this package
1491      --help=recursive    display the short help of all the included packages
1492  -V, --version           display version information and exit
1493  -q, --quiet, --silent   do not print \`checking ...' messages
1494      --cache-file=FILE   cache test results in FILE [disabled]
1495  -C, --config-cache      alias for \`--cache-file=config.cache'
1496  -n, --no-create         do not create output files
1497      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1498
1499Installation directories:
1500  --prefix=PREFIX         install architecture-independent files in PREFIX
1501                          [$ac_default_prefix]
1502  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1503                          [PREFIX]
1504
1505By default, \`make install' will install all the files in
1506\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1507an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508for instance \`--prefix=\$HOME'.
1509
1510For better control, use the options below.
1511
1512Fine tuning of the installation directories:
1513  --bindir=DIR            user executables [EPREFIX/bin]
1514  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1515  --libexecdir=DIR        program executables [EPREFIX/libexec]
1516  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1517  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1518  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1519  --libdir=DIR            object code libraries [EPREFIX/lib]
1520  --includedir=DIR        C header files [PREFIX/include]
1521  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1522  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1523  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1524  --infodir=DIR           info documentation [DATAROOTDIR/info]
1525  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1526  --mandir=DIR            man documentation [DATAROOTDIR/man]
1527  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1528  --htmldir=DIR           html documentation [DOCDIR]
1529  --dvidir=DIR            dvi documentation [DOCDIR]
1530  --pdfdir=DIR            pdf documentation [DOCDIR]
1531  --psdir=DIR             ps documentation [DOCDIR]
1532_ACEOF
1533
1534  cat <<\_ACEOF
1535
1536System types:
1537  --build=BUILD     configure for building on BUILD [guessed]
1538  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1539  --target=TARGET   configure for building compilers for TARGET [HOST]
1540_ACEOF
1541fi
1542
1543if test -n "$ac_init_help"; then
1544
1545  cat <<\_ACEOF
1546
1547Optional Features:
1548  --disable-option-checking  ignore unrecognized --enable/--with options
1549  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1550  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1551  --enable-layout=LAYOUT
1552  --enable-experimental-libtool Use experimental custom libtool
1553  --enable-shared[=PKGS]  build shared libraries [default=yes]
1554  --enable-static[=PKGS]  build static libraries [default=yes]
1555  --enable-fast-install[=PKGS]
1556                          optimize for fast installation [default=yes]
1557  --disable-libtool-lock  avoid locking (might break parallel builds)
1558  --enable-debug          Turn on debugging and compile time warnings
1559  --enable-maintainer-mode  Turn on debugging and compile time warnings
1560  --enable-profile        Turn on profiling for the build (GCC)
1561  --enable-pool-debug[=yes|no|verbose|verbose-alloc|lifetime|owner|all]    Turn on pools debugging
1562  --enable-malloc-debug   Switch on malloc_debug for BeOS
1563  --disable-lfs           Disable large file support on 32-bit platforms
1564  --enable-nonportable-atomics  Use optimized atomic code which may produce nonportable binaries
1565  --enable-threads        Enable threading support in APR.
1566  --enable-allocator-uses-mmap    Use mmap in apr_allocator instead of malloc (experimental)
1567  --disable-dso           Disable DSO support
1568  --enable-other-child    Enable reliable child processes
1569  --disable-ipv6          Disable IPv6 support in APR.
1570
1571Optional Packages:
1572  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1573  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1574  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1575                          both]
1576  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1577  --with-sysroot=DIR Search for dependent libraries within DIR
1578                        (or the compiler's sysroot if not specified).
1579  --with-installbuilddir=DIR location to store APR build files (defaults to '${datadir}/build')
1580  --without-libtool       avoid using libtool to link the library
1581  --with-efence[=DIR]     path to Electric Fence installation
1582  --with-sendfile         Override decision to use sendfile
1583  --with-egd[=DIR]        use EGD-compatible socket
1584  --with-devrandom[=DEV]  use /dev/random or compatible [searches by default]
1585
1586Some influential environment variables:
1587  CC          C compiler command
1588  CFLAGS      C compiler flags
1589  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1590              nonstandard directory <lib dir>
1591  LIBS        libraries to pass to the linker, e.g. -l<library>
1592  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1593              you have headers in a nonstandard directory <include dir>
1594  CPP         C preprocessor
1595
1596Use these variables to override the choices made by `configure' or to help
1597it to find libraries and programs with nonstandard names/locations.
1598
1599Report bugs to the package provider.
1600_ACEOF
1601ac_status=$?
1602fi
1603
1604if test "$ac_init_help" = "recursive"; then
1605  # If there are subdirs, report their specific --help.
1606  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1607    test -d "$ac_dir" ||
1608      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1609      continue
1610    ac_builddir=.
1611
1612case "$ac_dir" in
1613.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614*)
1615  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1616  # A ".." for each directory in $ac_dir_suffix.
1617  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1618  case $ac_top_builddir_sub in
1619  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621  esac ;;
1622esac
1623ac_abs_top_builddir=$ac_pwd
1624ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625# for backward compatibility:
1626ac_top_builddir=$ac_top_build_prefix
1627
1628case $srcdir in
1629  .)  # We are building in place.
1630    ac_srcdir=.
1631    ac_top_srcdir=$ac_top_builddir_sub
1632    ac_abs_top_srcdir=$ac_pwd ;;
1633  [\\/]* | ?:[\\/]* )  # Absolute name.
1634    ac_srcdir=$srcdir$ac_dir_suffix;
1635    ac_top_srcdir=$srcdir
1636    ac_abs_top_srcdir=$srcdir ;;
1637  *) # Relative name.
1638    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639    ac_top_srcdir=$ac_top_build_prefix$srcdir
1640    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1641esac
1642ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1643
1644    cd "$ac_dir" || { ac_status=$?; continue; }
1645    # Check for guested configure.
1646    if test -f "$ac_srcdir/configure.gnu"; then
1647      echo &&
1648      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649    elif test -f "$ac_srcdir/configure"; then
1650      echo &&
1651      $SHELL "$ac_srcdir/configure" --help=recursive
1652    else
1653      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1654    fi || ac_status=$?
1655    cd "$ac_pwd" || { ac_status=$?; break; }
1656  done
1657fi
1658
1659test -n "$ac_init_help" && exit $ac_status
1660if $ac_init_version; then
1661  cat <<\_ACEOF
1662configure
1663generated by GNU Autoconf 2.69
1664
1665Copyright (C) 2012 Free Software Foundation, Inc.
1666This configure script is free software; the Free Software Foundation
1667gives unlimited permission to copy, distribute and modify it.
1668_ACEOF
1669  exit
1670fi
1671
1672## ------------------------ ##
1673## Autoconf initialization. ##
1674## ------------------------ ##
1675
1676# ac_fn_c_try_compile LINENO
1677# --------------------------
1678# Try to compile conftest.$ac_ext, and return whether this succeeded.
1679ac_fn_c_try_compile ()
1680{
1681  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682  rm -f conftest.$ac_objext
1683  if { { ac_try="$ac_compile"
1684case "(($ac_try" in
1685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686  *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690  (eval "$ac_compile") 2>conftest.err
1691  ac_status=$?
1692  if test -s conftest.err; then
1693    grep -v '^ *+' conftest.err >conftest.er1
1694    cat conftest.er1 >&5
1695    mv -f conftest.er1 conftest.err
1696  fi
1697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698  test $ac_status = 0; } && {
1699	 test -z "$ac_c_werror_flag" ||
1700	 test ! -s conftest.err
1701       } && test -s conftest.$ac_objext; then :
1702  ac_retval=0
1703else
1704  $as_echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707	ac_retval=1
1708fi
1709  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710  as_fn_set_status $ac_retval
1711
1712} # ac_fn_c_try_compile
1713
1714# ac_fn_c_try_cpp LINENO
1715# ----------------------
1716# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1717ac_fn_c_try_cpp ()
1718{
1719  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720  if { { ac_try="$ac_cpp conftest.$ac_ext"
1721case "(($ac_try" in
1722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723  *) ac_try_echo=$ac_try;;
1724esac
1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726$as_echo "$ac_try_echo"; } >&5
1727  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1728  ac_status=$?
1729  if test -s conftest.err; then
1730    grep -v '^ *+' conftest.err >conftest.er1
1731    cat conftest.er1 >&5
1732    mv -f conftest.er1 conftest.err
1733  fi
1734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735  test $ac_status = 0; } > conftest.i && {
1736	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1737	 test ! -s conftest.err
1738       }; then :
1739  ac_retval=0
1740else
1741  $as_echo "$as_me: failed program was:" >&5
1742sed 's/^/| /' conftest.$ac_ext >&5
1743
1744    ac_retval=1
1745fi
1746  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747  as_fn_set_status $ac_retval
1748
1749} # ac_fn_c_try_cpp
1750
1751# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1752# -------------------------------------------------------
1753# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1754# the include files in INCLUDES and setting the cache variable VAR
1755# accordingly.
1756ac_fn_c_check_header_mongrel ()
1757{
1758  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759  if eval \${$3+:} false; then :
1760  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761$as_echo_n "checking for $2... " >&6; }
1762if eval \${$3+:} false; then :
1763  $as_echo_n "(cached) " >&6
1764fi
1765eval ac_res=\$$3
1766	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767$as_echo "$ac_res" >&6; }
1768else
1769  # Is the header compilable?
1770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1771$as_echo_n "checking $2 usability... " >&6; }
1772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773/* end confdefs.h.  */
1774$4
1775#include <$2>
1776_ACEOF
1777if ac_fn_c_try_compile "$LINENO"; then :
1778  ac_header_compiler=yes
1779else
1780  ac_header_compiler=no
1781fi
1782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1784$as_echo "$ac_header_compiler" >&6; }
1785
1786# Is the header present?
1787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1788$as_echo_n "checking $2 presence... " >&6; }
1789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790/* end confdefs.h.  */
1791#include <$2>
1792_ACEOF
1793if ac_fn_c_try_cpp "$LINENO"; then :
1794  ac_header_preproc=yes
1795else
1796  ac_header_preproc=no
1797fi
1798rm -f conftest.err conftest.i conftest.$ac_ext
1799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1800$as_echo "$ac_header_preproc" >&6; }
1801
1802# So?  What about this header?
1803case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1804  yes:no: )
1805    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1806$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1807    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1808$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1809    ;;
1810  no:yes:* )
1811    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1812$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1813    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1814$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1815    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1816$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1817    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1818$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1819    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1820$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1821    ;;
1822esac
1823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824$as_echo_n "checking for $2... " >&6; }
1825if eval \${$3+:} false; then :
1826  $as_echo_n "(cached) " >&6
1827else
1828  eval "$3=\$ac_header_compiler"
1829fi
1830eval ac_res=\$$3
1831	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832$as_echo "$ac_res" >&6; }
1833fi
1834  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835
1836} # ac_fn_c_check_header_mongrel
1837
1838# ac_fn_c_try_run LINENO
1839# ----------------------
1840# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1841# that executables *can* be run.
1842ac_fn_c_try_run ()
1843{
1844  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845  if { { ac_try="$ac_link"
1846case "(($ac_try" in
1847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848  *) ac_try_echo=$ac_try;;
1849esac
1850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851$as_echo "$ac_try_echo"; } >&5
1852  (eval "$ac_link") 2>&5
1853  ac_status=$?
1854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1856  { { case "(($ac_try" in
1857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858  *) ac_try_echo=$ac_try;;
1859esac
1860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861$as_echo "$ac_try_echo"; } >&5
1862  (eval "$ac_try") 2>&5
1863  ac_status=$?
1864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865  test $ac_status = 0; }; }; then :
1866  ac_retval=0
1867else
1868  $as_echo "$as_me: program exited with status $ac_status" >&5
1869       $as_echo "$as_me: failed program was:" >&5
1870sed 's/^/| /' conftest.$ac_ext >&5
1871
1872       ac_retval=$ac_status
1873fi
1874  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876  as_fn_set_status $ac_retval
1877
1878} # ac_fn_c_try_run
1879
1880# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1881# -------------------------------------------------------
1882# Tests whether HEADER exists and can be compiled using the include files in
1883# INCLUDES, setting the cache variable VAR accordingly.
1884ac_fn_c_check_header_compile ()
1885{
1886  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888$as_echo_n "checking for $2... " >&6; }
1889if eval \${$3+:} false; then :
1890  $as_echo_n "(cached) " >&6
1891else
1892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893/* end confdefs.h.  */
1894$4
1895#include <$2>
1896_ACEOF
1897if ac_fn_c_try_compile "$LINENO"; then :
1898  eval "$3=yes"
1899else
1900  eval "$3=no"
1901fi
1902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903fi
1904eval ac_res=\$$3
1905	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906$as_echo "$ac_res" >&6; }
1907  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908
1909} # ac_fn_c_check_header_compile
1910
1911# ac_fn_c_try_link LINENO
1912# -----------------------
1913# Try to link conftest.$ac_ext, and return whether this succeeded.
1914ac_fn_c_try_link ()
1915{
1916  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917  rm -f conftest.$ac_objext conftest$ac_exeext
1918  if { { ac_try="$ac_link"
1919case "(($ac_try" in
1920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921  *) ac_try_echo=$ac_try;;
1922esac
1923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924$as_echo "$ac_try_echo"; } >&5
1925  (eval "$ac_link") 2>conftest.err
1926  ac_status=$?
1927  if test -s conftest.err; then
1928    grep -v '^ *+' conftest.err >conftest.er1
1929    cat conftest.er1 >&5
1930    mv -f conftest.er1 conftest.err
1931  fi
1932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933  test $ac_status = 0; } && {
1934	 test -z "$ac_c_werror_flag" ||
1935	 test ! -s conftest.err
1936       } && test -s conftest$ac_exeext && {
1937	 test "$cross_compiling" = yes ||
1938	 test -x conftest$ac_exeext
1939       }; then :
1940  ac_retval=0
1941else
1942  $as_echo "$as_me: failed program was:" >&5
1943sed 's/^/| /' conftest.$ac_ext >&5
1944
1945	ac_retval=1
1946fi
1947  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1948  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1949  # interfere with the next link command; also delete a directory that is
1950  # left behind by Apple's compiler.  We do this before executing the actions.
1951  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1952  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953  as_fn_set_status $ac_retval
1954
1955} # ac_fn_c_try_link
1956
1957# ac_fn_c_check_func LINENO FUNC VAR
1958# ----------------------------------
1959# Tests whether FUNC exists, setting the cache variable VAR accordingly
1960ac_fn_c_check_func ()
1961{
1962  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964$as_echo_n "checking for $2... " >&6; }
1965if eval \${$3+:} false; then :
1966  $as_echo_n "(cached) " >&6
1967else
1968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969/* end confdefs.h.  */
1970/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1971   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1972#define $2 innocuous_$2
1973
1974/* System header to define __stub macros and hopefully few prototypes,
1975    which can conflict with char $2 (); below.
1976    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1977    <limits.h> exists even on freestanding compilers.  */
1978
1979#ifdef __STDC__
1980# include <limits.h>
1981#else
1982# include <assert.h>
1983#endif
1984
1985#undef $2
1986
1987/* Override any GCC internal prototype to avoid an error.
1988   Use char because int might match the return type of a GCC
1989   builtin and then its argument prototype would still apply.  */
1990#ifdef __cplusplus
1991extern "C"
1992#endif
1993char $2 ();
1994/* The GNU C library defines this for functions which it implements
1995    to always fail with ENOSYS.  Some functions are actually named
1996    something starting with __ and the normal name is an alias.  */
1997#if defined __stub_$2 || defined __stub___$2
1998choke me
1999#endif
2000
2001int
2002main ()
2003{
2004return $2 ();
2005  ;
2006  return 0;
2007}
2008_ACEOF
2009if ac_fn_c_try_link "$LINENO"; then :
2010  eval "$3=yes"
2011else
2012  eval "$3=no"
2013fi
2014rm -f core conftest.err conftest.$ac_objext \
2015    conftest$ac_exeext conftest.$ac_ext
2016fi
2017eval ac_res=\$$3
2018	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019$as_echo "$ac_res" >&6; }
2020  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021
2022} # ac_fn_c_check_func
2023
2024# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2025# -------------------------------------------
2026# Tests whether TYPE exists after having included INCLUDES, setting cache
2027# variable VAR accordingly.
2028ac_fn_c_check_type ()
2029{
2030  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032$as_echo_n "checking for $2... " >&6; }
2033if eval \${$3+:} false; then :
2034  $as_echo_n "(cached) " >&6
2035else
2036  eval "$3=no"
2037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038/* end confdefs.h.  */
2039$4
2040int
2041main ()
2042{
2043if (sizeof ($2))
2044	 return 0;
2045  ;
2046  return 0;
2047}
2048_ACEOF
2049if ac_fn_c_try_compile "$LINENO"; then :
2050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051/* end confdefs.h.  */
2052$4
2053int
2054main ()
2055{
2056if (sizeof (($2)))
2057	    return 0;
2058  ;
2059  return 0;
2060}
2061_ACEOF
2062if ac_fn_c_try_compile "$LINENO"; then :
2063
2064else
2065  eval "$3=yes"
2066fi
2067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068fi
2069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070fi
2071eval ac_res=\$$3
2072	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073$as_echo "$ac_res" >&6; }
2074  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075
2076} # ac_fn_c_check_type
2077
2078# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2079# --------------------------------------------
2080# Tries to find the compile-time value of EXPR in a program that includes
2081# INCLUDES, setting VAR accordingly. Returns whether the value could be
2082# computed
2083ac_fn_c_compute_int ()
2084{
2085  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086  if test "$cross_compiling" = yes; then
2087    # Depending upon the size, compute the lo and hi bounds.
2088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089/* end confdefs.h.  */
2090$4
2091int
2092main ()
2093{
2094static int test_array [1 - 2 * !(($2) >= 0)];
2095test_array [0] = 0;
2096return test_array [0];
2097
2098  ;
2099  return 0;
2100}
2101_ACEOF
2102if ac_fn_c_try_compile "$LINENO"; then :
2103  ac_lo=0 ac_mid=0
2104  while :; do
2105    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106/* end confdefs.h.  */
2107$4
2108int
2109main ()
2110{
2111static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2112test_array [0] = 0;
2113return test_array [0];
2114
2115  ;
2116  return 0;
2117}
2118_ACEOF
2119if ac_fn_c_try_compile "$LINENO"; then :
2120  ac_hi=$ac_mid; break
2121else
2122  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2123			if test $ac_lo -le $ac_mid; then
2124			  ac_lo= ac_hi=
2125			  break
2126			fi
2127			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2128fi
2129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130  done
2131else
2132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133/* end confdefs.h.  */
2134$4
2135int
2136main ()
2137{
2138static int test_array [1 - 2 * !(($2) < 0)];
2139test_array [0] = 0;
2140return test_array [0];
2141
2142  ;
2143  return 0;
2144}
2145_ACEOF
2146if ac_fn_c_try_compile "$LINENO"; then :
2147  ac_hi=-1 ac_mid=-1
2148  while :; do
2149    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150/* end confdefs.h.  */
2151$4
2152int
2153main ()
2154{
2155static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2156test_array [0] = 0;
2157return test_array [0];
2158
2159  ;
2160  return 0;
2161}
2162_ACEOF
2163if ac_fn_c_try_compile "$LINENO"; then :
2164  ac_lo=$ac_mid; break
2165else
2166  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2167			if test $ac_mid -le $ac_hi; then
2168			  ac_lo= ac_hi=
2169			  break
2170			fi
2171			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2172fi
2173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174  done
2175else
2176  ac_lo= ac_hi=
2177fi
2178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179fi
2180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181# Binary search between lo and hi bounds.
2182while test "x$ac_lo" != "x$ac_hi"; do
2183  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185/* end confdefs.h.  */
2186$4
2187int
2188main ()
2189{
2190static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2191test_array [0] = 0;
2192return test_array [0];
2193
2194  ;
2195  return 0;
2196}
2197_ACEOF
2198if ac_fn_c_try_compile "$LINENO"; then :
2199  ac_hi=$ac_mid
2200else
2201  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2202fi
2203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204done
2205case $ac_lo in #((
2206?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2207'') ac_retval=1 ;;
2208esac
2209  else
2210    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211/* end confdefs.h.  */
2212$4
2213static long int longval () { return $2; }
2214static unsigned long int ulongval () { return $2; }
2215#include <stdio.h>
2216#include <stdlib.h>
2217int
2218main ()
2219{
2220
2221  FILE *f = fopen ("conftest.val", "w");
2222  if (! f)
2223    return 1;
2224  if (($2) < 0)
2225    {
2226      long int i = longval ();
2227      if (i != ($2))
2228	return 1;
2229      fprintf (f, "%ld", i);
2230    }
2231  else
2232    {
2233      unsigned long int i = ulongval ();
2234      if (i != ($2))
2235	return 1;
2236      fprintf (f, "%lu", i);
2237    }
2238  /* Do not output a trailing newline, as this causes \r\n confusion
2239     on some platforms.  */
2240  return ferror (f) || fclose (f) != 0;
2241
2242  ;
2243  return 0;
2244}
2245_ACEOF
2246if ac_fn_c_try_run "$LINENO"; then :
2247  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2248else
2249  ac_retval=1
2250fi
2251rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2252  conftest.$ac_objext conftest.beam conftest.$ac_ext
2253rm -f conftest.val
2254
2255  fi
2256  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257  as_fn_set_status $ac_retval
2258
2259} # ac_fn_c_compute_int
2260
2261# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2262# ---------------------------------------------
2263# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2264# accordingly.
2265ac_fn_c_check_decl ()
2266{
2267  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268  as_decl_name=`echo $2|sed 's/ *(.*//'`
2269  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2270  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2271$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2272if eval \${$3+:} false; then :
2273  $as_echo_n "(cached) " >&6
2274else
2275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276/* end confdefs.h.  */
2277$4
2278int
2279main ()
2280{
2281#ifndef $as_decl_name
2282#ifdef __cplusplus
2283  (void) $as_decl_use;
2284#else
2285  (void) $as_decl_name;
2286#endif
2287#endif
2288
2289  ;
2290  return 0;
2291}
2292_ACEOF
2293if ac_fn_c_try_compile "$LINENO"; then :
2294  eval "$3=yes"
2295else
2296  eval "$3=no"
2297fi
2298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299fi
2300eval ac_res=\$$3
2301	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302$as_echo "$ac_res" >&6; }
2303  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2304
2305} # ac_fn_c_check_decl
2306
2307# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2308# ----------------------------------------------------
2309# Tries to find if the field MEMBER exists in type AGGR, after including
2310# INCLUDES, setting cache variable VAR accordingly.
2311ac_fn_c_check_member ()
2312{
2313  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2315$as_echo_n "checking for $2.$3... " >&6; }
2316if eval \${$4+:} false; then :
2317  $as_echo_n "(cached) " >&6
2318else
2319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320/* end confdefs.h.  */
2321$5
2322int
2323main ()
2324{
2325static $2 ac_aggr;
2326if (ac_aggr.$3)
2327return 0;
2328  ;
2329  return 0;
2330}
2331_ACEOF
2332if ac_fn_c_try_compile "$LINENO"; then :
2333  eval "$4=yes"
2334else
2335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336/* end confdefs.h.  */
2337$5
2338int
2339main ()
2340{
2341static $2 ac_aggr;
2342if (sizeof ac_aggr.$3)
2343return 0;
2344  ;
2345  return 0;
2346}
2347_ACEOF
2348if ac_fn_c_try_compile "$LINENO"; then :
2349  eval "$4=yes"
2350else
2351  eval "$4=no"
2352fi
2353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354fi
2355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356fi
2357eval ac_res=\$$4
2358	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2359$as_echo "$ac_res" >&6; }
2360  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2361
2362} # ac_fn_c_check_member
2363cat >config.log <<_ACEOF
2364This file contains any messages produced by compilers while
2365running configure, to aid debugging if configure makes a mistake.
2366
2367It was created by $as_me, which was
2368generated by GNU Autoconf 2.69.  Invocation command line was
2369
2370  $ $0 $@
2371
2372_ACEOF
2373exec 5>>config.log
2374{
2375cat <<_ASUNAME
2376## --------- ##
2377## Platform. ##
2378## --------- ##
2379
2380hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2381uname -m = `(uname -m) 2>/dev/null || echo unknown`
2382uname -r = `(uname -r) 2>/dev/null || echo unknown`
2383uname -s = `(uname -s) 2>/dev/null || echo unknown`
2384uname -v = `(uname -v) 2>/dev/null || echo unknown`
2385
2386/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2387/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2388
2389/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2390/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2391/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2392/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2393/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2394/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2395/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2396
2397_ASUNAME
2398
2399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400for as_dir in $PATH
2401do
2402  IFS=$as_save_IFS
2403  test -z "$as_dir" && as_dir=.
2404    $as_echo "PATH: $as_dir"
2405  done
2406IFS=$as_save_IFS
2407
2408} >&5
2409
2410cat >&5 <<_ACEOF
2411
2412
2413## ----------- ##
2414## Core tests. ##
2415## ----------- ##
2416
2417_ACEOF
2418
2419
2420# Keep a trace of the command line.
2421# Strip out --no-create and --no-recursion so they do not pile up.
2422# Strip out --silent because we don't want to record it for future runs.
2423# Also quote any args containing shell meta-characters.
2424# Make two passes to allow for proper duplicate-argument suppression.
2425ac_configure_args=
2426ac_configure_args0=
2427ac_configure_args1=
2428ac_must_keep_next=false
2429for ac_pass in 1 2
2430do
2431  for ac_arg
2432  do
2433    case $ac_arg in
2434    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2435    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2436    | -silent | --silent | --silen | --sile | --sil)
2437      continue ;;
2438    *\'*)
2439      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2440    esac
2441    case $ac_pass in
2442    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2443    2)
2444      as_fn_append ac_configure_args1 " '$ac_arg'"
2445      if test $ac_must_keep_next = true; then
2446	ac_must_keep_next=false # Got value, back to normal.
2447      else
2448	case $ac_arg in
2449	  *=* | --config-cache | -C | -disable-* | --disable-* \
2450	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2451	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2452	  | -with-* | --with-* | -without-* | --without-* | --x)
2453	    case "$ac_configure_args0 " in
2454	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2455	    esac
2456	    ;;
2457	  -* ) ac_must_keep_next=true ;;
2458	esac
2459      fi
2460      as_fn_append ac_configure_args " '$ac_arg'"
2461      ;;
2462    esac
2463  done
2464done
2465{ ac_configure_args0=; unset ac_configure_args0;}
2466{ ac_configure_args1=; unset ac_configure_args1;}
2467
2468# When interrupted or exit'd, cleanup temporary files, and complete
2469# config.log.  We remove comments because anyway the quotes in there
2470# would cause problems or look ugly.
2471# WARNING: Use '\'' to represent an apostrophe within the trap.
2472# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2473trap 'exit_status=$?
2474  # Save into config.log some information that might help in debugging.
2475  {
2476    echo
2477
2478    $as_echo "## ---------------- ##
2479## Cache variables. ##
2480## ---------------- ##"
2481    echo
2482    # The following way of writing the cache mishandles newlines in values,
2483(
2484  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2485    eval ac_val=\$$ac_var
2486    case $ac_val in #(
2487    *${as_nl}*)
2488      case $ac_var in #(
2489      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2490$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2491      esac
2492      case $ac_var in #(
2493      _ | IFS | as_nl) ;; #(
2494      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2495      *) { eval $ac_var=; unset $ac_var;} ;;
2496      esac ;;
2497    esac
2498  done
2499  (set) 2>&1 |
2500    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2501    *${as_nl}ac_space=\ *)
2502      sed -n \
2503	"s/'\''/'\''\\\\'\'''\''/g;
2504	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2505      ;; #(
2506    *)
2507      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2508      ;;
2509    esac |
2510    sort
2511)
2512    echo
2513
2514    $as_echo "## ----------------- ##
2515## Output variables. ##
2516## ----------------- ##"
2517    echo
2518    for ac_var in $ac_subst_vars
2519    do
2520      eval ac_val=\$$ac_var
2521      case $ac_val in
2522      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2523      esac
2524      $as_echo "$ac_var='\''$ac_val'\''"
2525    done | sort
2526    echo
2527
2528    if test -n "$ac_subst_files"; then
2529      $as_echo "## ------------------- ##
2530## File substitutions. ##
2531## ------------------- ##"
2532      echo
2533      for ac_var in $ac_subst_files
2534      do
2535	eval ac_val=\$$ac_var
2536	case $ac_val in
2537	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2538	esac
2539	$as_echo "$ac_var='\''$ac_val'\''"
2540      done | sort
2541      echo
2542    fi
2543
2544    if test -s confdefs.h; then
2545      $as_echo "## ----------- ##
2546## confdefs.h. ##
2547## ----------- ##"
2548      echo
2549      cat confdefs.h
2550      echo
2551    fi
2552    test "$ac_signal" != 0 &&
2553      $as_echo "$as_me: caught signal $ac_signal"
2554    $as_echo "$as_me: exit $exit_status"
2555  } >&5
2556  rm -f core *.core core.conftest.* &&
2557    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2558    exit $exit_status
2559' 0
2560for ac_signal in 1 2 13 15; do
2561  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2562done
2563ac_signal=0
2564
2565# confdefs.h avoids OS command line length limits that DEFS can exceed.
2566rm -f -r conftest* confdefs.h
2567
2568$as_echo "/* confdefs.h */" > confdefs.h
2569
2570# Predefined preprocessor variables.
2571
2572cat >>confdefs.h <<_ACEOF
2573#define PACKAGE_NAME "$PACKAGE_NAME"
2574_ACEOF
2575
2576cat >>confdefs.h <<_ACEOF
2577#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2578_ACEOF
2579
2580cat >>confdefs.h <<_ACEOF
2581#define PACKAGE_VERSION "$PACKAGE_VERSION"
2582_ACEOF
2583
2584cat >>confdefs.h <<_ACEOF
2585#define PACKAGE_STRING "$PACKAGE_STRING"
2586_ACEOF
2587
2588cat >>confdefs.h <<_ACEOF
2589#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2590_ACEOF
2591
2592cat >>confdefs.h <<_ACEOF
2593#define PACKAGE_URL "$PACKAGE_URL"
2594_ACEOF
2595
2596
2597# Let the site file select an alternate cache file if it wants to.
2598# Prefer an explicitly selected file to automatically selected ones.
2599ac_site_file1=NONE
2600ac_site_file2=NONE
2601if test -n "$CONFIG_SITE"; then
2602  # We do not want a PATH search for config.site.
2603  case $CONFIG_SITE in #((
2604    -*)  ac_site_file1=./$CONFIG_SITE;;
2605    */*) ac_site_file1=$CONFIG_SITE;;
2606    *)   ac_site_file1=./$CONFIG_SITE;;
2607  esac
2608elif test "x$prefix" != xNONE; then
2609  ac_site_file1=$prefix/share/config.site
2610  ac_site_file2=$prefix/etc/config.site
2611else
2612  ac_site_file1=$ac_default_prefix/share/config.site
2613  ac_site_file2=$ac_default_prefix/etc/config.site
2614fi
2615for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2616do
2617  test "x$ac_site_file" = xNONE && continue
2618  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2619    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2620$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2621    sed 's/^/| /' "$ac_site_file" >&5
2622    . "$ac_site_file" \
2623      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2624$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2625as_fn_error $? "failed to load site script $ac_site_file
2626See \`config.log' for more details" "$LINENO" 5; }
2627  fi
2628done
2629
2630if test -r "$cache_file"; then
2631  # Some versions of bash will fail to source /dev/null (special files
2632  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2633  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2634    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2635$as_echo "$as_me: loading cache $cache_file" >&6;}
2636    case $cache_file in
2637      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2638      *)                      . "./$cache_file";;
2639    esac
2640  fi
2641else
2642  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2643$as_echo "$as_me: creating cache $cache_file" >&6;}
2644  >$cache_file
2645fi
2646
2647# Check that the precious variables saved in the cache have kept the same
2648# value.
2649ac_cache_corrupted=false
2650for ac_var in $ac_precious_vars; do
2651  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2652  eval ac_new_set=\$ac_env_${ac_var}_set
2653  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2654  eval ac_new_val=\$ac_env_${ac_var}_value
2655  case $ac_old_set,$ac_new_set in
2656    set,)
2657      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2658$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2659      ac_cache_corrupted=: ;;
2660    ,set)
2661      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2662$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2663      ac_cache_corrupted=: ;;
2664    ,);;
2665    *)
2666      if test "x$ac_old_val" != "x$ac_new_val"; then
2667	# differences in whitespace do not lead to failure.
2668	ac_old_val_w=`echo x $ac_old_val`
2669	ac_new_val_w=`echo x $ac_new_val`
2670	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2671	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2672$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2673	  ac_cache_corrupted=:
2674	else
2675	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2676$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2677	  eval $ac_var=\$ac_old_val
2678	fi
2679	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2680$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2681	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2682$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2683      fi;;
2684  esac
2685  # Pass precious variables to config.status.
2686  if test "$ac_new_set" = set; then
2687    case $ac_new_val in
2688    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2689    *) ac_arg=$ac_var=$ac_new_val ;;
2690    esac
2691    case " $ac_configure_args " in
2692      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2693      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2694    esac
2695  fi
2696done
2697if $ac_cache_corrupted; then
2698  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2699$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2700  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2701$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2702  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2703fi
2704## -------------------- ##
2705## Main body of script. ##
2706## -------------------- ##
2707
2708ac_ext=c
2709ac_cpp='$CPP $CPPFLAGS'
2710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2712ac_compiler_gnu=$ac_cv_c_compiler_gnu
2713
2714
2715ac_config_headers="$ac_config_headers include/arch/unix/apr_private.h"
2716
2717ac_aux_dir=
2718for ac_dir in build "$srcdir"/build; do
2719  if test -f "$ac_dir/install-sh"; then
2720    ac_aux_dir=$ac_dir
2721    ac_install_sh="$ac_aux_dir/install-sh -c"
2722    break
2723  elif test -f "$ac_dir/install.sh"; then
2724    ac_aux_dir=$ac_dir
2725    ac_install_sh="$ac_aux_dir/install.sh -c"
2726    break
2727  elif test -f "$ac_dir/shtool"; then
2728    ac_aux_dir=$ac_dir
2729    ac_install_sh="$ac_aux_dir/shtool install -c"
2730    break
2731  fi
2732done
2733if test -z "$ac_aux_dir"; then
2734  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2735fi
2736
2737# These three variables are undocumented and unsupported,
2738# and are intended to be withdrawn in a future Autoconf release.
2739# They can cause serious problems if a builder's source tree is in a directory
2740# whose full name contains unusual characters.
2741ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2742ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2743ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2744
2745
2746
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# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2902#
2903#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2904#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
2905#                 Foundation, Inc.
2906#   Written by Gordon Matzigkeit, 1996
2907#
2908# This file is free software; the Free Software Foundation gives
2909# unlimited permission to copy and/or distribute it, with or without
2910# modifications, as long as this notice is preserved.
2911
2912
2913
2914# serial 57 LT_INIT
2915
2916
2917# LT_PREREQ(VERSION)
2918# ------------------
2919# Complain and exit if this libtool version is less that VERSION.
2920
2921
2922
2923# _LT_CHECK_BUILDDIR
2924# ------------------
2925# Complain if the absolute build directory name contains unusual characters
2926
2927
2928
2929# LT_INIT([OPTIONS])
2930# ------------------
2931# LT_INIT
2932
2933# Old names:
2934# This is what autoupdate's m4 run will expand.  It fires
2935# the warning (with _au_warn_XXX), outputs it into the
2936# updated configure.ac (with AC_DIAGNOSE), and then outputs
2937# the replacement expansion.
2938
2939
2940# This is an auxiliary macro that is also run when
2941# autoupdate runs m4.  It simply calls m4_warning, but
2942# we need a wrapper so that each warning is emitted only
2943# once.  We break the quoting in m4_warning's argument in
2944# order to expand this macro's arguments, not AU_DEFUN's.
2945
2946
2947# Finally, this is the expansion that is picked up by
2948# autoconf.  It tells the user to run autoupdate, and
2949# then outputs the replacement expansion.  We do not care
2950# about autoupdate's warning because that contains
2951# information on what to do *after* running autoupdate.
2952
2953# This is what autoupdate's m4 run will expand.  It fires
2954# the warning (with _au_warn_XXX), outputs it into the
2955# updated configure.ac (with AC_DIAGNOSE), and then outputs
2956# the replacement expansion.
2957
2958
2959# This is an auxiliary macro that is also run when
2960# autoupdate runs m4.  It simply calls m4_warning, but
2961# we need a wrapper so that each warning is emitted only
2962# once.  We break the quoting in m4_warning's argument in
2963# order to expand this macro's arguments, not AU_DEFUN's.
2964
2965
2966# Finally, this is the expansion that is picked up by
2967# autoconf.  It tells the user to run autoupdate, and
2968# then outputs the replacement expansion.  We do not care
2969# about autoupdate's warning because that contains
2970# information on what to do *after* running autoupdate.
2971
2972
2973
2974# _LT_CC_BASENAME(CC)
2975# -------------------
2976# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
2977
2978
2979
2980# _LT_FILEUTILS_DEFAULTS
2981# ----------------------
2982# It is okay to use these file commands and assume they have been set
2983# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2984# _LT_FILEUTILS_DEFAULTS
2985
2986
2987# _LT_SETUP
2988# ---------
2989# _LT_SETUP
2990
2991
2992# _LT_PREPARE_SED_QUOTE_VARS
2993# --------------------------
2994# Define a few sed substitution that help us do robust quoting.
2995
2996
2997# _LT_PROG_LTMAIN
2998# ---------------
2999# Note that this code is called both from `configure', and `config.status'
3000# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
3001# `config.status' has no value for ac_aux_dir unless we are using Automake,
3002# so we pass a copy along to make sure it has a sensible value anyway.
3003# _LT_PROG_LTMAIN
3004
3005
3006## ------------------------------------- ##
3007## Accumulate code for creating libtool. ##
3008## ------------------------------------- ##
3009
3010# So that we can recreate a full libtool script including additional
3011# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
3012# in macros and then make a single call at the end using the `libtool'
3013# label.
3014
3015
3016# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
3017# ----------------------------------------
3018# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
3019
3020
3021# Initialize.
3022
3023
3024
3025# _LT_CONFIG_LIBTOOL([COMMANDS])
3026# ------------------------------
3027# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
3028
3029
3030# Initialize.
3031
3032
3033
3034# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
3035# -----------------------------------------------------
3036
3037
3038
3039# _LT_FORMAT_COMMENT([COMMENT])
3040# -----------------------------
3041# Add leading comment marks to the start of each line, and a trailing
3042# full-stop to the whole comment if one is not present already.
3043
3044
3045
3046
3047## ------------------------ ##
3048## FIXME: Eliminate VARNAME ##
3049## ------------------------ ##
3050
3051
3052# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
3053# -------------------------------------------------------------------
3054# CONFIGNAME is the name given to the value in the libtool script.
3055# VARNAME is the (base) name used in the configure script.
3056# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
3057# VARNAME.  Any other value will be used directly.
3058
3059
3060
3061# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
3062# --------------------------------------------------------
3063
3064
3065
3066# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
3067# ------------------------------------------------
3068
3069
3070
3071# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
3072# ---------------------------------------------------------
3073
3074
3075
3076# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
3077# --------------------------------------------------
3078
3079
3080
3081# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
3082# ---------------------------------------------------
3083
3084
3085
3086# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
3087# ---------------------------------------------------
3088
3089
3090
3091
3092# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
3093# ------------------------------------------------
3094
3095
3096
3097
3098# _LT_CONFIG_STATUS_DECLARE([VARNAME])
3099# ------------------------------------
3100# Quote a variable value, and forward it to `config.status' so that its
3101# declaration there will have the same value as in `configure'.  VARNAME
3102# must have a single quote delimited value for this to work.
3103
3104
3105
3106# _LT_CONFIG_STATUS_DECLARATIONS
3107# ------------------------------
3108# We delimit libtool config variables with single quotes, so when
3109# we write them to config.status, we have to be sure to quote all
3110# embedded single quotes properly.  In configure, this macro expands
3111# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
3112#
3113#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
3114
3115
3116
3117# _LT_LIBTOOL_TAGS
3118# ----------------
3119# Output comment and list of tags supported by the script
3120
3121
3122
3123# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
3124# -----------------------------------
3125# Extract the dictionary values for VARNAME (optionally with TAG) and
3126# expand to a commented shell variable setting:
3127#
3128#    # Some comment about what VAR is for.
3129#    visible_name=$lt_internal_name
3130
3131
3132
3133# _LT_LIBTOOL_CONFIG_VARS
3134# -----------------------
3135# Produce commented declarations of non-tagged libtool config variables
3136# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
3137# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
3138# section) are produced by _LT_LIBTOOL_TAG_VARS.
3139
3140
3141
3142# _LT_LIBTOOL_TAG_VARS(TAG)
3143# -------------------------
3144
3145
3146
3147# _LT_TAGVAR(VARNAME, [TAGNAME])
3148# ------------------------------
3149
3150
3151
3152# _LT_CONFIG_COMMANDS
3153# -------------------
3154# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
3155# variables for single and double quote escaping we saved from calls
3156# to _LT_DECL, we can put quote escaped variables declarations
3157# into `config.status', and then the shell code to quote escape them in
3158# for loops in `config.status'.  Finally, any additional code accumulated
3159# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
3160#_LT_CONFIG_COMMANDS
3161
3162
3163# Initialize.
3164
3165
3166# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
3167# ------------------------------------
3168# Generate a child script FILE with all initialization necessary to
3169# reuse the environment learned by the parent script, and make the
3170# file executable.  If COMMENT is supplied, it is inserted after the
3171# `#!' sequence but before initialization text begins.  After this
3172# macro, additional text can be appended to FILE to form the body of
3173# the child script.  The macro ends with non-zero status if the
3174# file could not be fully written (such as if the disk is full).
3175# _LT_GENERATED_FILE_INIT
3176
3177# LT_OUTPUT
3178# ---------
3179# This macro allows early generation of the libtool script (before
3180# AC_OUTPUT is called), incase it is used in configure for compilation
3181# tests.
3182# LT_OUTPUT
3183
3184
3185# _LT_CONFIG(TAG)
3186# ---------------
3187# If TAG is the built-in tag, create an initial libtool script with a
3188# default configuration from the untagged config vars.  Otherwise add code
3189# to config.status for appending the configuration named by TAG from the
3190# matching tagged config vars.
3191# _LT_CONFIG
3192
3193
3194# LT_SUPPORTED_TAG(TAG)
3195# ---------------------
3196# Trace this macro to discover what tags are supported by the libtool
3197# --tag option, using:
3198#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
3199
3200
3201
3202# C support is built-in for now
3203
3204
3205
3206
3207# LT_LANG(LANG)
3208# -------------
3209# Enable libtool support for the given language if not already enabled.
3210# LT_LANG
3211
3212
3213# _LT_LANG(LANGNAME)
3214# ------------------
3215# _LT_LANG
3216
3217
3218#m4_ifndef
3219
3220
3221# _LT_LANG_DEFAULT_CONFIG
3222# -----------------------
3223# _LT_LANG_DEFAULT_CONFIG
3224
3225# Obsolete macros:
3226# This is what autoupdate's m4 run will expand.  It fires
3227# the warning (with _au_warn_XXX), outputs it into the
3228# updated configure.ac (with AC_DIAGNOSE), and then outputs
3229# the replacement expansion.
3230
3231
3232# This is an auxiliary macro that is also run when
3233# autoupdate runs m4.  It simply calls m4_warning, but
3234# we need a wrapper so that each warning is emitted only
3235# once.  We break the quoting in m4_warning's argument in
3236# order to expand this macro's arguments, not AU_DEFUN's.
3237
3238
3239# Finally, this is the expansion that is picked up by
3240# autoconf.  It tells the user to run autoupdate, and
3241# then outputs the replacement expansion.  We do not care
3242# about autoupdate's warning because that contains
3243# information on what to do *after* running autoupdate.
3244
3245# This is what autoupdate's m4 run will expand.  It fires
3246# the warning (with _au_warn_XXX), outputs it into the
3247# updated configure.ac (with AC_DIAGNOSE), and then outputs
3248# the replacement expansion.
3249
3250
3251# This is an auxiliary macro that is also run when
3252# autoupdate runs m4.  It simply calls m4_warning, but
3253# we need a wrapper so that each warning is emitted only
3254# once.  We break the quoting in m4_warning's argument in
3255# order to expand this macro's arguments, not AU_DEFUN's.
3256
3257
3258# Finally, this is the expansion that is picked up by
3259# autoconf.  It tells the user to run autoupdate, and
3260# then outputs the replacement expansion.  We do not care
3261# about autoupdate's warning because that contains
3262# information on what to do *after* running autoupdate.
3263
3264# This is what autoupdate's m4 run will expand.  It fires
3265# the warning (with _au_warn_XXX), outputs it into the
3266# updated configure.ac (with AC_DIAGNOSE), and then outputs
3267# the replacement expansion.
3268
3269
3270# This is an auxiliary macro that is also run when
3271# autoupdate runs m4.  It simply calls m4_warning, but
3272# we need a wrapper so that each warning is emitted only
3273# once.  We break the quoting in m4_warning's argument in
3274# order to expand this macro's arguments, not AU_DEFUN's.
3275
3276
3277# Finally, this is the expansion that is picked up by
3278# autoconf.  It tells the user to run autoupdate, and
3279# then outputs the replacement expansion.  We do not care
3280# about autoupdate's warning because that contains
3281# information on what to do *after* running autoupdate.
3282
3283# This is what autoupdate's m4 run will expand.  It fires
3284# the warning (with _au_warn_XXX), outputs it into the
3285# updated configure.ac (with AC_DIAGNOSE), and then outputs
3286# the replacement expansion.
3287
3288
3289# This is an auxiliary macro that is also run when
3290# autoupdate runs m4.  It simply calls m4_warning, but
3291# we need a wrapper so that each warning is emitted only
3292# once.  We break the quoting in m4_warning's argument in
3293# order to expand this macro's arguments, not AU_DEFUN's.
3294
3295
3296# Finally, this is the expansion that is picked up by
3297# autoconf.  It tells the user to run autoupdate, and
3298# then outputs the replacement expansion.  We do not care
3299# about autoupdate's warning because that contains
3300# information on what to do *after* running autoupdate.
3301
3302# This is what autoupdate's m4 run will expand.  It fires
3303# the warning (with _au_warn_XXX), outputs it into the
3304# updated configure.ac (with AC_DIAGNOSE), and then outputs
3305# the replacement expansion.
3306
3307
3308# This is an auxiliary macro that is also run when
3309# autoupdate runs m4.  It simply calls m4_warning, but
3310# we need a wrapper so that each warning is emitted only
3311# once.  We break the quoting in m4_warning's argument in
3312# order to expand this macro's arguments, not AU_DEFUN's.
3313
3314
3315# Finally, this is the expansion that is picked up by
3316# autoconf.  It tells the user to run autoupdate, and
3317# then outputs the replacement expansion.  We do not care
3318# about autoupdate's warning because that contains
3319# information on what to do *after* running autoupdate.
3320
3321
3322
3323# _LT_TAG_COMPILER
3324# ----------------
3325# _LT_TAG_COMPILER
3326
3327
3328# _LT_COMPILER_BOILERPLATE
3329# ------------------------
3330# Check for compiler boilerplate output or warnings with
3331# the simple compiler test code.
3332# _LT_COMPILER_BOILERPLATE
3333
3334
3335# _LT_LINKER_BOILERPLATE
3336# ----------------------
3337# Check for linker boilerplate output or warnings with
3338# the simple link test code.
3339# _LT_LINKER_BOILERPLATE
3340
3341# _LT_REQUIRED_DARWIN_CHECKS
3342# -------------------------
3343
3344
3345
3346# _LT_DARWIN_LINKER_FEATURES([TAG])
3347# ---------------------------------
3348# Checks for linker and compiler features on darwin
3349
3350
3351# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
3352# ----------------------------------
3353# Links a minimal program and checks the executable
3354# for the system default hardcoded library path. In most cases,
3355# this is /usr/lib:/lib, but when the MPI compilers are used
3356# the location of the communication and MPI libs are included too.
3357# If we don't find anything, use the default library path according
3358# to the aix ld manual.
3359# Store the results from the different compilers for each TAGNAME.
3360# Allow to override them for all tags through lt_cv_aix_libpath.
3361# _LT_SYS_MODULE_PATH_AIX
3362
3363
3364# _LT_SHELL_INIT(ARG)
3365# -------------------
3366# _LT_SHELL_INIT
3367
3368
3369
3370# _LT_PROG_ECHO_BACKSLASH
3371# -----------------------
3372# Find how we can fake an echo command that does not interpret backslash.
3373# In particular, with Autoconf 2.60 or later we add some code to the start
3374# of the generated configure script which will find a shell with a builtin
3375# printf (which we can use as an echo command).
3376# _LT_PROG_ECHO_BACKSLASH
3377
3378
3379# _LT_WITH_SYSROOT
3380# ----------------
3381
3382
3383# _LT_ENABLE_LOCK
3384# ---------------
3385# _LT_ENABLE_LOCK
3386
3387
3388# _LT_PROG_AR
3389# -----------
3390# _LT_PROG_AR
3391
3392
3393# _LT_CMD_OLD_ARCHIVE
3394# -------------------
3395# _LT_CMD_OLD_ARCHIVE
3396
3397
3398# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3399#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3400# ----------------------------------------------------------------
3401# Check whether the given compiler option works
3402# _LT_COMPILER_OPTION
3403
3404# Old name:
3405# This is what autoupdate's m4 run will expand.  It fires
3406# the warning (with _au_warn_XXX), outputs it into the
3407# updated configure.ac (with AC_DIAGNOSE), and then outputs
3408# the replacement expansion.
3409
3410
3411# This is an auxiliary macro that is also run when
3412# autoupdate runs m4.  It simply calls m4_warning, but
3413# we need a wrapper so that each warning is emitted only
3414# once.  We break the quoting in m4_warning's argument in
3415# order to expand this macro's arguments, not AU_DEFUN's.
3416
3417
3418# Finally, this is the expansion that is picked up by
3419# autoconf.  It tells the user to run autoupdate, and
3420# then outputs the replacement expansion.  We do not care
3421# about autoupdate's warning because that contains
3422# information on what to do *after* running autoupdate.
3423
3424
3425
3426# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3427#                  [ACTION-SUCCESS], [ACTION-FAILURE])
3428# ----------------------------------------------------
3429# Check whether the given linker option works
3430# _LT_LINKER_OPTION
3431
3432# Old name:
3433# This is what autoupdate's m4 run will expand.  It fires
3434# the warning (with _au_warn_XXX), outputs it into the
3435# updated configure.ac (with AC_DIAGNOSE), and then outputs
3436# the replacement expansion.
3437
3438
3439# This is an auxiliary macro that is also run when
3440# autoupdate runs m4.  It simply calls m4_warning, but
3441# we need a wrapper so that each warning is emitted only
3442# once.  We break the quoting in m4_warning's argument in
3443# order to expand this macro's arguments, not AU_DEFUN's.
3444
3445
3446# Finally, this is the expansion that is picked up by
3447# autoconf.  It tells the user to run autoupdate, and
3448# then outputs the replacement expansion.  We do not care
3449# about autoupdate's warning because that contains
3450# information on what to do *after* running autoupdate.
3451
3452
3453
3454# LT_CMD_MAX_LEN
3455#---------------
3456# LT_CMD_MAX_LEN
3457
3458# Old name:
3459# This is what autoupdate's m4 run will expand.  It fires
3460# the warning (with _au_warn_XXX), outputs it into the
3461# updated configure.ac (with AC_DIAGNOSE), and then outputs
3462# the replacement expansion.
3463
3464
3465# This is an auxiliary macro that is also run when
3466# autoupdate runs m4.  It simply calls m4_warning, but
3467# we need a wrapper so that each warning is emitted only
3468# once.  We break the quoting in m4_warning's argument in
3469# order to expand this macro's arguments, not AU_DEFUN's.
3470
3471
3472# Finally, this is the expansion that is picked up by
3473# autoconf.  It tells the user to run autoupdate, and
3474# then outputs the replacement expansion.  We do not care
3475# about autoupdate's warning because that contains
3476# information on what to do *after* running autoupdate.
3477
3478
3479
3480# _LT_HEADER_DLFCN
3481# ----------------
3482# _LT_HEADER_DLFCN
3483
3484
3485# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3486#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3487# ----------------------------------------------------------------
3488# _LT_TRY_DLOPEN_SELF
3489
3490
3491# LT_SYS_DLOPEN_SELF
3492# ------------------
3493# LT_SYS_DLOPEN_SELF
3494
3495# Old name:
3496# This is what autoupdate's m4 run will expand.  It fires
3497# the warning (with _au_warn_XXX), outputs it into the
3498# updated configure.ac (with AC_DIAGNOSE), and then outputs
3499# the replacement expansion.
3500
3501
3502# This is an auxiliary macro that is also run when
3503# autoupdate runs m4.  It simply calls m4_warning, but
3504# we need a wrapper so that each warning is emitted only
3505# once.  We break the quoting in m4_warning's argument in
3506# order to expand this macro's arguments, not AU_DEFUN's.
3507
3508
3509# Finally, this is the expansion that is picked up by
3510# autoconf.  It tells the user to run autoupdate, and
3511# then outputs the replacement expansion.  We do not care
3512# about autoupdate's warning because that contains
3513# information on what to do *after* running autoupdate.
3514
3515
3516
3517# _LT_COMPILER_C_O([TAGNAME])
3518# ---------------------------
3519# Check to see if options -c and -o are simultaneously supported by compiler.
3520# This macro does not hard code the compiler like AC_PROG_CC_C_O.
3521# _LT_COMPILER_C_O
3522
3523
3524# _LT_COMPILER_FILE_LOCKS([TAGNAME])
3525# ----------------------------------
3526# Check to see if we can do hard links to lock some files if needed
3527# _LT_COMPILER_FILE_LOCKS
3528
3529
3530# _LT_CHECK_OBJDIR
3531# ----------------
3532# _LT_CHECK_OBJDIR
3533
3534
3535# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3536# --------------------------------------
3537# Check hardcoding attributes.
3538# _LT_LINKER_HARDCODE_LIBPATH
3539
3540
3541# _LT_CMD_STRIPLIB
3542# ----------------
3543# _LT_CMD_STRIPLIB
3544
3545
3546# _LT_SYS_DYNAMIC_LINKER([TAG])
3547# -----------------------------
3548# PORTME Fill in your ld.so characteristics
3549# _LT_SYS_DYNAMIC_LINKER
3550
3551
3552# _LT_PATH_TOOL_PREFIX(TOOL)
3553# --------------------------
3554# find a file program which can recognize shared library
3555# _LT_PATH_TOOL_PREFIX
3556
3557# Old name:
3558# This is what autoupdate's m4 run will expand.  It fires
3559# the warning (with _au_warn_XXX), outputs it into the
3560# updated configure.ac (with AC_DIAGNOSE), and then outputs
3561# the replacement expansion.
3562
3563
3564# This is an auxiliary macro that is also run when
3565# autoupdate runs m4.  It simply calls m4_warning, but
3566# we need a wrapper so that each warning is emitted only
3567# once.  We break the quoting in m4_warning's argument in
3568# order to expand this macro's arguments, not AU_DEFUN's.
3569
3570
3571# Finally, this is the expansion that is picked up by
3572# autoconf.  It tells the user to run autoupdate, and
3573# then outputs the replacement expansion.  We do not care
3574# about autoupdate's warning because that contains
3575# information on what to do *after* running autoupdate.
3576
3577
3578
3579# _LT_PATH_MAGIC
3580# --------------
3581# find a file program which can recognize a shared library
3582# _LT_PATH_MAGIC
3583
3584
3585# LT_PATH_LD
3586# ----------
3587# find the pathname to the GNU or non-GNU linker
3588# LT_PATH_LD
3589
3590# Old names:
3591# This is what autoupdate's m4 run will expand.  It fires
3592# the warning (with _au_warn_XXX), outputs it into the
3593# updated configure.ac (with AC_DIAGNOSE), and then outputs
3594# the replacement expansion.
3595
3596
3597# This is an auxiliary macro that is also run when
3598# autoupdate runs m4.  It simply calls m4_warning, but
3599# we need a wrapper so that each warning is emitted only
3600# once.  We break the quoting in m4_warning's argument in
3601# order to expand this macro's arguments, not AU_DEFUN's.
3602
3603
3604# Finally, this is the expansion that is picked up by
3605# autoconf.  It tells the user to run autoupdate, and
3606# then outputs the replacement expansion.  We do not care
3607# about autoupdate's warning because that contains
3608# information on what to do *after* running autoupdate.
3609
3610# This is what autoupdate's m4 run will expand.  It fires
3611# the warning (with _au_warn_XXX), outputs it into the
3612# updated configure.ac (with AC_DIAGNOSE), and then outputs
3613# the replacement expansion.
3614
3615
3616# This is an auxiliary macro that is also run when
3617# autoupdate runs m4.  It simply calls m4_warning, but
3618# we need a wrapper so that each warning is emitted only
3619# once.  We break the quoting in m4_warning's argument in
3620# order to expand this macro's arguments, not AU_DEFUN's.
3621
3622
3623# Finally, this is the expansion that is picked up by
3624# autoconf.  It tells the user to run autoupdate, and
3625# then outputs the replacement expansion.  We do not care
3626# about autoupdate's warning because that contains
3627# information on what to do *after* running autoupdate.
3628
3629
3630
3631# _LT_PATH_LD_GNU
3632#- --------------
3633# _LT_PATH_LD_GNU
3634
3635
3636# _LT_CMD_RELOAD
3637# --------------
3638# find reload flag for linker
3639#   -- PORTME Some linkers may need a different reload flag.
3640# _LT_CMD_RELOAD
3641
3642
3643# _LT_CHECK_MAGIC_METHOD
3644# ----------------------
3645# how to check for library dependencies
3646#  -- PORTME fill in with the dynamic library characteristics
3647# _LT_CHECK_MAGIC_METHOD
3648
3649
3650# LT_PATH_NM
3651# ----------
3652# find the pathname to a BSD- or MS-compatible name lister
3653# LT_PATH_NM
3654
3655# Old names:
3656# This is what autoupdate's m4 run will expand.  It fires
3657# the warning (with _au_warn_XXX), outputs it into the
3658# updated configure.ac (with AC_DIAGNOSE), and then outputs
3659# the replacement expansion.
3660
3661
3662# This is an auxiliary macro that is also run when
3663# autoupdate runs m4.  It simply calls m4_warning, but
3664# we need a wrapper so that each warning is emitted only
3665# once.  We break the quoting in m4_warning's argument in
3666# order to expand this macro's arguments, not AU_DEFUN's.
3667
3668
3669# Finally, this is the expansion that is picked up by
3670# autoconf.  It tells the user to run autoupdate, and
3671# then outputs the replacement expansion.  We do not care
3672# about autoupdate's warning because that contains
3673# information on what to do *after* running autoupdate.
3674
3675# This is what autoupdate's m4 run will expand.  It fires
3676# the warning (with _au_warn_XXX), outputs it into the
3677# updated configure.ac (with AC_DIAGNOSE), and then outputs
3678# the replacement expansion.
3679
3680
3681# This is an auxiliary macro that is also run when
3682# autoupdate runs m4.  It simply calls m4_warning, but
3683# we need a wrapper so that each warning is emitted only
3684# once.  We break the quoting in m4_warning's argument in
3685# order to expand this macro's arguments, not AU_DEFUN's.
3686
3687
3688# Finally, this is the expansion that is picked up by
3689# autoconf.  It tells the user to run autoupdate, and
3690# then outputs the replacement expansion.  We do not care
3691# about autoupdate's warning because that contains
3692# information on what to do *after* running autoupdate.
3693
3694
3695# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3696# --------------------------------
3697# how to determine the name of the shared library
3698# associated with a specific link library.
3699#  -- PORTME fill in with the dynamic library characteristics
3700# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3701
3702
3703# _LT_PATH_MANIFEST_TOOL
3704# ----------------------
3705# locate the manifest tool
3706# _LT_PATH_MANIFEST_TOOL
3707
3708
3709# LT_LIB_M
3710# --------
3711# check for math library
3712# LT_LIB_M
3713
3714# Old name:
3715# This is what autoupdate's m4 run will expand.  It fires
3716# the warning (with _au_warn_XXX), outputs it into the
3717# updated configure.ac (with AC_DIAGNOSE), and then outputs
3718# the replacement expansion.
3719
3720
3721# This is an auxiliary macro that is also run when
3722# autoupdate runs m4.  It simply calls m4_warning, but
3723# we need a wrapper so that each warning is emitted only
3724# once.  We break the quoting in m4_warning's argument in
3725# order to expand this macro's arguments, not AU_DEFUN's.
3726
3727
3728# Finally, this is the expansion that is picked up by
3729# autoconf.  It tells the user to run autoupdate, and
3730# then outputs the replacement expansion.  We do not care
3731# about autoupdate's warning because that contains
3732# information on what to do *after* running autoupdate.
3733
3734
3735
3736# _LT_COMPILER_NO_RTTI([TAGNAME])
3737# -------------------------------
3738# _LT_COMPILER_NO_RTTI
3739
3740
3741# _LT_CMD_GLOBAL_SYMBOLS
3742# ----------------------
3743 # _LT_CMD_GLOBAL_SYMBOLS
3744
3745
3746# _LT_COMPILER_PIC([TAGNAME])
3747# ---------------------------
3748# _LT_COMPILER_PIC
3749
3750
3751# _LT_LINKER_SHLIBS([TAGNAME])
3752# ----------------------------
3753# See if the linker supports building shared libraries.
3754# _LT_LINKER_SHLIBS
3755
3756
3757# _LT_LANG_C_CONFIG([TAG])
3758# ------------------------
3759# Ensure that the configuration variables for a C compiler are suitably
3760# defined.  These variables are subsequently used by _LT_CONFIG to write
3761# the compiler configuration to `libtool'.
3762# _LT_LANG_C_CONFIG
3763
3764
3765# _LT_LANG_CXX_CONFIG([TAG])
3766# --------------------------
3767# Ensure that the configuration variables for a C++ compiler are suitably
3768# defined.  These variables are subsequently used by _LT_CONFIG to write
3769# the compiler configuration to `libtool'.
3770# _LT_LANG_CXX_CONFIG
3771
3772
3773# _LT_FUNC_STRIPNAME_CNF
3774# ----------------------
3775# func_stripname_cnf prefix suffix name
3776# strip PREFIX and SUFFIX off of NAME.
3777# PREFIX and SUFFIX must not contain globbing or regex special
3778# characters, hashes, percent signs, but SUFFIX may contain a leading
3779# dot (in which case that matches only a dot).
3780#
3781# This function is identical to the (non-XSI) version of func_stripname,
3782# except this one can be used by m4 code that may be executed by configure,
3783# rather than the libtool script.
3784# _LT_FUNC_STRIPNAME_CNF
3785
3786# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3787# ---------------------------------
3788# Figure out "hidden" library dependencies from verbose
3789# compiler output when linking a shared library.
3790# Parse the compiler output and extract the necessary
3791# objects, libraries and library flags.
3792# _LT_SYS_HIDDEN_LIBDEPS
3793
3794
3795# _LT_LANG_F77_CONFIG([TAG])
3796# --------------------------
3797# Ensure that the configuration variables for a Fortran 77 compiler are
3798# suitably defined.  These variables are subsequently used by _LT_CONFIG
3799# to write the compiler configuration to `libtool'.
3800# _LT_LANG_F77_CONFIG
3801
3802
3803# _LT_LANG_FC_CONFIG([TAG])
3804# -------------------------
3805# Ensure that the configuration variables for a Fortran compiler are
3806# suitably defined.  These variables are subsequently used by _LT_CONFIG
3807# to write the compiler configuration to `libtool'.
3808# _LT_LANG_FC_CONFIG
3809
3810
3811# _LT_LANG_GCJ_CONFIG([TAG])
3812# --------------------------
3813# Ensure that the configuration variables for the GNU Java Compiler compiler
3814# are suitably defined.  These variables are subsequently used by _LT_CONFIG
3815# to write the compiler configuration to `libtool'.
3816# _LT_LANG_GCJ_CONFIG
3817
3818
3819# _LT_LANG_GO_CONFIG([TAG])
3820# --------------------------
3821# Ensure that the configuration variables for the GNU Go compiler
3822# are suitably defined.  These variables are subsequently used by _LT_CONFIG
3823# to write the compiler configuration to `libtool'.
3824# _LT_LANG_GO_CONFIG
3825
3826
3827# _LT_LANG_RC_CONFIG([TAG])
3828# -------------------------
3829# Ensure that the configuration variables for the Windows resource compiler
3830# are suitably defined.  These variables are subsequently used by _LT_CONFIG
3831# to write the compiler configuration to `libtool'.
3832# _LT_LANG_RC_CONFIG
3833
3834
3835# LT_PROG_GCJ
3836# -----------
3837
3838
3839# Old name:
3840# This is what autoupdate's m4 run will expand.  It fires
3841# the warning (with _au_warn_XXX), outputs it into the
3842# updated configure.ac (with AC_DIAGNOSE), and then outputs
3843# the replacement expansion.
3844
3845
3846# This is an auxiliary macro that is also run when
3847# autoupdate runs m4.  It simply calls m4_warning, but
3848# we need a wrapper so that each warning is emitted only
3849# once.  We break the quoting in m4_warning's argument in
3850# order to expand this macro's arguments, not AU_DEFUN's.
3851
3852
3853# Finally, this is the expansion that is picked up by
3854# autoconf.  It tells the user to run autoupdate, and
3855# then outputs the replacement expansion.  We do not care
3856# about autoupdate's warning because that contains
3857# information on what to do *after* running autoupdate.
3858
3859
3860
3861# LT_PROG_GO
3862# ----------
3863
3864
3865
3866# LT_PROG_RC
3867# ----------
3868
3869
3870# Old name:
3871# This is what autoupdate's m4 run will expand.  It fires
3872# the warning (with _au_warn_XXX), outputs it into the
3873# updated configure.ac (with AC_DIAGNOSE), and then outputs
3874# the replacement expansion.
3875
3876
3877# This is an auxiliary macro that is also run when
3878# autoupdate runs m4.  It simply calls m4_warning, but
3879# we need a wrapper so that each warning is emitted only
3880# once.  We break the quoting in m4_warning's argument in
3881# order to expand this macro's arguments, not AU_DEFUN's.
3882
3883
3884# Finally, this is the expansion that is picked up by
3885# autoconf.  It tells the user to run autoupdate, and
3886# then outputs the replacement expansion.  We do not care
3887# about autoupdate's warning because that contains
3888# information on what to do *after* running autoupdate.
3889
3890
3891
3892# _LT_DECL_EGREP
3893# --------------
3894# If we don't have a new enough Autoconf to choose the best grep
3895# available, choose the one first in the user's PATH.
3896
3897
3898
3899# _LT_DECL_OBJDUMP
3900# --------------
3901# If we don't have a new enough Autoconf to choose the best objdump
3902# available, choose the one first in the user's PATH.
3903
3904
3905# _LT_DECL_DLLTOOL
3906# ----------------
3907# Ensure DLLTOOL variable is set.
3908
3909
3910# _LT_DECL_SED
3911# ------------
3912# Check for a fully-functional sed program, that truncates
3913# as few characters as possible.  Prefer GNU sed if found.
3914# _LT_DECL_SED
3915
3916#m4_ifndef
3917
3918# Old name:
3919# This is what autoupdate's m4 run will expand.  It fires
3920# the warning (with _au_warn_XXX), outputs it into the
3921# updated configure.ac (with AC_DIAGNOSE), and then outputs
3922# the replacement expansion.
3923
3924
3925# This is an auxiliary macro that is also run when
3926# autoupdate runs m4.  It simply calls m4_warning, but
3927# we need a wrapper so that each warning is emitted only
3928# once.  We break the quoting in m4_warning's argument in
3929# order to expand this macro's arguments, not AU_DEFUN's.
3930
3931
3932# Finally, this is the expansion that is picked up by
3933# autoconf.  It tells the user to run autoupdate, and
3934# then outputs the replacement expansion.  We do not care
3935# about autoupdate's warning because that contains
3936# information on what to do *after* running autoupdate.
3937
3938
3939
3940# _LT_CHECK_SHELL_FEATURES
3941# ------------------------
3942# Find out whether the shell is Bourne or XSI compatible,
3943# or has some other useful features.
3944# _LT_CHECK_SHELL_FEATURES
3945
3946
3947# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
3948# ------------------------------------------------------
3949# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
3950# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
3951
3952
3953
3954# _LT_PROG_REPLACE_SHELLFNS
3955# -------------------------
3956# Replace existing portable implementations of several shell functions with
3957# equivalent extended shell implementations where those features are available..
3958
3959
3960# _LT_PATH_CONVERSION_FUNCTIONS
3961# -----------------------------
3962# Determine which file name conversion functions should be used by
3963# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
3964# for certain cross-compile configurations and native mingw.
3965# _LT_PATH_CONVERSION_FUNCTIONS
3966
3967# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
3968#
3969# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3970# Written by Gary V. Vaughan, 2004
3971#
3972# This file is free software; the Free Software Foundation gives
3973# unlimited permission to copy and/or distribute it, with or without
3974# modifications, as long as this notice is preserved.
3975
3976# serial 6 ltsugar.m4
3977
3978# This is to help aclocal find these macros, as it can't see m4_define.
3979
3980
3981
3982# lt_join(SEP, ARG1, [ARG2...])
3983# -----------------------------
3984# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3985# associated separator.
3986# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3987# versions in m4sugar had bugs.
3988
3989
3990
3991
3992# lt_car(LIST)
3993# lt_cdr(LIST)
3994# ------------
3995# Manipulate m4 lists.
3996# These macros are necessary as long as will still need to support
3997# Autoconf-2.59 which quotes differently.
3998
3999
4000
4001
4002
4003# lt_append(MACRO-NAME, STRING, [SEPARATOR])
4004# ------------------------------------------
4005# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
4006# Note that neither SEPARATOR nor STRING are expanded; they are appended
4007# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
4008# No SEPARATOR is output if MACRO-NAME was previously undefined (different
4009# than defined and empty).
4010#
4011# This macro is needed until we can rely on Autoconf 2.62, since earlier
4012# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
4013
4014
4015
4016
4017# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
4018# ----------------------------------------------------------
4019# Produce a SEP delimited list of all paired combinations of elements of
4020# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
4021# has the form PREFIXmINFIXSUFFIXn.
4022# Needed until we can rely on m4_combine added in Autoconf 2.62.
4023
4024
4025
4026# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
4027# -----------------------------------------------------------------------
4028# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
4029# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
4030
4031
4032
4033# lt_dict_add(DICT, KEY, VALUE)
4034# -----------------------------
4035
4036
4037
4038# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
4039# --------------------------------------------
4040
4041
4042
4043# lt_dict_fetch(DICT, KEY, [SUBKEY])
4044# ----------------------------------
4045
4046
4047
4048# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
4049# -----------------------------------------------------------------
4050
4051
4052
4053# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
4054# --------------------------------------------------------------
4055
4056
4057
4058# Helper functions for option handling.                    -*- Autoconf -*-
4059#
4060#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
4061#   Inc.
4062#   Written by Gary V. Vaughan, 2004
4063#
4064# This file is free software; the Free Software Foundation gives
4065# unlimited permission to copy and/or distribute it, with or without
4066# modifications, as long as this notice is preserved.
4067
4068# serial 7 ltoptions.m4
4069
4070# This is to help aclocal find these macros, as it can't see m4_define.
4071
4072
4073
4074# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
4075# ------------------------------------------
4076
4077
4078
4079# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
4080# ---------------------------------------
4081# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
4082# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
4083# saved as a flag.
4084
4085
4086
4087# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
4088# ------------------------------------------------------------
4089# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
4090
4091
4092
4093# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
4094# -------------------------------------------------------
4095# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
4096# are set.
4097
4098
4099
4100# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
4101# ----------------------------------------
4102# OPTION-LIST is a space-separated list of Libtool options associated
4103# with MACRO-NAME.  If any OPTION has a matching handler declared with
4104# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
4105# the unknown option and exit.
4106# _LT_SET_OPTIONS
4107
4108
4109## --------------------------------- ##
4110## Macros to handle LT_INIT options. ##
4111## --------------------------------- ##
4112
4113# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
4114# -----------------------------------------
4115
4116
4117
4118# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
4119# -----------------------------------------------
4120# LT_OPTION_DEFINE
4121
4122
4123# dlopen
4124# ------
4125
4126
4127# This is what autoupdate's m4 run will expand.  It fires
4128# the warning (with _au_warn_XXX), outputs it into the
4129# updated configure.ac (with AC_DIAGNOSE), and then outputs
4130# the replacement expansion.
4131
4132
4133# This is an auxiliary macro that is also run when
4134# autoupdate runs m4.  It simply calls m4_warning, but
4135# we need a wrapper so that each warning is emitted only
4136# once.  We break the quoting in m4_warning's argument in
4137# order to expand this macro's arguments, not AU_DEFUN's.
4138
4139
4140# Finally, this is the expansion that is picked up by
4141# autoconf.  It tells the user to run autoupdate, and
4142# then outputs the replacement expansion.  We do not care
4143# about autoupdate's warning because that contains
4144# information on what to do *after* running autoupdate.
4145
4146
4147
4148
4149# win32-dll
4150# ---------
4151# Declare package support for building win32 dll's.
4152# win32-dll
4153
4154# This is what autoupdate's m4 run will expand.  It fires
4155# the warning (with _au_warn_XXX), outputs it into the
4156# updated configure.ac (with AC_DIAGNOSE), and then outputs
4157# the replacement expansion.
4158
4159
4160# This is an auxiliary macro that is also run when
4161# autoupdate runs m4.  It simply calls m4_warning, but
4162# we need a wrapper so that each warning is emitted only
4163# once.  We break the quoting in m4_warning's argument in
4164# order to expand this macro's arguments, not AU_DEFUN's.
4165
4166
4167# Finally, this is the expansion that is picked up by
4168# autoconf.  It tells the user to run autoupdate, and
4169# then outputs the replacement expansion.  We do not care
4170# about autoupdate's warning because that contains
4171# information on what to do *after* running autoupdate.
4172
4173
4174
4175
4176# _LT_ENABLE_SHARED([DEFAULT])
4177# ----------------------------
4178# implement the --enable-shared flag, and supports the `shared' and
4179# `disable-shared' LT_INIT options.
4180# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
4181# _LT_ENABLE_SHARED
4182
4183
4184
4185
4186# Old names:
4187
4188
4189
4190
4191# This is what autoupdate's m4 run will expand.  It fires
4192# the warning (with _au_warn_XXX), outputs it into the
4193# updated configure.ac (with AC_DIAGNOSE), and then outputs
4194# the replacement expansion.
4195
4196
4197# This is an auxiliary macro that is also run when
4198# autoupdate runs m4.  It simply calls m4_warning, but
4199# we need a wrapper so that each warning is emitted only
4200# once.  We break the quoting in m4_warning's argument in
4201# order to expand this macro's arguments, not AU_DEFUN's.
4202
4203
4204# Finally, this is the expansion that is picked up by
4205# autoconf.  It tells the user to run autoupdate, and
4206# then outputs the replacement expansion.  We do not care
4207# about autoupdate's warning because that contains
4208# information on what to do *after* running autoupdate.
4209
4210# This is what autoupdate's m4 run will expand.  It fires
4211# the warning (with _au_warn_XXX), outputs it into the
4212# updated configure.ac (with AC_DIAGNOSE), and then outputs
4213# the replacement expansion.
4214
4215
4216# This is an auxiliary macro that is also run when
4217# autoupdate runs m4.  It simply calls m4_warning, but
4218# we need a wrapper so that each warning is emitted only
4219# once.  We break the quoting in m4_warning's argument in
4220# order to expand this macro's arguments, not AU_DEFUN's.
4221
4222
4223# Finally, this is the expansion that is picked up by
4224# autoconf.  It tells the user to run autoupdate, and
4225# then outputs the replacement expansion.  We do not care
4226# about autoupdate's warning because that contains
4227# information on what to do *after* running autoupdate.
4228
4229
4230
4231
4232
4233# _LT_ENABLE_STATIC([DEFAULT])
4234# ----------------------------
4235# implement the --enable-static flag, and support the `static' and
4236# `disable-static' LT_INIT options.
4237# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
4238# _LT_ENABLE_STATIC
4239
4240
4241
4242
4243# Old names:
4244
4245
4246
4247
4248# This is what autoupdate's m4 run will expand.  It fires
4249# the warning (with _au_warn_XXX), outputs it into the
4250# updated configure.ac (with AC_DIAGNOSE), and then outputs
4251# the replacement expansion.
4252
4253
4254# This is an auxiliary macro that is also run when
4255# autoupdate runs m4.  It simply calls m4_warning, but
4256# we need a wrapper so that each warning is emitted only
4257# once.  We break the quoting in m4_warning's argument in
4258# order to expand this macro's arguments, not AU_DEFUN's.
4259
4260
4261# Finally, this is the expansion that is picked up by
4262# autoconf.  It tells the user to run autoupdate, and
4263# then outputs the replacement expansion.  We do not care
4264# about autoupdate's warning because that contains
4265# information on what to do *after* running autoupdate.
4266
4267# This is what autoupdate's m4 run will expand.  It fires
4268# the warning (with _au_warn_XXX), outputs it into the
4269# updated configure.ac (with AC_DIAGNOSE), and then outputs
4270# the replacement expansion.
4271
4272
4273# This is an auxiliary macro that is also run when
4274# autoupdate runs m4.  It simply calls m4_warning, but
4275# we need a wrapper so that each warning is emitted only
4276# once.  We break the quoting in m4_warning's argument in
4277# order to expand this macro's arguments, not AU_DEFUN's.
4278
4279
4280# Finally, this is the expansion that is picked up by
4281# autoconf.  It tells the user to run autoupdate, and
4282# then outputs the replacement expansion.  We do not care
4283# about autoupdate's warning because that contains
4284# information on what to do *after* running autoupdate.
4285
4286
4287
4288
4289
4290# _LT_ENABLE_FAST_INSTALL([DEFAULT])
4291# ----------------------------------
4292# implement the --enable-fast-install flag, and support the `fast-install'
4293# and `disable-fast-install' LT_INIT options.
4294# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
4295# _LT_ENABLE_FAST_INSTALL
4296
4297
4298
4299
4300# Old names:
4301# This is what autoupdate's m4 run will expand.  It fires
4302# the warning (with _au_warn_XXX), outputs it into the
4303# updated configure.ac (with AC_DIAGNOSE), and then outputs
4304# the replacement expansion.
4305
4306
4307# This is an auxiliary macro that is also run when
4308# autoupdate runs m4.  It simply calls m4_warning, but
4309# we need a wrapper so that each warning is emitted only
4310# once.  We break the quoting in m4_warning's argument in
4311# order to expand this macro's arguments, not AU_DEFUN's.
4312
4313
4314# Finally, this is the expansion that is picked up by
4315# autoconf.  It tells the user to run autoupdate, and
4316# then outputs the replacement expansion.  We do not care
4317# about autoupdate's warning because that contains
4318# information on what to do *after* running autoupdate.
4319
4320
4321# This is what autoupdate's m4 run will expand.  It fires
4322# the warning (with _au_warn_XXX), outputs it into the
4323# updated configure.ac (with AC_DIAGNOSE), and then outputs
4324# the replacement expansion.
4325
4326
4327# This is an auxiliary macro that is also run when
4328# autoupdate runs m4.  It simply calls m4_warning, but
4329# we need a wrapper so that each warning is emitted only
4330# once.  We break the quoting in m4_warning's argument in
4331# order to expand this macro's arguments, not AU_DEFUN's.
4332
4333
4334# Finally, this is the expansion that is picked up by
4335# autoconf.  It tells the user to run autoupdate, and
4336# then outputs the replacement expansion.  We do not care
4337# about autoupdate's warning because that contains
4338# information on what to do *after* running autoupdate.
4339
4340
4341
4342
4343# _LT_WITH_PIC([MODE])
4344# --------------------
4345# implement the --with-pic flag, and support the `pic-only' and `no-pic'
4346# LT_INIT options.
4347# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
4348# _LT_WITH_PIC
4349
4350
4351
4352
4353# Old name:
4354# This is what autoupdate's m4 run will expand.  It fires
4355# the warning (with _au_warn_XXX), outputs it into the
4356# updated configure.ac (with AC_DIAGNOSE), and then outputs
4357# the replacement expansion.
4358
4359
4360# This is an auxiliary macro that is also run when
4361# autoupdate runs m4.  It simply calls m4_warning, but
4362# we need a wrapper so that each warning is emitted only
4363# once.  We break the quoting in m4_warning's argument in
4364# order to expand this macro's arguments, not AU_DEFUN's.
4365
4366
4367# Finally, this is the expansion that is picked up by
4368# autoconf.  It tells the user to run autoupdate, and
4369# then outputs the replacement expansion.  We do not care
4370# about autoupdate's warning because that contains
4371# information on what to do *after* running autoupdate.
4372
4373
4374
4375## ----------------- ##
4376## LTDL_INIT Options ##
4377## ----------------- ##
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388# ltversion.m4 -- version numbers			-*- Autoconf -*-
4389#
4390#   Copyright (C) 2004 Free Software Foundation, Inc.
4391#   Written by Scott James Remnant, 2004
4392#
4393# This file is free software; the Free Software Foundation gives
4394# unlimited permission to copy and/or distribute it, with or without
4395# modifications, as long as this notice is preserved.
4396
4397# @configure_input@
4398
4399# serial 3337 ltversion.m4
4400# This file is part of GNU Libtool
4401
4402
4403
4404
4405
4406
4407# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
4408#
4409#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
4410#   Written by Scott James Remnant, 2004.
4411#
4412# This file is free software; the Free Software Foundation gives
4413# unlimited permission to copy and/or distribute it, with or without
4414# modifications, as long as this notice is preserved.
4415
4416# serial 5 lt~obsolete.m4
4417
4418# These exist entirely to fool aclocal when bootstrapping libtool.
4419#
4420# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
4421# which have later been changed to m4_define as they aren't part of the
4422# exported API, or moved to Autoconf or Automake where they belong.
4423#
4424# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
4425# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
4426# using a macro with the same name in our local m4/libtool.m4 it'll
4427# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
4428# and doesn't know about Autoconf macros at all.)
4429#
4430# So we provide this file, which has a silly filename so it's always
4431# included after everything else.  This provides aclocal with the
4432# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
4433# because those macros already exist, or will be overwritten later.
4434# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
4435#
4436# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
4437# Yes, that means every name once taken will need to remain here until
4438# we give up compatibility with versions before 1.7, at which point
4439# we need to keep only those names which we still refer to.
4440
4441# This is to help aclocal find these macros, as it can't see m4_define.
4442
4443
4444
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  apr_ste_save_CPPFLAGS="$CPPFLAGS"
4513
4514
4515  apr_ste_save_CFLAGS="$CFLAGS"
4516
4517
4518  apr_ste_save_LDFLAGS="$LDFLAGS"
4519
4520
4521  apr_ste_save_LIBS="$LIBS"
4522
4523
4524  apr_ste_save_INCLUDES="$INCLUDES"
4525
4526
4527
4528  rm -f config.nice
4529  cat >config.nice<<EOF
4530#! /bin/sh
4531#
4532# Created by configure
4533
4534EOF
4535  if test -n "$CC"; then
4536    echo "CC=\"$CC\"; export CC" >> config.nice
4537  fi
4538  if test -n "$CFLAGS"; then
4539    echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
4540  fi
4541  if test -n "$CPPFLAGS"; then
4542    echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
4543  fi
4544  if test -n "$LDFLAGS"; then
4545    echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
4546  fi
4547  if test -n "$LTFLAGS"; then
4548    echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
4549  fi
4550  if test -n "$LIBS"; then
4551    echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
4552  fi
4553  if test -n "$INCLUDES"; then
4554    echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
4555  fi
4556  if test -n "$NOTEST_CFLAGS"; then
4557    echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
4558  fi
4559  if test -n "$NOTEST_CPPFLAGS"; then
4560    echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
4561  fi
4562  if test -n "$NOTEST_LDFLAGS"; then
4563    echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
4564  fi
4565  if test -n "$NOTEST_LIBS"; then
4566    echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
4567  fi
4568
4569  # Retrieve command-line arguments.
4570  eval "set x $0 $ac_configure_args"
4571  shift
4572
4573  for arg
4574  do
4575
4576ap_last=
4577ap_cur="$arg"
4578while test "x${ap_cur}" != "x${ap_last}";
4579do
4580  ap_last="${ap_cur}"
4581  ap_cur=`eval "echo ${ap_cur}"`
4582done
4583arg="${ap_cur}"
4584
4585    echo "\"$arg\" \\" >> config.nice
4586  done
4587  echo '"$@"' >> config.nice
4588  chmod +x config.nice
4589
4590
4591# Make sure we can run config.sub.
4592$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4593  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4594
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4596$as_echo_n "checking build system type... " >&6; }
4597if ${ac_cv_build+:} false; then :
4598  $as_echo_n "(cached) " >&6
4599else
4600  ac_build_alias=$build_alias
4601test "x$ac_build_alias" = x &&
4602  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4603test "x$ac_build_alias" = x &&
4604  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4605ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4606  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4607
4608fi
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4610$as_echo "$ac_cv_build" >&6; }
4611case $ac_cv_build in
4612*-*-*) ;;
4613*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4614esac
4615build=$ac_cv_build
4616ac_save_IFS=$IFS; IFS='-'
4617set x $ac_cv_build
4618shift
4619build_cpu=$1
4620build_vendor=$2
4621shift; shift
4622# Remember, the first character of IFS is used to create $*,
4623# except with old shells:
4624build_os=$*
4625IFS=$ac_save_IFS
4626case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4627
4628
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4630$as_echo_n "checking host system type... " >&6; }
4631if ${ac_cv_host+:} false; then :
4632  $as_echo_n "(cached) " >&6
4633else
4634  if test "x$host_alias" = x; then
4635  ac_cv_host=$ac_cv_build
4636else
4637  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4638    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4639fi
4640
4641fi
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4643$as_echo "$ac_cv_host" >&6; }
4644case $ac_cv_host in
4645*-*-*) ;;
4646*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4647esac
4648host=$ac_cv_host
4649ac_save_IFS=$IFS; IFS='-'
4650set x $ac_cv_host
4651shift
4652host_cpu=$1
4653host_vendor=$2
4654shift; shift
4655# Remember, the first character of IFS is used to create $*,
4656# except with old shells:
4657host_os=$*
4658IFS=$ac_save_IFS
4659case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4660
4661
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4663$as_echo_n "checking target system type... " >&6; }
4664if ${ac_cv_target+:} false; then :
4665  $as_echo_n "(cached) " >&6
4666else
4667  if test "x$target_alias" = x; then
4668  ac_cv_target=$ac_cv_host
4669else
4670  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4671    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4672fi
4673
4674fi
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4676$as_echo "$ac_cv_target" >&6; }
4677case $ac_cv_target in
4678*-*-*) ;;
4679*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4680esac
4681target=$ac_cv_target
4682ac_save_IFS=$IFS; IFS='-'
4683set x $ac_cv_target
4684shift
4685target_cpu=$1
4686target_vendor=$2
4687shift; shift
4688# Remember, the first character of IFS is used to create $*,
4689# except with old shells:
4690target_os=$*
4691IFS=$ac_save_IFS
4692case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4693
4694
4695# The aliases save the names the user supplied, while $host etc.
4696# will get canonicalized.
4697test -n "$target_alias" &&
4698  test "$program_prefix$program_suffix$program_transform_name" = \
4699    NONENONEs,x,x, &&
4700  program_prefix=${target_alias}-
4701
4702echo "Configuring APR library"
4703echo "Platform: $host"
4704
4705
4706
4707# Absolute source/build directory
4708apr_srcdir=`(cd $srcdir && pwd)`
4709apr_builddir=`pwd`
4710
4711
4712
4713if test "$apr_builddir" != "$apr_srcdir"; then
4714  USE_VPATH=1
4715  APR_CONFIG_LOCATION=build
4716else
4717  APR_CONFIG_LOCATION=source
4718fi
4719
4720
4721
4722# Libtool might need this symbol -- it must point to the location of
4723# the generated libtool script (not necessarily the "top" build dir).
4724#
4725top_builddir="$apr_builddir"
4726
4727
4728# Directory containing apr build macros, helpers, and make rules
4729# NOTE: make rules (apr_rules.mk) will be in the builddir for vpath
4730#
4731apr_buildout=$apr_builddir/build
4732apr_builders=$apr_srcdir/build
4733
4734
4735MKDIR=$apr_builders/mkdir.sh
4736
4737
4738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkdir -p" >&5
4739$as_echo_n "checking for working mkdir -p... " >&6; }
4740if ${ac_cv_mkdir_p+:} false; then :
4741  $as_echo_n "(cached) " >&6
4742else
4743
4744    test -d conftestdir && rm -rf conftestdir
4745    mkdir -p conftestdir/somedir >/dev/null 2>&1
4746    if test -d conftestdir/somedir; then
4747      ac_cv_mkdir_p=yes
4748    else
4749      ac_cv_mkdir_p=no
4750    fi
4751    rm -rf conftestdir
4752
4753fi
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p" >&5
4755$as_echo "$ac_cv_mkdir_p" >&6; }
4756  if test "$ac_cv_mkdir_p" = "yes"; then
4757      mkdir_p="mkdir -p"
4758  else
4759      mkdir_p="$apr_builders/mkdir.sh"
4760  fi
4761
4762
4763# get our version information
4764get_version="$apr_builders/get-version.sh"
4765version_hdr="$apr_srcdir/include/apr_version.h"
4766APR_MAJOR_VERSION="`$get_version major $version_hdr APR`"
4767APR_DOTTED_VERSION="`$get_version all $version_hdr APR`"
4768
4769
4770
4771
4772echo "APR Version: ${APR_DOTTED_VERSION}"
4773
4774
4775# Check whether --enable-layout was given.
4776if test "${enable_layout+set}" = set; then :
4777  enableval=$enable_layout;
4778  LAYOUT=$enableval
4779
4780fi
4781
4782
4783if test -z "$LAYOUT"; then
4784  LAYOUT="apr"
4785fi
4786
4787  if test ! -f $srcdir/config.layout; then
4788    echo "** Error: Layout file $srcdir/config.layout not found"
4789    echo "** Error: Cannot use undefined layout '$LAYOUT'"
4790    exit 1
4791  fi
4792  # Catch layout names including a slash which will otherwise
4793  # confuse the heck out of the sed script.
4794  case $LAYOUT in
4795  */*)
4796    echo "** Error: $LAYOUT is not a valid layout name"
4797    exit 1 ;;
4798  esac
4799  pldconf=./config.pld
4800
4801  sed -e "1s/[ 	]*<[lL]ayout[ 	]*$LAYOUT[ 	]*>[ 	]*//;1t" \
4802      -e "1,/[ 	]*<[lL]ayout[ 	]*$LAYOUT[ 	]*>[ 	]*/d" \
4803      -e '/[ 	]*<\/Layout>[ 	]*/,$d' \
4804      -e "s/^[ 	]*//g" \
4805      -e "s/:[ 	]*/=\'/g" \
4806      -e "s/[ 	]*$/'/g" \
4807      $srcdir/config.layout > $pldconf
4808  layout_name=$LAYOUT
4809  if test ! -s $pldconf; then
4810    echo "** Error: unable to find layout $layout_name"
4811    exit 1
4812  fi
4813  . $pldconf
4814  rm $pldconf
4815  for var in prefix exec_prefix bindir sbindir libexecdir mandir \
4816             sysconfdir datadir includedir localstatedir runtimedir \
4817             logfiledir libdir installbuilddir libsuffix ; do
4818    eval "val=\"\$$var\""
4819    case $val in
4820      *+)
4821        val=`echo $val | sed -e 's;\+$;;'`
4822        eval "$var=\"\$val\""
4823        autosuffix=yes
4824        ;;
4825      *)
4826        autosuffix=no
4827        ;;
4828    esac
4829    val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
4830    val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
4831    if test "$autosuffix" = "yes"; then
4832      if echo $val | grep apache >/dev/null; then
4833        addtarget=no
4834      else
4835        addtarget=yes
4836      fi
4837      if test "$addtarget" = "yes"; then
4838        val="$val/apache2"
4839      fi
4840    fi
4841    eval "$var='$val'"
4842  done
4843
4844
4845
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5
4847$as_echo_n "checking for chosen layout... " >&6; }
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $layout_name" >&5
4849$as_echo "$layout_name" >&6; }
4850
4851
4852ac_prev=
4853# Retrieve the command-line arguments.  The eval is needed because
4854# the arguments are quoted to preserve accuracy.
4855eval "set x $ac_configure_args"
4856shift
4857for ac_option
4858do
4859  # If the previous option needs an argument, assign it.
4860  if test -n "$ac_prev"; then
4861    eval "$ac_prev=\$ac_option"
4862    ac_prev=
4863    continue
4864  fi
4865
4866  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
4867
4868  case $ac_option in
4869
4870  -bindir | --bindir | --bindi | --bind | --bin | --bi)
4871    ac_prev=bindir ;;
4872  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
4873    bindir="$ac_optarg" ;;
4874
4875  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
4876    ac_prev=datadir ;;
4877  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
4878  | --da=*)
4879    datadir="$ac_optarg" ;;
4880
4881  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
4882  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
4883  | --exec | --exe | --ex)
4884    ac_prev=exec_prefix ;;
4885  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
4886  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
4887  | --exec=* | --exe=* | --ex=*)
4888    exec_prefix="$ac_optarg" ;;
4889
4890  -includedir | --includedir | --includedi | --included | --include \
4891  | --includ | --inclu | --incl | --inc)
4892    ac_prev=includedir ;;
4893  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
4894  | --includ=* | --inclu=* | --incl=* | --inc=*)
4895    includedir="$ac_optarg" ;;
4896
4897  -infodir | --infodir | --infodi | --infod | --info | --inf)
4898    ac_prev=infodir ;;
4899  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
4900    infodir="$ac_optarg" ;;
4901
4902  -libdir | --libdir | --libdi | --libd)
4903    ac_prev=libdir ;;
4904  -libdir=* | --libdir=* | --libdi=* | --libd=*)
4905    libdir="$ac_optarg" ;;
4906
4907  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
4908  | --libexe | --libex | --libe)
4909    ac_prev=libexecdir ;;
4910  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
4911  | --libexe=* | --libex=* | --libe=*)
4912    libexecdir="$ac_optarg" ;;
4913
4914  -localstatedir | --localstatedir | --localstatedi | --localstated \
4915  | --localstate | --localstat | --localsta | --localst \
4916  | --locals | --local | --loca | --loc | --lo)
4917    ac_prev=localstatedir ;;
4918  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
4919  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
4920  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
4921    localstatedir="$ac_optarg" ;;
4922
4923  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
4924    ac_prev=mandir ;;
4925  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
4926    mandir="$ac_optarg" ;;
4927
4928  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4929    ac_prev=prefix ;;
4930  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4931    prefix="$ac_optarg" ;;
4932
4933  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
4934    ac_prev=sbindir ;;
4935  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
4936  | --sbi=* | --sb=*)
4937    sbindir="$ac_optarg" ;;
4938
4939  -sharedstatedir | --sharedstatedir | --sharedstatedi \
4940  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
4941  | --sharedst | --shareds | --shared | --share | --shar \
4942  | --sha | --sh)
4943    ac_prev=sharedstatedir ;;
4944  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
4945  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
4946  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
4947  | --sha=* | --sh=*)
4948    sharedstatedir="$ac_optarg" ;;
4949
4950  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
4951  | --syscon | --sysco | --sysc | --sys | --sy)
4952    ac_prev=sysconfdir ;;
4953  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
4954  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
4955    sysconfdir="$ac_optarg" ;;
4956
4957  esac
4958done
4959
4960# Be sure to have absolute paths.
4961for ac_var in exec_prefix prefix
4962do
4963  eval ac_val=$`echo $ac_var`
4964  case $ac_val in
4965    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
4966    *)  as_fn_error $? "expected an absolute path for --$ac_var: $ac_val" "$LINENO" 5;;
4967  esac
4968done
4969
4970
4971
4972
4973case "$host" in
4974  *-apple-aux3*)
4975
4976  if test -z "$CC"; then
4977    test "x$silent" != "xyes" && echo "  setting CC to \"gcc\""
4978    CC="gcc"
4979  fi
4980
4981      ;;
4982  bs2000*-siemens-sysv*)
4983
4984  if test -z "$CC"; then
4985    test "x$silent" != "xyes" && echo "  setting CC to \"c89 -XLLML -XLLMK -XL -Kno_integer_overflow\""
4986    CC="c89 -XLLML -XLLMK -XL -Kno_integer_overflow"
4987  fi
4988
4989      ;;
4990  *convex-v11*)
4991
4992  if test -z "$CC"; then
4993    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
4994    CC="cc"
4995  fi
4996
4997      ;;
4998  *-ibm-os390)
4999
5000  if test -z "$CC"; then
5001    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
5002    CC="cc"
5003  fi
5004
5005      ;;
5006  *-ibm-as400)
5007
5008  if test -z "$CC"; then
5009    test "x$silent" != "xyes" && echo "  setting CC to \"icc\""
5010    CC="icc"
5011  fi
5012
5013      ;;
5014  *-isc4*)
5015
5016  if test -z "$CC"; then
5017    test "x$silent" != "xyes" && echo "  setting CC to \"gcc\""
5018    CC="gcc"
5019  fi
5020
5021      ;;
5022  m88k-*-CX/SX|CYBER)
5023
5024  if test -z "$CC"; then
5025    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
5026    CC="cc"
5027  fi
5028
5029      ;;
5030  *-next-openstep*)
5031
5032  if test -z "$CC"; then
5033    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
5034    CC="cc"
5035  fi
5036
5037      ;;
5038  *-qnx32)
5039
5040  if test -z "$CC"; then
5041    test "x$silent" != "xyes" && echo "  setting CC to \"cc -F\""
5042    CC="cc -F"
5043  fi
5044
5045      ;;
5046  *-tandem-oss)
5047
5048  if test -z "$CC"; then
5049    test "x$silent" != "xyes" && echo "  setting CC to \"c89\""
5050    CC="c89"
5051  fi
5052
5053      ;;
5054  TPF)
5055
5056  if test -z "$CC"; then
5057    test "x$silent" != "xyes" && echo "  setting CC to \"c89\""
5058    CC="c89"
5059  fi
5060
5061      ;;
5062esac
5063
5064
5065ac_ext=c
5066ac_cpp='$CPP $CPPFLAGS'
5067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070if test -n "$ac_tool_prefix"; then
5071  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5072set dummy ${ac_tool_prefix}gcc; ac_word=$2
5073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074$as_echo_n "checking for $ac_word... " >&6; }
5075if ${ac_cv_prog_CC+:} false; then :
5076  $as_echo_n "(cached) " >&6
5077else
5078  if test -n "$CC"; then
5079  ac_cv_prog_CC="$CC" # Let the user override the test.
5080else
5081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082for as_dir in $PATH
5083do
5084  IFS=$as_save_IFS
5085  test -z "$as_dir" && as_dir=.
5086    for ac_exec_ext in '' $ac_executable_extensions; do
5087  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5089    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090    break 2
5091  fi
5092done
5093  done
5094IFS=$as_save_IFS
5095
5096fi
5097fi
5098CC=$ac_cv_prog_CC
5099if test -n "$CC"; then
5100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5101$as_echo "$CC" >&6; }
5102else
5103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104$as_echo "no" >&6; }
5105fi
5106
5107
5108fi
5109if test -z "$ac_cv_prog_CC"; then
5110  ac_ct_CC=$CC
5111  # Extract the first word of "gcc", so it can be a program name with args.
5112set dummy gcc; ac_word=$2
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114$as_echo_n "checking for $ac_word... " >&6; }
5115if ${ac_cv_prog_ac_ct_CC+:} false; then :
5116  $as_echo_n "(cached) " >&6
5117else
5118  if test -n "$ac_ct_CC"; then
5119  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5120else
5121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122for as_dir in $PATH
5123do
5124  IFS=$as_save_IFS
5125  test -z "$as_dir" && as_dir=.
5126    for ac_exec_ext in '' $ac_executable_extensions; do
5127  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5128    ac_cv_prog_ac_ct_CC="gcc"
5129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130    break 2
5131  fi
5132done
5133  done
5134IFS=$as_save_IFS
5135
5136fi
5137fi
5138ac_ct_CC=$ac_cv_prog_ac_ct_CC
5139if test -n "$ac_ct_CC"; then
5140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5141$as_echo "$ac_ct_CC" >&6; }
5142else
5143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144$as_echo "no" >&6; }
5145fi
5146
5147  if test "x$ac_ct_CC" = x; then
5148    CC=""
5149  else
5150    case $cross_compiling:$ac_tool_warned in
5151yes:)
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5154ac_tool_warned=yes ;;
5155esac
5156    CC=$ac_ct_CC
5157  fi
5158else
5159  CC="$ac_cv_prog_CC"
5160fi
5161
5162if test -z "$CC"; then
5163          if test -n "$ac_tool_prefix"; then
5164    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5165set dummy ${ac_tool_prefix}cc; ac_word=$2
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167$as_echo_n "checking for $ac_word... " >&6; }
5168if ${ac_cv_prog_CC+:} false; then :
5169  $as_echo_n "(cached) " >&6
5170else
5171  if test -n "$CC"; then
5172  ac_cv_prog_CC="$CC" # Let the user override the test.
5173else
5174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175for as_dir in $PATH
5176do
5177  IFS=$as_save_IFS
5178  test -z "$as_dir" && as_dir=.
5179    for ac_exec_ext in '' $ac_executable_extensions; do
5180  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5181    ac_cv_prog_CC="${ac_tool_prefix}cc"
5182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183    break 2
5184  fi
5185done
5186  done
5187IFS=$as_save_IFS
5188
5189fi
5190fi
5191CC=$ac_cv_prog_CC
5192if test -n "$CC"; then
5193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5194$as_echo "$CC" >&6; }
5195else
5196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197$as_echo "no" >&6; }
5198fi
5199
5200
5201  fi
5202fi
5203if test -z "$CC"; then
5204  # Extract the first word of "cc", so it can be a program name with args.
5205set dummy cc; ac_word=$2
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207$as_echo_n "checking for $ac_word... " >&6; }
5208if ${ac_cv_prog_CC+:} false; then :
5209  $as_echo_n "(cached) " >&6
5210else
5211  if test -n "$CC"; then
5212  ac_cv_prog_CC="$CC" # Let the user override the test.
5213else
5214  ac_prog_rejected=no
5215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216for as_dir in $PATH
5217do
5218  IFS=$as_save_IFS
5219  test -z "$as_dir" && as_dir=.
5220    for ac_exec_ext in '' $ac_executable_extensions; do
5221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5223       ac_prog_rejected=yes
5224       continue
5225     fi
5226    ac_cv_prog_CC="cc"
5227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228    break 2
5229  fi
5230done
5231  done
5232IFS=$as_save_IFS
5233
5234if test $ac_prog_rejected = yes; then
5235  # We found a bogon in the path, so make sure we never use it.
5236  set dummy $ac_cv_prog_CC
5237  shift
5238  if test $# != 0; then
5239    # We chose a different compiler from the bogus one.
5240    # However, it has the same basename, so the bogon will be chosen
5241    # first if we set CC to just the basename; use the full file name.
5242    shift
5243    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5244  fi
5245fi
5246fi
5247fi
5248CC=$ac_cv_prog_CC
5249if test -n "$CC"; then
5250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5251$as_echo "$CC" >&6; }
5252else
5253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254$as_echo "no" >&6; }
5255fi
5256
5257
5258fi
5259if test -z "$CC"; then
5260  if test -n "$ac_tool_prefix"; then
5261  for ac_prog in cl.exe
5262  do
5263    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5264set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266$as_echo_n "checking for $ac_word... " >&6; }
5267if ${ac_cv_prog_CC+:} false; then :
5268  $as_echo_n "(cached) " >&6
5269else
5270  if test -n "$CC"; then
5271  ac_cv_prog_CC="$CC" # Let the user override the test.
5272else
5273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274for as_dir in $PATH
5275do
5276  IFS=$as_save_IFS
5277  test -z "$as_dir" && as_dir=.
5278    for ac_exec_ext in '' $ac_executable_extensions; do
5279  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5280    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5281    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282    break 2
5283  fi
5284done
5285  done
5286IFS=$as_save_IFS
5287
5288fi
5289fi
5290CC=$ac_cv_prog_CC
5291if test -n "$CC"; then
5292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5293$as_echo "$CC" >&6; }
5294else
5295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296$as_echo "no" >&6; }
5297fi
5298
5299
5300    test -n "$CC" && break
5301  done
5302fi
5303if test -z "$CC"; then
5304  ac_ct_CC=$CC
5305  for ac_prog in cl.exe
5306do
5307  # Extract the first word of "$ac_prog", so it can be a program name with args.
5308set dummy $ac_prog; ac_word=$2
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5310$as_echo_n "checking for $ac_word... " >&6; }
5311if ${ac_cv_prog_ac_ct_CC+:} false; then :
5312  $as_echo_n "(cached) " >&6
5313else
5314  if test -n "$ac_ct_CC"; then
5315  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5316else
5317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318for as_dir in $PATH
5319do
5320  IFS=$as_save_IFS
5321  test -z "$as_dir" && as_dir=.
5322    for ac_exec_ext in '' $ac_executable_extensions; do
5323  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5324    ac_cv_prog_ac_ct_CC="$ac_prog"
5325    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5326    break 2
5327  fi
5328done
5329  done
5330IFS=$as_save_IFS
5331
5332fi
5333fi
5334ac_ct_CC=$ac_cv_prog_ac_ct_CC
5335if test -n "$ac_ct_CC"; then
5336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5337$as_echo "$ac_ct_CC" >&6; }
5338else
5339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340$as_echo "no" >&6; }
5341fi
5342
5343
5344  test -n "$ac_ct_CC" && break
5345done
5346
5347  if test "x$ac_ct_CC" = x; then
5348    CC=""
5349  else
5350    case $cross_compiling:$ac_tool_warned in
5351yes:)
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5354ac_tool_warned=yes ;;
5355esac
5356    CC=$ac_ct_CC
5357  fi
5358fi
5359
5360fi
5361
5362
5363test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5365as_fn_error $? "no acceptable C compiler found in \$PATH
5366See \`config.log' for more details" "$LINENO" 5; }
5367
5368# Provide some information about the compiler.
5369$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5370set X $ac_compile
5371ac_compiler=$2
5372for ac_option in --version -v -V -qversion; do
5373  { { ac_try="$ac_compiler $ac_option >&5"
5374case "(($ac_try" in
5375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376  *) ac_try_echo=$ac_try;;
5377esac
5378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5379$as_echo "$ac_try_echo"; } >&5
5380  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5381  ac_status=$?
5382  if test -s conftest.err; then
5383    sed '10a\
5384... rest of stderr output deleted ...
5385         10q' conftest.err >conftest.er1
5386    cat conftest.er1 >&5
5387  fi
5388  rm -f conftest.er1 conftest.err
5389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5390  test $ac_status = 0; }
5391done
5392
5393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394/* end confdefs.h.  */
5395
5396int
5397main ()
5398{
5399
5400  ;
5401  return 0;
5402}
5403_ACEOF
5404ac_clean_files_save=$ac_clean_files
5405ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5406# Try to create an executable without -o first, disregard a.out.
5407# It will help us diagnose broken compilers, and finding out an intuition
5408# of exeext.
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5410$as_echo_n "checking whether the C compiler works... " >&6; }
5411ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5412
5413# The possible output files:
5414ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5415
5416ac_rmfiles=
5417for ac_file in $ac_files
5418do
5419  case $ac_file in
5420    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5421    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5422  esac
5423done
5424rm -f $ac_rmfiles
5425
5426if { { ac_try="$ac_link_default"
5427case "(($ac_try" in
5428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429  *) ac_try_echo=$ac_try;;
5430esac
5431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5432$as_echo "$ac_try_echo"; } >&5
5433  (eval "$ac_link_default") 2>&5
5434  ac_status=$?
5435  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5436  test $ac_status = 0; }; then :
5437  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5438# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5439# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5440# so that the user can short-circuit this test for compilers unknown to
5441# Autoconf.
5442for ac_file in $ac_files ''
5443do
5444  test -f "$ac_file" || continue
5445  case $ac_file in
5446    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5447	;;
5448    [ab].out )
5449	# We found the default executable, but exeext='' is most
5450	# certainly right.
5451	break;;
5452    *.* )
5453	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5454	then :; else
5455	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5456	fi
5457	# We set ac_cv_exeext here because the later test for it is not
5458	# safe: cross compilers may not add the suffix if given an `-o'
5459	# argument, so we may need to know it at that point already.
5460	# Even if this section looks crufty: it has the advantage of
5461	# actually working.
5462	break;;
5463    * )
5464	break;;
5465  esac
5466done
5467test "$ac_cv_exeext" = no && ac_cv_exeext=
5468
5469else
5470  ac_file=''
5471fi
5472if test -z "$ac_file"; then :
5473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474$as_echo "no" >&6; }
5475$as_echo "$as_me: failed program was:" >&5
5476sed 's/^/| /' conftest.$ac_ext >&5
5477
5478{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5480as_fn_error 77 "C compiler cannot create executables
5481See \`config.log' for more details" "$LINENO" 5; }
5482else
5483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5484$as_echo "yes" >&6; }
5485fi
5486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5487$as_echo_n "checking for C compiler default output file name... " >&6; }
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5489$as_echo "$ac_file" >&6; }
5490ac_exeext=$ac_cv_exeext
5491
5492rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5493ac_clean_files=$ac_clean_files_save
5494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5495$as_echo_n "checking for suffix of executables... " >&6; }
5496if { { ac_try="$ac_link"
5497case "(($ac_try" in
5498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5499  *) ac_try_echo=$ac_try;;
5500esac
5501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5502$as_echo "$ac_try_echo"; } >&5
5503  (eval "$ac_link") 2>&5
5504  ac_status=$?
5505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5506  test $ac_status = 0; }; then :
5507  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5508# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5509# work properly (i.e., refer to `conftest.exe'), while it won't with
5510# `rm'.
5511for ac_file in conftest.exe conftest conftest.*; do
5512  test -f "$ac_file" || continue
5513  case $ac_file in
5514    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5515    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5516	  break;;
5517    * ) break;;
5518  esac
5519done
5520else
5521  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5523as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5524See \`config.log' for more details" "$LINENO" 5; }
5525fi
5526rm -f conftest conftest$ac_cv_exeext
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5528$as_echo "$ac_cv_exeext" >&6; }
5529
5530rm -f conftest.$ac_ext
5531EXEEXT=$ac_cv_exeext
5532ac_exeext=$EXEEXT
5533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534/* end confdefs.h.  */
5535#include <stdio.h>
5536int
5537main ()
5538{
5539FILE *f = fopen ("conftest.out", "w");
5540 return ferror (f) || fclose (f) != 0;
5541
5542  ;
5543  return 0;
5544}
5545_ACEOF
5546ac_clean_files="$ac_clean_files conftest.out"
5547# Check that the compiler produces executables we can run.  If not, either
5548# the compiler is broken, or we cross compile.
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5550$as_echo_n "checking whether we are cross compiling... " >&6; }
5551if test "$cross_compiling" != yes; then
5552  { { ac_try="$ac_link"
5553case "(($ac_try" in
5554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5555  *) ac_try_echo=$ac_try;;
5556esac
5557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5558$as_echo "$ac_try_echo"; } >&5
5559  (eval "$ac_link") 2>&5
5560  ac_status=$?
5561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5562  test $ac_status = 0; }
5563  if { ac_try='./conftest$ac_cv_exeext'
5564  { { case "(($ac_try" in
5565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566  *) ac_try_echo=$ac_try;;
5567esac
5568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5569$as_echo "$ac_try_echo"; } >&5
5570  (eval "$ac_try") 2>&5
5571  ac_status=$?
5572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5573  test $ac_status = 0; }; }; then
5574    cross_compiling=no
5575  else
5576    if test "$cross_compiling" = maybe; then
5577	cross_compiling=yes
5578    else
5579	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5581as_fn_error $? "cannot run C compiled programs.
5582If you meant to cross compile, use \`--host'.
5583See \`config.log' for more details" "$LINENO" 5; }
5584    fi
5585  fi
5586fi
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5588$as_echo "$cross_compiling" >&6; }
5589
5590rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5591ac_clean_files=$ac_clean_files_save
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5593$as_echo_n "checking for suffix of object files... " >&6; }
5594if ${ac_cv_objext+:} false; then :
5595  $as_echo_n "(cached) " >&6
5596else
5597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598/* end confdefs.h.  */
5599
5600int
5601main ()
5602{
5603
5604  ;
5605  return 0;
5606}
5607_ACEOF
5608rm -f conftest.o conftest.obj
5609if { { ac_try="$ac_compile"
5610case "(($ac_try" in
5611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612  *) ac_try_echo=$ac_try;;
5613esac
5614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5615$as_echo "$ac_try_echo"; } >&5
5616  (eval "$ac_compile") 2>&5
5617  ac_status=$?
5618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5619  test $ac_status = 0; }; then :
5620  for ac_file in conftest.o conftest.obj conftest.*; do
5621  test -f "$ac_file" || continue;
5622  case $ac_file in
5623    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5624    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5625       break;;
5626  esac
5627done
5628else
5629  $as_echo "$as_me: failed program was:" >&5
5630sed 's/^/| /' conftest.$ac_ext >&5
5631
5632{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5634as_fn_error $? "cannot compute suffix of object files: cannot compile
5635See \`config.log' for more details" "$LINENO" 5; }
5636fi
5637rm -f conftest.$ac_cv_objext conftest.$ac_ext
5638fi
5639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5640$as_echo "$ac_cv_objext" >&6; }
5641OBJEXT=$ac_cv_objext
5642ac_objext=$OBJEXT
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5644$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5645if ${ac_cv_c_compiler_gnu+:} false; then :
5646  $as_echo_n "(cached) " >&6
5647else
5648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649/* end confdefs.h.  */
5650
5651int
5652main ()
5653{
5654#ifndef __GNUC__
5655       choke me
5656#endif
5657
5658  ;
5659  return 0;
5660}
5661_ACEOF
5662if ac_fn_c_try_compile "$LINENO"; then :
5663  ac_compiler_gnu=yes
5664else
5665  ac_compiler_gnu=no
5666fi
5667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668ac_cv_c_compiler_gnu=$ac_compiler_gnu
5669
5670fi
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5672$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5673if test $ac_compiler_gnu = yes; then
5674  GCC=yes
5675else
5676  GCC=
5677fi
5678ac_test_CFLAGS=${CFLAGS+set}
5679ac_save_CFLAGS=$CFLAGS
5680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5681$as_echo_n "checking whether $CC accepts -g... " >&6; }
5682if ${ac_cv_prog_cc_g+:} false; then :
5683  $as_echo_n "(cached) " >&6
5684else
5685  ac_save_c_werror_flag=$ac_c_werror_flag
5686   ac_c_werror_flag=yes
5687   ac_cv_prog_cc_g=no
5688   CFLAGS="-g"
5689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690/* end confdefs.h.  */
5691
5692int
5693main ()
5694{
5695
5696  ;
5697  return 0;
5698}
5699_ACEOF
5700if ac_fn_c_try_compile "$LINENO"; then :
5701  ac_cv_prog_cc_g=yes
5702else
5703  CFLAGS=""
5704      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705/* end confdefs.h.  */
5706
5707int
5708main ()
5709{
5710
5711  ;
5712  return 0;
5713}
5714_ACEOF
5715if ac_fn_c_try_compile "$LINENO"; then :
5716
5717else
5718  ac_c_werror_flag=$ac_save_c_werror_flag
5719	 CFLAGS="-g"
5720	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721/* end confdefs.h.  */
5722
5723int
5724main ()
5725{
5726
5727  ;
5728  return 0;
5729}
5730_ACEOF
5731if ac_fn_c_try_compile "$LINENO"; then :
5732  ac_cv_prog_cc_g=yes
5733fi
5734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5735fi
5736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5737fi
5738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739   ac_c_werror_flag=$ac_save_c_werror_flag
5740fi
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5742$as_echo "$ac_cv_prog_cc_g" >&6; }
5743if test "$ac_test_CFLAGS" = set; then
5744  CFLAGS=$ac_save_CFLAGS
5745elif test $ac_cv_prog_cc_g = yes; then
5746  if test "$GCC" = yes; then
5747    CFLAGS="-g -O2"
5748  else
5749    CFLAGS="-g"
5750  fi
5751else
5752  if test "$GCC" = yes; then
5753    CFLAGS="-O2"
5754  else
5755    CFLAGS=
5756  fi
5757fi
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5759$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5760if ${ac_cv_prog_cc_c89+:} false; then :
5761  $as_echo_n "(cached) " >&6
5762else
5763  ac_cv_prog_cc_c89=no
5764ac_save_CC=$CC
5765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766/* end confdefs.h.  */
5767#include <stdarg.h>
5768#include <stdio.h>
5769struct stat;
5770/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5771struct buf { int x; };
5772FILE * (*rcsopen) (struct buf *, struct stat *, int);
5773static char *e (p, i)
5774     char **p;
5775     int i;
5776{
5777  return p[i];
5778}
5779static char *f (char * (*g) (char **, int), char **p, ...)
5780{
5781  char *s;
5782  va_list v;
5783  va_start (v,p);
5784  s = g (p, va_arg (v,int));
5785  va_end (v);
5786  return s;
5787}
5788
5789/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5790   function prototypes and stuff, but not '\xHH' hex character constants.
5791   These don't provoke an error unfortunately, instead are silently treated
5792   as 'x'.  The following induces an error, until -std is added to get
5793   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5794   array size at least.  It's necessary to write '\x00'==0 to get something
5795   that's true only with -std.  */
5796int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5797
5798/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5799   inside strings and character constants.  */
5800#define FOO(x) 'x'
5801int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5802
5803int test (int i, double x);
5804struct s1 {int (*f) (int a);};
5805struct s2 {int (*f) (double a);};
5806int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5807int argc;
5808char **argv;
5809int
5810main ()
5811{
5812return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5813  ;
5814  return 0;
5815}
5816_ACEOF
5817for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5818	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5819do
5820  CC="$ac_save_CC $ac_arg"
5821  if ac_fn_c_try_compile "$LINENO"; then :
5822  ac_cv_prog_cc_c89=$ac_arg
5823fi
5824rm -f core conftest.err conftest.$ac_objext
5825  test "x$ac_cv_prog_cc_c89" != "xno" && break
5826done
5827rm -f conftest.$ac_ext
5828CC=$ac_save_CC
5829
5830fi
5831# AC_CACHE_VAL
5832case "x$ac_cv_prog_cc_c89" in
5833  x)
5834    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5835$as_echo "none needed" >&6; } ;;
5836  xno)
5837    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5838$as_echo "unsupported" >&6; } ;;
5839  *)
5840    CC="$CC $ac_cv_prog_cc_c89"
5841    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5842$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5843esac
5844if test "x$ac_cv_prog_cc_c89" != xno; then :
5845
5846fi
5847
5848ac_ext=c
5849ac_cpp='$CPP $CPPFLAGS'
5850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5852ac_compiler_gnu=$ac_cv_c_compiler_gnu
5853
5854
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5856$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5857if ${ac_cv_path_SED+:} false; then :
5858  $as_echo_n "(cached) " >&6
5859else
5860            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5861     for ac_i in 1 2 3 4 5 6 7; do
5862       ac_script="$ac_script$as_nl$ac_script"
5863     done
5864     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5865     { ac_script=; unset ac_script;}
5866     if test -z "$SED"; then
5867  ac_path_SED_found=false
5868  # Loop through the user's path and test for each of PROGNAME-LIST
5869  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870for as_dir in $PATH
5871do
5872  IFS=$as_save_IFS
5873  test -z "$as_dir" && as_dir=.
5874    for ac_prog in sed gsed; do
5875    for ac_exec_ext in '' $ac_executable_extensions; do
5876      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5877      as_fn_executable_p "$ac_path_SED" || continue
5878# Check for GNU ac_path_SED and select it if it is found.
5879  # Check for GNU $ac_path_SED
5880case `"$ac_path_SED" --version 2>&1` in
5881*GNU*)
5882  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5883*)
5884  ac_count=0
5885  $as_echo_n 0123456789 >"conftest.in"
5886  while :
5887  do
5888    cat "conftest.in" "conftest.in" >"conftest.tmp"
5889    mv "conftest.tmp" "conftest.in"
5890    cp "conftest.in" "conftest.nl"
5891    $as_echo '' >> "conftest.nl"
5892    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5893    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5894    as_fn_arith $ac_count + 1 && ac_count=$as_val
5895    if test $ac_count -gt ${ac_path_SED_max-0}; then
5896      # Best one so far, save it but keep looking for a better one
5897      ac_cv_path_SED="$ac_path_SED"
5898      ac_path_SED_max=$ac_count
5899    fi
5900    # 10*(2^10) chars as input seems more than enough
5901    test $ac_count -gt 10 && break
5902  done
5903  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5904esac
5905
5906      $ac_path_SED_found && break 3
5907    done
5908  done
5909  done
5910IFS=$as_save_IFS
5911  if test -z "$ac_cv_path_SED"; then
5912    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5913  fi
5914else
5915  ac_cv_path_SED=$SED
5916fi
5917
5918fi
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5920$as_echo "$ac_cv_path_SED" >&6; }
5921 SED="$ac_cv_path_SED"
5922  rm -f conftest.sed
5923
5924
5925
5926if test "x$apr_preload_done" != "xyes" ; then
5927
5928  apr_preload_done="yes"
5929
5930  echo "Applying APR hints file rules for $host"
5931
5932  case "$host" in
5933    *mint)
5934
5935  if test "x$CPPFLAGS" = "x"; then
5936    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DMINT\""
5937    CPPFLAGS="-DMINT"
5938  else
5939    apr_addto_bugger="-DMINT"
5940    for i in $apr_addto_bugger; do
5941      apr_addto_duplicate="0"
5942      for j in $CPPFLAGS; do
5943        if test "x$i" = "x$j"; then
5944          apr_addto_duplicate="1"
5945          break
5946        fi
5947      done
5948      if test $apr_addto_duplicate = "0"; then
5949        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5950        CPPFLAGS="$CPPFLAGS $i"
5951      fi
5952    done
5953  fi
5954
5955
5956  if test "x$LIBS" = "x"; then
5957    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lportlib\""
5958    LIBS="-lportlib"
5959  else
5960    apr_addto_bugger="-lportlib"
5961    for i in $apr_addto_bugger; do
5962      apr_addto_duplicate="0"
5963      for j in $LIBS; do
5964        if test "x$i" = "x$j"; then
5965          apr_addto_duplicate="1"
5966          break
5967        fi
5968      done
5969      if test $apr_addto_duplicate = "0"; then
5970        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
5971        LIBS="$LIBS $i"
5972      fi
5973    done
5974  fi
5975
5976	;;
5977    *MPE/iX*)
5978
5979  if test "x$CPPFLAGS" = "x"; then
5980    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE\""
5981    CPPFLAGS="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
5982  else
5983    apr_addto_bugger="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
5984    for i in $apr_addto_bugger; do
5985      apr_addto_duplicate="0"
5986      for j in $CPPFLAGS; do
5987        if test "x$i" = "x$j"; then
5988          apr_addto_duplicate="1"
5989          break
5990        fi
5991      done
5992      if test $apr_addto_duplicate = "0"; then
5993        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5994        CPPFLAGS="$CPPFLAGS $i"
5995      fi
5996    done
5997  fi
5998
5999
6000  if test "x$LIBS" = "x"; then
6001    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lsvipc -lcurses\""
6002    LIBS="-lsvipc -lcurses"
6003  else
6004    apr_addto_bugger="-lsvipc -lcurses"
6005    for i in $apr_addto_bugger; do
6006      apr_addto_duplicate="0"
6007      for j in $LIBS; do
6008        if test "x$i" = "x$j"; then
6009          apr_addto_duplicate="1"
6010          break
6011        fi
6012      done
6013      if test $apr_addto_duplicate = "0"; then
6014        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6015        LIBS="$LIBS $i"
6016      fi
6017    done
6018  fi
6019
6020
6021  if test "x$LDFLAGS" = "x"; then
6022    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\"\""
6023    LDFLAGS="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
6024  else
6025    apr_addto_bugger="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
6026    for i in $apr_addto_bugger; do
6027      apr_addto_duplicate="0"
6028      for j in $LDFLAGS; do
6029        if test "x$i" = "x$j"; then
6030          apr_addto_duplicate="1"
6031          break
6032        fi
6033      done
6034      if test $apr_addto_duplicate = "0"; then
6035        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
6036        LDFLAGS="$LDFLAGS $i"
6037      fi
6038    done
6039  fi
6040
6041	;;
6042    *-apple-aux3*)
6043
6044  if test "x$CPPFLAGS" = "x"; then
6045    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAUX3 -D_POSIX_SOURCE\""
6046    CPPFLAGS="-DAUX3 -D_POSIX_SOURCE"
6047  else
6048    apr_addto_bugger="-DAUX3 -D_POSIX_SOURCE"
6049    for i in $apr_addto_bugger; do
6050      apr_addto_duplicate="0"
6051      for j in $CPPFLAGS; do
6052        if test "x$i" = "x$j"; then
6053          apr_addto_duplicate="1"
6054          break
6055        fi
6056      done
6057      if test $apr_addto_duplicate = "0"; then
6058        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6059        CPPFLAGS="$CPPFLAGS $i"
6060      fi
6061    done
6062  fi
6063
6064
6065  if test "x$LIBS" = "x"; then
6066    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lposix -lbsd\""
6067    LIBS="-lposix -lbsd"
6068  else
6069    apr_addto_bugger="-lposix -lbsd"
6070    for i in $apr_addto_bugger; do
6071      apr_addto_duplicate="0"
6072      for j in $LIBS; do
6073        if test "x$i" = "x$j"; then
6074          apr_addto_duplicate="1"
6075          break
6076        fi
6077      done
6078      if test $apr_addto_duplicate = "0"; then
6079        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6080        LIBS="$LIBS $i"
6081      fi
6082    done
6083  fi
6084
6085
6086  if test "x$LDFLAGS" = "x"; then
6087    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-s\""
6088    LDFLAGS="-s"
6089  else
6090    apr_addto_bugger="-s"
6091    for i in $apr_addto_bugger; do
6092      apr_addto_duplicate="0"
6093      for j in $LDFLAGS; do
6094        if test "x$i" = "x$j"; then
6095          apr_addto_duplicate="1"
6096          break
6097        fi
6098      done
6099      if test $apr_addto_duplicate = "0"; then
6100        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
6101        LDFLAGS="$LDFLAGS $i"
6102      fi
6103    done
6104  fi
6105
6106
6107  test "x$silent" != "xyes" && echo "  forcing SHELL to \"/bin/ksh\""
6108  SHELL="/bin/ksh"
6109
6110	;;
6111    *-ibm-aix*)
6112
6113  if test "x$CPPFLAGS" = "x"; then
6114    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-U__STR__ -D_THREAD_SAFE\""
6115    CPPFLAGS="-U__STR__ -D_THREAD_SAFE"
6116  else
6117    apr_addto_bugger="-U__STR__ -D_THREAD_SAFE"
6118    for i in $apr_addto_bugger; do
6119      apr_addto_duplicate="0"
6120      for j in $CPPFLAGS; do
6121        if test "x$i" = "x$j"; then
6122          apr_addto_duplicate="1"
6123          break
6124        fi
6125      done
6126      if test $apr_addto_duplicate = "0"; then
6127        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6128        CPPFLAGS="$CPPFLAGS $i"
6129      fi
6130    done
6131  fi
6132
6133                case $host in
6134            *-ibm-aix4.3)
6135
6136  if test "x$CPPFLAGS" = "x"; then
6137    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_USE_IRS\""
6138    CPPFLAGS="-D_USE_IRS"
6139  else
6140    apr_addto_bugger="-D_USE_IRS"
6141    for i in $apr_addto_bugger; do
6142      apr_addto_duplicate="0"
6143      for j in $CPPFLAGS; do
6144        if test "x$i" = "x$j"; then
6145          apr_addto_duplicate="1"
6146          break
6147        fi
6148      done
6149      if test $apr_addto_duplicate = "0"; then
6150        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6151        CPPFLAGS="$CPPFLAGS $i"
6152      fi
6153    done
6154  fi
6155
6156	        ;;
6157            *-ibm-aix5*)
6158
6159  if test "x$CPPFLAGS" = "x"; then
6160    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_USE_IRS\""
6161    CPPFLAGS="-D_USE_IRS"
6162  else
6163    apr_addto_bugger="-D_USE_IRS"
6164    for i in $apr_addto_bugger; do
6165      apr_addto_duplicate="0"
6166      for j in $CPPFLAGS; do
6167        if test "x$i" = "x$j"; then
6168          apr_addto_duplicate="1"
6169          break
6170        fi
6171      done
6172      if test $apr_addto_duplicate = "0"; then
6173        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6174        CPPFLAGS="$CPPFLAGS $i"
6175      fi
6176    done
6177  fi
6178
6179	        ;;
6180            *-ibm-aix4.3.*)
6181
6182  if test "x$CPPFLAGS" = "x"; then
6183    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_USE_IRS\""
6184    CPPFLAGS="-D_USE_IRS"
6185  else
6186    apr_addto_bugger="-D_USE_IRS"
6187    for i in $apr_addto_bugger; do
6188      apr_addto_duplicate="0"
6189      for j in $CPPFLAGS; do
6190        if test "x$i" = "x$j"; then
6191          apr_addto_duplicate="1"
6192          break
6193        fi
6194      done
6195      if test $apr_addto_duplicate = "0"; then
6196        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6197        CPPFLAGS="$CPPFLAGS $i"
6198      fi
6199    done
6200  fi
6201
6202                ;;
6203        esac
6204                if $CC 2>&1 | grep 'xlc' > /dev/null; then
6205
6206  if test -z "$AIX_XLC"; then
6207    test "x$silent" != "xyes" && echo "  setting AIX_XLC to \"yes\""
6208    AIX_XLC="yes"
6209  fi
6210
6211
6212  if test "x$CFLAGS" = "x"; then
6213    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-qHALT=E\""
6214    CFLAGS="-qHALT=E"
6215  else
6216    apr_addto_bugger="-qHALT=E"
6217    for i in $apr_addto_bugger; do
6218      apr_addto_duplicate="0"
6219      for j in $CFLAGS; do
6220        if test "x$i" = "x$j"; then
6221          apr_addto_duplicate="1"
6222          break
6223        fi
6224      done
6225      if test $apr_addto_duplicate = "0"; then
6226        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
6227        CFLAGS="$CFLAGS $i"
6228      fi
6229    done
6230  fi
6231
6232        fi
6233
6234  if test -z "$apr_sysvsem_is_global"; then
6235    test "x$silent" != "xyes" && echo "  setting apr_sysvsem_is_global to \"yes\""
6236    apr_sysvsem_is_global="yes"
6237  fi
6238
6239
6240  if test -z "$apr_lock_method"; then
6241    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
6242    apr_lock_method="USE_SYSVSEM_SERIALIZE"
6243  fi
6244
6245        case $host in
6246            *-ibm-aix3* | *-ibm-aix4.1.*)
6247                ;;
6248            *)
6249
6250  if test "x$LDFLAGS" = "x"; then
6251    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Wl,-brtl\""
6252    LDFLAGS="-Wl,-brtl"
6253  else
6254    apr_addto_bugger="-Wl,-brtl"
6255    for i in $apr_addto_bugger; do
6256      apr_addto_duplicate="0"
6257      for j in $LDFLAGS; do
6258        if test "x$i" = "x$j"; then
6259          apr_addto_duplicate="1"
6260          break
6261        fi
6262      done
6263      if test $apr_addto_duplicate = "0"; then
6264        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
6265        LDFLAGS="$LDFLAGS $i"
6266      fi
6267    done
6268  fi
6269
6270                ;;
6271	esac
6272        ;;
6273    *-apollo-*)
6274
6275  if test "x$CPPFLAGS" = "x"; then
6276    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAPOLLO\""
6277    CPPFLAGS="-DAPOLLO"
6278  else
6279    apr_addto_bugger="-DAPOLLO"
6280    for i in $apr_addto_bugger; do
6281      apr_addto_duplicate="0"
6282      for j in $CPPFLAGS; do
6283        if test "x$i" = "x$j"; then
6284          apr_addto_duplicate="1"
6285          break
6286        fi
6287      done
6288      if test $apr_addto_duplicate = "0"; then
6289        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6290        CPPFLAGS="$CPPFLAGS $i"
6291      fi
6292    done
6293  fi
6294
6295	;;
6296    *-dg-dgux*)
6297
6298  if test "x$CPPFLAGS" = "x"; then
6299    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DDGUX\""
6300    CPPFLAGS="-DDGUX"
6301  else
6302    apr_addto_bugger="-DDGUX"
6303    for i in $apr_addto_bugger; do
6304      apr_addto_duplicate="0"
6305      for j in $CPPFLAGS; do
6306        if test "x$i" = "x$j"; then
6307          apr_addto_duplicate="1"
6308          break
6309        fi
6310      done
6311      if test $apr_addto_duplicate = "0"; then
6312        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6313        CPPFLAGS="$CPPFLAGS $i"
6314      fi
6315    done
6316  fi
6317
6318	;;
6319    *-os2*)
6320
6321  test "x$silent" != "xyes" && echo "  forcing SHELL to \"sh\""
6322  SHELL="sh"
6323
6324
6325  if test -z "$apr_gethostbyname_is_thread_safe"; then
6326    test "x$silent" != "xyes" && echo "  setting apr_gethostbyname_is_thread_safe to \"yes\""
6327    apr_gethostbyname_is_thread_safe="yes"
6328  fi
6329
6330
6331  if test -z "$apr_gethostbyaddr_is_thread_safe"; then
6332    test "x$silent" != "xyes" && echo "  setting apr_gethostbyaddr_is_thread_safe to \"yes\""
6333    apr_gethostbyaddr_is_thread_safe="yes"
6334  fi
6335
6336
6337  if test -z "$apr_getservbyname_is_thread_safe"; then
6338    test "x$silent" != "xyes" && echo "  setting apr_getservbyname_is_thread_safe to \"yes\""
6339    apr_getservbyname_is_thread_safe="yes"
6340  fi
6341
6342	;;
6343    *-hi-hiux)
6344
6345  if test "x$CPPFLAGS" = "x"; then
6346    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DHIUX\""
6347    CPPFLAGS="-DHIUX"
6348  else
6349    apr_addto_bugger="-DHIUX"
6350    for i in $apr_addto_bugger; do
6351      apr_addto_duplicate="0"
6352      for j in $CPPFLAGS; do
6353        if test "x$i" = "x$j"; then
6354          apr_addto_duplicate="1"
6355          break
6356        fi
6357      done
6358      if test $apr_addto_duplicate = "0"; then
6359        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6360        CPPFLAGS="$CPPFLAGS $i"
6361      fi
6362    done
6363  fi
6364
6365	;;
6366    *-hp-hpux11.*)
6367
6368  if test "x$CPPFLAGS" = "x"; then
6369    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE\""
6370    CPPFLAGS="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE"
6371  else
6372    apr_addto_bugger="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE"
6373    for i in $apr_addto_bugger; do
6374      apr_addto_duplicate="0"
6375      for j in $CPPFLAGS; do
6376        if test "x$i" = "x$j"; then
6377          apr_addto_duplicate="1"
6378          break
6379        fi
6380      done
6381      if test $apr_addto_duplicate = "0"; then
6382        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6383        CPPFLAGS="$CPPFLAGS $i"
6384      fi
6385    done
6386  fi
6387
6388	;;
6389    *-hp-hpux10.*)
6390 	case $host in
6391 	  *-hp-hpux10.01)
6392
6393  if test "x$CPPFLAGS" = "x"; then
6394    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSELECT_NEEDS_CAST\""
6395    CPPFLAGS="-DSELECT_NEEDS_CAST"
6396  else
6397    apr_addto_bugger="-DSELECT_NEEDS_CAST"
6398    for i in $apr_addto_bugger; do
6399      apr_addto_duplicate="0"
6400      for j in $CPPFLAGS; do
6401        if test "x$i" = "x$j"; then
6402          apr_addto_duplicate="1"
6403          break
6404        fi
6405      done
6406      if test $apr_addto_duplicate = "0"; then
6407        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6408        CPPFLAGS="$CPPFLAGS $i"
6409      fi
6410    done
6411  fi
6412
6413	       ;;
6414 	esac
6415
6416  if test "x$CPPFLAGS" = "x"; then
6417    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_REENTRANT\""
6418    CPPFLAGS="-D_REENTRANT"
6419  else
6420    apr_addto_bugger="-D_REENTRANT"
6421    for i in $apr_addto_bugger; do
6422      apr_addto_duplicate="0"
6423      for j in $CPPFLAGS; do
6424        if test "x$i" = "x$j"; then
6425          apr_addto_duplicate="1"
6426          break
6427        fi
6428      done
6429      if test $apr_addto_duplicate = "0"; then
6430        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6431        CPPFLAGS="$CPPFLAGS $i"
6432      fi
6433    done
6434  fi
6435
6436	;;
6437    *-hp-hpux*)
6438
6439  if test "x$CPPFLAGS" = "x"; then
6440    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DHPUX -D_REENTRANT\""
6441    CPPFLAGS="-DHPUX -D_REENTRANT"
6442  else
6443    apr_addto_bugger="-DHPUX -D_REENTRANT"
6444    for i in $apr_addto_bugger; do
6445      apr_addto_duplicate="0"
6446      for j in $CPPFLAGS; do
6447        if test "x$i" = "x$j"; then
6448          apr_addto_duplicate="1"
6449          break
6450        fi
6451      done
6452      if test $apr_addto_duplicate = "0"; then
6453        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6454        CPPFLAGS="$CPPFLAGS $i"
6455      fi
6456    done
6457  fi
6458
6459	;;
6460    *-linux*)
6461
6462  if test "x$CPPFLAGS" = "x"; then
6463    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DLINUX -D_REENTRANT -D_GNU_SOURCE\""
6464    CPPFLAGS="-DLINUX -D_REENTRANT -D_GNU_SOURCE"
6465  else
6466    apr_addto_bugger="-DLINUX -D_REENTRANT -D_GNU_SOURCE"
6467    for i in $apr_addto_bugger; do
6468      apr_addto_duplicate="0"
6469      for j in $CPPFLAGS; do
6470        if test "x$i" = "x$j"; then
6471          apr_addto_duplicate="1"
6472          break
6473        fi
6474      done
6475      if test $apr_addto_duplicate = "0"; then
6476        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6477        CPPFLAGS="$CPPFLAGS $i"
6478      fi
6479    done
6480  fi
6481
6482	;;
6483    *-lynx-lynxos)
6484
6485  if test "x$CPPFLAGS" = "x"; then
6486    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D__NO_INCLUDE_WARN__ -DLYNXOS\""
6487    CPPFLAGS="-D__NO_INCLUDE_WARN__ -DLYNXOS"
6488  else
6489    apr_addto_bugger="-D__NO_INCLUDE_WARN__ -DLYNXOS"
6490    for i in $apr_addto_bugger; do
6491      apr_addto_duplicate="0"
6492      for j in $CPPFLAGS; do
6493        if test "x$i" = "x$j"; then
6494          apr_addto_duplicate="1"
6495          break
6496        fi
6497      done
6498      if test $apr_addto_duplicate = "0"; then
6499        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6500        CPPFLAGS="$CPPFLAGS $i"
6501      fi
6502    done
6503  fi
6504
6505
6506  if test "x$LIBS" = "x"; then
6507    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbsd\""
6508    LIBS="-lbsd"
6509  else
6510    apr_addto_bugger="-lbsd"
6511    for i in $apr_addto_bugger; do
6512      apr_addto_duplicate="0"
6513      for j in $LIBS; do
6514        if test "x$i" = "x$j"; then
6515          apr_addto_duplicate="1"
6516          break
6517        fi
6518      done
6519      if test $apr_addto_duplicate = "0"; then
6520        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6521        LIBS="$LIBS $i"
6522      fi
6523    done
6524  fi
6525
6526	;;
6527    *486-*-bsdi*)
6528
6529  if test "x$CFLAGS" = "x"; then
6530    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-m486\""
6531    CFLAGS="-m486"
6532  else
6533    apr_addto_bugger="-m486"
6534    for i in $apr_addto_bugger; do
6535      apr_addto_duplicate="0"
6536      for j in $CFLAGS; do
6537        if test "x$i" = "x$j"; then
6538          apr_addto_duplicate="1"
6539          break
6540        fi
6541      done
6542      if test $apr_addto_duplicate = "0"; then
6543        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
6544        CFLAGS="$CFLAGS $i"
6545      fi
6546    done
6547  fi
6548
6549	;;
6550    *-*-bsdi*)
6551        case $host in
6552            *bsdi4.1)
6553
6554  if test "x$CFLAGS" = "x"; then
6555    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-D_REENTRANT\""
6556    CFLAGS="-D_REENTRANT"
6557  else
6558    apr_addto_bugger="-D_REENTRANT"
6559    for i in $apr_addto_bugger; do
6560      apr_addto_duplicate="0"
6561      for j in $CFLAGS; do
6562        if test "x$i" = "x$j"; then
6563          apr_addto_duplicate="1"
6564          break
6565        fi
6566      done
6567      if test $apr_addto_duplicate = "0"; then
6568        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
6569        CFLAGS="$CFLAGS $i"
6570      fi
6571    done
6572  fi
6573
6574                ;;
6575        esac
6576        ;;
6577    *-openbsd*)
6578
6579  if test "x$CPPFLAGS" = "x"; then
6580    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_POSIX_THREADS\""
6581    CPPFLAGS="-D_POSIX_THREADS"
6582  else
6583    apr_addto_bugger="-D_POSIX_THREADS"
6584    for i in $apr_addto_bugger; do
6585      apr_addto_duplicate="0"
6586      for j in $CPPFLAGS; do
6587        if test "x$i" = "x$j"; then
6588          apr_addto_duplicate="1"
6589          break
6590        fi
6591      done
6592      if test $apr_addto_duplicate = "0"; then
6593        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6594        CPPFLAGS="$CPPFLAGS $i"
6595      fi
6596    done
6597  fi
6598
6599        # binding to an ephemeral port fails on OpenBSD so override
6600        # the test for O_NONBLOCK inheritance across accept().
6601
6602  if test -z "$ac_cv_o_nonblock_inherited"; then
6603    test "x$silent" != "xyes" && echo "  setting ac_cv_o_nonblock_inherited to \"yes\""
6604    ac_cv_o_nonblock_inherited="yes"
6605  fi
6606
6607	;;
6608    *-netbsd*)
6609
6610  if test "x$CPPFLAGS" = "x"; then
6611    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNETBSD\""
6612    CPPFLAGS="-DNETBSD"
6613  else
6614    apr_addto_bugger="-DNETBSD"
6615    for i in $apr_addto_bugger; do
6616      apr_addto_duplicate="0"
6617      for j in $CPPFLAGS; do
6618        if test "x$i" = "x$j"; then
6619          apr_addto_duplicate="1"
6620          break
6621        fi
6622      done
6623      if test $apr_addto_duplicate = "0"; then
6624        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6625        CPPFLAGS="$CPPFLAGS $i"
6626      fi
6627    done
6628  fi
6629
6630        # fcntl() lies about O_NONBLOCK on an accept()ed socket (PR kern/26950)
6631
6632  if test -z "$ac_cv_o_nonblock_inherited"; then
6633    test "x$silent" != "xyes" && echo "  setting ac_cv_o_nonblock_inherited to \"yes\""
6634    ac_cv_o_nonblock_inherited="yes"
6635  fi
6636
6637	;;
6638    *-freebsd*)
6639
6640  if test -z "$apr_lock_method"; then
6641    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_FLOCK_SERIALIZE\""
6642    apr_lock_method="USE_FLOCK_SERIALIZE"
6643  fi
6644
6645        if test -x /sbin/sysctl; then
6646            os_version=`/sbin/sysctl -n kern.osreldate`
6647        else
6648            os_version=000000
6649        fi
6650        # 502102 is when libc_r switched to libpthread (aka libkse).
6651        if test $os_version -ge "502102"; then
6652          apr_cv_pthreads_cflags="none"
6653          apr_cv_pthreads_lib="-lpthread"
6654        else
6655
6656  if test "x$CPPFLAGS" = "x"; then
6657    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_THREAD_SAFE -D_REENTRANT\""
6658    CPPFLAGS="-D_THREAD_SAFE -D_REENTRANT"
6659  else
6660    apr_addto_bugger="-D_THREAD_SAFE -D_REENTRANT"
6661    for i in $apr_addto_bugger; do
6662      apr_addto_duplicate="0"
6663      for j in $CPPFLAGS; do
6664        if test "x$i" = "x$j"; then
6665          apr_addto_duplicate="1"
6666          break
6667        fi
6668      done
6669      if test $apr_addto_duplicate = "0"; then
6670        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6671        CPPFLAGS="$CPPFLAGS $i"
6672      fi
6673    done
6674  fi
6675
6676
6677  if test -z "$enable_threads"; then
6678    test "x$silent" != "xyes" && echo "  setting enable_threads to \"no\""
6679    enable_threads="no"
6680  fi
6681
6682        fi
6683        # prevent use of KQueue before FreeBSD 4.8
6684        if test $os_version -lt "480000"; then
6685
6686  if test -z "$ac_cv_func_kqueue"; then
6687    test "x$silent" != "xyes" && echo "  setting ac_cv_func_kqueue to \"no\""
6688    ac_cv_func_kqueue="no"
6689  fi
6690
6691        fi
6692	;;
6693    *-k*bsd*-gnu)
6694
6695  if test "x$CPPFLAGS" = "x"; then
6696    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE\""
6697    CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE"
6698  else
6699    apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE"
6700    for i in $apr_addto_bugger; do
6701      apr_addto_duplicate="0"
6702      for j in $CPPFLAGS; do
6703        if test "x$i" = "x$j"; then
6704          apr_addto_duplicate="1"
6705          break
6706        fi
6707      done
6708      if test $apr_addto_duplicate = "0"; then
6709        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6710        CPPFLAGS="$CPPFLAGS $i"
6711      fi
6712    done
6713  fi
6714
6715        ;;
6716    *-gnu*|*-GNU*)
6717
6718  if test "x$CPPFLAGS" = "x"; then
6719    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE -DHURD\""
6720    CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE -DHURD"
6721  else
6722    apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE -DHURD"
6723    for i in $apr_addto_bugger; do
6724      apr_addto_duplicate="0"
6725      for j in $CPPFLAGS; do
6726        if test "x$i" = "x$j"; then
6727          apr_addto_duplicate="1"
6728          break
6729        fi
6730      done
6731      if test $apr_addto_duplicate = "0"; then
6732        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6733        CPPFLAGS="$CPPFLAGS $i"
6734      fi
6735    done
6736  fi
6737
6738        ;;
6739    *-next-nextstep*)
6740
6741  if test -z "$CFLAGS"; then
6742    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
6743    CFLAGS="-O"
6744  fi
6745
6746
6747  if test "x$CPPFLAGS" = "x"; then
6748    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNEXT\""
6749    CPPFLAGS="-DNEXT"
6750  else
6751    apr_addto_bugger="-DNEXT"
6752    for i in $apr_addto_bugger; do
6753      apr_addto_duplicate="0"
6754      for j in $CPPFLAGS; do
6755        if test "x$i" = "x$j"; then
6756          apr_addto_duplicate="1"
6757          break
6758        fi
6759      done
6760      if test $apr_addto_duplicate = "0"; then
6761        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6762        CPPFLAGS="$CPPFLAGS $i"
6763      fi
6764    done
6765  fi
6766
6767	;;
6768    *-next-openstep*)
6769
6770  if test -z "$CFLAGS"; then
6771    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
6772    CFLAGS="-O"
6773  fi
6774
6775
6776  if test "x$CPPFLAGS" = "x"; then
6777    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNEXT\""
6778    CPPFLAGS="-DNEXT"
6779  else
6780    apr_addto_bugger="-DNEXT"
6781    for i in $apr_addto_bugger; do
6782      apr_addto_duplicate="0"
6783      for j in $CPPFLAGS; do
6784        if test "x$i" = "x$j"; then
6785          apr_addto_duplicate="1"
6786          break
6787        fi
6788      done
6789      if test $apr_addto_duplicate = "0"; then
6790        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6791        CPPFLAGS="$CPPFLAGS $i"
6792      fi
6793    done
6794  fi
6795
6796	;;
6797    *-apple-rhapsody*)
6798
6799  if test "x$CPPFLAGS" = "x"; then
6800    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DRHAPSODY\""
6801    CPPFLAGS="-DRHAPSODY"
6802  else
6803    apr_addto_bugger="-DRHAPSODY"
6804    for i in $apr_addto_bugger; do
6805      apr_addto_duplicate="0"
6806      for j in $CPPFLAGS; do
6807        if test "x$i" = "x$j"; then
6808          apr_addto_duplicate="1"
6809          break
6810        fi
6811      done
6812      if test $apr_addto_duplicate = "0"; then
6813        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6814        CPPFLAGS="$CPPFLAGS $i"
6815      fi
6816    done
6817  fi
6818
6819	;;
6820    *-apple-darwin*)
6821
6822  if test "x$CPPFLAGS" = "x"; then
6823    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp\""
6824    CPPFLAGS="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp"
6825  else
6826    apr_addto_bugger="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp"
6827    for i in $apr_addto_bugger; do
6828      apr_addto_duplicate="0"
6829      for j in $CPPFLAGS; do
6830        if test "x$i" = "x$j"; then
6831          apr_addto_duplicate="1"
6832          break
6833        fi
6834      done
6835      if test $apr_addto_duplicate = "0"; then
6836        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6837        CPPFLAGS="$CPPFLAGS $i"
6838      fi
6839    done
6840  fi
6841
6842
6843  if test -z "$apr_posixsem_is_global"; then
6844    test "x$silent" != "xyes" && echo "  setting apr_posixsem_is_global to \"yes\""
6845    apr_posixsem_is_global="yes"
6846  fi
6847
6848        case $host in
6849            *-apple-darwin[1-9].*)
6850                # APR's use of kqueue has triggered kernel panics for some
6851                # 10.5.x (Darwin 9.x) users when running the entire test suite.
6852                # In 10.4.x, use of kqueue would cause the socket tests to hang.
6853                # 10.6+ (Darwin 10.x is supposed to fix the KQueue issues
6854
6855  if test -z "$ac_cv_func_kqueue"; then
6856    test "x$silent" != "xyes" && echo "  setting ac_cv_func_kqueue to \"no\""
6857    ac_cv_func_kqueue="no"
6858  fi
6859
6860
6861  if test -z "$ac_cv_func_poll"; then
6862    test "x$silent" != "xyes" && echo "  setting ac_cv_func_poll to \"no\""
6863    ac_cv_func_poll="no"
6864  fi
6865 # See issue 34332
6866            ;;
6867            *-apple-darwin1?.*)
6868
6869  if test "x$CPPFLAGS" = "x"; then
6870    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DDARWIN_10\""
6871    CPPFLAGS="-DDARWIN_10"
6872  else
6873    apr_addto_bugger="-DDARWIN_10"
6874    for i in $apr_addto_bugger; do
6875      apr_addto_duplicate="0"
6876      for j in $CPPFLAGS; do
6877        if test "x$i" = "x$j"; then
6878          apr_addto_duplicate="1"
6879          break
6880        fi
6881      done
6882      if test $apr_addto_duplicate = "0"; then
6883        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6884        CPPFLAGS="$CPPFLAGS $i"
6885      fi
6886    done
6887  fi
6888
6889            ;;
6890        esac
6891	;;
6892    *-dec-osf*)
6893
6894  if test "x$CPPFLAGS" = "x"; then
6895    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DOSF1\""
6896    CPPFLAGS="-DOSF1"
6897  else
6898    apr_addto_bugger="-DOSF1"
6899    for i in $apr_addto_bugger; do
6900      apr_addto_duplicate="0"
6901      for j in $CPPFLAGS; do
6902        if test "x$i" = "x$j"; then
6903          apr_addto_duplicate="1"
6904          break
6905        fi
6906      done
6907      if test $apr_addto_duplicate = "0"; then
6908        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6909        CPPFLAGS="$CPPFLAGS $i"
6910      fi
6911    done
6912  fi
6913
6914        # process-shared mutexes don't seem to work in Tru64 5.0
6915
6916  if test -z "$apr_cv_process_shared_works"; then
6917    test "x$silent" != "xyes" && echo "  setting apr_cv_process_shared_works to \"no\""
6918    apr_cv_process_shared_works="no"
6919  fi
6920
6921	;;
6922    *-nto-qnx*)
6923	;;
6924    *-qnx)
6925
6926  if test "x$CPPFLAGS" = "x"; then
6927    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DQNX\""
6928    CPPFLAGS="-DQNX"
6929  else
6930    apr_addto_bugger="-DQNX"
6931    for i in $apr_addto_bugger; do
6932      apr_addto_duplicate="0"
6933      for j in $CPPFLAGS; do
6934        if test "x$i" = "x$j"; then
6935          apr_addto_duplicate="1"
6936          break
6937        fi
6938      done
6939      if test $apr_addto_duplicate = "0"; then
6940        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6941        CPPFLAGS="$CPPFLAGS $i"
6942      fi
6943    done
6944  fi
6945
6946
6947  if test "x$LIBS" = "x"; then
6948    test "x$silent" != "xyes" && echo "  setting LIBS to \"-N128k -lunix\""
6949    LIBS="-N128k -lunix"
6950  else
6951    apr_addto_bugger="-N128k -lunix"
6952    for i in $apr_addto_bugger; do
6953      apr_addto_duplicate="0"
6954      for j in $LIBS; do
6955        if test "x$i" = "x$j"; then
6956          apr_addto_duplicate="1"
6957          break
6958        fi
6959      done
6960      if test $apr_addto_duplicate = "0"; then
6961        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6962        LIBS="$LIBS $i"
6963      fi
6964    done
6965  fi
6966
6967	;;
6968    *-qnx32)
6969
6970  if test "x$CPPFLAGS" = "x"; then
6971    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DQNX\""
6972    CPPFLAGS="-DQNX"
6973  else
6974    apr_addto_bugger="-DQNX"
6975    for i in $apr_addto_bugger; do
6976      apr_addto_duplicate="0"
6977      for j in $CPPFLAGS; do
6978        if test "x$i" = "x$j"; then
6979          apr_addto_duplicate="1"
6980          break
6981        fi
6982      done
6983      if test $apr_addto_duplicate = "0"; then
6984        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6985        CPPFLAGS="$CPPFLAGS $i"
6986      fi
6987    done
6988  fi
6989
6990
6991  if test "x$CFLAGS" = "x"; then
6992    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-mf -3\""
6993    CFLAGS="-mf -3"
6994  else
6995    apr_addto_bugger="-mf -3"
6996    for i in $apr_addto_bugger; do
6997      apr_addto_duplicate="0"
6998      for j in $CFLAGS; do
6999        if test "x$i" = "x$j"; then
7000          apr_addto_duplicate="1"
7001          break
7002        fi
7003      done
7004      if test $apr_addto_duplicate = "0"; then
7005        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
7006        CFLAGS="$CFLAGS $i"
7007      fi
7008    done
7009  fi
7010
7011
7012  if test "x$LIBS" = "x"; then
7013    test "x$silent" != "xyes" && echo "  setting LIBS to \"-N128k -lunix\""
7014    LIBS="-N128k -lunix"
7015  else
7016    apr_addto_bugger="-N128k -lunix"
7017    for i in $apr_addto_bugger; do
7018      apr_addto_duplicate="0"
7019      for j in $LIBS; do
7020        if test "x$i" = "x$j"; then
7021          apr_addto_duplicate="1"
7022          break
7023        fi
7024      done
7025      if test $apr_addto_duplicate = "0"; then
7026        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7027        LIBS="$LIBS $i"
7028      fi
7029    done
7030  fi
7031
7032	;;
7033    *-isc4*)
7034
7035  if test "x$CPPFLAGS" = "x"; then
7036    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-posix -DISC\""
7037    CPPFLAGS="-posix -DISC"
7038  else
7039    apr_addto_bugger="-posix -DISC"
7040    for i in $apr_addto_bugger; do
7041      apr_addto_duplicate="0"
7042      for j in $CPPFLAGS; do
7043        if test "x$i" = "x$j"; then
7044          apr_addto_duplicate="1"
7045          break
7046        fi
7047      done
7048      if test $apr_addto_duplicate = "0"; then
7049        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7050        CPPFLAGS="$CPPFLAGS $i"
7051      fi
7052    done
7053  fi
7054
7055
7056  if test "x$LDFLAGS" = "x"; then
7057    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-posix\""
7058    LDFLAGS="-posix"
7059  else
7060    apr_addto_bugger="-posix"
7061    for i in $apr_addto_bugger; do
7062      apr_addto_duplicate="0"
7063      for j in $LDFLAGS; do
7064        if test "x$i" = "x$j"; then
7065          apr_addto_duplicate="1"
7066          break
7067        fi
7068      done
7069      if test $apr_addto_duplicate = "0"; then
7070        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
7071        LDFLAGS="$LDFLAGS $i"
7072      fi
7073    done
7074  fi
7075
7076
7077  if test "x$LIBS" = "x"; then
7078    test "x$silent" != "xyes" && echo "  setting LIBS to \"-linet\""
7079    LIBS="-linet"
7080  else
7081    apr_addto_bugger="-linet"
7082    for i in $apr_addto_bugger; do
7083      apr_addto_duplicate="0"
7084      for j in $LIBS; do
7085        if test "x$i" = "x$j"; then
7086          apr_addto_duplicate="1"
7087          break
7088        fi
7089      done
7090      if test $apr_addto_duplicate = "0"; then
7091        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7092        LIBS="$LIBS $i"
7093      fi
7094    done
7095  fi
7096
7097	;;
7098    *-sco3.2v[234]*)
7099
7100  if test "x$CPPFLAGS" = "x"; then
7101    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
7102    CPPFLAGS="-DSCO -D_REENTRANT"
7103  else
7104    apr_addto_bugger="-DSCO -D_REENTRANT"
7105    for i in $apr_addto_bugger; do
7106      apr_addto_duplicate="0"
7107      for j in $CPPFLAGS; do
7108        if test "x$i" = "x$j"; then
7109          apr_addto_duplicate="1"
7110          break
7111        fi
7112      done
7113      if test $apr_addto_duplicate = "0"; then
7114        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7115        CPPFLAGS="$CPPFLAGS $i"
7116      fi
7117    done
7118  fi
7119
7120	if test "$GCC" = "no"; then
7121
7122  if test "x$CFLAGS" = "x"; then
7123    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Oacgiltz\""
7124    CFLAGS="-Oacgiltz"
7125  else
7126    apr_addto_bugger="-Oacgiltz"
7127    for i in $apr_addto_bugger; do
7128      apr_addto_duplicate="0"
7129      for j in $CFLAGS; do
7130        if test "x$i" = "x$j"; then
7131          apr_addto_duplicate="1"
7132          break
7133        fi
7134      done
7135      if test $apr_addto_duplicate = "0"; then
7136        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
7137        CFLAGS="$CFLAGS $i"
7138      fi
7139    done
7140  fi
7141
7142	fi
7143
7144  if test "x$LIBS" = "x"; then
7145    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lPW -lmalloc\""
7146    LIBS="-lPW -lmalloc"
7147  else
7148    apr_addto_bugger="-lPW -lmalloc"
7149    for i in $apr_addto_bugger; do
7150      apr_addto_duplicate="0"
7151      for j in $LIBS; do
7152        if test "x$i" = "x$j"; then
7153          apr_addto_duplicate="1"
7154          break
7155        fi
7156      done
7157      if test $apr_addto_duplicate = "0"; then
7158        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7159        LIBS="$LIBS $i"
7160      fi
7161    done
7162  fi
7163
7164	;;
7165    *-sco3.2v5*)
7166
7167  if test "x$CPPFLAGS" = "x"; then
7168    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSCO5 -D_REENTRANT\""
7169    CPPFLAGS="-DSCO5 -D_REENTRANT"
7170  else
7171    apr_addto_bugger="-DSCO5 -D_REENTRANT"
7172    for i in $apr_addto_bugger; do
7173      apr_addto_duplicate="0"
7174      for j in $CPPFLAGS; do
7175        if test "x$i" = "x$j"; then
7176          apr_addto_duplicate="1"
7177          break
7178        fi
7179      done
7180      if test $apr_addto_duplicate = "0"; then
7181        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7182        CPPFLAGS="$CPPFLAGS $i"
7183      fi
7184    done
7185  fi
7186
7187	;;
7188    *-sco_sv*|*-SCO_SV*)
7189
7190  if test "x$CPPFLAGS" = "x"; then
7191    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
7192    CPPFLAGS="-DSCO -D_REENTRANT"
7193  else
7194    apr_addto_bugger="-DSCO -D_REENTRANT"
7195    for i in $apr_addto_bugger; do
7196      apr_addto_duplicate="0"
7197      for j in $CPPFLAGS; do
7198        if test "x$i" = "x$j"; then
7199          apr_addto_duplicate="1"
7200          break
7201        fi
7202      done
7203      if test $apr_addto_duplicate = "0"; then
7204        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7205        CPPFLAGS="$CPPFLAGS $i"
7206      fi
7207    done
7208  fi
7209
7210
7211  if test "x$LIBS" = "x"; then
7212    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lPW -lmalloc\""
7213    LIBS="-lPW -lmalloc"
7214  else
7215    apr_addto_bugger="-lPW -lmalloc"
7216    for i in $apr_addto_bugger; do
7217      apr_addto_duplicate="0"
7218      for j in $LIBS; do
7219        if test "x$i" = "x$j"; then
7220          apr_addto_duplicate="1"
7221          break
7222        fi
7223      done
7224      if test $apr_addto_duplicate = "0"; then
7225        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7226        LIBS="$LIBS $i"
7227      fi
7228    done
7229  fi
7230
7231	;;
7232    *-solaris2*)
7233    	PLATOSVERS=`echo $host | sed 's/^.*solaris2.//'`
7234
7235  if test "x$CPPFLAGS" = "x"; then
7236    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT\""
7237    CPPFLAGS="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
7238  else
7239    apr_addto_bugger="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
7240    for i in $apr_addto_bugger; do
7241      apr_addto_duplicate="0"
7242      for j in $CPPFLAGS; do
7243        if test "x$i" = "x$j"; then
7244          apr_addto_duplicate="1"
7245          break
7246        fi
7247      done
7248      if test $apr_addto_duplicate = "0"; then
7249        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7250        CPPFLAGS="$CPPFLAGS $i"
7251      fi
7252    done
7253  fi
7254
7255        if test $PLATOSVERS -ge 10; then
7256
7257  if test -z "$apr_lock_method"; then
7258    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_PROC_PTHREAD_SERIALIZE\""
7259    apr_lock_method="USE_PROC_PTHREAD_SERIALIZE"
7260  fi
7261
7262        else
7263
7264  if test -z "$apr_lock_method"; then
7265    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_FCNTL_SERIALIZE\""
7266    apr_lock_method="USE_FCNTL_SERIALIZE"
7267  fi
7268
7269        fi
7270        # readdir64_r error handling seems broken on Solaris (at least
7271        # up till 2.8) -- it will return -1 at end-of-directory.
7272
7273  if test -z "$ac_cv_func_readdir64_r"; then
7274    test "x$silent" != "xyes" && echo "  setting ac_cv_func_readdir64_r to \"no\""
7275    ac_cv_func_readdir64_r="no"
7276  fi
7277
7278	;;
7279    *-sunos4*)
7280
7281  if test "x$CPPFLAGS" = "x"; then
7282    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSUNOS4\""
7283    CPPFLAGS="-DSUNOS4"
7284  else
7285    apr_addto_bugger="-DSUNOS4"
7286    for i in $apr_addto_bugger; do
7287      apr_addto_duplicate="0"
7288      for j in $CPPFLAGS; do
7289        if test "x$i" = "x$j"; then
7290          apr_addto_duplicate="1"
7291          break
7292        fi
7293      done
7294      if test $apr_addto_duplicate = "0"; then
7295        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7296        CPPFLAGS="$CPPFLAGS $i"
7297      fi
7298    done
7299  fi
7300
7301	;;
7302    *-unixware1)
7303
7304  if test "x$CPPFLAGS" = "x"; then
7305    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=100\""
7306    CPPFLAGS="-DUW=100"
7307  else
7308    apr_addto_bugger="-DUW=100"
7309    for i in $apr_addto_bugger; do
7310      apr_addto_duplicate="0"
7311      for j in $CPPFLAGS; do
7312        if test "x$i" = "x$j"; then
7313          apr_addto_duplicate="1"
7314          break
7315        fi
7316      done
7317      if test $apr_addto_duplicate = "0"; then
7318        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7319        CPPFLAGS="$CPPFLAGS $i"
7320      fi
7321    done
7322  fi
7323
7324	;;
7325    *-unixware2)
7326
7327  if test "x$CPPFLAGS" = "x"; then
7328    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=200\""
7329    CPPFLAGS="-DUW=200"
7330  else
7331    apr_addto_bugger="-DUW=200"
7332    for i in $apr_addto_bugger; do
7333      apr_addto_duplicate="0"
7334      for j in $CPPFLAGS; do
7335        if test "x$i" = "x$j"; then
7336          apr_addto_duplicate="1"
7337          break
7338        fi
7339      done
7340      if test $apr_addto_duplicate = "0"; then
7341        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7342        CPPFLAGS="$CPPFLAGS $i"
7343      fi
7344    done
7345  fi
7346
7347
7348  if test "x$LIBS" = "x"; then
7349    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
7350    LIBS="-lgen"
7351  else
7352    apr_addto_bugger="-lgen"
7353    for i in $apr_addto_bugger; do
7354      apr_addto_duplicate="0"
7355      for j in $LIBS; do
7356        if test "x$i" = "x$j"; then
7357          apr_addto_duplicate="1"
7358          break
7359        fi
7360      done
7361      if test $apr_addto_duplicate = "0"; then
7362        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7363        LIBS="$LIBS $i"
7364      fi
7365    done
7366  fi
7367
7368	;;
7369    *-unixware211)
7370
7371  if test "x$CPPFLAGS" = "x"; then
7372    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=211\""
7373    CPPFLAGS="-DUW=211"
7374  else
7375    apr_addto_bugger="-DUW=211"
7376    for i in $apr_addto_bugger; do
7377      apr_addto_duplicate="0"
7378      for j in $CPPFLAGS; do
7379        if test "x$i" = "x$j"; then
7380          apr_addto_duplicate="1"
7381          break
7382        fi
7383      done
7384      if test $apr_addto_duplicate = "0"; then
7385        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7386        CPPFLAGS="$CPPFLAGS $i"
7387      fi
7388    done
7389  fi
7390
7391
7392  if test "x$LIBS" = "x"; then
7393    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
7394    LIBS="-lgen"
7395  else
7396    apr_addto_bugger="-lgen"
7397    for i in $apr_addto_bugger; do
7398      apr_addto_duplicate="0"
7399      for j in $LIBS; do
7400        if test "x$i" = "x$j"; then
7401          apr_addto_duplicate="1"
7402          break
7403        fi
7404      done
7405      if test $apr_addto_duplicate = "0"; then
7406        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7407        LIBS="$LIBS $i"
7408      fi
7409    done
7410  fi
7411
7412	;;
7413    *-unixware212)
7414
7415  if test "x$CPPFLAGS" = "x"; then
7416    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=212\""
7417    CPPFLAGS="-DUW=212"
7418  else
7419    apr_addto_bugger="-DUW=212"
7420    for i in $apr_addto_bugger; do
7421      apr_addto_duplicate="0"
7422      for j in $CPPFLAGS; do
7423        if test "x$i" = "x$j"; then
7424          apr_addto_duplicate="1"
7425          break
7426        fi
7427      done
7428      if test $apr_addto_duplicate = "0"; then
7429        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7430        CPPFLAGS="$CPPFLAGS $i"
7431      fi
7432    done
7433  fi
7434
7435
7436  if test "x$LIBS" = "x"; then
7437    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
7438    LIBS="-lgen"
7439  else
7440    apr_addto_bugger="-lgen"
7441    for i in $apr_addto_bugger; do
7442      apr_addto_duplicate="0"
7443      for j in $LIBS; do
7444        if test "x$i" = "x$j"; then
7445          apr_addto_duplicate="1"
7446          break
7447        fi
7448      done
7449      if test $apr_addto_duplicate = "0"; then
7450        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7451        LIBS="$LIBS $i"
7452      fi
7453    done
7454  fi
7455
7456	;;
7457    *-unixware7)
7458
7459  if test "x$CPPFLAGS" = "x"; then
7460    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=700\""
7461    CPPFLAGS="-DUW=700"
7462  else
7463    apr_addto_bugger="-DUW=700"
7464    for i in $apr_addto_bugger; do
7465      apr_addto_duplicate="0"
7466      for j in $CPPFLAGS; do
7467        if test "x$i" = "x$j"; then
7468          apr_addto_duplicate="1"
7469          break
7470        fi
7471      done
7472      if test $apr_addto_duplicate = "0"; then
7473        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7474        CPPFLAGS="$CPPFLAGS $i"
7475      fi
7476    done
7477  fi
7478
7479
7480  if test "x$LIBS" = "x"; then
7481    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
7482    LIBS="-lgen"
7483  else
7484    apr_addto_bugger="-lgen"
7485    for i in $apr_addto_bugger; do
7486      apr_addto_duplicate="0"
7487      for j in $LIBS; do
7488        if test "x$i" = "x$j"; then
7489          apr_addto_duplicate="1"
7490          break
7491        fi
7492      done
7493      if test $apr_addto_duplicate = "0"; then
7494        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7495        LIBS="$LIBS $i"
7496      fi
7497    done
7498  fi
7499
7500	;;
7501    maxion-*-sysv4*)
7502
7503  if test "x$CPPFLAGS" = "x"; then
7504    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
7505    CPPFLAGS="-DSVR4"
7506  else
7507    apr_addto_bugger="-DSVR4"
7508    for i in $apr_addto_bugger; do
7509      apr_addto_duplicate="0"
7510      for j in $CPPFLAGS; do
7511        if test "x$i" = "x$j"; then
7512          apr_addto_duplicate="1"
7513          break
7514        fi
7515      done
7516      if test $apr_addto_duplicate = "0"; then
7517        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7518        CPPFLAGS="$CPPFLAGS $i"
7519      fi
7520    done
7521  fi
7522
7523
7524  if test "x$LIBS" = "x"; then
7525    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc -lgen\""
7526    LIBS="-lc -lgen"
7527  else
7528    apr_addto_bugger="-lc -lgen"
7529    for i in $apr_addto_bugger; do
7530      apr_addto_duplicate="0"
7531      for j in $LIBS; do
7532        if test "x$i" = "x$j"; then
7533          apr_addto_duplicate="1"
7534          break
7535        fi
7536      done
7537      if test $apr_addto_duplicate = "0"; then
7538        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7539        LIBS="$LIBS $i"
7540      fi
7541    done
7542  fi
7543
7544	;;
7545    *-*-powermax*)
7546
7547  if test "x$CPPFLAGS" = "x"; then
7548    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
7549    CPPFLAGS="-DSVR4"
7550  else
7551    apr_addto_bugger="-DSVR4"
7552    for i in $apr_addto_bugger; do
7553      apr_addto_duplicate="0"
7554      for j in $CPPFLAGS; do
7555        if test "x$i" = "x$j"; then
7556          apr_addto_duplicate="1"
7557          break
7558        fi
7559      done
7560      if test $apr_addto_duplicate = "0"; then
7561        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7562        CPPFLAGS="$CPPFLAGS $i"
7563      fi
7564    done
7565  fi
7566
7567
7568  if test "x$LIBS" = "x"; then
7569    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
7570    LIBS="-lgen"
7571  else
7572    apr_addto_bugger="-lgen"
7573    for i in $apr_addto_bugger; do
7574      apr_addto_duplicate="0"
7575      for j in $LIBS; do
7576        if test "x$i" = "x$j"; then
7577          apr_addto_duplicate="1"
7578          break
7579        fi
7580      done
7581      if test $apr_addto_duplicate = "0"; then
7582        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7583        LIBS="$LIBS $i"
7584      fi
7585    done
7586  fi
7587
7588	;;
7589    TPF)
7590
7591  if test "x$CPPFLAGS" = "x"; then
7592    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DTPF -D_POSIX_SOURCE\""
7593    CPPFLAGS="-DTPF -D_POSIX_SOURCE"
7594  else
7595    apr_addto_bugger="-DTPF -D_POSIX_SOURCE"
7596    for i in $apr_addto_bugger; do
7597      apr_addto_duplicate="0"
7598      for j in $CPPFLAGS; do
7599        if test "x$i" = "x$j"; then
7600          apr_addto_duplicate="1"
7601          break
7602        fi
7603      done
7604      if test $apr_addto_duplicate = "0"; then
7605        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7606        CPPFLAGS="$CPPFLAGS $i"
7607      fi
7608    done
7609  fi
7610
7611       ;;
7612    bs2000*-siemens-sysv*)
7613
7614  if test -z "$CFLAGS"; then
7615    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
7616    CFLAGS="-O"
7617  fi
7618
7619
7620  if test "x$CPPFLAGS" = "x"; then
7621    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -D_KMEMUSER\""
7622    CPPFLAGS="-DSVR4 -D_XPG_IV -D_KMEMUSER"
7623  else
7624    apr_addto_bugger="-DSVR4 -D_XPG_IV -D_KMEMUSER"
7625    for i in $apr_addto_bugger; do
7626      apr_addto_duplicate="0"
7627      for j in $CPPFLAGS; do
7628        if test "x$i" = "x$j"; then
7629          apr_addto_duplicate="1"
7630          break
7631        fi
7632      done
7633      if test $apr_addto_duplicate = "0"; then
7634        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7635        CPPFLAGS="$CPPFLAGS $i"
7636      fi
7637    done
7638  fi
7639
7640
7641  if test "x$LIBS" = "x"; then
7642    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lsocket\""
7643    LIBS="-lsocket"
7644  else
7645    apr_addto_bugger="-lsocket"
7646    for i in $apr_addto_bugger; do
7647      apr_addto_duplicate="0"
7648      for j in $LIBS; do
7649        if test "x$i" = "x$j"; then
7650          apr_addto_duplicate="1"
7651          break
7652        fi
7653      done
7654      if test $apr_addto_duplicate = "0"; then
7655        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7656        LIBS="$LIBS $i"
7657      fi
7658    done
7659  fi
7660
7661
7662  if test -z "$enable_threads"; then
7663    test "x$silent" != "xyes" && echo "  setting enable_threads to \"no\""
7664    enable_threads="no"
7665  fi
7666
7667	;;
7668    *-siemens-sysv4*)
7669
7670  if test "x$CPPFLAGS" = "x"; then
7671    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT\""
7672    CPPFLAGS="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
7673  else
7674    apr_addto_bugger="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
7675    for i in $apr_addto_bugger; do
7676      apr_addto_duplicate="0"
7677      for j in $CPPFLAGS; do
7678        if test "x$i" = "x$j"; then
7679          apr_addto_duplicate="1"
7680          break
7681        fi
7682      done
7683      if test $apr_addto_duplicate = "0"; then
7684        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7685        CPPFLAGS="$CPPFLAGS $i"
7686      fi
7687    done
7688  fi
7689
7690
7691  if test "x$LIBS" = "x"; then
7692    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
7693    LIBS="-lc"
7694  else
7695    apr_addto_bugger="-lc"
7696    for i in $apr_addto_bugger; do
7697      apr_addto_duplicate="0"
7698      for j in $LIBS; do
7699        if test "x$i" = "x$j"; then
7700          apr_addto_duplicate="1"
7701          break
7702        fi
7703      done
7704      if test $apr_addto_duplicate = "0"; then
7705        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7706        LIBS="$LIBS $i"
7707      fi
7708    done
7709  fi
7710
7711	;;
7712    pyramid-pyramid-svr4)
7713
7714  if test "x$CPPFLAGS" = "x"; then
7715    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -DNO_LONG_DOUBLE\""
7716    CPPFLAGS="-DSVR4 -DNO_LONG_DOUBLE"
7717  else
7718    apr_addto_bugger="-DSVR4 -DNO_LONG_DOUBLE"
7719    for i in $apr_addto_bugger; do
7720      apr_addto_duplicate="0"
7721      for j in $CPPFLAGS; do
7722        if test "x$i" = "x$j"; then
7723          apr_addto_duplicate="1"
7724          break
7725        fi
7726      done
7727      if test $apr_addto_duplicate = "0"; then
7728        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7729        CPPFLAGS="$CPPFLAGS $i"
7730      fi
7731    done
7732  fi
7733
7734
7735  if test "x$LIBS" = "x"; then
7736    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
7737    LIBS="-lc"
7738  else
7739    apr_addto_bugger="-lc"
7740    for i in $apr_addto_bugger; do
7741      apr_addto_duplicate="0"
7742      for j in $LIBS; do
7743        if test "x$i" = "x$j"; then
7744          apr_addto_duplicate="1"
7745          break
7746        fi
7747      done
7748      if test $apr_addto_duplicate = "0"; then
7749        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7750        LIBS="$LIBS $i"
7751      fi
7752    done
7753  fi
7754
7755	;;
7756    DS/90\ 7000-*-sysv4*)
7757
7758  if test "x$CPPFLAGS" = "x"; then
7759    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUXPDS\""
7760    CPPFLAGS="-DUXPDS"
7761  else
7762    apr_addto_bugger="-DUXPDS"
7763    for i in $apr_addto_bugger; do
7764      apr_addto_duplicate="0"
7765      for j in $CPPFLAGS; do
7766        if test "x$i" = "x$j"; then
7767          apr_addto_duplicate="1"
7768          break
7769        fi
7770      done
7771      if test $apr_addto_duplicate = "0"; then
7772        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7773        CPPFLAGS="$CPPFLAGS $i"
7774      fi
7775    done
7776  fi
7777
7778	;;
7779    *-tandem-sysv4*)
7780
7781  if test "x$CPPFLAGS" = "x"; then
7782    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
7783    CPPFLAGS="-DSVR4"
7784  else
7785    apr_addto_bugger="-DSVR4"
7786    for i in $apr_addto_bugger; do
7787      apr_addto_duplicate="0"
7788      for j in $CPPFLAGS; do
7789        if test "x$i" = "x$j"; then
7790          apr_addto_duplicate="1"
7791          break
7792        fi
7793      done
7794      if test $apr_addto_duplicate = "0"; then
7795        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7796        CPPFLAGS="$CPPFLAGS $i"
7797      fi
7798    done
7799  fi
7800
7801	;;
7802    *-ncr-sysv4)
7803
7804  if test "x$CPPFLAGS" = "x"; then
7805    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
7806    CPPFLAGS="-DSVR4 -DMPRAS"
7807  else
7808    apr_addto_bugger="-DSVR4 -DMPRAS"
7809    for i in $apr_addto_bugger; do
7810      apr_addto_duplicate="0"
7811      for j in $CPPFLAGS; do
7812        if test "x$i" = "x$j"; then
7813          apr_addto_duplicate="1"
7814          break
7815        fi
7816      done
7817      if test $apr_addto_duplicate = "0"; then
7818        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7819        CPPFLAGS="$CPPFLAGS $i"
7820      fi
7821    done
7822  fi
7823
7824
7825  if test "x$LIBS" = "x"; then
7826    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc -L/usr/ucblib -lucb\""
7827    LIBS="-lc -L/usr/ucblib -lucb"
7828  else
7829    apr_addto_bugger="-lc -L/usr/ucblib -lucb"
7830    for i in $apr_addto_bugger; do
7831      apr_addto_duplicate="0"
7832      for j in $LIBS; do
7833        if test "x$i" = "x$j"; then
7834          apr_addto_duplicate="1"
7835          break
7836        fi
7837      done
7838      if test $apr_addto_duplicate = "0"; then
7839        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7840        LIBS="$LIBS $i"
7841      fi
7842    done
7843  fi
7844
7845	;;
7846    *-sysv4*)
7847
7848  if test "x$CPPFLAGS" = "x"; then
7849    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
7850    CPPFLAGS="-DSVR4"
7851  else
7852    apr_addto_bugger="-DSVR4"
7853    for i in $apr_addto_bugger; do
7854      apr_addto_duplicate="0"
7855      for j in $CPPFLAGS; do
7856        if test "x$i" = "x$j"; then
7857          apr_addto_duplicate="1"
7858          break
7859        fi
7860      done
7861      if test $apr_addto_duplicate = "0"; then
7862        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7863        CPPFLAGS="$CPPFLAGS $i"
7864      fi
7865    done
7866  fi
7867
7868
7869  if test "x$LIBS" = "x"; then
7870    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
7871    LIBS="-lc"
7872  else
7873    apr_addto_bugger="-lc"
7874    for i in $apr_addto_bugger; do
7875      apr_addto_duplicate="0"
7876      for j in $LIBS; do
7877        if test "x$i" = "x$j"; then
7878          apr_addto_duplicate="1"
7879          break
7880        fi
7881      done
7882      if test $apr_addto_duplicate = "0"; then
7883        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7884        LIBS="$LIBS $i"
7885      fi
7886    done
7887  fi
7888
7889	;;
7890    88k-encore-sysv4)
7891
7892  if test "x$CPPFLAGS" = "x"; then
7893    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -DENCORE\""
7894    CPPFLAGS="-DSVR4 -DENCORE"
7895  else
7896    apr_addto_bugger="-DSVR4 -DENCORE"
7897    for i in $apr_addto_bugger; do
7898      apr_addto_duplicate="0"
7899      for j in $CPPFLAGS; do
7900        if test "x$i" = "x$j"; then
7901          apr_addto_duplicate="1"
7902          break
7903        fi
7904      done
7905      if test $apr_addto_duplicate = "0"; then
7906        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7907        CPPFLAGS="$CPPFLAGS $i"
7908      fi
7909    done
7910  fi
7911
7912
7913  if test "x$LIBS" = "x"; then
7914    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lPW\""
7915    LIBS="-lPW"
7916  else
7917    apr_addto_bugger="-lPW"
7918    for i in $apr_addto_bugger; do
7919      apr_addto_duplicate="0"
7920      for j in $LIBS; do
7921        if test "x$i" = "x$j"; then
7922          apr_addto_duplicate="1"
7923          break
7924        fi
7925      done
7926      if test $apr_addto_duplicate = "0"; then
7927        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7928        LIBS="$LIBS $i"
7929      fi
7930    done
7931  fi
7932
7933	;;
7934    *-uts*)
7935	PLATOSVERS=`echo $host | sed 's/^.*,//'`
7936	case $PLATOSVERS in
7937	    2*)
7938  if test "x$CPPFLAGS" = "x"; then
7939    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUTS21\""
7940    CPPFLAGS="-DUTS21"
7941  else
7942    apr_addto_bugger="-DUTS21"
7943    for i in $apr_addto_bugger; do
7944      apr_addto_duplicate="0"
7945      for j in $CPPFLAGS; do
7946        if test "x$i" = "x$j"; then
7947          apr_addto_duplicate="1"
7948          break
7949        fi
7950      done
7951      if test $apr_addto_duplicate = "0"; then
7952        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7953        CPPFLAGS="$CPPFLAGS $i"
7954      fi
7955    done
7956  fi
7957
7958
7959  if test "x$CFLAGS" = "x"; then
7960    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Xa -eft\""
7961    CFLAGS="-Xa -eft"
7962  else
7963    apr_addto_bugger="-Xa -eft"
7964    for i in $apr_addto_bugger; do
7965      apr_addto_duplicate="0"
7966      for j in $CFLAGS; do
7967        if test "x$i" = "x$j"; then
7968          apr_addto_duplicate="1"
7969          break
7970        fi
7971      done
7972      if test $apr_addto_duplicate = "0"; then
7973        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
7974        CFLAGS="$CFLAGS $i"
7975      fi
7976    done
7977  fi
7978
7979
7980  if test "x$LIBS" = "x"; then
7981    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbsd -la\""
7982    LIBS="-lbsd -la"
7983  else
7984    apr_addto_bugger="-lbsd -la"
7985    for i in $apr_addto_bugger; do
7986      apr_addto_duplicate="0"
7987      for j in $LIBS; do
7988        if test "x$i" = "x$j"; then
7989          apr_addto_duplicate="1"
7990          break
7991        fi
7992      done
7993      if test $apr_addto_duplicate = "0"; then
7994        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7995        LIBS="$LIBS $i"
7996      fi
7997    done
7998  fi
7999
8000	        ;;
8001	    *)
8002  if test "x$CPPFLAGS" = "x"; then
8003    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
8004    CPPFLAGS="-DSVR4"
8005  else
8006    apr_addto_bugger="-DSVR4"
8007    for i in $apr_addto_bugger; do
8008      apr_addto_duplicate="0"
8009      for j in $CPPFLAGS; do
8010        if test "x$i" = "x$j"; then
8011          apr_addto_duplicate="1"
8012          break
8013        fi
8014      done
8015      if test $apr_addto_duplicate = "0"; then
8016        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8017        CPPFLAGS="$CPPFLAGS $i"
8018      fi
8019    done
8020  fi
8021
8022
8023  if test "x$CFLAGS" = "x"; then
8024    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Xa\""
8025    CFLAGS="-Xa"
8026  else
8027    apr_addto_bugger="-Xa"
8028    for i in $apr_addto_bugger; do
8029      apr_addto_duplicate="0"
8030      for j in $CFLAGS; do
8031        if test "x$i" = "x$j"; then
8032          apr_addto_duplicate="1"
8033          break
8034        fi
8035      done
8036      if test $apr_addto_duplicate = "0"; then
8037        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8038        CFLAGS="$CFLAGS $i"
8039      fi
8040    done
8041  fi
8042
8043	        ;;
8044	esac
8045	;;
8046    *-ultrix)
8047
8048  if test "x$CPPFLAGS" = "x"; then
8049    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DULTRIX\""
8050    CPPFLAGS="-DULTRIX"
8051  else
8052    apr_addto_bugger="-DULTRIX"
8053    for i in $apr_addto_bugger; do
8054      apr_addto_duplicate="0"
8055      for j in $CPPFLAGS; do
8056        if test "x$i" = "x$j"; then
8057          apr_addto_duplicate="1"
8058          break
8059        fi
8060      done
8061      if test $apr_addto_duplicate = "0"; then
8062        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8063        CPPFLAGS="$CPPFLAGS $i"
8064      fi
8065    done
8066  fi
8067
8068
8069  test "x$silent" != "xyes" && echo "  forcing SHELL to \"/bin/sh5\""
8070  SHELL="/bin/sh5"
8071
8072	;;
8073    *powerpc-tenon-machten*)
8074
8075  if test "x$LDFLAGS" = "x"; then
8076    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Xlstack=0x14000 -Xldelcsect\""
8077    LDFLAGS="-Xlstack=0x14000 -Xldelcsect"
8078  else
8079    apr_addto_bugger="-Xlstack=0x14000 -Xldelcsect"
8080    for i in $apr_addto_bugger; do
8081      apr_addto_duplicate="0"
8082      for j in $LDFLAGS; do
8083        if test "x$i" = "x$j"; then
8084          apr_addto_duplicate="1"
8085          break
8086        fi
8087      done
8088      if test $apr_addto_duplicate = "0"; then
8089        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
8090        LDFLAGS="$LDFLAGS $i"
8091      fi
8092    done
8093  fi
8094
8095	;;
8096    *-machten*)
8097
8098  if test "x$LDFLAGS" = "x"; then
8099    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-stack 0x14000\""
8100    LDFLAGS="-stack 0x14000"
8101  else
8102    apr_addto_bugger="-stack 0x14000"
8103    for i in $apr_addto_bugger; do
8104      apr_addto_duplicate="0"
8105      for j in $LDFLAGS; do
8106        if test "x$i" = "x$j"; then
8107          apr_addto_duplicate="1"
8108          break
8109        fi
8110      done
8111      if test $apr_addto_duplicate = "0"; then
8112        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
8113        LDFLAGS="$LDFLAGS $i"
8114      fi
8115    done
8116  fi
8117
8118	;;
8119    *convex-v11*)
8120
8121  if test "x$CPPFLAGS" = "x"; then
8122    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DCONVEXOS11\""
8123    CPPFLAGS="-DCONVEXOS11"
8124  else
8125    apr_addto_bugger="-DCONVEXOS11"
8126    for i in $apr_addto_bugger; do
8127      apr_addto_duplicate="0"
8128      for j in $CPPFLAGS; do
8129        if test "x$i" = "x$j"; then
8130          apr_addto_duplicate="1"
8131          break
8132        fi
8133      done
8134      if test $apr_addto_duplicate = "0"; then
8135        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8136        CPPFLAGS="$CPPFLAGS $i"
8137      fi
8138    done
8139  fi
8140
8141
8142  if test -z "$CFLAGS"; then
8143    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O1\""
8144    CFLAGS="-O1"
8145  fi
8146
8147
8148  if test "x$CFLAGS" = "x"; then
8149    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-ext\""
8150    CFLAGS="-ext"
8151  else
8152    apr_addto_bugger="-ext"
8153    for i in $apr_addto_bugger; do
8154      apr_addto_duplicate="0"
8155      for j in $CFLAGS; do
8156        if test "x$i" = "x$j"; then
8157          apr_addto_duplicate="1"
8158          break
8159        fi
8160      done
8161      if test $apr_addto_duplicate = "0"; then
8162        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8163        CFLAGS="$CFLAGS $i"
8164      fi
8165    done
8166  fi
8167
8168	;;
8169    i860-intel-osf1)
8170
8171  if test "x$CPPFLAGS" = "x"; then
8172    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DPARAGON\""
8173    CPPFLAGS="-DPARAGON"
8174  else
8175    apr_addto_bugger="-DPARAGON"
8176    for i in $apr_addto_bugger; do
8177      apr_addto_duplicate="0"
8178      for j in $CPPFLAGS; do
8179        if test "x$i" = "x$j"; then
8180          apr_addto_duplicate="1"
8181          break
8182        fi
8183      done
8184      if test $apr_addto_duplicate = "0"; then
8185        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8186        CPPFLAGS="$CPPFLAGS $i"
8187      fi
8188    done
8189  fi
8190
8191	;;
8192    *-sequent-ptx2.*.*)
8193
8194  if test "x$CPPFLAGS" = "x"; then
8195    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=20\""
8196    CPPFLAGS="-DSEQUENT=20"
8197  else
8198    apr_addto_bugger="-DSEQUENT=20"
8199    for i in $apr_addto_bugger; do
8200      apr_addto_duplicate="0"
8201      for j in $CPPFLAGS; do
8202        if test "x$i" = "x$j"; then
8203          apr_addto_duplicate="1"
8204          break
8205        fi
8206      done
8207      if test $apr_addto_duplicate = "0"; then
8208        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8209        CPPFLAGS="$CPPFLAGS $i"
8210      fi
8211    done
8212  fi
8213
8214
8215  if test "x$CFLAGS" = "x"; then
8216    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
8217    CFLAGS="-Wc,-pw"
8218  else
8219    apr_addto_bugger="-Wc,-pw"
8220    for i in $apr_addto_bugger; do
8221      apr_addto_duplicate="0"
8222      for j in $CFLAGS; do
8223        if test "x$i" = "x$j"; then
8224          apr_addto_duplicate="1"
8225          break
8226        fi
8227      done
8228      if test $apr_addto_duplicate = "0"; then
8229        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8230        CFLAGS="$CFLAGS $i"
8231      fi
8232    done
8233  fi
8234
8235
8236  if test "x$LIBS" = "x"; then
8237    test "x$silent" != "xyes" && echo "  setting LIBS to \"-linet -lc -lseq\""
8238    LIBS="-linet -lc -lseq"
8239  else
8240    apr_addto_bugger="-linet -lc -lseq"
8241    for i in $apr_addto_bugger; do
8242      apr_addto_duplicate="0"
8243      for j in $LIBS; do
8244        if test "x$i" = "x$j"; then
8245          apr_addto_duplicate="1"
8246          break
8247        fi
8248      done
8249      if test $apr_addto_duplicate = "0"; then
8250        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8251        LIBS="$LIBS $i"
8252      fi
8253    done
8254  fi
8255
8256	;;
8257    *-sequent-ptx4.0.*)
8258
8259  if test "x$CPPFLAGS" = "x"; then
8260    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=40\""
8261    CPPFLAGS="-DSEQUENT=40"
8262  else
8263    apr_addto_bugger="-DSEQUENT=40"
8264    for i in $apr_addto_bugger; do
8265      apr_addto_duplicate="0"
8266      for j in $CPPFLAGS; do
8267        if test "x$i" = "x$j"; then
8268          apr_addto_duplicate="1"
8269          break
8270        fi
8271      done
8272      if test $apr_addto_duplicate = "0"; then
8273        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8274        CPPFLAGS="$CPPFLAGS $i"
8275      fi
8276    done
8277  fi
8278
8279
8280  if test "x$CFLAGS" = "x"; then
8281    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
8282    CFLAGS="-Wc,-pw"
8283  else
8284    apr_addto_bugger="-Wc,-pw"
8285    for i in $apr_addto_bugger; do
8286      apr_addto_duplicate="0"
8287      for j in $CFLAGS; do
8288        if test "x$i" = "x$j"; then
8289          apr_addto_duplicate="1"
8290          break
8291        fi
8292      done
8293      if test $apr_addto_duplicate = "0"; then
8294        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8295        CFLAGS="$CFLAGS $i"
8296      fi
8297    done
8298  fi
8299
8300
8301  if test "x$LIBS" = "x"; then
8302    test "x$silent" != "xyes" && echo "  setting LIBS to \"-linet -lc\""
8303    LIBS="-linet -lc"
8304  else
8305    apr_addto_bugger="-linet -lc"
8306    for i in $apr_addto_bugger; do
8307      apr_addto_duplicate="0"
8308      for j in $LIBS; do
8309        if test "x$i" = "x$j"; then
8310          apr_addto_duplicate="1"
8311          break
8312        fi
8313      done
8314      if test $apr_addto_duplicate = "0"; then
8315        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8316        LIBS="$LIBS $i"
8317      fi
8318    done
8319  fi
8320
8321	;;
8322    *-sequent-ptx4.[123].*)
8323
8324  if test "x$CPPFLAGS" = "x"; then
8325    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=41\""
8326    CPPFLAGS="-DSEQUENT=41"
8327  else
8328    apr_addto_bugger="-DSEQUENT=41"
8329    for i in $apr_addto_bugger; do
8330      apr_addto_duplicate="0"
8331      for j in $CPPFLAGS; do
8332        if test "x$i" = "x$j"; then
8333          apr_addto_duplicate="1"
8334          break
8335        fi
8336      done
8337      if test $apr_addto_duplicate = "0"; then
8338        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8339        CPPFLAGS="$CPPFLAGS $i"
8340      fi
8341    done
8342  fi
8343
8344
8345  if test "x$CFLAGS" = "x"; then
8346    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
8347    CFLAGS="-Wc,-pw"
8348  else
8349    apr_addto_bugger="-Wc,-pw"
8350    for i in $apr_addto_bugger; do
8351      apr_addto_duplicate="0"
8352      for j in $CFLAGS; do
8353        if test "x$i" = "x$j"; then
8354          apr_addto_duplicate="1"
8355          break
8356        fi
8357      done
8358      if test $apr_addto_duplicate = "0"; then
8359        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8360        CFLAGS="$CFLAGS $i"
8361      fi
8362    done
8363  fi
8364
8365
8366  if test "x$LIBS" = "x"; then
8367    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
8368    LIBS="-lc"
8369  else
8370    apr_addto_bugger="-lc"
8371    for i in $apr_addto_bugger; do
8372      apr_addto_duplicate="0"
8373      for j in $LIBS; do
8374        if test "x$i" = "x$j"; then
8375          apr_addto_duplicate="1"
8376          break
8377        fi
8378      done
8379      if test $apr_addto_duplicate = "0"; then
8380        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8381        LIBS="$LIBS $i"
8382      fi
8383    done
8384  fi
8385
8386	;;
8387    *-sequent-ptx4.4.*)
8388
8389  if test "x$CPPFLAGS" = "x"; then
8390    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=44\""
8391    CPPFLAGS="-DSEQUENT=44"
8392  else
8393    apr_addto_bugger="-DSEQUENT=44"
8394    for i in $apr_addto_bugger; do
8395      apr_addto_duplicate="0"
8396      for j in $CPPFLAGS; do
8397        if test "x$i" = "x$j"; then
8398          apr_addto_duplicate="1"
8399          break
8400        fi
8401      done
8402      if test $apr_addto_duplicate = "0"; then
8403        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8404        CPPFLAGS="$CPPFLAGS $i"
8405      fi
8406    done
8407  fi
8408
8409
8410  if test "x$CFLAGS" = "x"; then
8411    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
8412    CFLAGS="-Wc,-pw"
8413  else
8414    apr_addto_bugger="-Wc,-pw"
8415    for i in $apr_addto_bugger; do
8416      apr_addto_duplicate="0"
8417      for j in $CFLAGS; do
8418        if test "x$i" = "x$j"; then
8419          apr_addto_duplicate="1"
8420          break
8421        fi
8422      done
8423      if test $apr_addto_duplicate = "0"; then
8424        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8425        CFLAGS="$CFLAGS $i"
8426      fi
8427    done
8428  fi
8429
8430
8431  if test "x$LIBS" = "x"; then
8432    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
8433    LIBS="-lc"
8434  else
8435    apr_addto_bugger="-lc"
8436    for i in $apr_addto_bugger; do
8437      apr_addto_duplicate="0"
8438      for j in $LIBS; do
8439        if test "x$i" = "x$j"; then
8440          apr_addto_duplicate="1"
8441          break
8442        fi
8443      done
8444      if test $apr_addto_duplicate = "0"; then
8445        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8446        LIBS="$LIBS $i"
8447      fi
8448    done
8449  fi
8450
8451	;;
8452    *-sequent-ptx4.5.*)
8453
8454  if test "x$CPPFLAGS" = "x"; then
8455    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=45\""
8456    CPPFLAGS="-DSEQUENT=45"
8457  else
8458    apr_addto_bugger="-DSEQUENT=45"
8459    for i in $apr_addto_bugger; do
8460      apr_addto_duplicate="0"
8461      for j in $CPPFLAGS; do
8462        if test "x$i" = "x$j"; then
8463          apr_addto_duplicate="1"
8464          break
8465        fi
8466      done
8467      if test $apr_addto_duplicate = "0"; then
8468        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8469        CPPFLAGS="$CPPFLAGS $i"
8470      fi
8471    done
8472  fi
8473
8474
8475  if test "x$CFLAGS" = "x"; then
8476    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
8477    CFLAGS="-Wc,-pw"
8478  else
8479    apr_addto_bugger="-Wc,-pw"
8480    for i in $apr_addto_bugger; do
8481      apr_addto_duplicate="0"
8482      for j in $CFLAGS; do
8483        if test "x$i" = "x$j"; then
8484          apr_addto_duplicate="1"
8485          break
8486        fi
8487      done
8488      if test $apr_addto_duplicate = "0"; then
8489        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8490        CFLAGS="$CFLAGS $i"
8491      fi
8492    done
8493  fi
8494
8495
8496  if test "x$LIBS" = "x"; then
8497    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
8498    LIBS="-lc"
8499  else
8500    apr_addto_bugger="-lc"
8501    for i in $apr_addto_bugger; do
8502      apr_addto_duplicate="0"
8503      for j in $LIBS; do
8504        if test "x$i" = "x$j"; then
8505          apr_addto_duplicate="1"
8506          break
8507        fi
8508      done
8509      if test $apr_addto_duplicate = "0"; then
8510        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8511        LIBS="$LIBS $i"
8512      fi
8513    done
8514  fi
8515
8516	;;
8517    *-sequent-ptx5.0.*)
8518
8519  if test "x$CPPFLAGS" = "x"; then
8520    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=50\""
8521    CPPFLAGS="-DSEQUENT=50"
8522  else
8523    apr_addto_bugger="-DSEQUENT=50"
8524    for i in $apr_addto_bugger; do
8525      apr_addto_duplicate="0"
8526      for j in $CPPFLAGS; do
8527        if test "x$i" = "x$j"; then
8528          apr_addto_duplicate="1"
8529          break
8530        fi
8531      done
8532      if test $apr_addto_duplicate = "0"; then
8533        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8534        CPPFLAGS="$CPPFLAGS $i"
8535      fi
8536    done
8537  fi
8538
8539
8540  if test "x$CFLAGS" = "x"; then
8541    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
8542    CFLAGS="-Wc,-pw"
8543  else
8544    apr_addto_bugger="-Wc,-pw"
8545    for i in $apr_addto_bugger; do
8546      apr_addto_duplicate="0"
8547      for j in $CFLAGS; do
8548        if test "x$i" = "x$j"; then
8549          apr_addto_duplicate="1"
8550          break
8551        fi
8552      done
8553      if test $apr_addto_duplicate = "0"; then
8554        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8555        CFLAGS="$CFLAGS $i"
8556      fi
8557    done
8558  fi
8559
8560
8561  if test "x$LIBS" = "x"; then
8562    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
8563    LIBS="-lc"
8564  else
8565    apr_addto_bugger="-lc"
8566    for i in $apr_addto_bugger; do
8567      apr_addto_duplicate="0"
8568      for j in $LIBS; do
8569        if test "x$i" = "x$j"; then
8570          apr_addto_duplicate="1"
8571          break
8572        fi
8573      done
8574      if test $apr_addto_duplicate = "0"; then
8575        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8576        LIBS="$LIBS $i"
8577      fi
8578    done
8579  fi
8580
8581	;;
8582    *NEWS-OS*)
8583
8584  if test "x$CPPFLAGS" = "x"; then
8585    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNEWSOS\""
8586    CPPFLAGS="-DNEWSOS"
8587  else
8588    apr_addto_bugger="-DNEWSOS"
8589    for i in $apr_addto_bugger; do
8590      apr_addto_duplicate="0"
8591      for j in $CPPFLAGS; do
8592        if test "x$i" = "x$j"; then
8593          apr_addto_duplicate="1"
8594          break
8595        fi
8596      done
8597      if test $apr_addto_duplicate = "0"; then
8598        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8599        CPPFLAGS="$CPPFLAGS $i"
8600      fi
8601    done
8602  fi
8603
8604	;;
8605    *-riscix)
8606
8607  if test "x$CPPFLAGS" = "x"; then
8608    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DRISCIX\""
8609    CPPFLAGS="-DRISCIX"
8610  else
8611    apr_addto_bugger="-DRISCIX"
8612    for i in $apr_addto_bugger; do
8613      apr_addto_duplicate="0"
8614      for j in $CPPFLAGS; do
8615        if test "x$i" = "x$j"; then
8616          apr_addto_duplicate="1"
8617          break
8618        fi
8619      done
8620      if test $apr_addto_duplicate = "0"; then
8621        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8622        CPPFLAGS="$CPPFLAGS $i"
8623      fi
8624    done
8625  fi
8626
8627
8628  if test -z "$CFLAGS"; then
8629    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
8630    CFLAGS="-O"
8631  fi
8632
8633	;;
8634    *-irix*)
8635
8636  if test "x$CPPFLAGS" = "x"; then
8637    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_POSIX_THREAD_SAFE_FUNCTIONS\""
8638    CPPFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
8639  else
8640    apr_addto_bugger="-D_POSIX_THREAD_SAFE_FUNCTIONS"
8641    for i in $apr_addto_bugger; do
8642      apr_addto_duplicate="0"
8643      for j in $CPPFLAGS; do
8644        if test "x$i" = "x$j"; then
8645          apr_addto_duplicate="1"
8646          break
8647        fi
8648      done
8649      if test $apr_addto_duplicate = "0"; then
8650        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8651        CPPFLAGS="$CPPFLAGS $i"
8652      fi
8653    done
8654  fi
8655
8656	;;
8657    *beos*)
8658
8659  if test "x$CPPFLAGS" = "x"; then
8660    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DBEOS\""
8661    CPPFLAGS="-DBEOS"
8662  else
8663    apr_addto_bugger="-DBEOS"
8664    for i in $apr_addto_bugger; do
8665      apr_addto_duplicate="0"
8666      for j in $CPPFLAGS; do
8667        if test "x$i" = "x$j"; then
8668          apr_addto_duplicate="1"
8669          break
8670        fi
8671      done
8672      if test $apr_addto_duplicate = "0"; then
8673        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8674        CPPFLAGS="$CPPFLAGS $i"
8675      fi
8676    done
8677  fi
8678
8679        PLATOSVERS=`uname -r`
8680
8681  if test -z "$apr_process_lock_is_global"; then
8682    test "x$silent" != "xyes" && echo "  setting apr_process_lock_is_global to \"yes\""
8683    apr_process_lock_is_global="yes"
8684  fi
8685
8686        case $PLATOSVERS in
8687            5.0.4)
8688
8689  if test "x$LDFLAGS" = "x"; then
8690    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L/boot/beos/system/lib\""
8691    LDFLAGS="-L/boot/beos/system/lib"
8692  else
8693    apr_addto_bugger="-L/boot/beos/system/lib"
8694    for i in $apr_addto_bugger; do
8695      apr_addto_duplicate="0"
8696      for j in $LDFLAGS; do
8697        if test "x$i" = "x$j"; then
8698          apr_addto_duplicate="1"
8699          break
8700        fi
8701      done
8702      if test $apr_addto_duplicate = "0"; then
8703        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
8704        LDFLAGS="$LDFLAGS $i"
8705      fi
8706    done
8707  fi
8708
8709
8710  if test "x$LIBS" = "x"; then
8711    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbind -lsocket\""
8712    LIBS="-lbind -lsocket"
8713  else
8714    apr_addto_bugger="-lbind -lsocket"
8715    for i in $apr_addto_bugger; do
8716      apr_addto_duplicate="0"
8717      for j in $LIBS; do
8718        if test "x$i" = "x$j"; then
8719          apr_addto_duplicate="1"
8720          break
8721        fi
8722      done
8723      if test $apr_addto_duplicate = "0"; then
8724        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8725        LIBS="$LIBS $i"
8726      fi
8727    done
8728  fi
8729
8730
8731  if test "x$CPPFLAGS" = "x"; then
8732    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DBONE7\""
8733    CPPFLAGS="-DBONE7"
8734  else
8735    apr_addto_bugger="-DBONE7"
8736    for i in $apr_addto_bugger; do
8737      apr_addto_duplicate="0"
8738      for j in $CPPFLAGS; do
8739        if test "x$i" = "x$j"; then
8740          apr_addto_duplicate="1"
8741          break
8742        fi
8743      done
8744      if test $apr_addto_duplicate = "0"; then
8745        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8746        CPPFLAGS="$CPPFLAGS $i"
8747      fi
8748    done
8749  fi
8750
8751                ;;
8752            5.1)
8753
8754  if test "x$LDFLAGS" = "x"; then
8755    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L/boot/beos/system/lib\""
8756    LDFLAGS="-L/boot/beos/system/lib"
8757  else
8758    apr_addto_bugger="-L/boot/beos/system/lib"
8759    for i in $apr_addto_bugger; do
8760      apr_addto_duplicate="0"
8761      for j in $LDFLAGS; do
8762        if test "x$i" = "x$j"; then
8763          apr_addto_duplicate="1"
8764          break
8765        fi
8766      done
8767      if test $apr_addto_duplicate = "0"; then
8768        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
8769        LDFLAGS="$LDFLAGS $i"
8770      fi
8771    done
8772  fi
8773
8774
8775  if test "x$LIBS" = "x"; then
8776    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbind -lsocket\""
8777    LIBS="-lbind -lsocket"
8778  else
8779    apr_addto_bugger="-lbind -lsocket"
8780    for i in $apr_addto_bugger; do
8781      apr_addto_duplicate="0"
8782      for j in $LIBS; do
8783        if test "x$i" = "x$j"; then
8784          apr_addto_duplicate="1"
8785          break
8786        fi
8787      done
8788      if test $apr_addto_duplicate = "0"; then
8789        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8790        LIBS="$LIBS $i"
8791      fi
8792    done
8793  fi
8794
8795                ;;
8796	esac
8797
8798  if test "x$CPPFLAGS" = "x"; then
8799    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSIGPROCMASK_SETS_THREAD_MASK\""
8800    CPPFLAGS="-DSIGPROCMASK_SETS_THREAD_MASK"
8801  else
8802    apr_addto_bugger="-DSIGPROCMASK_SETS_THREAD_MASK"
8803    for i in $apr_addto_bugger; do
8804      apr_addto_duplicate="0"
8805      for j in $CPPFLAGS; do
8806        if test "x$i" = "x$j"; then
8807          apr_addto_duplicate="1"
8808          break
8809        fi
8810      done
8811      if test $apr_addto_duplicate = "0"; then
8812        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8813        CPPFLAGS="$CPPFLAGS $i"
8814      fi
8815    done
8816  fi
8817
8818        ;;
8819    4850-*.*)
8820
8821  if test "x$CPPFLAGS" = "x"; then
8822    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
8823    CPPFLAGS="-DSVR4 -DMPRAS"
8824  else
8825    apr_addto_bugger="-DSVR4 -DMPRAS"
8826    for i in $apr_addto_bugger; do
8827      apr_addto_duplicate="0"
8828      for j in $CPPFLAGS; do
8829        if test "x$i" = "x$j"; then
8830          apr_addto_duplicate="1"
8831          break
8832        fi
8833      done
8834      if test $apr_addto_duplicate = "0"; then
8835        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8836        CPPFLAGS="$CPPFLAGS $i"
8837      fi
8838    done
8839  fi
8840
8841
8842  if test "x$LIBS" = "x"; then
8843    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc -L/usr/ucblib -lucb\""
8844    LIBS="-lc -L/usr/ucblib -lucb"
8845  else
8846    apr_addto_bugger="-lc -L/usr/ucblib -lucb"
8847    for i in $apr_addto_bugger; do
8848      apr_addto_duplicate="0"
8849      for j in $LIBS; do
8850        if test "x$i" = "x$j"; then
8851          apr_addto_duplicate="1"
8852          break
8853        fi
8854      done
8855      if test $apr_addto_duplicate = "0"; then
8856        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8857        LIBS="$LIBS $i"
8858      fi
8859    done
8860  fi
8861
8862	;;
8863    drs6000*)
8864
8865  if test "x$CPPFLAGS" = "x"; then
8866    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
8867    CPPFLAGS="-DSVR4"
8868  else
8869    apr_addto_bugger="-DSVR4"
8870    for i in $apr_addto_bugger; do
8871      apr_addto_duplicate="0"
8872      for j in $CPPFLAGS; do
8873        if test "x$i" = "x$j"; then
8874          apr_addto_duplicate="1"
8875          break
8876        fi
8877      done
8878      if test $apr_addto_duplicate = "0"; then
8879        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8880        CPPFLAGS="$CPPFLAGS $i"
8881      fi
8882    done
8883  fi
8884
8885
8886  if test "x$LIBS" = "x"; then
8887    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc -L/usr/ucblib -lucb\""
8888    LIBS="-lc -L/usr/ucblib -lucb"
8889  else
8890    apr_addto_bugger="-lc -L/usr/ucblib -lucb"
8891    for i in $apr_addto_bugger; do
8892      apr_addto_duplicate="0"
8893      for j in $LIBS; do
8894        if test "x$i" = "x$j"; then
8895          apr_addto_duplicate="1"
8896          break
8897        fi
8898      done
8899      if test $apr_addto_duplicate = "0"; then
8900        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8901        LIBS="$LIBS $i"
8902      fi
8903    done
8904  fi
8905
8906	;;
8907    m88k-*-CX/SX|CYBER)
8908
8909  if test "x$CPPFLAGS" = "x"; then
8910    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_CX_SX\""
8911    CPPFLAGS="-D_CX_SX"
8912  else
8913    apr_addto_bugger="-D_CX_SX"
8914    for i in $apr_addto_bugger; do
8915      apr_addto_duplicate="0"
8916      for j in $CPPFLAGS; do
8917        if test "x$i" = "x$j"; then
8918          apr_addto_duplicate="1"
8919          break
8920        fi
8921      done
8922      if test $apr_addto_duplicate = "0"; then
8923        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8924        CPPFLAGS="$CPPFLAGS $i"
8925      fi
8926    done
8927  fi
8928
8929
8930  if test "x$CFLAGS" = "x"; then
8931    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Xa\""
8932    CFLAGS="-Xa"
8933  else
8934    apr_addto_bugger="-Xa"
8935    for i in $apr_addto_bugger; do
8936      apr_addto_duplicate="0"
8937      for j in $CFLAGS; do
8938        if test "x$i" = "x$j"; then
8939          apr_addto_duplicate="1"
8940          break
8941        fi
8942      done
8943      if test $apr_addto_duplicate = "0"; then
8944        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8945        CFLAGS="$CFLAGS $i"
8946      fi
8947    done
8948  fi
8949
8950	;;
8951    *-tandem-oss)
8952
8953  if test "x$CPPFLAGS" = "x"; then
8954    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1\""
8955    CPPFLAGS="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
8956  else
8957    apr_addto_bugger="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
8958    for i in $apr_addto_bugger; do
8959      apr_addto_duplicate="0"
8960      for j in $CPPFLAGS; do
8961        if test "x$i" = "x$j"; then
8962          apr_addto_duplicate="1"
8963          break
8964        fi
8965      done
8966      if test $apr_addto_duplicate = "0"; then
8967        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8968        CPPFLAGS="$CPPFLAGS $i"
8969      fi
8970    done
8971  fi
8972
8973	;;
8974    *-ibm-os390)
8975
8976  if test -z "$apr_lock_method"; then
8977    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
8978    apr_lock_method="USE_SYSVSEM_SERIALIZE"
8979  fi
8980
8981
8982  if test -z "$apr_sysvsem_is_global"; then
8983    test "x$silent" != "xyes" && echo "  setting apr_sysvsem_is_global to \"yes\""
8984    apr_sysvsem_is_global="yes"
8985  fi
8986
8987
8988  if test -z "$apr_gethostbyname_is_thread_safe"; then
8989    test "x$silent" != "xyes" && echo "  setting apr_gethostbyname_is_thread_safe to \"yes\""
8990    apr_gethostbyname_is_thread_safe="yes"
8991  fi
8992
8993
8994  if test -z "$apr_gethostbyaddr_is_thread_safe"; then
8995    test "x$silent" != "xyes" && echo "  setting apr_gethostbyaddr_is_thread_safe to \"yes\""
8996    apr_gethostbyaddr_is_thread_safe="yes"
8997  fi
8998
8999
9000  if test -z "$apr_getservbyname_is_thread_safe"; then
9001    test "x$silent" != "xyes" && echo "  setting apr_getservbyname_is_thread_safe to \"yes\""
9002    apr_getservbyname_is_thread_safe="yes"
9003  fi
9004
9005
9006$as_echo "#define HAVE_ZOS_PTHREADS 1" >>confdefs.h
9007
9008
9009  if test "x$CPPFLAGS" = "x"; then
9010    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1\""
9011    CPPFLAGS="-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
9012  else
9013    apr_addto_bugger="-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
9014    for i in $apr_addto_bugger; do
9015      apr_addto_duplicate="0"
9016      for j in $CPPFLAGS; do
9017        if test "x$i" = "x$j"; then
9018          apr_addto_duplicate="1"
9019          break
9020        fi
9021      done
9022      if test $apr_addto_duplicate = "0"; then
9023        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
9024        CPPFLAGS="$CPPFLAGS $i"
9025      fi
9026    done
9027  fi
9028
9029        ;;
9030    *-ibm-as400)
9031
9032  if test -z "$apr_lock_method"; then
9033    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
9034    apr_lock_method="USE_SYSVSEM_SERIALIZE"
9035  fi
9036
9037
9038  if test -z "$apr_process_lock_is_global"; then
9039    test "x$silent" != "xyes" && echo "  setting apr_process_lock_is_global to \"yes\""
9040    apr_process_lock_is_global="yes"
9041  fi
9042
9043
9044  if test -z "$apr_gethostbyname_is_thread_safe"; then
9045    test "x$silent" != "xyes" && echo "  setting apr_gethostbyname_is_thread_safe to \"yes\""
9046    apr_gethostbyname_is_thread_safe="yes"
9047  fi
9048
9049
9050  if test -z "$apr_gethostbyaddr_is_thread_safe"; then
9051    test "x$silent" != "xyes" && echo "  setting apr_gethostbyaddr_is_thread_safe to \"yes\""
9052    apr_gethostbyaddr_is_thread_safe="yes"
9053  fi
9054
9055
9056  if test -z "$apr_getservbyname_is_thread_safe"; then
9057    test "x$silent" != "xyes" && echo "  setting apr_getservbyname_is_thread_safe to \"yes\""
9058    apr_getservbyname_is_thread_safe="yes"
9059  fi
9060
9061        ;;
9062    *cygwin*)
9063
9064  if test "x$CPPFLAGS" = "x"; then
9065    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DCYGWIN\""
9066    CPPFLAGS="-DCYGWIN"
9067  else
9068    apr_addto_bugger="-DCYGWIN"
9069    for i in $apr_addto_bugger; do
9070      apr_addto_duplicate="0"
9071      for j in $CPPFLAGS; do
9072        if test "x$i" = "x$j"; then
9073          apr_addto_duplicate="1"
9074          break
9075        fi
9076      done
9077      if test $apr_addto_duplicate = "0"; then
9078        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
9079        CPPFLAGS="$CPPFLAGS $i"
9080      fi
9081    done
9082  fi
9083
9084	;;
9085    *mingw*)
9086
9087  if test "x$CPPFLAGS" = "x"; then
9088    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DWIN32 -D__MSVCRT__\""
9089    CPPFLAGS="-DWIN32 -D__MSVCRT__"
9090  else
9091    apr_addto_bugger="-DWIN32 -D__MSVCRT__"
9092    for i in $apr_addto_bugger; do
9093      apr_addto_duplicate="0"
9094      for j in $CPPFLAGS; do
9095        if test "x$i" = "x$j"; then
9096          apr_addto_duplicate="1"
9097          break
9098        fi
9099      done
9100      if test $apr_addto_duplicate = "0"; then
9101        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
9102        CPPFLAGS="$CPPFLAGS $i"
9103      fi
9104    done
9105  fi
9106
9107
9108  if test "x$LDFLAGS" = "x"; then
9109    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Wl,--enable-auto-import,--subsystem,console\""
9110    LDFLAGS="-Wl,--enable-auto-import,--subsystem,console"
9111  else
9112    apr_addto_bugger="-Wl,--enable-auto-import,--subsystem,console"
9113    for i in $apr_addto_bugger; do
9114      apr_addto_duplicate="0"
9115      for j in $LDFLAGS; do
9116        if test "x$i" = "x$j"; then
9117          apr_addto_duplicate="1"
9118          break
9119        fi
9120      done
9121      if test $apr_addto_duplicate = "0"; then
9122        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
9123        LDFLAGS="$LDFLAGS $i"
9124      fi
9125    done
9126  fi
9127
9128
9129  if test -z "$have_unicode_fs"; then
9130    test "x$silent" != "xyes" && echo "  setting have_unicode_fs to \"1\""
9131    have_unicode_fs="1"
9132  fi
9133
9134
9135  if test -z "$have_proc_invoked"; then
9136    test "x$silent" != "xyes" && echo "  setting have_proc_invoked to \"1\""
9137    have_proc_invoked="1"
9138  fi
9139
9140
9141  if test -z "$apr_lock_method"; then
9142    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"win32\""
9143    apr_lock_method="win32"
9144  fi
9145
9146
9147  if test -z "$apr_process_lock_is_global"; then
9148    test "x$silent" != "xyes" && echo "  setting apr_process_lock_is_global to \"yes\""
9149    apr_process_lock_is_global="yes"
9150  fi
9151
9152
9153  if test -z "$apr_cv_use_lfs64"; then
9154    test "x$silent" != "xyes" && echo "  setting apr_cv_use_lfs64 to \"yes\""
9155    apr_cv_use_lfs64="yes"
9156  fi
9157
9158
9159  if test -z "$apr_cv_osuuid"; then
9160    test "x$silent" != "xyes" && echo "  setting apr_cv_osuuid to \"yes\""
9161    apr_cv_osuuid="yes"
9162  fi
9163
9164
9165  if test -z "$apr_cv_tcp_nodelay_with_cork"; then
9166    test "x$silent" != "xyes" && echo "  setting apr_cv_tcp_nodelay_with_cork to \"no\""
9167    apr_cv_tcp_nodelay_with_cork="no"
9168  fi
9169
9170
9171  if test -z "$apr_thread_func"; then
9172    test "x$silent" != "xyes" && echo "  setting apr_thread_func to \"__stdcall\""
9173    apr_thread_func="__stdcall"
9174  fi
9175
9176
9177  if test -z "$ac_cv_o_nonblock_inherited"; then
9178    test "x$silent" != "xyes" && echo "  setting ac_cv_o_nonblock_inherited to \"yes\""
9179    ac_cv_o_nonblock_inherited="yes"
9180  fi
9181
9182
9183  if test -z "$ac_cv_tcp_nodelay_inherited"; then
9184    test "x$silent" != "xyes" && echo "  setting ac_cv_tcp_nodelay_inherited to \"yes\""
9185    ac_cv_tcp_nodelay_inherited="yes"
9186  fi
9187
9188
9189  if test -z "$ac_cv_file__dev_zero"; then
9190    test "x$silent" != "xyes" && echo "  setting ac_cv_file__dev_zero to \"no\""
9191    ac_cv_file__dev_zero="no"
9192  fi
9193
9194
9195  if test -z "$ac_cv_func_setpgrp_void"; then
9196    test "x$silent" != "xyes" && echo "  setting ac_cv_func_setpgrp_void to \"no\""
9197    ac_cv_func_setpgrp_void="no"
9198  fi
9199
9200
9201  if test -z "$ac_cv_func_mmap"; then
9202    test "x$silent" != "xyes" && echo "  setting ac_cv_func_mmap to \"yes\""
9203    ac_cv_func_mmap="yes"
9204  fi
9205
9206
9207  if test -z "$ac_cv_define_sockaddr_in6"; then
9208    test "x$silent" != "xyes" && echo "  setting ac_cv_define_sockaddr_in6 to \"yes\""
9209    ac_cv_define_sockaddr_in6="yes"
9210  fi
9211
9212
9213  if test -z "$ac_cv_working_getaddrinfo"; then
9214    test "x$silent" != "xyes" && echo "  setting ac_cv_working_getaddrinfo to \"yes\""
9215    ac_cv_working_getaddrinfo="yes"
9216  fi
9217
9218
9219  if test -z "$ac_cv_working_getnameinfo"; then
9220    test "x$silent" != "xyes" && echo "  setting ac_cv_working_getnameinfo to \"yes\""
9221    ac_cv_working_getnameinfo="yes"
9222  fi
9223
9224
9225  if test -z "$ac_cv_func_gai_strerror"; then
9226    test "x$silent" != "xyes" && echo "  setting ac_cv_func_gai_strerror to \"yes\""
9227    ac_cv_func_gai_strerror="yes"
9228  fi
9229
9230        case $host in
9231            *mingw32*)
9232
9233  if test -z "$apr_has_xthread_files"; then
9234    test "x$silent" != "xyes" && echo "  setting apr_has_xthread_files to \"1\""
9235    apr_has_xthread_files="1"
9236  fi
9237
9238
9239  if test -z "$apr_has_user"; then
9240    test "x$silent" != "xyes" && echo "  setting apr_has_user to \"1\""
9241    apr_has_user="1"
9242  fi
9243
9244
9245  if test -z "$apr_procattr_user_set_requires_password"; then
9246    test "x$silent" != "xyes" && echo "  setting apr_procattr_user_set_requires_password to \"1\""
9247    apr_procattr_user_set_requires_password="1"
9248  fi
9249
9250
9251  if test -z "$ac_cv_func_sendfile"; then
9252    test "x$silent" != "xyes" && echo "  setting ac_cv_func_sendfile to \"yes\""
9253    ac_cv_func_sendfile="yes"
9254  fi
9255
9256                ;;
9257            *mingwce)
9258
9259  if test -z "$apr_has_xthread_files"; then
9260    test "x$silent" != "xyes" && echo "  setting apr_has_xthread_files to \"0\""
9261    apr_has_xthread_files="0"
9262  fi
9263
9264
9265  if test -z "$apr_has_user"; then
9266    test "x$silent" != "xyes" && echo "  setting apr_has_user to \"0\""
9267    apr_has_user="0"
9268  fi
9269
9270
9271  if test -z "$apr_procattr_user_set_requires_password"; then
9272    test "x$silent" != "xyes" && echo "  setting apr_procattr_user_set_requires_password to \"0\""
9273    apr_procattr_user_set_requires_password="0"
9274  fi
9275
9276
9277  if test -z "$ac_cv_func_sendfile"; then
9278    test "x$silent" != "xyes" && echo "  setting ac_cv_func_sendfile to \"no\""
9279    ac_cv_func_sendfile="no"
9280  fi
9281
9282                ;;
9283        esac
9284        ;;
9285  esac
9286
9287fi
9288
9289
9290DEFAULT_OSDIR="unix"
9291echo "(Default will be ${DEFAULT_OSDIR})"
9292
9293apr_modules="file_io network_io threadproc misc locks time mmap shmem user memory atomic poll support random"
9294
9295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9296$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9297set x ${MAKE-make}
9298ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9299if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9300  $as_echo_n "(cached) " >&6
9301else
9302  cat >conftest.make <<\_ACEOF
9303SHELL = /bin/sh
9304all:
9305	@echo '@@@%%%=$(MAKE)=@@@%%%'
9306_ACEOF
9307# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9308case `${MAKE-make} -f conftest.make 2>/dev/null` in
9309  *@@@%%%=?*=@@@%%%*)
9310    eval ac_cv_prog_make_${ac_make}_set=yes;;
9311  *)
9312    eval ac_cv_prog_make_${ac_make}_set=no;;
9313esac
9314rm -f conftest.make
9315fi
9316if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9318$as_echo "yes" >&6; }
9319  SET_MAKE=
9320else
9321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9322$as_echo "no" >&6; }
9323  SET_MAKE="MAKE=${MAKE-make}"
9324fi
9325
9326ac_ext=c
9327ac_cpp='$CPP $CPPFLAGS'
9328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9330ac_compiler_gnu=$ac_cv_c_compiler_gnu
9331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9332$as_echo_n "checking how to run the C preprocessor... " >&6; }
9333# On Suns, sometimes $CPP names a directory.
9334if test -n "$CPP" && test -d "$CPP"; then
9335  CPP=
9336fi
9337if test -z "$CPP"; then
9338  if ${ac_cv_prog_CPP+:} false; then :
9339  $as_echo_n "(cached) " >&6
9340else
9341      # Double quotes because CPP needs to be expanded
9342    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9343    do
9344      ac_preproc_ok=false
9345for ac_c_preproc_warn_flag in '' yes
9346do
9347  # Use a header file that comes with gcc, so configuring glibc
9348  # with a fresh cross-compiler works.
9349  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9350  # <limits.h> exists even on freestanding compilers.
9351  # On the NeXT, cc -E runs the code through the compiler's parser,
9352  # not just through cpp. "Syntax error" is here to catch this case.
9353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354/* end confdefs.h.  */
9355#ifdef __STDC__
9356# include <limits.h>
9357#else
9358# include <assert.h>
9359#endif
9360		     Syntax error
9361_ACEOF
9362if ac_fn_c_try_cpp "$LINENO"; then :
9363
9364else
9365  # Broken: fails on valid input.
9366continue
9367fi
9368rm -f conftest.err conftest.i conftest.$ac_ext
9369
9370  # OK, works on sane cases.  Now check whether nonexistent headers
9371  # can be detected and how.
9372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373/* end confdefs.h.  */
9374#include <ac_nonexistent.h>
9375_ACEOF
9376if ac_fn_c_try_cpp "$LINENO"; then :
9377  # Broken: success on invalid input.
9378continue
9379else
9380  # Passes both tests.
9381ac_preproc_ok=:
9382break
9383fi
9384rm -f conftest.err conftest.i conftest.$ac_ext
9385
9386done
9387# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9388rm -f conftest.i conftest.err conftest.$ac_ext
9389if $ac_preproc_ok; then :
9390  break
9391fi
9392
9393    done
9394    ac_cv_prog_CPP=$CPP
9395
9396fi
9397  CPP=$ac_cv_prog_CPP
9398else
9399  ac_cv_prog_CPP=$CPP
9400fi
9401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9402$as_echo "$CPP" >&6; }
9403ac_preproc_ok=false
9404for ac_c_preproc_warn_flag in '' yes
9405do
9406  # Use a header file that comes with gcc, so configuring glibc
9407  # with a fresh cross-compiler works.
9408  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9409  # <limits.h> exists even on freestanding compilers.
9410  # On the NeXT, cc -E runs the code through the compiler's parser,
9411  # not just through cpp. "Syntax error" is here to catch this case.
9412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413/* end confdefs.h.  */
9414#ifdef __STDC__
9415# include <limits.h>
9416#else
9417# include <assert.h>
9418#endif
9419		     Syntax error
9420_ACEOF
9421if ac_fn_c_try_cpp "$LINENO"; then :
9422
9423else
9424  # Broken: fails on valid input.
9425continue
9426fi
9427rm -f conftest.err conftest.i conftest.$ac_ext
9428
9429  # OK, works on sane cases.  Now check whether nonexistent headers
9430  # can be detected and how.
9431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432/* end confdefs.h.  */
9433#include <ac_nonexistent.h>
9434_ACEOF
9435if ac_fn_c_try_cpp "$LINENO"; then :
9436  # Broken: success on invalid input.
9437continue
9438else
9439  # Passes both tests.
9440ac_preproc_ok=:
9441break
9442fi
9443rm -f conftest.err conftest.i conftest.$ac_ext
9444
9445done
9446# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9447rm -f conftest.i conftest.err conftest.$ac_ext
9448if $ac_preproc_ok; then :
9449
9450else
9451  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9453as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9454See \`config.log' for more details" "$LINENO" 5; }
9455fi
9456
9457ac_ext=c
9458ac_cpp='$CPP $CPPFLAGS'
9459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9461ac_compiler_gnu=$ac_cv_c_compiler_gnu
9462
9463for ac_prog in gawk mawk nawk awk
9464do
9465  # Extract the first word of "$ac_prog", so it can be a program name with args.
9466set dummy $ac_prog; ac_word=$2
9467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9468$as_echo_n "checking for $ac_word... " >&6; }
9469if ${ac_cv_prog_AWK+:} false; then :
9470  $as_echo_n "(cached) " >&6
9471else
9472  if test -n "$AWK"; then
9473  ac_cv_prog_AWK="$AWK" # Let the user override the test.
9474else
9475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9476for as_dir in $PATH
9477do
9478  IFS=$as_save_IFS
9479  test -z "$as_dir" && as_dir=.
9480    for ac_exec_ext in '' $ac_executable_extensions; do
9481  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9482    ac_cv_prog_AWK="$ac_prog"
9483    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9484    break 2
9485  fi
9486done
9487  done
9488IFS=$as_save_IFS
9489
9490fi
9491fi
9492AWK=$ac_cv_prog_AWK
9493if test -n "$AWK"; then
9494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9495$as_echo "$AWK" >&6; }
9496else
9497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9498$as_echo "no" >&6; }
9499fi
9500
9501
9502  test -n "$AWK" && break
9503done
9504
9505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9506$as_echo_n "checking whether ln -s works... " >&6; }
9507LN_S=$as_ln_s
9508if test "$LN_S" = "ln -s"; then
9509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9510$as_echo "yes" >&6; }
9511else
9512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9513$as_echo "no, using $LN_S" >&6; }
9514fi
9515
9516if test -n "$ac_tool_prefix"; then
9517  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9518set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9520$as_echo_n "checking for $ac_word... " >&6; }
9521if ${ac_cv_prog_RANLIB+:} false; then :
9522  $as_echo_n "(cached) " >&6
9523else
9524  if test -n "$RANLIB"; then
9525  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9526else
9527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9528for as_dir in $PATH
9529do
9530  IFS=$as_save_IFS
9531  test -z "$as_dir" && as_dir=.
9532    for ac_exec_ext in '' $ac_executable_extensions; do
9533  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9534    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9536    break 2
9537  fi
9538done
9539  done
9540IFS=$as_save_IFS
9541
9542fi
9543fi
9544RANLIB=$ac_cv_prog_RANLIB
9545if test -n "$RANLIB"; then
9546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9547$as_echo "$RANLIB" >&6; }
9548else
9549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9550$as_echo "no" >&6; }
9551fi
9552
9553
9554fi
9555if test -z "$ac_cv_prog_RANLIB"; then
9556  ac_ct_RANLIB=$RANLIB
9557  # Extract the first word of "ranlib", so it can be a program name with args.
9558set dummy ranlib; ac_word=$2
9559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9560$as_echo_n "checking for $ac_word... " >&6; }
9561if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9562  $as_echo_n "(cached) " >&6
9563else
9564  if test -n "$ac_ct_RANLIB"; then
9565  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9566else
9567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9568for as_dir in $PATH
9569do
9570  IFS=$as_save_IFS
9571  test -z "$as_dir" && as_dir=.
9572    for ac_exec_ext in '' $ac_executable_extensions; do
9573  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9574    ac_cv_prog_ac_ct_RANLIB="ranlib"
9575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9576    break 2
9577  fi
9578done
9579  done
9580IFS=$as_save_IFS
9581
9582fi
9583fi
9584ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9585if test -n "$ac_ct_RANLIB"; then
9586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9587$as_echo "$ac_ct_RANLIB" >&6; }
9588else
9589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9590$as_echo "no" >&6; }
9591fi
9592
9593  if test "x$ac_ct_RANLIB" = x; then
9594    RANLIB=":"
9595  else
9596    case $cross_compiling:$ac_tool_warned in
9597yes:)
9598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9600ac_tool_warned=yes ;;
9601esac
9602    RANLIB=$ac_ct_RANLIB
9603  fi
9604else
9605  RANLIB="$ac_cv_prog_RANLIB"
9606fi
9607
9608# Find a good install program.  We prefer a C program (faster),
9609# so one script is as good as another.  But avoid the broken or
9610# incompatible versions:
9611# SysV /etc/install, /usr/sbin/install
9612# SunOS /usr/etc/install
9613# IRIX /sbin/install
9614# AIX /bin/install
9615# AmigaOS /C/install, which installs bootblocks on floppy discs
9616# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9617# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9618# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9619# OS/2's system install, which has a completely different semantic
9620# ./install, which can be erroneously created by make from ./install.sh.
9621# Reject install programs that cannot install multiple files.
9622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9623$as_echo_n "checking for a BSD-compatible install... " >&6; }
9624if test -z "$INSTALL"; then
9625if ${ac_cv_path_install+:} false; then :
9626  $as_echo_n "(cached) " >&6
9627else
9628  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629for as_dir in $PATH
9630do
9631  IFS=$as_save_IFS
9632  test -z "$as_dir" && as_dir=.
9633    # Account for people who put trailing slashes in PATH elements.
9634case $as_dir/ in #((
9635  ./ | .// | /[cC]/* | \
9636  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9637  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9638  /usr/ucb/* ) ;;
9639  *)
9640    # OSF1 and SCO ODT 3.0 have their own names for install.
9641    # Don't use installbsd from OSF since it installs stuff as root
9642    # by default.
9643    for ac_prog in ginstall scoinst install; do
9644      for ac_exec_ext in '' $ac_executable_extensions; do
9645	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9646	  if test $ac_prog = install &&
9647	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9648	    # AIX install.  It has an incompatible calling convention.
9649	    :
9650	  elif test $ac_prog = install &&
9651	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9652	    # program-specific install script used by HP pwplus--don't use.
9653	    :
9654	  else
9655	    rm -rf conftest.one conftest.two conftest.dir
9656	    echo one > conftest.one
9657	    echo two > conftest.two
9658	    mkdir conftest.dir
9659	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9660	      test -s conftest.one && test -s conftest.two &&
9661	      test -s conftest.dir/conftest.one &&
9662	      test -s conftest.dir/conftest.two
9663	    then
9664	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9665	      break 3
9666	    fi
9667	  fi
9668	fi
9669      done
9670    done
9671    ;;
9672esac
9673
9674  done
9675IFS=$as_save_IFS
9676
9677rm -rf conftest.one conftest.two conftest.dir
9678
9679fi
9680  if test "${ac_cv_path_install+set}" = set; then
9681    INSTALL=$ac_cv_path_install
9682  else
9683    # As a last resort, use the slow shell script.  Don't cache a
9684    # value for INSTALL within a source directory, because that will
9685    # break other packages using the cache if that directory is
9686    # removed, or if the value is a relative name.
9687    INSTALL=$ac_install_sh
9688  fi
9689fi
9690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9691$as_echo "$INSTALL" >&6; }
9692
9693# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9694# It thinks the first close brace ends the variable substitution.
9695test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9696
9697test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9698
9699test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9700
9701# Extract the first word of "rm", so it can be a program name with args.
9702set dummy rm; ac_word=$2
9703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9704$as_echo_n "checking for $ac_word... " >&6; }
9705if ${ac_cv_prog_RM+:} false; then :
9706  $as_echo_n "(cached) " >&6
9707else
9708  if test -n "$RM"; then
9709  ac_cv_prog_RM="$RM" # Let the user override the test.
9710else
9711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9712for as_dir in $PATH
9713do
9714  IFS=$as_save_IFS
9715  test -z "$as_dir" && as_dir=.
9716    for ac_exec_ext in '' $ac_executable_extensions; do
9717  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9718    ac_cv_prog_RM="rm"
9719    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9720    break 2
9721  fi
9722done
9723  done
9724IFS=$as_save_IFS
9725
9726fi
9727fi
9728RM=$ac_cv_prog_RM
9729if test -n "$RM"; then
9730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9731$as_echo "$RM" >&6; }
9732else
9733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9734$as_echo "no" >&6; }
9735fi
9736
9737
9738# Extract the first word of "as", so it can be a program name with args.
9739set dummy as; ac_word=$2
9740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9741$as_echo_n "checking for $ac_word... " >&6; }
9742if ${ac_cv_prog_AS+:} false; then :
9743  $as_echo_n "(cached) " >&6
9744else
9745  if test -n "$AS"; then
9746  ac_cv_prog_AS="$AS" # Let the user override the test.
9747else
9748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749for as_dir in $PATH
9750do
9751  IFS=$as_save_IFS
9752  test -z "$as_dir" && as_dir=.
9753    for ac_exec_ext in '' $ac_executable_extensions; do
9754  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9755    ac_cv_prog_AS="as"
9756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9757    break 2
9758  fi
9759done
9760  done
9761IFS=$as_save_IFS
9762
9763fi
9764fi
9765AS=$ac_cv_prog_AS
9766if test -n "$AS"; then
9767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9768$as_echo "$AS" >&6; }
9769else
9770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9771$as_echo "no" >&6; }
9772fi
9773
9774
9775# Extract the first word of "cpp", so it can be a program name with args.
9776set dummy cpp; ac_word=$2
9777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9778$as_echo_n "checking for $ac_word... " >&6; }
9779if ${ac_cv_prog_ASCPP+:} false; then :
9780  $as_echo_n "(cached) " >&6
9781else
9782  if test -n "$ASCPP"; then
9783  ac_cv_prog_ASCPP="$ASCPP" # Let the user override the test.
9784else
9785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9786for as_dir in $PATH
9787do
9788  IFS=$as_save_IFS
9789  test -z "$as_dir" && as_dir=.
9790    for ac_exec_ext in '' $ac_executable_extensions; do
9791  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9792    ac_cv_prog_ASCPP="cpp"
9793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9794    break 2
9795  fi
9796done
9797  done
9798IFS=$as_save_IFS
9799
9800fi
9801fi
9802ASCPP=$ac_cv_prog_ASCPP
9803if test -n "$ASCPP"; then
9804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCPP" >&5
9805$as_echo "$ASCPP" >&6; }
9806else
9807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9808$as_echo "no" >&6; }
9809fi
9810
9811
9812if test -n "$ac_tool_prefix"; then
9813  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9814set dummy ${ac_tool_prefix}ar; ac_word=$2
9815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9816$as_echo_n "checking for $ac_word... " >&6; }
9817if ${ac_cv_prog_AR+:} false; then :
9818  $as_echo_n "(cached) " >&6
9819else
9820  if test -n "$AR"; then
9821  ac_cv_prog_AR="$AR" # Let the user override the test.
9822else
9823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824for as_dir in $PATH
9825do
9826  IFS=$as_save_IFS
9827  test -z "$as_dir" && as_dir=.
9828    for ac_exec_ext in '' $ac_executable_extensions; do
9829  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9830    ac_cv_prog_AR="${ac_tool_prefix}ar"
9831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9832    break 2
9833  fi
9834done
9835  done
9836IFS=$as_save_IFS
9837
9838fi
9839fi
9840AR=$ac_cv_prog_AR
9841if test -n "$AR"; then
9842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9843$as_echo "$AR" >&6; }
9844else
9845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9846$as_echo "no" >&6; }
9847fi
9848
9849
9850fi
9851if test -z "$ac_cv_prog_AR"; then
9852  ac_ct_AR=$AR
9853  # Extract the first word of "ar", so it can be a program name with args.
9854set dummy ar; ac_word=$2
9855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9856$as_echo_n "checking for $ac_word... " >&6; }
9857if ${ac_cv_prog_ac_ct_AR+:} false; then :
9858  $as_echo_n "(cached) " >&6
9859else
9860  if test -n "$ac_ct_AR"; then
9861  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9862else
9863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9864for as_dir in $PATH
9865do
9866  IFS=$as_save_IFS
9867  test -z "$as_dir" && as_dir=.
9868    for ac_exec_ext in '' $ac_executable_extensions; do
9869  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9870    ac_cv_prog_ac_ct_AR="ar"
9871    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9872    break 2
9873  fi
9874done
9875  done
9876IFS=$as_save_IFS
9877
9878fi
9879fi
9880ac_ct_AR=$ac_cv_prog_ac_ct_AR
9881if test -n "$ac_ct_AR"; then
9882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9883$as_echo "$ac_ct_AR" >&6; }
9884else
9885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9886$as_echo "no" >&6; }
9887fi
9888
9889  if test "x$ac_ct_AR" = x; then
9890    AR="ar"
9891  else
9892    case $cross_compiling:$ac_tool_warned in
9893yes:)
9894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9896ac_tool_warned=yes ;;
9897esac
9898    AR=$ac_ct_AR
9899  fi
9900else
9901  AR="$ac_cv_prog_AR"
9902fi
9903
9904
9905
9906
9907
9908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
9909$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
9910if ${ac_cv_path_GREP+:} false; then :
9911  $as_echo_n "(cached) " >&6
9912else
9913  if test -z "$GREP"; then
9914  ac_path_GREP_found=false
9915  # Loop through the user's path and test for each of PROGNAME-LIST
9916  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9917for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9918do
9919  IFS=$as_save_IFS
9920  test -z "$as_dir" && as_dir=.
9921    for ac_prog in grep ggrep; do
9922    for ac_exec_ext in '' $ac_executable_extensions; do
9923      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
9924      as_fn_executable_p "$ac_path_GREP" || continue
9925# Check for GNU ac_path_GREP and select it if it is found.
9926  # Check for GNU $ac_path_GREP
9927case `"$ac_path_GREP" --version 2>&1` in
9928*GNU*)
9929  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
9930*)
9931  ac_count=0
9932  $as_echo_n 0123456789 >"conftest.in"
9933  while :
9934  do
9935    cat "conftest.in" "conftest.in" >"conftest.tmp"
9936    mv "conftest.tmp" "conftest.in"
9937    cp "conftest.in" "conftest.nl"
9938    $as_echo 'GREP' >> "conftest.nl"
9939    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9940    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9941    as_fn_arith $ac_count + 1 && ac_count=$as_val
9942    if test $ac_count -gt ${ac_path_GREP_max-0}; then
9943      # Best one so far, save it but keep looking for a better one
9944      ac_cv_path_GREP="$ac_path_GREP"
9945      ac_path_GREP_max=$ac_count
9946    fi
9947    # 10*(2^10) chars as input seems more than enough
9948    test $ac_count -gt 10 && break
9949  done
9950  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9951esac
9952
9953      $ac_path_GREP_found && break 3
9954    done
9955  done
9956  done
9957IFS=$as_save_IFS
9958  if test -z "$ac_cv_path_GREP"; then
9959    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9960  fi
9961else
9962  ac_cv_path_GREP=$GREP
9963fi
9964
9965fi
9966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
9967$as_echo "$ac_cv_path_GREP" >&6; }
9968 GREP="$ac_cv_path_GREP"
9969
9970
9971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9972$as_echo_n "checking for egrep... " >&6; }
9973if ${ac_cv_path_EGREP+:} false; then :
9974  $as_echo_n "(cached) " >&6
9975else
9976  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9977   then ac_cv_path_EGREP="$GREP -E"
9978   else
9979     if test -z "$EGREP"; then
9980  ac_path_EGREP_found=false
9981  # Loop through the user's path and test for each of PROGNAME-LIST
9982  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9984do
9985  IFS=$as_save_IFS
9986  test -z "$as_dir" && as_dir=.
9987    for ac_prog in egrep; do
9988    for ac_exec_ext in '' $ac_executable_extensions; do
9989      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9990      as_fn_executable_p "$ac_path_EGREP" || continue
9991# Check for GNU ac_path_EGREP and select it if it is found.
9992  # Check for GNU $ac_path_EGREP
9993case `"$ac_path_EGREP" --version 2>&1` in
9994*GNU*)
9995  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9996*)
9997  ac_count=0
9998  $as_echo_n 0123456789 >"conftest.in"
9999  while :
10000  do
10001    cat "conftest.in" "conftest.in" >"conftest.tmp"
10002    mv "conftest.tmp" "conftest.in"
10003    cp "conftest.in" "conftest.nl"
10004    $as_echo 'EGREP' >> "conftest.nl"
10005    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10006    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10007    as_fn_arith $ac_count + 1 && ac_count=$as_val
10008    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10009      # Best one so far, save it but keep looking for a better one
10010      ac_cv_path_EGREP="$ac_path_EGREP"
10011      ac_path_EGREP_max=$ac_count
10012    fi
10013    # 10*(2^10) chars as input seems more than enough
10014    test $ac_count -gt 10 && break
10015  done
10016  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10017esac
10018
10019      $ac_path_EGREP_found && break 3
10020    done
10021  done
10022  done
10023IFS=$as_save_IFS
10024  if test -z "$ac_cv_path_EGREP"; then
10025    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10026  fi
10027else
10028  ac_cv_path_EGREP=$EGREP
10029fi
10030
10031   fi
10032fi
10033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
10034$as_echo "$ac_cv_path_EGREP" >&6; }
10035 EGREP="$ac_cv_path_EGREP"
10036
10037
10038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10039$as_echo_n "checking for ANSI C header files... " >&6; }
10040if ${ac_cv_header_stdc+:} false; then :
10041  $as_echo_n "(cached) " >&6
10042else
10043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10044/* end confdefs.h.  */
10045#include <stdlib.h>
10046#include <stdarg.h>
10047#include <string.h>
10048#include <float.h>
10049
10050int
10051main ()
10052{
10053
10054  ;
10055  return 0;
10056}
10057_ACEOF
10058if ac_fn_c_try_compile "$LINENO"; then :
10059  ac_cv_header_stdc=yes
10060else
10061  ac_cv_header_stdc=no
10062fi
10063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10064
10065if test $ac_cv_header_stdc = yes; then
10066  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068/* end confdefs.h.  */
10069#include <string.h>
10070
10071_ACEOF
10072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10073  $EGREP "memchr" >/dev/null 2>&1; then :
10074
10075else
10076  ac_cv_header_stdc=no
10077fi
10078rm -f conftest*
10079
10080fi
10081
10082if test $ac_cv_header_stdc = yes; then
10083  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085/* end confdefs.h.  */
10086#include <stdlib.h>
10087
10088_ACEOF
10089if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10090  $EGREP "free" >/dev/null 2>&1; then :
10091
10092else
10093  ac_cv_header_stdc=no
10094fi
10095rm -f conftest*
10096
10097fi
10098
10099if test $ac_cv_header_stdc = yes; then
10100  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10101  if test "$cross_compiling" = yes; then :
10102  :
10103else
10104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10105/* end confdefs.h.  */
10106#include <ctype.h>
10107#include <stdlib.h>
10108#if ((' ' & 0x0FF) == 0x020)
10109# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10110# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10111#else
10112# define ISLOWER(c) \
10113		   (('a' <= (c) && (c) <= 'i') \
10114		     || ('j' <= (c) && (c) <= 'r') \
10115		     || ('s' <= (c) && (c) <= 'z'))
10116# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10117#endif
10118
10119#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10120int
10121main ()
10122{
10123  int i;
10124  for (i = 0; i < 256; i++)
10125    if (XOR (islower (i), ISLOWER (i))
10126	|| toupper (i) != TOUPPER (i))
10127      return 2;
10128  return 0;
10129}
10130_ACEOF
10131if ac_fn_c_try_run "$LINENO"; then :
10132
10133else
10134  ac_cv_header_stdc=no
10135fi
10136rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10137  conftest.$ac_objext conftest.beam conftest.$ac_ext
10138fi
10139
10140fi
10141fi
10142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10143$as_echo "$ac_cv_header_stdc" >&6; }
10144if test $ac_cv_header_stdc = yes; then
10145
10146$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10147
10148fi
10149
10150# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10151for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10152		  inttypes.h stdint.h unistd.h
10153do :
10154  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10155ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10156"
10157if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10158  cat >>confdefs.h <<_ACEOF
10159#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10160_ACEOF
10161
10162fi
10163
10164done
10165
10166
10167
10168  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
10169if test "x$ac_cv_header_minix_config_h" = xyes; then :
10170  MINIX=yes
10171else
10172  MINIX=
10173fi
10174
10175
10176  if test "$MINIX" = yes; then
10177
10178$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
10179
10180
10181$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
10182
10183
10184$as_echo "#define _MINIX 1" >>confdefs.h
10185
10186  fi
10187
10188
10189  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
10190$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
10191if ${ac_cv_safe_to_define___extensions__+:} false; then :
10192  $as_echo_n "(cached) " >&6
10193else
10194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195/* end confdefs.h.  */
10196
10197#         define __EXTENSIONS__ 1
10198          $ac_includes_default
10199int
10200main ()
10201{
10202
10203  ;
10204  return 0;
10205}
10206_ACEOF
10207if ac_fn_c_try_compile "$LINENO"; then :
10208  ac_cv_safe_to_define___extensions__=yes
10209else
10210  ac_cv_safe_to_define___extensions__=no
10211fi
10212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10213fi
10214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
10215$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
10216  test $ac_cv_safe_to_define___extensions__ = yes &&
10217    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
10218
10219  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
10220
10221  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
10222
10223  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
10224
10225  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
10226
10227
10228
10229
10230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
10231$as_echo_n "checking for library containing strerror... " >&6; }
10232if ${ac_cv_search_strerror+:} false; then :
10233  $as_echo_n "(cached) " >&6
10234else
10235  ac_func_search_save_LIBS=$LIBS
10236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10237/* end confdefs.h.  */
10238
10239/* Override any GCC internal prototype to avoid an error.
10240   Use char because int might match the return type of a GCC
10241   builtin and then its argument prototype would still apply.  */
10242#ifdef __cplusplus
10243extern "C"
10244#endif
10245char strerror ();
10246int
10247main ()
10248{
10249return strerror ();
10250  ;
10251  return 0;
10252}
10253_ACEOF
10254for ac_lib in '' cposix; do
10255  if test -z "$ac_lib"; then
10256    ac_res="none required"
10257  else
10258    ac_res=-l$ac_lib
10259    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10260  fi
10261  if ac_fn_c_try_link "$LINENO"; then :
10262  ac_cv_search_strerror=$ac_res
10263fi
10264rm -f core conftest.err conftest.$ac_objext \
10265    conftest$ac_exeext
10266  if ${ac_cv_search_strerror+:} false; then :
10267  break
10268fi
10269done
10270if ${ac_cv_search_strerror+:} false; then :
10271
10272else
10273  ac_cv_search_strerror=no
10274fi
10275rm conftest.$ac_ext
10276LIBS=$ac_func_search_save_LIBS
10277fi
10278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
10279$as_echo "$ac_cv_search_strerror" >&6; }
10280ac_res=$ac_cv_search_strerror
10281if test "$ac_res" != no; then :
10282  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10283
10284fi
10285
10286
10287  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses EBCDIC" >&5
10288$as_echo_n "checking whether system uses EBCDIC... " >&6; }
10289if ${ac_cv_ebcdic+:} false; then :
10290  $as_echo_n "(cached) " >&6
10291else
10292
10293  if test "$cross_compiling" = yes; then :
10294
10295  ac_cv_ebcdic="no"
10296
10297else
10298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10299/* end confdefs.h.  */
10300
10301int main(void) {
10302  return (unsigned char)'A' != (unsigned char)0xC1;
10303}
10304
10305_ACEOF
10306if ac_fn_c_try_run "$LINENO"; then :
10307
10308  ac_cv_ebcdic="yes"
10309
10310else
10311
10312  ac_cv_ebcdic="no"
10313
10314fi
10315rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10316  conftest.$ac_objext conftest.beam conftest.$ac_ext
10317fi
10318
10319fi
10320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ebcdic" >&5
10321$as_echo "$ac_cv_ebcdic" >&6; }
10322  if test "$ac_cv_ebcdic" = "yes"; then
10323    apr_charset_ebcdic=1
10324  else
10325    apr_charset_ebcdic=0
10326  fi
10327
10328
10329
10330APR_LIBNAME="apr${libsuffix}"
10331
10332
10333echo "performing libtool configuration..."
10334
10335# Check whether --enable-experimental-libtool was given.
10336if test "${enable_experimental_libtool+set}" = set; then :
10337  enableval=$enable_experimental_libtool; experimental_libtool=$enableval
10338else
10339  experimental_libtool=no
10340fi
10341
10342
10343if test "x$Xsed" = "x"; then
10344  Xsed="$SED -e 1s/^X//"
10345fi
10346
10347case $host in
10348*-os2*)
10349    # Use a custom-made libtool replacement
10350    echo "using aplibtool"
10351    LIBTOOL="$srcdir/build/aplibtool"
10352    gcc $CFLAGS $CPPFLAGS -o $LIBTOOL.exe $LIBTOOL.c
10353    ;;
10354*)
10355    if test "x$LTFLAGS" = "x"; then
10356        LTFLAGS='--silent'
10357    fi
10358    if test "$experimental_libtool" = "yes"; then
10359        # Use a custom-made libtool replacement
10360        echo "using jlibtool"
10361        LIBTOOL="$apr_builddir/libtool"
10362        LIBTOOL_SRC="$apr_srcdir/build/jlibtool.c"
10363        $CC $CFLAGS $CPPFLAGS -o $LIBTOOL $LIBTOOL_SRC
10364        eval `$apr_builddir/libtool --config | grep "^shlibpath_var=[A-Z_]*$"`
10365        if test "x$shlibpath_var" = "x"; then
10366            shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
10367        fi
10368    else
10369        enable_win32_dll=yes
10370
10371case $host in
10372*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10373  if test -n "$ac_tool_prefix"; then
10374  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10375set dummy ${ac_tool_prefix}as; ac_word=$2
10376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10377$as_echo_n "checking for $ac_word... " >&6; }
10378if ${ac_cv_prog_AS+:} false; then :
10379  $as_echo_n "(cached) " >&6
10380else
10381  if test -n "$AS"; then
10382  ac_cv_prog_AS="$AS" # Let the user override the test.
10383else
10384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10385for as_dir in $PATH
10386do
10387  IFS=$as_save_IFS
10388  test -z "$as_dir" && as_dir=.
10389    for ac_exec_ext in '' $ac_executable_extensions; do
10390  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10391    ac_cv_prog_AS="${ac_tool_prefix}as"
10392    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10393    break 2
10394  fi
10395done
10396  done
10397IFS=$as_save_IFS
10398
10399fi
10400fi
10401AS=$ac_cv_prog_AS
10402if test -n "$AS"; then
10403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10404$as_echo "$AS" >&6; }
10405else
10406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10407$as_echo "no" >&6; }
10408fi
10409
10410
10411fi
10412if test -z "$ac_cv_prog_AS"; then
10413  ac_ct_AS=$AS
10414  # Extract the first word of "as", so it can be a program name with args.
10415set dummy as; ac_word=$2
10416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10417$as_echo_n "checking for $ac_word... " >&6; }
10418if ${ac_cv_prog_ac_ct_AS+:} false; then :
10419  $as_echo_n "(cached) " >&6
10420else
10421  if test -n "$ac_ct_AS"; then
10422  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10423else
10424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10425for as_dir in $PATH
10426do
10427  IFS=$as_save_IFS
10428  test -z "$as_dir" && as_dir=.
10429    for ac_exec_ext in '' $ac_executable_extensions; do
10430  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10431    ac_cv_prog_ac_ct_AS="as"
10432    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10433    break 2
10434  fi
10435done
10436  done
10437IFS=$as_save_IFS
10438
10439fi
10440fi
10441ac_ct_AS=$ac_cv_prog_ac_ct_AS
10442if test -n "$ac_ct_AS"; then
10443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10444$as_echo "$ac_ct_AS" >&6; }
10445else
10446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10447$as_echo "no" >&6; }
10448fi
10449
10450  if test "x$ac_ct_AS" = x; then
10451    AS="false"
10452  else
10453    case $cross_compiling:$ac_tool_warned in
10454yes:)
10455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10457ac_tool_warned=yes ;;
10458esac
10459    AS=$ac_ct_AS
10460  fi
10461else
10462  AS="$ac_cv_prog_AS"
10463fi
10464
10465  if test -n "$ac_tool_prefix"; then
10466  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10467set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10469$as_echo_n "checking for $ac_word... " >&6; }
10470if ${ac_cv_prog_DLLTOOL+:} false; then :
10471  $as_echo_n "(cached) " >&6
10472else
10473  if test -n "$DLLTOOL"; then
10474  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10475else
10476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10477for as_dir in $PATH
10478do
10479  IFS=$as_save_IFS
10480  test -z "$as_dir" && as_dir=.
10481    for ac_exec_ext in '' $ac_executable_extensions; do
10482  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10483    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10484    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10485    break 2
10486  fi
10487done
10488  done
10489IFS=$as_save_IFS
10490
10491fi
10492fi
10493DLLTOOL=$ac_cv_prog_DLLTOOL
10494if test -n "$DLLTOOL"; then
10495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10496$as_echo "$DLLTOOL" >&6; }
10497else
10498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10499$as_echo "no" >&6; }
10500fi
10501
10502
10503fi
10504if test -z "$ac_cv_prog_DLLTOOL"; then
10505  ac_ct_DLLTOOL=$DLLTOOL
10506  # Extract the first word of "dlltool", so it can be a program name with args.
10507set dummy dlltool; ac_word=$2
10508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10509$as_echo_n "checking for $ac_word... " >&6; }
10510if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10511  $as_echo_n "(cached) " >&6
10512else
10513  if test -n "$ac_ct_DLLTOOL"; then
10514  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10515else
10516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10517for as_dir in $PATH
10518do
10519  IFS=$as_save_IFS
10520  test -z "$as_dir" && as_dir=.
10521    for ac_exec_ext in '' $ac_executable_extensions; do
10522  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10523    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10524    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10525    break 2
10526  fi
10527done
10528  done
10529IFS=$as_save_IFS
10530
10531fi
10532fi
10533ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10534if test -n "$ac_ct_DLLTOOL"; then
10535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10536$as_echo "$ac_ct_DLLTOOL" >&6; }
10537else
10538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10539$as_echo "no" >&6; }
10540fi
10541
10542  if test "x$ac_ct_DLLTOOL" = x; then
10543    DLLTOOL="false"
10544  else
10545    case $cross_compiling:$ac_tool_warned in
10546yes:)
10547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10549ac_tool_warned=yes ;;
10550esac
10551    DLLTOOL=$ac_ct_DLLTOOL
10552  fi
10553else
10554  DLLTOOL="$ac_cv_prog_DLLTOOL"
10555fi
10556
10557  if test -n "$ac_tool_prefix"; then
10558  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10559set dummy ${ac_tool_prefix}objdump; ac_word=$2
10560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10561$as_echo_n "checking for $ac_word... " >&6; }
10562if ${ac_cv_prog_OBJDUMP+:} false; then :
10563  $as_echo_n "(cached) " >&6
10564else
10565  if test -n "$OBJDUMP"; then
10566  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10567else
10568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10569for as_dir in $PATH
10570do
10571  IFS=$as_save_IFS
10572  test -z "$as_dir" && as_dir=.
10573    for ac_exec_ext in '' $ac_executable_extensions; do
10574  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10575    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10576    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10577    break 2
10578  fi
10579done
10580  done
10581IFS=$as_save_IFS
10582
10583fi
10584fi
10585OBJDUMP=$ac_cv_prog_OBJDUMP
10586if test -n "$OBJDUMP"; then
10587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10588$as_echo "$OBJDUMP" >&6; }
10589else
10590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10591$as_echo "no" >&6; }
10592fi
10593
10594
10595fi
10596if test -z "$ac_cv_prog_OBJDUMP"; then
10597  ac_ct_OBJDUMP=$OBJDUMP
10598  # Extract the first word of "objdump", so it can be a program name with args.
10599set dummy objdump; ac_word=$2
10600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10601$as_echo_n "checking for $ac_word... " >&6; }
10602if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10603  $as_echo_n "(cached) " >&6
10604else
10605  if test -n "$ac_ct_OBJDUMP"; then
10606  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10607else
10608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609for as_dir in $PATH
10610do
10611  IFS=$as_save_IFS
10612  test -z "$as_dir" && as_dir=.
10613    for ac_exec_ext in '' $ac_executable_extensions; do
10614  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10615    ac_cv_prog_ac_ct_OBJDUMP="objdump"
10616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10617    break 2
10618  fi
10619done
10620  done
10621IFS=$as_save_IFS
10622
10623fi
10624fi
10625ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10626if test -n "$ac_ct_OBJDUMP"; then
10627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10628$as_echo "$ac_ct_OBJDUMP" >&6; }
10629else
10630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631$as_echo "no" >&6; }
10632fi
10633
10634  if test "x$ac_ct_OBJDUMP" = x; then
10635    OBJDUMP="false"
10636  else
10637    case $cross_compiling:$ac_tool_warned in
10638yes:)
10639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10641ac_tool_warned=yes ;;
10642esac
10643    OBJDUMP=$ac_ct_OBJDUMP
10644  fi
10645else
10646  OBJDUMP="$ac_cv_prog_OBJDUMP"
10647fi
10648
10649  ;;
10650esac
10651
10652test -z "$AS" && AS=as
10653
10654
10655
10656
10657
10658test -z "$DLLTOOL" && DLLTOOL=dlltool
10659
10660
10661
10662
10663
10664test -z "$OBJDUMP" && OBJDUMP=objdump
10665
10666
10667
10668
10669
10670
10671
10672case `pwd` in
10673  *\ * | *\	*)
10674    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10675$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10676esac
10677
10678
10679
10680macro_version='2.4.2'
10681macro_revision='1.3337'
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695ltmain="$ac_aux_dir/ltmain.sh"
10696
10697# Backslashify metacharacters that are still active within
10698# double-quoted strings.
10699sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10700
10701# Same as above, but do not quote variable references.
10702double_quote_subst='s/\(["`\\]\)/\\\1/g'
10703
10704# Sed substitution to delay expansion of an escaped shell variable in a
10705# double_quote_subst'ed string.
10706delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10707
10708# Sed substitution to delay expansion of an escaped single quote.
10709delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10710
10711# Sed substitution to avoid accidental globbing in evaled expressions
10712no_glob_subst='s/\*/\\\*/g'
10713
10714ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10715ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10716ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10717
10718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10719$as_echo_n "checking how to print strings... " >&6; }
10720# Test print first, because it will be a builtin if present.
10721if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10722   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10723  ECHO='print -r --'
10724elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10725  ECHO='printf %s\n'
10726else
10727  # Use this function as a fallback that always works.
10728  func_fallback_echo ()
10729  {
10730    eval 'cat <<_LTECHO_EOF
10731$1
10732_LTECHO_EOF'
10733  }
10734  ECHO='func_fallback_echo'
10735fi
10736
10737# func_echo_all arg...
10738# Invoke $ECHO with all args, space-separated.
10739func_echo_all ()
10740{
10741    $ECHO ""
10742}
10743
10744case "$ECHO" in
10745  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10746$as_echo "printf" >&6; } ;;
10747  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10748$as_echo "print -r" >&6; } ;;
10749  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10750$as_echo "cat" >&6; } ;;
10751esac
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10767$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10768if ${ac_cv_path_SED+:} false; then :
10769  $as_echo_n "(cached) " >&6
10770else
10771            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10772     for ac_i in 1 2 3 4 5 6 7; do
10773       ac_script="$ac_script$as_nl$ac_script"
10774     done
10775     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10776     { ac_script=; unset ac_script;}
10777     if test -z "$SED"; then
10778  ac_path_SED_found=false
10779  # Loop through the user's path and test for each of PROGNAME-LIST
10780  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10781for as_dir in $PATH
10782do
10783  IFS=$as_save_IFS
10784  test -z "$as_dir" && as_dir=.
10785    for ac_prog in sed gsed; do
10786    for ac_exec_ext in '' $ac_executable_extensions; do
10787      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10788      as_fn_executable_p "$ac_path_SED" || continue
10789# Check for GNU ac_path_SED and select it if it is found.
10790  # Check for GNU $ac_path_SED
10791case `"$ac_path_SED" --version 2>&1` in
10792*GNU*)
10793  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10794*)
10795  ac_count=0
10796  $as_echo_n 0123456789 >"conftest.in"
10797  while :
10798  do
10799    cat "conftest.in" "conftest.in" >"conftest.tmp"
10800    mv "conftest.tmp" "conftest.in"
10801    cp "conftest.in" "conftest.nl"
10802    $as_echo '' >> "conftest.nl"
10803    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10804    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10805    as_fn_arith $ac_count + 1 && ac_count=$as_val
10806    if test $ac_count -gt ${ac_path_SED_max-0}; then
10807      # Best one so far, save it but keep looking for a better one
10808      ac_cv_path_SED="$ac_path_SED"
10809      ac_path_SED_max=$ac_count
10810    fi
10811    # 10*(2^10) chars as input seems more than enough
10812    test $ac_count -gt 10 && break
10813  done
10814  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10815esac
10816
10817      $ac_path_SED_found && break 3
10818    done
10819  done
10820  done
10821IFS=$as_save_IFS
10822  if test -z "$ac_cv_path_SED"; then
10823    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10824  fi
10825else
10826  ac_cv_path_SED=$SED
10827fi
10828
10829fi
10830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10831$as_echo "$ac_cv_path_SED" >&6; }
10832 SED="$ac_cv_path_SED"
10833  rm -f conftest.sed
10834
10835test -z "$SED" && SED=sed
10836Xsed="$SED -e 1s/^X//"
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10849$as_echo_n "checking for fgrep... " >&6; }
10850if ${ac_cv_path_FGREP+:} false; then :
10851  $as_echo_n "(cached) " >&6
10852else
10853  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10854   then ac_cv_path_FGREP="$GREP -F"
10855   else
10856     if test -z "$FGREP"; then
10857  ac_path_FGREP_found=false
10858  # Loop through the user's path and test for each of PROGNAME-LIST
10859  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10861do
10862  IFS=$as_save_IFS
10863  test -z "$as_dir" && as_dir=.
10864    for ac_prog in fgrep; do
10865    for ac_exec_ext in '' $ac_executable_extensions; do
10866      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10867      as_fn_executable_p "$ac_path_FGREP" || continue
10868# Check for GNU ac_path_FGREP and select it if it is found.
10869  # Check for GNU $ac_path_FGREP
10870case `"$ac_path_FGREP" --version 2>&1` in
10871*GNU*)
10872  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10873*)
10874  ac_count=0
10875  $as_echo_n 0123456789 >"conftest.in"
10876  while :
10877  do
10878    cat "conftest.in" "conftest.in" >"conftest.tmp"
10879    mv "conftest.tmp" "conftest.in"
10880    cp "conftest.in" "conftest.nl"
10881    $as_echo 'FGREP' >> "conftest.nl"
10882    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10883    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10884    as_fn_arith $ac_count + 1 && ac_count=$as_val
10885    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10886      # Best one so far, save it but keep looking for a better one
10887      ac_cv_path_FGREP="$ac_path_FGREP"
10888      ac_path_FGREP_max=$ac_count
10889    fi
10890    # 10*(2^10) chars as input seems more than enough
10891    test $ac_count -gt 10 && break
10892  done
10893  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10894esac
10895
10896      $ac_path_FGREP_found && break 3
10897    done
10898  done
10899  done
10900IFS=$as_save_IFS
10901  if test -z "$ac_cv_path_FGREP"; then
10902    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10903  fi
10904else
10905  ac_cv_path_FGREP=$FGREP
10906fi
10907
10908   fi
10909fi
10910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10911$as_echo "$ac_cv_path_FGREP" >&6; }
10912 FGREP="$ac_cv_path_FGREP"
10913
10914
10915test -z "$GREP" && GREP=grep
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935# Check whether --with-gnu-ld was given.
10936if test "${with_gnu_ld+set}" = set; then :
10937  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10938else
10939  with_gnu_ld=no
10940fi
10941
10942ac_prog=ld
10943if test "$GCC" = yes; then
10944  # Check if gcc -print-prog-name=ld gives a path.
10945  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10946$as_echo_n "checking for ld used by $CC... " >&6; }
10947  case $host in
10948  *-*-mingw*)
10949    # gcc leaves a trailing carriage return which upsets mingw
10950    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10951  *)
10952    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10953  esac
10954  case $ac_prog in
10955    # Accept absolute paths.
10956    [\\/]* | ?:[\\/]*)
10957      re_direlt='/[^/][^/]*/\.\./'
10958      # Canonicalize the pathname of ld
10959      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10960      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10961	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10962      done
10963      test -z "$LD" && LD="$ac_prog"
10964      ;;
10965  "")
10966    # If it fails, then pretend we aren't using GCC.
10967    ac_prog=ld
10968    ;;
10969  *)
10970    # If it is relative, then search for the first ld in PATH.
10971    with_gnu_ld=unknown
10972    ;;
10973  esac
10974elif test "$with_gnu_ld" = yes; then
10975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10976$as_echo_n "checking for GNU ld... " >&6; }
10977else
10978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10979$as_echo_n "checking for non-GNU ld... " >&6; }
10980fi
10981if ${lt_cv_path_LD+:} false; then :
10982  $as_echo_n "(cached) " >&6
10983else
10984  if test -z "$LD"; then
10985  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10986  for ac_dir in $PATH; do
10987    IFS="$lt_save_ifs"
10988    test -z "$ac_dir" && ac_dir=.
10989    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10990      lt_cv_path_LD="$ac_dir/$ac_prog"
10991      # Check to see if the program is GNU ld.  I'd rather use --version,
10992      # but apparently some variants of GNU ld only accept -v.
10993      # Break only if it was the GNU/non-GNU ld that we prefer.
10994      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10995      *GNU* | *'with BFD'*)
10996	test "$with_gnu_ld" != no && break
10997	;;
10998      *)
10999	test "$with_gnu_ld" != yes && break
11000	;;
11001      esac
11002    fi
11003  done
11004  IFS="$lt_save_ifs"
11005else
11006  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11007fi
11008fi
11009
11010LD="$lt_cv_path_LD"
11011if test -n "$LD"; then
11012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11013$as_echo "$LD" >&6; }
11014else
11015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016$as_echo "no" >&6; }
11017fi
11018test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11020$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11021if ${lt_cv_prog_gnu_ld+:} false; then :
11022  $as_echo_n "(cached) " >&6
11023else
11024  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11025case `$LD -v 2>&1 </dev/null` in
11026*GNU* | *'with BFD'*)
11027  lt_cv_prog_gnu_ld=yes
11028  ;;
11029*)
11030  lt_cv_prog_gnu_ld=no
11031  ;;
11032esac
11033fi
11034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11035$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11036with_gnu_ld=$lt_cv_prog_gnu_ld
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11047$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11048if ${lt_cv_path_NM+:} false; then :
11049  $as_echo_n "(cached) " >&6
11050else
11051  if test -n "$NM"; then
11052  # Let the user override the test.
11053  lt_cv_path_NM="$NM"
11054else
11055  lt_nm_to_check="${ac_tool_prefix}nm"
11056  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11057    lt_nm_to_check="$lt_nm_to_check nm"
11058  fi
11059  for lt_tmp_nm in $lt_nm_to_check; do
11060    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11061    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11062      IFS="$lt_save_ifs"
11063      test -z "$ac_dir" && ac_dir=.
11064      tmp_nm="$ac_dir/$lt_tmp_nm"
11065      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11066	# Check to see if the nm accepts a BSD-compat flag.
11067	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11068	#   nm: unknown option "B" ignored
11069	# Tru64's nm complains that /dev/null is an invalid object file
11070	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11071	*/dev/null* | *'Invalid file or object type'*)
11072	  lt_cv_path_NM="$tmp_nm -B"
11073	  break
11074	  ;;
11075	*)
11076	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11077	  */dev/null*)
11078	    lt_cv_path_NM="$tmp_nm -p"
11079	    break
11080	    ;;
11081	  *)
11082	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11083	    continue # so that we can try to find one that supports BSD flags
11084	    ;;
11085	  esac
11086	  ;;
11087	esac
11088      fi
11089    done
11090    IFS="$lt_save_ifs"
11091  done
11092  : ${lt_cv_path_NM=no}
11093fi
11094fi
11095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11096$as_echo "$lt_cv_path_NM" >&6; }
11097if test "$lt_cv_path_NM" != "no"; then
11098  NM="$lt_cv_path_NM"
11099else
11100  # Didn't find any BSD compatible name lister, look for dumpbin.
11101  if test -n "$DUMPBIN"; then :
11102    # Let the user override the test.
11103  else
11104    if test -n "$ac_tool_prefix"; then
11105  for ac_prog in dumpbin "link -dump"
11106  do
11107    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11108set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11110$as_echo_n "checking for $ac_word... " >&6; }
11111if ${ac_cv_prog_DUMPBIN+:} false; then :
11112  $as_echo_n "(cached) " >&6
11113else
11114  if test -n "$DUMPBIN"; then
11115  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11116else
11117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11118for as_dir in $PATH
11119do
11120  IFS=$as_save_IFS
11121  test -z "$as_dir" && as_dir=.
11122    for ac_exec_ext in '' $ac_executable_extensions; do
11123  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11124    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11126    break 2
11127  fi
11128done
11129  done
11130IFS=$as_save_IFS
11131
11132fi
11133fi
11134DUMPBIN=$ac_cv_prog_DUMPBIN
11135if test -n "$DUMPBIN"; then
11136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11137$as_echo "$DUMPBIN" >&6; }
11138else
11139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11140$as_echo "no" >&6; }
11141fi
11142
11143
11144    test -n "$DUMPBIN" && break
11145  done
11146fi
11147if test -z "$DUMPBIN"; then
11148  ac_ct_DUMPBIN=$DUMPBIN
11149  for ac_prog in dumpbin "link -dump"
11150do
11151  # Extract the first word of "$ac_prog", so it can be a program name with args.
11152set dummy $ac_prog; ac_word=$2
11153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11154$as_echo_n "checking for $ac_word... " >&6; }
11155if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11156  $as_echo_n "(cached) " >&6
11157else
11158  if test -n "$ac_ct_DUMPBIN"; then
11159  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11160else
11161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11162for as_dir in $PATH
11163do
11164  IFS=$as_save_IFS
11165  test -z "$as_dir" && as_dir=.
11166    for ac_exec_ext in '' $ac_executable_extensions; do
11167  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11168    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11170    break 2
11171  fi
11172done
11173  done
11174IFS=$as_save_IFS
11175
11176fi
11177fi
11178ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11179if test -n "$ac_ct_DUMPBIN"; then
11180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11181$as_echo "$ac_ct_DUMPBIN" >&6; }
11182else
11183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184$as_echo "no" >&6; }
11185fi
11186
11187
11188  test -n "$ac_ct_DUMPBIN" && break
11189done
11190
11191  if test "x$ac_ct_DUMPBIN" = x; then
11192    DUMPBIN=":"
11193  else
11194    case $cross_compiling:$ac_tool_warned in
11195yes:)
11196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11198ac_tool_warned=yes ;;
11199esac
11200    DUMPBIN=$ac_ct_DUMPBIN
11201  fi
11202fi
11203
11204    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11205    *COFF*)
11206      DUMPBIN="$DUMPBIN -symbols"
11207      ;;
11208    *)
11209      DUMPBIN=:
11210      ;;
11211    esac
11212  fi
11213
11214  if test "$DUMPBIN" != ":"; then
11215    NM="$DUMPBIN"
11216  fi
11217fi
11218test -z "$NM" && NM=nm
11219
11220
11221
11222
11223
11224
11225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11226$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11227if ${lt_cv_nm_interface+:} false; then :
11228  $as_echo_n "(cached) " >&6
11229else
11230  lt_cv_nm_interface="BSD nm"
11231  echo "int some_variable = 0;" > conftest.$ac_ext
11232  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11233  (eval "$ac_compile" 2>conftest.err)
11234  cat conftest.err >&5
11235  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11236  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11237  cat conftest.err >&5
11238  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11239  cat conftest.out >&5
11240  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11241    lt_cv_nm_interface="MS dumpbin"
11242  fi
11243  rm -f conftest*
11244fi
11245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11246$as_echo "$lt_cv_nm_interface" >&6; }
11247
11248# find the maximum length of command line arguments
11249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11250$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11251if ${lt_cv_sys_max_cmd_len+:} false; then :
11252  $as_echo_n "(cached) " >&6
11253else
11254    i=0
11255  teststring="ABCD"
11256
11257  case $build_os in
11258  msdosdjgpp*)
11259    # On DJGPP, this test can blow up pretty badly due to problems in libc
11260    # (any single argument exceeding 2000 bytes causes a buffer overrun
11261    # during glob expansion).  Even if it were fixed, the result of this
11262    # check would be larger than it should be.
11263    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11264    ;;
11265
11266  gnu*)
11267    # Under GNU Hurd, this test is not required because there is
11268    # no limit to the length of command line arguments.
11269    # Libtool will interpret -1 as no limit whatsoever
11270    lt_cv_sys_max_cmd_len=-1;
11271    ;;
11272
11273  cygwin* | mingw* | cegcc*)
11274    # On Win9x/ME, this test blows up -- it succeeds, but takes
11275    # about 5 minutes as the teststring grows exponentially.
11276    # Worse, since 9x/ME are not pre-emptively multitasking,
11277    # you end up with a "frozen" computer, even though with patience
11278    # the test eventually succeeds (with a max line length of 256k).
11279    # Instead, let's just punt: use the minimum linelength reported by
11280    # all of the supported platforms: 8192 (on NT/2K/XP).
11281    lt_cv_sys_max_cmd_len=8192;
11282    ;;
11283
11284  mint*)
11285    # On MiNT this can take a long time and run out of memory.
11286    lt_cv_sys_max_cmd_len=8192;
11287    ;;
11288
11289  amigaos*)
11290    # On AmigaOS with pdksh, this test takes hours, literally.
11291    # So we just punt and use a minimum line length of 8192.
11292    lt_cv_sys_max_cmd_len=8192;
11293    ;;
11294
11295  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11296    # This has been around since 386BSD, at least.  Likely further.
11297    if test -x /sbin/sysctl; then
11298      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11299    elif test -x /usr/sbin/sysctl; then
11300      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11301    else
11302      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11303    fi
11304    # And add a safety zone
11305    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11306    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11307    ;;
11308
11309  interix*)
11310    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11311    lt_cv_sys_max_cmd_len=196608
11312    ;;
11313
11314  os2*)
11315    # The test takes a long time on OS/2.
11316    lt_cv_sys_max_cmd_len=8192
11317    ;;
11318
11319  osf*)
11320    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11321    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11322    # nice to cause kernel panics so lets avoid the loop below.
11323    # First set a reasonable default.
11324    lt_cv_sys_max_cmd_len=16384
11325    #
11326    if test -x /sbin/sysconfig; then
11327      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11328        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11329      esac
11330    fi
11331    ;;
11332  sco3.2v5*)
11333    lt_cv_sys_max_cmd_len=102400
11334    ;;
11335  sysv5* | sco5v6* | sysv4.2uw2*)
11336    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11337    if test -n "$kargmax"; then
11338      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11339    else
11340      lt_cv_sys_max_cmd_len=32768
11341    fi
11342    ;;
11343  *)
11344    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11345    if test -n "$lt_cv_sys_max_cmd_len"; then
11346      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11347      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11348    else
11349      # Make teststring a little bigger before we do anything with it.
11350      # a 1K string should be a reasonable start.
11351      for i in 1 2 3 4 5 6 7 8 ; do
11352        teststring=$teststring$teststring
11353      done
11354      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11355      # If test is not a shell built-in, we'll probably end up computing a
11356      # maximum length that is only half of the actual maximum length, but
11357      # we can't tell.
11358      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11359	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11360	      test $i != 17 # 1/2 MB should be enough
11361      do
11362        i=`expr $i + 1`
11363        teststring=$teststring$teststring
11364      done
11365      # Only check the string length outside the loop.
11366      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11367      teststring=
11368      # Add a significant safety factor because C++ compilers can tack on
11369      # massive amounts of additional arguments before passing them to the
11370      # linker.  It appears as though 1/2 is a usable value.
11371      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11372    fi
11373    ;;
11374  esac
11375
11376fi
11377
11378if test -n $lt_cv_sys_max_cmd_len ; then
11379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11380$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11381else
11382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11383$as_echo "none" >&6; }
11384fi
11385max_cmd_len=$lt_cv_sys_max_cmd_len
11386
11387
11388
11389
11390
11391
11392: ${CP="cp -f"}
11393: ${MV="mv -f"}
11394: ${RM="rm -f"}
11395
11396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11397$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11398# Try some XSI features
11399xsi_shell=no
11400( _lt_dummy="a/b/c"
11401  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11402      = c,a/b,b/c, \
11403    && eval 'test $(( 1 + 1 )) -eq 2 \
11404    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11405  && xsi_shell=yes
11406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11407$as_echo "$xsi_shell" >&6; }
11408
11409
11410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11411$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11412lt_shell_append=no
11413( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11414    >/dev/null 2>&1 \
11415  && lt_shell_append=yes
11416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11417$as_echo "$lt_shell_append" >&6; }
11418
11419
11420if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11421  lt_unset=unset
11422else
11423  lt_unset=false
11424fi
11425
11426
11427
11428
11429
11430# test EBCDIC or ASCII
11431case `echo X|tr X '\101'` in
11432 A) # ASCII based system
11433    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11434  lt_SP2NL='tr \040 \012'
11435  lt_NL2SP='tr \015\012 \040\040'
11436  ;;
11437 *) # EBCDIC based system
11438  lt_SP2NL='tr \100 \n'
11439  lt_NL2SP='tr \r\n \100\100'
11440  ;;
11441esac
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11452$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11453if ${lt_cv_to_host_file_cmd+:} false; then :
11454  $as_echo_n "(cached) " >&6
11455else
11456  case $host in
11457  *-*-mingw* )
11458    case $build in
11459      *-*-mingw* ) # actually msys
11460        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11461        ;;
11462      *-*-cygwin* )
11463        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11464        ;;
11465      * ) # otherwise, assume *nix
11466        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11467        ;;
11468    esac
11469    ;;
11470  *-*-cygwin* )
11471    case $build in
11472      *-*-mingw* ) # actually msys
11473        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11474        ;;
11475      *-*-cygwin* )
11476        lt_cv_to_host_file_cmd=func_convert_file_noop
11477        ;;
11478      * ) # otherwise, assume *nix
11479        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11480        ;;
11481    esac
11482    ;;
11483  * ) # unhandled hosts (and "normal" native builds)
11484    lt_cv_to_host_file_cmd=func_convert_file_noop
11485    ;;
11486esac
11487
11488fi
11489
11490to_host_file_cmd=$lt_cv_to_host_file_cmd
11491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11492$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11493
11494
11495
11496
11497
11498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11499$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11500if ${lt_cv_to_tool_file_cmd+:} false; then :
11501  $as_echo_n "(cached) " >&6
11502else
11503  #assume ordinary cross tools, or native build.
11504lt_cv_to_tool_file_cmd=func_convert_file_noop
11505case $host in
11506  *-*-mingw* )
11507    case $build in
11508      *-*-mingw* ) # actually msys
11509        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11510        ;;
11511    esac
11512    ;;
11513esac
11514
11515fi
11516
11517to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11519$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11520
11521
11522
11523
11524
11525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11526$as_echo_n "checking for $LD option to reload object files... " >&6; }
11527if ${lt_cv_ld_reload_flag+:} false; then :
11528  $as_echo_n "(cached) " >&6
11529else
11530  lt_cv_ld_reload_flag='-r'
11531fi
11532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11533$as_echo "$lt_cv_ld_reload_flag" >&6; }
11534reload_flag=$lt_cv_ld_reload_flag
11535case $reload_flag in
11536"" | " "*) ;;
11537*) reload_flag=" $reload_flag" ;;
11538esac
11539reload_cmds='$LD$reload_flag -o $output$reload_objs'
11540case $host_os in
11541  cygwin* | mingw* | pw32* | cegcc*)
11542    if test "$GCC" != yes; then
11543      reload_cmds=false
11544    fi
11545    ;;
11546  darwin*)
11547    if test "$GCC" = yes; then
11548      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11549    else
11550      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11551    fi
11552    ;;
11553esac
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563if test -n "$ac_tool_prefix"; then
11564  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11565set dummy ${ac_tool_prefix}objdump; ac_word=$2
11566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11567$as_echo_n "checking for $ac_word... " >&6; }
11568if ${ac_cv_prog_OBJDUMP+:} false; then :
11569  $as_echo_n "(cached) " >&6
11570else
11571  if test -n "$OBJDUMP"; then
11572  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11573else
11574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11575for as_dir in $PATH
11576do
11577  IFS=$as_save_IFS
11578  test -z "$as_dir" && as_dir=.
11579    for ac_exec_ext in '' $ac_executable_extensions; do
11580  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11581    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11582    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11583    break 2
11584  fi
11585done
11586  done
11587IFS=$as_save_IFS
11588
11589fi
11590fi
11591OBJDUMP=$ac_cv_prog_OBJDUMP
11592if test -n "$OBJDUMP"; then
11593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11594$as_echo "$OBJDUMP" >&6; }
11595else
11596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11597$as_echo "no" >&6; }
11598fi
11599
11600
11601fi
11602if test -z "$ac_cv_prog_OBJDUMP"; then
11603  ac_ct_OBJDUMP=$OBJDUMP
11604  # Extract the first word of "objdump", so it can be a program name with args.
11605set dummy objdump; ac_word=$2
11606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11607$as_echo_n "checking for $ac_word... " >&6; }
11608if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11609  $as_echo_n "(cached) " >&6
11610else
11611  if test -n "$ac_ct_OBJDUMP"; then
11612  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11613else
11614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11615for as_dir in $PATH
11616do
11617  IFS=$as_save_IFS
11618  test -z "$as_dir" && as_dir=.
11619    for ac_exec_ext in '' $ac_executable_extensions; do
11620  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11621    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11623    break 2
11624  fi
11625done
11626  done
11627IFS=$as_save_IFS
11628
11629fi
11630fi
11631ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11632if test -n "$ac_ct_OBJDUMP"; then
11633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11634$as_echo "$ac_ct_OBJDUMP" >&6; }
11635else
11636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11637$as_echo "no" >&6; }
11638fi
11639
11640  if test "x$ac_ct_OBJDUMP" = x; then
11641    OBJDUMP="false"
11642  else
11643    case $cross_compiling:$ac_tool_warned in
11644yes:)
11645{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11646$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11647ac_tool_warned=yes ;;
11648esac
11649    OBJDUMP=$ac_ct_OBJDUMP
11650  fi
11651else
11652  OBJDUMP="$ac_cv_prog_OBJDUMP"
11653fi
11654
11655test -z "$OBJDUMP" && OBJDUMP=objdump
11656
11657
11658
11659
11660
11661
11662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11663$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11664if ${lt_cv_deplibs_check_method+:} false; then :
11665  $as_echo_n "(cached) " >&6
11666else
11667  lt_cv_file_magic_cmd='$MAGIC_CMD'
11668lt_cv_file_magic_test_file=
11669lt_cv_deplibs_check_method='unknown'
11670# Need to set the preceding variable on all platforms that support
11671# interlibrary dependencies.
11672# 'none' -- dependencies not supported.
11673# `unknown' -- same as none, but documents that we really don't know.
11674# 'pass_all' -- all dependencies passed with no checks.
11675# 'test_compile' -- check by making test program.
11676# 'file_magic [[regex]]' -- check by looking for files in library path
11677# which responds to the $file_magic_cmd with a given extended regex.
11678# If you have `file' or equivalent on your system and you're not sure
11679# whether `pass_all' will *always* work, you probably want this one.
11680
11681case $host_os in
11682aix[4-9]*)
11683  lt_cv_deplibs_check_method=pass_all
11684  ;;
11685
11686beos*)
11687  lt_cv_deplibs_check_method=pass_all
11688  ;;
11689
11690bsdi[45]*)
11691  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11692  lt_cv_file_magic_cmd='/usr/bin/file -L'
11693  lt_cv_file_magic_test_file=/shlib/libc.so
11694  ;;
11695
11696cygwin*)
11697  # func_win32_libid is a shell function defined in ltmain.sh
11698  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11699  lt_cv_file_magic_cmd='func_win32_libid'
11700  ;;
11701
11702mingw* | pw32*)
11703  # Base MSYS/MinGW do not provide the 'file' command needed by
11704  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11705  # unless we find 'file', for example because we are cross-compiling.
11706  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11707  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11708    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11709    lt_cv_file_magic_cmd='func_win32_libid'
11710  else
11711    # Keep this pattern in sync with the one in func_win32_libid.
11712    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11713    lt_cv_file_magic_cmd='$OBJDUMP -f'
11714  fi
11715  ;;
11716
11717cegcc*)
11718  # use the weaker test based on 'objdump'. See mingw*.
11719  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11720  lt_cv_file_magic_cmd='$OBJDUMP -f'
11721  ;;
11722
11723darwin* | rhapsody*)
11724  lt_cv_deplibs_check_method=pass_all
11725  ;;
11726
11727freebsd* | dragonfly*)
11728  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11729    case $host_cpu in
11730    i*86 )
11731      # Not sure whether the presence of OpenBSD here was a mistake.
11732      # Let's accept both of them until this is cleared up.
11733      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11734      lt_cv_file_magic_cmd=/usr/bin/file
11735      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11736      ;;
11737    esac
11738  else
11739    lt_cv_deplibs_check_method=pass_all
11740  fi
11741  ;;
11742
11743gnu*)
11744  lt_cv_deplibs_check_method=pass_all
11745  ;;
11746
11747haiku*)
11748  lt_cv_deplibs_check_method=pass_all
11749  ;;
11750
11751hpux10.20* | hpux11*)
11752  lt_cv_file_magic_cmd=/usr/bin/file
11753  case $host_cpu in
11754  ia64*)
11755    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11756    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11757    ;;
11758  hppa*64*)
11759    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]'
11760    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11761    ;;
11762  *)
11763    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11764    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11765    ;;
11766  esac
11767  ;;
11768
11769interix[3-9]*)
11770  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11771  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11772  ;;
11773
11774irix5* | irix6* | nonstopux*)
11775  case $LD in
11776  *-32|*"-32 ") libmagic=32-bit;;
11777  *-n32|*"-n32 ") libmagic=N32;;
11778  *-64|*"-64 ") libmagic=64-bit;;
11779  *) libmagic=never-match;;
11780  esac
11781  lt_cv_deplibs_check_method=pass_all
11782  ;;
11783
11784# This must be glibc/ELF.
11785linux* | k*bsd*-gnu | kopensolaris*-gnu)
11786  lt_cv_deplibs_check_method=pass_all
11787  ;;
11788
11789netbsd*)
11790  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11791    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11792  else
11793    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11794  fi
11795  ;;
11796
11797newos6*)
11798  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11799  lt_cv_file_magic_cmd=/usr/bin/file
11800  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11801  ;;
11802
11803*nto* | *qnx*)
11804  lt_cv_deplibs_check_method=pass_all
11805  ;;
11806
11807openbsd*)
11808  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11809    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11810  else
11811    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11812  fi
11813  ;;
11814
11815osf3* | osf4* | osf5*)
11816  lt_cv_deplibs_check_method=pass_all
11817  ;;
11818
11819rdos*)
11820  lt_cv_deplibs_check_method=pass_all
11821  ;;
11822
11823solaris*)
11824  lt_cv_deplibs_check_method=pass_all
11825  ;;
11826
11827sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11828  lt_cv_deplibs_check_method=pass_all
11829  ;;
11830
11831sysv4 | sysv4.3*)
11832  case $host_vendor in
11833  motorola)
11834    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]'
11835    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11836    ;;
11837  ncr)
11838    lt_cv_deplibs_check_method=pass_all
11839    ;;
11840  sequent)
11841    lt_cv_file_magic_cmd='/bin/file'
11842    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11843    ;;
11844  sni)
11845    lt_cv_file_magic_cmd='/bin/file'
11846    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11847    lt_cv_file_magic_test_file=/lib/libc.so
11848    ;;
11849  siemens)
11850    lt_cv_deplibs_check_method=pass_all
11851    ;;
11852  pc)
11853    lt_cv_deplibs_check_method=pass_all
11854    ;;
11855  esac
11856  ;;
11857
11858tpf*)
11859  lt_cv_deplibs_check_method=pass_all
11860  ;;
11861esac
11862
11863fi
11864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11865$as_echo "$lt_cv_deplibs_check_method" >&6; }
11866
11867file_magic_glob=
11868want_nocaseglob=no
11869if test "$build" = "$host"; then
11870  case $host_os in
11871  mingw* | pw32*)
11872    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11873      want_nocaseglob=yes
11874    else
11875      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11876    fi
11877    ;;
11878  esac
11879fi
11880
11881file_magic_cmd=$lt_cv_file_magic_cmd
11882deplibs_check_method=$lt_cv_deplibs_check_method
11883test -z "$deplibs_check_method" && deplibs_check_method=unknown
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906if test -n "$ac_tool_prefix"; then
11907  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11908set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11910$as_echo_n "checking for $ac_word... " >&6; }
11911if ${ac_cv_prog_DLLTOOL+:} false; then :
11912  $as_echo_n "(cached) " >&6
11913else
11914  if test -n "$DLLTOOL"; then
11915  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11916else
11917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918for as_dir in $PATH
11919do
11920  IFS=$as_save_IFS
11921  test -z "$as_dir" && as_dir=.
11922    for ac_exec_ext in '' $ac_executable_extensions; do
11923  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11924    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11925    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11926    break 2
11927  fi
11928done
11929  done
11930IFS=$as_save_IFS
11931
11932fi
11933fi
11934DLLTOOL=$ac_cv_prog_DLLTOOL
11935if test -n "$DLLTOOL"; then
11936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11937$as_echo "$DLLTOOL" >&6; }
11938else
11939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940$as_echo "no" >&6; }
11941fi
11942
11943
11944fi
11945if test -z "$ac_cv_prog_DLLTOOL"; then
11946  ac_ct_DLLTOOL=$DLLTOOL
11947  # Extract the first word of "dlltool", so it can be a program name with args.
11948set dummy dlltool; ac_word=$2
11949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11950$as_echo_n "checking for $ac_word... " >&6; }
11951if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11952  $as_echo_n "(cached) " >&6
11953else
11954  if test -n "$ac_ct_DLLTOOL"; then
11955  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11956else
11957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11958for as_dir in $PATH
11959do
11960  IFS=$as_save_IFS
11961  test -z "$as_dir" && as_dir=.
11962    for ac_exec_ext in '' $ac_executable_extensions; do
11963  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11964    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11966    break 2
11967  fi
11968done
11969  done
11970IFS=$as_save_IFS
11971
11972fi
11973fi
11974ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11975if test -n "$ac_ct_DLLTOOL"; then
11976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11977$as_echo "$ac_ct_DLLTOOL" >&6; }
11978else
11979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980$as_echo "no" >&6; }
11981fi
11982
11983  if test "x$ac_ct_DLLTOOL" = x; then
11984    DLLTOOL="false"
11985  else
11986    case $cross_compiling:$ac_tool_warned in
11987yes:)
11988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11990ac_tool_warned=yes ;;
11991esac
11992    DLLTOOL=$ac_ct_DLLTOOL
11993  fi
11994else
11995  DLLTOOL="$ac_cv_prog_DLLTOOL"
11996fi
11997
11998test -z "$DLLTOOL" && DLLTOOL=dlltool
11999
12000
12001
12002
12003
12004
12005
12006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12007$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12008if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12009  $as_echo_n "(cached) " >&6
12010else
12011  lt_cv_sharedlib_from_linklib_cmd='unknown'
12012
12013case $host_os in
12014cygwin* | mingw* | pw32* | cegcc*)
12015  # two different shell functions defined in ltmain.sh
12016  # decide which to use based on capabilities of $DLLTOOL
12017  case `$DLLTOOL --help 2>&1` in
12018  *--identify-strict*)
12019    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12020    ;;
12021  *)
12022    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12023    ;;
12024  esac
12025  ;;
12026*)
12027  # fallback: assume linklib IS sharedlib
12028  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12029  ;;
12030esac
12031
12032fi
12033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12034$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12035sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12036test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12037
12038
12039
12040
12041
12042
12043
12044if test -n "$ac_tool_prefix"; then
12045  for ac_prog in ar
12046  do
12047    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12048set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12050$as_echo_n "checking for $ac_word... " >&6; }
12051if ${ac_cv_prog_AR+:} false; then :
12052  $as_echo_n "(cached) " >&6
12053else
12054  if test -n "$AR"; then
12055  ac_cv_prog_AR="$AR" # Let the user override the test.
12056else
12057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12058for as_dir in $PATH
12059do
12060  IFS=$as_save_IFS
12061  test -z "$as_dir" && as_dir=.
12062    for ac_exec_ext in '' $ac_executable_extensions; do
12063  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12064    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12066    break 2
12067  fi
12068done
12069  done
12070IFS=$as_save_IFS
12071
12072fi
12073fi
12074AR=$ac_cv_prog_AR
12075if test -n "$AR"; then
12076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12077$as_echo "$AR" >&6; }
12078else
12079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12080$as_echo "no" >&6; }
12081fi
12082
12083
12084    test -n "$AR" && break
12085  done
12086fi
12087if test -z "$AR"; then
12088  ac_ct_AR=$AR
12089  for ac_prog in ar
12090do
12091  # Extract the first word of "$ac_prog", so it can be a program name with args.
12092set dummy $ac_prog; ac_word=$2
12093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12094$as_echo_n "checking for $ac_word... " >&6; }
12095if ${ac_cv_prog_ac_ct_AR+:} false; then :
12096  $as_echo_n "(cached) " >&6
12097else
12098  if test -n "$ac_ct_AR"; then
12099  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12100else
12101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102for as_dir in $PATH
12103do
12104  IFS=$as_save_IFS
12105  test -z "$as_dir" && as_dir=.
12106    for ac_exec_ext in '' $ac_executable_extensions; do
12107  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12108    ac_cv_prog_ac_ct_AR="$ac_prog"
12109    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12110    break 2
12111  fi
12112done
12113  done
12114IFS=$as_save_IFS
12115
12116fi
12117fi
12118ac_ct_AR=$ac_cv_prog_ac_ct_AR
12119if test -n "$ac_ct_AR"; then
12120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12121$as_echo "$ac_ct_AR" >&6; }
12122else
12123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124$as_echo "no" >&6; }
12125fi
12126
12127
12128  test -n "$ac_ct_AR" && break
12129done
12130
12131  if test "x$ac_ct_AR" = x; then
12132    AR="false"
12133  else
12134    case $cross_compiling:$ac_tool_warned in
12135yes:)
12136{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12138ac_tool_warned=yes ;;
12139esac
12140    AR=$ac_ct_AR
12141  fi
12142fi
12143
12144: ${AR=ar}
12145: ${AR_FLAGS=cru}
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12158$as_echo_n "checking for archiver @FILE support... " >&6; }
12159if ${lt_cv_ar_at_file+:} false; then :
12160  $as_echo_n "(cached) " >&6
12161else
12162  lt_cv_ar_at_file=no
12163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164/* end confdefs.h.  */
12165
12166int
12167main ()
12168{
12169
12170  ;
12171  return 0;
12172}
12173_ACEOF
12174if ac_fn_c_try_compile "$LINENO"; then :
12175  echo conftest.$ac_objext > conftest.lst
12176      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12177      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12178  (eval $lt_ar_try) 2>&5
12179  ac_status=$?
12180  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12181  test $ac_status = 0; }
12182      if test "$ac_status" -eq 0; then
12183	# Ensure the archiver fails upon bogus file names.
12184	rm -f conftest.$ac_objext libconftest.a
12185	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12186  (eval $lt_ar_try) 2>&5
12187  ac_status=$?
12188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12189  test $ac_status = 0; }
12190	if test "$ac_status" -ne 0; then
12191          lt_cv_ar_at_file=@
12192        fi
12193      fi
12194      rm -f conftest.* libconftest.a
12195
12196fi
12197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12198
12199fi
12200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12201$as_echo "$lt_cv_ar_at_file" >&6; }
12202
12203if test "x$lt_cv_ar_at_file" = xno; then
12204  archiver_list_spec=
12205else
12206  archiver_list_spec=$lt_cv_ar_at_file
12207fi
12208
12209
12210
12211
12212
12213
12214
12215if test -n "$ac_tool_prefix"; then
12216  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12217set dummy ${ac_tool_prefix}strip; ac_word=$2
12218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12219$as_echo_n "checking for $ac_word... " >&6; }
12220if ${ac_cv_prog_STRIP+:} false; then :
12221  $as_echo_n "(cached) " >&6
12222else
12223  if test -n "$STRIP"; then
12224  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12225else
12226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12227for as_dir in $PATH
12228do
12229  IFS=$as_save_IFS
12230  test -z "$as_dir" && as_dir=.
12231    for ac_exec_ext in '' $ac_executable_extensions; do
12232  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12233    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12235    break 2
12236  fi
12237done
12238  done
12239IFS=$as_save_IFS
12240
12241fi
12242fi
12243STRIP=$ac_cv_prog_STRIP
12244if test -n "$STRIP"; then
12245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12246$as_echo "$STRIP" >&6; }
12247else
12248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12249$as_echo "no" >&6; }
12250fi
12251
12252
12253fi
12254if test -z "$ac_cv_prog_STRIP"; then
12255  ac_ct_STRIP=$STRIP
12256  # Extract the first word of "strip", so it can be a program name with args.
12257set dummy strip; ac_word=$2
12258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12259$as_echo_n "checking for $ac_word... " >&6; }
12260if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12261  $as_echo_n "(cached) " >&6
12262else
12263  if test -n "$ac_ct_STRIP"; then
12264  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12265else
12266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12267for as_dir in $PATH
12268do
12269  IFS=$as_save_IFS
12270  test -z "$as_dir" && as_dir=.
12271    for ac_exec_ext in '' $ac_executable_extensions; do
12272  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12273    ac_cv_prog_ac_ct_STRIP="strip"
12274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12275    break 2
12276  fi
12277done
12278  done
12279IFS=$as_save_IFS
12280
12281fi
12282fi
12283ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12284if test -n "$ac_ct_STRIP"; then
12285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12286$as_echo "$ac_ct_STRIP" >&6; }
12287else
12288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289$as_echo "no" >&6; }
12290fi
12291
12292  if test "x$ac_ct_STRIP" = x; then
12293    STRIP=":"
12294  else
12295    case $cross_compiling:$ac_tool_warned in
12296yes:)
12297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12299ac_tool_warned=yes ;;
12300esac
12301    STRIP=$ac_ct_STRIP
12302  fi
12303else
12304  STRIP="$ac_cv_prog_STRIP"
12305fi
12306
12307test -z "$STRIP" && STRIP=:
12308
12309
12310
12311
12312
12313
12314if test -n "$ac_tool_prefix"; then
12315  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12316set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318$as_echo_n "checking for $ac_word... " >&6; }
12319if ${ac_cv_prog_RANLIB+:} false; then :
12320  $as_echo_n "(cached) " >&6
12321else
12322  if test -n "$RANLIB"; then
12323  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12324else
12325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326for as_dir in $PATH
12327do
12328  IFS=$as_save_IFS
12329  test -z "$as_dir" && as_dir=.
12330    for ac_exec_ext in '' $ac_executable_extensions; do
12331  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12332    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12334    break 2
12335  fi
12336done
12337  done
12338IFS=$as_save_IFS
12339
12340fi
12341fi
12342RANLIB=$ac_cv_prog_RANLIB
12343if test -n "$RANLIB"; then
12344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12345$as_echo "$RANLIB" >&6; }
12346else
12347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348$as_echo "no" >&6; }
12349fi
12350
12351
12352fi
12353if test -z "$ac_cv_prog_RANLIB"; then
12354  ac_ct_RANLIB=$RANLIB
12355  # Extract the first word of "ranlib", so it can be a program name with args.
12356set dummy ranlib; ac_word=$2
12357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12358$as_echo_n "checking for $ac_word... " >&6; }
12359if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12360  $as_echo_n "(cached) " >&6
12361else
12362  if test -n "$ac_ct_RANLIB"; then
12363  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12364else
12365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12366for as_dir in $PATH
12367do
12368  IFS=$as_save_IFS
12369  test -z "$as_dir" && as_dir=.
12370    for ac_exec_ext in '' $ac_executable_extensions; do
12371  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12372    ac_cv_prog_ac_ct_RANLIB="ranlib"
12373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12374    break 2
12375  fi
12376done
12377  done
12378IFS=$as_save_IFS
12379
12380fi
12381fi
12382ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12383if test -n "$ac_ct_RANLIB"; then
12384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12385$as_echo "$ac_ct_RANLIB" >&6; }
12386else
12387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388$as_echo "no" >&6; }
12389fi
12390
12391  if test "x$ac_ct_RANLIB" = x; then
12392    RANLIB=":"
12393  else
12394    case $cross_compiling:$ac_tool_warned in
12395yes:)
12396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12398ac_tool_warned=yes ;;
12399esac
12400    RANLIB=$ac_ct_RANLIB
12401  fi
12402else
12403  RANLIB="$ac_cv_prog_RANLIB"
12404fi
12405
12406test -z "$RANLIB" && RANLIB=:
12407
12408
12409
12410
12411
12412
12413# Determine commands to create old-style static archives.
12414old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12415old_postinstall_cmds='chmod 644 $oldlib'
12416old_postuninstall_cmds=
12417
12418if test -n "$RANLIB"; then
12419  case $host_os in
12420  openbsd*)
12421    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12422    ;;
12423  *)
12424    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12425    ;;
12426  esac
12427  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12428fi
12429
12430case $host_os in
12431  darwin*)
12432    lock_old_archive_extraction=yes ;;
12433  *)
12434    lock_old_archive_extraction=no ;;
12435esac
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475# If no C compiler was specified, use CC.
12476LTCC=${LTCC-"$CC"}
12477
12478# If no C compiler flags were specified, use CFLAGS.
12479LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12480
12481# Allow CC to be a program name with arguments.
12482compiler=$CC
12483
12484
12485# Check for command to grab the raw symbol name followed by C symbol from nm.
12486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12487$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12488if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12489  $as_echo_n "(cached) " >&6
12490else
12491
12492# These are sane defaults that work on at least a few old systems.
12493# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12494
12495# Character class describing NM global symbol codes.
12496symcode='[BCDEGRST]'
12497
12498# Regexp to match symbols that can be accessed directly from C.
12499sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12500
12501# Define system-specific variables.
12502case $host_os in
12503aix*)
12504  symcode='[BCDT]'
12505  ;;
12506cygwin* | mingw* | pw32* | cegcc*)
12507  symcode='[ABCDGISTW]'
12508  ;;
12509hpux*)
12510  if test "$host_cpu" = ia64; then
12511    symcode='[ABCDEGRST]'
12512  fi
12513  ;;
12514irix* | nonstopux*)
12515  symcode='[BCDEGRST]'
12516  ;;
12517osf*)
12518  symcode='[BCDEGQRST]'
12519  ;;
12520solaris*)
12521  symcode='[BDRT]'
12522  ;;
12523sco3.2v5*)
12524  symcode='[DT]'
12525  ;;
12526sysv4.2uw2*)
12527  symcode='[DT]'
12528  ;;
12529sysv5* | sco5v6* | unixware* | OpenUNIX*)
12530  symcode='[ABDT]'
12531  ;;
12532sysv4)
12533  symcode='[DFNSTU]'
12534  ;;
12535esac
12536
12537# If we're using GNU nm, then use its standard symbol codes.
12538case `$NM -V 2>&1` in
12539*GNU* | *'with BFD'*)
12540  symcode='[ABCDGIRSTW]' ;;
12541esac
12542
12543# Transform an extracted symbol line into a proper C declaration.
12544# Some systems (esp. on ia64) link data and code symbols differently,
12545# so use this general approach.
12546lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12547
12548# Transform an extracted symbol line into symbol name and symbol address
12549lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12550lt_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'"
12551
12552# Handle CRLF in mingw tool chain
12553opt_cr=
12554case $build_os in
12555mingw*)
12556  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12557  ;;
12558esac
12559
12560# Try without a prefix underscore, then with it.
12561for ac_symprfx in "" "_"; do
12562
12563  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12564  symxfrm="\\1 $ac_symprfx\\2 \\2"
12565
12566  # Write the raw and C identifiers.
12567  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12568    # Fake it for dumpbin and say T for any non-static function
12569    # and D for any global variable.
12570    # Also find C++ and __fastcall symbols from MSVC++,
12571    # which start with @ or ?.
12572    lt_cv_sys_global_symbol_pipe="$AWK '"\
12573"     {last_section=section; section=\$ 3};"\
12574"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12575"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12576"     \$ 0!~/External *\|/{next};"\
12577"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12578"     {if(hide[section]) next};"\
12579"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12580"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12581"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12582"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12583"     ' prfx=^$ac_symprfx"
12584  else
12585    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12586  fi
12587  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12588
12589  # Check to see that the pipe works correctly.
12590  pipe_works=no
12591
12592  rm -f conftest*
12593  cat > conftest.$ac_ext <<_LT_EOF
12594#ifdef __cplusplus
12595extern "C" {
12596#endif
12597char nm_test_var;
12598void nm_test_func(void);
12599void nm_test_func(void){}
12600#ifdef __cplusplus
12601}
12602#endif
12603int main(){nm_test_var='a';nm_test_func();return(0);}
12604_LT_EOF
12605
12606  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12607  (eval $ac_compile) 2>&5
12608  ac_status=$?
12609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12610  test $ac_status = 0; }; then
12611    # Now try to grab the symbols.
12612    nlist=conftest.nm
12613    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12614  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12615  ac_status=$?
12616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12617  test $ac_status = 0; } && test -s "$nlist"; then
12618      # Try sorting and uniquifying the output.
12619      if sort "$nlist" | uniq > "$nlist"T; then
12620	mv -f "$nlist"T "$nlist"
12621      else
12622	rm -f "$nlist"T
12623      fi
12624
12625      # Make sure that we snagged all the symbols we need.
12626      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12627	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12628	  cat <<_LT_EOF > conftest.$ac_ext
12629/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12630#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12631/* DATA imports from DLLs on WIN32 con't be const, because runtime
12632   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12633# define LT_DLSYM_CONST
12634#elif defined(__osf__)
12635/* This system does not cope well with relocations in const data.  */
12636# define LT_DLSYM_CONST
12637#else
12638# define LT_DLSYM_CONST const
12639#endif
12640
12641#ifdef __cplusplus
12642extern "C" {
12643#endif
12644
12645_LT_EOF
12646	  # Now generate the symbol file.
12647	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12648
12649	  cat <<_LT_EOF >> conftest.$ac_ext
12650
12651/* The mapping between symbol names and symbols.  */
12652LT_DLSYM_CONST struct {
12653  const char *name;
12654  void       *address;
12655}
12656lt__PROGRAM__LTX_preloaded_symbols[] =
12657{
12658  { "@PROGRAM@", (void *) 0 },
12659_LT_EOF
12660	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12661	  cat <<\_LT_EOF >> conftest.$ac_ext
12662  {0, (void *) 0}
12663};
12664
12665/* This works around a problem in FreeBSD linker */
12666#ifdef FREEBSD_WORKAROUND
12667static const void *lt_preloaded_setup() {
12668  return lt__PROGRAM__LTX_preloaded_symbols;
12669}
12670#endif
12671
12672#ifdef __cplusplus
12673}
12674#endif
12675_LT_EOF
12676	  # Now try linking the two files.
12677	  mv conftest.$ac_objext conftstm.$ac_objext
12678	  lt_globsym_save_LIBS=$LIBS
12679	  lt_globsym_save_CFLAGS=$CFLAGS
12680	  LIBS="conftstm.$ac_objext"
12681	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12682	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12683  (eval $ac_link) 2>&5
12684  ac_status=$?
12685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12686  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12687	    pipe_works=yes
12688	  fi
12689	  LIBS=$lt_globsym_save_LIBS
12690	  CFLAGS=$lt_globsym_save_CFLAGS
12691	else
12692	  echo "cannot find nm_test_func in $nlist" >&5
12693	fi
12694      else
12695	echo "cannot find nm_test_var in $nlist" >&5
12696      fi
12697    else
12698      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12699    fi
12700  else
12701    echo "$progname: failed program was:" >&5
12702    cat conftest.$ac_ext >&5
12703  fi
12704  rm -rf conftest* conftst*
12705
12706  # Do not use the global_symbol_pipe unless it works.
12707  if test "$pipe_works" = yes; then
12708    break
12709  else
12710    lt_cv_sys_global_symbol_pipe=
12711  fi
12712done
12713
12714fi
12715
12716if test -z "$lt_cv_sys_global_symbol_pipe"; then
12717  lt_cv_sys_global_symbol_to_cdecl=
12718fi
12719if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12721$as_echo "failed" >&6; }
12722else
12723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12724$as_echo "ok" >&6; }
12725fi
12726
12727# Response file support.
12728if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12729  nm_file_list_spec='@'
12730elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12731  nm_file_list_spec='@'
12732fi
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12761$as_echo_n "checking for sysroot... " >&6; }
12762
12763# Check whether --with-sysroot was given.
12764if test "${with_sysroot+set}" = set; then :
12765  withval=$with_sysroot;
12766else
12767  with_sysroot=no
12768fi
12769
12770
12771lt_sysroot=
12772case ${with_sysroot} in #(
12773 yes)
12774   if test "$GCC" = yes; then
12775     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12776   fi
12777   ;; #(
12778 /*)
12779   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12780   ;; #(
12781 no|'')
12782   ;; #(
12783 *)
12784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12785$as_echo "${with_sysroot}" >&6; }
12786   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12787   ;;
12788esac
12789
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12791$as_echo "${lt_sysroot:-no}" >&6; }
12792
12793
12794
12795
12796
12797# Check whether --enable-libtool-lock was given.
12798if test "${enable_libtool_lock+set}" = set; then :
12799  enableval=$enable_libtool_lock;
12800fi
12801
12802test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12803
12804# Some flags need to be propagated to the compiler or linker for good
12805# libtool support.
12806case $host in
12807ia64-*-hpux*)
12808  # Find out which ABI we are using.
12809  echo 'int i;' > conftest.$ac_ext
12810  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12811  (eval $ac_compile) 2>&5
12812  ac_status=$?
12813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12814  test $ac_status = 0; }; then
12815    case `/usr/bin/file conftest.$ac_objext` in
12816      *ELF-32*)
12817	HPUX_IA64_MODE="32"
12818	;;
12819      *ELF-64*)
12820	HPUX_IA64_MODE="64"
12821	;;
12822    esac
12823  fi
12824  rm -rf conftest*
12825  ;;
12826*-*-irix6*)
12827  # Find out which ABI we are using.
12828  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12829  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12830  (eval $ac_compile) 2>&5
12831  ac_status=$?
12832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833  test $ac_status = 0; }; then
12834    if test "$lt_cv_prog_gnu_ld" = yes; then
12835      case `/usr/bin/file conftest.$ac_objext` in
12836	*32-bit*)
12837	  LD="${LD-ld} -melf32bsmip"
12838	  ;;
12839	*N32*)
12840	  LD="${LD-ld} -melf32bmipn32"
12841	  ;;
12842	*64-bit*)
12843	  LD="${LD-ld} -melf64bmip"
12844	;;
12845      esac
12846    else
12847      case `/usr/bin/file conftest.$ac_objext` in
12848	*32-bit*)
12849	  LD="${LD-ld} -32"
12850	  ;;
12851	*N32*)
12852	  LD="${LD-ld} -n32"
12853	  ;;
12854	*64-bit*)
12855	  LD="${LD-ld} -64"
12856	  ;;
12857      esac
12858    fi
12859  fi
12860  rm -rf conftest*
12861  ;;
12862
12863x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12864s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12865  # Find out which ABI we are using.
12866  echo 'int i;' > conftest.$ac_ext
12867  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12868  (eval $ac_compile) 2>&5
12869  ac_status=$?
12870  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12871  test $ac_status = 0; }; then
12872    case `/usr/bin/file conftest.o` in
12873      *32-bit*)
12874	case $host in
12875	  x86_64-*kfreebsd*-gnu)
12876	    LD="${LD-ld} -m elf_i386_fbsd"
12877	    ;;
12878	  x86_64-*linux*)
12879	    LD="${LD-ld} -m elf_i386"
12880	    ;;
12881	  ppc64-*linux*|powerpc64-*linux*)
12882	    LD="${LD-ld} -m elf32ppclinux"
12883	    ;;
12884	  s390x-*linux*)
12885	    LD="${LD-ld} -m elf_s390"
12886	    ;;
12887	  sparc64-*linux*)
12888	    LD="${LD-ld} -m elf32_sparc"
12889	    ;;
12890	esac
12891	;;
12892      *64-bit*)
12893	case $host in
12894	  x86_64-*kfreebsd*-gnu)
12895	    LD="${LD-ld} -m elf_x86_64_fbsd"
12896	    ;;
12897	  x86_64-*linux*)
12898	    LD="${LD-ld} -m elf_x86_64"
12899	    ;;
12900	  ppc*-*linux*|powerpc*-*linux*)
12901	    LD="${LD-ld} -m elf64ppc"
12902	    ;;
12903	  s390*-*linux*|s390*-*tpf*)
12904	    LD="${LD-ld} -m elf64_s390"
12905	    ;;
12906	  sparc*-*linux*)
12907	    LD="${LD-ld} -m elf64_sparc"
12908	    ;;
12909	esac
12910	;;
12911    esac
12912  fi
12913  rm -rf conftest*
12914  ;;
12915
12916*-*-sco3.2v5*)
12917  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12918  SAVE_CFLAGS="$CFLAGS"
12919  CFLAGS="$CFLAGS -belf"
12920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12921$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12922if ${lt_cv_cc_needs_belf+:} false; then :
12923  $as_echo_n "(cached) " >&6
12924else
12925  ac_ext=c
12926ac_cpp='$CPP $CPPFLAGS'
12927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12929ac_compiler_gnu=$ac_cv_c_compiler_gnu
12930
12931     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932/* end confdefs.h.  */
12933
12934int
12935main ()
12936{
12937
12938  ;
12939  return 0;
12940}
12941_ACEOF
12942if ac_fn_c_try_link "$LINENO"; then :
12943  lt_cv_cc_needs_belf=yes
12944else
12945  lt_cv_cc_needs_belf=no
12946fi
12947rm -f core conftest.err conftest.$ac_objext \
12948    conftest$ac_exeext conftest.$ac_ext
12949     ac_ext=c
12950ac_cpp='$CPP $CPPFLAGS'
12951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12953ac_compiler_gnu=$ac_cv_c_compiler_gnu
12954
12955fi
12956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12957$as_echo "$lt_cv_cc_needs_belf" >&6; }
12958  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12959    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12960    CFLAGS="$SAVE_CFLAGS"
12961  fi
12962  ;;
12963*-*solaris*)
12964  # Find out which ABI we are using.
12965  echo 'int i;' > conftest.$ac_ext
12966  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12967  (eval $ac_compile) 2>&5
12968  ac_status=$?
12969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12970  test $ac_status = 0; }; then
12971    case `/usr/bin/file conftest.o` in
12972    *64-bit*)
12973      case $lt_cv_prog_gnu_ld in
12974      yes*)
12975        case $host in
12976        i?86-*-solaris*)
12977          LD="${LD-ld} -m elf_x86_64"
12978          ;;
12979        sparc*-*-solaris*)
12980          LD="${LD-ld} -m elf64_sparc"
12981          ;;
12982        esac
12983        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
12984        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12985          LD="${LD-ld}_sol2"
12986        fi
12987        ;;
12988      *)
12989	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12990	  LD="${LD-ld} -64"
12991	fi
12992	;;
12993      esac
12994      ;;
12995    esac
12996  fi
12997  rm -rf conftest*
12998  ;;
12999esac
13000
13001need_locks="$enable_libtool_lock"
13002
13003if test -n "$ac_tool_prefix"; then
13004  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13005set dummy ${ac_tool_prefix}mt; ac_word=$2
13006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13007$as_echo_n "checking for $ac_word... " >&6; }
13008if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13009  $as_echo_n "(cached) " >&6
13010else
13011  if test -n "$MANIFEST_TOOL"; then
13012  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13013else
13014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13015for as_dir in $PATH
13016do
13017  IFS=$as_save_IFS
13018  test -z "$as_dir" && as_dir=.
13019    for ac_exec_ext in '' $ac_executable_extensions; do
13020  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13021    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13022    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13023    break 2
13024  fi
13025done
13026  done
13027IFS=$as_save_IFS
13028
13029fi
13030fi
13031MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13032if test -n "$MANIFEST_TOOL"; then
13033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13034$as_echo "$MANIFEST_TOOL" >&6; }
13035else
13036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037$as_echo "no" >&6; }
13038fi
13039
13040
13041fi
13042if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13043  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13044  # Extract the first word of "mt", so it can be a program name with args.
13045set dummy mt; ac_word=$2
13046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13047$as_echo_n "checking for $ac_word... " >&6; }
13048if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13049  $as_echo_n "(cached) " >&6
13050else
13051  if test -n "$ac_ct_MANIFEST_TOOL"; then
13052  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13053else
13054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13055for as_dir in $PATH
13056do
13057  IFS=$as_save_IFS
13058  test -z "$as_dir" && as_dir=.
13059    for ac_exec_ext in '' $ac_executable_extensions; do
13060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13061    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13063    break 2
13064  fi
13065done
13066  done
13067IFS=$as_save_IFS
13068
13069fi
13070fi
13071ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13072if test -n "$ac_ct_MANIFEST_TOOL"; then
13073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13074$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13075else
13076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077$as_echo "no" >&6; }
13078fi
13079
13080  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13081    MANIFEST_TOOL=":"
13082  else
13083    case $cross_compiling:$ac_tool_warned in
13084yes:)
13085{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13087ac_tool_warned=yes ;;
13088esac
13089    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13090  fi
13091else
13092  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13093fi
13094
13095test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13097$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13098if ${lt_cv_path_mainfest_tool+:} false; then :
13099  $as_echo_n "(cached) " >&6
13100else
13101  lt_cv_path_mainfest_tool=no
13102  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13103  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13104  cat conftest.err >&5
13105  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13106    lt_cv_path_mainfest_tool=yes
13107  fi
13108  rm -f conftest*
13109fi
13110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13111$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13112if test "x$lt_cv_path_mainfest_tool" != xyes; then
13113  MANIFEST_TOOL=:
13114fi
13115
13116
13117
13118
13119
13120
13121  case $host_os in
13122    rhapsody* | darwin*)
13123    if test -n "$ac_tool_prefix"; then
13124  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13125set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13127$as_echo_n "checking for $ac_word... " >&6; }
13128if ${ac_cv_prog_DSYMUTIL+:} false; then :
13129  $as_echo_n "(cached) " >&6
13130else
13131  if test -n "$DSYMUTIL"; then
13132  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13133else
13134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13135for as_dir in $PATH
13136do
13137  IFS=$as_save_IFS
13138  test -z "$as_dir" && as_dir=.
13139    for ac_exec_ext in '' $ac_executable_extensions; do
13140  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13141    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13142    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13143    break 2
13144  fi
13145done
13146  done
13147IFS=$as_save_IFS
13148
13149fi
13150fi
13151DSYMUTIL=$ac_cv_prog_DSYMUTIL
13152if test -n "$DSYMUTIL"; then
13153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13154$as_echo "$DSYMUTIL" >&6; }
13155else
13156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13157$as_echo "no" >&6; }
13158fi
13159
13160
13161fi
13162if test -z "$ac_cv_prog_DSYMUTIL"; then
13163  ac_ct_DSYMUTIL=$DSYMUTIL
13164  # Extract the first word of "dsymutil", so it can be a program name with args.
13165set dummy dsymutil; ac_word=$2
13166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13167$as_echo_n "checking for $ac_word... " >&6; }
13168if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13169  $as_echo_n "(cached) " >&6
13170else
13171  if test -n "$ac_ct_DSYMUTIL"; then
13172  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13173else
13174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13175for as_dir in $PATH
13176do
13177  IFS=$as_save_IFS
13178  test -z "$as_dir" && as_dir=.
13179    for ac_exec_ext in '' $ac_executable_extensions; do
13180  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13181    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13183    break 2
13184  fi
13185done
13186  done
13187IFS=$as_save_IFS
13188
13189fi
13190fi
13191ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13192if test -n "$ac_ct_DSYMUTIL"; then
13193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13194$as_echo "$ac_ct_DSYMUTIL" >&6; }
13195else
13196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13197$as_echo "no" >&6; }
13198fi
13199
13200  if test "x$ac_ct_DSYMUTIL" = x; then
13201    DSYMUTIL=":"
13202  else
13203    case $cross_compiling:$ac_tool_warned in
13204yes:)
13205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13207ac_tool_warned=yes ;;
13208esac
13209    DSYMUTIL=$ac_ct_DSYMUTIL
13210  fi
13211else
13212  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13213fi
13214
13215    if test -n "$ac_tool_prefix"; then
13216  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13217set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13219$as_echo_n "checking for $ac_word... " >&6; }
13220if ${ac_cv_prog_NMEDIT+:} false; then :
13221  $as_echo_n "(cached) " >&6
13222else
13223  if test -n "$NMEDIT"; then
13224  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13225else
13226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13227for as_dir in $PATH
13228do
13229  IFS=$as_save_IFS
13230  test -z "$as_dir" && as_dir=.
13231    for ac_exec_ext in '' $ac_executable_extensions; do
13232  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13233    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13235    break 2
13236  fi
13237done
13238  done
13239IFS=$as_save_IFS
13240
13241fi
13242fi
13243NMEDIT=$ac_cv_prog_NMEDIT
13244if test -n "$NMEDIT"; then
13245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13246$as_echo "$NMEDIT" >&6; }
13247else
13248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249$as_echo "no" >&6; }
13250fi
13251
13252
13253fi
13254if test -z "$ac_cv_prog_NMEDIT"; then
13255  ac_ct_NMEDIT=$NMEDIT
13256  # Extract the first word of "nmedit", so it can be a program name with args.
13257set dummy nmedit; ac_word=$2
13258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13259$as_echo_n "checking for $ac_word... " >&6; }
13260if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13261  $as_echo_n "(cached) " >&6
13262else
13263  if test -n "$ac_ct_NMEDIT"; then
13264  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13265else
13266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13267for as_dir in $PATH
13268do
13269  IFS=$as_save_IFS
13270  test -z "$as_dir" && as_dir=.
13271    for ac_exec_ext in '' $ac_executable_extensions; do
13272  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13273    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13275    break 2
13276  fi
13277done
13278  done
13279IFS=$as_save_IFS
13280
13281fi
13282fi
13283ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13284if test -n "$ac_ct_NMEDIT"; then
13285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13286$as_echo "$ac_ct_NMEDIT" >&6; }
13287else
13288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13289$as_echo "no" >&6; }
13290fi
13291
13292  if test "x$ac_ct_NMEDIT" = x; then
13293    NMEDIT=":"
13294  else
13295    case $cross_compiling:$ac_tool_warned in
13296yes:)
13297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13299ac_tool_warned=yes ;;
13300esac
13301    NMEDIT=$ac_ct_NMEDIT
13302  fi
13303else
13304  NMEDIT="$ac_cv_prog_NMEDIT"
13305fi
13306
13307    if test -n "$ac_tool_prefix"; then
13308  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13309set dummy ${ac_tool_prefix}lipo; ac_word=$2
13310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13311$as_echo_n "checking for $ac_word... " >&6; }
13312if ${ac_cv_prog_LIPO+:} false; then :
13313  $as_echo_n "(cached) " >&6
13314else
13315  if test -n "$LIPO"; then
13316  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13317else
13318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13319for as_dir in $PATH
13320do
13321  IFS=$as_save_IFS
13322  test -z "$as_dir" && as_dir=.
13323    for ac_exec_ext in '' $ac_executable_extensions; do
13324  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13325    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13326    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13327    break 2
13328  fi
13329done
13330  done
13331IFS=$as_save_IFS
13332
13333fi
13334fi
13335LIPO=$ac_cv_prog_LIPO
13336if test -n "$LIPO"; then
13337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13338$as_echo "$LIPO" >&6; }
13339else
13340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341$as_echo "no" >&6; }
13342fi
13343
13344
13345fi
13346if test -z "$ac_cv_prog_LIPO"; then
13347  ac_ct_LIPO=$LIPO
13348  # Extract the first word of "lipo", so it can be a program name with args.
13349set dummy lipo; ac_word=$2
13350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13351$as_echo_n "checking for $ac_word... " >&6; }
13352if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13353  $as_echo_n "(cached) " >&6
13354else
13355  if test -n "$ac_ct_LIPO"; then
13356  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13357else
13358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13359for as_dir in $PATH
13360do
13361  IFS=$as_save_IFS
13362  test -z "$as_dir" && as_dir=.
13363    for ac_exec_ext in '' $ac_executable_extensions; do
13364  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13365    ac_cv_prog_ac_ct_LIPO="lipo"
13366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13367    break 2
13368  fi
13369done
13370  done
13371IFS=$as_save_IFS
13372
13373fi
13374fi
13375ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13376if test -n "$ac_ct_LIPO"; then
13377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13378$as_echo "$ac_ct_LIPO" >&6; }
13379else
13380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381$as_echo "no" >&6; }
13382fi
13383
13384  if test "x$ac_ct_LIPO" = x; then
13385    LIPO=":"
13386  else
13387    case $cross_compiling:$ac_tool_warned in
13388yes:)
13389{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13391ac_tool_warned=yes ;;
13392esac
13393    LIPO=$ac_ct_LIPO
13394  fi
13395else
13396  LIPO="$ac_cv_prog_LIPO"
13397fi
13398
13399    if test -n "$ac_tool_prefix"; then
13400  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13401set dummy ${ac_tool_prefix}otool; ac_word=$2
13402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13403$as_echo_n "checking for $ac_word... " >&6; }
13404if ${ac_cv_prog_OTOOL+:} false; then :
13405  $as_echo_n "(cached) " >&6
13406else
13407  if test -n "$OTOOL"; then
13408  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13409else
13410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13411for as_dir in $PATH
13412do
13413  IFS=$as_save_IFS
13414  test -z "$as_dir" && as_dir=.
13415    for ac_exec_ext in '' $ac_executable_extensions; do
13416  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13417    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13419    break 2
13420  fi
13421done
13422  done
13423IFS=$as_save_IFS
13424
13425fi
13426fi
13427OTOOL=$ac_cv_prog_OTOOL
13428if test -n "$OTOOL"; then
13429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13430$as_echo "$OTOOL" >&6; }
13431else
13432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13433$as_echo "no" >&6; }
13434fi
13435
13436
13437fi
13438if test -z "$ac_cv_prog_OTOOL"; then
13439  ac_ct_OTOOL=$OTOOL
13440  # Extract the first word of "otool", so it can be a program name with args.
13441set dummy otool; ac_word=$2
13442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13443$as_echo_n "checking for $ac_word... " >&6; }
13444if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13445  $as_echo_n "(cached) " >&6
13446else
13447  if test -n "$ac_ct_OTOOL"; then
13448  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13449else
13450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13451for as_dir in $PATH
13452do
13453  IFS=$as_save_IFS
13454  test -z "$as_dir" && as_dir=.
13455    for ac_exec_ext in '' $ac_executable_extensions; do
13456  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13457    ac_cv_prog_ac_ct_OTOOL="otool"
13458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13459    break 2
13460  fi
13461done
13462  done
13463IFS=$as_save_IFS
13464
13465fi
13466fi
13467ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13468if test -n "$ac_ct_OTOOL"; then
13469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13470$as_echo "$ac_ct_OTOOL" >&6; }
13471else
13472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13473$as_echo "no" >&6; }
13474fi
13475
13476  if test "x$ac_ct_OTOOL" = x; then
13477    OTOOL=":"
13478  else
13479    case $cross_compiling:$ac_tool_warned in
13480yes:)
13481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13483ac_tool_warned=yes ;;
13484esac
13485    OTOOL=$ac_ct_OTOOL
13486  fi
13487else
13488  OTOOL="$ac_cv_prog_OTOOL"
13489fi
13490
13491    if test -n "$ac_tool_prefix"; then
13492  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13493set dummy ${ac_tool_prefix}otool64; ac_word=$2
13494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13495$as_echo_n "checking for $ac_word... " >&6; }
13496if ${ac_cv_prog_OTOOL64+:} false; then :
13497  $as_echo_n "(cached) " >&6
13498else
13499  if test -n "$OTOOL64"; then
13500  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13501else
13502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13503for as_dir in $PATH
13504do
13505  IFS=$as_save_IFS
13506  test -z "$as_dir" && as_dir=.
13507    for ac_exec_ext in '' $ac_executable_extensions; do
13508  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13509    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13511    break 2
13512  fi
13513done
13514  done
13515IFS=$as_save_IFS
13516
13517fi
13518fi
13519OTOOL64=$ac_cv_prog_OTOOL64
13520if test -n "$OTOOL64"; then
13521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13522$as_echo "$OTOOL64" >&6; }
13523else
13524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13525$as_echo "no" >&6; }
13526fi
13527
13528
13529fi
13530if test -z "$ac_cv_prog_OTOOL64"; then
13531  ac_ct_OTOOL64=$OTOOL64
13532  # Extract the first word of "otool64", so it can be a program name with args.
13533set dummy otool64; ac_word=$2
13534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13535$as_echo_n "checking for $ac_word... " >&6; }
13536if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13537  $as_echo_n "(cached) " >&6
13538else
13539  if test -n "$ac_ct_OTOOL64"; then
13540  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13541else
13542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13543for as_dir in $PATH
13544do
13545  IFS=$as_save_IFS
13546  test -z "$as_dir" && as_dir=.
13547    for ac_exec_ext in '' $ac_executable_extensions; do
13548  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13549    ac_cv_prog_ac_ct_OTOOL64="otool64"
13550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13551    break 2
13552  fi
13553done
13554  done
13555IFS=$as_save_IFS
13556
13557fi
13558fi
13559ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13560if test -n "$ac_ct_OTOOL64"; then
13561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13562$as_echo "$ac_ct_OTOOL64" >&6; }
13563else
13564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13565$as_echo "no" >&6; }
13566fi
13567
13568  if test "x$ac_ct_OTOOL64" = x; then
13569    OTOOL64=":"
13570  else
13571    case $cross_compiling:$ac_tool_warned in
13572yes:)
13573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13575ac_tool_warned=yes ;;
13576esac
13577    OTOOL64=$ac_ct_OTOOL64
13578  fi
13579else
13580  OTOOL64="$ac_cv_prog_OTOOL64"
13581fi
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13610$as_echo_n "checking for -single_module linker flag... " >&6; }
13611if ${lt_cv_apple_cc_single_mod+:} false; then :
13612  $as_echo_n "(cached) " >&6
13613else
13614  lt_cv_apple_cc_single_mod=no
13615      if test -z "${LT_MULTI_MODULE}"; then
13616	# By default we will add the -single_module flag. You can override
13617	# by either setting the environment variable LT_MULTI_MODULE
13618	# non-empty at configure time, or by adding -multi_module to the
13619	# link flags.
13620	rm -rf libconftest.dylib*
13621	echo "int foo(void){return 1;}" > conftest.c
13622	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13623-dynamiclib -Wl,-single_module conftest.c" >&5
13624	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13625	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13626        _lt_result=$?
13627	# If there is a non-empty error log, and "single_module"
13628	# appears in it, assume the flag caused a linker warning
13629        if test -s conftest.err && $GREP single_module conftest.err; then
13630	  cat conftest.err >&5
13631	# Otherwise, if the output was created with a 0 exit code from
13632	# the compiler, it worked.
13633	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13634	  lt_cv_apple_cc_single_mod=yes
13635	else
13636	  cat conftest.err >&5
13637	fi
13638	rm -rf libconftest.dylib*
13639	rm -f conftest.*
13640      fi
13641fi
13642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13643$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13644
13645    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13646$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13647if ${lt_cv_ld_exported_symbols_list+:} false; then :
13648  $as_echo_n "(cached) " >&6
13649else
13650  lt_cv_ld_exported_symbols_list=no
13651      save_LDFLAGS=$LDFLAGS
13652      echo "_main" > conftest.sym
13653      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13654      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655/* end confdefs.h.  */
13656
13657int
13658main ()
13659{
13660
13661  ;
13662  return 0;
13663}
13664_ACEOF
13665if ac_fn_c_try_link "$LINENO"; then :
13666  lt_cv_ld_exported_symbols_list=yes
13667else
13668  lt_cv_ld_exported_symbols_list=no
13669fi
13670rm -f core conftest.err conftest.$ac_objext \
13671    conftest$ac_exeext conftest.$ac_ext
13672	LDFLAGS="$save_LDFLAGS"
13673
13674fi
13675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13676$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13677
13678    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13679$as_echo_n "checking for -force_load linker flag... " >&6; }
13680if ${lt_cv_ld_force_load+:} false; then :
13681  $as_echo_n "(cached) " >&6
13682else
13683  lt_cv_ld_force_load=no
13684      cat > conftest.c << _LT_EOF
13685int forced_loaded() { return 2;}
13686_LT_EOF
13687      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13688      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13689      echo "$AR cru libconftest.a conftest.o" >&5
13690      $AR cru libconftest.a conftest.o 2>&5
13691      echo "$RANLIB libconftest.a" >&5
13692      $RANLIB libconftest.a 2>&5
13693      cat > conftest.c << _LT_EOF
13694int main() { return 0;}
13695_LT_EOF
13696      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13697      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13698      _lt_result=$?
13699      if test -s conftest.err && $GREP force_load conftest.err; then
13700	cat conftest.err >&5
13701      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13702	lt_cv_ld_force_load=yes
13703      else
13704	cat conftest.err >&5
13705      fi
13706        rm -f conftest.err libconftest.a conftest conftest.c
13707        rm -rf conftest.dSYM
13708
13709fi
13710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13711$as_echo "$lt_cv_ld_force_load" >&6; }
13712    case $host_os in
13713    rhapsody* | darwin1.[012])
13714      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13715    darwin1.*)
13716      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13717    darwin*) # darwin 5.x on
13718      # if running on 10.5 or later, the deployment target defaults
13719      # to the OS version, if on x86, and 10.4, the deployment
13720      # target defaults to 10.4. Don't you love it?
13721      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13722	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13723	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13724	10.[012]*)
13725	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13726	10.*)
13727	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13728      esac
13729    ;;
13730  esac
13731    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13732      _lt_dar_single_mod='$single_module'
13733    fi
13734    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13735      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13736    else
13737      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13738    fi
13739    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13740      _lt_dsymutil='~$DSYMUTIL $lib || :'
13741    else
13742      _lt_dsymutil=
13743    fi
13744    ;;
13745  esac
13746
13747for ac_header in dlfcn.h
13748do :
13749  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13750"
13751if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13752  cat >>confdefs.h <<_ACEOF
13753#define HAVE_DLFCN_H 1
13754_ACEOF
13755
13756fi
13757
13758done
13759
13760
13761
13762
13763
13764# Set options
13765
13766
13767
13768        enable_dlopen=no
13769
13770
13771
13772            # Check whether --enable-shared was given.
13773if test "${enable_shared+set}" = set; then :
13774  enableval=$enable_shared; p=${PACKAGE-default}
13775    case $enableval in
13776    yes) enable_shared=yes ;;
13777    no) enable_shared=no ;;
13778    *)
13779      enable_shared=no
13780      # Look at the argument we got.  We use all the common list separators.
13781      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13782      for pkg in $enableval; do
13783	IFS="$lt_save_ifs"
13784	if test "X$pkg" = "X$p"; then
13785	  enable_shared=yes
13786	fi
13787      done
13788      IFS="$lt_save_ifs"
13789      ;;
13790    esac
13791else
13792  enable_shared=yes
13793fi
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803  # Check whether --enable-static was given.
13804if test "${enable_static+set}" = set; then :
13805  enableval=$enable_static; p=${PACKAGE-default}
13806    case $enableval in
13807    yes) enable_static=yes ;;
13808    no) enable_static=no ;;
13809    *)
13810     enable_static=no
13811      # Look at the argument we got.  We use all the common list separators.
13812      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13813      for pkg in $enableval; do
13814	IFS="$lt_save_ifs"
13815	if test "X$pkg" = "X$p"; then
13816	  enable_static=yes
13817	fi
13818      done
13819      IFS="$lt_save_ifs"
13820      ;;
13821    esac
13822else
13823  enable_static=yes
13824fi
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835# Check whether --with-pic was given.
13836if test "${with_pic+set}" = set; then :
13837  withval=$with_pic; lt_p=${PACKAGE-default}
13838    case $withval in
13839    yes|no) pic_mode=$withval ;;
13840    *)
13841      pic_mode=default
13842      # Look at the argument we got.  We use all the common list separators.
13843      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13844      for lt_pkg in $withval; do
13845	IFS="$lt_save_ifs"
13846	if test "X$lt_pkg" = "X$lt_p"; then
13847	  pic_mode=yes
13848	fi
13849      done
13850      IFS="$lt_save_ifs"
13851      ;;
13852    esac
13853else
13854  pic_mode=default
13855fi
13856
13857
13858test -z "$pic_mode" && pic_mode=default
13859
13860
13861
13862
13863
13864
13865
13866  # Check whether --enable-fast-install was given.
13867if test "${enable_fast_install+set}" = set; then :
13868  enableval=$enable_fast_install; p=${PACKAGE-default}
13869    case $enableval in
13870    yes) enable_fast_install=yes ;;
13871    no) enable_fast_install=no ;;
13872    *)
13873      enable_fast_install=no
13874      # Look at the argument we got.  We use all the common list separators.
13875      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13876      for pkg in $enableval; do
13877	IFS="$lt_save_ifs"
13878	if test "X$pkg" = "X$p"; then
13879	  enable_fast_install=yes
13880	fi
13881      done
13882      IFS="$lt_save_ifs"
13883      ;;
13884    esac
13885else
13886  enable_fast_install=yes
13887fi
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899# This can be used to rebuild libtool when needed
13900LIBTOOL_DEPS="$ltmain"
13901
13902# Always use our own libtool.
13903LIBTOOL='$(SHELL) $(apr_builddir)/libtool'
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934test -z "$LN_S" && LN_S="ln -s"
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949if test -n "${ZSH_VERSION+set}" ; then
13950   setopt NO_GLOB_SUBST
13951fi
13952
13953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13954$as_echo_n "checking for objdir... " >&6; }
13955if ${lt_cv_objdir+:} false; then :
13956  $as_echo_n "(cached) " >&6
13957else
13958  rm -f .libs 2>/dev/null
13959mkdir .libs 2>/dev/null
13960if test -d .libs; then
13961  lt_cv_objdir=.libs
13962else
13963  # MS-DOS does not allow filenames that begin with a dot.
13964  lt_cv_objdir=_libs
13965fi
13966rmdir .libs 2>/dev/null
13967fi
13968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13969$as_echo "$lt_cv_objdir" >&6; }
13970objdir=$lt_cv_objdir
13971
13972
13973
13974
13975
13976cat >>confdefs.h <<_ACEOF
13977#define LT_OBJDIR "$lt_cv_objdir/"
13978_ACEOF
13979
13980
13981
13982
13983case $host_os in
13984aix3*)
13985  # AIX sometimes has problems with the GCC collect2 program.  For some
13986  # reason, if we set the COLLECT_NAMES environment variable, the problems
13987  # vanish in a puff of smoke.
13988  if test "X${COLLECT_NAMES+set}" != Xset; then
13989    COLLECT_NAMES=
13990    export COLLECT_NAMES
13991  fi
13992  ;;
13993esac
13994
13995# Global variables:
13996ofile=libtool
13997can_build_shared=yes
13998
13999# All known linkers require a `.a' archive for static linking (except MSVC,
14000# which needs '.lib').
14001libext=a
14002
14003with_gnu_ld="$lt_cv_prog_gnu_ld"
14004
14005old_CC="$CC"
14006old_CFLAGS="$CFLAGS"
14007
14008# Set sane defaults for various variables
14009test -z "$CC" && CC=cc
14010test -z "$LTCC" && LTCC=$CC
14011test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14012test -z "$LD" && LD=ld
14013test -z "$ac_objext" && ac_objext=o
14014
14015for cc_temp in $compiler""; do
14016  case $cc_temp in
14017    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14018    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14019    \-*) ;;
14020    *) break;;
14021  esac
14022done
14023cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14024
14025
14026# Only perform the check for file, if the check method requires it
14027test -z "$MAGIC_CMD" && MAGIC_CMD=file
14028case $deplibs_check_method in
14029file_magic*)
14030  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14031    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14032$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14033if ${lt_cv_path_MAGIC_CMD+:} false; then :
14034  $as_echo_n "(cached) " >&6
14035else
14036  case $MAGIC_CMD in
14037[\\/*] |  ?:[\\/]*)
14038  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14039  ;;
14040*)
14041  lt_save_MAGIC_CMD="$MAGIC_CMD"
14042  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14043  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14044  for ac_dir in $ac_dummy; do
14045    IFS="$lt_save_ifs"
14046    test -z "$ac_dir" && ac_dir=.
14047    if test -f $ac_dir/${ac_tool_prefix}file; then
14048      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14049      if test -n "$file_magic_test_file"; then
14050	case $deplibs_check_method in
14051	"file_magic "*)
14052	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14053	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14054	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14055	    $EGREP "$file_magic_regex" > /dev/null; then
14056	    :
14057	  else
14058	    cat <<_LT_EOF 1>&2
14059
14060*** Warning: the command libtool uses to detect shared libraries,
14061*** $file_magic_cmd, produces output that libtool cannot recognize.
14062*** The result is that libtool may fail to recognize shared libraries
14063*** as such.  This will affect the creation of libtool libraries that
14064*** depend on shared libraries, but programs linked with such libtool
14065*** libraries will work regardless of this problem.  Nevertheless, you
14066*** may want to report the problem to your system manager and/or to
14067*** bug-libtool@gnu.org
14068
14069_LT_EOF
14070	  fi ;;
14071	esac
14072      fi
14073      break
14074    fi
14075  done
14076  IFS="$lt_save_ifs"
14077  MAGIC_CMD="$lt_save_MAGIC_CMD"
14078  ;;
14079esac
14080fi
14081
14082MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14083if test -n "$MAGIC_CMD"; then
14084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14085$as_echo "$MAGIC_CMD" >&6; }
14086else
14087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14088$as_echo "no" >&6; }
14089fi
14090
14091
14092
14093
14094
14095if test -z "$lt_cv_path_MAGIC_CMD"; then
14096  if test -n "$ac_tool_prefix"; then
14097    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14098$as_echo_n "checking for file... " >&6; }
14099if ${lt_cv_path_MAGIC_CMD+:} false; then :
14100  $as_echo_n "(cached) " >&6
14101else
14102  case $MAGIC_CMD in
14103[\\/*] |  ?:[\\/]*)
14104  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14105  ;;
14106*)
14107  lt_save_MAGIC_CMD="$MAGIC_CMD"
14108  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14109  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14110  for ac_dir in $ac_dummy; do
14111    IFS="$lt_save_ifs"
14112    test -z "$ac_dir" && ac_dir=.
14113    if test -f $ac_dir/file; then
14114      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14115      if test -n "$file_magic_test_file"; then
14116	case $deplibs_check_method in
14117	"file_magic "*)
14118	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14119	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14120	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14121	    $EGREP "$file_magic_regex" > /dev/null; then
14122	    :
14123	  else
14124	    cat <<_LT_EOF 1>&2
14125
14126*** Warning: the command libtool uses to detect shared libraries,
14127*** $file_magic_cmd, produces output that libtool cannot recognize.
14128*** The result is that libtool may fail to recognize shared libraries
14129*** as such.  This will affect the creation of libtool libraries that
14130*** depend on shared libraries, but programs linked with such libtool
14131*** libraries will work regardless of this problem.  Nevertheless, you
14132*** may want to report the problem to your system manager and/or to
14133*** bug-libtool@gnu.org
14134
14135_LT_EOF
14136	  fi ;;
14137	esac
14138      fi
14139      break
14140    fi
14141  done
14142  IFS="$lt_save_ifs"
14143  MAGIC_CMD="$lt_save_MAGIC_CMD"
14144  ;;
14145esac
14146fi
14147
14148MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14149if test -n "$MAGIC_CMD"; then
14150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14151$as_echo "$MAGIC_CMD" >&6; }
14152else
14153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14154$as_echo "no" >&6; }
14155fi
14156
14157
14158  else
14159    MAGIC_CMD=:
14160  fi
14161fi
14162
14163  fi
14164  ;;
14165esac
14166
14167# Use C for the default configuration in the libtool script
14168
14169lt_save_CC="$CC"
14170ac_ext=c
14171ac_cpp='$CPP $CPPFLAGS'
14172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14174ac_compiler_gnu=$ac_cv_c_compiler_gnu
14175
14176
14177# Source file extension for C test sources.
14178ac_ext=c
14179
14180# Object file extension for compiled C test sources.
14181objext=o
14182objext=$objext
14183
14184# Code to be used in simple compile tests
14185lt_simple_compile_test_code="int some_variable = 0;"
14186
14187# Code to be used in simple link tests
14188lt_simple_link_test_code='int main(){return(0);}'
14189
14190
14191
14192
14193
14194
14195
14196# If no C compiler was specified, use CC.
14197LTCC=${LTCC-"$CC"}
14198
14199# If no C compiler flags were specified, use CFLAGS.
14200LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14201
14202# Allow CC to be a program name with arguments.
14203compiler=$CC
14204
14205# Save the default compiler, since it gets overwritten when the other
14206# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14207compiler_DEFAULT=$CC
14208
14209# save warnings/boilerplate of simple test code
14210ac_outfile=conftest.$ac_objext
14211echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14212eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14213_lt_compiler_boilerplate=`cat conftest.err`
14214$RM conftest*
14215
14216ac_outfile=conftest.$ac_objext
14217echo "$lt_simple_link_test_code" >conftest.$ac_ext
14218eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14219_lt_linker_boilerplate=`cat conftest.err`
14220$RM -r conftest*
14221
14222
14223## CAVEAT EMPTOR:
14224## There is no encapsulation within the following macros, do not change
14225## the running order or otherwise move them around unless you know exactly
14226## what you are doing...
14227if test -n "$compiler"; then
14228
14229lt_prog_compiler_no_builtin_flag=
14230
14231if test "$GCC" = yes; then
14232  case $cc_basename in
14233  nvcc*)
14234    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14235  *)
14236    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14237  esac
14238
14239  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14240$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14241if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14242  $as_echo_n "(cached) " >&6
14243else
14244  lt_cv_prog_compiler_rtti_exceptions=no
14245   ac_outfile=conftest.$ac_objext
14246   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14247   lt_compiler_flag="-fno-rtti -fno-exceptions"
14248   # Insert the option either (1) after the last *FLAGS variable, or
14249   # (2) before a word containing "conftest.", or (3) at the end.
14250   # Note that $ac_compile itself does not contain backslashes and begins
14251   # with a dollar sign (not a hyphen), so the echo should work correctly.
14252   # The option is referenced via a variable to avoid confusing sed.
14253   lt_compile=`echo "$ac_compile" | $SED \
14254   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14255   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14256   -e 's:$: $lt_compiler_flag:'`
14257   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14258   (eval "$lt_compile" 2>conftest.err)
14259   ac_status=$?
14260   cat conftest.err >&5
14261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262   if (exit $ac_status) && test -s "$ac_outfile"; then
14263     # The compiler can only warn and ignore the option if not recognized
14264     # So say no if there are warnings other than the usual output.
14265     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14266     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14267     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14268       lt_cv_prog_compiler_rtti_exceptions=yes
14269     fi
14270   fi
14271   $RM conftest*
14272
14273fi
14274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14275$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14276
14277if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14278    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14279else
14280    :
14281fi
14282
14283fi
14284
14285
14286
14287
14288
14289
14290  lt_prog_compiler_wl=
14291lt_prog_compiler_pic=
14292lt_prog_compiler_static=
14293
14294
14295  if test "$GCC" = yes; then
14296    lt_prog_compiler_wl='-Wl,'
14297    lt_prog_compiler_static='-static'
14298
14299    case $host_os in
14300      aix*)
14301      # All AIX code is PIC.
14302      if test "$host_cpu" = ia64; then
14303	# AIX 5 now supports IA64 processor
14304	lt_prog_compiler_static='-Bstatic'
14305      fi
14306      ;;
14307
14308    amigaos*)
14309      case $host_cpu in
14310      powerpc)
14311            # see comment about AmigaOS4 .so support
14312            lt_prog_compiler_pic='-fPIC'
14313        ;;
14314      m68k)
14315            # FIXME: we need at least 68020 code to build shared libraries, but
14316            # adding the `-m68020' flag to GCC prevents building anything better,
14317            # like `-m68040'.
14318            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14319        ;;
14320      esac
14321      ;;
14322
14323    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14324      # PIC is the default for these OSes.
14325      ;;
14326
14327    mingw* | cygwin* | pw32* | os2* | cegcc*)
14328      # This hack is so that the source file can tell whether it is being
14329      # built for inclusion in a dll (and should export symbols for example).
14330      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14331      # (--disable-auto-import) libraries
14332      lt_prog_compiler_pic='-DDLL_EXPORT'
14333      ;;
14334
14335    darwin* | rhapsody*)
14336      # PIC is the default on this platform
14337      # Common symbols not allowed in MH_DYLIB files
14338      lt_prog_compiler_pic='-fno-common'
14339      ;;
14340
14341    haiku*)
14342      # PIC is the default for Haiku.
14343      # The "-static" flag exists, but is broken.
14344      lt_prog_compiler_static=
14345      ;;
14346
14347    hpux*)
14348      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14349      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14350      # sets the default TLS model and affects inlining.
14351      case $host_cpu in
14352      hppa*64*)
14353	# +Z the default
14354	;;
14355      *)
14356	lt_prog_compiler_pic='-fPIC'
14357	;;
14358      esac
14359      ;;
14360
14361    interix[3-9]*)
14362      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14363      # Instead, we relocate shared libraries at runtime.
14364      ;;
14365
14366    msdosdjgpp*)
14367      # Just because we use GCC doesn't mean we suddenly get shared libraries
14368      # on systems that don't support them.
14369      lt_prog_compiler_can_build_shared=no
14370      enable_shared=no
14371      ;;
14372
14373    *nto* | *qnx*)
14374      # QNX uses GNU C++, but need to define -shared option too, otherwise
14375      # it will coredump.
14376      lt_prog_compiler_pic='-fPIC -shared'
14377      ;;
14378
14379    sysv4*MP*)
14380      if test -d /usr/nec; then
14381	lt_prog_compiler_pic=-Kconform_pic
14382      fi
14383      ;;
14384
14385    *)
14386      lt_prog_compiler_pic='-fPIC'
14387      ;;
14388    esac
14389
14390    case $cc_basename in
14391    nvcc*) # Cuda Compiler Driver 2.2
14392      lt_prog_compiler_wl='-Xlinker '
14393      if test -n "$lt_prog_compiler_pic"; then
14394        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14395      fi
14396      ;;
14397    esac
14398  else
14399    # PORTME Check for flag to pass linker flags through the system compiler.
14400    case $host_os in
14401    aix*)
14402      lt_prog_compiler_wl='-Wl,'
14403      if test "$host_cpu" = ia64; then
14404	# AIX 5 now supports IA64 processor
14405	lt_prog_compiler_static='-Bstatic'
14406      else
14407	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14408      fi
14409      ;;
14410
14411    mingw* | cygwin* | pw32* | os2* | cegcc*)
14412      # This hack is so that the source file can tell whether it is being
14413      # built for inclusion in a dll (and should export symbols for example).
14414      lt_prog_compiler_pic='-DDLL_EXPORT'
14415      ;;
14416
14417    hpux9* | hpux10* | hpux11*)
14418      lt_prog_compiler_wl='-Wl,'
14419      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14420      # not for PA HP-UX.
14421      case $host_cpu in
14422      hppa*64*|ia64*)
14423	# +Z the default
14424	;;
14425      *)
14426	lt_prog_compiler_pic='+Z'
14427	;;
14428      esac
14429      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14430      lt_prog_compiler_static='${wl}-a ${wl}archive'
14431      ;;
14432
14433    irix5* | irix6* | nonstopux*)
14434      lt_prog_compiler_wl='-Wl,'
14435      # PIC (with -KPIC) is the default.
14436      lt_prog_compiler_static='-non_shared'
14437      ;;
14438
14439    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14440      case $cc_basename in
14441      # old Intel for x86_64 which still supported -KPIC.
14442      ecc*)
14443	lt_prog_compiler_wl='-Wl,'
14444	lt_prog_compiler_pic='-KPIC'
14445	lt_prog_compiler_static='-static'
14446        ;;
14447      # icc used to be incompatible with GCC.
14448      # ICC 10 doesn't accept -KPIC any more.
14449      icc* | ifort*)
14450	lt_prog_compiler_wl='-Wl,'
14451	lt_prog_compiler_pic='-fPIC'
14452	lt_prog_compiler_static='-static'
14453        ;;
14454      # Lahey Fortran 8.1.
14455      lf95*)
14456	lt_prog_compiler_wl='-Wl,'
14457	lt_prog_compiler_pic='--shared'
14458	lt_prog_compiler_static='--static'
14459	;;
14460      nagfor*)
14461	# NAG Fortran compiler
14462	lt_prog_compiler_wl='-Wl,-Wl,,'
14463	lt_prog_compiler_pic='-PIC'
14464	lt_prog_compiler_static='-Bstatic'
14465	;;
14466      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14467        # Portland Group compilers (*not* the Pentium gcc compiler,
14468	# which looks to be a dead project)
14469	lt_prog_compiler_wl='-Wl,'
14470	lt_prog_compiler_pic='-fpic'
14471	lt_prog_compiler_static='-Bstatic'
14472        ;;
14473      ccc*)
14474        lt_prog_compiler_wl='-Wl,'
14475        # All Alpha code is PIC.
14476        lt_prog_compiler_static='-non_shared'
14477        ;;
14478      xl* | bgxl* | bgf* | mpixl*)
14479	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14480	lt_prog_compiler_wl='-Wl,'
14481	lt_prog_compiler_pic='-qpic'
14482	lt_prog_compiler_static='-qstaticlink'
14483	;;
14484      *)
14485	case `$CC -V 2>&1 | sed 5q` in
14486	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14487	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14488	  lt_prog_compiler_pic='-KPIC'
14489	  lt_prog_compiler_static='-Bstatic'
14490	  lt_prog_compiler_wl=''
14491	  ;;
14492	*Sun\ F* | *Sun*Fortran*)
14493	  lt_prog_compiler_pic='-KPIC'
14494	  lt_prog_compiler_static='-Bstatic'
14495	  lt_prog_compiler_wl='-Qoption ld '
14496	  ;;
14497	*Sun\ C*)
14498	  # Sun C 5.9
14499	  lt_prog_compiler_pic='-KPIC'
14500	  lt_prog_compiler_static='-Bstatic'
14501	  lt_prog_compiler_wl='-Wl,'
14502	  ;;
14503        *Intel*\ [CF]*Compiler*)
14504	  lt_prog_compiler_wl='-Wl,'
14505	  lt_prog_compiler_pic='-fPIC'
14506	  lt_prog_compiler_static='-static'
14507	  ;;
14508	*Portland\ Group*)
14509	  lt_prog_compiler_wl='-Wl,'
14510	  lt_prog_compiler_pic='-fpic'
14511	  lt_prog_compiler_static='-Bstatic'
14512	  ;;
14513	esac
14514	;;
14515      esac
14516      ;;
14517
14518    newsos6)
14519      lt_prog_compiler_pic='-KPIC'
14520      lt_prog_compiler_static='-Bstatic'
14521      ;;
14522
14523    *nto* | *qnx*)
14524      # QNX uses GNU C++, but need to define -shared option too, otherwise
14525      # it will coredump.
14526      lt_prog_compiler_pic='-fPIC -shared'
14527      ;;
14528
14529    osf3* | osf4* | osf5*)
14530      lt_prog_compiler_wl='-Wl,'
14531      # All OSF/1 code is PIC.
14532      lt_prog_compiler_static='-non_shared'
14533      ;;
14534
14535    rdos*)
14536      lt_prog_compiler_static='-non_shared'
14537      ;;
14538
14539    solaris*)
14540      lt_prog_compiler_pic='-KPIC'
14541      lt_prog_compiler_static='-Bstatic'
14542      case $cc_basename in
14543      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14544	lt_prog_compiler_wl='-Qoption ld ';;
14545      *)
14546	lt_prog_compiler_wl='-Wl,';;
14547      esac
14548      ;;
14549
14550    sunos4*)
14551      lt_prog_compiler_wl='-Qoption ld '
14552      lt_prog_compiler_pic='-PIC'
14553      lt_prog_compiler_static='-Bstatic'
14554      ;;
14555
14556    sysv4 | sysv4.2uw2* | sysv4.3*)
14557      lt_prog_compiler_wl='-Wl,'
14558      lt_prog_compiler_pic='-KPIC'
14559      lt_prog_compiler_static='-Bstatic'
14560      ;;
14561
14562    sysv4*MP*)
14563      if test -d /usr/nec ;then
14564	lt_prog_compiler_pic='-Kconform_pic'
14565	lt_prog_compiler_static='-Bstatic'
14566      fi
14567      ;;
14568
14569    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14570      lt_prog_compiler_wl='-Wl,'
14571      lt_prog_compiler_pic='-KPIC'
14572      lt_prog_compiler_static='-Bstatic'
14573      ;;
14574
14575    unicos*)
14576      lt_prog_compiler_wl='-Wl,'
14577      lt_prog_compiler_can_build_shared=no
14578      ;;
14579
14580    uts4*)
14581      lt_prog_compiler_pic='-pic'
14582      lt_prog_compiler_static='-Bstatic'
14583      ;;
14584
14585    *)
14586      lt_prog_compiler_can_build_shared=no
14587      ;;
14588    esac
14589  fi
14590
14591case $host_os in
14592  # For platforms which do not support PIC, -DPIC is meaningless:
14593  *djgpp*)
14594    lt_prog_compiler_pic=
14595    ;;
14596  *)
14597    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14598    ;;
14599esac
14600
14601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14602$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14603if ${lt_cv_prog_compiler_pic+:} false; then :
14604  $as_echo_n "(cached) " >&6
14605else
14606  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14607fi
14608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14609$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14610lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14611
14612#
14613# Check to make sure the PIC flag actually works.
14614#
14615if test -n "$lt_prog_compiler_pic"; then
14616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14617$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14618if ${lt_cv_prog_compiler_pic_works+:} false; then :
14619  $as_echo_n "(cached) " >&6
14620else
14621  lt_cv_prog_compiler_pic_works=no
14622   ac_outfile=conftest.$ac_objext
14623   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14624   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14625   # Insert the option either (1) after the last *FLAGS variable, or
14626   # (2) before a word containing "conftest.", or (3) at the end.
14627   # Note that $ac_compile itself does not contain backslashes and begins
14628   # with a dollar sign (not a hyphen), so the echo should work correctly.
14629   # The option is referenced via a variable to avoid confusing sed.
14630   lt_compile=`echo "$ac_compile" | $SED \
14631   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14632   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14633   -e 's:$: $lt_compiler_flag:'`
14634   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14635   (eval "$lt_compile" 2>conftest.err)
14636   ac_status=$?
14637   cat conftest.err >&5
14638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639   if (exit $ac_status) && test -s "$ac_outfile"; then
14640     # The compiler can only warn and ignore the option if not recognized
14641     # So say no if there are warnings other than the usual output.
14642     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14643     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14644     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14645       lt_cv_prog_compiler_pic_works=yes
14646     fi
14647   fi
14648   $RM conftest*
14649
14650fi
14651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14652$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14653
14654if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14655    case $lt_prog_compiler_pic in
14656     "" | " "*) ;;
14657     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14658     esac
14659else
14660    lt_prog_compiler_pic=
14661     lt_prog_compiler_can_build_shared=no
14662fi
14663
14664fi
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676#
14677# Check to make sure the static flag actually works.
14678#
14679wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14681$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14682if ${lt_cv_prog_compiler_static_works+:} false; then :
14683  $as_echo_n "(cached) " >&6
14684else
14685  lt_cv_prog_compiler_static_works=no
14686   save_LDFLAGS="$LDFLAGS"
14687   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14688   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14689   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14690     # The linker can only warn and ignore the option if not recognized
14691     # So say no if there are warnings
14692     if test -s conftest.err; then
14693       # Append any errors to the config.log.
14694       cat conftest.err 1>&5
14695       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14696       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14697       if diff conftest.exp conftest.er2 >/dev/null; then
14698         lt_cv_prog_compiler_static_works=yes
14699       fi
14700     else
14701       lt_cv_prog_compiler_static_works=yes
14702     fi
14703   fi
14704   $RM -r conftest*
14705   LDFLAGS="$save_LDFLAGS"
14706
14707fi
14708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14709$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14710
14711if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14712    :
14713else
14714    lt_prog_compiler_static=
14715fi
14716
14717
14718
14719
14720
14721
14722
14723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14724$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14725if ${lt_cv_prog_compiler_c_o+:} false; then :
14726  $as_echo_n "(cached) " >&6
14727else
14728  lt_cv_prog_compiler_c_o=no
14729   $RM -r conftest 2>/dev/null
14730   mkdir conftest
14731   cd conftest
14732   mkdir out
14733   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14734
14735   lt_compiler_flag="-o out/conftest2.$ac_objext"
14736   # Insert the option either (1) after the last *FLAGS variable, or
14737   # (2) before a word containing "conftest.", or (3) at the end.
14738   # Note that $ac_compile itself does not contain backslashes and begins
14739   # with a dollar sign (not a hyphen), so the echo should work correctly.
14740   lt_compile=`echo "$ac_compile" | $SED \
14741   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14742   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14743   -e 's:$: $lt_compiler_flag:'`
14744   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14745   (eval "$lt_compile" 2>out/conftest.err)
14746   ac_status=$?
14747   cat out/conftest.err >&5
14748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14750   then
14751     # The compiler can only warn and ignore the option if not recognized
14752     # So say no if there are warnings
14753     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14754     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14755     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14756       lt_cv_prog_compiler_c_o=yes
14757     fi
14758   fi
14759   chmod u+w . 2>&5
14760   $RM conftest*
14761   # SGI C++ compiler will create directory out/ii_files/ for
14762   # template instantiation
14763   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14764   $RM out/* && rmdir out
14765   cd ..
14766   $RM -r conftest
14767   $RM conftest*
14768
14769fi
14770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14771$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14772
14773
14774
14775
14776
14777
14778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14779$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14780if ${lt_cv_prog_compiler_c_o+:} false; then :
14781  $as_echo_n "(cached) " >&6
14782else
14783  lt_cv_prog_compiler_c_o=no
14784   $RM -r conftest 2>/dev/null
14785   mkdir conftest
14786   cd conftest
14787   mkdir out
14788   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14789
14790   lt_compiler_flag="-o out/conftest2.$ac_objext"
14791   # Insert the option either (1) after the last *FLAGS variable, or
14792   # (2) before a word containing "conftest.", or (3) at the end.
14793   # Note that $ac_compile itself does not contain backslashes and begins
14794   # with a dollar sign (not a hyphen), so the echo should work correctly.
14795   lt_compile=`echo "$ac_compile" | $SED \
14796   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14797   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14798   -e 's:$: $lt_compiler_flag:'`
14799   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14800   (eval "$lt_compile" 2>out/conftest.err)
14801   ac_status=$?
14802   cat out/conftest.err >&5
14803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14805   then
14806     # The compiler can only warn and ignore the option if not recognized
14807     # So say no if there are warnings
14808     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14809     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14810     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14811       lt_cv_prog_compiler_c_o=yes
14812     fi
14813   fi
14814   chmod u+w . 2>&5
14815   $RM conftest*
14816   # SGI C++ compiler will create directory out/ii_files/ for
14817   # template instantiation
14818   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14819   $RM out/* && rmdir out
14820   cd ..
14821   $RM -r conftest
14822   $RM conftest*
14823
14824fi
14825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14826$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14827
14828
14829
14830
14831hard_links="nottested"
14832if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14833  # do not overwrite the value of need_locks provided by the user
14834  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14835$as_echo_n "checking if we can lock with hard links... " >&6; }
14836  hard_links=yes
14837  $RM conftest*
14838  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14839  touch conftest.a
14840  ln conftest.a conftest.b 2>&5 || hard_links=no
14841  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14843$as_echo "$hard_links" >&6; }
14844  if test "$hard_links" = no; then
14845    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14846$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14847    need_locks=warn
14848  fi
14849else
14850  need_locks=no
14851fi
14852
14853
14854
14855
14856
14857
14858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14859$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14860
14861  runpath_var=
14862  allow_undefined_flag=
14863  always_export_symbols=no
14864  archive_cmds=
14865  archive_expsym_cmds=
14866  compiler_needs_object=no
14867  enable_shared_with_static_runtimes=no
14868  export_dynamic_flag_spec=
14869  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14870  hardcode_automatic=no
14871  hardcode_direct=no
14872  hardcode_direct_absolute=no
14873  hardcode_libdir_flag_spec=
14874  hardcode_libdir_separator=
14875  hardcode_minus_L=no
14876  hardcode_shlibpath_var=unsupported
14877  inherit_rpath=no
14878  link_all_deplibs=unknown
14879  module_cmds=
14880  module_expsym_cmds=
14881  old_archive_from_new_cmds=
14882  old_archive_from_expsyms_cmds=
14883  thread_safe_flag_spec=
14884  whole_archive_flag_spec=
14885  # include_expsyms should be a list of space-separated symbols to be *always*
14886  # included in the symbol list
14887  include_expsyms=
14888  # exclude_expsyms can be an extended regexp of symbols to exclude
14889  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14890  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14891  # as well as any symbol that contains `d'.
14892  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14893  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14894  # platforms (ab)use it in PIC code, but their linkers get confused if
14895  # the symbol is explicitly referenced.  Since portable code cannot
14896  # rely on this symbol name, it's probably fine to never include it in
14897  # preloaded symbol tables.
14898  # Exclude shared library initialization/finalization symbols.
14899  extract_expsyms_cmds=
14900
14901  case $host_os in
14902  cygwin* | mingw* | pw32* | cegcc*)
14903    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14904    # When not using gcc, we currently assume that we are using
14905    # Microsoft Visual C++.
14906    if test "$GCC" != yes; then
14907      with_gnu_ld=no
14908    fi
14909    ;;
14910  interix*)
14911    # we just hope/assume this is gcc and not c89 (= MSVC++)
14912    with_gnu_ld=yes
14913    ;;
14914  openbsd*)
14915    with_gnu_ld=no
14916    ;;
14917  esac
14918
14919  ld_shlibs=yes
14920
14921  # On some targets, GNU ld is compatible enough with the native linker
14922  # that we're better off using the native interface for both.
14923  lt_use_gnu_ld_interface=no
14924  if test "$with_gnu_ld" = yes; then
14925    case $host_os in
14926      aix*)
14927	# The AIX port of GNU ld has always aspired to compatibility
14928	# with the native linker.  However, as the warning in the GNU ld
14929	# block says, versions before 2.19.5* couldn't really create working
14930	# shared libraries, regardless of the interface used.
14931	case `$LD -v 2>&1` in
14932	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14933	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14934	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14935	  *)
14936	    lt_use_gnu_ld_interface=yes
14937	    ;;
14938	esac
14939	;;
14940      *)
14941	lt_use_gnu_ld_interface=yes
14942	;;
14943    esac
14944  fi
14945
14946  if test "$lt_use_gnu_ld_interface" = yes; then
14947    # If archive_cmds runs LD, not CC, wlarc should be empty
14948    wlarc='${wl}'
14949
14950    # Set some defaults for GNU ld with shared library support. These
14951    # are reset later if shared libraries are not supported. Putting them
14952    # here allows them to be overridden if necessary.
14953    runpath_var=LD_RUN_PATH
14954    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14955    export_dynamic_flag_spec='${wl}--export-dynamic'
14956    # ancient GNU ld didn't support --whole-archive et. al.
14957    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14958      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14959    else
14960      whole_archive_flag_spec=
14961    fi
14962    supports_anon_versioning=no
14963    case `$LD -v 2>&1` in
14964      *GNU\ gold*) supports_anon_versioning=yes ;;
14965      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14966      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14967      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14968      *\ 2.11.*) ;; # other 2.11 versions
14969      *) supports_anon_versioning=yes ;;
14970    esac
14971
14972    # See if GNU ld supports shared libraries.
14973    case $host_os in
14974    aix[3-9]*)
14975      # On AIX/PPC, the GNU linker is very broken
14976      if test "$host_cpu" != ia64; then
14977	ld_shlibs=no
14978	cat <<_LT_EOF 1>&2
14979
14980*** Warning: the GNU linker, at least up to release 2.19, is reported
14981*** to be unable to reliably create shared libraries on AIX.
14982*** Therefore, libtool is disabling shared libraries support.  If you
14983*** really care for shared libraries, you may want to install binutils
14984*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14985*** You will then need to restart the configuration process.
14986
14987_LT_EOF
14988      fi
14989      ;;
14990
14991    amigaos*)
14992      case $host_cpu in
14993      powerpc)
14994            # see comment about AmigaOS4 .so support
14995            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14996            archive_expsym_cmds=''
14997        ;;
14998      m68k)
14999            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)'
15000            hardcode_libdir_flag_spec='-L$libdir'
15001            hardcode_minus_L=yes
15002        ;;
15003      esac
15004      ;;
15005
15006    beos*)
15007      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15008	allow_undefined_flag=unsupported
15009	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15010	# support --undefined.  This deserves some investigation.  FIXME
15011	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15012      else
15013	ld_shlibs=no
15014      fi
15015      ;;
15016
15017    cygwin* | mingw* | pw32* | cegcc*)
15018      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15019      # as there is no search path for DLLs.
15020      hardcode_libdir_flag_spec='-L$libdir'
15021      export_dynamic_flag_spec='${wl}--export-all-symbols'
15022      allow_undefined_flag=unsupported
15023      always_export_symbols=no
15024      enable_shared_with_static_runtimes=yes
15025      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'
15026      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15027
15028      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15029        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15030	# If the export-symbols file already is a .def file (1st line
15031	# is EXPORTS), use it as is; otherwise, prepend...
15032	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15033	  cp $export_symbols $output_objdir/$soname.def;
15034	else
15035	  echo EXPORTS > $output_objdir/$soname.def;
15036	  cat $export_symbols >> $output_objdir/$soname.def;
15037	fi~
15038	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15039      else
15040	ld_shlibs=no
15041      fi
15042      ;;
15043
15044    haiku*)
15045      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15046      link_all_deplibs=yes
15047      ;;
15048
15049    interix[3-9]*)
15050      hardcode_direct=no
15051      hardcode_shlibpath_var=no
15052      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15053      export_dynamic_flag_spec='${wl}-E'
15054      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15055      # Instead, shared libraries are loaded at an image base (0x10000000 by
15056      # default) and relocated if they conflict, which is a slow very memory
15057      # consuming and fragmenting process.  To avoid this, we pick a random,
15058      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15059      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15060      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15061      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'
15062      ;;
15063
15064    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15065      tmp_diet=no
15066      if test "$host_os" = linux-dietlibc; then
15067	case $cc_basename in
15068	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15069	esac
15070      fi
15071      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15072	 && test "$tmp_diet" = no
15073      then
15074	tmp_addflag=' $pic_flag'
15075	tmp_sharedflag='-shared'
15076	case $cc_basename,$host_cpu in
15077        pgcc*)				# Portland Group C compiler
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	  tmp_addflag=' $pic_flag'
15080	  ;;
15081	pgf77* | pgf90* | pgf95* | pgfortran*)
15082					# Portland Group f77 and f90 compilers
15083	  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'
15084	  tmp_addflag=' $pic_flag -Mnomain' ;;
15085	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15086	  tmp_addflag=' -i_dynamic' ;;
15087	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15088	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15089	ifc* | ifort*)			# Intel Fortran compiler
15090	  tmp_addflag=' -nofor_main' ;;
15091	lf95*)				# Lahey Fortran 8.1
15092	  whole_archive_flag_spec=
15093	  tmp_sharedflag='--shared' ;;
15094	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15095	  tmp_sharedflag='-qmkshrobj'
15096	  tmp_addflag= ;;
15097	nvcc*)	# Cuda Compiler Driver 2.2
15098	  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'
15099	  compiler_needs_object=yes
15100	  ;;
15101	esac
15102	case `$CC -V 2>&1 | sed 5q` in
15103	*Sun\ C*)			# Sun C 5.9
15104	  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'
15105	  compiler_needs_object=yes
15106	  tmp_sharedflag='-G' ;;
15107	*Sun\ F*)			# Sun Fortran 8.3
15108	  tmp_sharedflag='-G' ;;
15109	esac
15110	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15111
15112        if test "x$supports_anon_versioning" = xyes; then
15113          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15114	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15115	    echo "local: *; };" >> $output_objdir/$libname.ver~
15116	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15117        fi
15118
15119	case $cc_basename in
15120	xlf* | bgf* | bgxlf* | mpixlf*)
15121	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15122	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15123	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15124	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15125	  if test "x$supports_anon_versioning" = xyes; then
15126	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15127	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15128	      echo "local: *; };" >> $output_objdir/$libname.ver~
15129	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15130	  fi
15131	  ;;
15132	esac
15133      else
15134        ld_shlibs=no
15135      fi
15136      ;;
15137
15138    netbsd*)
15139      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15140	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15141	wlarc=
15142      else
15143	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15144	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15145      fi
15146      ;;
15147
15148    solaris*)
15149      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15150	ld_shlibs=no
15151	cat <<_LT_EOF 1>&2
15152
15153*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15154*** create shared libraries on Solaris systems.  Therefore, libtool
15155*** is disabling shared libraries support.  We urge you to upgrade GNU
15156*** binutils to release 2.9.1 or newer.  Another option is to modify
15157*** your PATH or compiler configuration so that the native linker is
15158*** used, and then restart.
15159
15160_LT_EOF
15161      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15162	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15163	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15164      else
15165	ld_shlibs=no
15166      fi
15167      ;;
15168
15169    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15170      case `$LD -v 2>&1` in
15171        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15172	ld_shlibs=no
15173	cat <<_LT_EOF 1>&2
15174
15175*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15176*** reliably create shared libraries on SCO systems.  Therefore, libtool
15177*** is disabling shared libraries support.  We urge you to upgrade GNU
15178*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15179*** your PATH or compiler configuration so that the native linker is
15180*** used, and then restart.
15181
15182_LT_EOF
15183	;;
15184	*)
15185	  # For security reasons, it is highly recommended that you always
15186	  # use absolute paths for naming shared libraries, and exclude the
15187	  # DT_RUNPATH tag from executables and libraries.  But doing so
15188	  # requires that you compile everything twice, which is a pain.
15189	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15190	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15191	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15192	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15193	  else
15194	    ld_shlibs=no
15195	  fi
15196	;;
15197      esac
15198      ;;
15199
15200    sunos4*)
15201      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15202      wlarc=
15203      hardcode_direct=yes
15204      hardcode_shlibpath_var=no
15205      ;;
15206
15207    *)
15208      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15209	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15210	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15211      else
15212	ld_shlibs=no
15213      fi
15214      ;;
15215    esac
15216
15217    if test "$ld_shlibs" = no; then
15218      runpath_var=
15219      hardcode_libdir_flag_spec=
15220      export_dynamic_flag_spec=
15221      whole_archive_flag_spec=
15222    fi
15223  else
15224    # PORTME fill in a description of your system's linker (not GNU ld)
15225    case $host_os in
15226    aix3*)
15227      allow_undefined_flag=unsupported
15228      always_export_symbols=yes
15229      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'
15230      # Note: this linker hardcodes the directories in LIBPATH if there
15231      # are no directories specified by -L.
15232      hardcode_minus_L=yes
15233      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15234	# Neither direct hardcoding nor static linking is supported with a
15235	# broken collect2.
15236	hardcode_direct=unsupported
15237      fi
15238      ;;
15239
15240    aix[4-9]*)
15241      if test "$host_cpu" = ia64; then
15242	# On IA64, the linker does run time linking by default, so we don't
15243	# have to do anything special.
15244	aix_use_runtimelinking=no
15245	exp_sym_flag='-Bexport'
15246	no_entry_flag=""
15247      else
15248	# If we're using GNU nm, then we don't want the "-C" option.
15249	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15250	# Also, AIX nm treats weak defined symbols like other global
15251	# defined symbols, whereas GNU nm marks them as "W".
15252	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15253	  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'
15254	else
15255	  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'
15256	fi
15257	aix_use_runtimelinking=no
15258
15259	# Test if we are trying to use run time linking or normal
15260	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15261	# need to do runtime linking.
15262	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15263	  for ld_flag in $LDFLAGS; do
15264	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15265	    aix_use_runtimelinking=yes
15266	    break
15267	  fi
15268	  done
15269	  ;;
15270	esac
15271
15272	exp_sym_flag='-bexport'
15273	no_entry_flag='-bnoentry'
15274      fi
15275
15276      # When large executables or shared objects are built, AIX ld can
15277      # have problems creating the table of contents.  If linking a library
15278      # or program results in "error TOC overflow" add -mminimal-toc to
15279      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15280      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15281
15282      archive_cmds=''
15283      hardcode_direct=yes
15284      hardcode_direct_absolute=yes
15285      hardcode_libdir_separator=':'
15286      link_all_deplibs=yes
15287      file_list_spec='${wl}-f,'
15288
15289      if test "$GCC" = yes; then
15290	case $host_os in aix4.[012]|aix4.[012].*)
15291	# We only want to do this on AIX 4.2 and lower, the check
15292	# below for broken collect2 doesn't work under 4.3+
15293	  collect2name=`${CC} -print-prog-name=collect2`
15294	  if test -f "$collect2name" &&
15295	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15296	  then
15297	  # We have reworked collect2
15298	  :
15299	  else
15300	  # We have old collect2
15301	  hardcode_direct=unsupported
15302	  # It fails to find uninstalled libraries when the uninstalled
15303	  # path is not listed in the libpath.  Setting hardcode_minus_L
15304	  # to unsupported forces relinking
15305	  hardcode_minus_L=yes
15306	  hardcode_libdir_flag_spec='-L$libdir'
15307	  hardcode_libdir_separator=
15308	  fi
15309	  ;;
15310	esac
15311	shared_flag='-shared'
15312	if test "$aix_use_runtimelinking" = yes; then
15313	  shared_flag="$shared_flag "'${wl}-G'
15314	fi
15315      else
15316	# not using gcc
15317	if test "$host_cpu" = ia64; then
15318	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15319	# chokes on -Wl,-G. The following line is correct:
15320	  shared_flag='-G'
15321	else
15322	  if test "$aix_use_runtimelinking" = yes; then
15323	    shared_flag='${wl}-G'
15324	  else
15325	    shared_flag='${wl}-bM:SRE'
15326	  fi
15327	fi
15328      fi
15329
15330      export_dynamic_flag_spec='${wl}-bexpall'
15331      # It seems that -bexpall does not export symbols beginning with
15332      # underscore (_), so it is better to generate a list of symbols to export.
15333      always_export_symbols=yes
15334      if test "$aix_use_runtimelinking" = yes; then
15335	# Warning - without using the other runtime loading flags (-brtl),
15336	# -berok will link without error, but may produce a broken library.
15337	allow_undefined_flag='-berok'
15338        # Determine the default libpath from the value encoded in an
15339        # empty executable.
15340        if test "${lt_cv_aix_libpath+set}" = set; then
15341  aix_libpath=$lt_cv_aix_libpath
15342else
15343  if ${lt_cv_aix_libpath_+:} false; then :
15344  $as_echo_n "(cached) " >&6
15345else
15346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15347/* end confdefs.h.  */
15348
15349int
15350main ()
15351{
15352
15353  ;
15354  return 0;
15355}
15356_ACEOF
15357if ac_fn_c_try_link "$LINENO"; then :
15358
15359  lt_aix_libpath_sed='
15360      /Import File Strings/,/^$/ {
15361	  /^0/ {
15362	      s/^0  *\([^ ]*\) *$/\1/
15363	      p
15364	  }
15365      }'
15366  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15367  # Check for a 64-bit object if we didn't find anything.
15368  if test -z "$lt_cv_aix_libpath_"; then
15369    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15370  fi
15371fi
15372rm -f core conftest.err conftest.$ac_objext \
15373    conftest$ac_exeext conftest.$ac_ext
15374  if test -z "$lt_cv_aix_libpath_"; then
15375    lt_cv_aix_libpath_="/usr/lib:/lib"
15376  fi
15377
15378fi
15379
15380  aix_libpath=$lt_cv_aix_libpath_
15381fi
15382
15383        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15384        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"
15385      else
15386	if test "$host_cpu" = ia64; then
15387	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15388	  allow_undefined_flag="-z nodefs"
15389	  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"
15390	else
15391	 # Determine the default libpath from the value encoded in an
15392	 # empty executable.
15393	 if test "${lt_cv_aix_libpath+set}" = set; then
15394  aix_libpath=$lt_cv_aix_libpath
15395else
15396  if ${lt_cv_aix_libpath_+:} false; then :
15397  $as_echo_n "(cached) " >&6
15398else
15399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15400/* end confdefs.h.  */
15401
15402int
15403main ()
15404{
15405
15406  ;
15407  return 0;
15408}
15409_ACEOF
15410if ac_fn_c_try_link "$LINENO"; then :
15411
15412  lt_aix_libpath_sed='
15413      /Import File Strings/,/^$/ {
15414	  /^0/ {
15415	      s/^0  *\([^ ]*\) *$/\1/
15416	      p
15417	  }
15418      }'
15419  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15420  # Check for a 64-bit object if we didn't find anything.
15421  if test -z "$lt_cv_aix_libpath_"; then
15422    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15423  fi
15424fi
15425rm -f core conftest.err conftest.$ac_objext \
15426    conftest$ac_exeext conftest.$ac_ext
15427  if test -z "$lt_cv_aix_libpath_"; then
15428    lt_cv_aix_libpath_="/usr/lib:/lib"
15429  fi
15430
15431fi
15432
15433  aix_libpath=$lt_cv_aix_libpath_
15434fi
15435
15436	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15437	  # Warning - without using the other run time loading flags,
15438	  # -berok will link without error, but may produce a broken library.
15439	  no_undefined_flag=' ${wl}-bernotok'
15440	  allow_undefined_flag=' ${wl}-berok'
15441	  if test "$with_gnu_ld" = yes; then
15442	    # We only use this code for GNU lds that support --whole-archive.
15443	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15444	  else
15445	    # Exported symbols can be pulled into shared objects from archives
15446	    whole_archive_flag_spec='$convenience'
15447	  fi
15448	  archive_cmds_need_lc=yes
15449	  # This is similar to how AIX traditionally builds its shared libraries.
15450	  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'
15451	fi
15452      fi
15453      ;;
15454
15455    amigaos*)
15456      case $host_cpu in
15457      powerpc)
15458            # see comment about AmigaOS4 .so support
15459            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15460            archive_expsym_cmds=''
15461        ;;
15462      m68k)
15463            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)'
15464            hardcode_libdir_flag_spec='-L$libdir'
15465            hardcode_minus_L=yes
15466        ;;
15467      esac
15468      ;;
15469
15470    bsdi[45]*)
15471      export_dynamic_flag_spec=-rdynamic
15472      ;;
15473
15474    cygwin* | mingw* | pw32* | cegcc*)
15475      # When not using gcc, we currently assume that we are using
15476      # Microsoft Visual C++.
15477      # hardcode_libdir_flag_spec is actually meaningless, as there is
15478      # no search path for DLLs.
15479      case $cc_basename in
15480      cl*)
15481	# Native MSVC
15482	hardcode_libdir_flag_spec=' '
15483	allow_undefined_flag=unsupported
15484	always_export_symbols=yes
15485	file_list_spec='@'
15486	# Tell ltmain to make .lib files, not .a files.
15487	libext=lib
15488	# Tell ltmain to make .dll files, not .so files.
15489	shrext_cmds=".dll"
15490	# FIXME: Setting linknames here is a bad hack.
15491	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15492	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15493	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15494	  else
15495	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15496	  fi~
15497	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15498	  linknames='
15499	# The linker will not automatically build a static lib if we build a DLL.
15500	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15501	enable_shared_with_static_runtimes=yes
15502	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15503	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15504	# Don't use ranlib
15505	old_postinstall_cmds='chmod 644 $oldlib'
15506	postlink_cmds='lt_outputfile="@OUTPUT@"~
15507	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15508	  case $lt_outputfile in
15509	    *.exe|*.EXE) ;;
15510	    *)
15511	      lt_outputfile="$lt_outputfile.exe"
15512	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15513	      ;;
15514	  esac~
15515	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15516	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15517	    $RM "$lt_outputfile.manifest";
15518	  fi'
15519	;;
15520      *)
15521	# Assume MSVC wrapper
15522	hardcode_libdir_flag_spec=' '
15523	allow_undefined_flag=unsupported
15524	# Tell ltmain to make .lib files, not .a files.
15525	libext=lib
15526	# Tell ltmain to make .dll files, not .so files.
15527	shrext_cmds=".dll"
15528	# FIXME: Setting linknames here is a bad hack.
15529	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15530	# The linker will automatically build a .lib file if we build a DLL.
15531	old_archive_from_new_cmds='true'
15532	# FIXME: Should let the user specify the lib program.
15533	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15534	enable_shared_with_static_runtimes=yes
15535	;;
15536      esac
15537      ;;
15538
15539    darwin* | rhapsody*)
15540
15541
15542  archive_cmds_need_lc=no
15543  hardcode_direct=no
15544  hardcode_automatic=yes
15545  hardcode_shlibpath_var=unsupported
15546  if test "$lt_cv_ld_force_load" = "yes"; then
15547    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\"`'
15548
15549  else
15550    whole_archive_flag_spec=''
15551  fi
15552  link_all_deplibs=yes
15553  allow_undefined_flag="$_lt_dar_allow_undefined"
15554  case $cc_basename in
15555     ifort*) _lt_dar_can_shared=yes ;;
15556     *) _lt_dar_can_shared=$GCC ;;
15557  esac
15558  if test "$_lt_dar_can_shared" = "yes"; then
15559    output_verbose_link_cmd=func_echo_all
15560    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15561    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15562    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}"
15563    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}"
15564
15565  else
15566  ld_shlibs=no
15567  fi
15568
15569      ;;
15570
15571    dgux*)
15572      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15573      hardcode_libdir_flag_spec='-L$libdir'
15574      hardcode_shlibpath_var=no
15575      ;;
15576
15577    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15578    # support.  Future versions do this automatically, but an explicit c++rt0.o
15579    # does not break anything, and helps significantly (at the cost of a little
15580    # extra space).
15581    freebsd2.2*)
15582      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15583      hardcode_libdir_flag_spec='-R$libdir'
15584      hardcode_direct=yes
15585      hardcode_shlibpath_var=no
15586      ;;
15587
15588    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15589    freebsd2.*)
15590      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15591      hardcode_direct=yes
15592      hardcode_minus_L=yes
15593      hardcode_shlibpath_var=no
15594      ;;
15595
15596    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15597    freebsd* | dragonfly*)
15598      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15599      hardcode_libdir_flag_spec='-R$libdir'
15600      hardcode_direct=yes
15601      hardcode_shlibpath_var=no
15602      ;;
15603
15604    hpux9*)
15605      if test "$GCC" = yes; then
15606	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'
15607      else
15608	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'
15609      fi
15610      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15611      hardcode_libdir_separator=:
15612      hardcode_direct=yes
15613
15614      # hardcode_minus_L: Not really in the search PATH,
15615      # but as the default location of the library.
15616      hardcode_minus_L=yes
15617      export_dynamic_flag_spec='${wl}-E'
15618      ;;
15619
15620    hpux10*)
15621      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15622	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15623      else
15624	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15625      fi
15626      if test "$with_gnu_ld" = no; then
15627	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15628	hardcode_libdir_separator=:
15629	hardcode_direct=yes
15630	hardcode_direct_absolute=yes
15631	export_dynamic_flag_spec='${wl}-E'
15632	# hardcode_minus_L: Not really in the search PATH,
15633	# but as the default location of the library.
15634	hardcode_minus_L=yes
15635      fi
15636      ;;
15637
15638    hpux11*)
15639      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15640	case $host_cpu in
15641	hppa*64*)
15642	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15643	  ;;
15644	ia64*)
15645	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15646	  ;;
15647	*)
15648	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15649	  ;;
15650	esac
15651      else
15652	case $host_cpu in
15653	hppa*64*)
15654	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15655	  ;;
15656	ia64*)
15657	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15658	  ;;
15659	*)
15660
15661	  # Older versions of the 11.00 compiler do not understand -b yet
15662	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15663	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15664$as_echo_n "checking if $CC understands -b... " >&6; }
15665if ${lt_cv_prog_compiler__b+:} false; then :
15666  $as_echo_n "(cached) " >&6
15667else
15668  lt_cv_prog_compiler__b=no
15669   save_LDFLAGS="$LDFLAGS"
15670   LDFLAGS="$LDFLAGS -b"
15671   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15672   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15673     # The linker can only warn and ignore the option if not recognized
15674     # So say no if there are warnings
15675     if test -s conftest.err; then
15676       # Append any errors to the config.log.
15677       cat conftest.err 1>&5
15678       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15679       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15680       if diff conftest.exp conftest.er2 >/dev/null; then
15681         lt_cv_prog_compiler__b=yes
15682       fi
15683     else
15684       lt_cv_prog_compiler__b=yes
15685     fi
15686   fi
15687   $RM -r conftest*
15688   LDFLAGS="$save_LDFLAGS"
15689
15690fi
15691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15692$as_echo "$lt_cv_prog_compiler__b" >&6; }
15693
15694if test x"$lt_cv_prog_compiler__b" = xyes; then
15695    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15696else
15697    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15698fi
15699
15700	  ;;
15701	esac
15702      fi
15703      if test "$with_gnu_ld" = no; then
15704	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15705	hardcode_libdir_separator=:
15706
15707	case $host_cpu in
15708	hppa*64*|ia64*)
15709	  hardcode_direct=no
15710	  hardcode_shlibpath_var=no
15711	  ;;
15712	*)
15713	  hardcode_direct=yes
15714	  hardcode_direct_absolute=yes
15715	  export_dynamic_flag_spec='${wl}-E'
15716
15717	  # hardcode_minus_L: Not really in the search PATH,
15718	  # but as the default location of the library.
15719	  hardcode_minus_L=yes
15720	  ;;
15721	esac
15722      fi
15723      ;;
15724
15725    irix5* | irix6* | nonstopux*)
15726      if test "$GCC" = yes; then
15727	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'
15728	# Try to use the -exported_symbol ld option, if it does not
15729	# work, assume that -exports_file does not work either and
15730	# implicitly export all symbols.
15731	# This should be the same for all languages, so no per-tag cache variable.
15732	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15733$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15734if ${lt_cv_irix_exported_symbol+:} false; then :
15735  $as_echo_n "(cached) " >&6
15736else
15737  save_LDFLAGS="$LDFLAGS"
15738	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15739	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740/* end confdefs.h.  */
15741int foo (void) { return 0; }
15742_ACEOF
15743if ac_fn_c_try_link "$LINENO"; then :
15744  lt_cv_irix_exported_symbol=yes
15745else
15746  lt_cv_irix_exported_symbol=no
15747fi
15748rm -f core conftest.err conftest.$ac_objext \
15749    conftest$ac_exeext conftest.$ac_ext
15750           LDFLAGS="$save_LDFLAGS"
15751fi
15752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15753$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15754	if test "$lt_cv_irix_exported_symbol" = yes; then
15755          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'
15756	fi
15757      else
15758	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'
15759	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'
15760      fi
15761      archive_cmds_need_lc='no'
15762      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15763      hardcode_libdir_separator=:
15764      inherit_rpath=yes
15765      link_all_deplibs=yes
15766      ;;
15767
15768    netbsd*)
15769      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15770	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15771      else
15772	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15773      fi
15774      hardcode_libdir_flag_spec='-R$libdir'
15775      hardcode_direct=yes
15776      hardcode_shlibpath_var=no
15777      ;;
15778
15779    newsos6)
15780      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15781      hardcode_direct=yes
15782      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15783      hardcode_libdir_separator=:
15784      hardcode_shlibpath_var=no
15785      ;;
15786
15787    *nto* | *qnx*)
15788      ;;
15789
15790    openbsd*)
15791      if test -f /usr/libexec/ld.so; then
15792	hardcode_direct=yes
15793	hardcode_shlibpath_var=no
15794	hardcode_direct_absolute=yes
15795	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15796	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15797	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15798	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15799	  export_dynamic_flag_spec='${wl}-E'
15800	else
15801	  case $host_os in
15802	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15803	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15804	     hardcode_libdir_flag_spec='-R$libdir'
15805	     ;;
15806	   *)
15807	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15808	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15809	     ;;
15810	  esac
15811	fi
15812      else
15813	ld_shlibs=no
15814      fi
15815      ;;
15816
15817    os2*)
15818      hardcode_libdir_flag_spec='-L$libdir'
15819      hardcode_minus_L=yes
15820      allow_undefined_flag=unsupported
15821      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'
15822      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15823      ;;
15824
15825    osf3*)
15826      if test "$GCC" = yes; then
15827	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15828	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'
15829      else
15830	allow_undefined_flag=' -expect_unresolved \*'
15831	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'
15832      fi
15833      archive_cmds_need_lc='no'
15834      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15835      hardcode_libdir_separator=:
15836      ;;
15837
15838    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15839      if test "$GCC" = yes; then
15840	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15841	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'
15842	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15843      else
15844	allow_undefined_flag=' -expect_unresolved \*'
15845	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'
15846	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~
15847	$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'
15848
15849	# Both c and cxx compiler support -rpath directly
15850	hardcode_libdir_flag_spec='-rpath $libdir'
15851      fi
15852      archive_cmds_need_lc='no'
15853      hardcode_libdir_separator=:
15854      ;;
15855
15856    solaris*)
15857      no_undefined_flag=' -z defs'
15858      if test "$GCC" = yes; then
15859	wlarc='${wl}'
15860	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15861	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15862	  $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'
15863      else
15864	case `$CC -V 2>&1` in
15865	*"Compilers 5.0"*)
15866	  wlarc=''
15867	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15868	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15869	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15870	  ;;
15871	*)
15872	  wlarc='${wl}'
15873	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15874	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15875	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15876	  ;;
15877	esac
15878      fi
15879      hardcode_libdir_flag_spec='-R$libdir'
15880      hardcode_shlibpath_var=no
15881      case $host_os in
15882      solaris2.[0-5] | solaris2.[0-5].*) ;;
15883      *)
15884	# The compiler driver will combine and reorder linker options,
15885	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15886	# but is careful enough not to reorder.
15887	# Supported since Solaris 2.6 (maybe 2.5.1?)
15888	if test "$GCC" = yes; then
15889	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15890	else
15891	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15892	fi
15893	;;
15894      esac
15895      link_all_deplibs=yes
15896      ;;
15897
15898    sunos4*)
15899      if test "x$host_vendor" = xsequent; then
15900	# Use $CC to link under sequent, because it throws in some extra .o
15901	# files that make .init and .fini sections work.
15902	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15903      else
15904	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15905      fi
15906      hardcode_libdir_flag_spec='-L$libdir'
15907      hardcode_direct=yes
15908      hardcode_minus_L=yes
15909      hardcode_shlibpath_var=no
15910      ;;
15911
15912    sysv4)
15913      case $host_vendor in
15914	sni)
15915	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15916	  hardcode_direct=yes # is this really true???
15917	;;
15918	siemens)
15919	  ## LD is ld it makes a PLAMLIB
15920	  ## CC just makes a GrossModule.
15921	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15922	  reload_cmds='$CC -r -o $output$reload_objs'
15923	  hardcode_direct=no
15924        ;;
15925	motorola)
15926	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15927	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15928	;;
15929      esac
15930      runpath_var='LD_RUN_PATH'
15931      hardcode_shlibpath_var=no
15932      ;;
15933
15934    sysv4.3*)
15935      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15936      hardcode_shlibpath_var=no
15937      export_dynamic_flag_spec='-Bexport'
15938      ;;
15939
15940    sysv4*MP*)
15941      if test -d /usr/nec; then
15942	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15943	hardcode_shlibpath_var=no
15944	runpath_var=LD_RUN_PATH
15945	hardcode_runpath_var=yes
15946	ld_shlibs=yes
15947      fi
15948      ;;
15949
15950    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15951      no_undefined_flag='${wl}-z,text'
15952      archive_cmds_need_lc=no
15953      hardcode_shlibpath_var=no
15954      runpath_var='LD_RUN_PATH'
15955
15956      if test "$GCC" = yes; then
15957	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15958	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15959      else
15960	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15961	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15962      fi
15963      ;;
15964
15965    sysv5* | sco3.2v5* | sco5v6*)
15966      # Note: We can NOT use -z defs as we might desire, because we do not
15967      # link with -lc, and that would cause any symbols used from libc to
15968      # always be unresolved, which means just about no library would
15969      # ever link correctly.  If we're not using GNU ld we use -z text
15970      # though, which does catch some bad symbols but isn't as heavy-handed
15971      # as -z defs.
15972      no_undefined_flag='${wl}-z,text'
15973      allow_undefined_flag='${wl}-z,nodefs'
15974      archive_cmds_need_lc=no
15975      hardcode_shlibpath_var=no
15976      hardcode_libdir_flag_spec='${wl}-R,$libdir'
15977      hardcode_libdir_separator=':'
15978      link_all_deplibs=yes
15979      export_dynamic_flag_spec='${wl}-Bexport'
15980      runpath_var='LD_RUN_PATH'
15981
15982      if test "$GCC" = yes; then
15983	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15984	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15985      else
15986	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15987	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15988      fi
15989      ;;
15990
15991    uts4*)
15992      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15993      hardcode_libdir_flag_spec='-L$libdir'
15994      hardcode_shlibpath_var=no
15995      ;;
15996
15997    *)
15998      ld_shlibs=no
15999      ;;
16000    esac
16001
16002    if test x$host_vendor = xsni; then
16003      case $host in
16004      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16005	export_dynamic_flag_spec='${wl}-Blargedynsym'
16006	;;
16007      esac
16008    fi
16009  fi
16010
16011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16012$as_echo "$ld_shlibs" >&6; }
16013test "$ld_shlibs" = no && can_build_shared=no
16014
16015with_gnu_ld=$with_gnu_ld
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031#
16032# Do we need to explicitly link libc?
16033#
16034case "x$archive_cmds_need_lc" in
16035x|xyes)
16036  # Assume -lc should be added
16037  archive_cmds_need_lc=yes
16038
16039  if test "$enable_shared" = yes && test "$GCC" = yes; then
16040    case $archive_cmds in
16041    *'~'*)
16042      # FIXME: we may have to deal with multi-command sequences.
16043      ;;
16044    '$CC '*)
16045      # Test whether the compiler implicitly links with -lc since on some
16046      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16047      # to ld, don't add -lc before -lgcc.
16048      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16049$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16050if ${lt_cv_archive_cmds_need_lc+:} false; then :
16051  $as_echo_n "(cached) " >&6
16052else
16053  $RM conftest*
16054	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16055
16056	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16057  (eval $ac_compile) 2>&5
16058  ac_status=$?
16059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16060  test $ac_status = 0; } 2>conftest.err; then
16061	  soname=conftest
16062	  lib=conftest
16063	  libobjs=conftest.$ac_objext
16064	  deplibs=
16065	  wl=$lt_prog_compiler_wl
16066	  pic_flag=$lt_prog_compiler_pic
16067	  compiler_flags=-v
16068	  linker_flags=-v
16069	  verstring=
16070	  output_objdir=.
16071	  libname=conftest
16072	  lt_save_allow_undefined_flag=$allow_undefined_flag
16073	  allow_undefined_flag=
16074	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16075  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16076  ac_status=$?
16077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16078  test $ac_status = 0; }
16079	  then
16080	    lt_cv_archive_cmds_need_lc=no
16081	  else
16082	    lt_cv_archive_cmds_need_lc=yes
16083	  fi
16084	  allow_undefined_flag=$lt_save_allow_undefined_flag
16085	else
16086	  cat conftest.err 1>&5
16087	fi
16088	$RM conftest*
16089
16090fi
16091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16092$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16093      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16094      ;;
16095    esac
16096  fi
16097  ;;
16098esac
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
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16252$as_echo_n "checking dynamic linker characteristics... " >&6; }
16253
16254if test "$GCC" = yes; then
16255  case $host_os in
16256    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16257    *) lt_awk_arg="/^libraries:/" ;;
16258  esac
16259  case $host_os in
16260    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16261    *) lt_sed_strip_eq="s,=/,/,g" ;;
16262  esac
16263  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16264  case $lt_search_path_spec in
16265  *\;*)
16266    # if the path contains ";" then we assume it to be the separator
16267    # otherwise default to the standard path separator (i.e. ":") - it is
16268    # assumed that no part of a normal pathname contains ";" but that should
16269    # okay in the real world where ";" in dirpaths is itself problematic.
16270    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16271    ;;
16272  *)
16273    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16274    ;;
16275  esac
16276  # Ok, now we have the path, separated by spaces, we can step through it
16277  # and add multilib dir if necessary.
16278  lt_tmp_lt_search_path_spec=
16279  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16280  for lt_sys_path in $lt_search_path_spec; do
16281    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16282      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16283    else
16284      test -d "$lt_sys_path" && \
16285	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16286    fi
16287  done
16288  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16289BEGIN {RS=" "; FS="/|\n";} {
16290  lt_foo="";
16291  lt_count=0;
16292  for (lt_i = NF; lt_i > 0; lt_i--) {
16293    if ($lt_i != "" && $lt_i != ".") {
16294      if ($lt_i == "..") {
16295        lt_count++;
16296      } else {
16297        if (lt_count == 0) {
16298          lt_foo="/" $lt_i lt_foo;
16299        } else {
16300          lt_count--;
16301        }
16302      }
16303    }
16304  }
16305  if (lt_foo != "") { lt_freq[lt_foo]++; }
16306  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16307}'`
16308  # AWK program above erroneously prepends '/' to C:/dos/paths
16309  # for these hosts.
16310  case $host_os in
16311    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16312      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16313  esac
16314  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16315else
16316  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16317fi
16318library_names_spec=
16319libname_spec='lib$name'
16320soname_spec=
16321shrext_cmds=".so"
16322postinstall_cmds=
16323postuninstall_cmds=
16324finish_cmds=
16325finish_eval=
16326shlibpath_var=
16327shlibpath_overrides_runpath=unknown
16328version_type=none
16329dynamic_linker="$host_os ld.so"
16330sys_lib_dlsearch_path_spec="/lib /usr/lib"
16331need_lib_prefix=unknown
16332hardcode_into_libs=no
16333
16334# when you set need_version to no, make sure it does not cause -set_version
16335# flags to be left without arguments
16336need_version=unknown
16337
16338case $host_os in
16339aix3*)
16340  version_type=linux # correct to gnu/linux during the next big refactor
16341  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16342  shlibpath_var=LIBPATH
16343
16344  # AIX 3 has no versioning support, so we append a major version to the name.
16345  soname_spec='${libname}${release}${shared_ext}$major'
16346  ;;
16347
16348aix[4-9]*)
16349  version_type=linux # correct to gnu/linux during the next big refactor
16350  need_lib_prefix=no
16351  need_version=no
16352  hardcode_into_libs=yes
16353  if test "$host_cpu" = ia64; then
16354    # AIX 5 supports IA64
16355    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16356    shlibpath_var=LD_LIBRARY_PATH
16357  else
16358    # With GCC up to 2.95.x, collect2 would create an import file
16359    # for dependence libraries.  The import file would start with
16360    # the line `#! .'.  This would cause the generated library to
16361    # depend on `.', always an invalid library.  This was fixed in
16362    # development snapshots of GCC prior to 3.0.
16363    case $host_os in
16364      aix4 | aix4.[01] | aix4.[01].*)
16365      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16366	   echo ' yes '
16367	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16368	:
16369      else
16370	can_build_shared=no
16371      fi
16372      ;;
16373    esac
16374    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16375    # soname into executable. Probably we can add versioning support to
16376    # collect2, so additional links can be useful in future.
16377    if test "$aix_use_runtimelinking" = yes; then
16378      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16379      # instead of lib<name>.a to let people know that these are not
16380      # typical AIX shared libraries.
16381      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16382    else
16383      # We preserve .a as extension for shared libraries through AIX4.2
16384      # and later when we are not doing run time linking.
16385      library_names_spec='${libname}${release}.a $libname.a'
16386      soname_spec='${libname}${release}${shared_ext}$major'
16387    fi
16388    shlibpath_var=LIBPATH
16389  fi
16390  ;;
16391
16392amigaos*)
16393  case $host_cpu in
16394  powerpc)
16395    # Since July 2007 AmigaOS4 officially supports .so libraries.
16396    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16397    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16398    ;;
16399  m68k)
16400    library_names_spec='$libname.ixlibrary $libname.a'
16401    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16402    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'
16403    ;;
16404  esac
16405  ;;
16406
16407beos*)
16408  library_names_spec='${libname}${shared_ext}'
16409  dynamic_linker="$host_os ld.so"
16410  shlibpath_var=LIBRARY_PATH
16411  ;;
16412
16413bsdi[45]*)
16414  version_type=linux # correct to gnu/linux during the next big refactor
16415  need_version=no
16416  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16417  soname_spec='${libname}${release}${shared_ext}$major'
16418  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16419  shlibpath_var=LD_LIBRARY_PATH
16420  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16421  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16422  # the default ld.so.conf also contains /usr/contrib/lib and
16423  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16424  # libtool to hard-code these into programs
16425  ;;
16426
16427cygwin* | mingw* | pw32* | cegcc*)
16428  version_type=windows
16429  shrext_cmds=".dll"
16430  need_version=no
16431  need_lib_prefix=no
16432
16433  case $GCC,$cc_basename in
16434  yes,*)
16435    # gcc
16436    library_names_spec='$libname.dll.a'
16437    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16438    postinstall_cmds='base_file=`basename \${file}`~
16439      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16440      dldir=$destdir/`dirname \$dlpath`~
16441      test -d \$dldir || mkdir -p \$dldir~
16442      $install_prog $dir/$dlname \$dldir/$dlname~
16443      chmod a+x \$dldir/$dlname~
16444      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16445        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16446      fi'
16447    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16448      dlpath=$dir/\$dldll~
16449       $RM \$dlpath'
16450    shlibpath_overrides_runpath=yes
16451
16452    case $host_os in
16453    cygwin*)
16454      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16455      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16456
16457      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16458      ;;
16459    mingw* | cegcc*)
16460      # MinGW DLLs use traditional 'lib' prefix
16461      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16462      ;;
16463    pw32*)
16464      # pw32 DLLs use 'pw' prefix rather than 'lib'
16465      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16466      ;;
16467    esac
16468    dynamic_linker='Win32 ld.exe'
16469    ;;
16470
16471  *,cl*)
16472    # Native MSVC
16473    libname_spec='$name'
16474    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16475    library_names_spec='${libname}.dll.lib'
16476
16477    case $build_os in
16478    mingw*)
16479      sys_lib_search_path_spec=
16480      lt_save_ifs=$IFS
16481      IFS=';'
16482      for lt_path in $LIB
16483      do
16484        IFS=$lt_save_ifs
16485        # Let DOS variable expansion print the short 8.3 style file name.
16486        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16487        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16488      done
16489      IFS=$lt_save_ifs
16490      # Convert to MSYS style.
16491      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16492      ;;
16493    cygwin*)
16494      # Convert to unix form, then to dos form, then back to unix form
16495      # but this time dos style (no spaces!) so that the unix form looks
16496      # like /cygdrive/c/PROGRA~1:/cygdr...
16497      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16498      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16499      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16500      ;;
16501    *)
16502      sys_lib_search_path_spec="$LIB"
16503      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16504        # It is most probably a Windows format PATH.
16505        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16506      else
16507        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16508      fi
16509      # FIXME: find the short name or the path components, as spaces are
16510      # common. (e.g. "Program Files" -> "PROGRA~1")
16511      ;;
16512    esac
16513
16514    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16515    postinstall_cmds='base_file=`basename \${file}`~
16516      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16517      dldir=$destdir/`dirname \$dlpath`~
16518      test -d \$dldir || mkdir -p \$dldir~
16519      $install_prog $dir/$dlname \$dldir/$dlname'
16520    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16521      dlpath=$dir/\$dldll~
16522       $RM \$dlpath'
16523    shlibpath_overrides_runpath=yes
16524    dynamic_linker='Win32 link.exe'
16525    ;;
16526
16527  *)
16528    # Assume MSVC wrapper
16529    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16530    dynamic_linker='Win32 ld.exe'
16531    ;;
16532  esac
16533  # FIXME: first we should search . and the directory the executable is in
16534  shlibpath_var=PATH
16535  ;;
16536
16537darwin* | rhapsody*)
16538  dynamic_linker="$host_os dyld"
16539  version_type=darwin
16540  need_lib_prefix=no
16541  need_version=no
16542  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16543  soname_spec='${libname}${release}${major}$shared_ext'
16544  shlibpath_overrides_runpath=yes
16545  shlibpath_var=DYLD_LIBRARY_PATH
16546  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16547
16548  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16549  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16550  ;;
16551
16552dgux*)
16553  version_type=linux # correct to gnu/linux during the next big refactor
16554  need_lib_prefix=no
16555  need_version=no
16556  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16557  soname_spec='${libname}${release}${shared_ext}$major'
16558  shlibpath_var=LD_LIBRARY_PATH
16559  ;;
16560
16561freebsd* | dragonfly*)
16562  # DragonFly does not have aout.  When/if they implement a new
16563  # versioning mechanism, adjust this.
16564  if test -x /usr/bin/objformat; then
16565    objformat=`/usr/bin/objformat`
16566  else
16567    case $host_os in
16568    freebsd[23].*) objformat=aout ;;
16569    *) objformat=elf ;;
16570    esac
16571  fi
16572  version_type=freebsd-$objformat
16573  case $version_type in
16574    freebsd-elf*)
16575      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16576      need_version=no
16577      need_lib_prefix=no
16578      ;;
16579    freebsd-*)
16580      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16581      need_version=yes
16582      ;;
16583  esac
16584  shlibpath_var=LD_LIBRARY_PATH
16585  case $host_os in
16586  freebsd2.*)
16587    shlibpath_overrides_runpath=yes
16588    ;;
16589  freebsd3.[01]* | freebsdelf3.[01]*)
16590    shlibpath_overrides_runpath=yes
16591    hardcode_into_libs=yes
16592    ;;
16593  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16594  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16595    shlibpath_overrides_runpath=no
16596    hardcode_into_libs=yes
16597    ;;
16598  *) # from 4.6 on, and DragonFly
16599    shlibpath_overrides_runpath=yes
16600    hardcode_into_libs=yes
16601    ;;
16602  esac
16603  ;;
16604
16605gnu*)
16606  version_type=linux # correct to gnu/linux during the next big refactor
16607  need_lib_prefix=no
16608  need_version=no
16609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16610  soname_spec='${libname}${release}${shared_ext}$major'
16611  shlibpath_var=LD_LIBRARY_PATH
16612  shlibpath_overrides_runpath=no
16613  hardcode_into_libs=yes
16614  ;;
16615
16616haiku*)
16617  version_type=linux # correct to gnu/linux during the next big refactor
16618  need_lib_prefix=no
16619  need_version=no
16620  dynamic_linker="$host_os runtime_loader"
16621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16622  soname_spec='${libname}${release}${shared_ext}$major'
16623  shlibpath_var=LIBRARY_PATH
16624  shlibpath_overrides_runpath=yes
16625  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16626  hardcode_into_libs=yes
16627  ;;
16628
16629hpux9* | hpux10* | hpux11*)
16630  # Give a soname corresponding to the major version so that dld.sl refuses to
16631  # link against other versions.
16632  version_type=sunos
16633  need_lib_prefix=no
16634  need_version=no
16635  case $host_cpu in
16636  ia64*)
16637    shrext_cmds='.so'
16638    hardcode_into_libs=yes
16639    dynamic_linker="$host_os dld.so"
16640    shlibpath_var=LD_LIBRARY_PATH
16641    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16642    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16643    soname_spec='${libname}${release}${shared_ext}$major'
16644    if test "X$HPUX_IA64_MODE" = X32; then
16645      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16646    else
16647      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16648    fi
16649    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16650    ;;
16651  hppa*64*)
16652    shrext_cmds='.sl'
16653    hardcode_into_libs=yes
16654    dynamic_linker="$host_os dld.sl"
16655    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16656    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16657    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16658    soname_spec='${libname}${release}${shared_ext}$major'
16659    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16660    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16661    ;;
16662  *)
16663    shrext_cmds='.sl'
16664    dynamic_linker="$host_os dld.sl"
16665    shlibpath_var=SHLIB_PATH
16666    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16667    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16668    soname_spec='${libname}${release}${shared_ext}$major'
16669    ;;
16670  esac
16671  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16672  postinstall_cmds='chmod 555 $lib'
16673  # or fails outright, so override atomically:
16674  install_override_mode=555
16675  ;;
16676
16677interix[3-9]*)
16678  version_type=linux # correct to gnu/linux during the next big refactor
16679  need_lib_prefix=no
16680  need_version=no
16681  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16682  soname_spec='${libname}${release}${shared_ext}$major'
16683  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16684  shlibpath_var=LD_LIBRARY_PATH
16685  shlibpath_overrides_runpath=no
16686  hardcode_into_libs=yes
16687  ;;
16688
16689irix5* | irix6* | nonstopux*)
16690  case $host_os in
16691    nonstopux*) version_type=nonstopux ;;
16692    *)
16693	if test "$lt_cv_prog_gnu_ld" = yes; then
16694		version_type=linux # correct to gnu/linux during the next big refactor
16695	else
16696		version_type=irix
16697	fi ;;
16698  esac
16699  need_lib_prefix=no
16700  need_version=no
16701  soname_spec='${libname}${release}${shared_ext}$major'
16702  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16703  case $host_os in
16704  irix5* | nonstopux*)
16705    libsuff= shlibsuff=
16706    ;;
16707  *)
16708    case $LD in # libtool.m4 will add one of these switches to LD
16709    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16710      libsuff= shlibsuff= libmagic=32-bit;;
16711    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16712      libsuff=32 shlibsuff=N32 libmagic=N32;;
16713    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16714      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16715    *) libsuff= shlibsuff= libmagic=never-match;;
16716    esac
16717    ;;
16718  esac
16719  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16720  shlibpath_overrides_runpath=no
16721  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16722  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16723  hardcode_into_libs=yes
16724  ;;
16725
16726# No shared lib support for Linux oldld, aout, or coff.
16727linux*oldld* | linux*aout* | linux*coff*)
16728  dynamic_linker=no
16729  ;;
16730
16731# This must be glibc/ELF.
16732linux* | k*bsd*-gnu | kopensolaris*-gnu)
16733  version_type=linux # correct to gnu/linux during the next big refactor
16734  need_lib_prefix=no
16735  need_version=no
16736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16737  soname_spec='${libname}${release}${shared_ext}$major'
16738  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16739  shlibpath_var=LD_LIBRARY_PATH
16740  shlibpath_overrides_runpath=no
16741
16742  # Some binutils ld are patched to set DT_RUNPATH
16743  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16744  $as_echo_n "(cached) " >&6
16745else
16746  lt_cv_shlibpath_overrides_runpath=no
16747    save_LDFLAGS=$LDFLAGS
16748    save_libdir=$libdir
16749    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16750	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16751    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752/* end confdefs.h.  */
16753
16754int
16755main ()
16756{
16757
16758  ;
16759  return 0;
16760}
16761_ACEOF
16762if ac_fn_c_try_link "$LINENO"; then :
16763  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16764  lt_cv_shlibpath_overrides_runpath=yes
16765fi
16766fi
16767rm -f core conftest.err conftest.$ac_objext \
16768    conftest$ac_exeext conftest.$ac_ext
16769    LDFLAGS=$save_LDFLAGS
16770    libdir=$save_libdir
16771
16772fi
16773
16774  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16775
16776  # This implies no fast_install, which is unacceptable.
16777  # Some rework will be needed to allow for fast_install
16778  # before this can be enabled.
16779  hardcode_into_libs=yes
16780
16781  # Append ld.so.conf contents to the search path
16782  if test -f /etc/ld.so.conf; then
16783    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' ' '`
16784    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16785  fi
16786
16787  # We used to test for /lib/ld.so.1 and disable shared libraries on
16788  # powerpc, because MkLinux only supported shared libraries with the
16789  # GNU dynamic linker.  Since this was broken with cross compilers,
16790  # most powerpc-linux boxes support dynamic linking these days and
16791  # people can always --disable-shared, the test was removed, and we
16792  # assume the GNU/Linux dynamic linker is in use.
16793  dynamic_linker='GNU/Linux ld.so'
16794  ;;
16795
16796netbsd*)
16797  version_type=sunos
16798  need_lib_prefix=no
16799  need_version=no
16800  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16801    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16802    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16803    dynamic_linker='NetBSD (a.out) ld.so'
16804  else
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    dynamic_linker='NetBSD ld.elf_so'
16808  fi
16809  shlibpath_var=LD_LIBRARY_PATH
16810  shlibpath_overrides_runpath=yes
16811  hardcode_into_libs=yes
16812  ;;
16813
16814newsos6)
16815  version_type=linux # correct to gnu/linux during the next big refactor
16816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16817  shlibpath_var=LD_LIBRARY_PATH
16818  shlibpath_overrides_runpath=yes
16819  ;;
16820
16821*nto* | *qnx*)
16822  version_type=qnx
16823  need_lib_prefix=no
16824  need_version=no
16825  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16826  soname_spec='${libname}${release}${shared_ext}$major'
16827  shlibpath_var=LD_LIBRARY_PATH
16828  shlibpath_overrides_runpath=no
16829  hardcode_into_libs=yes
16830  dynamic_linker='ldqnx.so'
16831  ;;
16832
16833openbsd*)
16834  version_type=sunos
16835  sys_lib_dlsearch_path_spec="/usr/lib"
16836  need_lib_prefix=no
16837  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16838  case $host_os in
16839    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16840    *)				need_version=no  ;;
16841  esac
16842  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16843  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16844  shlibpath_var=LD_LIBRARY_PATH
16845  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16846    case $host_os in
16847      openbsd2.[89] | openbsd2.[89].*)
16848	shlibpath_overrides_runpath=no
16849	;;
16850      *)
16851	shlibpath_overrides_runpath=yes
16852	;;
16853      esac
16854  else
16855    shlibpath_overrides_runpath=yes
16856  fi
16857  ;;
16858
16859os2*)
16860  libname_spec='$name'
16861  shrext_cmds=".dll"
16862  need_lib_prefix=no
16863  library_names_spec='$libname${shared_ext} $libname.a'
16864  dynamic_linker='OS/2 ld.exe'
16865  shlibpath_var=LIBPATH
16866  ;;
16867
16868osf3* | osf4* | osf5*)
16869  version_type=osf
16870  need_lib_prefix=no
16871  need_version=no
16872  soname_spec='${libname}${release}${shared_ext}$major'
16873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874  shlibpath_var=LD_LIBRARY_PATH
16875  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16876  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16877  ;;
16878
16879rdos*)
16880  dynamic_linker=no
16881  ;;
16882
16883solaris*)
16884  version_type=linux # correct to gnu/linux during the next big refactor
16885  need_lib_prefix=no
16886  need_version=no
16887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16888  soname_spec='${libname}${release}${shared_ext}$major'
16889  shlibpath_var=LD_LIBRARY_PATH
16890  shlibpath_overrides_runpath=yes
16891  hardcode_into_libs=yes
16892  # ldd complains unless libraries are executable
16893  postinstall_cmds='chmod +x $lib'
16894  ;;
16895
16896sunos4*)
16897  version_type=sunos
16898  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16899  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16900  shlibpath_var=LD_LIBRARY_PATH
16901  shlibpath_overrides_runpath=yes
16902  if test "$with_gnu_ld" = yes; then
16903    need_lib_prefix=no
16904  fi
16905  need_version=yes
16906  ;;
16907
16908sysv4 | sysv4.3*)
16909  version_type=linux # correct to gnu/linux during the next big refactor
16910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16911  soname_spec='${libname}${release}${shared_ext}$major'
16912  shlibpath_var=LD_LIBRARY_PATH
16913  case $host_vendor in
16914    sni)
16915      shlibpath_overrides_runpath=no
16916      need_lib_prefix=no
16917      runpath_var=LD_RUN_PATH
16918      ;;
16919    siemens)
16920      need_lib_prefix=no
16921      ;;
16922    motorola)
16923      need_lib_prefix=no
16924      need_version=no
16925      shlibpath_overrides_runpath=no
16926      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16927      ;;
16928  esac
16929  ;;
16930
16931sysv4*MP*)
16932  if test -d /usr/nec ;then
16933    version_type=linux # correct to gnu/linux during the next big refactor
16934    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16935    soname_spec='$libname${shared_ext}.$major'
16936    shlibpath_var=LD_LIBRARY_PATH
16937  fi
16938  ;;
16939
16940sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16941  version_type=freebsd-elf
16942  need_lib_prefix=no
16943  need_version=no
16944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16945  soname_spec='${libname}${release}${shared_ext}$major'
16946  shlibpath_var=LD_LIBRARY_PATH
16947  shlibpath_overrides_runpath=yes
16948  hardcode_into_libs=yes
16949  if test "$with_gnu_ld" = yes; then
16950    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16951  else
16952    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16953    case $host_os in
16954      sco3.2v5*)
16955        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16956	;;
16957    esac
16958  fi
16959  sys_lib_dlsearch_path_spec='/usr/lib'
16960  ;;
16961
16962tpf*)
16963  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16964  version_type=linux # correct to gnu/linux during the next big refactor
16965  need_lib_prefix=no
16966  need_version=no
16967  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16968  shlibpath_var=LD_LIBRARY_PATH
16969  shlibpath_overrides_runpath=no
16970  hardcode_into_libs=yes
16971  ;;
16972
16973uts4*)
16974  version_type=linux # correct to gnu/linux during the next big refactor
16975  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16976  soname_spec='${libname}${release}${shared_ext}$major'
16977  shlibpath_var=LD_LIBRARY_PATH
16978  ;;
16979
16980*)
16981  dynamic_linker=no
16982  ;;
16983esac
16984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16985$as_echo "$dynamic_linker" >&6; }
16986test "$dynamic_linker" = no && can_build_shared=no
16987
16988variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16989if test "$GCC" = yes; then
16990  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16991fi
16992
16993if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16994  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16995fi
16996if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16997  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16998fi
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
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17092$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17093hardcode_action=
17094if test -n "$hardcode_libdir_flag_spec" ||
17095   test -n "$runpath_var" ||
17096   test "X$hardcode_automatic" = "Xyes" ; then
17097
17098  # We can hardcode non-existent directories.
17099  if test "$hardcode_direct" != no &&
17100     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17101     # have to relink, otherwise we might link with an installed library
17102     # when we should be linking with a yet-to-be-installed one
17103     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17104     test "$hardcode_minus_L" != no; then
17105    # Linking always hardcodes the temporary library directory.
17106    hardcode_action=relink
17107  else
17108    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17109    hardcode_action=immediate
17110  fi
17111else
17112  # We cannot hardcode anything, or else we can only hardcode existing
17113  # directories.
17114  hardcode_action=unsupported
17115fi
17116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17117$as_echo "$hardcode_action" >&6; }
17118
17119if test "$hardcode_action" = relink ||
17120   test "$inherit_rpath" = yes; then
17121  # Fast installation is not supported
17122  enable_fast_install=no
17123elif test "$shlibpath_overrides_runpath" = yes ||
17124     test "$enable_shared" = no; then
17125  # Fast installation is not necessary
17126  enable_fast_install=needless
17127fi
17128
17129
17130
17131
17132
17133
17134  if test "x$enable_dlopen" != xyes; then
17135  enable_dlopen=unknown
17136  enable_dlopen_self=unknown
17137  enable_dlopen_self_static=unknown
17138else
17139  lt_cv_dlopen=no
17140  lt_cv_dlopen_libs=
17141
17142  case $host_os in
17143  beos*)
17144    lt_cv_dlopen="load_add_on"
17145    lt_cv_dlopen_libs=
17146    lt_cv_dlopen_self=yes
17147    ;;
17148
17149  mingw* | pw32* | cegcc*)
17150    lt_cv_dlopen="LoadLibrary"
17151    lt_cv_dlopen_libs=
17152    ;;
17153
17154  cygwin*)
17155    lt_cv_dlopen="dlopen"
17156    lt_cv_dlopen_libs=
17157    ;;
17158
17159  darwin*)
17160  # if libdl is installed we need to link against it
17161    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17162$as_echo_n "checking for dlopen in -ldl... " >&6; }
17163if ${ac_cv_lib_dl_dlopen+:} false; then :
17164  $as_echo_n "(cached) " >&6
17165else
17166  ac_check_lib_save_LIBS=$LIBS
17167LIBS="-ldl  $LIBS"
17168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17169/* end confdefs.h.  */
17170
17171/* Override any GCC internal prototype to avoid an error.
17172   Use char because int might match the return type of a GCC
17173   builtin and then its argument prototype would still apply.  */
17174#ifdef __cplusplus
17175extern "C"
17176#endif
17177char dlopen ();
17178int
17179main ()
17180{
17181return dlopen ();
17182  ;
17183  return 0;
17184}
17185_ACEOF
17186if ac_fn_c_try_link "$LINENO"; then :
17187  ac_cv_lib_dl_dlopen=yes
17188else
17189  ac_cv_lib_dl_dlopen=no
17190fi
17191rm -f core conftest.err conftest.$ac_objext \
17192    conftest$ac_exeext conftest.$ac_ext
17193LIBS=$ac_check_lib_save_LIBS
17194fi
17195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17196$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17197if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17198  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17199else
17200
17201    lt_cv_dlopen="dyld"
17202    lt_cv_dlopen_libs=
17203    lt_cv_dlopen_self=yes
17204
17205fi
17206
17207    ;;
17208
17209  *)
17210    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17211if test "x$ac_cv_func_shl_load" = xyes; then :
17212  lt_cv_dlopen="shl_load"
17213else
17214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17215$as_echo_n "checking for shl_load in -ldld... " >&6; }
17216if ${ac_cv_lib_dld_shl_load+:} false; then :
17217  $as_echo_n "(cached) " >&6
17218else
17219  ac_check_lib_save_LIBS=$LIBS
17220LIBS="-ldld  $LIBS"
17221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17222/* end confdefs.h.  */
17223
17224/* Override any GCC internal prototype to avoid an error.
17225   Use char because int might match the return type of a GCC
17226   builtin and then its argument prototype would still apply.  */
17227#ifdef __cplusplus
17228extern "C"
17229#endif
17230char shl_load ();
17231int
17232main ()
17233{
17234return shl_load ();
17235  ;
17236  return 0;
17237}
17238_ACEOF
17239if ac_fn_c_try_link "$LINENO"; then :
17240  ac_cv_lib_dld_shl_load=yes
17241else
17242  ac_cv_lib_dld_shl_load=no
17243fi
17244rm -f core conftest.err conftest.$ac_objext \
17245    conftest$ac_exeext conftest.$ac_ext
17246LIBS=$ac_check_lib_save_LIBS
17247fi
17248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17249$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17250if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17251  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17252else
17253  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17254if test "x$ac_cv_func_dlopen" = xyes; then :
17255  lt_cv_dlopen="dlopen"
17256else
17257  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17258$as_echo_n "checking for dlopen in -ldl... " >&6; }
17259if ${ac_cv_lib_dl_dlopen+:} false; then :
17260  $as_echo_n "(cached) " >&6
17261else
17262  ac_check_lib_save_LIBS=$LIBS
17263LIBS="-ldl  $LIBS"
17264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17265/* end confdefs.h.  */
17266
17267/* Override any GCC internal prototype to avoid an error.
17268   Use char because int might match the return type of a GCC
17269   builtin and then its argument prototype would still apply.  */
17270#ifdef __cplusplus
17271extern "C"
17272#endif
17273char dlopen ();
17274int
17275main ()
17276{
17277return dlopen ();
17278  ;
17279  return 0;
17280}
17281_ACEOF
17282if ac_fn_c_try_link "$LINENO"; then :
17283  ac_cv_lib_dl_dlopen=yes
17284else
17285  ac_cv_lib_dl_dlopen=no
17286fi
17287rm -f core conftest.err conftest.$ac_objext \
17288    conftest$ac_exeext conftest.$ac_ext
17289LIBS=$ac_check_lib_save_LIBS
17290fi
17291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17292$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17293if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17294  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17295else
17296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17297$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17298if ${ac_cv_lib_svld_dlopen+:} false; then :
17299  $as_echo_n "(cached) " >&6
17300else
17301  ac_check_lib_save_LIBS=$LIBS
17302LIBS="-lsvld  $LIBS"
17303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17304/* end confdefs.h.  */
17305
17306/* Override any GCC internal prototype to avoid an error.
17307   Use char because int might match the return type of a GCC
17308   builtin and then its argument prototype would still apply.  */
17309#ifdef __cplusplus
17310extern "C"
17311#endif
17312char dlopen ();
17313int
17314main ()
17315{
17316return dlopen ();
17317  ;
17318  return 0;
17319}
17320_ACEOF
17321if ac_fn_c_try_link "$LINENO"; then :
17322  ac_cv_lib_svld_dlopen=yes
17323else
17324  ac_cv_lib_svld_dlopen=no
17325fi
17326rm -f core conftest.err conftest.$ac_objext \
17327    conftest$ac_exeext conftest.$ac_ext
17328LIBS=$ac_check_lib_save_LIBS
17329fi
17330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17331$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17332if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17333  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17334else
17335  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17336$as_echo_n "checking for dld_link in -ldld... " >&6; }
17337if ${ac_cv_lib_dld_dld_link+:} false; then :
17338  $as_echo_n "(cached) " >&6
17339else
17340  ac_check_lib_save_LIBS=$LIBS
17341LIBS="-ldld  $LIBS"
17342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17343/* end confdefs.h.  */
17344
17345/* Override any GCC internal prototype to avoid an error.
17346   Use char because int might match the return type of a GCC
17347   builtin and then its argument prototype would still apply.  */
17348#ifdef __cplusplus
17349extern "C"
17350#endif
17351char dld_link ();
17352int
17353main ()
17354{
17355return dld_link ();
17356  ;
17357  return 0;
17358}
17359_ACEOF
17360if ac_fn_c_try_link "$LINENO"; then :
17361  ac_cv_lib_dld_dld_link=yes
17362else
17363  ac_cv_lib_dld_dld_link=no
17364fi
17365rm -f core conftest.err conftest.$ac_objext \
17366    conftest$ac_exeext conftest.$ac_ext
17367LIBS=$ac_check_lib_save_LIBS
17368fi
17369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17370$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17371if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17372  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17373fi
17374
17375
17376fi
17377
17378
17379fi
17380
17381
17382fi
17383
17384
17385fi
17386
17387
17388fi
17389
17390    ;;
17391  esac
17392
17393  if test "x$lt_cv_dlopen" != xno; then
17394    enable_dlopen=yes
17395  else
17396    enable_dlopen=no
17397  fi
17398
17399  case $lt_cv_dlopen in
17400  dlopen)
17401    save_CPPFLAGS="$CPPFLAGS"
17402    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17403
17404    save_LDFLAGS="$LDFLAGS"
17405    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17406
17407    save_LIBS="$LIBS"
17408    LIBS="$lt_cv_dlopen_libs $LIBS"
17409
17410    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17411$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17412if ${lt_cv_dlopen_self+:} false; then :
17413  $as_echo_n "(cached) " >&6
17414else
17415  	  if test "$cross_compiling" = yes; then :
17416  lt_cv_dlopen_self=cross
17417else
17418  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17419  lt_status=$lt_dlunknown
17420  cat > conftest.$ac_ext <<_LT_EOF
17421#line $LINENO "configure"
17422#include "confdefs.h"
17423
17424#if HAVE_DLFCN_H
17425#include <dlfcn.h>
17426#endif
17427
17428#include <stdio.h>
17429
17430#ifdef RTLD_GLOBAL
17431#  define LT_DLGLOBAL		RTLD_GLOBAL
17432#else
17433#  ifdef DL_GLOBAL
17434#    define LT_DLGLOBAL		DL_GLOBAL
17435#  else
17436#    define LT_DLGLOBAL		0
17437#  endif
17438#endif
17439
17440/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17441   find out it does not work in some platform. */
17442#ifndef LT_DLLAZY_OR_NOW
17443#  ifdef RTLD_LAZY
17444#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17445#  else
17446#    ifdef DL_LAZY
17447#      define LT_DLLAZY_OR_NOW		DL_LAZY
17448#    else
17449#      ifdef RTLD_NOW
17450#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17451#      else
17452#        ifdef DL_NOW
17453#          define LT_DLLAZY_OR_NOW	DL_NOW
17454#        else
17455#          define LT_DLLAZY_OR_NOW	0
17456#        endif
17457#      endif
17458#    endif
17459#  endif
17460#endif
17461
17462/* When -fvisbility=hidden is used, assume the code has been annotated
17463   correspondingly for the symbols needed.  */
17464#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17465int fnord () __attribute__((visibility("default")));
17466#endif
17467
17468int fnord () { return 42; }
17469int main ()
17470{
17471  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17472  int status = $lt_dlunknown;
17473
17474  if (self)
17475    {
17476      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17477      else
17478        {
17479	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17480          else puts (dlerror ());
17481	}
17482      /* dlclose (self); */
17483    }
17484  else
17485    puts (dlerror ());
17486
17487  return status;
17488}
17489_LT_EOF
17490  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17491  (eval $ac_link) 2>&5
17492  ac_status=$?
17493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17494  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17495    (./conftest; exit; ) >&5 2>/dev/null
17496    lt_status=$?
17497    case x$lt_status in
17498      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17499      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17500      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17501    esac
17502  else :
17503    # compilation failed
17504    lt_cv_dlopen_self=no
17505  fi
17506fi
17507rm -fr conftest*
17508
17509
17510fi
17511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17512$as_echo "$lt_cv_dlopen_self" >&6; }
17513
17514    if test "x$lt_cv_dlopen_self" = xyes; then
17515      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17516      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17517$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17518if ${lt_cv_dlopen_self_static+:} false; then :
17519  $as_echo_n "(cached) " >&6
17520else
17521  	  if test "$cross_compiling" = yes; then :
17522  lt_cv_dlopen_self_static=cross
17523else
17524  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17525  lt_status=$lt_dlunknown
17526  cat > conftest.$ac_ext <<_LT_EOF
17527#line $LINENO "configure"
17528#include "confdefs.h"
17529
17530#if HAVE_DLFCN_H
17531#include <dlfcn.h>
17532#endif
17533
17534#include <stdio.h>
17535
17536#ifdef RTLD_GLOBAL
17537#  define LT_DLGLOBAL		RTLD_GLOBAL
17538#else
17539#  ifdef DL_GLOBAL
17540#    define LT_DLGLOBAL		DL_GLOBAL
17541#  else
17542#    define LT_DLGLOBAL		0
17543#  endif
17544#endif
17545
17546/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17547   find out it does not work in some platform. */
17548#ifndef LT_DLLAZY_OR_NOW
17549#  ifdef RTLD_LAZY
17550#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17551#  else
17552#    ifdef DL_LAZY
17553#      define LT_DLLAZY_OR_NOW		DL_LAZY
17554#    else
17555#      ifdef RTLD_NOW
17556#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17557#      else
17558#        ifdef DL_NOW
17559#          define LT_DLLAZY_OR_NOW	DL_NOW
17560#        else
17561#          define LT_DLLAZY_OR_NOW	0
17562#        endif
17563#      endif
17564#    endif
17565#  endif
17566#endif
17567
17568/* When -fvisbility=hidden is used, assume the code has been annotated
17569   correspondingly for the symbols needed.  */
17570#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17571int fnord () __attribute__((visibility("default")));
17572#endif
17573
17574int fnord () { return 42; }
17575int main ()
17576{
17577  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17578  int status = $lt_dlunknown;
17579
17580  if (self)
17581    {
17582      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17583      else
17584        {
17585	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17586          else puts (dlerror ());
17587	}
17588      /* dlclose (self); */
17589    }
17590  else
17591    puts (dlerror ());
17592
17593  return status;
17594}
17595_LT_EOF
17596  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17597  (eval $ac_link) 2>&5
17598  ac_status=$?
17599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17600  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17601    (./conftest; exit; ) >&5 2>/dev/null
17602    lt_status=$?
17603    case x$lt_status in
17604      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17605      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17606      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17607    esac
17608  else :
17609    # compilation failed
17610    lt_cv_dlopen_self_static=no
17611  fi
17612fi
17613rm -fr conftest*
17614
17615
17616fi
17617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17618$as_echo "$lt_cv_dlopen_self_static" >&6; }
17619    fi
17620
17621    CPPFLAGS="$save_CPPFLAGS"
17622    LDFLAGS="$save_LDFLAGS"
17623    LIBS="$save_LIBS"
17624    ;;
17625  esac
17626
17627  case $lt_cv_dlopen_self in
17628  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17629  *) enable_dlopen_self=unknown ;;
17630  esac
17631
17632  case $lt_cv_dlopen_self_static in
17633  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17634  *) enable_dlopen_self_static=unknown ;;
17635  esac
17636fi
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654striplib=
17655old_striplib=
17656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17657$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17658if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17659  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17660  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17662$as_echo "yes" >&6; }
17663else
17664# FIXME - insert some real tests, host_os isn't really good enough
17665  case $host_os in
17666  darwin*)
17667    if test -n "$STRIP" ; then
17668      striplib="$STRIP -x"
17669      old_striplib="$STRIP -S"
17670      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17671$as_echo "yes" >&6; }
17672    else
17673      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17674$as_echo "no" >&6; }
17675    fi
17676    ;;
17677  *)
17678    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17679$as_echo "no" >&6; }
17680    ;;
17681  esac
17682fi
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695  # Report which library types will actually be built
17696  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17697$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17699$as_echo "$can_build_shared" >&6; }
17700
17701  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17702$as_echo_n "checking whether to build shared libraries... " >&6; }
17703  test "$can_build_shared" = "no" && enable_shared=no
17704
17705  # On AIX, shared libraries and static libraries use the same namespace, and
17706  # are all built from PIC.
17707  case $host_os in
17708  aix3*)
17709    test "$enable_shared" = yes && enable_static=no
17710    if test -n "$RANLIB"; then
17711      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17712      postinstall_cmds='$RANLIB $lib'
17713    fi
17714    ;;
17715
17716  aix[4-9]*)
17717    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17718      test "$enable_shared" = yes && enable_static=no
17719    fi
17720    ;;
17721  esac
17722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17723$as_echo "$enable_shared" >&6; }
17724
17725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17726$as_echo_n "checking whether to build static libraries... " >&6; }
17727  # Make sure either enable_shared or enable_static is yes.
17728  test "$enable_shared" = yes || enable_static=yes
17729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17730$as_echo "$enable_static" >&6; }
17731
17732
17733
17734
17735fi
17736ac_ext=c
17737ac_cpp='$CPP $CPPFLAGS'
17738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17740ac_compiler_gnu=$ac_cv_c_compiler_gnu
17741
17742CC="$lt_save_CC"
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758        ac_config_commands="$ac_config_commands libtool"
17759
17760
17761
17762
17763# Only expand once:
17764
17765
17766        # get libtool's setting of shlibpath_var
17767        eval `grep "^shlibpath_var=[A-Z_]*$" $apr_builddir/libtool`
17768        if test "x$shlibpath_var" = "x"; then
17769            shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
17770        fi
17771    fi
17772    ;;
17773esac
17774
17775
17776# Check whether --with-installbuilddir was given.
17777if test "${with_installbuilddir+set}" = set; then :
17778  withval=$with_installbuilddir;  installbuilddir=$withval
17779else
17780   installbuilddir="${datadir}/build-${APR_MAJOR_VERSION}"
17781fi
17782
17783
17784
17785
17786# Check whether --with-libtool was given.
17787if test "${with_libtool+set}" = set; then :
17788  withval=$with_libtool;  use_libtool=$withval
17789else
17790   use_libtool="yes"
17791fi
17792
17793
17794if test "x$use_libtool" = "xyes"; then
17795      lt_compile='$(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) -o $@ -c $< && touch $@'
17796      LT_VERSION="-version-info `$get_version libtool $version_hdr APR`"
17797      link="\$(LIBTOOL) \$(LTFLAGS) --mode=link \$(LT_LDFLAGS) \$(COMPILE) \$(LT_VERSION) \$(ALL_LDFLAGS) -o \$@"
17798      so_ext='lo'
17799      lib_target='-rpath $(libdir) $(OBJECTS)'
17800      export_lib_target='-rpath \$(libdir) \$(OBJECTS)'
17801else
17802      lt_compile='$(COMPILE) -o $@ -c $<'
17803      link='$(AR) cr $(TARGET_LIB) $(OBJECTS); $(RANLIB) $(TARGET_LIB)'
17804      so_ext='o'
17805      lib_target=''
17806      export_lib_target=''
17807fi
17808
17809case $host in
17810    *-solaris2*)
17811        apr_platform_runtime_link_flag="-R"
17812        ;;
17813    *)
17814        ;;
17815esac
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827nl='
17828'
17829echo "${nl}Check for compiler flags..."
17830
17831
17832case $host in
17833    *os390)
17834        if test "$ac_test_CFLAGS" != set; then
17835
17836  if test "x$CFLAGS" = "x-g"; then
17837    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
17838    CFLAGS=""
17839  else
17840    apr_new_bugger=""
17841    apr_removed=0
17842    for i in $CFLAGS; do
17843      if test "x$i" != "x-g"; then
17844        apr_new_bugger="$apr_new_bugger $i"
17845      else
17846        apr_removed=1
17847      fi
17848    done
17849    if test $apr_removed = "1"; then
17850      test "x$silent" != "xyes" && echo "  removed \"-g\" from CFLAGS"
17851      CFLAGS=$apr_new_bugger
17852    fi
17853  fi
17854
17855        fi
17856        ;;
17857esac
17858
17859# Check whether --enable-debug was given.
17860if test "${enable_debug+set}" = set; then :
17861  enableval=$enable_debug;
17862  if test "x$CFLAGS" = "x"; then
17863    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-g\""
17864    CFLAGS="-g"
17865  else
17866    apr_addto_bugger="-g"
17867    for i in $apr_addto_bugger; do
17868      apr_addto_duplicate="0"
17869      for j in $CFLAGS; do
17870        if test "x$i" = "x$j"; then
17871          apr_addto_duplicate="1"
17872          break
17873        fi
17874      done
17875      if test $apr_addto_duplicate = "0"; then
17876        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
17877        CFLAGS="$CFLAGS $i"
17878      fi
17879    done
17880  fi
17881
17882   if test "$GCC" = "yes"; then
17883
17884  if test "x$CFLAGS" = "x"; then
17885    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wall\""
17886    CFLAGS="-Wall"
17887  else
17888    apr_addto_bugger="-Wall"
17889    for i in $apr_addto_bugger; do
17890      apr_addto_duplicate="0"
17891      for j in $CFLAGS; do
17892        if test "x$i" = "x$j"; then
17893          apr_addto_duplicate="1"
17894          break
17895        fi
17896      done
17897      if test $apr_addto_duplicate = "0"; then
17898        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
17899        CFLAGS="$CFLAGS $i"
17900      fi
17901    done
17902  fi
17903
17904   elif test "$AIX_XLC" = "yes"; then
17905
17906  if test "x$CFLAGS" = "x"; then
17907    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-qfullpath\""
17908    CFLAGS="-qfullpath"
17909  else
17910    apr_addto_bugger="-qfullpath"
17911    for i in $apr_addto_bugger; do
17912      apr_addto_duplicate="0"
17913      for j in $CFLAGS; do
17914        if test "x$i" = "x$j"; then
17915          apr_addto_duplicate="1"
17916          break
17917        fi
17918      done
17919      if test $apr_addto_duplicate = "0"; then
17920        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
17921        CFLAGS="$CFLAGS $i"
17922      fi
17923    done
17924  fi
17925
17926   fi
17927
17928fi
17929
17930# Check whether --enable-maintainer-mode was given.
17931if test "${enable_maintainer_mode+set}" = set; then :
17932  enableval=$enable_maintainer_mode;
17933  if test "x$CFLAGS" = "x"; then
17934    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-g\""
17935    CFLAGS="-g"
17936  else
17937    apr_addto_bugger="-g"
17938    for i in $apr_addto_bugger; do
17939      apr_addto_duplicate="0"
17940      for j in $CFLAGS; do
17941        if test "x$i" = "x$j"; then
17942          apr_addto_duplicate="1"
17943          break
17944        fi
17945      done
17946      if test $apr_addto_duplicate = "0"; then
17947        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
17948        CFLAGS="$CFLAGS $i"
17949      fi
17950    done
17951  fi
17952
17953   if test "$GCC" = "yes"; then
17954
17955  if test "x$CFLAGS" = "x"; then
17956    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations\""
17957    CFLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
17958  else
17959    apr_addto_bugger="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
17960    for i in $apr_addto_bugger; do
17961      apr_addto_duplicate="0"
17962      for j in $CFLAGS; do
17963        if test "x$i" = "x$j"; then
17964          apr_addto_duplicate="1"
17965          break
17966        fi
17967      done
17968      if test $apr_addto_duplicate = "0"; then
17969        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
17970        CFLAGS="$CFLAGS $i"
17971      fi
17972    done
17973  fi
17974
17975   elif test "$AIX_XLC" = "yes"; then
17976
17977  if test "x$CFLAGS" = "x"; then
17978    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro\""
17979    CFLAGS="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
17980  else
17981    apr_addto_bugger="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
17982    for i in $apr_addto_bugger; do
17983      apr_addto_duplicate="0"
17984      for j in $CFLAGS; do
17985        if test "x$i" = "x$j"; then
17986          apr_addto_duplicate="1"
17987          break
17988        fi
17989      done
17990      if test $apr_addto_duplicate = "0"; then
17991        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
17992        CFLAGS="$CFLAGS $i"
17993      fi
17994    done
17995  fi
17996
17997   fi
17998
17999fi
18000
18001# Check whether --enable-profile was given.
18002if test "${enable_profile+set}" = set; then :
18003  enableval=$enable_profile; if test "$GCC" = "yes"; then
18004
18005  if test "x$CFLAGS" = "x"; then
18006    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-pg\""
18007    CFLAGS="-pg"
18008  else
18009    apr_addto_bugger="-pg"
18010    for i in $apr_addto_bugger; do
18011      apr_addto_duplicate="0"
18012      for j in $CFLAGS; do
18013        if test "x$i" = "x$j"; then
18014          apr_addto_duplicate="1"
18015          break
18016        fi
18017      done
18018      if test $apr_addto_duplicate = "0"; then
18019        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
18020        CFLAGS="$CFLAGS $i"
18021      fi
18022    done
18023  fi
18024
18025
18026  if test "x$CFLAGS" = "x-g"; then
18027    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
18028    CFLAGS=""
18029  else
18030    apr_new_bugger=""
18031    apr_removed=0
18032    for i in $CFLAGS; do
18033      if test "x$i" != "x-g"; then
18034        apr_new_bugger="$apr_new_bugger $i"
18035      else
18036        apr_removed=1
18037      fi
18038    done
18039    if test $apr_removed = "1"; then
18040      test "x$silent" != "xyes" && echo "  removed \"-g\" from CFLAGS"
18041      CFLAGS=$apr_new_bugger
18042    fi
18043  fi
18044
18045    if test "$host" = "i586-pc-beos"; then
18046
18047  if test "x$CFLAGS" = "x-O2"; then
18048    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
18049    CFLAGS=""
18050  else
18051    apr_new_bugger=""
18052    apr_removed=0
18053    for i in $CFLAGS; do
18054      if test "x$i" != "x-O2"; then
18055        apr_new_bugger="$apr_new_bugger $i"
18056      else
18057        apr_removed=1
18058      fi
18059    done
18060    if test $apr_removed = "1"; then
18061      test "x$silent" != "xyes" && echo "  removed \"-O2\" from CFLAGS"
18062      CFLAGS=$apr_new_bugger
18063    fi
18064  fi
18065
18066
18067  if test "x$CFLAGS" = "x"; then
18068    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O1\""
18069    CFLAGS="-O1"
18070  else
18071    apr_addto_bugger="-O1"
18072    for i in $apr_addto_bugger; do
18073      apr_addto_duplicate="0"
18074      for j in $CFLAGS; do
18075        if test "x$i" = "x$j"; then
18076          apr_addto_duplicate="1"
18077          break
18078        fi
18079      done
18080      if test $apr_addto_duplicate = "0"; then
18081        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
18082        CFLAGS="$CFLAGS $i"
18083      fi
18084    done
18085  fi
18086
18087
18088  if test "x$LDFLAGS" = "x"; then
18089    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-p\""
18090    LDFLAGS="-p"
18091  else
18092    apr_addto_bugger="-p"
18093    for i in $apr_addto_bugger; do
18094      apr_addto_duplicate="0"
18095      for j in $LDFLAGS; do
18096        if test "x$i" = "x$j"; then
18097          apr_addto_duplicate="1"
18098          break
18099        fi
18100      done
18101      if test $apr_addto_duplicate = "0"; then
18102        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
18103        LDFLAGS="$LDFLAGS $i"
18104      fi
18105    done
18106  fi
18107
18108    fi
18109  fi
18110
18111fi
18112
18113# Check whether --enable-pool-debug was given.
18114if test "${enable_pool_debug+set}" = set; then :
18115  enableval=$enable_pool_debug;  if test -z "$enableval"; then
18116
18117  if test "x$CPPFLAGS" = "x"; then
18118    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAPR_POOL_DEBUG=1\""
18119    CPPFLAGS="-DAPR_POOL_DEBUG=1"
18120  else
18121    apr_addto_bugger="-DAPR_POOL_DEBUG=1"
18122    for i in $apr_addto_bugger; do
18123      apr_addto_duplicate="0"
18124      for j in $CPPFLAGS; do
18125        if test "x$i" = "x$j"; then
18126          apr_addto_duplicate="1"
18127          break
18128        fi
18129      done
18130      if test $apr_addto_duplicate = "0"; then
18131        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18132        CPPFLAGS="$CPPFLAGS $i"
18133      fi
18134    done
18135  fi
18136
18137    elif test ! "$enableval" = "no"; then
18138        apr_pool_debug=1
18139
18140        for i in $enableval
18141        do
18142            flag=0
18143
18144            case $i in
18145            yes)
18146                flag=1
18147                ;;
18148            verbose)
18149                flag=2
18150                ;;
18151            lifetime)
18152                flag=4
18153                ;;
18154            owner)
18155                flag=8
18156                ;;
18157            verbose-alloc)
18158                flag=16
18159                ;;
18160            all)
18161                apr_pool_debug=31
18162                ;;
18163            *)
18164                ;;
18165            esac
18166
18167            if test $flag -gt 0; then
18168                apr_pool_debug=`expr '(' $apr_pool_debug - $apr_pool_debug % \
18169                    '(' $flag '*' 2 ')' ')' + $flag + $apr_pool_debug % $flag`
18170            fi
18171        done
18172
18173
18174  if test "x$CPPFLAGS" = "x"; then
18175    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAPR_POOL_DEBUG=$apr_pool_debug\""
18176    CPPFLAGS="-DAPR_POOL_DEBUG=$apr_pool_debug"
18177  else
18178    apr_addto_bugger="-DAPR_POOL_DEBUG=$apr_pool_debug"
18179    for i in $apr_addto_bugger; do
18180      apr_addto_duplicate="0"
18181      for j in $CPPFLAGS; do
18182        if test "x$i" = "x$j"; then
18183          apr_addto_duplicate="1"
18184          break
18185        fi
18186      done
18187      if test $apr_addto_duplicate = "0"; then
18188        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18189        CPPFLAGS="$CPPFLAGS $i"
18190      fi
18191    done
18192  fi
18193
18194    fi
18195
18196fi
18197
18198
18199if test "$host" = "i586-pc-beos"; then
18200  # Check whether --enable-malloc-debug was given.
18201if test "${enable_malloc_debug+set}" = set; then :
18202  enableval=$enable_malloc_debug;
18203  if test "x$CFLAGS" = "x-O2"; then
18204    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
18205    CFLAGS=""
18206  else
18207    apr_new_bugger=""
18208    apr_removed=0
18209    for i in $CFLAGS; do
18210      if test "x$i" != "x-O2"; then
18211        apr_new_bugger="$apr_new_bugger $i"
18212      else
18213        apr_removed=1
18214      fi
18215    done
18216    if test $apr_removed = "1"; then
18217      test "x$silent" != "xyes" && echo "  removed \"-O2\" from CFLAGS"
18218      CFLAGS=$apr_new_bugger
18219    fi
18220  fi
18221
18222
18223  if test "x$CPPFLAGS" = "x"; then
18224    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-fcheck-memory-usage -D_KERNEL_MODE\""
18225    CPPFLAGS="-fcheck-memory-usage -D_KERNEL_MODE"
18226  else
18227    apr_addto_bugger="-fcheck-memory-usage -D_KERNEL_MODE"
18228    for i in $apr_addto_bugger; do
18229      apr_addto_duplicate="0"
18230      for j in $CPPFLAGS; do
18231        if test "x$i" = "x$j"; then
18232          apr_addto_duplicate="1"
18233          break
18234        fi
18235      done
18236      if test $apr_addto_duplicate = "0"; then
18237        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18238        CPPFLAGS="$CPPFLAGS $i"
18239      fi
18240    done
18241  fi
18242
18243
18244fi
18245 fi
18246
18247# this is the place to put specific options for platform/compiler
18248# combinations
18249case "$host:$CC" in
18250    *-hp-hpux*:cc )
18251
18252  if test "x$CFLAGS" = "x"; then
18253    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Ae +Z\""
18254    CFLAGS="-Ae +Z"
18255  else
18256    apr_addto_bugger="-Ae +Z"
18257    for i in $apr_addto_bugger; do
18258      apr_addto_duplicate="0"
18259      for j in $CFLAGS; do
18260        if test "x$i" = "x$j"; then
18261          apr_addto_duplicate="1"
18262          break
18263        fi
18264      done
18265      if test $apr_addto_duplicate = "0"; then
18266        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
18267        CFLAGS="$CFLAGS $i"
18268      fi
18269    done
18270  fi
18271
18272	case $host in
18273	  ia64-* )
18274	    ;;
18275          * )
18276	    if echo "$CFLAGS " | grep '+DA' >/dev/null; then :
18277	    else
18278
18279  if test "x$CFLAGS" = "x"; then
18280    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"+DAportable\""
18281    CFLAGS="+DAportable"
18282  else
18283    apr_addto_bugger="+DAportable"
18284    for i in $apr_addto_bugger; do
18285      apr_addto_duplicate="0"
18286      for j in $CFLAGS; do
18287        if test "x$i" = "x$j"; then
18288          apr_addto_duplicate="1"
18289          break
18290        fi
18291      done
18292      if test $apr_addto_duplicate = "0"; then
18293        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
18294        CFLAGS="$CFLAGS $i"
18295      fi
18296    done
18297  fi
18298
18299	    fi
18300	    ;;
18301        esac
18302	;;
18303    powerpc-*-beos:mwcc* )
18304
18305  test "x$silent" != "xyes" && echo "  forcing CPP to \"mwcc -E\""
18306  CPP="mwcc -E"
18307
18308
18309  test "x$silent" != "xyes" && echo "  forcing CC to \"mwcc\""
18310  CC="mwcc"
18311
18312
18313  test "x$silent" != "xyes" && echo "  forcing AR to \"ar\""
18314  AR="ar"
18315
18316	;;
18317esac
18318
18319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
18320$as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
18321if ${ap_cv_atomic_builtins+:} false; then :
18322  $as_echo_n "(cached) " >&6
18323else
18324  if test "$cross_compiling" = yes; then :
18325  ap_cv_atomic_builtins=no
18326else
18327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18328/* end confdefs.h.  */
18329
18330int main()
18331{
18332    unsigned long val = 1010, tmp, *mem = &val;
18333
18334    if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
18335        return 1;
18336
18337    tmp = val;
18338
18339    if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
18340        return 1;
18341
18342    if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
18343        return 1;
18344
18345    tmp = 3030;
18346
18347    if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
18348        return 1;
18349
18350    if (__sync_lock_test_and_set(&val, 4040) != 3030)
18351        return 1;
18352
18353    mem = &tmp;
18354
18355    if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
18356        return 1;
18357
18358    __sync_synchronize();
18359
18360    if (mem != &val)
18361        return 1;
18362
18363    return 0;
18364}
18365_ACEOF
18366if ac_fn_c_try_run "$LINENO"; then :
18367  ap_cv_atomic_builtins=yes
18368else
18369  ap_cv_atomic_builtins=no
18370fi
18371rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18372  conftest.$ac_objext conftest.beam conftest.$ac_ext
18373fi
18374
18375fi
18376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_atomic_builtins" >&5
18377$as_echo "$ap_cv_atomic_builtins" >&6; }
18378
18379if test "$ap_cv_atomic_builtins" = "yes"; then
18380
18381$as_echo "#define HAVE_ATOMIC_BUILTINS 1" >>confdefs.h
18382
18383fi
18384
18385case $host in
18386    powerpc-405-*)
18387        # The IBM ppc405cr processor has a bugged stwcx instruction.
18388
18389$as_echo "#define PPC405_ERRATA 1" >>confdefs.h
18390
18391        ;;
18392    *)
18393        ;;
18394esac
18395
18396
18397if test "$GCC" = "yes"; then
18398  MKDEP='$(CC) -MM'
18399else
18400  rm -f conftest.c
18401  cat > conftest.c <<EOF
18402#include <sys/types.h>
18403  int main() { return 0; }
18404EOF
18405  MKDEP="true"
18406  for i in "$CC -MM" "$CC -M" "$CPP -MM" "$CPP -M" "cpp -M"; do
18407    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $i can create proper make dependencies" >&5
18408$as_echo_n "checking if $i can create proper make dependencies... " >&6; }
18409    if $i conftest.c 2>/dev/null | grep 'conftest.o: conftest.c' >/dev/null; then
18410      MKDEP=$i
18411      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18412$as_echo "yes" >&6; }
18413      break;
18414    fi
18415    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18416$as_echo "no" >&6; }
18417  done
18418  rm -f conftest.c
18419fi
18420
18421
18422
18423
18424proc_mutex_is_global=0
18425
18426config_subdirs="none"
18427INSTALL_SUBDIRS="none"
18428OBJECTS_PLATFORM='$(OBJECTS_unix)'
18429
18430case $host in
18431   i386-ibm-aix* | *-ibm-aix[1-2].* | *-ibm-aix3.* | *-ibm-aix4.1 | *-ibm-aix4.1.* | *-ibm-aix4.2 | *-ibm-aix4.2.*)
18432       OSDIR="aix"
18433
18434  if test "x$LDFLAGS" = "x"; then
18435    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-lld\""
18436    LDFLAGS="-lld"
18437  else
18438    apr_addto_bugger="-lld"
18439    for i in $apr_addto_bugger; do
18440      apr_addto_duplicate="0"
18441      for j in $LDFLAGS; do
18442        if test "x$i" = "x$j"; then
18443          apr_addto_duplicate="1"
18444          break
18445        fi
18446      done
18447      if test $apr_addto_duplicate = "0"; then
18448        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
18449        LDFLAGS="$LDFLAGS $i"
18450      fi
18451    done
18452  fi
18453
18454       eolstr="\\n"
18455       OBJECTS_PLATFORM='$(OBJECTS_aix)'
18456       ;;
18457   *-os2*)
18458
18459  if test "x$CPPFLAGS" = "x"; then
18460    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DOS2\""
18461    CPPFLAGS="-DOS2"
18462  else
18463    apr_addto_bugger="-DOS2"
18464    for i in $apr_addto_bugger; do
18465      apr_addto_duplicate="0"
18466      for j in $CPPFLAGS; do
18467        if test "x$i" = "x$j"; then
18468          apr_addto_duplicate="1"
18469          break
18470        fi
18471      done
18472      if test $apr_addto_duplicate = "0"; then
18473        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18474        CPPFLAGS="$CPPFLAGS $i"
18475      fi
18476    done
18477  fi
18478
18479
18480  if test "x$CFLAGS" = "x"; then
18481    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Zmt\""
18482    CFLAGS="-Zmt"
18483  else
18484    apr_addto_bugger="-Zmt"
18485    for i in $apr_addto_bugger; do
18486      apr_addto_duplicate="0"
18487      for j in $CFLAGS; do
18488        if test "x$i" = "x$j"; then
18489          apr_addto_duplicate="1"
18490          break
18491        fi
18492      done
18493      if test $apr_addto_duplicate = "0"; then
18494        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
18495        CFLAGS="$CFLAGS $i"
18496      fi
18497    done
18498  fi
18499
18500       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random in -lbsd" >&5
18501$as_echo_n "checking for random in -lbsd... " >&6; }
18502if ${ac_cv_lib_bsd_random+:} false; then :
18503  $as_echo_n "(cached) " >&6
18504else
18505  ac_check_lib_save_LIBS=$LIBS
18506LIBS="-lbsd  $LIBS"
18507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18508/* end confdefs.h.  */
18509
18510/* Override any GCC internal prototype to avoid an error.
18511   Use char because int might match the return type of a GCC
18512   builtin and then its argument prototype would still apply.  */
18513#ifdef __cplusplus
18514extern "C"
18515#endif
18516char random ();
18517int
18518main ()
18519{
18520return random ();
18521  ;
18522  return 0;
18523}
18524_ACEOF
18525if ac_fn_c_try_link "$LINENO"; then :
18526  ac_cv_lib_bsd_random=yes
18527else
18528  ac_cv_lib_bsd_random=no
18529fi
18530rm -f core conftest.err conftest.$ac_objext \
18531    conftest$ac_exeext conftest.$ac_ext
18532LIBS=$ac_check_lib_save_LIBS
18533fi
18534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_random" >&5
18535$as_echo "$ac_cv_lib_bsd_random" >&6; }
18536if test "x$ac_cv_lib_bsd_random" = xyes; then :
18537  cat >>confdefs.h <<_ACEOF
18538#define HAVE_LIBBSD 1
18539_ACEOF
18540
18541  LIBS="-lbsd $LIBS"
18542
18543fi
18544
18545       OSDIR="os2"
18546       enable_threads="system_threads"
18547       eolstr="\\r\\n"
18548       file_as_socket="0"
18549       proc_mutex_is_global=1
18550       OBJECTS_PLATFORM='$(OBJECTS_os2)'
18551       ;;
18552   *beos*)
18553       OSDIR="beos"
18554
18555  if test "x$CPPFLAGS" = "x"; then
18556    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DBEOS\""
18557    CPPFLAGS="-DBEOS"
18558  else
18559    apr_addto_bugger="-DBEOS"
18560    for i in $apr_addto_bugger; do
18561      apr_addto_duplicate="0"
18562      for j in $CPPFLAGS; do
18563        if test "x$i" = "x$j"; then
18564          apr_addto_duplicate="1"
18565          break
18566        fi
18567      done
18568      if test $apr_addto_duplicate = "0"; then
18569        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18570        CPPFLAGS="$CPPFLAGS $i"
18571      fi
18572    done
18573  fi
18574
18575       enable_threads="system_threads"
18576       native_mmap_emul="1"
18577
18578  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BONE_VERSION in sys/socket.h" >&5
18579$as_echo_n "checking for BONE_VERSION in sys/socket.h... " >&6; }
18580if ${ac_cv_define_BONE_VERSION+:} false; then :
18581  $as_echo_n "(cached) " >&6
18582else
18583
18584    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18585/* end confdefs.h.  */
18586
18587#include <sys/socket.h>
18588#ifdef BONE_VERSION
18589YES_IS_DEFINED
18590#endif
18591
18592_ACEOF
18593if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18594  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
18595  ac_cv_define_BONE_VERSION=yes
18596else
18597  ac_cv_define_BONE_VERSION=no
18598fi
18599rm -f conftest*
18600
18601
18602fi
18603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_BONE_VERSION" >&5
18604$as_echo "$ac_cv_define_BONE_VERSION" >&6; }
18605  if test "$ac_cv_define_BONE_VERSION" = "yes"; then
18606
18607$as_echo "#define HAVE_BONE_VERSION 1" >>confdefs.h
18608
18609  fi
18610
18611       eolstr="\\n"
18612       osver=`uname -r`
18613       proc_mutex_is_global=1
18614       OBJECTS_PLATFORM='$(OBJECTS_beos)'
18615       case $osver in
18616          5.0.4)
18617             file_as_socket="1"
18618             ;;
18619          *)
18620             file_as_socket="0"
18621             ;;
18622       esac
18623       ;;
18624   *os390)
18625       OSDIR="os390"
18626       OBJECTS_PLATFORM='$(OBJECTS_os390)'
18627       eolstr="\\n"
18628       ;;
18629   *os400)
18630       OSDIR="as400"
18631       eolstr="\\n"
18632       ;;
18633   *mingw*)
18634       OSDIR="win32"
18635       enable_threads="system_threads"
18636       eolstr="\\r\\n"
18637       file_as_socket=0
18638       proc_mutex_is_global=1
18639       OBJECTS_PLATFORM='$(OBJECTS_win32)'
18640       ;;
18641   *cygwin*)
18642       OSDIR="unix"
18643       enable_threads="no"
18644       eolstr="\\n"
18645       ;;
18646   *hpux10* )
18647       enable_threads="no"
18648       OSDIR="unix"
18649       eolstr="\\n"
18650       ;;
18651   *)
18652       OSDIR="unix"
18653       eolstr="\\n"
18654       ;;
18655esac
18656
18657
18658
18659# Check whether LFS has explicitly been disabled
18660# Check whether --enable-lfs was given.
18661if test "${enable_lfs+set}" = set; then :
18662  enableval=$enable_lfs; apr_lfs_choice=$enableval
18663else
18664  apr_lfs_choice=yes
18665fi
18666
18667
18668if test "$apr_lfs_choice" = "yes"; then
18669   # Check whether the transitional LFS API is sufficient
18670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable -D_LARGEFILE64_SOURCE" >&5
18671$as_echo_n "checking whether to enable -D_LARGEFILE64_SOURCE... " >&6; }
18672if ${apr_cv_use_lfs64+:} false; then :
18673  $as_echo_n "(cached) " >&6
18674else
18675
18676   apr_save_CPPFLAGS=$CPPFLAGS
18677   CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
18678   if test "$cross_compiling" = yes; then :
18679  apr_cv_use_lfs64=no
18680else
18681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18682/* end confdefs.h.  */
18683
18684#include <sys/types.h>
18685#include <sys/stat.h>
18686#include <fcntl.h>
18687#include <stdlib.h>
18688#include <stdio.h>
18689#include <unistd.h>
18690
18691void main(void)
18692{
18693    int fd, ret = 0;
18694    struct stat64 st;
18695    off64_t off = 4242;
18696
18697    if (sizeof(off64_t) != 8 || sizeof(off_t) != 4)
18698       exit(1);
18699    if ((fd = open("conftest.lfs", O_LARGEFILE|O_CREAT|O_WRONLY, 0644)) < 0)
18700       exit(2);
18701    if (ftruncate64(fd, off) != 0)
18702       ret = 3;
18703    else if (fstat64(fd, &st) != 0 || st.st_size != off)
18704       ret = 4;
18705    else if (lseek64(fd, off, SEEK_SET) != off)
18706       ret = 5;
18707    else if (close(fd) != 0)
18708       ret = 6;
18709    else if (lstat64("conftest.lfs", &st) != 0 || st.st_size != off)
18710       ret = 7;
18711    else if (stat64("conftest.lfs", &st) != 0 || st.st_size != off)
18712       ret = 8;
18713    unlink("conftest.lfs");
18714
18715    exit(ret);
18716}
18717_ACEOF
18718if ac_fn_c_try_run "$LINENO"; then :
18719  apr_cv_use_lfs64=yes
18720else
18721  apr_cv_use_lfs64=no
18722fi
18723rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18724  conftest.$ac_objext conftest.beam conftest.$ac_ext
18725fi
18726
18727   CPPFLAGS=$apr_save_CPPFLAGS
18728fi
18729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_use_lfs64" >&5
18730$as_echo "$apr_cv_use_lfs64" >&6; }
18731   if test "$apr_cv_use_lfs64" = "yes"; then
18732
18733  if test "x$CPPFLAGS" = "x"; then
18734    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_LARGEFILE64_SOURCE\""
18735    CPPFLAGS="-D_LARGEFILE64_SOURCE"
18736  else
18737    apr_addto_bugger="-D_LARGEFILE64_SOURCE"
18738    for i in $apr_addto_bugger; do
18739      apr_addto_duplicate="0"
18740      for j in $CPPFLAGS; do
18741        if test "x$i" = "x$j"; then
18742          apr_addto_duplicate="1"
18743          break
18744        fi
18745      done
18746      if test $apr_addto_duplicate = "0"; then
18747        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18748        CPPFLAGS="$CPPFLAGS $i"
18749      fi
18750    done
18751  fi
18752
18753   fi
18754fi
18755
18756# Check whether --enable-nonportable-atomics was given.
18757if test "${enable_nonportable_atomics+set}" = set; then :
18758  enableval=$enable_nonportable_atomics; if test $enableval = yes; then
18759   force_generic_atomics=no
18760 else
18761   force_generic_atomics=yes
18762 fi
18763
18764else
18765  case $host_cpu in
18766   i[456]86) force_generic_atomics=yes ;;
18767   *) force_generic_atomics=no ;;
18768esac
18769
18770fi
18771
18772
18773if test $force_generic_atomics = yes; then
18774
18775$as_echo "#define USE_ATOMICS_GENERIC 1" >>confdefs.h
18776
18777fi
18778
18779
18780
18781
18782
18783# For some platforms we need a version string which allows easy numeric
18784# comparisons.
18785case $host in
18786    *freebsd*)
18787        if test -x /sbin/sysctl; then
18788            os_version=`/sbin/sysctl -n kern.osreldate`
18789        else
18790            os_version=000000
18791        fi
18792        ;;
18793    *linux*)
18794        os_version=`uname -r | sed -e 's/\(.\)\.\(.\)\.\(.\).*/\1\2\3/'`
18795        ;;
18796    *os390)
18797        os_version=`uname -r | sed -e 's/\.//g'`
18798        ;;
18799    *)
18800        os_version=OS_VERSION_IS_NOT_SET
18801        ;;
18802esac
18803
18804echo "${nl}Checking for libraries..."
18805
18806case $host in
18807   *mingw*)
18808
18809  if test "x$LIBS" = "x"; then
18810    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock\""
18811    LIBS="-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock"
18812  else
18813    apr_addto_bugger="-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock"
18814    for i in $apr_addto_bugger; do
18815      apr_addto_duplicate="0"
18816      for j in $LIBS; do
18817        if test "x$i" = "x$j"; then
18818          apr_addto_duplicate="1"
18819          break
18820        fi
18821      done
18822      if test $apr_addto_duplicate = "0"; then
18823        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
18824        LIBS="$LIBS $i"
18825      fi
18826    done
18827  fi
18828
18829      ac_cv_func_CreateFileMapping=yes
18830      ;;
18831   *)
18832      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
18833$as_echo_n "checking for library containing gethostbyname... " >&6; }
18834if ${ac_cv_search_gethostbyname+:} false; then :
18835  $as_echo_n "(cached) " >&6
18836else
18837  ac_func_search_save_LIBS=$LIBS
18838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18839/* end confdefs.h.  */
18840
18841/* Override any GCC internal prototype to avoid an error.
18842   Use char because int might match the return type of a GCC
18843   builtin and then its argument prototype would still apply.  */
18844#ifdef __cplusplus
18845extern "C"
18846#endif
18847char gethostbyname ();
18848int
18849main ()
18850{
18851return gethostbyname ();
18852  ;
18853  return 0;
18854}
18855_ACEOF
18856for ac_lib in '' nsl; do
18857  if test -z "$ac_lib"; then
18858    ac_res="none required"
18859  else
18860    ac_res=-l$ac_lib
18861    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18862  fi
18863  if ac_fn_c_try_link "$LINENO"; then :
18864  ac_cv_search_gethostbyname=$ac_res
18865fi
18866rm -f core conftest.err conftest.$ac_objext \
18867    conftest$ac_exeext
18868  if ${ac_cv_search_gethostbyname+:} false; then :
18869  break
18870fi
18871done
18872if ${ac_cv_search_gethostbyname+:} false; then :
18873
18874else
18875  ac_cv_search_gethostbyname=no
18876fi
18877rm conftest.$ac_ext
18878LIBS=$ac_func_search_save_LIBS
18879fi
18880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
18881$as_echo "$ac_cv_search_gethostbyname" >&6; }
18882ac_res=$ac_cv_search_gethostbyname
18883if test "$ac_res" != no; then :
18884  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18885
18886fi
18887
18888      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
18889$as_echo_n "checking for library containing gethostname... " >&6; }
18890if ${ac_cv_search_gethostname+:} false; then :
18891  $as_echo_n "(cached) " >&6
18892else
18893  ac_func_search_save_LIBS=$LIBS
18894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18895/* end confdefs.h.  */
18896
18897/* Override any GCC internal prototype to avoid an error.
18898   Use char because int might match the return type of a GCC
18899   builtin and then its argument prototype would still apply.  */
18900#ifdef __cplusplus
18901extern "C"
18902#endif
18903char gethostname ();
18904int
18905main ()
18906{
18907return gethostname ();
18908  ;
18909  return 0;
18910}
18911_ACEOF
18912for ac_lib in '' nsl; do
18913  if test -z "$ac_lib"; then
18914    ac_res="none required"
18915  else
18916    ac_res=-l$ac_lib
18917    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18918  fi
18919  if ac_fn_c_try_link "$LINENO"; then :
18920  ac_cv_search_gethostname=$ac_res
18921fi
18922rm -f core conftest.err conftest.$ac_objext \
18923    conftest$ac_exeext
18924  if ${ac_cv_search_gethostname+:} false; then :
18925  break
18926fi
18927done
18928if ${ac_cv_search_gethostname+:} false; then :
18929
18930else
18931  ac_cv_search_gethostname=no
18932fi
18933rm conftest.$ac_ext
18934LIBS=$ac_func_search_save_LIBS
18935fi
18936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
18937$as_echo "$ac_cv_search_gethostname" >&6; }
18938ac_res=$ac_cv_search_gethostname
18939if test "$ac_res" != no; then :
18940  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18941
18942fi
18943
18944      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
18945$as_echo_n "checking for library containing socket... " >&6; }
18946if ${ac_cv_search_socket+:} false; then :
18947  $as_echo_n "(cached) " >&6
18948else
18949  ac_func_search_save_LIBS=$LIBS
18950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18951/* end confdefs.h.  */
18952
18953/* Override any GCC internal prototype to avoid an error.
18954   Use char because int might match the return type of a GCC
18955   builtin and then its argument prototype would still apply.  */
18956#ifdef __cplusplus
18957extern "C"
18958#endif
18959char socket ();
18960int
18961main ()
18962{
18963return socket ();
18964  ;
18965  return 0;
18966}
18967_ACEOF
18968for ac_lib in '' socket; do
18969  if test -z "$ac_lib"; then
18970    ac_res="none required"
18971  else
18972    ac_res=-l$ac_lib
18973    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18974  fi
18975  if ac_fn_c_try_link "$LINENO"; then :
18976  ac_cv_search_socket=$ac_res
18977fi
18978rm -f core conftest.err conftest.$ac_objext \
18979    conftest$ac_exeext
18980  if ${ac_cv_search_socket+:} false; then :
18981  break
18982fi
18983done
18984if ${ac_cv_search_socket+:} false; then :
18985
18986else
18987  ac_cv_search_socket=no
18988fi
18989rm conftest.$ac_ext
18990LIBS=$ac_func_search_save_LIBS
18991fi
18992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
18993$as_echo "$ac_cv_search_socket" >&6; }
18994ac_res=$ac_cv_search_socket
18995if test "$ac_res" != no; then :
18996  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18997
18998fi
18999
19000      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19001$as_echo_n "checking for library containing crypt... " >&6; }
19002if ${ac_cv_search_crypt+:} false; then :
19003  $as_echo_n "(cached) " >&6
19004else
19005  ac_func_search_save_LIBS=$LIBS
19006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19007/* end confdefs.h.  */
19008
19009/* Override any GCC internal prototype to avoid an error.
19010   Use char because int might match the return type of a GCC
19011   builtin and then its argument prototype would still apply.  */
19012#ifdef __cplusplus
19013extern "C"
19014#endif
19015char crypt ();
19016int
19017main ()
19018{
19019return crypt ();
19020  ;
19021  return 0;
19022}
19023_ACEOF
19024for ac_lib in '' crypt ufc; do
19025  if test -z "$ac_lib"; then
19026    ac_res="none required"
19027  else
19028    ac_res=-l$ac_lib
19029    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19030  fi
19031  if ac_fn_c_try_link "$LINENO"; then :
19032  ac_cv_search_crypt=$ac_res
19033fi
19034rm -f core conftest.err conftest.$ac_objext \
19035    conftest$ac_exeext
19036  if ${ac_cv_search_crypt+:} false; then :
19037  break
19038fi
19039done
19040if ${ac_cv_search_crypt+:} false; then :
19041
19042else
19043  ac_cv_search_crypt=no
19044fi
19045rm conftest.$ac_ext
19046LIBS=$ac_func_search_save_LIBS
19047fi
19048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19049$as_echo "$ac_cv_search_crypt" >&6; }
19050ac_res=$ac_cv_search_crypt
19051if test "$ac_res" != no; then :
19052  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19053
19054fi
19055
19056      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltruerand" >&5
19057$as_echo_n "checking for main in -ltruerand... " >&6; }
19058if ${ac_cv_lib_truerand_main+:} false; then :
19059  $as_echo_n "(cached) " >&6
19060else
19061  ac_check_lib_save_LIBS=$LIBS
19062LIBS="-ltruerand  $LIBS"
19063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19064/* end confdefs.h.  */
19065
19066
19067int
19068main ()
19069{
19070return main ();
19071  ;
19072  return 0;
19073}
19074_ACEOF
19075if ac_fn_c_try_link "$LINENO"; then :
19076  ac_cv_lib_truerand_main=yes
19077else
19078  ac_cv_lib_truerand_main=no
19079fi
19080rm -f core conftest.err conftest.$ac_objext \
19081    conftest$ac_exeext conftest.$ac_ext
19082LIBS=$ac_check_lib_save_LIBS
19083fi
19084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_truerand_main" >&5
19085$as_echo "$ac_cv_lib_truerand_main" >&6; }
19086if test "x$ac_cv_lib_truerand_main" = xyes; then :
19087  cat >>confdefs.h <<_ACEOF
19088#define HAVE_LIBTRUERAND 1
19089_ACEOF
19090
19091  LIBS="-ltruerand $LIBS"
19092
19093fi
19094
19095      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing modf" >&5
19096$as_echo_n "checking for library containing modf... " >&6; }
19097if ${ac_cv_search_modf+:} false; then :
19098  $as_echo_n "(cached) " >&6
19099else
19100  ac_func_search_save_LIBS=$LIBS
19101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19102/* end confdefs.h.  */
19103
19104/* Override any GCC internal prototype to avoid an error.
19105   Use char because int might match the return type of a GCC
19106   builtin and then its argument prototype would still apply.  */
19107#ifdef __cplusplus
19108extern "C"
19109#endif
19110char modf ();
19111int
19112main ()
19113{
19114return modf ();
19115  ;
19116  return 0;
19117}
19118_ACEOF
19119for ac_lib in '' m; do
19120  if test -z "$ac_lib"; then
19121    ac_res="none required"
19122  else
19123    ac_res=-l$ac_lib
19124    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19125  fi
19126  if ac_fn_c_try_link "$LINENO"; then :
19127  ac_cv_search_modf=$ac_res
19128fi
19129rm -f core conftest.err conftest.$ac_objext \
19130    conftest$ac_exeext
19131  if ${ac_cv_search_modf+:} false; then :
19132  break
19133fi
19134done
19135if ${ac_cv_search_modf+:} false; then :
19136
19137else
19138  ac_cv_search_modf=no
19139fi
19140rm conftest.$ac_ext
19141LIBS=$ac_func_search_save_LIBS
19142fi
19143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_modf" >&5
19144$as_echo "$ac_cv_search_modf" >&6; }
19145ac_res=$ac_cv_search_modf
19146if test "$ac_res" != no; then :
19147  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19148
19149fi
19150
19151       ;;
19152esac
19153
19154echo "${nl}Checking for Threads..."
19155
19156if test -z "$enable_threads"; then
19157	# Check whether --enable-threads was given.
19158if test "${enable_threads+set}" = set; then :
19159  enableval=$enable_threads;  enable_threads=$enableval
19160else
19161
19162  if test "$GCC" = "yes"; then
19163    SAVE_FL="$CPPFLAGS"
19164    CPPFLAGS="$CPPFLAGS -w"
19165    for ac_header in pthread.h
19166do :
19167  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19168if test "x$ac_cv_header_pthread_h" = xyes; then :
19169  cat >>confdefs.h <<_ACEOF
19170#define HAVE_PTHREAD_H 1
19171_ACEOF
19172   enable_threads="pthread"
19173else
19174    enable_threads="no"
19175fi
19176
19177done
19178
19179    CPPFLAGS="$SAVE_FL"
19180  else
19181    for ac_header in pthread.h
19182do :
19183  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19184if test "x$ac_cv_header_pthread_h" = xyes; then :
19185  cat >>confdefs.h <<_ACEOF
19186#define HAVE_PTHREAD_H 1
19187_ACEOF
19188   enable_threads="pthread"
19189else
19190    enable_threads="no"
19191fi
19192
19193done
19194
19195  fi
19196
19197fi
19198
19199fi
19200
19201if test "$enable_threads" = "no"; then
19202    threads="0"
19203    pthreadh="0"
19204    pthreadser="0"
19205else
19206    if test "$enable_threads" = "pthread"; then
19207# We have specified pthreads for our threading library, just make sure
19208# that we have everything we need
19209
19210  apr_pthsv_CFLAGS="$CFLAGS"
19211  apr_pthsv_LIBS="$LIBS"
19212
19213
19214
19215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5
19216$as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
19217if ${apr_cv_pthreads_cflags+:} false; then :
19218  $as_echo_n "(cached) " >&6
19219else
19220  apr_ptc_cflags=$CFLAGS
19221 for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
19222    CFLAGS=$apr_ptc_cflags
19223    test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
19224
19225if test "$cross_compiling" = yes; then :
19226  apr_p_t_r=no
19227else
19228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19229/* end confdefs.h.  */
19230
19231#include <pthread.h>
19232#include <stddef.h>
19233
19234void *thread_routine(void *data) {
19235    return data;
19236}
19237
19238int main() {
19239    pthread_t thd;
19240    pthread_mutexattr_t mattr;
19241    pthread_once_t once_init = PTHREAD_ONCE_INIT;
19242    int data = 1;
19243    pthread_mutexattr_init(&mattr);
19244    return pthread_create(&thd, NULL, thread_routine, &data);
19245}
19246_ACEOF
19247if ac_fn_c_try_run "$LINENO"; then :
19248  apr_p_t_r=yes
19249else
19250  apr_p_t_r=no
19251fi
19252rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19253  conftest.$ac_objext conftest.beam conftest.$ac_ext
19254fi
19255
19256
19257if test $apr_p_t_r = yes; then
19258
19259      apr_cv_pthreads_cflags="$flag"
19260      break
19261
19262fi
19263
19264
19265 done
19266 CFLAGS=$apr_ptc_cflags
19267
19268fi
19269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5
19270$as_echo "$apr_cv_pthreads_cflags" >&6; }
19271
19272if test -n "$apr_cv_pthreads_cflags"; then
19273   pthreads_working=yes
19274   if test "x$apr_cv_pthreads_cflags" != "xnone"; then
19275
19276  if test "x$CFLAGS" = "x"; then
19277    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"$apr_cv_pthreads_cflags\""
19278    CFLAGS="$apr_cv_pthreads_cflags"
19279  else
19280    apr_addto_bugger="$apr_cv_pthreads_cflags"
19281    for i in $apr_addto_bugger; do
19282      apr_addto_duplicate="0"
19283      for j in $CFLAGS; do
19284        if test "x$i" = "x$j"; then
19285          apr_addto_duplicate="1"
19286          break
19287        fi
19288      done
19289      if test $apr_addto_duplicate = "0"; then
19290        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
19291        CFLAGS="$CFLAGS $i"
19292      fi
19293    done
19294  fi
19295
19296   fi
19297fi
19298
19299# The CFLAGS may or may not be sufficient to ensure that libapr
19300# depends on the pthreads library: some versions of libtool
19301# drop -pthread when passed on the link line; some versions of
19302# gcc ignore -pthread when linking a shared object.  So always
19303# try and add the relevant library to LIBS too.
19304
19305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5
19306$as_echo_n "checking for LIBS needed for pthreads... " >&6; }
19307if ${apr_cv_pthreads_lib+:} false; then :
19308  $as_echo_n "(cached) " >&6
19309else
19310
19311  apr_ptc_libs=$LIBS
19312  for lib in -lpthread -lpthreads -lc_r; do
19313    LIBS="$apr_ptc_libs $lib"
19314
19315if test "$cross_compiling" = yes; then :
19316  apr_p_t_r=no
19317else
19318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19319/* end confdefs.h.  */
19320
19321#include <pthread.h>
19322#include <stddef.h>
19323
19324void *thread_routine(void *data) {
19325    return data;
19326}
19327
19328int main() {
19329    pthread_t thd;
19330    pthread_mutexattr_t mattr;
19331    pthread_once_t once_init = PTHREAD_ONCE_INIT;
19332    int data = 1;
19333    pthread_mutexattr_init(&mattr);
19334    return pthread_create(&thd, NULL, thread_routine, &data);
19335}
19336_ACEOF
19337if ac_fn_c_try_run "$LINENO"; then :
19338  apr_p_t_r=yes
19339else
19340  apr_p_t_r=no
19341fi
19342rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19343  conftest.$ac_objext conftest.beam conftest.$ac_ext
19344fi
19345
19346
19347if test $apr_p_t_r = yes; then
19348
19349      apr_cv_pthreads_lib=$lib
19350      break
19351
19352fi
19353
19354
19355  done
19356  LIBS=$apr_ptc_libs
19357
19358fi
19359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5
19360$as_echo "$apr_cv_pthreads_lib" >&6; }
19361
19362if test -n "$apr_cv_pthreads_lib"; then
19363   pthreads_working=yes
19364
19365  if test "x$LIBS" = "x"; then
19366    test "x$silent" != "xyes" && echo "  setting LIBS to \"$apr_cv_pthreads_lib\""
19367    LIBS="$apr_cv_pthreads_lib"
19368  else
19369    apr_addto_bugger="$apr_cv_pthreads_lib"
19370    for i in $apr_addto_bugger; do
19371      apr_addto_duplicate="0"
19372      for j in $LIBS; do
19373        if test "x$i" = "x$j"; then
19374          apr_addto_duplicate="1"
19375          break
19376        fi
19377      done
19378      if test $apr_addto_duplicate = "0"; then
19379        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
19380        LIBS="$LIBS $i"
19381      fi
19382    done
19383  fi
19384
19385fi
19386
19387if test "$pthreads_working" = "yes"; then
19388  threads_result="POSIX Threads found"
19389else
19390  threads_result="POSIX Threads not found"
19391fi
19392
19393
19394  if test "$GCC" = "yes"; then
19395    SAVE_FL="$CPPFLAGS"
19396    CPPFLAGS="$CPPFLAGS -w"
19397    for ac_header in pthread.h
19398do :
19399  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19400if test "x$ac_cv_header_pthread_h" = xyes; then :
19401  cat >>confdefs.h <<_ACEOF
19402#define HAVE_PTHREAD_H 1
19403_ACEOF
19404
19405          threads="1"
19406          pthreadh="1"
19407          pthreadser="1"
19408else
19409
19410          threads="0"
19411          pthreadh="0"
19412          pthreadser="0"
19413
19414  CFLAGS="$apr_pthsv_CFLAGS"
19415  LIBS="$apr_pthsv_LIBS"
19416
19417fi
19418
19419done
19420
19421    CPPFLAGS="$SAVE_FL"
19422  else
19423    for ac_header in pthread.h
19424do :
19425  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19426if test "x$ac_cv_header_pthread_h" = xyes; then :
19427  cat >>confdefs.h <<_ACEOF
19428#define HAVE_PTHREAD_H 1
19429_ACEOF
19430
19431          threads="1"
19432          pthreadh="1"
19433          pthreadser="1"
19434else
19435
19436          threads="0"
19437          pthreadh="0"
19438          pthreadser="0"
19439
19440  CFLAGS="$apr_pthsv_CFLAGS"
19441  LIBS="$apr_pthsv_LIBS"
19442
19443fi
19444
19445done
19446
19447  fi
19448
19449    elif test "$enable_threads" = "system_threads"; then
19450        threads="1"
19451        pthreadh="0"
19452        pthreadser="0"
19453    else
19454# We basically specified that we wanted threads, but not how to implement
19455# them.  In this case, just look for pthreads.  In the future, we can check
19456# for other threading libraries as well.
19457
19458  apr_pthsv_CFLAGS="$CFLAGS"
19459  apr_pthsv_LIBS="$LIBS"
19460
19461
19462
19463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5
19464$as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
19465if ${apr_cv_pthreads_cflags+:} false; then :
19466  $as_echo_n "(cached) " >&6
19467else
19468  apr_ptc_cflags=$CFLAGS
19469 for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
19470    CFLAGS=$apr_ptc_cflags
19471    test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
19472
19473if test "$cross_compiling" = yes; then :
19474  apr_p_t_r=no
19475else
19476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19477/* end confdefs.h.  */
19478
19479#include <pthread.h>
19480#include <stddef.h>
19481
19482void *thread_routine(void *data) {
19483    return data;
19484}
19485
19486int main() {
19487    pthread_t thd;
19488    pthread_mutexattr_t mattr;
19489    pthread_once_t once_init = PTHREAD_ONCE_INIT;
19490    int data = 1;
19491    pthread_mutexattr_init(&mattr);
19492    return pthread_create(&thd, NULL, thread_routine, &data);
19493}
19494_ACEOF
19495if ac_fn_c_try_run "$LINENO"; then :
19496  apr_p_t_r=yes
19497else
19498  apr_p_t_r=no
19499fi
19500rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19501  conftest.$ac_objext conftest.beam conftest.$ac_ext
19502fi
19503
19504
19505if test $apr_p_t_r = yes; then
19506
19507      apr_cv_pthreads_cflags="$flag"
19508      break
19509
19510fi
19511
19512
19513 done
19514 CFLAGS=$apr_ptc_cflags
19515
19516fi
19517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5
19518$as_echo "$apr_cv_pthreads_cflags" >&6; }
19519
19520if test -n "$apr_cv_pthreads_cflags"; then
19521   pthreads_working=yes
19522   if test "x$apr_cv_pthreads_cflags" != "xnone"; then
19523
19524  if test "x$CFLAGS" = "x"; then
19525    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"$apr_cv_pthreads_cflags\""
19526    CFLAGS="$apr_cv_pthreads_cflags"
19527  else
19528    apr_addto_bugger="$apr_cv_pthreads_cflags"
19529    for i in $apr_addto_bugger; do
19530      apr_addto_duplicate="0"
19531      for j in $CFLAGS; do
19532        if test "x$i" = "x$j"; then
19533          apr_addto_duplicate="1"
19534          break
19535        fi
19536      done
19537      if test $apr_addto_duplicate = "0"; then
19538        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
19539        CFLAGS="$CFLAGS $i"
19540      fi
19541    done
19542  fi
19543
19544   fi
19545fi
19546
19547# The CFLAGS may or may not be sufficient to ensure that libapr
19548# depends on the pthreads library: some versions of libtool
19549# drop -pthread when passed on the link line; some versions of
19550# gcc ignore -pthread when linking a shared object.  So always
19551# try and add the relevant library to LIBS too.
19552
19553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5
19554$as_echo_n "checking for LIBS needed for pthreads... " >&6; }
19555if ${apr_cv_pthreads_lib+:} false; then :
19556  $as_echo_n "(cached) " >&6
19557else
19558
19559  apr_ptc_libs=$LIBS
19560  for lib in -lpthread -lpthreads -lc_r; do
19561    LIBS="$apr_ptc_libs $lib"
19562
19563if test "$cross_compiling" = yes; then :
19564  apr_p_t_r=no
19565else
19566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19567/* end confdefs.h.  */
19568
19569#include <pthread.h>
19570#include <stddef.h>
19571
19572void *thread_routine(void *data) {
19573    return data;
19574}
19575
19576int main() {
19577    pthread_t thd;
19578    pthread_mutexattr_t mattr;
19579    pthread_once_t once_init = PTHREAD_ONCE_INIT;
19580    int data = 1;
19581    pthread_mutexattr_init(&mattr);
19582    return pthread_create(&thd, NULL, thread_routine, &data);
19583}
19584_ACEOF
19585if ac_fn_c_try_run "$LINENO"; then :
19586  apr_p_t_r=yes
19587else
19588  apr_p_t_r=no
19589fi
19590rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19591  conftest.$ac_objext conftest.beam conftest.$ac_ext
19592fi
19593
19594
19595if test $apr_p_t_r = yes; then
19596
19597      apr_cv_pthreads_lib=$lib
19598      break
19599
19600fi
19601
19602
19603  done
19604  LIBS=$apr_ptc_libs
19605
19606fi
19607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5
19608$as_echo "$apr_cv_pthreads_lib" >&6; }
19609
19610if test -n "$apr_cv_pthreads_lib"; then
19611   pthreads_working=yes
19612
19613  if test "x$LIBS" = "x"; then
19614    test "x$silent" != "xyes" && echo "  setting LIBS to \"$apr_cv_pthreads_lib\""
19615    LIBS="$apr_cv_pthreads_lib"
19616  else
19617    apr_addto_bugger="$apr_cv_pthreads_lib"
19618    for i in $apr_addto_bugger; do
19619      apr_addto_duplicate="0"
19620      for j in $LIBS; do
19621        if test "x$i" = "x$j"; then
19622          apr_addto_duplicate="1"
19623          break
19624        fi
19625      done
19626      if test $apr_addto_duplicate = "0"; then
19627        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
19628        LIBS="$LIBS $i"
19629      fi
19630    done
19631  fi
19632
19633fi
19634
19635if test "$pthreads_working" = "yes"; then
19636  threads_result="POSIX Threads found"
19637else
19638  threads_result="POSIX Threads not found"
19639fi
19640
19641
19642  if test "$GCC" = "yes"; then
19643    SAVE_FL="$CPPFLAGS"
19644    CPPFLAGS="$CPPFLAGS -w"
19645    for ac_header in pthread.h
19646do :
19647  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19648if test "x$ac_cv_header_pthread_h" = xyes; then :
19649  cat >>confdefs.h <<_ACEOF
19650#define HAVE_PTHREAD_H 1
19651_ACEOF
19652
19653          threads="1"
19654          pthreadh="1"
19655          pthreadser="1"
19656else
19657
19658          threads="0"
19659          pthreadser="0"
19660          pthreadh="0"
19661
19662  CFLAGS="$apr_pthsv_CFLAGS"
19663  LIBS="$apr_pthsv_LIBS"
19664
19665fi
19666
19667done
19668
19669    CPPFLAGS="$SAVE_FL"
19670  else
19671    for ac_header in pthread.h
19672do :
19673  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19674if test "x$ac_cv_header_pthread_h" = xyes; then :
19675  cat >>confdefs.h <<_ACEOF
19676#define HAVE_PTHREAD_H 1
19677_ACEOF
19678
19679          threads="1"
19680          pthreadh="1"
19681          pthreadser="1"
19682else
19683
19684          threads="0"
19685          pthreadser="0"
19686          pthreadh="0"
19687
19688  CFLAGS="$apr_pthsv_CFLAGS"
19689  LIBS="$apr_pthsv_LIBS"
19690
19691fi
19692
19693done
19694
19695  fi
19696
19697    fi
19698    if test "$pthreadh" = "1"; then
19699
19700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_getspecific takes two arguments" >&5
19701$as_echo_n "checking whether pthread_getspecific takes two arguments... " >&6; }
19702if ${ac_cv_pthread_getspecific_two_args+:} false; then :
19703  $as_echo_n "(cached) " >&6
19704else
19705
19706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19707/* end confdefs.h.  */
19708
19709#include <pthread.h>
19710
19711int
19712main ()
19713{
19714
19715pthread_key_t key;
19716void *tmp;
19717pthread_getspecific(key,&tmp);
19718
19719  ;
19720  return 0;
19721}
19722_ACEOF
19723if ac_fn_c_try_compile "$LINENO"; then :
19724
19725    ac_cv_pthread_getspecific_two_args=yes
19726
19727else
19728
19729    ac_cv_pthread_getspecific_two_args=no
19730
19731fi
19732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19733
19734fi
19735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_getspecific_two_args" >&5
19736$as_echo "$ac_cv_pthread_getspecific_two_args" >&6; }
19737
19738if test "$ac_cv_pthread_getspecific_two_args" = "yes"; then
19739
19740$as_echo "#define PTHREAD_GETSPECIFIC_TAKES_TWO_ARGS 1" >>confdefs.h
19741
19742fi
19743
19744
19745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_attr_getdetachstate takes one argument" >&5
19746$as_echo_n "checking whether pthread_attr_getdetachstate takes one argument... " >&6; }
19747if ${ac_cv_pthread_attr_getdetachstate_one_arg+:} false; then :
19748  $as_echo_n "(cached) " >&6
19749else
19750
19751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19752/* end confdefs.h.  */
19753
19754#include <pthread.h>
19755
19756int
19757main ()
19758{
19759
19760pthread_attr_t *attr;
19761pthread_attr_getdetachstate(attr);
19762
19763  ;
19764  return 0;
19765}
19766_ACEOF
19767if ac_fn_c_try_compile "$LINENO"; then :
19768
19769    ac_cv_pthread_attr_getdetachstate_one_arg=yes
19770
19771else
19772
19773    ac_cv_pthread_attr_getdetachstate_one_arg=no
19774
19775fi
19776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19777
19778fi
19779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_attr_getdetachstate_one_arg" >&5
19780$as_echo "$ac_cv_pthread_attr_getdetachstate_one_arg" >&6; }
19781
19782if test "$ac_cv_pthread_attr_getdetachstate_one_arg" = "yes"; then
19783
19784$as_echo "#define PTHREAD_ATTR_GETDETACHSTATE_TAKES_ONE_ARG 1" >>confdefs.h
19785
19786fi
19787
19788
19789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutex support" >&5
19790$as_echo_n "checking for recursive mutex support... " >&6; }
19791if ${apr_cv_mutex_recursive+:} false; then :
19792  $as_echo_n "(cached) " >&6
19793else
19794  if test "$cross_compiling" = yes; then :
19795  apr_cv_mutex_recursive=no
19796else
19797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19798/* end confdefs.h.  */
19799#include <sys/types.h>
19800#include <pthread.h>
19801#include <stdlib.h>
19802
19803int main() {
19804    pthread_mutexattr_t attr;
19805    pthread_mutex_t m;
19806
19807    exit (pthread_mutexattr_init(&attr)
19808          || pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
19809          || pthread_mutex_init(&m, &attr));
19810}
19811_ACEOF
19812if ac_fn_c_try_run "$LINENO"; then :
19813  apr_cv_mutex_recursive=yes
19814else
19815  apr_cv_mutex_recursive=no
19816fi
19817rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19818  conftest.$ac_objext conftest.beam conftest.$ac_ext
19819fi
19820
19821fi
19822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_recursive" >&5
19823$as_echo "$apr_cv_mutex_recursive" >&6; }
19824
19825if test "$apr_cv_mutex_recursive" = "yes"; then
19826
19827$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
19828
19829fi
19830
19831        for ac_func in pthread_key_delete pthread_rwlock_init \
19832                        pthread_attr_setguardsize pthread_yield
19833do :
19834  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19835ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19836if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19837  cat >>confdefs.h <<_ACEOF
19838#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19839_ACEOF
19840
19841fi
19842done
19843
19844
19845        if test "$ac_cv_func_pthread_rwlock_init" = "yes"; then
19846                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_t" >&5
19847$as_echo_n "checking for pthread_rwlock_t... " >&6; }
19848if ${apr_cv_type_rwlock_t+:} false; then :
19849  $as_echo_n "(cached) " >&6
19850else
19851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19852/* end confdefs.h.  */
19853#include <sys/types.h>
19854#include <pthread.h>
19855int
19856main ()
19857{
19858pthread_rwlock_t *rwlock;
19859  ;
19860  return 0;
19861}
19862_ACEOF
19863if ac_fn_c_try_compile "$LINENO"; then :
19864  apr_cv_type_rwlock_t=yes
19865else
19866  apr_cv_type_rwlock_t=no
19867fi
19868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19869fi
19870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_type_rwlock_t" >&5
19871$as_echo "$apr_cv_type_rwlock_t" >&6; }
19872            if test "$apr_cv_type_rwlock_t" = "yes"; then
19873
19874$as_echo "#define HAVE_PTHREAD_RWLOCKS 1" >>confdefs.h
19875
19876            fi
19877        fi
19878
19879        if test "$ac_cv_func_pthread_yield" = "no"; then
19880                        for ac_header in sched.h
19881do :
19882  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19883if test "x$ac_cv_header_sched_h" = xyes; then :
19884  cat >>confdefs.h <<_ACEOF
19885#define HAVE_SCHED_H 1
19886_ACEOF
19887
19888fi
19889
19890done
19891
19892            for ac_func in sched_yield
19893do :
19894  ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
19895if test "x$ac_cv_func_sched_yield" = xyes; then :
19896  cat >>confdefs.h <<_ACEOF
19897#define HAVE_SCHED_YIELD 1
19898_ACEOF
19899
19900fi
19901done
19902
19903        fi
19904    fi
19905fi
19906
19907ac_cv_define_READDIR_IS_THREAD_SAFE=no
19908ac_cv_define_GETHOSTBYNAME_IS_THREAD_SAFE=no
19909ac_cv_define_GETHOSTBYADDR_IS_THREAD_SAFE=no
19910ac_cv_define_GETSERVBYNAME_IS_THREAD_SAFE=no
19911if test "$threads" = "1"; then
19912    echo "APR will use threads"
19913    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readdir in -lc_r" >&5
19914$as_echo_n "checking for readdir in -lc_r... " >&6; }
19915if ${ac_cv_lib_c_r_readdir+:} false; then :
19916  $as_echo_n "(cached) " >&6
19917else
19918  ac_check_lib_save_LIBS=$LIBS
19919LIBS="-lc_r  $LIBS"
19920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19921/* end confdefs.h.  */
19922
19923/* Override any GCC internal prototype to avoid an error.
19924   Use char because int might match the return type of a GCC
19925   builtin and then its argument prototype would still apply.  */
19926#ifdef __cplusplus
19927extern "C"
19928#endif
19929char readdir ();
19930int
19931main ()
19932{
19933return readdir ();
19934  ;
19935  return 0;
19936}
19937_ACEOF
19938if ac_fn_c_try_link "$LINENO"; then :
19939  ac_cv_lib_c_r_readdir=yes
19940else
19941  ac_cv_lib_c_r_readdir=no
19942fi
19943rm -f core conftest.err conftest.$ac_objext \
19944    conftest$ac_exeext conftest.$ac_ext
19945LIBS=$ac_check_lib_save_LIBS
19946fi
19947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_readdir" >&5
19948$as_echo "$ac_cv_lib_c_r_readdir" >&6; }
19949if test "x$ac_cv_lib_c_r_readdir" = xyes; then :
19950
19951$as_echo "#define READDIR_IS_THREAD_SAFE 1" >>confdefs.h
19952
19953fi
19954
19955    if test "x$apr_gethostbyname_is_thread_safe" = "x"; then
19956        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lc_r" >&5
19957$as_echo_n "checking for gethostbyname in -lc_r... " >&6; }
19958if ${ac_cv_lib_c_r_gethostbyname+:} false; then :
19959  $as_echo_n "(cached) " >&6
19960else
19961  ac_check_lib_save_LIBS=$LIBS
19962LIBS="-lc_r  $LIBS"
19963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19964/* end confdefs.h.  */
19965
19966/* Override any GCC internal prototype to avoid an error.
19967   Use char because int might match the return type of a GCC
19968   builtin and then its argument prototype would still apply.  */
19969#ifdef __cplusplus
19970extern "C"
19971#endif
19972char gethostbyname ();
19973int
19974main ()
19975{
19976return gethostbyname ();
19977  ;
19978  return 0;
19979}
19980_ACEOF
19981if ac_fn_c_try_link "$LINENO"; then :
19982  ac_cv_lib_c_r_gethostbyname=yes
19983else
19984  ac_cv_lib_c_r_gethostbyname=no
19985fi
19986rm -f core conftest.err conftest.$ac_objext \
19987    conftest$ac_exeext conftest.$ac_ext
19988LIBS=$ac_check_lib_save_LIBS
19989fi
19990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyname" >&5
19991$as_echo "$ac_cv_lib_c_r_gethostbyname" >&6; }
19992if test "x$ac_cv_lib_c_r_gethostbyname" = xyes; then :
19993  apr_gethostbyname_is_thread_safe=yes
19994fi
19995
19996    fi
19997    if test "$apr_gethostbyname_is_thread_safe" = "yes"; then
19998
19999$as_echo "#define GETHOSTBYNAME_IS_THREAD_SAFE 1" >>confdefs.h
20000
20001    fi
20002    if test "x$apr_gethostbyaddr_is_thread_safe" = "x"; then
20003        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lc_r" >&5
20004$as_echo_n "checking for gethostbyaddr in -lc_r... " >&6; }
20005if ${ac_cv_lib_c_r_gethostbyaddr+:} false; then :
20006  $as_echo_n "(cached) " >&6
20007else
20008  ac_check_lib_save_LIBS=$LIBS
20009LIBS="-lc_r  $LIBS"
20010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20011/* end confdefs.h.  */
20012
20013/* Override any GCC internal prototype to avoid an error.
20014   Use char because int might match the return type of a GCC
20015   builtin and then its argument prototype would still apply.  */
20016#ifdef __cplusplus
20017extern "C"
20018#endif
20019char gethostbyaddr ();
20020int
20021main ()
20022{
20023return gethostbyaddr ();
20024  ;
20025  return 0;
20026}
20027_ACEOF
20028if ac_fn_c_try_link "$LINENO"; then :
20029  ac_cv_lib_c_r_gethostbyaddr=yes
20030else
20031  ac_cv_lib_c_r_gethostbyaddr=no
20032fi
20033rm -f core conftest.err conftest.$ac_objext \
20034    conftest$ac_exeext conftest.$ac_ext
20035LIBS=$ac_check_lib_save_LIBS
20036fi
20037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyaddr" >&5
20038$as_echo "$ac_cv_lib_c_r_gethostbyaddr" >&6; }
20039if test "x$ac_cv_lib_c_r_gethostbyaddr" = xyes; then :
20040  apr_gethostbyaddr_is_thread_safe=yes
20041fi
20042
20043    fi
20044    if test "$apr_gethostbyaddr_is_thread_safe" = "yes"; then
20045
20046$as_echo "#define GETHOSTBYADDR_IS_THREAD_SAFE 1" >>confdefs.h
20047
20048    fi
20049    if test "x$apr_getservbyname_is_thread_safe" = "x"; then
20050        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in -lc_r" >&5
20051$as_echo_n "checking for getservbyname in -lc_r... " >&6; }
20052if ${ac_cv_lib_c_r_getservbyname+:} false; then :
20053  $as_echo_n "(cached) " >&6
20054else
20055  ac_check_lib_save_LIBS=$LIBS
20056LIBS="-lc_r  $LIBS"
20057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20058/* end confdefs.h.  */
20059
20060/* Override any GCC internal prototype to avoid an error.
20061   Use char because int might match the return type of a GCC
20062   builtin and then its argument prototype would still apply.  */
20063#ifdef __cplusplus
20064extern "C"
20065#endif
20066char getservbyname ();
20067int
20068main ()
20069{
20070return getservbyname ();
20071  ;
20072  return 0;
20073}
20074_ACEOF
20075if ac_fn_c_try_link "$LINENO"; then :
20076  ac_cv_lib_c_r_getservbyname=yes
20077else
20078  ac_cv_lib_c_r_getservbyname=no
20079fi
20080rm -f core conftest.err conftest.$ac_objext \
20081    conftest$ac_exeext conftest.$ac_ext
20082LIBS=$ac_check_lib_save_LIBS
20083fi
20084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_getservbyname" >&5
20085$as_echo "$ac_cv_lib_c_r_getservbyname" >&6; }
20086if test "x$ac_cv_lib_c_r_getservbyname" = xyes; then :
20087  apr_getservbyname_is_thread_safe=yes
20088fi
20089
20090    fi
20091    if test "$apr_getservbyname_is_thread_safe" = "yes"; then
20092
20093$as_echo "#define GETSERVBYNAME_IS_THREAD_SAFE 1" >>confdefs.h
20094
20095    fi
20096    for ac_func in gethostbyname_r gethostbyaddr_r getservbyname_r
20097do :
20098  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20099ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20100if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20101  cat >>confdefs.h <<_ACEOF
20102#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20103_ACEOF
20104
20105fi
20106done
20107
20108else
20109    echo "APR will be non-threaded"
20110fi
20111
20112
20113# Check whether --with-efence was given.
20114if test "${with_efence+set}" = set; then :
20115  withval=$with_efence;  apr_efence_dir="$withval"
20116    if test "$apr_efence_dir" != "yes"; then
20117
20118  if test "x$LDFLAGS" = "x"; then
20119    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L$apr_efence_dir/lib\""
20120    LDFLAGS="-L$apr_efence_dir/lib"
20121  else
20122    apr_addto_bugger="-L$apr_efence_dir/lib"
20123    for i in $apr_addto_bugger; do
20124      apr_addto_duplicate="0"
20125      for j in $LDFLAGS; do
20126        if test "x$i" = "x$j"; then
20127          apr_addto_duplicate="1"
20128          break
20129        fi
20130      done
20131      if test $apr_addto_duplicate = "0"; then
20132        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
20133        LDFLAGS="$LDFLAGS $i"
20134      fi
20135    done
20136  fi
20137
20138      if test "x$apr_platform_runtime_link_flag" != "x"; then
20139
20140  if test "x$LDFLAGS" = "x"; then
20141    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$apr_platform_runtime_link_flag$apr_efence_dir/lib\""
20142    LDFLAGS="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
20143  else
20144    apr_addto_bugger="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
20145    for i in $apr_addto_bugger; do
20146      apr_addto_duplicate="0"
20147      for j in $LDFLAGS; do
20148        if test "x$i" = "x$j"; then
20149          apr_addto_duplicate="1"
20150          break
20151        fi
20152      done
20153      if test $apr_addto_duplicate = "0"; then
20154        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
20155        LDFLAGS="$LDFLAGS $i"
20156      fi
20157    done
20158  fi
20159
20160      fi
20161    fi
20162    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5
20163$as_echo_n "checking for malloc in -lefence... " >&6; }
20164if ${ac_cv_lib_efence_malloc+:} false; then :
20165  $as_echo_n "(cached) " >&6
20166else
20167  ac_check_lib_save_LIBS=$LIBS
20168LIBS="-lefence  $LIBS"
20169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20170/* end confdefs.h.  */
20171
20172/* Override any GCC internal prototype to avoid an error.
20173   Use char because int might match the return type of a GCC
20174   builtin and then its argument prototype would still apply.  */
20175#ifdef __cplusplus
20176extern "C"
20177#endif
20178char malloc ();
20179int
20180main ()
20181{
20182return malloc ();
20183  ;
20184  return 0;
20185}
20186_ACEOF
20187if ac_fn_c_try_link "$LINENO"; then :
20188  ac_cv_lib_efence_malloc=yes
20189else
20190  ac_cv_lib_efence_malloc=no
20191fi
20192rm -f core conftest.err conftest.$ac_objext \
20193    conftest$ac_exeext conftest.$ac_ext
20194LIBS=$ac_check_lib_save_LIBS
20195fi
20196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_malloc" >&5
20197$as_echo "$ac_cv_lib_efence_malloc" >&6; }
20198if test "x$ac_cv_lib_efence_malloc" = xyes; then :
20199
20200  if test "x$LIBS" = "x"; then
20201    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lefence\""
20202    LIBS="-lefence"
20203  else
20204    apr_addto_bugger="-lefence"
20205    for i in $apr_addto_bugger; do
20206      apr_addto_duplicate="0"
20207      for j in $LIBS; do
20208        if test "x$i" = "x$j"; then
20209          apr_addto_duplicate="1"
20210          break
20211        fi
20212      done
20213      if test $apr_addto_duplicate = "0"; then
20214        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
20215        LIBS="$LIBS $i"
20216      fi
20217    done
20218  fi
20219
20220else
20221   as_fn_error $? "Electric Fence requested but not detected" "$LINENO" 5
20222fi
20223
20224
20225fi
20226
20227
20228for ac_func in sigsuspend
20229do :
20230  ac_fn_c_check_func "$LINENO" "sigsuspend" "ac_cv_func_sigsuspend"
20231if test "x$ac_cv_func_sigsuspend" = xyes; then :
20232  cat >>confdefs.h <<_ACEOF
20233#define HAVE_SIGSUSPEND 1
20234_ACEOF
20235  have_sigsuspend="1"
20236else
20237   have_sigsuspend="0"
20238fi
20239done
20240
20241for ac_func in sigwait
20242do :
20243  ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
20244if test "x$ac_cv_func_sigwait" = xyes; then :
20245  cat >>confdefs.h <<_ACEOF
20246#define HAVE_SIGWAIT 1
20247_ACEOF
20248  have_sigwait="1"
20249else
20250   have_sigwait="0"
20251fi
20252done
20253
20254case $host in
20255    *alpha*-dec-osf* )
20256        have_sigwait="1"
20257        ;;
20258esac
20259
20260
20261
20262
20263
20264for ac_func in poll kqueue port_create
20265do :
20266  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20267ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20268if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20269  cat >>confdefs.h <<_ACEOF
20270#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20271_ACEOF
20272
20273fi
20274done
20275
20276
20277# Check for the Linux epoll interface; epoll* may be available in libc
20278# but return ENOSYS on a pre-2.6 kernel, so do a run-time check.
20279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support" >&5
20280$as_echo_n "checking for epoll support... " >&6; }
20281if ${apr_cv_epoll+:} false; then :
20282  $as_echo_n "(cached) " >&6
20283else
20284  if test "$cross_compiling" = yes; then :
20285  apr_cv_epoll=no
20286else
20287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20288/* end confdefs.h.  */
20289
20290#include <sys/epoll.h>
20291#include <unistd.h>
20292
20293int main()
20294{
20295    return epoll_create(5) == -1;
20296}
20297_ACEOF
20298if ac_fn_c_try_run "$LINENO"; then :
20299  apr_cv_epoll=yes
20300else
20301  apr_cv_epoll=no
20302fi
20303rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20304  conftest.$ac_objext conftest.beam conftest.$ac_ext
20305fi
20306
20307fi
20308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll" >&5
20309$as_echo "$apr_cv_epoll" >&6; }
20310
20311if test "$apr_cv_epoll" = "yes"; then
20312
20313$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
20314
20315fi
20316
20317# test for epoll_create1
20318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5
20319$as_echo_n "checking for epoll_create1 support... " >&6; }
20320if ${apr_cv_epoll_create1+:} false; then :
20321  $as_echo_n "(cached) " >&6
20322else
20323  if test "$cross_compiling" = yes; then :
20324  apr_cv_epoll_create1=no
20325else
20326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20327/* end confdefs.h.  */
20328
20329#include <sys/epoll.h>
20330#include <unistd.h>
20331
20332int main()
20333{
20334    return epoll_create1(0) == -1;
20335}
20336_ACEOF
20337if ac_fn_c_try_run "$LINENO"; then :
20338  apr_cv_epoll_create1=yes
20339else
20340  apr_cv_epoll_create1=no
20341fi
20342rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20343  conftest.$ac_objext conftest.beam conftest.$ac_ext
20344fi
20345
20346fi
20347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5
20348$as_echo "$apr_cv_epoll_create1" >&6; }
20349
20350if test "$apr_cv_epoll_create1" = "yes"; then
20351
20352$as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
20353
20354fi
20355
20356# test for dup3
20357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5
20358$as_echo_n "checking for dup3 support... " >&6; }
20359if ${apr_cv_dup3+:} false; then :
20360  $as_echo_n "(cached) " >&6
20361else
20362  if test "$cross_compiling" = yes; then :
20363  apr_cv_dup3=no
20364else
20365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20366/* end confdefs.h.  */
20367
20368#include <unistd.h>
20369
20370int main()
20371{
20372    return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
20373}
20374_ACEOF
20375if ac_fn_c_try_run "$LINENO"; then :
20376  apr_cv_dup3=yes
20377else
20378  apr_cv_dup3=no
20379fi
20380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20381  conftest.$ac_objext conftest.beam conftest.$ac_ext
20382fi
20383
20384fi
20385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5
20386$as_echo "$apr_cv_dup3" >&6; }
20387
20388if test "$apr_cv_dup3" = "yes"; then
20389
20390$as_echo "#define HAVE_DUP3 1" >>confdefs.h
20391
20392fi
20393
20394# test for accept4
20395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5
20396$as_echo_n "checking for accept4 support... " >&6; }
20397if ${apr_cv_accept4+:} false; then :
20398  $as_echo_n "(cached) " >&6
20399else
20400  if test "$cross_compiling" = yes; then :
20401  apr_cv_accept4=no
20402else
20403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20404/* end confdefs.h.  */
20405
20406#include <unistd.h>
20407#include <sys/types.h>
20408#include <sys/socket.h>
20409#include <sys/un.h>
20410#include <sys/wait.h>
20411#include <signal.h>
20412#include <errno.h>
20413
20414#define A4_SOCK "./apr_accept4_test_socket"
20415
20416int main()
20417{
20418    pid_t pid;
20419    int fd;
20420    struct sockaddr_un loc, rem;
20421    socklen_t rem_sz;
20422
20423    if ((pid = fork())) {
20424        int status;
20425
20426        unlink(A4_SOCK);
20427
20428        if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
20429            goto cleanup_failure2;
20430
20431        loc.sun_family = AF_UNIX;
20432        strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
20433
20434        if (bind(fd, (struct sockaddr *) &loc,
20435                 sizeof(struct sockaddr_un)) == -1)
20436            goto cleanup_failure;
20437
20438        if (listen(fd, 5) == -1)
20439            goto cleanup_failure;
20440
20441        rem_sz = sizeof(struct sockaddr_un);
20442        if (accept4(fd, (struct sockaddr *) &rem, &rem_sz, 0) == -1) {
20443            goto cleanup_failure;
20444        }
20445        else {
20446            close(fd);
20447            waitpid(pid, &status, 0);
20448            unlink(A4_SOCK);
20449            return 0;
20450        }
20451
20452cleanup_failure:
20453        close(fd);
20454cleanup_failure2:
20455        kill(pid, SIGKILL);
20456        waitpid(pid, &status, 0);
20457        unlink(A4_SOCK);
20458        return 1;
20459    }
20460    else {
20461        if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
20462            return 1; /* this will be bad: we'll hang */
20463
20464        loc.sun_family = AF_UNIX;
20465        strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
20466
20467        while(connect(fd, (struct sockaddr *) &loc,
20468                      sizeof(struct sockaddr_un)) == -1 &&
20469              (errno==ENOENT || errno==ECONNREFUSED))
20470            ;
20471
20472        close(fd);
20473        return 0;
20474    }
20475}
20476_ACEOF
20477if ac_fn_c_try_run "$LINENO"; then :
20478  apr_cv_accept4=yes
20479else
20480  apr_cv_accept4=no
20481fi
20482rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20483  conftest.$ac_objext conftest.beam conftest.$ac_ext
20484fi
20485
20486fi
20487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5
20488$as_echo "$apr_cv_accept4" >&6; }
20489
20490if test "$apr_cv_accept4" = "yes"; then
20491
20492$as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
20493
20494fi
20495
20496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5
20497$as_echo_n "checking for SOCK_CLOEXEC support... " >&6; }
20498if ${apr_cv_sock_cloexec+:} false; then :
20499  $as_echo_n "(cached) " >&6
20500else
20501  if test "$cross_compiling" = yes; then :
20502  apr_cv_sock_cloexec=no
20503else
20504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20505/* end confdefs.h.  */
20506
20507#include <sys/types.h>
20508#include <sys/socket.h>
20509
20510int main()
20511{
20512    return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
20513}
20514_ACEOF
20515if ac_fn_c_try_run "$LINENO"; then :
20516  apr_cv_sock_cloexec=yes
20517else
20518  apr_cv_sock_cloexec=no
20519fi
20520rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20521  conftest.$ac_objext conftest.beam conftest.$ac_ext
20522fi
20523
20524fi
20525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5
20526$as_echo "$apr_cv_sock_cloexec" >&6; }
20527
20528if test "$apr_cv_sock_cloexec" = "yes"; then
20529
20530$as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
20531
20532fi
20533
20534for ac_func in fdatasync
20535do :
20536  ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
20537if test "x$ac_cv_func_fdatasync" = xyes; then :
20538  cat >>confdefs.h <<_ACEOF
20539#define HAVE_FDATASYNC 1
20540_ACEOF
20541
20542fi
20543done
20544
20545
20546# test for epoll_create1
20547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5
20548$as_echo_n "checking for epoll_create1 support... " >&6; }
20549if ${apr_cv_epoll_create1+:} false; then :
20550  $as_echo_n "(cached) " >&6
20551else
20552  if test "$cross_compiling" = yes; then :
20553  apr_cv_epoll_create1=no
20554else
20555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20556/* end confdefs.h.  */
20557
20558#include <sys/epoll.h>
20559#include <unistd.h>
20560
20561int main()
20562{
20563    return epoll_create1(0) == -1;
20564}
20565_ACEOF
20566if ac_fn_c_try_run "$LINENO"; then :
20567  apr_cv_epoll_create1=yes
20568else
20569  apr_cv_epoll_create1=no
20570fi
20571rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20572  conftest.$ac_objext conftest.beam conftest.$ac_ext
20573fi
20574
20575fi
20576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5
20577$as_echo "$apr_cv_epoll_create1" >&6; }
20578
20579if test "$apr_cv_epoll_create1" = "yes"; then
20580
20581$as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
20582
20583fi
20584
20585# test for dup3
20586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5
20587$as_echo_n "checking for dup3 support... " >&6; }
20588if ${apr_cv_dup3+:} false; then :
20589  $as_echo_n "(cached) " >&6
20590else
20591  if test "$cross_compiling" = yes; then :
20592  apr_cv_dup3=no
20593else
20594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20595/* end confdefs.h.  */
20596
20597#include <unistd.h>
20598
20599int main()
20600{
20601    return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
20602}
20603_ACEOF
20604if ac_fn_c_try_run "$LINENO"; then :
20605  apr_cv_dup3=yes
20606else
20607  apr_cv_dup3=no
20608fi
20609rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20610  conftest.$ac_objext conftest.beam conftest.$ac_ext
20611fi
20612
20613fi
20614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5
20615$as_echo "$apr_cv_dup3" >&6; }
20616
20617if test "$apr_cv_dup3" = "yes"; then
20618
20619$as_echo "#define HAVE_DUP3 1" >>confdefs.h
20620
20621fi
20622
20623# test for accept4
20624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5
20625$as_echo_n "checking for accept4 support... " >&6; }
20626if ${apr_cv_accept4+:} false; then :
20627  $as_echo_n "(cached) " >&6
20628else
20629  if test "$cross_compiling" = yes; then :
20630  apr_cv_accept4=no
20631else
20632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20633/* end confdefs.h.  */
20634
20635#include <unistd.h>
20636#include <sys/types.h>
20637#include <sys/socket.h>
20638#include <sys/un.h>
20639#include <sys/wait.h>
20640#include <signal.h>
20641#include <errno.h>
20642
20643#define A4_SOCK "./apr_accept4_test_socket"
20644
20645int main()
20646{
20647    pid_t pid;
20648    int fd;
20649    struct sockaddr_un loc, rem;
20650    socklen_t rem_sz;
20651
20652    if ((pid = fork())) {
20653        int status;
20654
20655        unlink(A4_SOCK);
20656
20657        if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
20658            goto cleanup_failure2;
20659
20660        loc.sun_family = AF_UNIX;
20661        strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
20662
20663        if (bind(fd, (struct sockaddr *) &loc,
20664                 sizeof(struct sockaddr_un)) == -1)
20665            goto cleanup_failure;
20666
20667        if (listen(fd, 5) == -1)
20668            goto cleanup_failure;
20669
20670        rem_sz = sizeof(struct sockaddr_un);
20671        if (accept4(fd, (struct sockaddr *) &rem, &rem_sz, 0) == -1) {
20672            goto cleanup_failure;
20673        }
20674        else {
20675            close(fd);
20676            waitpid(pid, &status, 0);
20677            unlink(A4_SOCK);
20678            return 0;
20679        }
20680
20681cleanup_failure:
20682        close(fd);
20683cleanup_failure2:
20684        kill(pid, SIGKILL);
20685        waitpid(pid, &status, 0);
20686        unlink(A4_SOCK);
20687        return 1;
20688    }
20689    else {
20690        if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
20691            return 1; /* this will be bad: we'll hang */
20692
20693        loc.sun_family = AF_UNIX;
20694        strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
20695
20696        while(connect(fd, (struct sockaddr *) &loc,
20697                      sizeof(struct sockaddr_un)) == -1 &&
20698              (errno==ENOENT || errno==ECONNREFUSED))
20699            ;
20700
20701        close(fd);
20702        return 0;
20703    }
20704}
20705_ACEOF
20706if ac_fn_c_try_run "$LINENO"; then :
20707  apr_cv_accept4=yes
20708else
20709  apr_cv_accept4=no
20710fi
20711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20712  conftest.$ac_objext conftest.beam conftest.$ac_ext
20713fi
20714
20715fi
20716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5
20717$as_echo "$apr_cv_accept4" >&6; }
20718
20719if test "$apr_cv_accept4" = "yes"; then
20720
20721$as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
20722
20723fi
20724
20725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5
20726$as_echo_n "checking for SOCK_CLOEXEC support... " >&6; }
20727if ${apr_cv_sock_cloexec+:} false; then :
20728  $as_echo_n "(cached) " >&6
20729else
20730  if test "$cross_compiling" = yes; then :
20731  apr_cv_sock_cloexec=no
20732else
20733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20734/* end confdefs.h.  */
20735
20736#include <sys/types.h>
20737#include <sys/socket.h>
20738
20739int main()
20740{
20741    return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
20742}
20743_ACEOF
20744if ac_fn_c_try_run "$LINENO"; then :
20745  apr_cv_sock_cloexec=yes
20746else
20747  apr_cv_sock_cloexec=no
20748fi
20749rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20750  conftest.$ac_objext conftest.beam conftest.$ac_ext
20751fi
20752
20753fi
20754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5
20755$as_echo "$apr_cv_sock_cloexec" >&6; }
20756
20757if test "$apr_cv_sock_cloexec" = "yes"; then
20758
20759$as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
20760
20761fi
20762
20763for ac_func in getpwnam_r getpwuid_r getgrnam_r getgrgid_r
20764do :
20765  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20766ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20767if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20768  cat >>confdefs.h <<_ACEOF
20769#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20770_ACEOF
20771
20772fi
20773done
20774
20775
20776echo "${nl}Checking for Shared Memory Support..."
20777
20778# The real-time POSIX extensions (e.g. shm_*, sem_*) may only
20779# be available if linking against librt.
20780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
20781$as_echo_n "checking for library containing shm_open... " >&6; }
20782if ${ac_cv_search_shm_open+:} false; then :
20783  $as_echo_n "(cached) " >&6
20784else
20785  ac_func_search_save_LIBS=$LIBS
20786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20787/* end confdefs.h.  */
20788
20789/* Override any GCC internal prototype to avoid an error.
20790   Use char because int might match the return type of a GCC
20791   builtin and then its argument prototype would still apply.  */
20792#ifdef __cplusplus
20793extern "C"
20794#endif
20795char shm_open ();
20796int
20797main ()
20798{
20799return shm_open ();
20800  ;
20801  return 0;
20802}
20803_ACEOF
20804for ac_lib in '' rt; do
20805  if test -z "$ac_lib"; then
20806    ac_res="none required"
20807  else
20808    ac_res=-l$ac_lib
20809    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20810  fi
20811  if ac_fn_c_try_link "$LINENO"; then :
20812  ac_cv_search_shm_open=$ac_res
20813fi
20814rm -f core conftest.err conftest.$ac_objext \
20815    conftest$ac_exeext
20816  if ${ac_cv_search_shm_open+:} false; then :
20817  break
20818fi
20819done
20820if ${ac_cv_search_shm_open+:} false; then :
20821
20822else
20823  ac_cv_search_shm_open=no
20824fi
20825rm conftest.$ac_ext
20826LIBS=$ac_func_search_save_LIBS
20827fi
20828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
20829$as_echo "$ac_cv_search_shm_open" >&6; }
20830ac_res=$ac_cv_search_shm_open
20831if test "$ac_res" != no; then :
20832  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20833
20834fi
20835
20836
20837case $host in
20838 *-sysv*)
20839   ac_includes_default="$ac_includes_default
20840#if HAVE_SYS_MUTEX_H /* needed to define lock_t for sys/shm.h */
20841# include <sys/mutex.h>
20842#endif";;
20843esac
20844
20845for 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
20846do :
20847  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20848ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20849if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20850  cat >>confdefs.h <<_ACEOF
20851#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20852_ACEOF
20853
20854fi
20855
20856done
20857
20858for ac_func in mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \
20859                create_area
20860do :
20861  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20862ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20863if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20864  cat >>confdefs.h <<_ACEOF
20865#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20866_ACEOF
20867
20868fi
20869done
20870
20871
20872
20873  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON in sys/mman.h" >&5
20874$as_echo_n "checking for MAP_ANON in sys/mman.h... " >&6; }
20875if ${ac_cv_define_MAP_ANON+:} false; then :
20876  $as_echo_n "(cached) " >&6
20877else
20878
20879    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20880/* end confdefs.h.  */
20881
20882#include <sys/mman.h>
20883#ifdef MAP_ANON
20884YES_IS_DEFINED
20885#endif
20886
20887_ACEOF
20888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20889  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
20890  ac_cv_define_MAP_ANON=yes
20891else
20892  ac_cv_define_MAP_ANON=no
20893fi
20894rm -f conftest*
20895
20896
20897fi
20898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_MAP_ANON" >&5
20899$as_echo "$ac_cv_define_MAP_ANON" >&6; }
20900  if test "$ac_cv_define_MAP_ANON" = "yes"; then
20901
20902$as_echo "#define HAVE_MAP_ANON 1" >>confdefs.h
20903
20904  fi
20905
20906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
20907$as_echo_n "checking for /dev/zero... " >&6; }
20908if ${ac_cv_file__dev_zero+:} false; then :
20909  $as_echo_n "(cached) " >&6
20910else
20911  test "$cross_compiling" = yes &&
20912  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20913if test -r "/dev/zero"; then
20914  ac_cv_file__dev_zero=yes
20915else
20916  ac_cv_file__dev_zero=no
20917fi
20918fi
20919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5
20920$as_echo "$ac_cv_file__dev_zero" >&6; }
20921if test "x$ac_cv_file__dev_zero" = xyes; then :
20922
20923fi
20924
20925
20926# Not all systems can mmap /dev/zero (such as HP-UX).  Check for that.
20927if test "$ac_cv_func_mmap" = "yes" &&
20928   test "$ac_cv_file__dev_zero" = "yes"; then
20929    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap that can map /dev/zero" >&5
20930$as_echo_n "checking for mmap that can map /dev/zero... " >&6; }
20931    if test "$cross_compiling" = yes; then :
20932  ac_cv_file__dev_zero=no
20933else
20934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20935/* end confdefs.h.  */
20936
20937#include <sys/types.h>
20938#include <sys/stat.h>
20939#include <fcntl.h>
20940#ifdef HAVE_SYS_MMAN_H
20941#include <sys/mman.h>
20942#endif
20943    int main()
20944    {
20945        int fd;
20946        void *m;
20947        fd = open("/dev/zero", O_RDWR);
20948        if (fd < 0) {
20949            return 1;
20950        }
20951        m = mmap(0, sizeof(void*), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
20952        if (m == (void *)-1) {  /* aka MAP_FAILED */
20953            return 2;
20954        }
20955        if (munmap(m, sizeof(void*)) < 0) {
20956            return 3;
20957        }
20958        return 0;
20959    }
20960_ACEOF
20961if ac_fn_c_try_run "$LINENO"; then :
20962
20963else
20964  ac_cv_file__dev_zero=no
20965fi
20966rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20967  conftest.$ac_objext conftest.beam conftest.$ac_ext
20968fi
20969
20970
20971    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5
20972$as_echo "$ac_cv_file__dev_zero" >&6; }
20973fi
20974
20975# Now we determine which one is our anonymous shmem preference.
20976haveshmgetanon="0"
20977havemmapzero="0"
20978havemmapanon="0"
20979ac_decision_item='anonymous shared memory allocation method'
20980ac_decision_msg='FAILED'
20981ac_decision=''
20982
20983ac_rc=yes
20984for ac_spec in header:sys/ipc.h header:sys/shm.h header:sys/file.h              func:shmget func:shmat func:shmdt func:shmctl; do
20985    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
20986    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
20987    case $ac_type in
20988        header )
20989            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
20990            ac_var="ac_cv_header_$ac_item"
20991            ;;
20992        file )
20993            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
20994            ac_var="ac_cv_file_$ac_item"
20995            ;;
20996        func )   ac_var="ac_cv_func_$ac_item"   ;;
20997        struct ) ac_var="ac_cv_struct_$ac_item" ;;
20998        define ) ac_var="ac_cv_define_$ac_item" ;;
20999        custom ) ac_var="$ac_item" ;;
21000    esac
21001    eval "ac_val=\$$ac_var"
21002    if test ".$ac_val" != .yes; then
21003        ac_rc=no
21004        break
21005    fi
21006done
21007if test ".$ac_rc" = .yes; then
21008    :
21009    haveshmgetanon="1"
21010
21011ac_decision='USE_SHMEM_SHMGET_ANON'
21012ac_decision_msg='SysV IPC shmget()'
21013ac_decision_USE_SHMEM_SHMGET_ANON=yes
21014ac_decision_USE_SHMEM_SHMGET_ANON_msg='SysV IPC shmget()'
21015
21016else
21017    :
21018
21019fi
21020
21021ac_rc=yes
21022for ac_spec in header:sys/mman.h func:mmap func:munmap file:/dev/zero; do
21023    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21024    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21025    case $ac_type in
21026        header )
21027            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21028            ac_var="ac_cv_header_$ac_item"
21029            ;;
21030        file )
21031            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21032            ac_var="ac_cv_file_$ac_item"
21033            ;;
21034        func )   ac_var="ac_cv_func_$ac_item"   ;;
21035        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21036        define ) ac_var="ac_cv_define_$ac_item" ;;
21037        custom ) ac_var="$ac_item" ;;
21038    esac
21039    eval "ac_val=\$$ac_var"
21040    if test ".$ac_val" != .yes; then
21041        ac_rc=no
21042        break
21043    fi
21044done
21045if test ".$ac_rc" = .yes; then
21046    :
21047    havemmapzero="1"
21048
21049ac_decision='USE_SHMEM_MMAP_ZERO'
21050ac_decision_msg='SVR4-style mmap() on /dev/zero'
21051ac_decision_USE_SHMEM_MMAP_ZERO=yes
21052ac_decision_USE_SHMEM_MMAP_ZERO_msg='SVR4-style mmap() on /dev/zero'
21053
21054else
21055    :
21056
21057fi
21058
21059ac_rc=yes
21060for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
21061    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21062    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21063    case $ac_type in
21064        header )
21065            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21066            ac_var="ac_cv_header_$ac_item"
21067            ;;
21068        file )
21069            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21070            ac_var="ac_cv_file_$ac_item"
21071            ;;
21072        func )   ac_var="ac_cv_func_$ac_item"   ;;
21073        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21074        define ) ac_var="ac_cv_define_$ac_item" ;;
21075        custom ) ac_var="$ac_item" ;;
21076    esac
21077    eval "ac_val=\$$ac_var"
21078    if test ".$ac_val" != .yes; then
21079        ac_rc=no
21080        break
21081    fi
21082done
21083if test ".$ac_rc" = .yes; then
21084    :
21085    havemmapanon="1"
21086
21087ac_decision='USE_SHMEM_MMAP_ANON'
21088ac_decision_msg='4.4BSD-style mmap() via MAP_ANON'
21089ac_decision_USE_SHMEM_MMAP_ANON=yes
21090ac_decision_USE_SHMEM_MMAP_ANON_msg='4.4BSD-style mmap() via MAP_ANON'
21091
21092else
21093    :
21094
21095fi
21096
21097ac_rc=yes
21098for ac_spec in header:os2.h; do
21099    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21100    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21101    case $ac_type in
21102        header )
21103            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21104            ac_var="ac_cv_header_$ac_item"
21105            ;;
21106        file )
21107            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21108            ac_var="ac_cv_file_$ac_item"
21109            ;;
21110        func )   ac_var="ac_cv_func_$ac_item"   ;;
21111        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21112        define ) ac_var="ac_cv_define_$ac_item" ;;
21113        custom ) ac_var="$ac_item" ;;
21114    esac
21115    eval "ac_val=\$$ac_var"
21116    if test ".$ac_val" != .yes; then
21117        ac_rc=no
21118        break
21119    fi
21120done
21121if test ".$ac_rc" = .yes; then
21122    :
21123    haveos2shm="1"
21124
21125ac_decision='USE_SHMEM_OS2_ANON'
21126ac_decision_msg='OS/2 DosAllocSharedMem()'
21127ac_decision_USE_SHMEM_OS2_ANON=yes
21128ac_decision_USE_SHMEM_OS2_ANON_msg='OS/2 DosAllocSharedMem()'
21129
21130else
21131    :
21132
21133fi
21134
21135ac_rc=yes
21136for ac_spec in header:kernel/OS.h func:create_area; do
21137    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21138    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21139    case $ac_type in
21140        header )
21141            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21142            ac_var="ac_cv_header_$ac_item"
21143            ;;
21144        file )
21145            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21146            ac_var="ac_cv_file_$ac_item"
21147            ;;
21148        func )   ac_var="ac_cv_func_$ac_item"   ;;
21149        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21150        define ) ac_var="ac_cv_define_$ac_item" ;;
21151        custom ) ac_var="$ac_item" ;;
21152    esac
21153    eval "ac_val=\$$ac_var"
21154    if test ".$ac_val" != .yes; then
21155        ac_rc=no
21156        break
21157    fi
21158done
21159if test ".$ac_rc" = .yes; then
21160    :
21161    havebeosshm="1"
21162
21163ac_decision='USE_SHMEM_BEOS_ANON'
21164ac_decision_msg='BeOS areas'
21165ac_decision_USE_SHMEM_BEOS_ANON=yes
21166ac_decision_USE_SHMEM_BEOS_ANON_msg='BeOS areas'
21167
21168else
21169    :
21170
21171fi
21172
21173ac_rc=yes
21174for ac_spec in header:windows.h func:CreateFileMapping; do
21175    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21176    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21177    case $ac_type in
21178        header )
21179            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21180            ac_var="ac_cv_header_$ac_item"
21181            ;;
21182        file )
21183            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21184            ac_var="ac_cv_file_$ac_item"
21185            ;;
21186        func )   ac_var="ac_cv_func_$ac_item"   ;;
21187        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21188        define ) ac_var="ac_cv_define_$ac_item" ;;
21189        custom ) ac_var="$ac_item" ;;
21190    esac
21191    eval "ac_val=\$$ac_var"
21192    if test ".$ac_val" != .yes; then
21193        ac_rc=no
21194        break
21195    fi
21196done
21197if test ".$ac_rc" = .yes; then
21198    :
21199    havewin32shm="1"
21200
21201ac_decision='USE_SHMEM_WIN32_ANON'
21202ac_decision_msg='Windows CreateFileMapping()'
21203ac_decision_USE_SHMEM_WIN32_ANON=yes
21204ac_decision_USE_SHMEM_WIN32_ANON_msg='Windows CreateFileMapping()'
21205
21206else
21207    :
21208
21209fi
21210
21211case $host in
21212    *linux* )
21213        # Linux has problems with MM_SHMT_MMANON even though it reports
21214        # that it has it.
21215        # FIXME - find exact 2.3 version that MMANON was fixed in.  It is
21216        # confirmed fixed in 2.4 series.
21217        if test $os_version -le "240"; then
21218                ac_decision=''
21219    for ac_item in USE_SHMEM_MMAP_ZERO USE_SHMEM_SHMGET_ANON; do
21220         eval "ac_decision_this=\$ac_decision_${ac_item}"
21221         if test ".$ac_decision_this" = .yes; then
21222             ac_decision=$ac_item
21223             eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21224         fi
21225    done
21226
21227        fi
21228        ;;
21229    *hpux11* )
21230            ac_decision=''
21231    for ac_item in USE_SHMEM_SHMGET_ANON; do
21232         eval "ac_decision_this=\$ac_decision_${ac_item}"
21233         if test ".$ac_decision_this" = .yes; then
21234             ac_decision=$ac_item
21235             eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21236         fi
21237    done
21238
21239        ;;
21240esac
21241if test ".$ac_decision" = .; then
21242    echo "$0:Error: decision on $ac_decision_item failed" 1>&2
21243    exit 1
21244else
21245    if test ".$ac_decision_msg" = .; then
21246        ac_decision_msg="$ac_decision"
21247    fi
21248    cat >>confdefs.h <<_ACEOF
21249#define ${ac_decision_item} 1
21250_ACEOF
21251
21252    { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
21253$as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
21254fi
21255
21256cat >>confdefs.h <<_ACEOF
21257#define $ac_decision 1
21258_ACEOF
21259
21260
21261useshmgetanon="0"
21262usemmapzero="0"
21263usemmapanon="0"
21264
21265case $ac_decision in
21266    USE_SHMEM_SHMGET_ANON )
21267        useshmgetanon="1"
21268        ;;
21269    USE_SHMEM_MMAP_ZERO )
21270        usemmapzero="1"
21271        ;;
21272    USE_SHMEM_MMAP_ANON )
21273        usemmapanon="1"
21274        ;;
21275esac
21276
21277
21278
21279
21280
21281
21282
21283
21284# Now we determine which one is our name-based shmem preference.
21285havemmaptmp="0"
21286havemmapshm="0"
21287haveshmget="0"
21288havebeosarea="0"
21289haveos2shm="0"
21290havewin32shm="0"
21291ac_decision_item='namebased memory allocation method'
21292ac_decision_msg='FAILED'
21293ac_decision=''
21294
21295ac_rc=yes
21296for ac_spec in header:sys/mman.h func:mmap func:munmap; do
21297    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21298    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21299    case $ac_type in
21300        header )
21301            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21302            ac_var="ac_cv_header_$ac_item"
21303            ;;
21304        file )
21305            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21306            ac_var="ac_cv_file_$ac_item"
21307            ;;
21308        func )   ac_var="ac_cv_func_$ac_item"   ;;
21309        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21310        define ) ac_var="ac_cv_define_$ac_item" ;;
21311        custom ) ac_var="$ac_item" ;;
21312    esac
21313    eval "ac_val=\$$ac_var"
21314    if test ".$ac_val" != .yes; then
21315        ac_rc=no
21316        break
21317    fi
21318done
21319if test ".$ac_rc" = .yes; then
21320    :
21321    havemmaptmp="1"
21322
21323ac_decision='USE_SHMEM_MMAP_TMP'
21324ac_decision_msg='Classical mmap() on temporary file'
21325ac_decision_USE_SHMEM_MMAP_TMP=yes
21326ac_decision_USE_SHMEM_MMAP_TMP_msg='Classical mmap() on temporary file'
21327
21328else
21329    :
21330
21331fi
21332
21333ac_rc=yes
21334for ac_spec in header:sys/mman.h func:mmap func:munmap func:shm_open              func:shm_unlink; do
21335    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21336    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21337    case $ac_type in
21338        header )
21339            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21340            ac_var="ac_cv_header_$ac_item"
21341            ;;
21342        file )
21343            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21344            ac_var="ac_cv_file_$ac_item"
21345            ;;
21346        func )   ac_var="ac_cv_func_$ac_item"   ;;
21347        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21348        define ) ac_var="ac_cv_define_$ac_item" ;;
21349        custom ) ac_var="$ac_item" ;;
21350    esac
21351    eval "ac_val=\$$ac_var"
21352    if test ".$ac_val" != .yes; then
21353        ac_rc=no
21354        break
21355    fi
21356done
21357if test ".$ac_rc" = .yes; then
21358    :
21359    havemmapshm="1"
21360
21361ac_decision='USE_SHMEM_MMAP_SHM'
21362ac_decision_msg='mmap() via POSIX.1 shm_open() on temporary file'
21363ac_decision_USE_SHMEM_MMAP_SHM=yes
21364ac_decision_USE_SHMEM_MMAP_SHM_msg='mmap() via POSIX.1 shm_open() on temporary file'
21365
21366else
21367    :
21368
21369fi
21370
21371ac_rc=yes
21372for ac_spec in header:sys/ipc.h header:sys/shm.h header:sys/file.h              func:shmget func:shmat func:shmdt func:shmctl; do
21373    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21374    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21375    case $ac_type in
21376        header )
21377            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21378            ac_var="ac_cv_header_$ac_item"
21379            ;;
21380        file )
21381            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21382            ac_var="ac_cv_file_$ac_item"
21383            ;;
21384        func )   ac_var="ac_cv_func_$ac_item"   ;;
21385        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21386        define ) ac_var="ac_cv_define_$ac_item" ;;
21387        custom ) ac_var="$ac_item" ;;
21388    esac
21389    eval "ac_val=\$$ac_var"
21390    if test ".$ac_val" != .yes; then
21391        ac_rc=no
21392        break
21393    fi
21394done
21395if test ".$ac_rc" = .yes; then
21396    :
21397    haveshmget="1"
21398
21399ac_decision='USE_SHMEM_SHMGET'
21400ac_decision_msg='SysV IPC shmget()'
21401ac_decision_USE_SHMEM_SHMGET=yes
21402ac_decision_USE_SHMEM_SHMGET_msg='SysV IPC shmget()'
21403
21404else
21405    :
21406
21407fi
21408
21409ac_rc=yes
21410for ac_spec in header:kernel/OS.h func:create_area; do
21411    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21412    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21413    case $ac_type in
21414        header )
21415            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21416            ac_var="ac_cv_header_$ac_item"
21417            ;;
21418        file )
21419            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21420            ac_var="ac_cv_file_$ac_item"
21421            ;;
21422        func )   ac_var="ac_cv_func_$ac_item"   ;;
21423        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21424        define ) ac_var="ac_cv_define_$ac_item" ;;
21425        custom ) ac_var="$ac_item" ;;
21426    esac
21427    eval "ac_val=\$$ac_var"
21428    if test ".$ac_val" != .yes; then
21429        ac_rc=no
21430        break
21431    fi
21432done
21433if test ".$ac_rc" = .yes; then
21434    :
21435    havebeosshm="1"
21436
21437ac_decision='USE_SHMEM_BEOS'
21438ac_decision_msg='BeOS areas'
21439ac_decision_USE_SHMEM_BEOS=yes
21440ac_decision_USE_SHMEM_BEOS_msg='BeOS areas'
21441
21442else
21443    :
21444
21445fi
21446
21447ac_rc=yes
21448for ac_spec in header:os2.h; do
21449    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21450    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21451    case $ac_type in
21452        header )
21453            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21454            ac_var="ac_cv_header_$ac_item"
21455            ;;
21456        file )
21457            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21458            ac_var="ac_cv_file_$ac_item"
21459            ;;
21460        func )   ac_var="ac_cv_func_$ac_item"   ;;
21461        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21462        define ) ac_var="ac_cv_define_$ac_item" ;;
21463        custom ) ac_var="$ac_item" ;;
21464    esac
21465    eval "ac_val=\$$ac_var"
21466    if test ".$ac_val" != .yes; then
21467        ac_rc=no
21468        break
21469    fi
21470done
21471if test ".$ac_rc" = .yes; then
21472    :
21473    haveos2shm="1"
21474
21475ac_decision='USE_SHMEM_OS2'
21476ac_decision_msg='OS/2 DosAllocSharedMem()'
21477ac_decision_USE_SHMEM_OS2=yes
21478ac_decision_USE_SHMEM_OS2_msg='OS/2 DosAllocSharedMem()'
21479
21480else
21481    :
21482
21483fi
21484
21485ac_rc=yes
21486for ac_spec in header:windows.h; do
21487    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21488    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21489    case $ac_type in
21490        header )
21491            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21492            ac_var="ac_cv_header_$ac_item"
21493            ;;
21494        file )
21495            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21496            ac_var="ac_cv_file_$ac_item"
21497            ;;
21498        func )   ac_var="ac_cv_func_$ac_item"   ;;
21499        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21500        define ) ac_var="ac_cv_define_$ac_item" ;;
21501        custom ) ac_var="$ac_item" ;;
21502    esac
21503    eval "ac_val=\$$ac_var"
21504    if test ".$ac_val" != .yes; then
21505        ac_rc=no
21506        break
21507    fi
21508done
21509if test ".$ac_rc" = .yes; then
21510    :
21511    havewin32shm="1"
21512
21513ac_decision='USE_SHMEM_WIN32'
21514ac_decision_msg='Windows shared memory'
21515ac_decision_USE_SHMEM_WIN32=yes
21516ac_decision_USE_SHMEM_WIN32_msg='Windows shared memory'
21517
21518else
21519    :
21520
21521fi
21522
21523case $host in
21524    *linux* )
21525        # Linux has problems with MM_SHMT_MMANON even though it reports
21526        # that it has it.
21527        # FIXME - find exact 2.3 version that MMANON was fixed in.  It is
21528        # confirmed fixed in 2.4 series.
21529        if test $os_version -le "240"; then
21530                ac_decision=''
21531    for ac_item in USE_SHMEM_MMAP_TMP USE_SHMEM_MMAP_SHM                                   USE_SHMEM_SHMGET; do
21532         eval "ac_decision_this=\$ac_decision_${ac_item}"
21533         if test ".$ac_decision_this" = .yes; then
21534             ac_decision=$ac_item
21535             eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21536         fi
21537    done
21538
21539        fi
21540        ;;
21541esac
21542if test ".$ac_decision" = .; then
21543    echo "$0:Error: decision on $ac_decision_item failed" 1>&2
21544    exit 1
21545else
21546    if test ".$ac_decision_msg" = .; then
21547        ac_decision_msg="$ac_decision"
21548    fi
21549    cat >>confdefs.h <<_ACEOF
21550#define ${ac_decision_item} 1
21551_ACEOF
21552
21553    { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
21554$as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
21555fi
21556
21557cat >>confdefs.h <<_ACEOF
21558#define $ac_decision 1
21559_ACEOF
21560
21561
21562usemmaptmp="0"
21563usemmapshm="0"
21564useshmget="0"
21565usebeosarea="0"
21566useos2shm="0"
21567usewin32shm="0"
21568
21569case $ac_decision in
21570    USE_SHMEM_MMAP_TMP )
21571        usemmaptmp="1"
21572        ;;
21573    USE_SHMEM_MMAP_SHM )
21574        usemmapshm="1"
21575        ;;
21576    USE_SHMEM_SHMGET )
21577        useshmget="1"
21578        ;;
21579    USE_SHMEM_BEOS )
21580        usebeosarea="1"
21581        ;;
21582    USE_SHMEM_OS2 )
21583        useos2shm="1"
21584        ;;
21585    USE_SHMEM_WIN32 )
21586        usewin32shm="1"
21587        ;;
21588esac
21589
21590# Do we have any shared memory support?
21591if test "$usemmaptmp$usemmapshm$usemmapzero$useshmget$usemmapanon$usebeosarea$useos2shm$usewin32shm" = "00000000"; then
21592  sharedmem="0"
21593else
21594  sharedmem="1"
21595fi
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21613if test "x$ac_cv_type_size_t" = xyes; then :
21614
21615else
21616
21617cat >>confdefs.h <<_ACEOF
21618#define size_t unsigned int
21619_ACEOF
21620
21621fi
21622
21623# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21624# for constant arguments.  Useless!
21625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21626$as_echo_n "checking for working alloca.h... " >&6; }
21627if ${ac_cv_working_alloca_h+:} false; then :
21628  $as_echo_n "(cached) " >&6
21629else
21630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21631/* end confdefs.h.  */
21632#include <alloca.h>
21633int
21634main ()
21635{
21636char *p = (char *) alloca (2 * sizeof (int));
21637			  if (p) return 0;
21638  ;
21639  return 0;
21640}
21641_ACEOF
21642if ac_fn_c_try_link "$LINENO"; then :
21643  ac_cv_working_alloca_h=yes
21644else
21645  ac_cv_working_alloca_h=no
21646fi
21647rm -f core conftest.err conftest.$ac_objext \
21648    conftest$ac_exeext conftest.$ac_ext
21649fi
21650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21651$as_echo "$ac_cv_working_alloca_h" >&6; }
21652if test $ac_cv_working_alloca_h = yes; then
21653
21654$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21655
21656fi
21657
21658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21659$as_echo_n "checking for alloca... " >&6; }
21660if ${ac_cv_func_alloca_works+:} false; then :
21661  $as_echo_n "(cached) " >&6
21662else
21663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21664/* end confdefs.h.  */
21665#ifdef __GNUC__
21666# define alloca __builtin_alloca
21667#else
21668# ifdef _MSC_VER
21669#  include <malloc.h>
21670#  define alloca _alloca
21671# else
21672#  ifdef HAVE_ALLOCA_H
21673#   include <alloca.h>
21674#  else
21675#   ifdef _AIX
21676 #pragma alloca
21677#   else
21678#    ifndef alloca /* predefined by HP cc +Olibcalls */
21679void *alloca (size_t);
21680#    endif
21681#   endif
21682#  endif
21683# endif
21684#endif
21685
21686int
21687main ()
21688{
21689char *p = (char *) alloca (1);
21690				    if (p) return 0;
21691  ;
21692  return 0;
21693}
21694_ACEOF
21695if ac_fn_c_try_link "$LINENO"; then :
21696  ac_cv_func_alloca_works=yes
21697else
21698  ac_cv_func_alloca_works=no
21699fi
21700rm -f core conftest.err conftest.$ac_objext \
21701    conftest$ac_exeext conftest.$ac_ext
21702fi
21703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21704$as_echo "$ac_cv_func_alloca_works" >&6; }
21705
21706if test $ac_cv_func_alloca_works = yes; then
21707
21708$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21709
21710else
21711  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21712# that cause trouble.  Some versions do not even contain alloca or
21713# contain a buggy version.  If you still want to use their alloca,
21714# use ar to extract alloca.o from them instead of compiling alloca.c.
21715
21716ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21717
21718$as_echo "#define C_ALLOCA 1" >>confdefs.h
21719
21720
21721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21722$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21723if ${ac_cv_os_cray+:} false; then :
21724  $as_echo_n "(cached) " >&6
21725else
21726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21727/* end confdefs.h.  */
21728#if defined CRAY && ! defined CRAY2
21729webecray
21730#else
21731wenotbecray
21732#endif
21733
21734_ACEOF
21735if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21736  $EGREP "webecray" >/dev/null 2>&1; then :
21737  ac_cv_os_cray=yes
21738else
21739  ac_cv_os_cray=no
21740fi
21741rm -f conftest*
21742
21743fi
21744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21745$as_echo "$ac_cv_os_cray" >&6; }
21746if test $ac_cv_os_cray = yes; then
21747  for ac_func in _getb67 GETB67 getb67; do
21748    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21749ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21750if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21751
21752cat >>confdefs.h <<_ACEOF
21753#define CRAY_STACKSEG_END $ac_func
21754_ACEOF
21755
21756    break
21757fi
21758
21759  done
21760fi
21761
21762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21763$as_echo_n "checking stack direction for C alloca... " >&6; }
21764if ${ac_cv_c_stack_direction+:} false; then :
21765  $as_echo_n "(cached) " >&6
21766else
21767  if test "$cross_compiling" = yes; then :
21768  ac_cv_c_stack_direction=0
21769else
21770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21771/* end confdefs.h.  */
21772$ac_includes_default
21773int
21774find_stack_direction (int *addr, int depth)
21775{
21776  int dir, dummy = 0;
21777  if (! addr)
21778    addr = &dummy;
21779  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
21780  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
21781  return dir + dummy;
21782}
21783
21784int
21785main (int argc, char **argv)
21786{
21787  return find_stack_direction (0, argc + !argv + 20) < 0;
21788}
21789_ACEOF
21790if ac_fn_c_try_run "$LINENO"; then :
21791  ac_cv_c_stack_direction=1
21792else
21793  ac_cv_c_stack_direction=-1
21794fi
21795rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21796  conftest.$ac_objext conftest.beam conftest.$ac_ext
21797fi
21798
21799fi
21800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21801$as_echo "$ac_cv_c_stack_direction" >&6; }
21802cat >>confdefs.h <<_ACEOF
21803#define STACK_DIRECTION $ac_cv_c_stack_direction
21804_ACEOF
21805
21806
21807fi
21808
21809
21810for ac_func in calloc setsid isinf isnan \
21811                getenv putenv setenv unsetenv \
21812                writev getifaddrs utime utimes
21813do :
21814  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21815ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21816if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21817  cat >>confdefs.h <<_ACEOF
21818#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21819_ACEOF
21820
21821fi
21822done
21823
21824for ac_func in setrlimit
21825do :
21826  ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
21827if test "x$ac_cv_func_setrlimit" = xyes; then :
21828  cat >>confdefs.h <<_ACEOF
21829#define HAVE_SETRLIMIT 1
21830_ACEOF
21831  have_setrlimit="1"
21832else
21833   have_setrlimit="0"
21834fi
21835done
21836
21837for ac_func in getrlimit
21838do :
21839  ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
21840if test "x$ac_cv_func_getrlimit" = xyes; then :
21841  cat >>confdefs.h <<_ACEOF
21842#define HAVE_GETRLIMIT 1
21843_ACEOF
21844  have_getrlimit="1"
21845else
21846   have_getrlimit="0"
21847fi
21848done
21849
21850sendfile="0"
21851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfilev in -lsendfile" >&5
21852$as_echo_n "checking for sendfilev in -lsendfile... " >&6; }
21853if ${ac_cv_lib_sendfile_sendfilev+:} false; then :
21854  $as_echo_n "(cached) " >&6
21855else
21856  ac_check_lib_save_LIBS=$LIBS
21857LIBS="-lsendfile  $LIBS"
21858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21859/* end confdefs.h.  */
21860
21861/* Override any GCC internal prototype to avoid an error.
21862   Use char because int might match the return type of a GCC
21863   builtin and then its argument prototype would still apply.  */
21864#ifdef __cplusplus
21865extern "C"
21866#endif
21867char sendfilev ();
21868int
21869main ()
21870{
21871return sendfilev ();
21872  ;
21873  return 0;
21874}
21875_ACEOF
21876if ac_fn_c_try_link "$LINENO"; then :
21877  ac_cv_lib_sendfile_sendfilev=yes
21878else
21879  ac_cv_lib_sendfile_sendfilev=no
21880fi
21881rm -f core conftest.err conftest.$ac_objext \
21882    conftest$ac_exeext conftest.$ac_ext
21883LIBS=$ac_check_lib_save_LIBS
21884fi
21885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfilev" >&5
21886$as_echo "$ac_cv_lib_sendfile_sendfilev" >&6; }
21887if test "x$ac_cv_lib_sendfile_sendfilev" = xyes; then :
21888  cat >>confdefs.h <<_ACEOF
21889#define HAVE_LIBSENDFILE 1
21890_ACEOF
21891
21892  LIBS="-lsendfile $LIBS"
21893
21894fi
21895
21896for ac_func in sendfile send_file sendfilev
21897do :
21898  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21899ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21900if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21901  cat >>confdefs.h <<_ACEOF
21902#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21903_ACEOF
21904  sendfile="1"
21905fi
21906done
21907
21908
21909
21910
21911# Check whether --with-sendfile was given.
21912if test "${with_sendfile+set}" = set; then :
21913  withval=$with_sendfile;  if test "$withval" = "yes"; then
21914        sendfile="1"
21915    else
21916        sendfile="0"
21917    fi
21918else
21919
21920    orig_sendfile=$sendfile
21921    case $host in
21922        *freebsd*)
21923            # FreeBSD < 4.2 has issues with threads+sendfile
21924            if test $os_version -le "401999"; then
21925                if test "$threads" = "1"; then
21926                    sendfile="0"
21927                fi
21928            fi
21929            ;;
21930        *alpha*-dec-osf* )
21931            sendfile="0"
21932            ;;
21933        s390-*-linux-gnu)
21934            # disable sendfile support for 2.2 on S/390
21935            if test $os_version -lt 240; then
21936                sendfile="0"
21937            fi
21938            ;;
21939        *aix*)
21940            # compiler-independent check for 64-bit build
21941            # The cast to long int works around a bug in the HP C Compiler
21942# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21943# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21944# This bug is HP SR number 8606223364.
21945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
21946$as_echo_n "checking size of void*... " >&6; }
21947if ${ac_cv_sizeof_voidp+:} false; then :
21948  $as_echo_n "(cached) " >&6
21949else
21950  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
21951
21952else
21953  if test "$ac_cv_type_voidp" = yes; then
21954     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21956as_fn_error 77 "cannot compute sizeof (void*)
21957See \`config.log' for more details" "$LINENO" 5; }
21958   else
21959     ac_cv_sizeof_voidp=0
21960   fi
21961fi
21962
21963fi
21964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
21965$as_echo "$ac_cv_sizeof_voidp" >&6; }
21966
21967
21968
21969cat >>confdefs.h <<_ACEOF
21970#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
21971_ACEOF
21972
21973
21974            if test "x$ac_cv_sizeof_voidp" = "x8"; then
21975                # sendfile not working for 64-bit build
21976                sendfile="0"
21977            fi
21978            ;;
21979    esac
21980    if test "$orig_sendfile" != "$sendfile"; then
21981      echo "sendfile support disabled to avoid system problem"
21982    fi
21983fi
21984
21985
21986
21987for ac_func in sigaction
21988do :
21989  ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
21990if test "x$ac_cv_func_sigaction" = xyes; then :
21991  cat >>confdefs.h <<_ACEOF
21992#define HAVE_SIGACTION 1
21993_ACEOF
21994  have_sigaction="1"
21995else
21996   have_sigaction="0"
21997fi
21998done
21999
22000ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
22001/* NetBSD declares sys_siglist in unistd.h.  */
22002#ifdef HAVE_UNISTD_H
22003# include <unistd.h>
22004#endif
22005
22006"
22007if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
22008  ac_have_decl=1
22009else
22010  ac_have_decl=0
22011fi
22012
22013cat >>confdefs.h <<_ACEOF
22014#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
22015_ACEOF
22016
22017
22018
22019for ac_func in fork
22020do :
22021  ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
22022if test "x$ac_cv_func_fork" = xyes; then :
22023  cat >>confdefs.h <<_ACEOF
22024#define HAVE_FORK 1
22025_ACEOF
22026  fork="1"
22027else
22028   fork="0"
22029fi
22030done
22031
22032
22033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr" >&5
22034$as_echo_n "checking for inet_addr... " >&6; }
22035if ${ac_cv_func_inet_addr+:} false; then :
22036  $as_echo_n "(cached) " >&6
22037else
22038
22039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22040/* end confdefs.h.  */
22041
22042#ifdef HAVE_SYS_TYPES_H
22043#include <sys/types.h>
22044#endif
22045#ifdef HAVE_ARPA_INET_H
22046#include <arpa/inet.h>
22047#endif
22048
22049int
22050main ()
22051{
22052
22053inet_addr("127.0.0.1");
22054
22055  ;
22056  return 0;
22057}
22058_ACEOF
22059if ac_fn_c_try_compile "$LINENO"; then :
22060
22061    ac_cv_func_inet_addr=yes
22062
22063else
22064
22065    ac_cv_func_inet_addr=no
22066
22067fi
22068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22069
22070fi
22071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_addr" >&5
22072$as_echo "$ac_cv_func_inet_addr" >&6; }
22073
22074if test "$ac_cv_func_inet_addr" = "yes"; then
22075  have_inet_addr=1
22076else
22077  have_inet_addr=0
22078fi
22079
22080
22081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_network" >&5
22082$as_echo_n "checking for inet_network... " >&6; }
22083if ${ac_cv_func_inet_network+:} false; then :
22084  $as_echo_n "(cached) " >&6
22085else
22086
22087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22088/* end confdefs.h.  */
22089
22090#ifdef HAVE_SYS_TYPES_H
22091#include <sys/types.h>
22092#endif
22093#ifdef HAVE_ARPA_INET_H
22094#include <arpa/inet.h>
22095#endif
22096
22097int
22098main ()
22099{
22100
22101inet_network("127.0.0.1");
22102
22103  ;
22104  return 0;
22105}
22106_ACEOF
22107if ac_fn_c_try_compile "$LINENO"; then :
22108
22109    ac_cv_func_inet_network=yes
22110
22111else
22112
22113    ac_cv_func_inet_network=no
22114
22115fi
22116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22117
22118fi
22119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_network" >&5
22120$as_echo "$ac_cv_func_inet_network" >&6; }
22121
22122if test "$ac_cv_func_inet_network" = "yes"; then
22123  have_inet_network=1
22124else
22125  have_inet_network=0
22126fi
22127
22128
22129ac_fn_c_check_func "$LINENO" "_getch" "ac_cv_func__getch"
22130if test "x$ac_cv_func__getch" = xyes; then :
22131
22132fi
22133
22134for ac_func in strerror_r
22135do :
22136  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
22137if test "x$ac_cv_func_strerror_r" = xyes; then :
22138  cat >>confdefs.h <<_ACEOF
22139#define HAVE_STRERROR_R 1
22140_ACEOF
22141  strerror_r="1"
22142else
22143   strerror_r="0"
22144fi
22145done
22146
22147if test "$strerror_r" = "1"; then
22148
22149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of return code from strerror_r" >&5
22150$as_echo_n "checking for type of return code from strerror_r... " >&6; }
22151if test "$cross_compiling" = yes; then :
22152
22153    ac_cv_strerror_r_rc_int=no
22154else
22155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22156/* end confdefs.h.  */
22157
22158#include <errno.h>
22159#include <string.h>
22160#include <stdio.h>
22161main()
22162{
22163  char buf[1024];
22164  if (strerror_r(ERANGE, buf, sizeof buf) < 1) {
22165    exit(0);
22166  }
22167  else {
22168    exit(1);
22169  }
22170}
22171_ACEOF
22172if ac_fn_c_try_run "$LINENO"; then :
22173
22174    ac_cv_strerror_r_rc_int=yes
22175else
22176
22177    ac_cv_strerror_r_rc_int=no
22178fi
22179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22180  conftest.$ac_objext conftest.beam conftest.$ac_ext
22181fi
22182
22183if test "x$ac_cv_strerror_r_rc_int" = xyes; then
22184
22185$as_echo "#define STRERROR_R_RC_INT 1" >>confdefs.h
22186
22187  msg="int"
22188else
22189  msg="pointer"
22190fi
22191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
22192$as_echo "$msg" >&6; }
22193
22194fi
22195for ac_func in mmap
22196do :
22197  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
22198if test "x$ac_cv_func_mmap" = xyes; then :
22199  cat >>confdefs.h <<_ACEOF
22200#define HAVE_MMAP 1
22201_ACEOF
22202  mmap="1"
22203else
22204   mmap="0"
22205fi
22206done
22207
22208if test "$native_mmap_emul" = "1"; then
22209    mmap="1"
22210fi
22211for ac_func in memmove
22212do :
22213  ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22214if test "x$ac_cv_func_memmove" = xyes; then :
22215  cat >>confdefs.h <<_ACEOF
22216#define HAVE_MEMMOVE 1
22217_ACEOF
22218  have_memmove="1"
22219else
22220  have_memmove="0"
22221fi
22222done
22223
22224for ac_func in getpass getpassphrase gmtime_r localtime_r mkstemp
22225do :
22226  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22227ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22228if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22229  cat >>confdefs.h <<_ACEOF
22230#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22231_ACEOF
22232
22233fi
22234done
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sigwait takes one argument" >&5
22250$as_echo_n "checking whether sigwait takes one argument... " >&6; }
22251if ${ac_cv_sigwait_one_arg+:} false; then :
22252  $as_echo_n "(cached) " >&6
22253else
22254
22255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22256/* end confdefs.h.  */
22257
22258#if defined(__NETBSD__) || defined(DARWIN)
22259    /* When using the unproven-pthreads package, we need to pull in this
22260     * header to get a prototype for sigwait().  Else things will fail later
22261     * on.  XXX Should probably be fixed in the unproven-pthreads package.
22262     * Darwin is declaring sigwait() in the wrong place as well.
22263     */
22264#include <pthread.h>
22265#endif
22266#include <signal.h>
22267
22268int
22269main ()
22270{
22271
22272  sigset_t set;
22273
22274  sigwait(&set);
22275
22276  ;
22277  return 0;
22278}
22279_ACEOF
22280if ac_fn_c_try_compile "$LINENO"; then :
22281
22282  ac_cv_sigwait_one_arg=yes
22283
22284else
22285
22286  ac_cv_sigwait_one_arg=no
22287
22288fi
22289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22290fi
22291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sigwait_one_arg" >&5
22292$as_echo "$ac_cv_sigwait_one_arg" >&6; }
22293  if test "$ac_cv_sigwait_one_arg" = "yes"; then
22294
22295$as_echo "#define SIGWAIT_TAKES_ONE_ARG 1" >>confdefs.h
22296
22297  fi
22298
22299
22300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
22301$as_echo_n "checking for ANSI C header files... " >&6; }
22302if ${ac_cv_header_stdc+:} false; then :
22303  $as_echo_n "(cached) " >&6
22304else
22305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22306/* end confdefs.h.  */
22307#include <stdlib.h>
22308#include <stdarg.h>
22309#include <string.h>
22310#include <float.h>
22311
22312int
22313main ()
22314{
22315
22316  ;
22317  return 0;
22318}
22319_ACEOF
22320if ac_fn_c_try_compile "$LINENO"; then :
22321  ac_cv_header_stdc=yes
22322else
22323  ac_cv_header_stdc=no
22324fi
22325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22326
22327if test $ac_cv_header_stdc = yes; then
22328  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22330/* end confdefs.h.  */
22331#include <string.h>
22332
22333_ACEOF
22334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22335  $EGREP "memchr" >/dev/null 2>&1; then :
22336
22337else
22338  ac_cv_header_stdc=no
22339fi
22340rm -f conftest*
22341
22342fi
22343
22344if test $ac_cv_header_stdc = yes; then
22345  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22347/* end confdefs.h.  */
22348#include <stdlib.h>
22349
22350_ACEOF
22351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22352  $EGREP "free" >/dev/null 2>&1; then :
22353
22354else
22355  ac_cv_header_stdc=no
22356fi
22357rm -f conftest*
22358
22359fi
22360
22361if test $ac_cv_header_stdc = yes; then
22362  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22363  if test "$cross_compiling" = yes; then :
22364  :
22365else
22366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22367/* end confdefs.h.  */
22368#include <ctype.h>
22369#include <stdlib.h>
22370#if ((' ' & 0x0FF) == 0x020)
22371# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22372# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22373#else
22374# define ISLOWER(c) \
22375		   (('a' <= (c) && (c) <= 'i') \
22376		     || ('j' <= (c) && (c) <= 'r') \
22377		     || ('s' <= (c) && (c) <= 'z'))
22378# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22379#endif
22380
22381#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22382int
22383main ()
22384{
22385  int i;
22386  for (i = 0; i < 256; i++)
22387    if (XOR (islower (i), ISLOWER (i))
22388	|| toupper (i) != TOUPPER (i))
22389      return 2;
22390  return 0;
22391}
22392_ACEOF
22393if ac_fn_c_try_run "$LINENO"; then :
22394
22395else
22396  ac_cv_header_stdc=no
22397fi
22398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22399  conftest.$ac_objext conftest.beam conftest.$ac_ext
22400fi
22401
22402fi
22403fi
22404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
22405$as_echo "$ac_cv_header_stdc" >&6; }
22406if test $ac_cv_header_stdc = yes; then
22407
22408$as_echo "#define STDC_HEADERS 1" >>confdefs.h
22409
22410fi
22411
22412
22413
22414for ac_header in ByteOrder.h		\
22415    conio.h		\
22416    crypt.h		\
22417    ctype.h		\
22418    dir.h		\
22419    dirent.h		\
22420    dl.h		\
22421    dlfcn.h		\
22422    errno.h		\
22423    fcntl.h		\
22424    grp.h		\
22425    io.h		\
22426    limits.h		\
22427    mach-o/dyld.h	\
22428    malloc.h		\
22429    memory.h		\
22430    netdb.h		\
22431    osreldate.h		\
22432    poll.h		\
22433    process.h		\
22434    pwd.h		\
22435    semaphore.h		\
22436    signal.h		\
22437    stdarg.h		\
22438    stddef.h		\
22439    stdio.h		\
22440    stdlib.h		\
22441    string.h		\
22442    strings.h		\
22443    sysapi.h		\
22444    sysgtime.h		\
22445    termios.h		\
22446    time.h		\
22447    tpfeq.h		\
22448    tpfio.h		\
22449    unistd.h		\
22450    unix.h		\
22451    windows.h		\
22452    winsock2.h		\
22453    arpa/inet.h		\
22454    kernel/OS.h		\
22455    net/errno.h		\
22456    netinet/in.h	\
22457    netinet/sctp.h      \
22458    netinet/sctp_uio.h  \
22459    sys/file.h		\
22460    sys/ioctl.h         \
22461    sys/mman.h		\
22462    sys/param.h         \
22463    sys/poll.h		\
22464    sys/resource.h	\
22465    sys/select.h	\
22466    sys/sem.h		\
22467    sys/sendfile.h	\
22468    sys/signal.h	\
22469    sys/socket.h	\
22470    sys/sockio.h	\
22471    sys/stat.h          \
22472    sys/sysctl.h	\
22473    sys/syslimits.h	\
22474    sys/time.h		\
22475    sys/types.h		\
22476    sys/uio.h		\
22477    sys/un.h		\
22478    sys/wait.h
22479do :
22480  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22481ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22482if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22483  cat >>confdefs.h <<_ACEOF
22484#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22485_ACEOF
22486
22487fi
22488
22489done
22490
22491for aprt_i in ByteOrder.h		\
22492    conio.h		\
22493    crypt.h		\
22494    ctype.h		\
22495    dir.h		\
22496    dirent.h		\
22497    dl.h		\
22498    dlfcn.h		\
22499    errno.h		\
22500    fcntl.h		\
22501    grp.h		\
22502    io.h		\
22503    limits.h		\
22504    mach-o/dyld.h	\
22505    malloc.h		\
22506    memory.h		\
22507    netdb.h		\
22508    osreldate.h		\
22509    poll.h		\
22510    process.h		\
22511    pwd.h		\
22512    semaphore.h		\
22513    signal.h		\
22514    stdarg.h		\
22515    stddef.h		\
22516    stdio.h		\
22517    stdlib.h		\
22518    string.h		\
22519    strings.h		\
22520    sysapi.h		\
22521    sysgtime.h		\
22522    termios.h		\
22523    time.h		\
22524    tpfeq.h		\
22525    tpfio.h		\
22526    unistd.h		\
22527    unix.h		\
22528    windows.h		\
22529    winsock2.h		\
22530    arpa/inet.h		\
22531    kernel/OS.h		\
22532    net/errno.h		\
22533    netinet/in.h	\
22534    netinet/sctp.h      \
22535    netinet/sctp_uio.h  \
22536    sys/file.h		\
22537    sys/ioctl.h         \
22538    sys/mman.h		\
22539    sys/param.h         \
22540    sys/poll.h		\
22541    sys/resource.h	\
22542    sys/select.h	\
22543    sys/sem.h		\
22544    sys/sendfile.h	\
22545    sys/signal.h	\
22546    sys/socket.h	\
22547    sys/sockio.h	\
22548    sys/stat.h          \
22549    sys/sysctl.h	\
22550    sys/syslimits.h	\
22551    sys/time.h		\
22552    sys/types.h		\
22553    sys/uio.h		\
22554    sys/un.h		\
22555    sys/wait.h
22556do
22557    ac_safe=`echo "$aprt_i" | sed 'y%./+-%__p_%'`
22558    aprt_2=`echo "$aprt_i" | sed -e 's%/%_%g' -e 's/\.//g' -e 's/-//g'`
22559    if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22560       eval "$aprt_2=1"
22561    else
22562       eval "$aprt_2=0"
22563    fi
22564done
22565
22566
22567# IRIX 6.5 has a problem in <netinet/tcp.h> which prevents it from
22568# being included by itself.  Check for <netinet/tcp.h> manually,
22569# including another header file first.
22570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netinet/tcp.h" >&5
22571$as_echo_n "checking for netinet/tcp.h... " >&6; }
22572if ${apr_cv_hdr_netinet_tcp_h+:} false; then :
22573  $as_echo_n "(cached) " >&6
22574else
22575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22576/* end confdefs.h.  */
22577#ifdef HAVE_NETINET_IN_H
22578#include <netinet/in.h>
22579#endif
22580#include <netinet/tcp.h>
22581
22582_ACEOF
22583if ac_fn_c_try_cpp "$LINENO"; then :
22584  apr_cv_hdr_netinet_tcp_h=yes
22585else
22586  apr_cv_hdr_netinet_tcp_h=no
22587fi
22588rm -f conftest.err conftest.i conftest.$ac_ext
22589fi
22590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_hdr_netinet_tcp_h" >&5
22591$as_echo "$apr_cv_hdr_netinet_tcp_h" >&6; }
22592if test "$apr_cv_hdr_netinet_tcp_h" = "yes"; then
22593   netinet_tcph=1
22594
22595$as_echo "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
22596
22597else
22598   netinet_tcph=0
22599fi
22600
22601
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613
22614
22615
22616
22617
22618
22619
22620
22621
22622
22623
22624
22625
22626
22627
22628
22629
22630
22631
22632
22633
22634
22635
22636
22637
22638
22639
22640# Checking for h_errno in <netdb.h>
22641if test "$netdbh" = "1"; then
22642
22643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5
22644$as_echo_n "checking for h_errno in netdb.h... " >&6; }
22645  if ${ac_cv_h_errno_cppflags+:} false; then :
22646  $as_echo_n "(cached) " >&6
22647else
22648
22649
22650  if test x != x; then
22651    CPPFLAGS="-D $CPPFLAGS"
22652  fi
22653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22654/* end confdefs.h.  */
22655
22656#ifdef HAVE_SYS_TYPES_H
22657#include <sys/types.h>
22658#endif
22659#ifdef HAVE_NETDB_H
22660#include <netdb.h>
22661#endif
22662
22663int
22664main ()
22665{
22666
22667int h_e = h_errno;
22668
22669  ;
22670  return 0;
22671}
22672_ACEOF
22673if ac_fn_c_try_compile "$LINENO"; then :
22674
22675  if test x != x; then
22676    ac_cv_h_errno_cppflags=""
22677  else
22678    ac_cv_h_errno_cppflags=yes
22679  fi
22680
22681else
22682
22683  ac_cv_h_errno_cppflags=no
22684
22685fi
22686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22687    if test "$ac_cv_h_errno_cppflags" = "no"; then
22688      ac_save="$CPPFLAGS"
22689      for flag in _XOPEN_SOURCE_EXTENDED; do
22690
22691  if test x$flag != x; then
22692    CPPFLAGS="-D$flag $CPPFLAGS"
22693  fi
22694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22695/* end confdefs.h.  */
22696
22697#ifdef HAVE_SYS_TYPES_H
22698#include <sys/types.h>
22699#endif
22700#ifdef HAVE_NETDB_H
22701#include <netdb.h>
22702#endif
22703
22704int
22705main ()
22706{
22707
22708int h_e = h_errno;
22709
22710  ;
22711  return 0;
22712}
22713_ACEOF
22714if ac_fn_c_try_compile "$LINENO"; then :
22715
22716  if test x$flag != x; then
22717    ac_cv_h_errno_cppflags="$flag"
22718  else
22719    ac_cv_h_errno_cppflags=yes
22720  fi
22721
22722else
22723
22724  ac_cv_h_errno_cppflags=no
22725
22726fi
22727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22728        if test "$ac_cv_h_errno_cppflags" != "no"; then
22729          break
22730        fi
22731      done
22732      CPPFLAGS="$ac_save"
22733    fi
22734
22735fi
22736
22737  if test "$ac_cv_h_errno_cppflags" != "no"; then
22738    if test "$ac_cv_h_errno_cppflags" != "yes"; then
22739      CPPFLAGS="-D$ac_cv_h_errno_cppflags $CPPFLAGS"
22740      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -D$ac_cv_h_errno_cppflags" >&5
22741$as_echo "yes, with -D$ac_cv_h_errno_cppflags" >&6; }
22742    else
22743      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5
22744$as_echo "$ac_cv_h_errno_cppflags" >&6; }
22745    fi
22746  else
22747    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5
22748$as_echo "$ac_cv_h_errno_cppflags" >&6; }
22749  fi
22750
22751  if test "$ac_cv_h_errno_cflags" = "no"; then
22752    as_fn_error $? "can not find h_errno in netdb.h" "$LINENO" 5
22753  fi
22754fi
22755
22756# Check whether --enable-allocator-uses-mmap was given.
22757if test "${enable_allocator_uses_mmap+set}" = set; then :
22758  enableval=$enable_allocator_uses_mmap;  if test "$enableval" = "yes"; then
22759        ac_rc=yes
22760for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
22761    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
22762    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
22763    case $ac_type in
22764        header )
22765            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22766            ac_var="ac_cv_header_$ac_item"
22767            ;;
22768        file )
22769            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22770            ac_var="ac_cv_file_$ac_item"
22771            ;;
22772        func )   ac_var="ac_cv_func_$ac_item"   ;;
22773        struct ) ac_var="ac_cv_struct_$ac_item" ;;
22774        define ) ac_var="ac_cv_define_$ac_item" ;;
22775        custom ) ac_var="$ac_item" ;;
22776    esac
22777    eval "ac_val=\$$ac_var"
22778    if test ".$ac_val" != .yes; then
22779        ac_rc=no
22780        break
22781    fi
22782done
22783if test ".$ac_rc" = .yes; then
22784    :
22785
22786$as_echo "#define APR_ALLOCATOR_USES_MMAP 1" >>confdefs.h
22787
22788else
22789    :
22790    as_fn_error $? "mmap()/MAP_ANON not supported" "$LINENO" 5
22791
22792fi
22793
22794    fi
22795
22796fi
22797
22798
22799ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22800if test "x$ac_cv_type_off_t" = xyes; then :
22801
22802else
22803
22804cat >>confdefs.h <<_ACEOF
22805#define off_t long int
22806_ACEOF
22807
22808fi
22809
22810ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22811if test "x$ac_cv_type_pid_t" = xyes; then :
22812
22813else
22814
22815cat >>confdefs.h <<_ACEOF
22816#define pid_t int
22817_ACEOF
22818
22819fi
22820
22821ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22822if test "x$ac_cv_type_size_t" = xyes; then :
22823
22824else
22825
22826cat >>confdefs.h <<_ACEOF
22827#define size_t unsigned int
22828_ACEOF
22829
22830fi
22831
22832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22833$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22834if ${ac_cv_type_uid_t+:} false; then :
22835  $as_echo_n "(cached) " >&6
22836else
22837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22838/* end confdefs.h.  */
22839#include <sys/types.h>
22840
22841_ACEOF
22842if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22843  $EGREP "uid_t" >/dev/null 2>&1; then :
22844  ac_cv_type_uid_t=yes
22845else
22846  ac_cv_type_uid_t=no
22847fi
22848rm -f conftest*
22849
22850fi
22851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22852$as_echo "$ac_cv_type_uid_t" >&6; }
22853if test $ac_cv_type_uid_t = no; then
22854
22855$as_echo "#define uid_t int" >>confdefs.h
22856
22857
22858$as_echo "#define gid_t int" >>confdefs.h
22859
22860fi
22861
22862ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22863if test "x$ac_cv_type_ssize_t" = xyes; then :
22864
22865else
22866
22867cat >>confdefs.h <<_ACEOF
22868#define ssize_t int
22869_ACEOF
22870
22871fi
22872
22873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22874$as_echo_n "checking for inline... " >&6; }
22875if ${ac_cv_c_inline+:} false; then :
22876  $as_echo_n "(cached) " >&6
22877else
22878  ac_cv_c_inline=no
22879for ac_kw in inline __inline__ __inline; do
22880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22881/* end confdefs.h.  */
22882#ifndef __cplusplus
22883typedef int foo_t;
22884static $ac_kw foo_t static_foo () {return 0; }
22885$ac_kw foo_t foo () {return 0; }
22886#endif
22887
22888_ACEOF
22889if ac_fn_c_try_compile "$LINENO"; then :
22890  ac_cv_c_inline=$ac_kw
22891fi
22892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22893  test "$ac_cv_c_inline" != no && break
22894done
22895
22896fi
22897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22898$as_echo "$ac_cv_c_inline" >&6; }
22899
22900case $ac_cv_c_inline in
22901  inline | yes) ;;
22902  *)
22903    case $ac_cv_c_inline in
22904      no) ac_val=;;
22905      *) ac_val=$ac_cv_c_inline;;
22906    esac
22907    cat >>confdefs.h <<_ACEOF
22908#ifndef __cplusplus
22909#define inline $ac_val
22910#endif
22911_ACEOF
22912    ;;
22913esac
22914
22915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22916$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22917if ${ac_cv_c_const+:} false; then :
22918  $as_echo_n "(cached) " >&6
22919else
22920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22921/* end confdefs.h.  */
22922
22923int
22924main ()
22925{
22926
22927#ifndef __cplusplus
22928  /* Ultrix mips cc rejects this sort of thing.  */
22929  typedef int charset[2];
22930  const charset cs = { 0, 0 };
22931  /* SunOS 4.1.1 cc rejects this.  */
22932  char const *const *pcpcc;
22933  char **ppc;
22934  /* NEC SVR4.0.2 mips cc rejects this.  */
22935  struct point {int x, y;};
22936  static struct point const zero = {0,0};
22937  /* AIX XL C 1.02.0.0 rejects this.
22938     It does not let you subtract one const X* pointer from another in
22939     an arm of an if-expression whose if-part is not a constant
22940     expression */
22941  const char *g = "string";
22942  pcpcc = &g + (g ? g-g : 0);
22943  /* HPUX 7.0 cc rejects these. */
22944  ++pcpcc;
22945  ppc = (char**) pcpcc;
22946  pcpcc = (char const *const *) ppc;
22947  { /* SCO 3.2v4 cc rejects this sort of thing.  */
22948    char tx;
22949    char *t = &tx;
22950    char const *s = 0 ? (char *) 0 : (char const *) 0;
22951
22952    *t++ = 0;
22953    if (s) return 0;
22954  }
22955  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22956    int x[] = {25, 17};
22957    const int *foo = &x[0];
22958    ++foo;
22959  }
22960  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22961    typedef const int *iptr;
22962    iptr p = 0;
22963    ++p;
22964  }
22965  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22966       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22967    struct s { int j; const int *ap[3]; } bx;
22968    struct s *b = &bx; b->j = 5;
22969  }
22970  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22971    const int foo = 10;
22972    if (!foo) return 0;
22973  }
22974  return !cs[0] && !zero.x;
22975#endif
22976
22977  ;
22978  return 0;
22979}
22980_ACEOF
22981if ac_fn_c_try_compile "$LINENO"; then :
22982  ac_cv_c_const=yes
22983else
22984  ac_cv_c_const=no
22985fi
22986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22987fi
22988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22989$as_echo "$ac_cv_c_const" >&6; }
22990if test $ac_cv_c_const = no; then
22991
22992$as_echo "#define const /**/" >>confdefs.h
22993
22994fi
22995
22996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
22997$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
22998if ${ac_cv_func_setpgrp_void+:} false; then :
22999  $as_echo_n "(cached) " >&6
23000else
23001  if test "$cross_compiling" = yes; then :
23002  as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
23003else
23004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23005/* end confdefs.h.  */
23006$ac_includes_default
23007int
23008main ()
23009{
23010/* If this system has a BSD-style setpgrp which takes arguments,
23011  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
23012  exit successfully. */
23013  return setpgrp (1,1) != -1;
23014  ;
23015  return 0;
23016}
23017_ACEOF
23018if ac_fn_c_try_run "$LINENO"; then :
23019  ac_cv_func_setpgrp_void=no
23020else
23021  ac_cv_func_setpgrp_void=yes
23022fi
23023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23024  conftest.$ac_objext conftest.beam conftest.$ac_ext
23025fi
23026
23027fi
23028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
23029$as_echo "$ac_cv_func_setpgrp_void" >&6; }
23030if test $ac_cv_func_setpgrp_void = yes; then
23031
23032$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
23033
23034fi
23035
23036
23037
23038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
23039$as_echo_n "checking for socklen_t... " >&6; }
23040if ${ac_cv_socklen_t+:} false; then :
23041  $as_echo_n "(cached) " >&6
23042else
23043
23044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23045/* end confdefs.h.  */
23046
23047#ifdef HAVE_SYS_TYPES_H
23048#include <sys/types.h>
23049#endif
23050#ifdef HAVE_SYS_SOCKET_H
23051#include <sys/socket.h>
23052#endif
23053
23054int
23055main ()
23056{
23057
23058socklen_t foo = (socklen_t) 0;
23059
23060  ;
23061  return 0;
23062}
23063_ACEOF
23064if ac_fn_c_try_compile "$LINENO"; then :
23065
23066    ac_cv_socklen_t=yes
23067
23068else
23069
23070    ac_cv_socklen_t=no
23071
23072fi
23073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23074
23075fi
23076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_socklen_t" >&5
23077$as_echo "$ac_cv_socklen_t" >&6; }
23078
23079if test "$ac_cv_socklen_t" = "yes"; then
23080
23081$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
23082
23083fi
23084
23085
23086# The cast to long int works around a bug in the HP C Compiler
23087# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23088# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23089# This bug is HP SR number 8606223364.
23090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
23091$as_echo_n "checking size of void*... " >&6; }
23092if ${ac_cv_sizeof_voidp+:} false; then :
23093  $as_echo_n "(cached) " >&6
23094else
23095  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
23096
23097else
23098  if test "$ac_cv_type_voidp" = yes; then
23099     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23101as_fn_error 77 "cannot compute sizeof (void*)
23102See \`config.log' for more details" "$LINENO" 5; }
23103   else
23104     ac_cv_sizeof_voidp=0
23105   fi
23106fi
23107
23108fi
23109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
23110$as_echo "$ac_cv_sizeof_voidp" >&6; }
23111
23112
23113
23114cat >>confdefs.h <<_ACEOF
23115#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
23116_ACEOF
23117
23118
23119
23120if test "x$ac_cv_sizeof_voidp" != "x"; then
23121    voidp_size=$ac_cv_sizeof_voidp
23122else
23123    as_fn_error $? "Cannot determine size of void*" "$LINENO" 5
23124fi
23125
23126# The cast to long int works around a bug in the HP C Compiler
23127# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23128# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23129# This bug is HP SR number 8606223364.
23130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
23131$as_echo_n "checking size of char... " >&6; }
23132if ${ac_cv_sizeof_char+:} false; then :
23133  $as_echo_n "(cached) " >&6
23134else
23135  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
23136
23137else
23138  if test "$ac_cv_type_char" = yes; then
23139     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23141as_fn_error 77 "cannot compute sizeof (char)
23142See \`config.log' for more details" "$LINENO" 5; }
23143   else
23144     ac_cv_sizeof_char=0
23145   fi
23146fi
23147
23148fi
23149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
23150$as_echo "$ac_cv_sizeof_char" >&6; }
23151
23152
23153
23154cat >>confdefs.h <<_ACEOF
23155#define SIZEOF_CHAR $ac_cv_sizeof_char
23156_ACEOF
23157
23158
23159# The cast to long int works around a bug in the HP C Compiler
23160# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23161# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23162# This bug is HP SR number 8606223364.
23163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23164$as_echo_n "checking size of int... " >&6; }
23165if ${ac_cv_sizeof_int+:} false; then :
23166  $as_echo_n "(cached) " >&6
23167else
23168  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
23169
23170else
23171  if test "$ac_cv_type_int" = yes; then
23172     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23174as_fn_error 77 "cannot compute sizeof (int)
23175See \`config.log' for more details" "$LINENO" 5; }
23176   else
23177     ac_cv_sizeof_int=0
23178   fi
23179fi
23180
23181fi
23182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23183$as_echo "$ac_cv_sizeof_int" >&6; }
23184
23185
23186
23187cat >>confdefs.h <<_ACEOF
23188#define SIZEOF_INT $ac_cv_sizeof_int
23189_ACEOF
23190
23191
23192# The cast to long int works around a bug in the HP C Compiler
23193# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23194# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23195# This bug is HP SR number 8606223364.
23196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23197$as_echo_n "checking size of long... " >&6; }
23198if ${ac_cv_sizeof_long+:} false; then :
23199  $as_echo_n "(cached) " >&6
23200else
23201  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
23202
23203else
23204  if test "$ac_cv_type_long" = yes; then
23205     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23207as_fn_error 77 "cannot compute sizeof (long)
23208See \`config.log' for more details" "$LINENO" 5; }
23209   else
23210     ac_cv_sizeof_long=0
23211   fi
23212fi
23213
23214fi
23215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23216$as_echo "$ac_cv_sizeof_long" >&6; }
23217
23218
23219
23220cat >>confdefs.h <<_ACEOF
23221#define SIZEOF_LONG $ac_cv_sizeof_long
23222_ACEOF
23223
23224
23225# The cast to long int works around a bug in the HP C Compiler
23226# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23227# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23228# This bug is HP SR number 8606223364.
23229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23230$as_echo_n "checking size of short... " >&6; }
23231if ${ac_cv_sizeof_short+:} false; then :
23232  $as_echo_n "(cached) " >&6
23233else
23234  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
23235
23236else
23237  if test "$ac_cv_type_short" = yes; then
23238     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23240as_fn_error 77 "cannot compute sizeof (short)
23241See \`config.log' for more details" "$LINENO" 5; }
23242   else
23243     ac_cv_sizeof_short=0
23244   fi
23245fi
23246
23247fi
23248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23249$as_echo "$ac_cv_sizeof_short" >&6; }
23250
23251
23252
23253cat >>confdefs.h <<_ACEOF
23254#define SIZEOF_SHORT $ac_cv_sizeof_short
23255_ACEOF
23256
23257
23258# The cast to long int works around a bug in the HP C Compiler
23259# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23260# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23261# This bug is HP SR number 8606223364.
23262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23263$as_echo_n "checking size of long long... " >&6; }
23264if ${ac_cv_sizeof_long_long+:} false; then :
23265  $as_echo_n "(cached) " >&6
23266else
23267  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
23268
23269else
23270  if test "$ac_cv_type_long_long" = yes; then
23271     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23273as_fn_error 77 "cannot compute sizeof (long long)
23274See \`config.log' for more details" "$LINENO" 5; }
23275   else
23276     ac_cv_sizeof_long_long=0
23277   fi
23278fi
23279
23280fi
23281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23282$as_echo "$ac_cv_sizeof_long_long" >&6; }
23283
23284
23285
23286cat >>confdefs.h <<_ACEOF
23287#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23288_ACEOF
23289
23290
23291
23292if test "$ac_cv_sizeof_short" = "2"; then
23293    short_value=short
23294fi
23295if test "$ac_cv_sizeof_int" = "4"; then
23296    int_value=int
23297fi
23298# Now we need to find what apr_int64_t (sizeof == 8) will be.
23299# The first match is our preference.
23300if test "$ac_cv_sizeof_int" = "8"; then
23301    int64_literal='#define APR_INT64_C(val) (val)'
23302    uint64_literal='#define APR_UINT64_C(val) (val##U)'
23303    int64_t_fmt='#define APR_INT64_T_FMT "d"'
23304    uint64_t_fmt='#define APR_UINT64_T_FMT "u"'
23305    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "x"'
23306    int64_value="int"
23307    long_value=int
23308    int64_strfn="strtoi"
23309elif test "$ac_cv_sizeof_long" = "8"; then
23310    int64_literal='#define APR_INT64_C(val) (val##L)'
23311    uint64_literal='#define APR_UINT64_C(val) (val##UL)'
23312    int64_t_fmt='#define APR_INT64_T_FMT "ld"'
23313    uint64_t_fmt='#define APR_UINT64_T_FMT "lu"'
23314    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "lx"'
23315    int64_value="long"
23316    long_value=long
23317    int64_strfn="strtol"
23318elif test "$ac_cv_sizeof_long_long" = "8"; then
23319    int64_literal='#define APR_INT64_C(val) (val##LL)'
23320    uint64_literal='#define APR_UINT64_C(val) (val##ULL)'
23321    # Linux, Solaris, FreeBSD all support ll with printf.
23322    # BSD 4.4 originated 'q'.  Solaris is more popular and
23323    # doesn't support 'q'.  Solaris wins.  Exceptions can
23324    # go to the OS-dependent section.
23325    int64_t_fmt='#define APR_INT64_T_FMT "lld"'
23326    uint64_t_fmt='#define APR_UINT64_T_FMT "llu"'
23327    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "llx"'
23328    int64_value="long long"
23329    long_value="long long"
23330    int64_strfn="strtoll"
23331elif test "$ac_cv_sizeof_longlong" = "8"; then
23332    int64_literal='#define APR_INT64_C(val) (val##LL)'
23333    uint64_literal='#define APR_UINT64_C(val) (val##ULL)'
23334    int64_t_fmt='#define APR_INT64_T_FMT "qd"'
23335    uint64_t_fmt='#define APR_UINT64_T_FMT "qu"'
23336    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "qx"'
23337    int64_value="__int64"
23338    long_value="__int64"
23339    int64_strfn="strtoll"
23340else
23341    # int64_literal may be overriden if your compiler thinks you have
23342    # a 64-bit value but APR does not agree.
23343    as_fn_error $? "could not detect a 64-bit integer type" "$LINENO" 5
23344fi
23345
23346# If present, allow the C99 macro INT64_C to override our conversion.
23347#
23348# HP-UX's ANSI C compiler provides this without any includes, so we
23349# will first look for INT64_C without adding stdint.h
23350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for INT64_C" >&5
23351$as_echo_n "checking for INT64_C... " >&6; }
23352if ${apr_cv_define_INT64_C+:} false; then :
23353  $as_echo_n "(cached) " >&6
23354else
23355
23356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23357/* end confdefs.h.  */
23358#ifdef INT64_C
23359YES_IS_DEFINED
23360#endif
23361_ACEOF
23362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23363  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
23364  apr_cv_define_INT64_C=yes
23365else
23366
23367    # Now check for INT64_C in stdint.h
23368    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23369/* end confdefs.h.  */
23370#include <stdint.h>
23371#ifdef INT64_C
23372YES_IS_DEFINED
23373#endif
23374_ACEOF
23375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23376  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
23377  apr_cv_define_INT64_C=yes
23378else
23379  apr_cv_define_INT64_C=no
23380fi
23381rm -f conftest*
23382
23383fi
23384rm -f conftest*
23385
23386fi
23387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_INT64_C" >&5
23388$as_echo "$apr_cv_define_INT64_C" >&6; }
23389
23390if test "$apr_cv_define_INT64_C" = "yes"; then
23391    int64_literal='#define APR_INT64_C(val) INT64_C(val)'
23392    uint64_literal='#define APR_UINT64_C(val) UINT64_C(val)'
23393    stdint=1
23394else
23395    stdint=0
23396fi
23397
23398if test "$ac_cv_type_size_t" = "yes"; then
23399    size_t_value="size_t"
23400else
23401    size_t_value="apr_int32_t"
23402fi
23403if test "$ac_cv_type_ssize_t" = "yes"; then
23404    ssize_t_value="ssize_t"
23405else
23406    ssize_t_value="apr_int32_t"
23407fi
23408if test "$ac_cv_socklen_t" = "yes"; then
23409    socklen_t_value="socklen_t"
23410    case $host in
23411        *-hp-hpux*)
23412            if test "$ac_cv_sizeof_long" = "8"; then
23413                # 64-bit HP-UX requires 32-bit socklens in
23414                # kernel, but user-space declarations say
23415                # 64-bit (socklen_t == size_t == long).
23416                # This will result in many compile warnings,
23417                # but we're functionally busted otherwise.
23418                socklen_t_value="int"
23419            fi
23420            ;;
23421    esac
23422else
23423    socklen_t_value="int"
23424fi
23425
23426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
23427$as_echo_n "checking size of pid_t... " >&6; }
23428if ${ac_cv_sizeof_pid_t+:} false; then :
23429  $as_echo_n "(cached) " >&6
23430else
23431  if test "$cross_compiling" = yes; then :
23432  ac_cv_sizeof_pid_t=8
23433else
23434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23435/* end confdefs.h.  */
23436#include <stdio.h>
23437#include <sys/types.h>
23438main()
23439{
23440  FILE *f=fopen("conftestval", "w");
23441  if (!f) exit(1);
23442  fprintf(f, "%d\n", sizeof(pid_t));
23443  exit(0);
23444}
23445_ACEOF
23446if ac_fn_c_try_run "$LINENO"; then :
23447  ac_cv_sizeof_pid_t=`cat conftestval`
23448else
23449  ac_cv_sizeof_pid_t=0
23450fi
23451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23452  conftest.$ac_objext conftest.beam conftest.$ac_ext
23453fi
23454
23455fi
23456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
23457$as_echo "$ac_cv_sizeof_pid_t" >&6; }
23458
23459cat >>confdefs.h <<_ACEOF
23460#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
23461_ACEOF
23462
23463
23464
23465if test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_short"; then
23466    pid_t_fmt='#define APR_PID_T_FMT "hd"'
23467elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_int"; then
23468    pid_t_fmt='#define APR_PID_T_FMT "d"'
23469elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long"; then
23470    pid_t_fmt='#define APR_PID_T_FMT "ld"'
23471elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long_long"; then
23472    pid_t_fmt='#define APR_PID_T_FMT APR_INT64_T_FMT'
23473else
23474    pid_t_fmt='#error Can not determine the proper size for pid_t'
23475fi
23476
23477# Basically, we have tried to figure out the correct format strings
23478# for APR types which vary between platforms, but we don't always get
23479# it right.
23480case $host in
23481   s390*linux*)
23482       # uniquely, the 31-bit Linux/s390 uses "unsigned long int"
23483       # for size_t rather than "unsigned int":
23484       size_t_fmt="lu"
23485       ssize_t_fmt="ld"
23486       ;;
23487   *-os2*)
23488       size_t_fmt="lu"
23489       ;;
23490   *-solaris*)
23491       if test "$ac_cv_sizeof_long" = "8"; then
23492         pid_t_fmt='#define APR_PID_T_FMT "d"'
23493       else
23494         pid_t_fmt='#define APR_PID_T_FMT "ld"'
23495       fi
23496       ;;
23497   *aix4*|*aix5*)
23498       ssize_t_fmt="ld"
23499       size_t_fmt="lu"
23500       ;;
23501    *beos*)
23502        ssize_t_fmt="ld"
23503        size_t_fmt="ld"
23504        ;;
23505    *apple-darwin*)
23506        osver=`uname -r`
23507        case $osver in
23508           [0-7].*)
23509              ssize_t_fmt="d"
23510              ;;
23511           *)
23512              ssize_t_fmt="ld"
23513              ;;
23514        esac
23515        size_t_fmt="lu"
23516        ;;
23517    *-mingw*)
23518        int64_t_fmt='#define APR_INT64_T_FMT "I64d"'
23519        uint64_t_fmt='#define APR_UINT64_T_FMT "I64u"'
23520        uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "I64x"'
23521        int64_value="__int64"
23522        long_value="__int64"
23523        int64_strfn="_strtoi64"
23524        ;;
23525esac
23526
23527
23528
23529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and int are the same" >&5
23530$as_echo_n "checking whether ssize_t and int are the same... " >&6; }
23531if ${apr_cv_typematch_ssize_t_int+:} false; then :
23532  $as_echo_n "(cached) " >&6
23533else
23534
23535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23536/* end confdefs.h.  */
23537$ac_includes_default
23538int
23539main ()
23540{
23541
23542    int foo[0 - !__builtin_types_compatible_p(ssize_t, int)];
23543
23544  ;
23545  return 0;
23546}
23547_ACEOF
23548if ac_fn_c_try_compile "$LINENO"; then :
23549  apr_cv_typematch_ssize_t_int=yes
23550ssize_t_fmt="d"
23551else
23552  apr_cv_typematch_ssize_t_int=no
23553fi
23554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23555fi
23556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_int" >&5
23557$as_echo "$apr_cv_typematch_ssize_t_int" >&6; }
23558
23559
23560
23561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and long are the same" >&5
23562$as_echo_n "checking whether ssize_t and long are the same... " >&6; }
23563if ${apr_cv_typematch_ssize_t_long+:} false; then :
23564  $as_echo_n "(cached) " >&6
23565else
23566
23567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23568/* end confdefs.h.  */
23569$ac_includes_default
23570int
23571main ()
23572{
23573
23574    int foo[0 - !__builtin_types_compatible_p(ssize_t, long)];
23575
23576  ;
23577  return 0;
23578}
23579_ACEOF
23580if ac_fn_c_try_compile "$LINENO"; then :
23581  apr_cv_typematch_ssize_t_long=yes
23582ssize_t_fmt="ld"
23583else
23584  apr_cv_typematch_ssize_t_long=no
23585fi
23586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23587fi
23588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_long" >&5
23589$as_echo "$apr_cv_typematch_ssize_t_long" >&6; }
23590
23591
23592
23593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned int are the same" >&5
23594$as_echo_n "checking whether size_t and unsigned int are the same... " >&6; }
23595if ${apr_cv_typematch_size_t_unsigned_int+:} false; then :
23596  $as_echo_n "(cached) " >&6
23597else
23598
23599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23600/* end confdefs.h.  */
23601$ac_includes_default
23602int
23603main ()
23604{
23605
23606    int foo[0 - !__builtin_types_compatible_p(size_t, unsigned int)];
23607
23608  ;
23609  return 0;
23610}
23611_ACEOF
23612if ac_fn_c_try_compile "$LINENO"; then :
23613  apr_cv_typematch_size_t_unsigned_int=yes
23614size_t_fmt="u"
23615else
23616  apr_cv_typematch_size_t_unsigned_int=no
23617fi
23618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23619fi
23620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_int" >&5
23621$as_echo "$apr_cv_typematch_size_t_unsigned_int" >&6; }
23622
23623
23624
23625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned long are the same" >&5
23626$as_echo_n "checking whether size_t and unsigned long are the same... " >&6; }
23627if ${apr_cv_typematch_size_t_unsigned_long+:} false; then :
23628  $as_echo_n "(cached) " >&6
23629else
23630
23631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23632/* end confdefs.h.  */
23633$ac_includes_default
23634int
23635main ()
23636{
23637
23638    int foo[0 - !__builtin_types_compatible_p(size_t, unsigned long)];
23639
23640  ;
23641  return 0;
23642}
23643_ACEOF
23644if ac_fn_c_try_compile "$LINENO"; then :
23645  apr_cv_typematch_size_t_unsigned_long=yes
23646size_t_fmt="lu"
23647else
23648  apr_cv_typematch_size_t_unsigned_long=no
23649fi
23650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23651fi
23652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_long" >&5
23653$as_echo "$apr_cv_typematch_size_t_unsigned_long" >&6; }
23654
23655
23656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23657$as_echo_n "checking size of ssize_t... " >&6; }
23658if ${ac_cv_sizeof_ssize_t+:} false; then :
23659  $as_echo_n "(cached) " >&6
23660else
23661  if test "$cross_compiling" = yes; then :
23662  ac_cv_sizeof_ssize_t=8
23663else
23664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23665/* end confdefs.h.  */
23666#include <stdio.h>
23667#include <sys/types.h>
23668main()
23669{
23670  FILE *f=fopen("conftestval", "w");
23671  if (!f) exit(1);
23672  fprintf(f, "%d\n", sizeof(ssize_t));
23673  exit(0);
23674}
23675_ACEOF
23676if ac_fn_c_try_run "$LINENO"; then :
23677  ac_cv_sizeof_ssize_t=`cat conftestval`
23678else
23679  ac_cv_sizeof_ssize_t=0
23680fi
23681rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23682  conftest.$ac_objext conftest.beam conftest.$ac_ext
23683fi
23684
23685fi
23686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23687$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23688
23689cat >>confdefs.h <<_ACEOF
23690#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23691_ACEOF
23692
23693
23694
23695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_ssize_t" >&5
23696$as_echo_n "checking which format to use for apr_ssize_t... " >&6; }
23697if test -n "$ssize_t_fmt"; then
23698    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$ssize_t_fmt" >&5
23699$as_echo "%$ssize_t_fmt" >&6; }
23700elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_int"; then
23701    ssize_t_fmt="d"
23702    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5
23703$as_echo "%d" >&6; }
23704elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_long"; then
23705    ssize_t_fmt="ld"
23706    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5
23707$as_echo "%ld" >&6; }
23708else
23709    as_fn_error $? "could not determine the proper format for apr_ssize_t" "$LINENO" 5
23710fi
23711
23712ssize_t_fmt="#define APR_SSIZE_T_FMT \"$ssize_t_fmt\""
23713
23714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23715$as_echo_n "checking size of size_t... " >&6; }
23716if ${ac_cv_sizeof_size_t+:} false; then :
23717  $as_echo_n "(cached) " >&6
23718else
23719  if test "$cross_compiling" = yes; then :
23720  ac_cv_sizeof_size_t=8
23721else
23722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23723/* end confdefs.h.  */
23724#include <stdio.h>
23725#include <stddef.h>
23726main()
23727{
23728  FILE *f=fopen("conftestval", "w");
23729  if (!f) exit(1);
23730  fprintf(f, "%d\n", sizeof(size_t));
23731  exit(0);
23732}
23733_ACEOF
23734if ac_fn_c_try_run "$LINENO"; then :
23735  ac_cv_sizeof_size_t=`cat conftestval`
23736else
23737  ac_cv_sizeof_size_t=0
23738fi
23739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23740  conftest.$ac_objext conftest.beam conftest.$ac_ext
23741fi
23742
23743fi
23744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23745$as_echo "$ac_cv_sizeof_size_t" >&6; }
23746
23747cat >>confdefs.h <<_ACEOF
23748#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23749_ACEOF
23750
23751
23752
23753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_size_t" >&5
23754$as_echo_n "checking which format to use for apr_size_t... " >&6; }
23755if test -n "$size_t_fmt"; then
23756    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$size_t_fmt" >&5
23757$as_echo "%$size_t_fmt" >&6; }
23758elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_int"; then
23759    size_t_fmt="d"
23760    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5
23761$as_echo "%d" >&6; }
23762elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_long"; then
23763    size_t_fmt="ld"
23764    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5
23765$as_echo "%ld" >&6; }
23766else
23767    as_fn_error $? "could not determine the proper format for apr_size_t" "$LINENO" 5
23768fi
23769
23770size_t_fmt="#define APR_SIZE_T_FMT \"$size_t_fmt\""
23771
23772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23773$as_echo_n "checking size of off_t... " >&6; }
23774if ${ac_cv_sizeof_off_t+:} false; then :
23775  $as_echo_n "(cached) " >&6
23776else
23777  if test "$cross_compiling" = yes; then :
23778  ac_cv_sizeof_off_t=8
23779else
23780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23781/* end confdefs.h.  */
23782#include <stdio.h>
23783#include <sys/types.h>
23784main()
23785{
23786  FILE *f=fopen("conftestval", "w");
23787  if (!f) exit(1);
23788  fprintf(f, "%d\n", sizeof(off_t));
23789  exit(0);
23790}
23791_ACEOF
23792if ac_fn_c_try_run "$LINENO"; then :
23793  ac_cv_sizeof_off_t=`cat conftestval`
23794else
23795  ac_cv_sizeof_off_t=0
23796fi
23797rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23798  conftest.$ac_objext conftest.beam conftest.$ac_ext
23799fi
23800
23801fi
23802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23803$as_echo "$ac_cv_sizeof_off_t" >&6; }
23804
23805cat >>confdefs.h <<_ACEOF
23806#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23807_ACEOF
23808
23809
23810
23811if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
23812    # Enable LFS
23813    aprlfs=1
23814    for ac_func in mmap64 sendfile64 sendfilev64 mkstemp64 readdir64_r
23815do :
23816  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23817ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23818if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23819  cat >>confdefs.h <<_ACEOF
23820#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23821_ACEOF
23822
23823fi
23824done
23825
23826elif test "${ac_cv_sizeof_off_t}" != "${ac_cv_sizeof_size_t}"; then
23827    # unsure of using -gt above is as portable, can can't forsee where
23828    # off_t can legitimately be smaller than size_t
23829    aprlfs=1
23830else
23831    aprlfs=0
23832fi
23833
23834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which type to use for apr_off_t" >&5
23835$as_echo_n "checking which type to use for apr_off_t... " >&6; }
23836if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
23837    # LFS is go!
23838    off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
23839    off_t_value='off64_t'
23840    off_t_strfn='apr_strtoi64'
23841elif test "${ac_cv_sizeof_off_t}x${ac_cv_sizeof_long}" = "4x4"; then
23842    # Special case: off_t may change size with _FILE_OFFSET_BITS
23843    # on 32-bit systems with LFS support.  To avoid compatibility
23844    # issues when other packages do define _FILE_OFFSET_BITS,
23845    # hard-code apr_off_t to long.
23846    off_t_value=long
23847    off_t_fmt='#define APR_OFF_T_FMT "ld"'
23848    off_t_strfn='strtol'
23849elif test "$ac_cv_type_off_t" = "yes"; then
23850    off_t_value=off_t
23851    # off_t is more commonly a long than an int; prefer that case
23852    # where int and long are the same size.
23853    if test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_long"; then
23854        off_t_fmt='#define APR_OFF_T_FMT "ld"'
23855        off_t_strfn='strtol'
23856    elif test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_int"; then
23857        off_t_fmt='#define APR_OFF_T_FMT "d"'
23858        off_t_strfn='strtoi'
23859    elif test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_long_long"; then
23860        off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
23861        off_t_strfn='apr_strtoi64'
23862    else
23863        as_fn_error $? "could not determine the size of off_t" "$LINENO" 5
23864    fi
23865    # Per OS tuning...
23866    case $host in
23867    *-mingw*)
23868        off_t_value=apr_int64_t
23869        off_t_fmt='#define APR_OFF_T_FMT "I64d"'
23870        off_t_strfn='_strtoi64'
23871        ;;
23872    esac
23873else
23874   # Fallback on int
23875   off_t_value=apr_int32_t
23876   off_t_fmt=d
23877   off_t_strfn='strtoi'
23878fi
23879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $off_t_value" >&5
23880$as_echo "$off_t_value" >&6; }
23881
23882# Regardless of whether _LARGEFILE64_SOURCE is used, on some
23883# platforms _FILE_OFFSET_BITS will affect the size of ino_t and hence
23884# the build-time ABI may be different from the apparent ABI when using
23885# APR with another package which *does* define _FILE_OFFSET_BITS.
23886# (Exactly as per the case above with off_t where LFS is *not* used)
23887#
23888# To be safe, hard-code apr_ino_t as 'unsigned long' or 'unsigned int'
23889# iff that is exactly the size of ino_t here; otherwise use ino_t as existing
23890# releases did.  To be correct, apr_ino_t should have been made an
23891# ino64_t as apr_off_t is off64_t, but this can't be done now without
23892# breaking ABI.
23893
23894# Per OS tuning...
23895case $host in
23896*mingw*)
23897    ino_t_value=apr_int64_t
23898    ;;
23899*)
23900    ino_t_value=ino_t
23901    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
23902$as_echo_n "checking size of ino_t... " >&6; }
23903if ${ac_cv_sizeof_ino_t+:} false; then :
23904  $as_echo_n "(cached) " >&6
23905else
23906  if test "$cross_compiling" = yes; then :
23907  ac_cv_sizeof_ino_t=$ac_cv_sizeof_long
23908else
23909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23910/* end confdefs.h.  */
23911#include <stdio.h>
23912$ac_includes_default
23913main()
23914{
23915  FILE *f=fopen("conftestval", "w");
23916  if (!f) exit(1);
23917  fprintf(f, "%d\n", sizeof(ino_t));
23918  exit(0);
23919}
23920_ACEOF
23921if ac_fn_c_try_run "$LINENO"; then :
23922  ac_cv_sizeof_ino_t=`cat conftestval`
23923else
23924  ac_cv_sizeof_ino_t=0
23925fi
23926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23927  conftest.$ac_objext conftest.beam conftest.$ac_ext
23928fi
23929
23930fi
23931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
23932$as_echo "$ac_cv_sizeof_ino_t" >&6; }
23933
23934cat >>confdefs.h <<_ACEOF
23935#define SIZEOF_INO_T $ac_cv_sizeof_ino_t
23936_ACEOF
23937
23938
23939    if test $ac_cv_sizeof_ino_t = 4; then
23940        if test $ac_cv_sizeof_long = 4; then
23941            ino_t_value="unsigned long"
23942        else
23943            ino_t_value="unsigned int"
23944        fi
23945    fi
23946    ;;
23947esac
23948{ $as_echo "$as_me:${as_lineno-$LINENO}: using $ino_t_value for ino_t" >&5
23949$as_echo "$as_me: using $ino_t_value for ino_t" >&6;}
23950
23951# Checks for endianness
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23953$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23954if ${ac_cv_c_bigendian+:} false; then :
23955  $as_echo_n "(cached) " >&6
23956else
23957  ac_cv_c_bigendian=unknown
23958    # See if we're dealing with a universal compiler.
23959    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23960/* end confdefs.h.  */
23961#ifndef __APPLE_CC__
23962	       not a universal capable compiler
23963	     #endif
23964	     typedef int dummy;
23965
23966_ACEOF
23967if ac_fn_c_try_compile "$LINENO"; then :
23968
23969	# Check for potential -arch flags.  It is not universal unless
23970	# there are at least two -arch flags with different values.
23971	ac_arch=
23972	ac_prev=
23973	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23974	 if test -n "$ac_prev"; then
23975	   case $ac_word in
23976	     i?86 | x86_64 | ppc | ppc64)
23977	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23978		 ac_arch=$ac_word
23979	       else
23980		 ac_cv_c_bigendian=universal
23981		 break
23982	       fi
23983	       ;;
23984	   esac
23985	   ac_prev=
23986	 elif test "x$ac_word" = "x-arch"; then
23987	   ac_prev=arch
23988	 fi
23989       done
23990fi
23991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23992    if test $ac_cv_c_bigendian = unknown; then
23993      # See if sys/param.h defines the BYTE_ORDER macro.
23994      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23995/* end confdefs.h.  */
23996#include <sys/types.h>
23997	     #include <sys/param.h>
23998
23999int
24000main ()
24001{
24002#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24003		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24004		     && LITTLE_ENDIAN)
24005	      bogus endian macros
24006	     #endif
24007
24008  ;
24009  return 0;
24010}
24011_ACEOF
24012if ac_fn_c_try_compile "$LINENO"; then :
24013  # It does; now see whether it defined to BIG_ENDIAN or not.
24014	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24015/* end confdefs.h.  */
24016#include <sys/types.h>
24017		#include <sys/param.h>
24018
24019int
24020main ()
24021{
24022#if BYTE_ORDER != BIG_ENDIAN
24023		 not big endian
24024		#endif
24025
24026  ;
24027  return 0;
24028}
24029_ACEOF
24030if ac_fn_c_try_compile "$LINENO"; then :
24031  ac_cv_c_bigendian=yes
24032else
24033  ac_cv_c_bigendian=no
24034fi
24035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24036fi
24037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24038    fi
24039    if test $ac_cv_c_bigendian = unknown; then
24040      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24041      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24042/* end confdefs.h.  */
24043#include <limits.h>
24044
24045int
24046main ()
24047{
24048#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24049	      bogus endian macros
24050	     #endif
24051
24052  ;
24053  return 0;
24054}
24055_ACEOF
24056if ac_fn_c_try_compile "$LINENO"; then :
24057  # It does; now see whether it defined to _BIG_ENDIAN or not.
24058	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24059/* end confdefs.h.  */
24060#include <limits.h>
24061
24062int
24063main ()
24064{
24065#ifndef _BIG_ENDIAN
24066		 not big endian
24067		#endif
24068
24069  ;
24070  return 0;
24071}
24072_ACEOF
24073if ac_fn_c_try_compile "$LINENO"; then :
24074  ac_cv_c_bigendian=yes
24075else
24076  ac_cv_c_bigendian=no
24077fi
24078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24079fi
24080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24081    fi
24082    if test $ac_cv_c_bigendian = unknown; then
24083      # Compile a test program.
24084      if test "$cross_compiling" = yes; then :
24085  # Try to guess by grepping values from an object file.
24086	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24087/* end confdefs.h.  */
24088short int ascii_mm[] =
24089		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24090		short int ascii_ii[] =
24091		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24092		int use_ascii (int i) {
24093		  return ascii_mm[i] + ascii_ii[i];
24094		}
24095		short int ebcdic_ii[] =
24096		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24097		short int ebcdic_mm[] =
24098		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24099		int use_ebcdic (int i) {
24100		  return ebcdic_mm[i] + ebcdic_ii[i];
24101		}
24102		extern int foo;
24103
24104int
24105main ()
24106{
24107return use_ascii (foo) == use_ebcdic (foo);
24108  ;
24109  return 0;
24110}
24111_ACEOF
24112if ac_fn_c_try_compile "$LINENO"; then :
24113  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24114	      ac_cv_c_bigendian=yes
24115	    fi
24116	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24117	      if test "$ac_cv_c_bigendian" = unknown; then
24118		ac_cv_c_bigendian=no
24119	      else
24120		# finding both strings is unlikely to happen, but who knows?
24121		ac_cv_c_bigendian=unknown
24122	      fi
24123	    fi
24124fi
24125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24126else
24127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24128/* end confdefs.h.  */
24129$ac_includes_default
24130int
24131main ()
24132{
24133
24134	     /* Are we little or big endian?  From Harbison&Steele.  */
24135	     union
24136	     {
24137	       long int l;
24138	       char c[sizeof (long int)];
24139	     } u;
24140	     u.l = 1;
24141	     return u.c[sizeof (long int) - 1] == 1;
24142
24143  ;
24144  return 0;
24145}
24146_ACEOF
24147if ac_fn_c_try_run "$LINENO"; then :
24148  ac_cv_c_bigendian=no
24149else
24150  ac_cv_c_bigendian=yes
24151fi
24152rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24153  conftest.$ac_objext conftest.beam conftest.$ac_ext
24154fi
24155
24156    fi
24157fi
24158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
24159$as_echo "$ac_cv_c_bigendian" >&6; }
24160 case $ac_cv_c_bigendian in #(
24161   yes)
24162     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
24163;; #(
24164   no)
24165      ;; #(
24166   universal)
24167
24168$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
24169
24170     ;; #(
24171   *)
24172     as_fn_error $? "unknown endianness
24173 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
24174 esac
24175
24176if test $ac_cv_c_bigendian = yes; then
24177    bigendian=1
24178else
24179    bigendian=0
24180fi
24181
24182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iovec" >&5
24183$as_echo_n "checking size of struct iovec... " >&6; }
24184if ${ac_cv_sizeof_struct_iovec+:} false; then :
24185  $as_echo_n "(cached) " >&6
24186else
24187  if test "$cross_compiling" = yes; then :
24188  ac_cv_sizeof_struct_iovec=0
24189else
24190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24191/* end confdefs.h.  */
24192#include <stdio.h>
24193#include <sys/types.h>
24194#include <sys/uio.h>
24195main()
24196{
24197  FILE *f=fopen("conftestval", "w");
24198  if (!f) exit(1);
24199  fprintf(f, "%d\n", sizeof(struct iovec));
24200  exit(0);
24201}
24202_ACEOF
24203if ac_fn_c_try_run "$LINENO"; then :
24204  ac_cv_sizeof_struct_iovec=`cat conftestval`
24205else
24206  ac_cv_sizeof_struct_iovec=0
24207fi
24208rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24209  conftest.$ac_objext conftest.beam conftest.$ac_ext
24210fi
24211
24212fi
24213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iovec" >&5
24214$as_echo "$ac_cv_sizeof_struct_iovec" >&6; }
24215
24216cat >>confdefs.h <<_ACEOF
24217#define SIZEOF_STRUCT_IOVEC $ac_cv_sizeof_struct_iovec
24218_ACEOF
24219
24220
24221if test "$ac_cv_sizeof_struct_iovec" = "0"; then
24222    have_iovec=0
24223else
24224    have_iovec=1
24225fi
24226
24227
24228
24229
24230
24231
24232
24233
24234
24235
24236
24237
24238
24239
24240
24241
24242
24243
24244
24245
24246
24247
24248
24249
24250
24251for ac_func in strnicmp
24252do :
24253  ac_fn_c_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp"
24254if test "x$ac_cv_func_strnicmp" = xyes; then :
24255  cat >>confdefs.h <<_ACEOF
24256#define HAVE_STRNICMP 1
24257_ACEOF
24258 have_strnicmp="1"
24259else
24260  have_strnicmp="0"
24261fi
24262done
24263
24264for ac_func in strncasecmp
24265do :
24266  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
24267if test "x$ac_cv_func_strncasecmp" = xyes; then :
24268  cat >>confdefs.h <<_ACEOF
24269#define HAVE_STRNCASECMP 1
24270_ACEOF
24271 have_strncasecmp="1"
24272else
24273  have_strncasecmp="0"
24274fi
24275done
24276
24277for ac_func in stricmp
24278do :
24279  ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp"
24280if test "x$ac_cv_func_stricmp" = xyes; then :
24281  cat >>confdefs.h <<_ACEOF
24282#define HAVE_STRICMP 1
24283_ACEOF
24284 have_stricmp="1"
24285else
24286  have_stricmp="0"
24287fi
24288done
24289
24290for ac_func in strcasecmp
24291do :
24292  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
24293if test "x$ac_cv_func_strcasecmp" = xyes; then :
24294  cat >>confdefs.h <<_ACEOF
24295#define HAVE_STRCASECMP 1
24296_ACEOF
24297 have_strcasecmp="1"
24298else
24299  have_strcasecmp="0"
24300fi
24301done
24302
24303for ac_func in strdup
24304do :
24305  ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
24306if test "x$ac_cv_func_strdup" = xyes; then :
24307  cat >>confdefs.h <<_ACEOF
24308#define HAVE_STRDUP 1
24309_ACEOF
24310 have_strdup="1"
24311else
24312  have_strdup="0"
24313fi
24314done
24315
24316for ac_func in strstr
24317do :
24318  ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
24319if test "x$ac_cv_func_strstr" = xyes; then :
24320  cat >>confdefs.h <<_ACEOF
24321#define HAVE_STRSTR 1
24322_ACEOF
24323 have_strstr="1"
24324else
24325  have_strstr="0"
24326fi
24327done
24328
24329for ac_func in memchr
24330do :
24331  ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
24332if test "x$ac_cv_func_memchr" = xyes; then :
24333  cat >>confdefs.h <<_ACEOF
24334#define HAVE_MEMCHR 1
24335_ACEOF
24336 have_memchr="1"
24337else
24338  have_memchr="0"
24339fi
24340done
24341
24342as_ac_var=`$as_echo "ac_cv_func_$int64_strfn" | $as_tr_sh`
24343ac_fn_c_check_func "$LINENO" "$int64_strfn" "$as_ac_var"
24344if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24345  have_int64_strfn="1"
24346else
24347  have_int64_strfn="0"
24348fi
24349
24350
24351if test "$have_int64_strfn" = "0" && test "$int64_strfn" = "strtoll"; then
24352    int64_strfn="strtoq"
24353    ac_fn_c_check_func "$LINENO" "strtoq" "ac_cv_func_strtoq"
24354if test "x$ac_cv_func_strtoq" = xyes; then :
24355  have_int64_strfn=1
24356else
24357  have_int64_strfn=0
24358fi
24359
24360fi
24361
24362if test "$have_int64_strfn" = "1"; then
24363
24364cat >>confdefs.h <<_ACEOF
24365#define APR_INT64_STRFN $int64_strfn
24366_ACEOF
24367
24368fi
24369
24370
24371
24372
24373
24374
24375
24376
24377
24378if test "$off_t_strfn" = "apr_strtoi64" && test "$have_int64_strfn" = "1"; then
24379    off_t_strfn=$int64_strfn
24380fi
24381
24382cat >>confdefs.h <<_ACEOF
24383#define APR_OFF_T_STRFN $off_t_strfn
24384_ACEOF
24385
24386
24387echo "${nl}Checking for DSO..."
24388# Check whether --enable-dso was given.
24389if test "${enable_dso+set}" = set; then :
24390  enableval=$enable_dso; if test "x$enableval" = "xyes"; then
24391      dsotype=any
24392   else
24393      dsotype=$enableval
24394   fi
24395
24396else
24397  dsotype=any
24398fi
24399
24400
24401if test "$dsotype" = "any"; then
24402    if test "$dsotype" = "any"; then
24403      case $host in
24404        *darwin[0-8]\.*)
24405          # Original Darwin, not for 9.0!:
24406          ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule"
24407if test "x$ac_cv_func_NSLinkModule" = xyes; then :
24408  dsotype=dyld
24409fi
24410;;
24411        hppa*-hpux[1-9]\.*|hppa*-hpux1[01]*)
24412          # shl is specific to parisc hpux SOM binaries, not used for 64 bit
24413          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
24414$as_echo_n "checking for shl_load in -ldld... " >&6; }
24415if ${ac_cv_lib_dld_shl_load+:} false; then :
24416  $as_echo_n "(cached) " >&6
24417else
24418  ac_check_lib_save_LIBS=$LIBS
24419LIBS="-ldld  $LIBS"
24420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24421/* end confdefs.h.  */
24422
24423/* Override any GCC internal prototype to avoid an error.
24424   Use char because int might match the return type of a GCC
24425   builtin and then its argument prototype would still apply.  */
24426#ifdef __cplusplus
24427extern "C"
24428#endif
24429char shl_load ();
24430int
24431main ()
24432{
24433return shl_load ();
24434  ;
24435  return 0;
24436}
24437_ACEOF
24438if ac_fn_c_try_link "$LINENO"; then :
24439  ac_cv_lib_dld_shl_load=yes
24440else
24441  ac_cv_lib_dld_shl_load=no
24442fi
24443rm -f core conftest.err conftest.$ac_objext \
24444    conftest$ac_exeext conftest.$ac_ext
24445LIBS=$ac_check_lib_save_LIBS
24446fi
24447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
24448$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
24449if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
24450  have_shl=1
24451fi
24452
24453          if test "$ac_cv_sizeof_voidp$have_shl" = "41"; then
24454            dsotype=shl;
24455  if test "x$LIBS" = "x"; then
24456    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldld\""
24457    LIBS="-ldld"
24458  else
24459    apr_addto_bugger="-ldld"
24460    for i in $apr_addto_bugger; do
24461      apr_addto_duplicate="0"
24462      for j in $LIBS; do
24463        if test "x$i" = "x$j"; then
24464          apr_addto_duplicate="1"
24465          break
24466        fi
24467      done
24468      if test $apr_addto_duplicate = "0"; then
24469        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
24470        LIBS="$LIBS $i"
24471      fi
24472    done
24473  fi
24474
24475          fi;;
24476        *mingw*|*-os2*)
24477          # several 'other's below probably belong up here.  If they always
24478          # use a platform implementation and shouldn't test the dlopen/dlfcn
24479          # features, then bring them up here.
24480          # But if they -should- optionally use dlfcn, and/or need the config
24481          # detection of dlopen/dlsym, do not move them up.
24482          dsotype=other ;;
24483      esac
24484    fi
24485    # Normal POSIX:
24486    if test "$dsotype" = "any"; then
24487      ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
24488if test "x$ac_cv_func_dlopen" = xyes; then :
24489  dsotype=dlfcn
24490fi
24491
24492    fi
24493    if test "$dsotype" = "any"; then
24494      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
24495$as_echo_n "checking for dlopen in -ldl... " >&6; }
24496if ${ac_cv_lib_dl_dlopen+:} false; then :
24497  $as_echo_n "(cached) " >&6
24498else
24499  ac_check_lib_save_LIBS=$LIBS
24500LIBS="-ldl  $LIBS"
24501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24502/* end confdefs.h.  */
24503
24504/* Override any GCC internal prototype to avoid an error.
24505   Use char because int might match the return type of a GCC
24506   builtin and then its argument prototype would still apply.  */
24507#ifdef __cplusplus
24508extern "C"
24509#endif
24510char dlopen ();
24511int
24512main ()
24513{
24514return dlopen ();
24515  ;
24516  return 0;
24517}
24518_ACEOF
24519if ac_fn_c_try_link "$LINENO"; then :
24520  ac_cv_lib_dl_dlopen=yes
24521else
24522  ac_cv_lib_dl_dlopen=no
24523fi
24524rm -f core conftest.err conftest.$ac_objext \
24525    conftest$ac_exeext conftest.$ac_ext
24526LIBS=$ac_check_lib_save_LIBS
24527fi
24528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
24529$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
24530if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
24531  dsotype=dlfcn;
24532  if test "x$LIBS" = "x"; then
24533    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldl\""
24534    LIBS="-ldl"
24535  else
24536    apr_addto_bugger="-ldl"
24537    for i in $apr_addto_bugger; do
24538      apr_addto_duplicate="0"
24539      for j in $LIBS; do
24540        if test "x$i" = "x$j"; then
24541          apr_addto_duplicate="1"
24542          break
24543        fi
24544      done
24545      if test $apr_addto_duplicate = "0"; then
24546        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
24547        LIBS="$LIBS $i"
24548      fi
24549    done
24550  fi
24551
24552fi
24553
24554    fi
24555    if test "$dsotype" = "dlfcn"; then
24556        # ReliantUnix has dlopen() in libc but dlsym() in libdl :(
24557        ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
24558if test "x$ac_cv_func_dlsym" = xyes; then :
24559
24560else
24561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
24562$as_echo_n "checking for dlsym in -ldl... " >&6; }
24563if ${ac_cv_lib_dl_dlsym+:} false; then :
24564  $as_echo_n "(cached) " >&6
24565else
24566  ac_check_lib_save_LIBS=$LIBS
24567LIBS="-ldl  $LIBS"
24568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24569/* end confdefs.h.  */
24570
24571/* Override any GCC internal prototype to avoid an error.
24572   Use char because int might match the return type of a GCC
24573   builtin and then its argument prototype would still apply.  */
24574#ifdef __cplusplus
24575extern "C"
24576#endif
24577char dlsym ();
24578int
24579main ()
24580{
24581return dlsym ();
24582  ;
24583  return 0;
24584}
24585_ACEOF
24586if ac_fn_c_try_link "$LINENO"; then :
24587  ac_cv_lib_dl_dlsym=yes
24588else
24589  ac_cv_lib_dl_dlsym=no
24590fi
24591rm -f core conftest.err conftest.$ac_objext \
24592    conftest$ac_exeext conftest.$ac_ext
24593LIBS=$ac_check_lib_save_LIBS
24594fi
24595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
24596$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
24597if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
24598
24599  if test "x$LIBS" = "x"; then
24600    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldl\""
24601    LIBS="-ldl"
24602  else
24603    apr_addto_bugger="-ldl"
24604    for i in $apr_addto_bugger; do
24605      apr_addto_duplicate="0"
24606      for j in $LIBS; do
24607        if test "x$i" = "x$j"; then
24608          apr_addto_duplicate="1"
24609          break
24610        fi
24611      done
24612      if test $apr_addto_duplicate = "0"; then
24613        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
24614        LIBS="$LIBS $i"
24615      fi
24616    done
24617  fi
24618
24619else
24620  dsotype=any
24621              echo "Weird: dlopen() was found but dlsym() was not found!"
24622fi
24623
24624fi
24625
24626    fi
24627    if test "$dsotype" = "any"; then
24628      # BeOS:
24629      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for load_image in -lroot" >&5
24630$as_echo_n "checking for load_image in -lroot... " >&6; }
24631if ${ac_cv_lib_root_load_image+:} false; then :
24632  $as_echo_n "(cached) " >&6
24633else
24634  ac_check_lib_save_LIBS=$LIBS
24635LIBS="-lroot  $LIBS"
24636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24637/* end confdefs.h.  */
24638
24639/* Override any GCC internal prototype to avoid an error.
24640   Use char because int might match the return type of a GCC
24641   builtin and then its argument prototype would still apply.  */
24642#ifdef __cplusplus
24643extern "C"
24644#endif
24645char load_image ();
24646int
24647main ()
24648{
24649return load_image ();
24650  ;
24651  return 0;
24652}
24653_ACEOF
24654if ac_fn_c_try_link "$LINENO"; then :
24655  ac_cv_lib_root_load_image=yes
24656else
24657  ac_cv_lib_root_load_image=no
24658fi
24659rm -f core conftest.err conftest.$ac_objext \
24660    conftest$ac_exeext conftest.$ac_ext
24661LIBS=$ac_check_lib_save_LIBS
24662fi
24663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_load_image" >&5
24664$as_echo "$ac_cv_lib_root_load_image" >&6; }
24665if test "x$ac_cv_lib_root_load_image" = xyes; then :
24666  dsotype=other
24667fi
24668
24669    fi
24670    # Everything else:
24671    if test "$dsotype" = "any"; then
24672        case $host in
24673        *os390|*os400|*-aix*)
24674          # Some -aix5 will use dl, no hassles.  Keep that pattern here.
24675          dsotype=other ;;
24676        *-hpux*)
24677          if test "$have_shl" = "1"; then
24678            dsotype=shl;
24679  if test "x$LIBS" = "x"; then
24680    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldld\""
24681    LIBS="-ldld"
24682  else
24683    apr_addto_bugger="-ldld"
24684    for i in $apr_addto_bugger; do
24685      apr_addto_duplicate="0"
24686      for j in $LIBS; do
24687        if test "x$i" = "x$j"; then
24688          apr_addto_duplicate="1"
24689          break
24690        fi
24691      done
24692      if test $apr_addto_duplicate = "0"; then
24693        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
24694        LIBS="$LIBS $i"
24695      fi
24696    done
24697  fi
24698
24699          fi;;
24700        esac
24701    fi
24702fi
24703
24704if test "$dsotype" = "any"; then
24705    as_fn_error $? "Could not detect suitable DSO implementation" "$LINENO" 5
24706elif test "$dsotype" = "no"; then
24707    aprdso="0"
24708else
24709    case "$dsotype" in
24710    dlfcn)
24711$as_echo "#define DSO_USE_DLFCN 1" >>confdefs.h
24712;;
24713    shl)
24714$as_echo "#define DSO_USE_SHL 1" >>confdefs.h
24715;;
24716    dyld)
24717$as_echo "#define DSO_USE_DYLD 1" >>confdefs.h
24718;;
24719    other) ;; # Use whatever is in dso/OSDIR
24720    *) as_fn_error $? "Unknown DSO implementation \"$dsotype\"" "$LINENO" 5;;
24721    esac
24722    aprdso="1"
24723    apr_modules="$apr_modules dso"
24724fi
24725
24726
24727
24728echo "${nl}Checking for Processes..."
24729
24730for ac_func in waitpid
24731do :
24732  ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
24733if test "x$ac_cv_func_waitpid" = xyes; then :
24734  cat >>confdefs.h <<_ACEOF
24735#define HAVE_WAITPID 1
24736_ACEOF
24737
24738fi
24739done
24740
24741
24742# Check whether --enable-other-child was given.
24743if test "${enable_other_child+set}" = set; then :
24744  enableval=$enable_other_child;  if test "$enableval" = "yes"; then
24745        oc="1"
24746    else
24747        oc="0"
24748    fi
24749else
24750   oc=1
24751fi
24752
24753
24754
24755
24756if test -z "$have_proc_invoked"; then
24757  have_proc_invoked="0"
24758fi
24759
24760
24761
24762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Variable Length Arrays" >&5
24763$as_echo_n "checking for Variable Length Arrays... " >&6; }
24764apr_save_CFLAGS=$CFLAGS
24765 CFLAGS="$CFLAGS $CFLAGS_WARN"
24766 if test "$ac_cv_c_compiler_gnu" = "yes"; then
24767   CFLAGS="$CFLAGS -Werror"
24768 fi
24769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24770/* end confdefs.h.  */
24771#include "confdefs.h"
24772
24773
24774   int main(int argc, const char *const *argv) {
24775
24776    int foo[argc];
24777    foo[0] = 0;
24778
24779      return 0; }
24780
24781_ACEOF
24782if ac_fn_c_try_compile "$LINENO"; then :
24783  vla_msg=yes
24784else
24785  vla_msg=no
24786fi
24787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24788 CFLAGS=$apr_save_CFLAGS
24789
24790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vla_msg" >&5
24791$as_echo "$vla_msg" >&6; }
24792if test "$vla_msg" = "yes"; then
24793
24794$as_echo "#define HAVE_VLA 1" >>confdefs.h
24795
24796fi
24797
24798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct rlimit" >&5
24799$as_echo_n "checking struct rlimit... " >&6; }
24800if ${ac_cv_struct_rlimit+:} false; then :
24801  $as_echo_n "(cached) " >&6
24802else
24803
24804if test "$cross_compiling" = yes; then :
24805
24806    ac_cv_struct_rlimit=no
24807else
24808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24809/* end confdefs.h.  */
24810
24811#include <sys/types.h>
24812#include <sys/time.h>
24813#include <sys/resource.h>
24814main()
24815{
24816    struct rlimit limit;
24817    limit.rlim_cur = 0;
24818    limit.rlim_max = 0;
24819    exit(0);
24820}
24821_ACEOF
24822if ac_fn_c_try_run "$LINENO"; then :
24823
24824    ac_cv_struct_rlimit=yes
24825else
24826
24827    ac_cv_struct_rlimit=no
24828fi
24829rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24830  conftest.$ac_objext conftest.beam conftest.$ac_ext
24831fi
24832
24833fi
24834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rlimit" >&5
24835$as_echo "$ac_cv_struct_rlimit" >&6; }
24836struct_rlimit=0
24837test "x$ac_cv_struct_rlimit" = xyes && struct_rlimit=1
24838
24839
24840echo "${nl}Checking for Locking..."
24841
24842for ac_func in semget semctl flock
24843do :
24844  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24845ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24846if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24847  cat >>confdefs.h <<_ACEOF
24848#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24849_ACEOF
24850
24851fi
24852done
24853
24854for ac_header in semaphore.h OS.h
24855do :
24856  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24857ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24858if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24859  cat >>confdefs.h <<_ACEOF
24860#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24861_ACEOF
24862
24863fi
24864
24865done
24866
24867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
24868$as_echo_n "checking for library containing sem_open... " >&6; }
24869if ${ac_cv_search_sem_open+:} false; then :
24870  $as_echo_n "(cached) " >&6
24871else
24872  ac_func_search_save_LIBS=$LIBS
24873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24874/* end confdefs.h.  */
24875
24876/* Override any GCC internal prototype to avoid an error.
24877   Use char because int might match the return type of a GCC
24878   builtin and then its argument prototype would still apply.  */
24879#ifdef __cplusplus
24880extern "C"
24881#endif
24882char sem_open ();
24883int
24884main ()
24885{
24886return sem_open ();
24887  ;
24888  return 0;
24889}
24890_ACEOF
24891for ac_lib in '' rt; do
24892  if test -z "$ac_lib"; then
24893    ac_res="none required"
24894  else
24895    ac_res=-l$ac_lib
24896    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24897  fi
24898  if ac_fn_c_try_link "$LINENO"; then :
24899  ac_cv_search_sem_open=$ac_res
24900fi
24901rm -f core conftest.err conftest.$ac_objext \
24902    conftest$ac_exeext
24903  if ${ac_cv_search_sem_open+:} false; then :
24904  break
24905fi
24906done
24907if ${ac_cv_search_sem_open+:} false; then :
24908
24909else
24910  ac_cv_search_sem_open=no
24911fi
24912rm conftest.$ac_ext
24913LIBS=$ac_func_search_save_LIBS
24914fi
24915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
24916$as_echo "$ac_cv_search_sem_open" >&6; }
24917ac_res=$ac_cv_search_sem_open
24918if test "$ac_res" != no; then :
24919  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24920
24921fi
24922
24923for ac_func in sem_close sem_unlink sem_post sem_wait create_sem
24924do :
24925  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24926ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24927if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24928  cat >>confdefs.h <<_ACEOF
24929#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24930_ACEOF
24931
24932fi
24933done
24934
24935
24936# Some systems return ENOSYS from sem_open.
24937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sem_open" >&5
24938$as_echo_n "checking for working sem_open... " >&6; }
24939if ${ac_cv_func_sem_open+:} false; then :
24940  $as_echo_n "(cached) " >&6
24941else
24942
24943if test "$cross_compiling" = yes; then :
24944  ac_cv_func_sem_open=no
24945else
24946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24947/* end confdefs.h.  */
24948
24949#include <errno.h>
24950#include <stdlib.h>
24951#include <fcntl.h>
24952#include <semaphore.h>
24953#ifndef SEM_FAILED
24954#define SEM_FAILED (-1)
24955#endif
24956main()
24957{
24958    sem_t *psem;
24959    const char *sem_name = "/apr_autoconf";
24960
24961    psem = sem_open(sem_name, O_CREAT, 0644, 1);
24962    if (psem == (sem_t *)SEM_FAILED) {
24963	exit(1);
24964    }
24965    sem_close(psem);
24966    psem = sem_open(sem_name, O_CREAT | O_EXCL, 0644, 1);
24967    if (psem != (sem_t *)SEM_FAILED) {
24968        sem_close(psem);
24969        exit(1);
24970    }
24971    sem_unlink(sem_name);
24972    exit(0);
24973}
24974_ACEOF
24975if ac_fn_c_try_run "$LINENO"; then :
24976  ac_cv_func_sem_open=yes
24977else
24978  ac_cv_func_sem_open=no
24979fi
24980rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24981  conftest.$ac_objext conftest.beam conftest.$ac_ext
24982fi
24983
24984fi
24985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sem_open" >&5
24986$as_echo "$ac_cv_func_sem_open" >&6; }
24987
24988# It's stupid, but not all platforms have union semun, even those that need it.
24989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun in sys/sem.h" >&5
24990$as_echo_n "checking for union semun in sys/sem.h... " >&6; }
24991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24992/* end confdefs.h.  */
24993
24994#include <sys/types.h>
24995#include <sys/ipc.h>
24996#include <sys/sem.h>
24997
24998int
24999main ()
25000{
25001
25002union semun arg;
25003semctl(0, 0, 0, arg);
25004
25005  ;
25006  return 0;
25007}
25008_ACEOF
25009if ac_fn_c_try_compile "$LINENO"; then :
25010  have_union_semun="1" union_semun=yes
25011msg=yes
25012else
25013
25014have_union_semun="0"
25015msg=no
25016fi
25017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
25019$as_echo "$msg" >&6; }
25020
25021
25022
25023  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOCK_EX in sys/file.h" >&5
25024$as_echo_n "checking for LOCK_EX in sys/file.h... " >&6; }
25025if ${ac_cv_define_LOCK_EX+:} false; then :
25026  $as_echo_n "(cached) " >&6
25027else
25028
25029    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25030/* end confdefs.h.  */
25031
25032#include <sys/file.h>
25033#ifdef LOCK_EX
25034YES_IS_DEFINED
25035#endif
25036
25037_ACEOF
25038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25039  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25040  ac_cv_define_LOCK_EX=yes
25041else
25042  ac_cv_define_LOCK_EX=no
25043fi
25044rm -f conftest*
25045
25046
25047fi
25048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_LOCK_EX" >&5
25049$as_echo "$ac_cv_define_LOCK_EX" >&6; }
25050  if test "$ac_cv_define_LOCK_EX" = "yes"; then
25051
25052$as_echo "#define HAVE_LOCK_EX 1" >>confdefs.h
25053
25054  fi
25055
25056
25057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLK in fcntl.h" >&5
25058$as_echo_n "checking for F_SETLK in fcntl.h... " >&6; }
25059if ${ac_cv_define_F_SETLK+:} false; then :
25060  $as_echo_n "(cached) " >&6
25061else
25062
25063    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25064/* end confdefs.h.  */
25065
25066#include <fcntl.h>
25067#ifdef F_SETLK
25068YES_IS_DEFINED
25069#endif
25070
25071_ACEOF
25072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25073  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25074  ac_cv_define_F_SETLK=yes
25075else
25076  ac_cv_define_F_SETLK=no
25077fi
25078rm -f conftest*
25079
25080
25081fi
25082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_F_SETLK" >&5
25083$as_echo "$ac_cv_define_F_SETLK" >&6; }
25084  if test "$ac_cv_define_F_SETLK" = "yes"; then
25085
25086$as_echo "#define HAVE_F_SETLK 1" >>confdefs.h
25087
25088  fi
25089
25090
25091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SEM_UNDO in sys/sem.h" >&5
25092$as_echo_n "checking for SEM_UNDO in sys/sem.h... " >&6; }
25093if ${ac_cv_define_SEM_UNDO+:} false; then :
25094  $as_echo_n "(cached) " >&6
25095else
25096
25097    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25098/* end confdefs.h.  */
25099
25100#include <sys/sem.h>
25101#ifdef SEM_UNDO
25102YES_IS_DEFINED
25103#endif
25104
25105_ACEOF
25106if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25107  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25108  ac_cv_define_SEM_UNDO=yes
25109else
25110  ac_cv_define_SEM_UNDO=no
25111fi
25112rm -f conftest*
25113
25114
25115fi
25116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SEM_UNDO" >&5
25117$as_echo "$ac_cv_define_SEM_UNDO" >&6; }
25118  if test "$ac_cv_define_SEM_UNDO" = "yes"; then
25119
25120$as_echo "#define HAVE_SEM_UNDO 1" >>confdefs.h
25121
25122  fi
25123
25124
25125# We are assuming that if the platform doesn't have POLLIN, it doesn't have
25126# any POLL definitions.
25127
25128  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POLLIN in poll.h sys/poll.h" >&5
25129$as_echo_n "checking for POLLIN in poll.h sys/poll.h... " >&6; }
25130if ${ac_cv_define_POLLIN+:} false; then :
25131  $as_echo_n "(cached) " >&6
25132else
25133
25134    ac_cv_define_POLLIN=no
25135    for curhdr in poll.h sys/poll.h
25136    do
25137      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25138/* end confdefs.h.  */
25139
25140#include <$curhdr>
25141#ifdef POLLIN
25142YES_IS_DEFINED
25143#endif
25144
25145_ACEOF
25146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25147  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25148  ac_cv_define_POLLIN=yes
25149fi
25150rm -f conftest*
25151
25152    done
25153
25154fi
25155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_POLLIN" >&5
25156$as_echo "$ac_cv_define_POLLIN" >&6; }
25157  if test "$ac_cv_define_POLLIN" = "yes"; then
25158
25159$as_echo "#define HAVE_POLLIN 1" >>confdefs.h
25160
25161  fi
25162
25163
25164if test "$threads" = "1"; then
25165
25166  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PROCESS_SHARED in pthread.h" >&5
25167$as_echo_n "checking for PTHREAD_PROCESS_SHARED in pthread.h... " >&6; }
25168if ${ac_cv_define_PTHREAD_PROCESS_SHARED+:} false; then :
25169  $as_echo_n "(cached) " >&6
25170else
25171
25172    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25173/* end confdefs.h.  */
25174
25175#include <pthread.h>
25176#ifdef PTHREAD_PROCESS_SHARED
25177YES_IS_DEFINED
25178#endif
25179
25180_ACEOF
25181if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25182  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25183  ac_cv_define_PTHREAD_PROCESS_SHARED=yes
25184else
25185  ac_cv_define_PTHREAD_PROCESS_SHARED=no
25186fi
25187rm -f conftest*
25188
25189
25190fi
25191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_PTHREAD_PROCESS_SHARED" >&5
25192$as_echo "$ac_cv_define_PTHREAD_PROCESS_SHARED" >&6; }
25193  if test "$ac_cv_define_PTHREAD_PROCESS_SHARED" = "yes"; then
25194
25195$as_echo "#define HAVE_PTHREAD_PROCESS_SHARED 1" >>confdefs.h
25196
25197  fi
25198
25199    for ac_func in pthread_mutexattr_setpshared
25200do :
25201  ac_fn_c_check_func "$LINENO" "pthread_mutexattr_setpshared" "ac_cv_func_pthread_mutexattr_setpshared"
25202if test "x$ac_cv_func_pthread_mutexattr_setpshared" = xyes; then :
25203  cat >>confdefs.h <<_ACEOF
25204#define HAVE_PTHREAD_MUTEXATTR_SETPSHARED 1
25205_ACEOF
25206
25207fi
25208done
25209
25210    # Some systems have setpshared and define PROCESS_SHARED, but don't
25211    # really support PROCESS_SHARED locks.  So, we must validate that we
25212    # can go through the steps without receiving some sort of system error.
25213    # Linux and older versions of AIX have this problem.
25214    ac_rc=yes
25215for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED func:pthread_mutexattr_setpshared; do
25216    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25217    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25218    case $ac_type in
25219        header )
25220            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25221            ac_var="ac_cv_header_$ac_item"
25222            ;;
25223        file )
25224            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25225            ac_var="ac_cv_file_$ac_item"
25226            ;;
25227        func )   ac_var="ac_cv_func_$ac_item"   ;;
25228        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25229        define ) ac_var="ac_cv_define_$ac_item" ;;
25230        custom ) ac_var="$ac_item" ;;
25231    esac
25232    eval "ac_val=\$$ac_var"
25233    if test ".$ac_val" != .yes; then
25234        ac_rc=no
25235        break
25236    fi
25237done
25238if test ".$ac_rc" = .yes; then
25239    :
25240
25241      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working PROCESS_SHARED locks" >&5
25242$as_echo_n "checking for working PROCESS_SHARED locks... " >&6; }
25243if ${apr_cv_process_shared_works+:} false; then :
25244  $as_echo_n "(cached) " >&6
25245else
25246
25247      if test "$cross_compiling" = yes; then :
25248  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25250as_fn_error $? "cannot run test program while cross compiling
25251See \`config.log' for more details" "$LINENO" 5; }
25252else
25253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25254/* end confdefs.h.  */
25255
25256#include <sys/types.h>
25257#include <pthread.h>
25258        int main()
25259        {
25260            pthread_mutex_t mutex;
25261            pthread_mutexattr_t attr;
25262            if (pthread_mutexattr_init(&attr))
25263                exit(1);
25264            if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
25265                exit(2);
25266            if (pthread_mutex_init(&mutex, &attr))
25267                exit(3);
25268            if (pthread_mutexattr_destroy(&attr))
25269                exit(4);
25270            if (pthread_mutex_destroy(&mutex))
25271                exit(5);
25272            exit(0);
25273        }
25274_ACEOF
25275if ac_fn_c_try_run "$LINENO"; then :
25276  apr_cv_process_shared_works=yes
25277else
25278  apr_cv_process_shared_works=no
25279fi
25280rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25281  conftest.$ac_objext conftest.beam conftest.$ac_ext
25282fi
25283
25284fi
25285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_process_shared_works" >&5
25286$as_echo "$apr_cv_process_shared_works" >&6; }
25287      # Override detection of pthread_mutexattr_setpshared
25288      ac_cv_func_pthread_mutexattr_setpshared=$apr_cv_process_shared_works
25289else
25290    :
25291
25292fi
25293
25294
25295    if test "$ac_cv_func_pthread_mutexattr_setpshared" = "yes"; then
25296
25297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for robust cross-process mutex support" >&5
25298$as_echo_n "checking for robust cross-process mutex support... " >&6; }
25299if ${apr_cv_mutex_robust_shared+:} false; then :
25300  $as_echo_n "(cached) " >&6
25301else
25302  if test "$cross_compiling" = yes; then :
25303  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25305as_fn_error $? "cannot run test program while cross compiling
25306See \`config.log' for more details" "$LINENO" 5; }
25307else
25308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25309/* end confdefs.h.  */
25310
25311#include <sys/types.h>
25312#include <pthread.h>
25313#include <stdlib.h>
25314
25315int main(int argc, char **argv)
25316{
25317    pthread_mutex_t mutex;
25318    pthread_mutexattr_t attr;
25319
25320    if (pthread_mutexattr_init(&attr))
25321        exit(1);
25322    if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
25323        exit(2);
25324    if (pthread_mutexattr_setrobust_np(&attr, PTHREAD_MUTEX_ROBUST_NP))
25325        exit(3);
25326    if (pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT))
25327        exit(4);
25328    if (pthread_mutex_init(&mutex, &attr))
25329        exit(5);
25330    if (pthread_mutexattr_destroy(&attr))
25331        exit(6);
25332    if (pthread_mutex_destroy(&mutex))
25333        exit(7);
25334
25335    exit(0);
25336}
25337_ACEOF
25338if ac_fn_c_try_run "$LINENO"; then :
25339  apr_cv_mutex_robust_shared=yes
25340else
25341  apr_cv_mutex_robust_shared=no
25342fi
25343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25344  conftest.$ac_objext conftest.beam conftest.$ac_ext
25345fi
25346
25347fi
25348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_robust_shared" >&5
25349$as_echo "$apr_cv_mutex_robust_shared" >&6; }
25350
25351if test "$apr_cv_mutex_robust_shared" = "yes"; then
25352
25353$as_echo "#define HAVE_PTHREAD_MUTEX_ROBUST 1" >>confdefs.h
25354
25355fi
25356
25357    fi
25358fi
25359
25360# See which lock mechanisms we can support on this system.
25361ac_rc=yes
25362for ac_spec in header:semaphore.h func:sem_open func:sem_close              func:sem_unlink func:sem_post func:sem_wait; do
25363    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25364    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25365    case $ac_type in
25366        header )
25367            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25368            ac_var="ac_cv_header_$ac_item"
25369            ;;
25370        file )
25371            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25372            ac_var="ac_cv_file_$ac_item"
25373            ;;
25374        func )   ac_var="ac_cv_func_$ac_item"   ;;
25375        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25376        define ) ac_var="ac_cv_define_$ac_item" ;;
25377        custom ) ac_var="$ac_item" ;;
25378    esac
25379    eval "ac_val=\$$ac_var"
25380    if test ".$ac_val" != .yes; then
25381        ac_rc=no
25382        break
25383    fi
25384done
25385if test ".$ac_rc" = .yes; then
25386    :
25387    hasposixser="1"
25388else
25389    :
25390    hasposixser="0"
25391fi
25392
25393ac_rc=yes
25394for ac_spec in func:semget func:semctl define:SEM_UNDO; do
25395    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25396    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25397    case $ac_type in
25398        header )
25399            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25400            ac_var="ac_cv_header_$ac_item"
25401            ;;
25402        file )
25403            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25404            ac_var="ac_cv_file_$ac_item"
25405            ;;
25406        func )   ac_var="ac_cv_func_$ac_item"   ;;
25407        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25408        define ) ac_var="ac_cv_define_$ac_item" ;;
25409        custom ) ac_var="$ac_item" ;;
25410    esac
25411    eval "ac_val=\$$ac_var"
25412    if test ".$ac_val" != .yes; then
25413        ac_rc=no
25414        break
25415    fi
25416done
25417if test ".$ac_rc" = .yes; then
25418    :
25419    hassysvser="1"
25420else
25421    :
25422    hassysvser="0"
25423fi
25424
25425ac_rc=yes
25426for ac_spec in func:flock define:LOCK_EX; do
25427    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25428    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25429    case $ac_type in
25430        header )
25431            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25432            ac_var="ac_cv_header_$ac_item"
25433            ;;
25434        file )
25435            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25436            ac_var="ac_cv_file_$ac_item"
25437            ;;
25438        func )   ac_var="ac_cv_func_$ac_item"   ;;
25439        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25440        define ) ac_var="ac_cv_define_$ac_item" ;;
25441        custom ) ac_var="$ac_item" ;;
25442    esac
25443    eval "ac_val=\$$ac_var"
25444    if test ".$ac_val" != .yes; then
25445        ac_rc=no
25446        break
25447    fi
25448done
25449if test ".$ac_rc" = .yes; then
25450    :
25451    hasflockser="1"
25452else
25453    :
25454    hasflockser="0"
25455fi
25456
25457ac_rc=yes
25458for ac_spec in header:fcntl.h define:F_SETLK; do
25459    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25460    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25461    case $ac_type in
25462        header )
25463            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25464            ac_var="ac_cv_header_$ac_item"
25465            ;;
25466        file )
25467            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25468            ac_var="ac_cv_file_$ac_item"
25469            ;;
25470        func )   ac_var="ac_cv_func_$ac_item"   ;;
25471        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25472        define ) ac_var="ac_cv_define_$ac_item" ;;
25473        custom ) ac_var="$ac_item" ;;
25474    esac
25475    eval "ac_val=\$$ac_var"
25476    if test ".$ac_val" != .yes; then
25477        ac_rc=no
25478        break
25479    fi
25480done
25481if test ".$ac_rc" = .yes; then
25482    :
25483    hasfcntlser="1"
25484else
25485    :
25486    hasfcntlser="0"
25487fi
25488
25489# note: the current APR use of shared mutex requires /dev/zero
25490ac_rc=yes
25491for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED              func:pthread_mutexattr_setpshared              file:/dev/zero; do
25492    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25493    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25494    case $ac_type in
25495        header )
25496            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25497            ac_var="ac_cv_header_$ac_item"
25498            ;;
25499        file )
25500            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25501            ac_var="ac_cv_file_$ac_item"
25502            ;;
25503        func )   ac_var="ac_cv_func_$ac_item"   ;;
25504        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25505        define ) ac_var="ac_cv_define_$ac_item" ;;
25506        custom ) ac_var="$ac_item" ;;
25507    esac
25508    eval "ac_val=\$$ac_var"
25509    if test ".$ac_val" != .yes; then
25510        ac_rc=no
25511        break
25512    fi
25513done
25514if test ".$ac_rc" = .yes; then
25515    :
25516    hasprocpthreadser="1"
25517else
25518    :
25519    hasprocpthreadser="0"
25520fi
25521
25522ac_rc=yes
25523for ac_spec in header:OS.h func:create_sem; do
25524    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25525    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25526    case $ac_type in
25527        header )
25528            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25529            ac_var="ac_cv_header_$ac_item"
25530            ;;
25531        file )
25532            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25533            ac_var="ac_cv_file_$ac_item"
25534            ;;
25535        func )   ac_var="ac_cv_func_$ac_item"   ;;
25536        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25537        define ) ac_var="ac_cv_define_$ac_item" ;;
25538        custom ) ac_var="$ac_item" ;;
25539    esac
25540    eval "ac_val=\$$ac_var"
25541    if test ".$ac_val" != .yes; then
25542        ac_rc=no
25543        break
25544    fi
25545done
25546if test ".$ac_rc" = .yes; then
25547    :
25548    hasbeossem="1"
25549else
25550    :
25551    hasbeossem="0"
25552fi
25553
25554
25555# See which lock mechanism we'll select by default on this system.
25556# The last APR_DECIDE to execute sets the default.
25557# At this stage, we match the ordering in Apache 1.3
25558# which is (highest to lowest): sysvsem -> fcntl -> flock.
25559# POSIX semaphores and cross-process pthread mutexes are not
25560# used by default since they have less desirable behaviour when
25561# e.g. a process holding the mutex segfaults.
25562# The BEOSSEM decision doesn't require any substitutions but is
25563# included here to prevent the fcntl() branch being selected
25564# from the decision making.
25565ac_decision_item='apr_lock implementation method'
25566ac_decision_msg='FAILED'
25567ac_decision=''
25568
25569ac_rc=yes
25570for ac_spec in func:flock define:LOCK_EX; do
25571    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25572    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25573    case $ac_type in
25574        header )
25575            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25576            ac_var="ac_cv_header_$ac_item"
25577            ;;
25578        file )
25579            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25580            ac_var="ac_cv_file_$ac_item"
25581            ;;
25582        func )   ac_var="ac_cv_func_$ac_item"   ;;
25583        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25584        define ) ac_var="ac_cv_define_$ac_item" ;;
25585        custom ) ac_var="$ac_item" ;;
25586    esac
25587    eval "ac_val=\$$ac_var"
25588    if test ".$ac_val" != .yes; then
25589        ac_rc=no
25590        break
25591    fi
25592done
25593if test ".$ac_rc" = .yes; then
25594    :
25595
25596ac_decision='USE_FLOCK_SERIALIZE'
25597ac_decision_msg='4.2BSD-style flock()'
25598ac_decision_USE_FLOCK_SERIALIZE=yes
25599ac_decision_USE_FLOCK_SERIALIZE_msg='4.2BSD-style flock()'
25600
25601else
25602    :
25603
25604fi
25605
25606ac_rc=yes
25607for ac_spec in header:fcntl.h define:F_SETLK; do
25608    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25609    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25610    case $ac_type in
25611        header )
25612            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25613            ac_var="ac_cv_header_$ac_item"
25614            ;;
25615        file )
25616            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25617            ac_var="ac_cv_file_$ac_item"
25618            ;;
25619        func )   ac_var="ac_cv_func_$ac_item"   ;;
25620        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25621        define ) ac_var="ac_cv_define_$ac_item" ;;
25622        custom ) ac_var="$ac_item" ;;
25623    esac
25624    eval "ac_val=\$$ac_var"
25625    if test ".$ac_val" != .yes; then
25626        ac_rc=no
25627        break
25628    fi
25629done
25630if test ".$ac_rc" = .yes; then
25631    :
25632
25633ac_decision='USE_FCNTL_SERIALIZE'
25634ac_decision_msg='SVR4-style fcntl()'
25635ac_decision_USE_FCNTL_SERIALIZE=yes
25636ac_decision_USE_FCNTL_SERIALIZE_msg='SVR4-style fcntl()'
25637
25638else
25639    :
25640
25641fi
25642
25643ac_rc=yes
25644for ac_spec in func:semget func:semctl define:SEM_UNDO; do
25645    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25646    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25647    case $ac_type in
25648        header )
25649            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25650            ac_var="ac_cv_header_$ac_item"
25651            ;;
25652        file )
25653            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25654            ac_var="ac_cv_file_$ac_item"
25655            ;;
25656        func )   ac_var="ac_cv_func_$ac_item"   ;;
25657        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25658        define ) ac_var="ac_cv_define_$ac_item" ;;
25659        custom ) ac_var="$ac_item" ;;
25660    esac
25661    eval "ac_val=\$$ac_var"
25662    if test ".$ac_val" != .yes; then
25663        ac_rc=no
25664        break
25665    fi
25666done
25667if test ".$ac_rc" = .yes; then
25668    :
25669
25670ac_decision='USE_SYSVSEM_SERIALIZE'
25671ac_decision_msg='SysV IPC semget()'
25672ac_decision_USE_SYSVSEM_SERIALIZE=yes
25673ac_decision_USE_SYSVSEM_SERIALIZE_msg='SysV IPC semget()'
25674
25675else
25676    :
25677
25678fi
25679
25680ac_rc=yes
25681for ac_spec in header:OS.h func:create_sem; do
25682    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25683    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25684    case $ac_type in
25685        header )
25686            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25687            ac_var="ac_cv_header_$ac_item"
25688            ;;
25689        file )
25690            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25691            ac_var="ac_cv_file_$ac_item"
25692            ;;
25693        func )   ac_var="ac_cv_func_$ac_item"   ;;
25694        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25695        define ) ac_var="ac_cv_define_$ac_item" ;;
25696        custom ) ac_var="$ac_item" ;;
25697    esac
25698    eval "ac_val=\$$ac_var"
25699    if test ".$ac_val" != .yes; then
25700        ac_rc=no
25701        break
25702    fi
25703done
25704if test ".$ac_rc" = .yes; then
25705    :
25706
25707ac_decision='USE_BEOSSEM'
25708ac_decision_msg='BeOS Semaphores'
25709ac_decision_USE_BEOSSEM=yes
25710ac_decision_USE_BEOSSEM_msg='BeOS Semaphores'
25711
25712else
25713    :
25714
25715fi
25716
25717if test "x$apr_lock_method" != "x"; then
25718    ac_decision="$apr_lock_method"
25719eval "ac_decision_msg=\"\$ac_decision_${ac_decision}_msg\""
25720
25721fi
25722if test ".$ac_decision" = .; then
25723    echo "$0:Error: decision on $ac_decision_item failed" 1>&2
25724    exit 1
25725else
25726    if test ".$ac_decision_msg" = .; then
25727        ac_decision_msg="$ac_decision"
25728    fi
25729    cat >>confdefs.h <<_ACEOF
25730#define ${ac_decision_item} 1
25731_ACEOF
25732
25733    { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
25734$as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
25735fi
25736
25737cat >>confdefs.h <<_ACEOF
25738#define $ac_decision 1
25739_ACEOF
25740
25741
25742flockser="0"
25743sysvser="0"
25744posixser="0"
25745procpthreadser="0"
25746fcntlser="0"
25747case $ac_decision in
25748    USE_FLOCK_SERIALIZE )
25749        flockser="1"
25750        ;;
25751    USE_FCNTL_SERIALIZE )
25752        fcntlser="1"
25753        ;;
25754    USE_SYSVSEM_SERIALIZE )
25755        sysvser="1"
25756        ;;
25757    USE_POSIXSEM_SERIALIZE )
25758        posixser="1"
25759        ;;
25760    USE_PROC_PTHREAD_SERIALIZE )
25761        procpthreadser="1"
25762        ;;
25763    USE_BEOSSEM )
25764        beossem="1"
25765        ;;
25766esac
25767
25768if test $hasfcntlser = "1"; then
25769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl returns EACCES when F_SETLK is already held" >&5
25770$as_echo_n "checking if fcntl returns EACCES when F_SETLK is already held... " >&6; }
25771if test "$cross_compiling" = yes; then :
25772  apr_fcntl_tryacquire_eacces=0
25773else
25774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25775/* end confdefs.h.  */
25776
25777#ifdef HAVE_STDLIB_H
25778#include <stdlib.h>
25779#endif
25780#ifdef HAVE_SYS_TYPES_H
25781#include <sys/types.h>
25782#endif
25783#ifdef HAVE_SYS_STAT_H
25784#include <sys/stat.h>
25785#endif
25786#ifdef HAVE_SYS_WAIT_H
25787#include <sys/wait.h>
25788#endif
25789#if defined(HAVE_UNISTD_H)
25790#include <unistd.h>
25791#endif
25792#include <fcntl.h>
25793#include <errno.h>
25794
25795int fd;
25796struct flock proc_mutex_lock_it = {0};
25797const char *fname = "conftest.fcntl";
25798
25799int main()
25800{
25801    int rc, status;;
25802    proc_mutex_lock_it.l_whence = SEEK_SET;   /* from current point */
25803    proc_mutex_lock_it.l_type = F_WRLCK;      /* set exclusive/write lock */
25804
25805    fd = creat(fname, S_IRWXU);
25806    unlink(fname);
25807
25808    if (rc = lockit()) {
25809        exit(-1);
25810    }
25811
25812    if (fork()) {
25813        wait(&status);
25814    }
25815    else {
25816      return(lockit());
25817    }
25818
25819    close(fd);
25820    exit(WEXITSTATUS(status) != EACCES);
25821}
25822
25823int lockit() {
25824    int rc;
25825    do {
25826        rc = fcntl(fd, F_SETLK, &proc_mutex_lock_it);
25827    } while ( rc < 0 && errno == EINTR);
25828
25829    return (rc < 0) ? errno : 0;
25830}
25831_ACEOF
25832if ac_fn_c_try_run "$LINENO"; then :
25833  apr_fcntl_tryacquire_eacces=1
25834else
25835  apr_fcntl_tryacquire_eacces=0
25836fi
25837rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25838  conftest.$ac_objext conftest.beam conftest.$ac_ext
25839fi
25840
25841fi
25842
25843if test "$apr_fcntl_tryacquire_eacces" = "1"; then
25844
25845$as_echo "#define FCNTL_TRYACQUIRE_EACCES 1" >>confdefs.h
25846
25847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25848$as_echo "yes" >&6; }
25849else
25850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25851$as_echo "no" >&6; }
25852fi
25853
25854
25855
25856
25857
25858
25859
25860
25861
25862
25863
25864
25865
25866
25867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if all interprocess locks affect threads" >&5
25868$as_echo_n "checking if all interprocess locks affect threads... " >&6; }
25869if test "x$apr_process_lock_is_global" = "xyes"; then
25870    proclockglobal="1"
25871    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25872$as_echo "yes" >&6; }
25873else
25874    proclockglobal="0"
25875    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25876$as_echo "no" >&6; }
25877fi
25878
25879
25880
25881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if POSIX sems affect threads in the same process" >&5
25882$as_echo_n "checking if POSIX sems affect threads in the same process... " >&6; }
25883if test "x$apr_posixsem_is_global" = "xyes"; then
25884
25885$as_echo "#define POSIXSEM_IS_GLOBAL 1" >>confdefs.h
25886
25887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25888$as_echo "yes" >&6; }
25889else
25890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25891$as_echo "no" >&6; }
25892fi
25893
25894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SysV sems affect threads in the same process" >&5
25895$as_echo_n "checking if SysV sems affect threads in the same process... " >&6; }
25896if test "x$apr_sysvsem_is_global" = "xyes"; then
25897
25898$as_echo "#define SYSVSEM_IS_GLOBAL 1" >>confdefs.h
25899
25900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25901$as_echo "yes" >&6; }
25902else
25903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25904$as_echo "no" >&6; }
25905fi
25906
25907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl locks affect threads in the same process" >&5
25908$as_echo_n "checking if fcntl locks affect threads in the same process... " >&6; }
25909if test "x$apr_fcntl_is_global" = "xyes"; then
25910
25911$as_echo "#define FCNTL_IS_GLOBAL 1" >>confdefs.h
25912
25913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25914$as_echo "yes" >&6; }
25915else
25916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25917$as_echo "no" >&6; }
25918fi
25919
25920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if flock locks affect threads in the same process" >&5
25921$as_echo_n "checking if flock locks affect threads in the same process... " >&6; }
25922if test "x$apr_flock_is_global" = "xyes"; then
25923
25924$as_echo "#define FLOCK_IS_GLOBAL 1" >>confdefs.h
25925
25926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25927$as_echo "yes" >&6; }
25928else
25929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25930$as_echo "no" >&6; }
25931fi
25932
25933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for entropy source" >&5
25934$as_echo_n "checking for entropy source... " >&6; }
25935
25936why_no_rand=""
25937
25938
25939# Check whether --with-egd was given.
25940if test "${with_egd+set}" = set; then :
25941  withval=$with_egd;
25942$as_echo "#define HAVE_EGD 1" >>confdefs.h
25943
25944    if test "$withval" = "yes"; then
25945
25946cat >>confdefs.h <<_ACEOF
25947#define EGD_DEFAULT_SOCKET "/var/run/egd-pool","/dev/egd-pool","/etc/egd-pool","/etc/entropy"
25948_ACEOF
25949
25950    else
25951        cat >>confdefs.h <<_ACEOF
25952#define EGD_DEFAULT_SOCKET "$withval"
25953_ACEOF
25954
25955    fi
25956    { $as_echo "$as_me:${as_lineno-$LINENO}: result: EGD-compatible daemon" >&5
25957$as_echo "EGD-compatible daemon" >&6; }
25958    rand="1"
25959
25960fi
25961
25962
25963if test "$rand" != "1"; then
25964
25965# Check whether --with-devrandom was given.
25966if test "${with_devrandom+set}" = set; then :
25967  withval=$with_devrandom;  apr_devrandom="$withval"
25968else
25969   apr_devrandom="yes"
25970fi
25971
25972
25973  if test "$apr_devrandom" = "yes"; then
25974    # /dev/random on OpenBSD doesn't provide random data, so
25975    # prefer /dev/arandom, which does; see random(4).
25976    for f in /dev/arandom /dev/urandom /dev/random; do
25977      if test -r $f; then
25978        apr_devrandom=$f
25979        rand=1
25980        break
25981      fi
25982    done
25983  elif test "$apr_devrandom" != "no"; then
25984    if test -r "$apr_devrandom"; then
25985      rand="1"
25986    else
25987      as_fn_error $? "$apr_devrandom not found or unreadable." "$LINENO" 5
25988    fi
25989  fi
25990
25991  if test "$rand" = "1"; then
25992    case $host in
25993      *os390)
25994        if test $os_version -lt 1700; then
25995          rand="0"
25996          why_no_rand=" ($apr_devrandom unusable on z/OS before V1R7)"
25997        fi
25998        ;;
25999    esac
26000  fi
26001
26002  if test "$rand" = "1"; then
26003
26004cat >>confdefs.h <<_ACEOF
26005#define DEV_RANDOM "$apr_devrandom"
26006_ACEOF
26007
26008    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_devrandom" >&5
26009$as_echo "$apr_devrandom" >&6; }
26010  fi
26011fi
26012
26013if test "$rand" != "1"; then
26014    case $host in
26015        # we have built in support for OS/2
26016        *-os2*)
26017            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OS/2 builtin random" >&5
26018$as_echo "Using OS/2 builtin random" >&6; }
26019            rand="1"
26020            ;;
26021        *)
26022            if test "$rand" != "1"; then
26023              if test "$ac_cv_lib_truerand_main" = "yes"; then
26024
26025$as_echo "#define HAVE_TRUERAND 1" >>confdefs.h
26026
26027                { $as_echo "$as_me:${as_lineno-$LINENO}: result: truerand" >&5
26028$as_echo "truerand" >&6; }
26029                rand="1"
26030              else
26031                { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found$why_no_rand" >&5
26032$as_echo "not found$why_no_rand" >&6; }
26033                rand="0"
26034              fi
26035            fi
26036            ;;
26037    esac
26038fi
26039
26040
26041
26042echo "${nl}Checking for File Info Support..."
26043ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "
26044#ifdef HAVE_SYS_TYPES_H
26045#include <sys/types.h>
26046#endif
26047#ifdef HAVE_SYS_STAT_H
26048#include <sys/stat.h>
26049#endif
26050#ifdef HAVE_UNISTD_H
26051#include <unistd.h>
26052#endif
26053"
26054if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26055
26056cat >>confdefs.h <<_ACEOF
26057#define HAVE_STRUCT_STAT_ST_BLOCKS 1
26058_ACEOF
26059
26060
26061fi
26062ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "
26063#ifdef HAVE_SYS_TYPES_H
26064#include <sys/types.h>
26065#endif
26066#ifdef HAVE_SYS_STAT_H
26067#include <sys/stat.h>
26068#endif
26069#ifdef HAVE_UNISTD_H
26070#include <unistd.h>
26071#endif
26072"
26073if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
26074
26075cat >>confdefs.h <<_ACEOF
26076#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
26077_ACEOF
26078
26079
26080fi
26081ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "
26082#ifdef HAVE_SYS_TYPES_H
26083#include <sys/types.h>
26084#endif
26085#ifdef HAVE_SYS_STAT_H
26086#include <sys/stat.h>
26087#endif
26088#ifdef HAVE_UNISTD_H
26089#include <unistd.h>
26090#endif
26091"
26092if test "x$ac_cv_member_struct_stat_st_ctimensec" = xyes; then :
26093
26094cat >>confdefs.h <<_ACEOF
26095#define HAVE_STRUCT_STAT_ST_CTIMENSEC 1
26096_ACEOF
26097
26098
26099fi
26100ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "
26101#ifdef HAVE_SYS_TYPES_H
26102#include <sys/types.h>
26103#endif
26104#ifdef HAVE_SYS_STAT_H
26105#include <sys/stat.h>
26106#endif
26107#ifdef HAVE_UNISTD_H
26108#include <unistd.h>
26109#endif
26110"
26111if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
26112
26113cat >>confdefs.h <<_ACEOF
26114#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
26115_ACEOF
26116
26117
26118fi
26119ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "
26120#ifdef HAVE_SYS_TYPES_H
26121#include <sys/types.h>
26122#endif
26123#ifdef HAVE_SYS_STAT_H
26124#include <sys/stat.h>
26125#endif
26126#ifdef HAVE_UNISTD_H
26127#include <unistd.h>
26128#endif
26129"
26130if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
26131
26132cat >>confdefs.h <<_ACEOF
26133#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
26134_ACEOF
26135
26136
26137fi
26138ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim.tv_nsec" "ac_cv_member_struct_stat_st_ctim_tv_nsec" "
26139#ifdef HAVE_SYS_TYPES_H
26140#include <sys/types.h>
26141#endif
26142#ifdef HAVE_SYS_STAT_H
26143#include <sys/stat.h>
26144#endif
26145#ifdef HAVE_UNISTD_H
26146#include <unistd.h>
26147#endif
26148"
26149if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = xyes; then :
26150
26151cat >>confdefs.h <<_ACEOF
26152#define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1
26153_ACEOF
26154
26155
26156fi
26157ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "
26158#ifdef HAVE_SYS_TYPES_H
26159#include <sys/types.h>
26160#endif
26161#ifdef HAVE_SYS_STAT_H
26162#include <sys/stat.h>
26163#endif
26164#ifdef HAVE_UNISTD_H
26165#include <unistd.h>
26166#endif
26167"
26168if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
26169
26170cat >>confdefs.h <<_ACEOF
26171#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
26172_ACEOF
26173
26174
26175fi
26176ac_fn_c_check_member "$LINENO" "struct stat" "st_atime_n" "ac_cv_member_struct_stat_st_atime_n" "
26177#ifdef HAVE_SYS_TYPES_H
26178#include <sys/types.h>
26179#endif
26180#ifdef HAVE_SYS_STAT_H
26181#include <sys/stat.h>
26182#endif
26183#ifdef HAVE_UNISTD_H
26184#include <unistd.h>
26185#endif
26186"
26187if test "x$ac_cv_member_struct_stat_st_atime_n" = xyes; then :
26188
26189cat >>confdefs.h <<_ACEOF
26190#define HAVE_STRUCT_STAT_ST_ATIME_N 1
26191_ACEOF
26192
26193
26194fi
26195ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime_n" "ac_cv_member_struct_stat_st_ctime_n" "
26196#ifdef HAVE_SYS_TYPES_H
26197#include <sys/types.h>
26198#endif
26199#ifdef HAVE_SYS_STAT_H
26200#include <sys/stat.h>
26201#endif
26202#ifdef HAVE_UNISTD_H
26203#include <unistd.h>
26204#endif
26205"
26206if test "x$ac_cv_member_struct_stat_st_ctime_n" = xyes; then :
26207
26208cat >>confdefs.h <<_ACEOF
26209#define HAVE_STRUCT_STAT_ST_CTIME_N 1
26210_ACEOF
26211
26212
26213fi
26214ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_n" "ac_cv_member_struct_stat_st_mtime_n" "
26215#ifdef HAVE_SYS_TYPES_H
26216#include <sys/types.h>
26217#endif
26218#ifdef HAVE_SYS_STAT_H
26219#include <sys/stat.h>
26220#endif
26221#ifdef HAVE_UNISTD_H
26222#include <unistd.h>
26223#endif
26224"
26225if test "x$ac_cv_member_struct_stat_st_mtime_n" = xyes; then :
26226
26227cat >>confdefs.h <<_ACEOF
26228#define HAVE_STRUCT_STAT_ST_MTIME_N 1
26229_ACEOF
26230
26231
26232fi
26233
26234
26235
26236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inode member of struct dirent" >&5
26237$as_echo_n "checking for inode member of struct dirent... " >&6; }
26238if ${apr_cv_dirent_inode+:} false; then :
26239  $as_echo_n "(cached) " >&6
26240else
26241
26242apr_cv_dirent_inode=no
26243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26244/* end confdefs.h.  */
26245
26246#include <sys/types.h>
26247#include <dirent.h>
26248
26249int
26250main ()
26251{
26252
26253#ifdef d_ino
26254#undef d_ino
26255#endif
26256struct dirent de; de.d_fileno;
26257
26258  ;
26259  return 0;
26260}
26261_ACEOF
26262if ac_fn_c_try_compile "$LINENO"; then :
26263  apr_cv_dirent_inode=d_fileno
26264fi
26265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26266if test "$apr_cv_dirent_inode" = "no"; then
26267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26268/* end confdefs.h.  */
26269
26270#include <sys/types.h>
26271#include <dirent.h>
26272
26273int
26274main ()
26275{
26276
26277#ifdef d_fileno
26278#undef d_fileno
26279#endif
26280struct dirent de; de.d_ino;
26281
26282  ;
26283  return 0;
26284}
26285_ACEOF
26286if ac_fn_c_try_compile "$LINENO"; then :
26287  apr_cv_dirent_inode=d_ino
26288fi
26289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26290fi
26291
26292fi
26293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_inode" >&5
26294$as_echo "$apr_cv_dirent_inode" >&6; }
26295if test "$apr_cv_dirent_inode" != "no"; then
26296
26297cat >>confdefs.h <<_ACEOF
26298#define DIRENT_INODE $apr_cv_dirent_inode
26299_ACEOF
26300
26301fi
26302
26303
26304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file type member of struct dirent" >&5
26305$as_echo_n "checking for file type member of struct dirent... " >&6; }
26306if ${apr_cv_dirent_type+:} false; then :
26307  $as_echo_n "(cached) " >&6
26308else
26309
26310apr_cv_dirent_type=no
26311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26312/* end confdefs.h.  */
26313
26314#include <sys/types.h>
26315#include <dirent.h>
26316
26317int
26318main ()
26319{
26320
26321struct dirent de; de.d_type = DT_REG;
26322
26323  ;
26324  return 0;
26325}
26326_ACEOF
26327if ac_fn_c_try_compile "$LINENO"; then :
26328  apr_cv_dirent_type=d_type
26329fi
26330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26331
26332fi
26333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_type" >&5
26334$as_echo "$apr_cv_dirent_type" >&6; }
26335if test "$apr_cv_dirent_type" != "no"; then
26336
26337cat >>confdefs.h <<_ACEOF
26338#define DIRENT_TYPE $apr_cv_dirent_type
26339_ACEOF
26340
26341fi
26342
26343
26344echo "${nl}Checking for OS UUID Support..."
26345
26346for ac_header in uuid.h uuid/uuid.h sys/uuid.h
26347do :
26348  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26349ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26350if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26351  cat >>confdefs.h <<_ACEOF
26352#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26353_ACEOF
26354 break
26355fi
26356
26357done
26358
26359
26360apr_revert_save_LIBS=$LIBS
26361
26362# Prefer the flavor(s) that live in libc;
26363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
26364$as_echo_n "checking for library containing uuid_create... " >&6; }
26365if ${ac_cv_search_uuid_create+:} false; then :
26366  $as_echo_n "(cached) " >&6
26367else
26368  ac_func_search_save_LIBS=$LIBS
26369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26370/* end confdefs.h.  */
26371
26372/* Override any GCC internal prototype to avoid an error.
26373   Use char because int might match the return type of a GCC
26374   builtin and then its argument prototype would still apply.  */
26375#ifdef __cplusplus
26376extern "C"
26377#endif
26378char uuid_create ();
26379int
26380main ()
26381{
26382return uuid_create ();
26383  ;
26384  return 0;
26385}
26386_ACEOF
26387for ac_lib in '' uuid; do
26388  if test -z "$ac_lib"; then
26389    ac_res="none required"
26390  else
26391    ac_res=-l$ac_lib
26392    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26393  fi
26394  if ac_fn_c_try_link "$LINENO"; then :
26395  ac_cv_search_uuid_create=$ac_res
26396fi
26397rm -f core conftest.err conftest.$ac_objext \
26398    conftest$ac_exeext
26399  if ${ac_cv_search_uuid_create+:} false; then :
26400  break
26401fi
26402done
26403if ${ac_cv_search_uuid_create+:} false; then :
26404
26405else
26406  ac_cv_search_uuid_create=no
26407fi
26408rm conftest.$ac_ext
26409LIBS=$ac_func_search_save_LIBS
26410fi
26411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5
26412$as_echo "$ac_cv_search_uuid_create" >&6; }
26413ac_res=$ac_cv_search_uuid_create
26414if test "$ac_res" != no; then :
26415  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26416
26417fi
26418
26419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
26420$as_echo_n "checking for library containing uuid_generate... " >&6; }
26421if ${ac_cv_search_uuid_generate+:} false; then :
26422  $as_echo_n "(cached) " >&6
26423else
26424  ac_func_search_save_LIBS=$LIBS
26425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26426/* end confdefs.h.  */
26427
26428/* Override any GCC internal prototype to avoid an error.
26429   Use char because int might match the return type of a GCC
26430   builtin and then its argument prototype would still apply.  */
26431#ifdef __cplusplus
26432extern "C"
26433#endif
26434char uuid_generate ();
26435int
26436main ()
26437{
26438return uuid_generate ();
26439  ;
26440  return 0;
26441}
26442_ACEOF
26443for ac_lib in '' uuid; do
26444  if test -z "$ac_lib"; then
26445    ac_res="none required"
26446  else
26447    ac_res=-l$ac_lib
26448    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26449  fi
26450  if ac_fn_c_try_link "$LINENO"; then :
26451  ac_cv_search_uuid_generate=$ac_res
26452fi
26453rm -f core conftest.err conftest.$ac_objext \
26454    conftest$ac_exeext
26455  if ${ac_cv_search_uuid_generate+:} false; then :
26456  break
26457fi
26458done
26459if ${ac_cv_search_uuid_generate+:} false; then :
26460
26461else
26462  ac_cv_search_uuid_generate=no
26463fi
26464rm conftest.$ac_ext
26465LIBS=$ac_func_search_save_LIBS
26466fi
26467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
26468$as_echo "$ac_cv_search_uuid_generate" >&6; }
26469ac_res=$ac_cv_search_uuid_generate
26470if test "$ac_res" != no; then :
26471  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26472
26473fi
26474
26475if test "$ac_cv_search_uuid_create" = "none required" -o \
26476        "$ac_cv_search_uuid_generate" = "none required"; then
26477 LIBS=$apr_revert_save_LIBS
26478fi
26479
26480for ac_func in uuid_create uuid_generate
26481do :
26482  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26483ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26484if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26485  cat >>confdefs.h <<_ACEOF
26486#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26487_ACEOF
26488
26489fi
26490done
26491
26492
26493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for os uuid usability" >&5
26494$as_echo_n "checking for os uuid usability... " >&6; }
26495if ${apr_cv_osuuid+:} false; then :
26496  $as_echo_n "(cached) " >&6
26497else
26498
26499# Ensure this test closely mirrors misc/unix/rand.c!
26500uuid_includes="
26501#if defined(HAVE_SYS_TYPES_H)
26502#include <sys/types.h>
26503#endif
26504#if defined(HAVE_UNISTD_H)
26505#include <unistd.h>
26506#endif
26507#if defined(HAVE_UUID_H)
26508#include <uuid.h>
26509#elif defined(HAVE_UUID_UUID_H)
26510#include <uuid/uuid.h>
26511#elif defined(HAVE_SYS_UUID_H)
26512#include <sys/uuid.h>
26513#endif
26514"
26515 apr_cv_osuuid=no
26516 if test $ac_cv_func_uuid_create = yes; then
26517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26518/* end confdefs.h.  */
26519$uuid_includes
26520int
26521main ()
26522{
26523
26524    uuid_t g;
26525    uint32_t s;
26526    uuid_create(&g, &s);
26527    if (s == uuid_s_ok) s = 0;
26528
26529  ;
26530  return 0;
26531}
26532_ACEOF
26533if ac_fn_c_try_link "$LINENO"; then :
26534  apr_cv_osuuid=yes
26535else
26536  apr_cv_func_uuid_create=no
26537fi
26538rm -f core conftest.err conftest.$ac_objext \
26539    conftest$ac_exeext conftest.$ac_ext
26540 fi
26541 if test $ac_cv_func_uuid_generate = yes; then
26542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26543/* end confdefs.h.  */
26544$uuid_includes
26545int
26546main ()
26547{
26548
26549    uuid_t g;
26550    uuid_generate(g);
26551
26552  ;
26553  return 0;
26554}
26555_ACEOF
26556if ac_fn_c_try_link "$LINENO"; then :
26557  apr_cv_osuuid=yes
26558else
26559  apr_cv_func_uuid_generate=no
26560fi
26561rm -f core conftest.err conftest.$ac_objext \
26562    conftest$ac_exeext conftest.$ac_ext
26563 fi
26564
26565fi
26566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_osuuid" >&5
26567$as_echo "$apr_cv_osuuid" >&6; }
26568
26569if test $apr_cv_osuuid = yes; then
26570  osuuid="1"
26571else
26572  osuuid="0"
26573  LIBS=$apr_revert_save_LIBS
26574fi
26575
26576
26577
26578echo "${nl}Checking for Time Support..."
26579
26580ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "
26581#include <sys/types.h>
26582#include <time.h>
26583"
26584if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
26585
26586cat >>confdefs.h <<_ACEOF
26587#define HAVE_STRUCT_TM_TM_GMTOFF 1
26588_ACEOF
26589
26590
26591fi
26592ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "
26593#include <sys/types.h>
26594#include <time.h>
26595"
26596if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then :
26597
26598cat >>confdefs.h <<_ACEOF
26599#define HAVE_STRUCT_TM___TM_GMTOFF 1
26600_ACEOF
26601
26602
26603fi
26604
26605
26606echo "${nl}Checking for Networking support..."
26607
26608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type in_addr" >&5
26609$as_echo_n "checking for type in_addr... " >&6; }
26610if ${ac_cv_type_in_addr+:} false; then :
26611  $as_echo_n "(cached) " >&6
26612else
26613
26614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26615/* end confdefs.h.  */
26616
26617#ifdef HAVE_SYS_TYPES_H
26618#include <sys/types.h>
26619#endif
26620#ifdef HAVE_NETINET_IN_H
26621#include <netinet/in.h>
26622#endif
26623#ifdef HAVE_WINSOCK2_H
26624#include <winsock2.h>
26625#endif
26626
26627int
26628main ()
26629{
26630
26631 struct in_addr arg;
26632 arg.s_addr = htonl(INADDR_ANY);
26633
26634  ;
26635  return 0;
26636}
26637_ACEOF
26638if ac_fn_c_try_compile "$LINENO"; then :
26639   ac_cv_type_in_addr="yes"
26640else
26641
26642ac_cv_type_in_addr="no"
26643fi
26644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26645
26646fi
26647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_in_addr" >&5
26648$as_echo "$ac_cv_type_in_addr" >&6; }
26649
26650if test "$ac_cv_type_in_addr" = "yes"; then
26651  have_in_addr="1"
26652else
26653  have_in_addr="0"
26654fi
26655
26656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fd == socket on this platform" >&5
26657$as_echo_n "checking if fd == socket on this platform... " >&6; }
26658if test "x$file_as_socket" != "x0" ; then
26659    file_as_socket="1";
26660    echo "yes"
26661else
26662    echo "no"
26663fi
26664
26665
26666
26667
26668if test "$ac_cv_func_poll $file_as_socket" = "yes 1"; then
26669
26670$as_echo "#define WAITIO_USES_POLL 1" >>confdefs.h
26671
26672fi
26673
26674# Check the types only if we have gethostbyname_r
26675if test "$ac_cv_func_gethostbyname_r" = "yes"; then
26676
26677
26678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking style of gethostbyname_r routine" >&5
26679$as_echo_n "checking style of gethostbyname_r routine... " >&6; }
26680if ${ac_cv_gethostbyname_r_style+:} false; then :
26681  $as_echo_n "(cached) " >&6
26682else
26683  apr_save_CFLAGS=$CFLAGS
26684 CFLAGS="$CFLAGS $CFLAGS_WARN"
26685 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26686   CFLAGS="$CFLAGS -Werror"
26687 fi
26688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26689/* end confdefs.h.  */
26690#include "confdefs.h"
26691
26692
26693#ifdef HAVE_SYS_TYPES_H
26694#include <sys/types.h>
26695#endif
26696#ifdef HAVE_NETINET_IN_H
26697#include <netinet/in.h>
26698#endif
26699#ifdef HAVE_ARPA_INET_H
26700#include <arpa/inet.h>
26701#endif
26702#ifdef HAVE_NETDB_H
26703#include <netdb.h>
26704#endif
26705#ifdef HAVE_STDLIB_H
26706#include <stdlib.h>
26707#endif
26708
26709   int main(int argc, const char *const *argv) {
26710
26711int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
26712                          (char *) 0, 0, (struct hostent **) 0, &tmp);
26713/* use tmp to suppress the warning */
26714tmp=0;
26715
26716      return 0; }
26717
26718_ACEOF
26719if ac_fn_c_try_compile "$LINENO"; then :
26720  ac_cv_gethostbyname_r_style=glibc2
26721else
26722  ac_cv_gethostbyname_r_style=none
26723fi
26724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26725 CFLAGS=$apr_save_CFLAGS
26726
26727fi
26728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_style" >&5
26729$as_echo "$ac_cv_gethostbyname_r_style" >&6; }
26730
26731if test "$ac_cv_gethostbyname_r_style" = "glibc2"; then
26732
26733$as_echo "#define GETHOSTBYNAME_R_GLIBC2 1" >>confdefs.h
26734
26735fi
26736
26737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking 3rd argument to the gethostbyname_r routines" >&5
26738$as_echo_n "checking 3rd argument to the gethostbyname_r routines... " >&6; }
26739if ${ac_cv_gethostbyname_r_arg+:} false; then :
26740  $as_echo_n "(cached) " >&6
26741else
26742  apr_save_CFLAGS=$CFLAGS
26743 CFLAGS="$CFLAGS $CFLAGS_WARN"
26744 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26745   CFLAGS="$CFLAGS -Werror"
26746 fi
26747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26748/* end confdefs.h.  */
26749#include "confdefs.h"
26750
26751
26752#ifdef HAVE_SYS_TYPES_H
26753#include <sys/types.h>
26754#endif
26755#ifdef HAVE_NETINET_IN_H
26756#include <netinet/in.h>
26757#endif
26758#ifdef HAVE_ARPA_INET_H
26759#include <arpa/inet.h>
26760#endif
26761#ifdef HAVE_NETDB_H
26762#include <netdb.h>
26763#endif
26764#ifdef HAVE_STDLIB_H
26765#include <stdlib.h>
26766#endif
26767
26768   int main(int argc, const char *const *argv) {
26769
26770int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
26771                          (struct hostent_data *) 0);
26772/* use tmp to suppress the warning */
26773tmp=0;
26774
26775      return 0; }
26776
26777_ACEOF
26778if ac_fn_c_try_compile "$LINENO"; then :
26779  ac_cv_gethostbyname_r_arg=hostent_data
26780else
26781  ac_cv_gethostbyname_r_arg=char
26782fi
26783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26784 CFLAGS=$apr_save_CFLAGS
26785
26786fi
26787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_arg" >&5
26788$as_echo "$ac_cv_gethostbyname_r_arg" >&6; }
26789
26790if test "$ac_cv_gethostbyname_r_arg" = "hostent_data"; then
26791
26792$as_echo "#define GETHOSTBYNAME_R_HOSTENT_DATA 1" >>confdefs.h
26793
26794fi
26795
26796fi
26797
26798# Check the types only if we have getservbyname_r
26799if test "$ac_cv_func_getservbyname_r" = "yes"; then
26800
26801
26802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking style of getservbyname_r routine" >&5
26803$as_echo_n "checking style of getservbyname_r routine... " >&6; }
26804if ${ac_cv_getservbyname_r_style+:} false; then :
26805  $as_echo_n "(cached) " >&6
26806else
26807
26808apr_save_CFLAGS=$CFLAGS
26809 CFLAGS="$CFLAGS $CFLAGS_WARN"
26810 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26811   CFLAGS="$CFLAGS -Werror"
26812 fi
26813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26814/* end confdefs.h.  */
26815#include "confdefs.h"
26816
26817
26818#ifdef HAVE_SYS_TYPES_H
26819#include <sys/types.h>
26820#endif
26821#ifdef HAVE_NETINET_IN_H
26822#include <netinet/in.h>
26823#endif
26824#ifdef HAVE_ARPA_INET_H
26825#include <arpa/inet.h>
26826#endif
26827#ifdef HAVE_NETDB_H
26828#include <netdb.h>
26829#endif
26830#ifdef HAVE_STDLIB_H
26831#include <stdlib.h>
26832#endif
26833
26834   int main(int argc, const char *const *argv) {
26835
26836int tmp = getservbyname_r((const char *) 0, (const char *) 0,
26837                          (struct servent *) 0, (char *) 0, 0,
26838                          (struct servent **) 0);
26839/* use tmp to suppress the warning */
26840tmp=0;
26841
26842      return 0; }
26843
26844_ACEOF
26845if ac_fn_c_try_compile "$LINENO"; then :
26846  ac_cv_getservbyname_r_style=glibc2
26847else
26848  ac_cv_getservbyname_r_style=none
26849fi
26850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26851 CFLAGS=$apr_save_CFLAGS
26852
26853
26854if test "$ac_cv_getservbyname_r_style" = "none"; then
26855            apr_save_CFLAGS=$CFLAGS
26856 CFLAGS="$CFLAGS $CFLAGS_WARN"
26857 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26858   CFLAGS="$CFLAGS -Werror"
26859 fi
26860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26861/* end confdefs.h.  */
26862#include "confdefs.h"
26863
26864
26865    #ifdef HAVE_SYS_TYPES_H
26866    #include <sys/types.h>
26867    #endif
26868    #ifdef HAVE_NETINET_IN_H
26869    #include <netinet/in.h>
26870    #endif
26871    #ifdef HAVE_ARPA_INET_H
26872    #include <arpa/inet.h>
26873    #endif
26874    #ifdef HAVE_NETDB_H
26875    #include <netdb.h>
26876    #endif
26877    #ifdef HAVE_STDLIB_H
26878    #include <stdlib.h>
26879    #endif
26880
26881   int main(int argc, const char *const *argv) {
26882
26883    struct servent *tmp = getservbyname_r((const char *) 0, (const char *) 0,
26884                                          (struct servent *) 0, (char *) 0, 0);
26885    /* use tmp to suppress the warning */
26886    tmp=NULL;
26887
26888      return 0; }
26889
26890_ACEOF
26891if ac_fn_c_try_compile "$LINENO"; then :
26892  ac_cv_getservbyname_r_style=solaris
26893else
26894  ac_cv_getservbyname_r_style=none
26895fi
26896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26897 CFLAGS=$apr_save_CFLAGS
26898
26899fi
26900
26901if test "$ac_cv_getservbyname_r_style" = "none"; then
26902            apr_save_CFLAGS=$CFLAGS
26903 CFLAGS="$CFLAGS $CFLAGS_WARN"
26904 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26905   CFLAGS="$CFLAGS -Werror"
26906 fi
26907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26908/* end confdefs.h.  */
26909#include "confdefs.h"
26910
26911
26912    #ifdef HAVE_SYS_TYPES_H
26913    #include <sys/types.h>
26914    #endif
26915    #ifdef HAVE_NETINET_IN_H
26916    #include <netinet/in.h>
26917    #endif
26918    #ifdef HAVE_ARPA_INET_H
26919    #include <arpa/inet.h>
26920    #endif
26921    #ifdef HAVE_NETDB_H
26922    #include <netdb.h>
26923    #endif
26924    #ifdef HAVE_STDLIB_H
26925    #include <stdlib.h>
26926    #endif
26927
26928   int main(int argc, const char *const *argv) {
26929
26930    int tmp = getservbyname_r((const char *) 0, (const char *) 0,
26931                              (struct servent *) 0, (struct servent_data *) 0);
26932    /* use tmp to suppress the warning */
26933    tmp=0;
26934
26935      return 0; }
26936
26937_ACEOF
26938if ac_fn_c_try_compile "$LINENO"; then :
26939  ac_cv_getservbyname_r_style=osf1
26940else
26941  ac_cv_getservbyname_r_style=none
26942fi
26943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26944 CFLAGS=$apr_save_CFLAGS
26945
26946fi
26947
26948fi
26949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_getservbyname_r_style" >&5
26950$as_echo "$ac_cv_getservbyname_r_style" >&6; }
26951
26952if test "$ac_cv_getservbyname_r_style" = "glibc2"; then
26953
26954$as_echo "#define GETSERVBYNAME_R_GLIBC2 1" >>confdefs.h
26955
26956elif test "$ac_cv_getservbyname_r_style" = "solaris"; then
26957
26958$as_echo "#define GETSERVBYNAME_R_SOLARIS 1" >>confdefs.h
26959
26960elif test "$ac_cv_getservbyname_r_style" = "osf1"; then
26961
26962$as_echo "#define GETSERVBYNAME_R_OSF1 1" >>confdefs.h
26963
26964fi
26965
26966fi
26967
26968
26969  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TCP_NODELAY setting is inherited from listening sockets" >&5
26970$as_echo_n "checking if TCP_NODELAY setting is inherited from listening sockets... " >&6; }
26971if ${ac_cv_tcp_nodelay_inherited+:} false; then :
26972  $as_echo_n "(cached) " >&6
26973else
26974
26975  if test "$cross_compiling" = yes; then :
26976
26977    ac_cv_tcp_nodelay_inherited="yes"
26978
26979else
26980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26981/* end confdefs.h.  */
26982
26983#include <stdio.h>
26984#ifdef HAVE_SYS_TYPES_H
26985#include <sys/types.h>
26986#endif
26987#ifdef HAVE_SYS_SOCKET_H
26988#include <sys/socket.h>
26989#endif
26990#ifdef HAVE_NETINET_IN_H
26991#include <netinet/in.h>
26992#endif
26993#ifdef HAVE_NETINET_TCP_H
26994#include <netinet/tcp.h>
26995#endif
26996#ifndef HAVE_SOCKLEN_T
26997typedef int socklen_t;
26998#endif
26999int main(void) {
27000    int listen_s, connected_s, client_s;
27001    int listen_port, rc;
27002    struct sockaddr_in sa;
27003    socklen_t sa_len;
27004    socklen_t option_len;
27005    int option;
27006
27007    listen_s = socket(AF_INET, SOCK_STREAM, 0);
27008    if (listen_s < 0) {
27009        perror("socket");
27010        exit(1);
27011    }
27012    option = 1;
27013    rc = setsockopt(listen_s, IPPROTO_TCP, TCP_NODELAY, &option, sizeof option);
27014    if (rc < 0) {
27015        perror("setsockopt TCP_NODELAY");
27016        exit(1);
27017    }
27018    memset(&sa, 0, sizeof sa);
27019    sa.sin_family = AF_INET;
27020#ifdef BEOS
27021    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27022#endif
27023    /* leave port 0 to get ephemeral */
27024    rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
27025    if (rc < 0) {
27026        perror("bind for ephemeral port");
27027        exit(1);
27028    }
27029    /* find ephemeral port */
27030    sa_len = sizeof(sa);
27031    rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
27032    if (rc < 0) {
27033        perror("getsockname");
27034        exit(1);
27035    }
27036    listen_port = sa.sin_port;
27037    rc = listen(listen_s, 5);
27038    if (rc < 0) {
27039        perror("listen");
27040        exit(1);
27041    }
27042    client_s = socket(AF_INET, SOCK_STREAM, 0);
27043    if (client_s < 0) {
27044        perror("socket");
27045        exit(1);
27046    }
27047    memset(&sa, 0, sizeof sa);
27048    sa.sin_family = AF_INET;
27049    sa.sin_port   = listen_port;
27050#ifdef BEOS
27051    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27052#endif
27053    /* leave sin_addr all zeros to use loopback */
27054    rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
27055    if (rc < 0) {
27056        perror("connect");
27057        exit(1);
27058    }
27059    sa_len = sizeof sa;
27060    connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
27061    if (connected_s < 0) {
27062        perror("accept");
27063        exit(1);
27064    }
27065    option_len = sizeof option;
27066    rc = getsockopt(connected_s, IPPROTO_TCP, TCP_NODELAY, &option, &option_len);
27067    if (rc < 0) {
27068        perror("getsockopt");
27069        exit(1);
27070    }
27071    if (!option) {
27072        fprintf(stderr, "TCP_NODELAY is not set in the child.\n");
27073        exit(1);
27074    }
27075    return 0;
27076}
27077
27078_ACEOF
27079if ac_fn_c_try_run "$LINENO"; then :
27080
27081    ac_cv_tcp_nodelay_inherited="yes"
27082
27083else
27084
27085    ac_cv_tcp_nodelay_inherited="no"
27086
27087fi
27088rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27089  conftest.$ac_objext conftest.beam conftest.$ac_ext
27090fi
27091
27092fi
27093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tcp_nodelay_inherited" >&5
27094$as_echo "$ac_cv_tcp_nodelay_inherited" >&6; }
27095if test "$ac_cv_tcp_nodelay_inherited" = "yes"; then
27096    tcp_nodelay_inherited=1
27097else
27098    tcp_nodelay_inherited=0
27099fi
27100
27101
27102  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if O_NONBLOCK setting is inherited from listening sockets" >&5
27103$as_echo_n "checking if O_NONBLOCK setting is inherited from listening sockets... " >&6; }
27104if ${ac_cv_o_nonblock_inherited+:} false; then :
27105  $as_echo_n "(cached) " >&6
27106else
27107
27108  if test "$cross_compiling" = yes; then :
27109
27110    ac_cv_o_nonblock_inherited="yes"
27111
27112else
27113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27114/* end confdefs.h.  */
27115
27116#ifdef HAVE_STDLIB_H
27117#include <stdlib.h>
27118#endif
27119#ifdef HAVE_STRING_H
27120#include <string.h>
27121#endif
27122#ifdef HAVE_STDIO_H
27123#include <stdio.h>
27124#endif
27125#ifdef HAVE_SYS_TYPES_H
27126#include <sys/types.h>
27127#endif
27128#ifdef HAVE_SYS_SOCKET_H
27129#include <sys/socket.h>
27130#endif
27131#ifdef HAVE_SYS_SELECT_H
27132#include <sys/select.h>
27133#endif
27134#ifdef HAVE_NETINET_IN_H
27135#include <netinet/in.h>
27136#endif
27137#ifdef HAVE_NETINET_TCP_H
27138#include <netinet/tcp.h>
27139#endif
27140#ifndef HAVE_SOCKLEN_T
27141typedef int socklen_t;
27142#endif
27143#ifdef HAVE_FCNTL_H
27144#include <fcntl.h>
27145#endif
27146int main(void) {
27147    int listen_s, connected_s, client_s;
27148    int listen_port, rc;
27149    struct sockaddr_in sa;
27150    socklen_t sa_len;
27151
27152    listen_s = socket(AF_INET, SOCK_STREAM, 0);
27153    if (listen_s < 0) {
27154        perror("socket");
27155        exit(1);
27156    }
27157    memset(&sa, 0, sizeof sa);
27158    sa.sin_family = AF_INET;
27159#ifdef BEOS
27160    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27161#endif
27162    /* leave port 0 to get ephemeral */
27163    rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
27164    if (rc < 0) {
27165        perror("bind for ephemeral port");
27166        exit(1);
27167    }
27168    /* find ephemeral port */
27169    sa_len = sizeof(sa);
27170    rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
27171    if (rc < 0) {
27172        perror("getsockname");
27173        exit(1);
27174    }
27175    listen_port = sa.sin_port;
27176    rc = listen(listen_s, 5);
27177    if (rc < 0) {
27178        perror("listen");
27179        exit(1);
27180    }
27181    rc = fcntl(listen_s, F_SETFL, O_NONBLOCK);
27182    if (rc < 0) {
27183        perror("fcntl(F_SETFL)");
27184        exit(1);
27185    }
27186    client_s = socket(AF_INET, SOCK_STREAM, 0);
27187    if (client_s < 0) {
27188        perror("socket");
27189        exit(1);
27190    }
27191    memset(&sa, 0, sizeof sa);
27192    sa.sin_family = AF_INET;
27193    sa.sin_port   = listen_port;
27194#ifdef BEOS
27195    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27196#endif
27197    /* leave sin_addr all zeros to use loopback */
27198    rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
27199    if (rc < 0) {
27200        perror("connect");
27201        exit(1);
27202    }
27203    sa_len = sizeof sa;
27204    /* 1 second select timeout */
27205    tv.tv_sec = 1;
27206    tv.tv_usec = 0;
27207    /* Set up fd set */
27208    FD_ZERO(&fds);
27209    FD_SET(listen_s, &fds);
27210    /* Wait for socket to become readable */
27211    rc = select(listen_s + 1, &fds, NULL, NULL, &tv);
27212    if (rc < 0) {
27213        perror("select");
27214        exit(1);
27215    }
27216    if (rc == 0) {
27217        fprintf(stderr, "Socket failed to become readable (timeout)\n");
27218        exit(1);
27219    }
27220    if (!FD_ISSET(listen_s, &fds)) {
27221        fprintf(stderr, "Socket failed to become readable (selected another fd)\n");
27222        exit(1);
27223    }
27224    connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
27225    if (connected_s < 0) {
27226        perror("accept");
27227        exit(1);
27228    }
27229    rc = fcntl(connected_s, F_GETFL, 0);
27230    if (rc < 0) {
27231        perror("fcntl(F_GETFL)");
27232        exit(1);
27233    }
27234    if (!(rc & O_NONBLOCK)) {
27235        fprintf(stderr, "O_NONBLOCK is not set in the child.\n");
27236        exit(1);
27237    }
27238    return 0;
27239}
27240
27241_ACEOF
27242if ac_fn_c_try_run "$LINENO"; then :
27243
27244    ac_cv_o_nonblock_inherited="yes"
27245
27246else
27247
27248    ac_cv_o_nonblock_inherited="no"
27249
27250fi
27251rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27252  conftest.$ac_objext conftest.beam conftest.$ac_ext
27253fi
27254
27255fi
27256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_nonblock_inherited" >&5
27257$as_echo "$ac_cv_o_nonblock_inherited" >&6; }
27258if test "$ac_cv_o_nonblock_inherited" = "yes"; then
27259    o_nonblock_inherited=1
27260else
27261    o_nonblock_inherited=0
27262fi
27263
27264
27265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCP_NODELAY and TCP_CORK can both be enabled" >&5
27266$as_echo_n "checking whether TCP_NODELAY and TCP_CORK can both be enabled... " >&6; }
27267if ${apr_cv_tcp_nodelay_with_cork+:} false; then :
27268  $as_echo_n "(cached) " >&6
27269else
27270  if test "$cross_compiling" = yes; then :
27271  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27273as_fn_error $? "cannot run test program while cross compiling
27274See \`config.log' for more details" "$LINENO" 5; }
27275else
27276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27277/* end confdefs.h.  */
27278
27279#ifdef HAVE_SYS_TYPES_H
27280#include <sys/types.h>
27281#endif
27282#ifdef HAVE_SYS_SOCKET_H
27283#include <sys/socket.h>
27284#endif
27285#ifdef HAVE_NETINET_IN_H
27286#include <netinet/in.h>
27287#endif
27288#ifdef HAVE_NETINET_TCP_H
27289#include <netinet/tcp.h>
27290#endif
27291#include <stdio.h>
27292#include <stdlib.h>
27293
27294int
27295main ()
27296{
27297
27298    int fd, flag, rc;
27299
27300    fd = socket(AF_INET, SOCK_STREAM, 0);
27301    if (fd < 0) {
27302       exit(1);
27303    }
27304
27305    flag = 1;
27306    rc = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &flag, sizeof flag);
27307    if (rc < 0) {
27308        perror("setsockopt TCP_NODELAY");
27309        exit(2);
27310    }
27311
27312    flag = 1;
27313    rc = setsockopt(fd, IPPROTO_TCP, TCP_CORK, &flag, sizeof flag);
27314    if (rc < 0) {
27315        perror("setsockopt TCP_CORK");
27316        exit(3);
27317    }
27318
27319    exit(0);
27320
27321  ;
27322  return 0;
27323}
27324_ACEOF
27325if ac_fn_c_try_run "$LINENO"; then :
27326  apr_cv_tcp_nodelay_with_cork=yes
27327else
27328  apr_cv_tcp_nodelay_with_cork=no
27329fi
27330rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27331  conftest.$ac_objext conftest.beam conftest.$ac_ext
27332fi
27333
27334fi
27335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_tcp_nodelay_with_cork" >&5
27336$as_echo "$apr_cv_tcp_nodelay_with_cork" >&6; }
27337
27338if test "$apr_cv_tcp_nodelay_with_cork" = "yes"; then
27339
27340$as_echo "#define HAVE_TCP_NODELAY_WITH_CORK 1" >>confdefs.h
27341
27342fi
27343
27344
27345# Look for a way of corking TCP...
27346
27347  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_CORK in netinet/tcp.h" >&5
27348$as_echo_n "checking for TCP_CORK in netinet/tcp.h... " >&6; }
27349if ${ac_cv_define_TCP_CORK+:} false; then :
27350  $as_echo_n "(cached) " >&6
27351else
27352
27353    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27354/* end confdefs.h.  */
27355
27356#include <netinet/tcp.h>
27357#ifdef TCP_CORK
27358YES_IS_DEFINED
27359#endif
27360
27361_ACEOF
27362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27363  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
27364  ac_cv_define_TCP_CORK=yes
27365else
27366  ac_cv_define_TCP_CORK=no
27367fi
27368rm -f conftest*
27369
27370
27371fi
27372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_CORK" >&5
27373$as_echo "$ac_cv_define_TCP_CORK" >&6; }
27374  if test "$ac_cv_define_TCP_CORK" = "yes"; then
27375
27376$as_echo "#define HAVE_TCP_CORK 1" >>confdefs.h
27377
27378  fi
27379
27380
27381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_NOPUSH in netinet/tcp.h" >&5
27382$as_echo_n "checking for TCP_NOPUSH in netinet/tcp.h... " >&6; }
27383if ${ac_cv_define_TCP_NOPUSH+:} false; then :
27384  $as_echo_n "(cached) " >&6
27385else
27386
27387    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27388/* end confdefs.h.  */
27389
27390#include <netinet/tcp.h>
27391#ifdef TCP_NOPUSH
27392YES_IS_DEFINED
27393#endif
27394
27395_ACEOF
27396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27397  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
27398  ac_cv_define_TCP_NOPUSH=yes
27399else
27400  ac_cv_define_TCP_NOPUSH=no
27401fi
27402rm -f conftest*
27403
27404
27405fi
27406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_NOPUSH" >&5
27407$as_echo "$ac_cv_define_TCP_NOPUSH" >&6; }
27408  if test "$ac_cv_define_TCP_NOPUSH" = "yes"; then
27409
27410$as_echo "#define HAVE_TCP_NOPUSH 1" >>confdefs.h
27411
27412  fi
27413
27414apr_tcp_nopush_flag="0"
27415have_corkable_tcp="0"
27416if test "x$ac_cv_define_TCP_CORK" = "xyes"; then
27417    apr_tcp_nopush_flag="TCP_CORK"
27418    have_corkable_tcp="1"
27419else
27420    case $host in
27421        *linux*)
27422            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27423/* end confdefs.h.  */
27424
27425#include <linux/socket.h>
27426#ifdef TCP_CORK
27427yes
27428#endif
27429
27430_ACEOF
27431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27432  $EGREP "yes" >/dev/null 2>&1; then :
27433
27434                apr_tcp_nopush_flag="3"
27435                have_corkable_tcp="1"
27436
27437fi
27438rm -f conftest*
27439
27440            ;;
27441        *)
27442            ;;
27443    esac
27444fi
27445if test "x$ac_cv_define_TCP_NOPUSH" = "xyes"; then
27446    apr_tcp_nopush_flag="TCP_NOPUSH"
27447    have_corkable_tcp="1"
27448fi
27449
27450
27451  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_ACCEPTFILTER in sys/socket.h" >&5
27452$as_echo_n "checking for SO_ACCEPTFILTER in sys/socket.h... " >&6; }
27453if ${ac_cv_define_SO_ACCEPTFILTER+:} false; then :
27454  $as_echo_n "(cached) " >&6
27455else
27456
27457    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27458/* end confdefs.h.  */
27459
27460#include <sys/socket.h>
27461#ifdef SO_ACCEPTFILTER
27462YES_IS_DEFINED
27463#endif
27464
27465_ACEOF
27466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27467  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
27468  ac_cv_define_SO_ACCEPTFILTER=yes
27469else
27470  ac_cv_define_SO_ACCEPTFILTER=no
27471fi
27472rm -f conftest*
27473
27474
27475fi
27476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SO_ACCEPTFILTER" >&5
27477$as_echo "$ac_cv_define_SO_ACCEPTFILTER" >&6; }
27478  if test "$ac_cv_define_SO_ACCEPTFILTER" = "yes"; then
27479
27480$as_echo "#define HAVE_SO_ACCEPTFILTER 1" >>confdefs.h
27481
27482  fi
27483
27484if test "x$ac_cv_define_SO_ACCEPTFILTER" = "xyes"; then
27485    acceptfilter="1"
27486else
27487    acceptfilter="0"
27488fi
27489
27490
27491  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SCTP is supported" >&5
27492$as_echo_n "checking whether SCTP is supported... " >&6; }
27493if ${apr_cv_sctp+:} false; then :
27494  $as_echo_n "(cached) " >&6
27495else
27496
27497  if test "$cross_compiling" = yes; then :
27498  apr_cv_sctp=no
27499else
27500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27501/* end confdefs.h.  */
27502
27503#ifdef HAVE_SYS_TYPES_H
27504#include <sys/types.h>
27505#endif
27506#ifdef HAVE_SYS_SOCKET_H
27507#include <sys/socket.h>
27508#endif
27509#ifdef HAVE_NETINET_IN_H
27510#include <netinet/in.h>
27511#endif
27512#ifdef HAVE_NETINET_SCTP_H
27513#include <netinet/sctp.h>
27514#endif
27515#ifdef HAVE_NETINET_SCTP_UIO_H
27516#include <netinet/sctp_uio.h>
27517#endif
27518#include <stdlib.h>
27519int main(void) {
27520    int s, opt = 1;
27521    if ((s = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP)) < 0)
27522       exit(1);
27523    if (setsockopt(s, IPPROTO_SCTP, SCTP_NODELAY, &opt, sizeof(int)) < 0)
27524       exit(2);
27525    exit(0);
27526}
27527_ACEOF
27528if ac_fn_c_try_run "$LINENO"; then :
27529  apr_cv_sctp=yes
27530else
27531  apr_cv_sctp=no
27532fi
27533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27534  conftest.$ac_objext conftest.beam conftest.$ac_ext
27535fi
27536
27537fi
27538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sctp" >&5
27539$as_echo "$apr_cv_sctp" >&6; }
27540
27541if test "$apr_cv_sctp" = "yes"; then
27542    have_sctp=1
27543else
27544    have_sctp=0
27545fi
27546
27547
27548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip_mreq" >&5
27549$as_echo_n "checking for struct ip_mreq... " >&6; }
27550if ${apr_cv_struct_ipmreq+:} false; then :
27551  $as_echo_n "(cached) " >&6
27552else
27553
27554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27555/* end confdefs.h.  */
27556
27557#include <sys/types.h>
27558#include <netinet/in.h>
27559
27560int
27561main ()
27562{
27563
27564    struct ip_mreq mip;
27565    mip.imr_interface.s_addr = INADDR_ANY;
27566
27567  ;
27568  return 0;
27569}
27570_ACEOF
27571if ac_fn_c_try_compile "$LINENO"; then :
27572  apr_cv_struct_ipmreq=yes
27573else
27574  apr_cv_struct_ipmreq=no
27575fi
27576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27577fi
27578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_struct_ipmreq" >&5
27579$as_echo "$apr_cv_struct_ipmreq" >&6; }
27580
27581if test $apr_cv_struct_ipmreq = yes; then
27582
27583$as_echo "#define HAVE_STRUCT_IPMREQ 1" >>confdefs.h
27584
27585fi
27586
27587
27588
27589
27590
27591
27592
27593for ac_func in set_h_errno
27594do :
27595  ac_fn_c_check_func "$LINENO" "set_h_errno" "ac_cv_func_set_h_errno"
27596if test "x$ac_cv_func_set_h_errno" = xyes; then :
27597  cat >>confdefs.h <<_ACEOF
27598#define HAVE_SET_H_ERRNO 1
27599_ACEOF
27600
27601fi
27602done
27603
27604
27605echo "${nl}Checking for IPv6 Networking support..."
27606
27607# Check whether --enable-ipv6 was given.
27608if test "${enable_ipv6+set}" = set; then :
27609  enableval=$enable_ipv6;  if test "$enableval" = "no"; then
27610        user_disabled_ipv6=1
27611    fi
27612else
27613   user_disabled_ipv6=0
27614fi
27615
27616
27617case $host in
27618  *)
27619    broken_ipv6=0
27620esac
27621
27622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
27623$as_echo_n "checking for library containing getaddrinfo... " >&6; }
27624if ${ac_cv_search_getaddrinfo+:} false; then :
27625  $as_echo_n "(cached) " >&6
27626else
27627  ac_func_search_save_LIBS=$LIBS
27628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27629/* end confdefs.h.  */
27630
27631/* Override any GCC internal prototype to avoid an error.
27632   Use char because int might match the return type of a GCC
27633   builtin and then its argument prototype would still apply.  */
27634#ifdef __cplusplus
27635extern "C"
27636#endif
27637char getaddrinfo ();
27638int
27639main ()
27640{
27641return getaddrinfo ();
27642  ;
27643  return 0;
27644}
27645_ACEOF
27646for ac_lib in '' socket inet6; do
27647  if test -z "$ac_lib"; then
27648    ac_res="none required"
27649  else
27650    ac_res=-l$ac_lib
27651    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27652  fi
27653  if ac_fn_c_try_link "$LINENO"; then :
27654  ac_cv_search_getaddrinfo=$ac_res
27655fi
27656rm -f core conftest.err conftest.$ac_objext \
27657    conftest$ac_exeext
27658  if ${ac_cv_search_getaddrinfo+:} false; then :
27659  break
27660fi
27661done
27662if ${ac_cv_search_getaddrinfo+:} false; then :
27663
27664else
27665  ac_cv_search_getaddrinfo=no
27666fi
27667rm conftest.$ac_ext
27668LIBS=$ac_func_search_save_LIBS
27669fi
27670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
27671$as_echo "$ac_cv_search_getaddrinfo" >&6; }
27672ac_res=$ac_cv_search_getaddrinfo
27673if test "$ac_res" != no; then :
27674  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27675
27676fi
27677
27678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gai_strerror" >&5
27679$as_echo_n "checking for library containing gai_strerror... " >&6; }
27680if ${ac_cv_search_gai_strerror+:} false; then :
27681  $as_echo_n "(cached) " >&6
27682else
27683  ac_func_search_save_LIBS=$LIBS
27684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27685/* end confdefs.h.  */
27686
27687/* Override any GCC internal prototype to avoid an error.
27688   Use char because int might match the return type of a GCC
27689   builtin and then its argument prototype would still apply.  */
27690#ifdef __cplusplus
27691extern "C"
27692#endif
27693char gai_strerror ();
27694int
27695main ()
27696{
27697return gai_strerror ();
27698  ;
27699  return 0;
27700}
27701_ACEOF
27702for ac_lib in '' socket inet6; do
27703  if test -z "$ac_lib"; then
27704    ac_res="none required"
27705  else
27706    ac_res=-l$ac_lib
27707    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27708  fi
27709  if ac_fn_c_try_link "$LINENO"; then :
27710  ac_cv_search_gai_strerror=$ac_res
27711fi
27712rm -f core conftest.err conftest.$ac_objext \
27713    conftest$ac_exeext
27714  if ${ac_cv_search_gai_strerror+:} false; then :
27715  break
27716fi
27717done
27718if ${ac_cv_search_gai_strerror+:} false; then :
27719
27720else
27721  ac_cv_search_gai_strerror=no
27722fi
27723rm conftest.$ac_ext
27724LIBS=$ac_func_search_save_LIBS
27725fi
27726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gai_strerror" >&5
27727$as_echo "$ac_cv_search_gai_strerror" >&6; }
27728ac_res=$ac_cv_search_gai_strerror
27729if test "$ac_res" != no; then :
27730  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27731
27732fi
27733
27734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
27735$as_echo_n "checking for library containing getnameinfo... " >&6; }
27736if ${ac_cv_search_getnameinfo+:} false; then :
27737  $as_echo_n "(cached) " >&6
27738else
27739  ac_func_search_save_LIBS=$LIBS
27740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27741/* end confdefs.h.  */
27742
27743/* Override any GCC internal prototype to avoid an error.
27744   Use char because int might match the return type of a GCC
27745   builtin and then its argument prototype would still apply.  */
27746#ifdef __cplusplus
27747extern "C"
27748#endif
27749char getnameinfo ();
27750int
27751main ()
27752{
27753return getnameinfo ();
27754  ;
27755  return 0;
27756}
27757_ACEOF
27758for ac_lib in '' socket inet6; do
27759  if test -z "$ac_lib"; then
27760    ac_res="none required"
27761  else
27762    ac_res=-l$ac_lib
27763    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27764  fi
27765  if ac_fn_c_try_link "$LINENO"; then :
27766  ac_cv_search_getnameinfo=$ac_res
27767fi
27768rm -f core conftest.err conftest.$ac_objext \
27769    conftest$ac_exeext
27770  if ${ac_cv_search_getnameinfo+:} false; then :
27771  break
27772fi
27773done
27774if ${ac_cv_search_getnameinfo+:} false; then :
27775
27776else
27777  ac_cv_search_getnameinfo=no
27778fi
27779rm conftest.$ac_ext
27780LIBS=$ac_func_search_save_LIBS
27781fi
27782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
27783$as_echo "$ac_cv_search_getnameinfo" >&6; }
27784ac_res=$ac_cv_search_getnameinfo
27785if test "$ac_res" != no; then :
27786  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27787
27788fi
27789
27790for ac_func in gai_strerror
27791do :
27792  ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
27793if test "x$ac_cv_func_gai_strerror" = xyes; then :
27794  cat >>confdefs.h <<_ACEOF
27795#define HAVE_GAI_STRERROR 1
27796_ACEOF
27797
27798fi
27799done
27800
27801
27802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
27803$as_echo_n "checking for working getaddrinfo... " >&6; }
27804if ${ac_cv_working_getaddrinfo+:} false; then :
27805  $as_echo_n "(cached) " >&6
27806else
27807
27808  if test "$cross_compiling" = yes; then :
27809
27810  ac_cv_working_getaddrinfo="yes"
27811
27812else
27813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27814/* end confdefs.h.  */
27815
27816#ifdef HAVE_NETDB_H
27817#include <netdb.h>
27818#endif
27819#ifdef HAVE_STRING_H
27820#include <string.h>
27821#endif
27822#ifdef HAVE_SYS_TYPES_H
27823#include <sys/types.h>
27824#endif
27825#ifdef HAVE_SYS_SOCKET_H
27826#include <sys/socket.h>
27827#endif
27828
27829void main(void) {
27830    struct addrinfo hints, *ai;
27831    int error;
27832
27833    memset(&hints, 0, sizeof(hints));
27834    hints.ai_family = AF_UNSPEC;
27835    hints.ai_socktype = SOCK_STREAM;
27836    error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
27837    if (error) {
27838        exit(1);
27839    }
27840    if (ai->ai_addr->sa_family != AF_INET) {
27841        exit(1);
27842    }
27843    exit(0);
27844}
27845
27846_ACEOF
27847if ac_fn_c_try_run "$LINENO"; then :
27848
27849  ac_cv_working_getaddrinfo="yes"
27850
27851else
27852
27853  ac_cv_working_getaddrinfo="no"
27854
27855fi
27856rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27857  conftest.$ac_objext conftest.beam conftest.$ac_ext
27858fi
27859
27860fi
27861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
27862$as_echo "$ac_cv_working_getaddrinfo" >&6; }
27863if test "$ac_cv_working_getaddrinfo" = "yes"; then
27864  if test "$ac_cv_func_gai_strerror" != "yes"; then
27865    ac_cv_working_getaddrinfo="no"
27866  else
27867
27868$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
27869
27870  fi
27871fi
27872
27873
27874  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for negative error codes for getaddrinfo" >&5
27875$as_echo_n "checking for negative error codes for getaddrinfo... " >&6; }
27876if ${ac_cv_negative_eai+:} false; then :
27877  $as_echo_n "(cached) " >&6
27878else
27879
27880  if test "$cross_compiling" = yes; then :
27881
27882  ac_cv_negative_eai="no"
27883
27884else
27885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27886/* end confdefs.h.  */
27887
27888#ifdef HAVE_NETDB_H
27889#include <netdb.h>
27890#endif
27891
27892void main(void) {
27893    if (EAI_ADDRFAMILY < 0) {
27894        exit(0);
27895    }
27896    exit(1);
27897}
27898
27899_ACEOF
27900if ac_fn_c_try_run "$LINENO"; then :
27901
27902  ac_cv_negative_eai="yes"
27903
27904else
27905
27906  ac_cv_negative_eai="no"
27907
27908fi
27909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27910  conftest.$ac_objext conftest.beam conftest.$ac_ext
27911fi
27912
27913fi
27914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_negative_eai" >&5
27915$as_echo "$ac_cv_negative_eai" >&6; }
27916if test "$ac_cv_negative_eai" = "yes"; then
27917
27918$as_echo "#define NEGATIVE_EAI 1" >>confdefs.h
27919
27920fi
27921
27922
27923  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getnameinfo" >&5
27924$as_echo_n "checking for working getnameinfo... " >&6; }
27925if ${ac_cv_working_getnameinfo+:} false; then :
27926  $as_echo_n "(cached) " >&6
27927else
27928
27929  if test "$cross_compiling" = yes; then :
27930
27931  ac_cv_working_getnameinfo="yes"
27932
27933else
27934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27935/* end confdefs.h.  */
27936
27937#ifdef HAVE_NETDB_H
27938#include <netdb.h>
27939#endif
27940#ifdef HAVE_STRING_H
27941#include <string.h>
27942#endif
27943#ifdef HAVE_SYS_TYPES_H
27944#include <sys/types.h>
27945#endif
27946#ifdef HAVE_SYS_SOCKET_H
27947#include <sys/socket.h>
27948#endif
27949#ifdef HAVE_NETINET_IN_H
27950#include <netinet/in.h>
27951#endif
27952
27953void main(void) {
27954    struct sockaddr_in sa;
27955    char hbuf[256];
27956    int error;
27957
27958    sa.sin_family = AF_INET;
27959    sa.sin_port = 0;
27960    sa.sin_addr.s_addr = inet_addr("127.0.0.1");
27961#ifdef SIN6_LEN
27962    sa.sin_len = sizeof(sa);
27963#endif
27964
27965    error = getnameinfo((const struct sockaddr *)&sa, sizeof(sa),
27966                        hbuf, 256, NULL, 0,
27967                        NI_NUMERICHOST);
27968    if (error) {
27969        exit(1);
27970    } else {
27971        exit(0);
27972    }
27973}
27974
27975_ACEOF
27976if ac_fn_c_try_run "$LINENO"; then :
27977
27978  ac_cv_working_getnameinfo="yes"
27979
27980else
27981
27982  ac_cv_working_getnameinfo="no"
27983
27984fi
27985rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27986  conftest.$ac_objext conftest.beam conftest.$ac_ext
27987fi
27988
27989fi
27990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getnameinfo" >&5
27991$as_echo "$ac_cv_working_getnameinfo" >&6; }
27992if test "$ac_cv_working_getnameinfo" = "yes"; then
27993
27994$as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
27995
27996fi
27997
27998
27999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6" >&5
28000$as_echo_n "checking for sockaddr_in6... " >&6; }
28001if ${ac_cv_define_sockaddr_in6+:} false; then :
28002  $as_echo_n "(cached) " >&6
28003else
28004
28005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28006/* end confdefs.h.  */
28007
28008#ifdef HAVE_SYS_TYPES_H
28009#include <sys/types.h>
28010#endif
28011#ifdef HAVE_NETINET_IN_H
28012#include <netinet/in.h>
28013#endif
28014
28015int
28016main ()
28017{
28018
28019struct sockaddr_in6 sa;
28020
28021  ;
28022  return 0;
28023}
28024_ACEOF
28025if ac_fn_c_try_compile "$LINENO"; then :
28026
28027    ac_cv_define_sockaddr_in6=yes
28028
28029else
28030
28031    ac_cv_define_sockaddr_in6=no
28032
28033fi
28034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28035
28036fi
28037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_sockaddr_in6" >&5
28038$as_echo "$ac_cv_define_sockaddr_in6" >&6; }
28039
28040if test "$ac_cv_define_sockaddr_in6" = "yes"; then
28041  have_sockaddr_in6=1
28042else
28043  have_sockaddr_in6=0
28044fi
28045
28046
28047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
28048$as_echo_n "checking for sockaddr_storage... " >&6; }
28049if ${apr_cv_define_sockaddr_storage+:} false; then :
28050  $as_echo_n "(cached) " >&6
28051else
28052
28053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28054/* end confdefs.h.  */
28055
28056#ifdef HAVE_SYS_TYPES_H
28057#include <sys/types.h>
28058#endif
28059#ifdef HAVE_NETINET_IN_H
28060#include <netinet/in.h>
28061#endif
28062
28063int
28064main ()
28065{
28066struct sockaddr_storage sa;
28067  ;
28068  return 0;
28069}
28070_ACEOF
28071if ac_fn_c_try_compile "$LINENO"; then :
28072  apr_cv_define_sockaddr_storage=yes
28073else
28074  apr_cv_define_sockaddr_storage=no
28075fi
28076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28077fi
28078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_sockaddr_storage" >&5
28079$as_echo "$apr_cv_define_sockaddr_storage" >&6; }
28080
28081if test "$apr_cv_define_sockaddr_storage" = "yes"; then
28082  have_sa_storage=1
28083else
28084  have_sa_storage=0
28085fi
28086
28087
28088
28089have_ipv6="0"
28090if test "$user_disabled_ipv6" = 1; then
28091    ipv6_result="no -- disabled by user"
28092else
28093    if test "x$broken_ipv6" = "x0"; then
28094        if test "x$have_sockaddr_in6" = "x1"; then
28095            if test "x$ac_cv_working_getaddrinfo" = "xyes"; then
28096                if test "x$ac_cv_working_getnameinfo" = "xyes"; then
28097
28098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working AI_ADDRCONFIG" >&5
28099$as_echo_n "checking for working AI_ADDRCONFIG... " >&6; }
28100if ${apr_cv_gai_addrconfig+:} false; then :
28101  $as_echo_n "(cached) " >&6
28102else
28103
28104  if test "$cross_compiling" = yes; then :
28105  apr_cv_gai_addrconfig=no
28106else
28107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28108/* end confdefs.h.  */
28109
28110#ifdef HAVE_NETDB_H
28111#include <netdb.h>
28112#endif
28113#ifdef HAVE_STRING_H
28114#include <string.h>
28115#endif
28116#ifdef HAVE_SYS_TYPES_H
28117#include <sys/types.h>
28118#endif
28119#ifdef HAVE_SYS_SOCKET_H
28120#include <sys/socket.h>
28121#endif
28122
28123int main(int argc, char **argv) {
28124    struct addrinfo hints, *ai;
28125
28126    memset(&hints, 0, sizeof(hints));
28127    hints.ai_family = AF_UNSPEC;
28128    hints.ai_socktype = SOCK_STREAM;
28129    hints.ai_flags = AI_ADDRCONFIG;
28130    return getaddrinfo("localhost", NULL, &hints, &ai) != 0;
28131}
28132_ACEOF
28133if ac_fn_c_try_run "$LINENO"; then :
28134  apr_cv_gai_addrconfig=yes
28135else
28136  apr_cv_gai_addrconfig=no
28137fi
28138rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28139  conftest.$ac_objext conftest.beam conftest.$ac_ext
28140fi
28141
28142fi
28143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_gai_addrconfig" >&5
28144$as_echo "$apr_cv_gai_addrconfig" >&6; }
28145
28146if test $apr_cv_gai_addrconfig = yes; then
28147
28148$as_echo "#define HAVE_GAI_ADDRCONFIG 1" >>confdefs.h
28149
28150fi
28151
28152                    have_ipv6="1"
28153                    ipv6_result="yes"
28154                else
28155                    ipv6_result="no -- no getnameinfo"
28156                fi
28157            else
28158                ipv6_result="no -- no working getaddrinfo"
28159            fi
28160        else
28161            ipv6_result="no -- no sockaddr_in6"
28162        fi
28163    else
28164        ipv6_result="no -- the platform has known problems supporting IPv6"
28165    fi
28166fi
28167
28168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if APR supports IPv6" >&5
28169$as_echo_n "checking if APR supports IPv6... " >&6; }
28170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_result" >&5
28171$as_echo "$ipv6_result" >&6; }
28172
28173
28174
28175# hstrerror is only needed if IPv6 is not enabled,
28176# so getaddrinfo/gai_strerror are not used.
28177if test $have_ipv6 = 0; then
28178  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
28179$as_echo_n "checking for library containing hstrerror... " >&6; }
28180if ${ac_cv_search_hstrerror+:} false; then :
28181  $as_echo_n "(cached) " >&6
28182else
28183  ac_func_search_save_LIBS=$LIBS
28184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28185/* end confdefs.h.  */
28186
28187/* Override any GCC internal prototype to avoid an error.
28188   Use char because int might match the return type of a GCC
28189   builtin and then its argument prototype would still apply.  */
28190#ifdef __cplusplus
28191extern "C"
28192#endif
28193char hstrerror ();
28194int
28195main ()
28196{
28197return hstrerror ();
28198  ;
28199  return 0;
28200}
28201_ACEOF
28202for ac_lib in '' resolv; do
28203  if test -z "$ac_lib"; then
28204    ac_res="none required"
28205  else
28206    ac_res=-l$ac_lib
28207    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28208  fi
28209  if ac_fn_c_try_link "$LINENO"; then :
28210  ac_cv_search_hstrerror=$ac_res
28211fi
28212rm -f core conftest.err conftest.$ac_objext \
28213    conftest$ac_exeext
28214  if ${ac_cv_search_hstrerror+:} false; then :
28215  break
28216fi
28217done
28218if ${ac_cv_search_hstrerror+:} false; then :
28219
28220else
28221  ac_cv_search_hstrerror=no
28222fi
28223rm conftest.$ac_ext
28224LIBS=$ac_func_search_save_LIBS
28225fi
28226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
28227$as_echo "$ac_cv_search_hstrerror" >&6; }
28228ac_res=$ac_cv_search_hstrerror
28229if test "$ac_res" != no; then :
28230  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28231
28232$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
28233
28234fi
28235
28236fi
28237
28238
28239for ac_header in langinfo.h
28240do :
28241  ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
28242if test "x$ac_cv_header_langinfo_h" = xyes; then :
28243  cat >>confdefs.h <<_ACEOF
28244#define HAVE_LANGINFO_H 1
28245_ACEOF
28246
28247fi
28248
28249done
28250
28251for ac_func in nl_langinfo
28252do :
28253  ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
28254if test "x$ac_cv_func_nl_langinfo" = xyes; then :
28255  cat >>confdefs.h <<_ACEOF
28256#define HAVE_NL_LANGINFO 1
28257_ACEOF
28258
28259fi
28260done
28261
28262
28263
28264
28265  if test -z "$have_unicode_fs"; then
28266    test "x$silent" != "xyes" && echo "  setting have_unicode_fs to \"0\""
28267    have_unicode_fs="0"
28268  fi
28269
28270
28271
28272
28273  if test -z "$apr_has_xthread_files"; then
28274    test "x$silent" != "xyes" && echo "  setting apr_has_xthread_files to \"0\""
28275    apr_has_xthread_files="0"
28276  fi
28277
28278
28279
28280
28281  if test -z "$apr_procattr_user_set_requires_password"; then
28282    test "x$silent" != "xyes" && echo "  setting apr_procattr_user_set_requires_password to \"0\""
28283    apr_procattr_user_set_requires_password="0"
28284  fi
28285
28286
28287
28288
28289  if test -z "$apr_thread_func"; then
28290    test "x$silent" != "xyes" && echo "  setting apr_thread_func to \"\""
28291    apr_thread_func=""
28292  fi
28293
28294
28295
28296
28297  if test -z "$apr_has_user"; then
28298    test "x$silent" != "xyes" && echo "  setting apr_has_user to \"1\""
28299    apr_has_user="1"
28300  fi
28301
28302
28303
28304
28305echo "${nl}Restore user-defined environment settings..."
28306
28307
28308set X $apr_ste_save_CPPFLAGS
28309if test ${#} -eq 1; then
28310  EXTRA_CPPFLAGS="$CPPFLAGS"
28311  CPPFLAGS=
28312else
28313  if test "x$apr_ste_save_CPPFLAGS" = "x$CPPFLAGS"; then
28314    EXTRA_CPPFLAGS=
28315  else
28316    EXTRA_CPPFLAGS=`echo "$CPPFLAGS" | sed -e "s%${apr_ste_save_CPPFLAGS}%%"`
28317    CPPFLAGS="$apr_ste_save_CPPFLAGS"
28318  fi
28319fi
28320if test "x$silent" != "xyes"; then
28321  echo "  restoring CPPFLAGS to \"$CPPFLAGS\""
28322  echo "  setting EXTRA_CPPFLAGS to \"$EXTRA_CPPFLAGS\""
28323fi
28324
28325
28326
28327set X $apr_ste_save_CFLAGS
28328if test ${#} -eq 1; then
28329  EXTRA_CFLAGS="$CFLAGS"
28330  CFLAGS=
28331else
28332  if test "x$apr_ste_save_CFLAGS" = "x$CFLAGS"; then
28333    EXTRA_CFLAGS=
28334  else
28335    EXTRA_CFLAGS=`echo "$CFLAGS" | sed -e "s%${apr_ste_save_CFLAGS}%%"`
28336    CFLAGS="$apr_ste_save_CFLAGS"
28337  fi
28338fi
28339if test "x$silent" != "xyes"; then
28340  echo "  restoring CFLAGS to \"$CFLAGS\""
28341  echo "  setting EXTRA_CFLAGS to \"$EXTRA_CFLAGS\""
28342fi
28343
28344
28345
28346set X $apr_ste_save_LDFLAGS
28347if test ${#} -eq 1; then
28348  EXTRA_LDFLAGS="$LDFLAGS"
28349  LDFLAGS=
28350else
28351  if test "x$apr_ste_save_LDFLAGS" = "x$LDFLAGS"; then
28352    EXTRA_LDFLAGS=
28353  else
28354    EXTRA_LDFLAGS=`echo "$LDFLAGS" | sed -e "s%${apr_ste_save_LDFLAGS}%%"`
28355    LDFLAGS="$apr_ste_save_LDFLAGS"
28356  fi
28357fi
28358if test "x$silent" != "xyes"; then
28359  echo "  restoring LDFLAGS to \"$LDFLAGS\""
28360  echo "  setting EXTRA_LDFLAGS to \"$EXTRA_LDFLAGS\""
28361fi
28362
28363
28364
28365set X $apr_ste_save_LIBS
28366if test ${#} -eq 1; then
28367  EXTRA_LIBS="$LIBS"
28368  LIBS=
28369else
28370  if test "x$apr_ste_save_LIBS" = "x$LIBS"; then
28371    EXTRA_LIBS=
28372  else
28373    EXTRA_LIBS=`echo "$LIBS" | sed -e "s%${apr_ste_save_LIBS}%%"`
28374    LIBS="$apr_ste_save_LIBS"
28375  fi
28376fi
28377if test "x$silent" != "xyes"; then
28378  echo "  restoring LIBS to \"$LIBS\""
28379  echo "  setting EXTRA_LIBS to \"$EXTRA_LIBS\""
28380fi
28381
28382
28383
28384set X $apr_ste_save_INCLUDES
28385if test ${#} -eq 1; then
28386  EXTRA_INCLUDES="$INCLUDES"
28387  INCLUDES=
28388else
28389  if test "x$apr_ste_save_INCLUDES" = "x$INCLUDES"; then
28390    EXTRA_INCLUDES=
28391  else
28392    EXTRA_INCLUDES=`echo "$INCLUDES" | sed -e "s%${apr_ste_save_INCLUDES}%%"`
28393    INCLUDES="$apr_ste_save_INCLUDES"
28394  fi
28395fi
28396if test "x$silent" != "xyes"; then
28397  echo "  restoring INCLUDES to \"$INCLUDES\""
28398  echo "  setting EXTRA_INCLUDES to \"$EXTRA_INCLUDES\""
28399fi
28400
28401
28402
28403
28404
28405
28406
28407
28408
28409
28410
28411
28412
28413
28414
28415
28416
28417
28418# Use -no-install to link the test programs on all platforms
28419# but Darwin, where it would cause the programs to be linked
28420# against installed versions of libapr instead of those just
28421# built.
28422case $host in
28423*-apple-darwin*) LT_NO_INSTALL="" ;;
28424*) LT_NO_INSTALL="-no-install" ;;
28425esac
28426
28427
28428#
28429# BSD/OS (BSDi) needs to use a different include syntax in the Makefiles
28430#
28431case $host in
28432*bsdi*)
28433    # Check whether they've installed GNU make
28434    if make --version > /dev/null 2>&1; then
28435	INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
28436	INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk"
28437    else
28438	# BSDi make
28439	INCLUDE_RULES=".include \"$apr_buildout/apr_rules.mk\""
28440	INCLUDE_OUTPUTS=".include \"$apr_srcdir/build-outputs.mk\""
28441    fi
28442    ;;
28443*)
28444    INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
28445    INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk"
28446    ;;
28447esac
28448
28449
28450
28451ac_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"
28452
28453
28454if test -d $srcdir/test; then
28455   ac_config_files="$ac_config_files test/Makefile test/internal/Makefile"
28456
28457fi
28458
28459dir=include/arch/unix
28460test -d $dir || $MKDIR $dir
28461
28462ac_config_commands="$ac_config_commands default"
28463
28464
28465cat >confcache <<\_ACEOF
28466# This file is a shell script that caches the results of configure
28467# tests run on this system so they can be shared between configure
28468# scripts and configure runs, see configure's option --config-cache.
28469# It is not useful on other systems.  If it contains results you don't
28470# want to keep, you may remove or edit it.
28471#
28472# config.status only pays attention to the cache file if you give it
28473# the --recheck option to rerun configure.
28474#
28475# `ac_cv_env_foo' variables (set or unset) will be overridden when
28476# loading this file, other *unset* `ac_cv_foo' will be assigned the
28477# following values.
28478
28479_ACEOF
28480
28481# The following way of writing the cache mishandles newlines in values,
28482# but we know of no workaround that is simple, portable, and efficient.
28483# So, we kill variables containing newlines.
28484# Ultrix sh set writes to stderr and can't be redirected directly,
28485# and sets the high bit in the cache file unless we assign to the vars.
28486(
28487  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28488    eval ac_val=\$$ac_var
28489    case $ac_val in #(
28490    *${as_nl}*)
28491      case $ac_var in #(
28492      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28493$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28494      esac
28495      case $ac_var in #(
28496      _ | IFS | as_nl) ;; #(
28497      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28498      *) { eval $ac_var=; unset $ac_var;} ;;
28499      esac ;;
28500    esac
28501  done
28502
28503  (set) 2>&1 |
28504    case $as_nl`(ac_space=' '; set) 2>&1` in #(
28505    *${as_nl}ac_space=\ *)
28506      # `set' does not quote correctly, so add quotes: double-quote
28507      # substitution turns \\\\ into \\, and sed turns \\ into \.
28508      sed -n \
28509	"s/'/'\\\\''/g;
28510	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28511      ;; #(
28512    *)
28513      # `set' quotes correctly as required by POSIX, so do not add quotes.
28514      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28515      ;;
28516    esac |
28517    sort
28518) |
28519  sed '
28520     /^ac_cv_env_/b end
28521     t clear
28522     :clear
28523     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28524     t end
28525     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28526     :end' >>confcache
28527if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28528  if test -w "$cache_file"; then
28529    if test "x$cache_file" != "x/dev/null"; then
28530      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28531$as_echo "$as_me: updating cache $cache_file" >&6;}
28532      if test ! -f "$cache_file" || test -h "$cache_file"; then
28533	cat confcache >"$cache_file"
28534      else
28535        case $cache_file in #(
28536        */* | ?:*)
28537	  mv -f confcache "$cache_file"$$ &&
28538	  mv -f "$cache_file"$$ "$cache_file" ;; #(
28539        *)
28540	  mv -f confcache "$cache_file" ;;
28541	esac
28542      fi
28543    fi
28544  else
28545    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28546$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28547  fi
28548fi
28549rm -f confcache
28550
28551test "x$prefix" = xNONE && prefix=$ac_default_prefix
28552# Let make expand exec_prefix.
28553test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28554
28555DEFS=-DHAVE_CONFIG_H
28556
28557ac_libobjs=
28558ac_ltlibobjs=
28559U=
28560for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28561  # 1. Remove the extension, and $U if already installed.
28562  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28563  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28564  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28565  #    will be set to the directory where LIBOBJS objects are built.
28566  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28567  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28568done
28569LIBOBJS=$ac_libobjs
28570
28571LTLIBOBJS=$ac_ltlibobjs
28572
28573
28574
28575
28576: "${CONFIG_STATUS=./config.status}"
28577ac_write_fail=0
28578ac_clean_files_save=$ac_clean_files
28579ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28580{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28581$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28582as_write_fail=0
28583cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28584#! $SHELL
28585# Generated by $as_me.
28586# Run this file to recreate the current configuration.
28587# Compiler output produced by configure, useful for debugging
28588# configure, is in config.log if it exists.
28589
28590debug=false
28591ac_cs_recheck=false
28592ac_cs_silent=false
28593
28594SHELL=\${CONFIG_SHELL-$SHELL}
28595export SHELL
28596_ASEOF
28597cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28598## -------------------- ##
28599## M4sh Initialization. ##
28600## -------------------- ##
28601
28602# Be more Bourne compatible
28603DUALCASE=1; export DUALCASE # for MKS sh
28604if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28605  emulate sh
28606  NULLCMD=:
28607  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28608  # is contrary to our usage.  Disable this feature.
28609  alias -g '${1+"$@"}'='"$@"'
28610  setopt NO_GLOB_SUBST
28611else
28612  case `(set -o) 2>/dev/null` in #(
28613  *posix*) :
28614    set -o posix ;; #(
28615  *) :
28616     ;;
28617esac
28618fi
28619
28620
28621as_nl='
28622'
28623export as_nl
28624# Printing a long string crashes Solaris 7 /usr/bin/printf.
28625as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28626as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28627as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28628# Prefer a ksh shell builtin over an external printf program on Solaris,
28629# but without wasting forks for bash or zsh.
28630if test -z "$BASH_VERSION$ZSH_VERSION" \
28631    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28632  as_echo='print -r --'
28633  as_echo_n='print -rn --'
28634elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28635  as_echo='printf %s\n'
28636  as_echo_n='printf %s'
28637else
28638  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28639    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28640    as_echo_n='/usr/ucb/echo -n'
28641  else
28642    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28643    as_echo_n_body='eval
28644      arg=$1;
28645      case $arg in #(
28646      *"$as_nl"*)
28647	expr "X$arg" : "X\\(.*\\)$as_nl";
28648	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28649      esac;
28650      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28651    '
28652    export as_echo_n_body
28653    as_echo_n='sh -c $as_echo_n_body as_echo'
28654  fi
28655  export as_echo_body
28656  as_echo='sh -c $as_echo_body as_echo'
28657fi
28658
28659# The user is always right.
28660if test "${PATH_SEPARATOR+set}" != set; then
28661  PATH_SEPARATOR=:
28662  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28663    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28664      PATH_SEPARATOR=';'
28665  }
28666fi
28667
28668
28669# IFS
28670# We need space, tab and new line, in precisely that order.  Quoting is
28671# there to prevent editors from complaining about space-tab.
28672# (If _AS_PATH_WALK were called with IFS unset, it would disable word
28673# splitting by setting IFS to empty value.)
28674IFS=" ""	$as_nl"
28675
28676# Find who we are.  Look in the path if we contain no directory separator.
28677as_myself=
28678case $0 in #((
28679  *[\\/]* ) as_myself=$0 ;;
28680  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28681for as_dir in $PATH
28682do
28683  IFS=$as_save_IFS
28684  test -z "$as_dir" && as_dir=.
28685    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28686  done
28687IFS=$as_save_IFS
28688
28689     ;;
28690esac
28691# We did not find ourselves, most probably we were run as `sh COMMAND'
28692# in which case we are not to be found in the path.
28693if test "x$as_myself" = x; then
28694  as_myself=$0
28695fi
28696if test ! -f "$as_myself"; then
28697  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28698  exit 1
28699fi
28700
28701# Unset variables that we do not need and which cause bugs (e.g. in
28702# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
28703# suppresses any "Segmentation fault" message there.  '((' could
28704# trigger a bug in pdksh 5.2.14.
28705for as_var in BASH_ENV ENV MAIL MAILPATH
28706do eval test x\${$as_var+set} = xset \
28707  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28708done
28709PS1='$ '
28710PS2='> '
28711PS4='+ '
28712
28713# NLS nuisances.
28714LC_ALL=C
28715export LC_ALL
28716LANGUAGE=C
28717export LANGUAGE
28718
28719# CDPATH.
28720(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28721
28722
28723# as_fn_error STATUS ERROR [LINENO LOG_FD]
28724# ----------------------------------------
28725# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28726# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28727# script with STATUS, using 1 if that was 0.
28728as_fn_error ()
28729{
28730  as_status=$1; test $as_status -eq 0 && as_status=1
28731  if test "$4"; then
28732    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28733    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28734  fi
28735  $as_echo "$as_me: error: $2" >&2
28736  as_fn_exit $as_status
28737} # as_fn_error
28738
28739
28740# as_fn_set_status STATUS
28741# -----------------------
28742# Set $? to STATUS, without forking.
28743as_fn_set_status ()
28744{
28745  return $1
28746} # as_fn_set_status
28747
28748# as_fn_exit STATUS
28749# -----------------
28750# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28751as_fn_exit ()
28752{
28753  set +e
28754  as_fn_set_status $1
28755  exit $1
28756} # as_fn_exit
28757
28758# as_fn_unset VAR
28759# ---------------
28760# Portably unset VAR.
28761as_fn_unset ()
28762{
28763  { eval $1=; unset $1;}
28764}
28765as_unset=as_fn_unset
28766# as_fn_append VAR VALUE
28767# ----------------------
28768# Append the text in VALUE to the end of the definition contained in VAR. Take
28769# advantage of any shell optimizations that allow amortized linear growth over
28770# repeated appends, instead of the typical quadratic growth present in naive
28771# implementations.
28772if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28773  eval 'as_fn_append ()
28774  {
28775    eval $1+=\$2
28776  }'
28777else
28778  as_fn_append ()
28779  {
28780    eval $1=\$$1\$2
28781  }
28782fi # as_fn_append
28783
28784# as_fn_arith ARG...
28785# ------------------
28786# Perform arithmetic evaluation on the ARGs, and store the result in the
28787# global $as_val. Take advantage of shells that can avoid forks. The arguments
28788# must be portable across $(()) and expr.
28789if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28790  eval 'as_fn_arith ()
28791  {
28792    as_val=$(( $* ))
28793  }'
28794else
28795  as_fn_arith ()
28796  {
28797    as_val=`expr "$@" || test $? -eq 1`
28798  }
28799fi # as_fn_arith
28800
28801
28802if expr a : '\(a\)' >/dev/null 2>&1 &&
28803   test "X`expr 00001 : '.*\(...\)'`" = X001; then
28804  as_expr=expr
28805else
28806  as_expr=false
28807fi
28808
28809if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28810  as_basename=basename
28811else
28812  as_basename=false
28813fi
28814
28815if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28816  as_dirname=dirname
28817else
28818  as_dirname=false
28819fi
28820
28821as_me=`$as_basename -- "$0" ||
28822$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28823	 X"$0" : 'X\(//\)$' \| \
28824	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28825$as_echo X/"$0" |
28826    sed '/^.*\/\([^/][^/]*\)\/*$/{
28827	    s//\1/
28828	    q
28829	  }
28830	  /^X\/\(\/\/\)$/{
28831	    s//\1/
28832	    q
28833	  }
28834	  /^X\/\(\/\).*/{
28835	    s//\1/
28836	    q
28837	  }
28838	  s/.*/./; q'`
28839
28840# Avoid depending upon Character Ranges.
28841as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28842as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28843as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28844as_cr_digits='0123456789'
28845as_cr_alnum=$as_cr_Letters$as_cr_digits
28846
28847ECHO_C= ECHO_N= ECHO_T=
28848case `echo -n x` in #(((((
28849-n*)
28850  case `echo 'xy\c'` in
28851  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
28852  xy)  ECHO_C='\c';;
28853  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
28854       ECHO_T='	';;
28855  esac;;
28856*)
28857  ECHO_N='-n';;
28858esac
28859
28860rm -f conf$$ conf$$.exe conf$$.file
28861if test -d conf$$.dir; then
28862  rm -f conf$$.dir/conf$$.file
28863else
28864  rm -f conf$$.dir
28865  mkdir conf$$.dir 2>/dev/null
28866fi
28867if (echo >conf$$.file) 2>/dev/null; then
28868  if ln -s conf$$.file conf$$ 2>/dev/null; then
28869    as_ln_s='ln -s'
28870    # ... but there are two gotchas:
28871    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28872    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28873    # In both cases, we have to default to `cp -pR'.
28874    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28875      as_ln_s='cp -pR'
28876  elif ln conf$$.file conf$$ 2>/dev/null; then
28877    as_ln_s=ln
28878  else
28879    as_ln_s='cp -pR'
28880  fi
28881else
28882  as_ln_s='cp -pR'
28883fi
28884rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28885rmdir conf$$.dir 2>/dev/null
28886
28887
28888# as_fn_mkdir_p
28889# -------------
28890# Create "$as_dir" as a directory, including parents if necessary.
28891as_fn_mkdir_p ()
28892{
28893
28894  case $as_dir in #(
28895  -*) as_dir=./$as_dir;;
28896  esac
28897  test -d "$as_dir" || eval $as_mkdir_p || {
28898    as_dirs=
28899    while :; do
28900      case $as_dir in #(
28901      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28902      *) as_qdir=$as_dir;;
28903      esac
28904      as_dirs="'$as_qdir' $as_dirs"
28905      as_dir=`$as_dirname -- "$as_dir" ||
28906$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28907	 X"$as_dir" : 'X\(//\)[^/]' \| \
28908	 X"$as_dir" : 'X\(//\)$' \| \
28909	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28910$as_echo X"$as_dir" |
28911    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28912	    s//\1/
28913	    q
28914	  }
28915	  /^X\(\/\/\)[^/].*/{
28916	    s//\1/
28917	    q
28918	  }
28919	  /^X\(\/\/\)$/{
28920	    s//\1/
28921	    q
28922	  }
28923	  /^X\(\/\).*/{
28924	    s//\1/
28925	    q
28926	  }
28927	  s/.*/./; q'`
28928      test -d "$as_dir" && break
28929    done
28930    test -z "$as_dirs" || eval "mkdir $as_dirs"
28931  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
28932
28933
28934} # as_fn_mkdir_p
28935if mkdir -p . 2>/dev/null; then
28936  as_mkdir_p='mkdir -p "$as_dir"'
28937else
28938  test -d ./-p && rmdir ./-p
28939  as_mkdir_p=false
28940fi
28941
28942
28943# as_fn_executable_p FILE
28944# -----------------------
28945# Test if FILE is an executable regular file.
28946as_fn_executable_p ()
28947{
28948  test -f "$1" && test -x "$1"
28949} # as_fn_executable_p
28950as_test_x='test -x'
28951as_executable_p=as_fn_executable_p
28952
28953# Sed expression to map a string onto a valid CPP name.
28954as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28955
28956# Sed expression to map a string onto a valid variable name.
28957as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28958
28959
28960exec 6>&1
28961## ----------------------------------- ##
28962## Main body of $CONFIG_STATUS script. ##
28963## ----------------------------------- ##
28964_ASEOF
28965test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28966
28967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28968# Save the log message, to keep $0 and so on meaningful, and to
28969# report actual input values of CONFIG_FILES etc. instead of their
28970# values after options handling.
28971ac_log="
28972This file was extended by $as_me, which was
28973generated by GNU Autoconf 2.69.  Invocation command line was
28974
28975  CONFIG_FILES    = $CONFIG_FILES
28976  CONFIG_HEADERS  = $CONFIG_HEADERS
28977  CONFIG_LINKS    = $CONFIG_LINKS
28978  CONFIG_COMMANDS = $CONFIG_COMMANDS
28979  $ $0 $@
28980
28981on `(hostname || uname -n) 2>/dev/null | sed 1q`
28982"
28983
28984_ACEOF
28985
28986case $ac_config_files in *"
28987"*) set x $ac_config_files; shift; ac_config_files=$*;;
28988esac
28989
28990case $ac_config_headers in *"
28991"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28992esac
28993
28994
28995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28996# Files that config.status was made for.
28997config_files="$ac_config_files"
28998config_headers="$ac_config_headers"
28999config_commands="$ac_config_commands"
29000
29001_ACEOF
29002
29003cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29004ac_cs_usage="\
29005\`$as_me' instantiates files and other configuration actions
29006from templates according to the current configuration.  Unless the files
29007and actions are specified as TAGs, all are instantiated by default.
29008
29009Usage: $0 [OPTION]... [TAG]...
29010
29011  -h, --help       print this help, then exit
29012  -V, --version    print version number and configuration settings, then exit
29013      --config     print configuration, then exit
29014  -q, --quiet, --silent
29015                   do not print progress messages
29016  -d, --debug      don't remove temporary files
29017      --recheck    update $as_me by reconfiguring in the same conditions
29018      --file=FILE[:TEMPLATE]
29019                   instantiate the configuration file FILE
29020      --header=FILE[:TEMPLATE]
29021                   instantiate the configuration header FILE
29022
29023Configuration files:
29024$config_files
29025
29026Configuration headers:
29027$config_headers
29028
29029Configuration commands:
29030$config_commands
29031
29032Report bugs to the package provider."
29033
29034_ACEOF
29035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29036ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29037ac_cs_version="\\
29038config.status
29039configured by $0, generated by GNU Autoconf 2.69,
29040  with options \\"\$ac_cs_config\\"
29041
29042Copyright (C) 2012 Free Software Foundation, Inc.
29043This config.status script is free software; the Free Software Foundation
29044gives unlimited permission to copy, distribute and modify it."
29045
29046ac_pwd='$ac_pwd'
29047srcdir='$srcdir'
29048INSTALL='$INSTALL'
29049AWK='$AWK'
29050test -n "\$AWK" || AWK=awk
29051_ACEOF
29052
29053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29054# The default lists apply if the user does not specify any file.
29055ac_need_defaults=:
29056while test $# != 0
29057do
29058  case $1 in
29059  --*=?*)
29060    ac_option=`expr "X$1" : 'X\([^=]*\)='`
29061    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29062    ac_shift=:
29063    ;;
29064  --*=)
29065    ac_option=`expr "X$1" : 'X\([^=]*\)='`
29066    ac_optarg=
29067    ac_shift=:
29068    ;;
29069  *)
29070    ac_option=$1
29071    ac_optarg=$2
29072    ac_shift=shift
29073    ;;
29074  esac
29075
29076  case $ac_option in
29077  # Handling of the options.
29078  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29079    ac_cs_recheck=: ;;
29080  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29081    $as_echo "$ac_cs_version"; exit ;;
29082  --config | --confi | --conf | --con | --co | --c )
29083    $as_echo "$ac_cs_config"; exit ;;
29084  --debug | --debu | --deb | --de | --d | -d )
29085    debug=: ;;
29086  --file | --fil | --fi | --f )
29087    $ac_shift
29088    case $ac_optarg in
29089    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29090    '') as_fn_error $? "missing file argument" ;;
29091    esac
29092    as_fn_append CONFIG_FILES " '$ac_optarg'"
29093    ac_need_defaults=false;;
29094  --header | --heade | --head | --hea )
29095    $ac_shift
29096    case $ac_optarg in
29097    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29098    esac
29099    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29100    ac_need_defaults=false;;
29101  --he | --h)
29102    # Conflict between --help and --header
29103    as_fn_error $? "ambiguous option: \`$1'
29104Try \`$0 --help' for more information.";;
29105  --help | --hel | -h )
29106    $as_echo "$ac_cs_usage"; exit ;;
29107  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29108  | -silent | --silent | --silen | --sile | --sil | --si | --s)
29109    ac_cs_silent=: ;;
29110
29111  # This is an error.
29112  -*) as_fn_error $? "unrecognized option: \`$1'
29113Try \`$0 --help' for more information." ;;
29114
29115  *) as_fn_append ac_config_targets " $1"
29116     ac_need_defaults=false ;;
29117
29118  esac
29119  shift
29120done
29121
29122ac_configure_extra_args=
29123
29124if $ac_cs_silent; then
29125  exec 6>/dev/null
29126  ac_configure_extra_args="$ac_configure_extra_args --silent"
29127fi
29128
29129_ACEOF
29130cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29131if \$ac_cs_recheck; then
29132  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29133  shift
29134  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29135  CONFIG_SHELL='$SHELL'
29136  export CONFIG_SHELL
29137  exec "\$@"
29138fi
29139
29140_ACEOF
29141cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29142exec 5>>config.log
29143{
29144  echo
29145  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29146## Running $as_me. ##
29147_ASBOX
29148  $as_echo "$ac_log"
29149} >&5
29150
29151_ACEOF
29152cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29153#
29154# INIT-COMMANDS
29155#
29156
29157
29158# The HP-UX ksh and POSIX shell print the target directory to stdout
29159# if CDPATH is set.
29160(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29161
29162sed_quote_subst='$sed_quote_subst'
29163double_quote_subst='$double_quote_subst'
29164delay_variable_subst='$delay_variable_subst'
29165AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
29166DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
29167OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
29168macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
29169macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
29170enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
29171enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
29172pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
29173enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
29174SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
29175ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
29176PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
29177host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
29178host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
29179host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
29180build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
29181build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
29182build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
29183SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
29184Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
29185GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
29186EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
29187FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
29188LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
29189NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
29190LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
29191max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
29192ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
29193exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
29194lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
29195lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
29196lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
29197lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
29198lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
29199reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
29200reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
29201deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
29202file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
29203file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
29204want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
29205sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
29206AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
29207AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
29208archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
29209STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
29210RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
29211old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29212old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29213old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
29214lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
29215CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
29216CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
29217compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
29218GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
29219lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
29220lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
29221lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
29222lt_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"`'
29223nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
29224lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
29225objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
29226MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
29227lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
29228lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
29229lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
29230lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
29231lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
29232need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
29233MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
29234DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
29235NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
29236LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
29237OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
29238OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
29239libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
29240shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
29241extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29242archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
29243enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
29244export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
29245whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
29246compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
29247old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
29248old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29249archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
29250archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29251module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
29252module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29253with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
29254allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
29255no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
29256hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
29257hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
29258hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
29259hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
29260hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
29261hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
29262hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
29263inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
29264link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
29265always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
29266export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
29267exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
29268include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
29269prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
29270postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
29271file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
29272variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
29273need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
29274need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
29275version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
29276runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
29277shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
29278shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
29279libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
29280library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
29281soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
29282install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
29283postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29284postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29285finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
29286finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
29287hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
29288sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
29289sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
29290hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
29291enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
29292enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
29293enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
29294old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
29295striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
29296
29297LTCC='$LTCC'
29298LTCFLAGS='$LTCFLAGS'
29299compiler='$compiler_DEFAULT'
29300
29301# A function that is used when there is no print builtin or printf.
29302func_fallback_echo ()
29303{
29304  eval 'cat <<_LTECHO_EOF
29305\$1
29306_LTECHO_EOF'
29307}
29308
29309# Quote evaled strings.
29310for var in AS \
29311DLLTOOL \
29312OBJDUMP \
29313SHELL \
29314ECHO \
29315PATH_SEPARATOR \
29316SED \
29317GREP \
29318EGREP \
29319FGREP \
29320LD \
29321NM \
29322LN_S \
29323lt_SP2NL \
29324lt_NL2SP \
29325reload_flag \
29326deplibs_check_method \
29327file_magic_cmd \
29328file_magic_glob \
29329want_nocaseglob \
29330sharedlib_from_linklib_cmd \
29331AR \
29332AR_FLAGS \
29333archiver_list_spec \
29334STRIP \
29335RANLIB \
29336CC \
29337CFLAGS \
29338compiler \
29339lt_cv_sys_global_symbol_pipe \
29340lt_cv_sys_global_symbol_to_cdecl \
29341lt_cv_sys_global_symbol_to_c_name_address \
29342lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29343nm_file_list_spec \
29344lt_prog_compiler_no_builtin_flag \
29345lt_prog_compiler_pic \
29346lt_prog_compiler_wl \
29347lt_prog_compiler_static \
29348lt_cv_prog_compiler_c_o \
29349need_locks \
29350MANIFEST_TOOL \
29351DSYMUTIL \
29352NMEDIT \
29353LIPO \
29354OTOOL \
29355OTOOL64 \
29356shrext_cmds \
29357export_dynamic_flag_spec \
29358whole_archive_flag_spec \
29359compiler_needs_object \
29360with_gnu_ld \
29361allow_undefined_flag \
29362no_undefined_flag \
29363hardcode_libdir_flag_spec \
29364hardcode_libdir_separator \
29365exclude_expsyms \
29366include_expsyms \
29367file_list_spec \
29368variables_saved_for_relink \
29369libname_spec \
29370library_names_spec \
29371soname_spec \
29372install_override_mode \
29373finish_eval \
29374old_striplib \
29375striplib; do
29376    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29377    *[\\\\\\\`\\"\\\$]*)
29378      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29379      ;;
29380    *)
29381      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29382      ;;
29383    esac
29384done
29385
29386# Double-quote double-evaled strings.
29387for var in reload_cmds \
29388old_postinstall_cmds \
29389old_postuninstall_cmds \
29390old_archive_cmds \
29391extract_expsyms_cmds \
29392old_archive_from_new_cmds \
29393old_archive_from_expsyms_cmds \
29394archive_cmds \
29395archive_expsym_cmds \
29396module_cmds \
29397module_expsym_cmds \
29398export_symbols_cmds \
29399prelink_cmds \
29400postlink_cmds \
29401postinstall_cmds \
29402postuninstall_cmds \
29403finish_cmds \
29404sys_lib_search_path_spec \
29405sys_lib_dlsearch_path_spec; do
29406    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29407    *[\\\\\\\`\\"\\\$]*)
29408      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29409      ;;
29410    *)
29411      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29412      ;;
29413    esac
29414done
29415
29416ac_aux_dir='$ac_aux_dir'
29417xsi_shell='$xsi_shell'
29418lt_shell_append='$lt_shell_append'
29419
29420# See if we are running on zsh, and set the options which allow our
29421# commands through without removal of \ escapes INIT.
29422if test -n "\${ZSH_VERSION+set}" ; then
29423   setopt NO_GLOB_SUBST
29424fi
29425
29426
29427    PACKAGE='$PACKAGE'
29428    VERSION='$VERSION'
29429    TIMESTAMP='$TIMESTAMP'
29430    RM='$RM'
29431    ofile='$ofile'
29432
29433
29434
29435
29436
29437# Commands run at the beginning of config.status:
29438APR_SAVE_HEADERS="include/apr.h include/arch/unix/apr_private.h"
29439APR_MAJOR_VERSION=$APR_MAJOR_VERSION
29440APR_PLATFORM=$host
29441
29442for apri in \${APR_SAVE_HEADERS}; do
29443  test -r \${apri} && mv \${apri} \${apri}.save
29444done
29445
29446
29447_ACEOF
29448
29449cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29450
29451# Handling of arguments.
29452for ac_config_target in $ac_config_targets
29453do
29454  case $ac_config_target in
29455    "include/arch/unix/apr_private.h") CONFIG_HEADERS="$CONFIG_HEADERS include/arch/unix/apr_private.h" ;;
29456    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29457    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29458    "include/apr.h") CONFIG_FILES="$CONFIG_FILES include/apr.h" ;;
29459    "build/apr_rules.mk") CONFIG_FILES="$CONFIG_FILES build/apr_rules.mk" ;;
29460    "build/pkg/pkginfo") CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;;
29461    "apr-$APR_MAJOR_VERSION-config") CONFIG_FILES="$CONFIG_FILES apr-$APR_MAJOR_VERSION-config:apr-config.in" ;;
29462    "apr.pc") CONFIG_FILES="$CONFIG_FILES apr.pc" ;;
29463    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
29464    "test/internal/Makefile") CONFIG_FILES="$CONFIG_FILES test/internal/Makefile" ;;
29465    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29466
29467  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29468  esac
29469done
29470
29471
29472# If the user did not use the arguments to specify the items to instantiate,
29473# then the envvar interface is used.  Set only those that are not.
29474# We use the long form for the default assignment because of an extremely
29475# bizarre bug on SunOS 4.1.3.
29476if $ac_need_defaults; then
29477  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29478  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29479  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29480fi
29481
29482# Have a temporary directory for convenience.  Make it in the build tree
29483# simply because there is no reason against having it here, and in addition,
29484# creating and moving files from /tmp can sometimes cause problems.
29485# Hook for its removal unless debugging.
29486# Note that there is a small window in which the directory will not be cleaned:
29487# after its creation but before its name has been assigned to `$tmp'.
29488$debug ||
29489{
29490  tmp= ac_tmp=
29491  trap 'exit_status=$?
29492  : "${ac_tmp:=$tmp}"
29493  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29494' 0
29495  trap 'as_fn_exit 1' 1 2 13 15
29496}
29497# Create a (secure) tmp directory for tmp files.
29498
29499{
29500  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29501  test -d "$tmp"
29502}  ||
29503{
29504  tmp=./conf$$-$RANDOM
29505  (umask 077 && mkdir "$tmp")
29506} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29507ac_tmp=$tmp
29508
29509# Set up the scripts for CONFIG_FILES section.
29510# No need to generate them if there are no CONFIG_FILES.
29511# This happens for instance with `./config.status config.h'.
29512if test -n "$CONFIG_FILES"; then
29513
29514
29515ac_cr=`echo X | tr X '\015'`
29516# On cygwin, bash can eat \r inside `` if the user requested igncr.
29517# But we know of no other shell where ac_cr would be empty at this
29518# point, so we can use a bashism as a fallback.
29519if test "x$ac_cr" = x; then
29520  eval ac_cr=\$\'\\r\'
29521fi
29522ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29523if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29524  ac_cs_awk_cr='\\r'
29525else
29526  ac_cs_awk_cr=$ac_cr
29527fi
29528
29529echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29530_ACEOF
29531
29532
29533{
29534  echo "cat >conf$$subs.awk <<_ACEOF" &&
29535  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29536  echo "_ACEOF"
29537} >conf$$subs.sh ||
29538  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29539ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29540ac_delim='%!_!# '
29541for ac_last_try in false false false false false :; do
29542  . ./conf$$subs.sh ||
29543    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29544
29545  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29546  if test $ac_delim_n = $ac_delim_num; then
29547    break
29548  elif $ac_last_try; then
29549    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29550  else
29551    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29552  fi
29553done
29554rm -f conf$$subs.sh
29555
29556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29557cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
29558_ACEOF
29559sed -n '
29560h
29561s/^/S["/; s/!.*/"]=/
29562p
29563g
29564s/^[^!]*!//
29565:repl
29566t repl
29567s/'"$ac_delim"'$//
29568t delim
29569:nl
29570h
29571s/\(.\{148\}\)..*/\1/
29572t more1
29573s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29574p
29575n
29576b repl
29577:more1
29578s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29579p
29580g
29581s/.\{148\}//
29582t nl
29583:delim
29584h
29585s/\(.\{148\}\)..*/\1/
29586t more2
29587s/["\\]/\\&/g; s/^/"/; s/$/"/
29588p
29589b
29590:more2
29591s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29592p
29593g
29594s/.\{148\}//
29595t delim
29596' <conf$$subs.awk | sed '
29597/^[^""]/{
29598  N
29599  s/\n//
29600}
29601' >>$CONFIG_STATUS || ac_write_fail=1
29602rm -f conf$$subs.awk
29603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29604_ACAWK
29605cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
29606  for (key in S) S_is_set[key] = 1
29607  FS = ""
29608
29609}
29610{
29611  line = $ 0
29612  nfields = split(line, field, "@")
29613  substed = 0
29614  len = length(field[1])
29615  for (i = 2; i < nfields; i++) {
29616    key = field[i]
29617    keylen = length(key)
29618    if (S_is_set[key]) {
29619      value = S[key]
29620      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29621      len += length(value) + length(field[++i])
29622      substed = 1
29623    } else
29624      len += 1 + keylen
29625  }
29626
29627  print line
29628}
29629
29630_ACAWK
29631_ACEOF
29632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29633if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29634  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29635else
29636  cat
29637fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
29638  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
29639_ACEOF
29640
29641# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29642# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
29643# trailing colons and then remove the whole line if VPATH becomes empty
29644# (actually we leave an empty line to preserve line numbers).
29645if test "x$srcdir" = x.; then
29646  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
29647h
29648s///
29649s/^/:/
29650s/[	 ]*$/:/
29651s/:\$(srcdir):/:/g
29652s/:\${srcdir}:/:/g
29653s/:@srcdir@:/:/g
29654s/^:*//
29655s/:*$//
29656x
29657s/\(=[	 ]*\).*/\1/
29658G
29659s/\n//
29660s/^[^=]*=[	 ]*$//
29661}'
29662fi
29663
29664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29665fi # test -n "$CONFIG_FILES"
29666
29667# Set up the scripts for CONFIG_HEADERS section.
29668# No need to generate them if there are no CONFIG_HEADERS.
29669# This happens for instance with `./config.status Makefile'.
29670if test -n "$CONFIG_HEADERS"; then
29671cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29672BEGIN {
29673_ACEOF
29674
29675# Transform confdefs.h into an awk script `defines.awk', embedded as
29676# here-document in config.status, that substitutes the proper values into
29677# config.h.in to produce config.h.
29678
29679# Create a delimiter string that does not exist in confdefs.h, to ease
29680# handling of long lines.
29681ac_delim='%!_!# '
29682for ac_last_try in false false :; do
29683  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29684  if test -z "$ac_tt"; then
29685    break
29686  elif $ac_last_try; then
29687    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29688  else
29689    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29690  fi
29691done
29692
29693# For the awk script, D is an array of macro values keyed by name,
29694# likewise P contains macro parameters if any.  Preserve backslash
29695# newline sequences.
29696
29697ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29698sed -n '
29699s/.\{148\}/&'"$ac_delim"'/g
29700t rset
29701:rset
29702s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
29703t def
29704d
29705:def
29706s/\\$//
29707t bsnl
29708s/["\\]/\\&/g
29709s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
29710D["\1"]=" \3"/p
29711s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
29712d
29713:bsnl
29714s/["\\]/\\&/g
29715s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
29716D["\1"]=" \3\\\\\\n"\\/p
29717t cont
29718s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29719t cont
29720d
29721:cont
29722n
29723s/.\{148\}/&'"$ac_delim"'/g
29724t clear
29725:clear
29726s/\\$//
29727t bsnlc
29728s/["\\]/\\&/g; s/^/"/; s/$/"/p
29729d
29730:bsnlc
29731s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29732b cont
29733' <confdefs.h | sed '
29734s/'"$ac_delim"'/"\\\
29735"/g' >>$CONFIG_STATUS || ac_write_fail=1
29736
29737cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29738  for (key in D) D_is_set[key] = 1
29739  FS = ""
29740}
29741/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29742  line = \$ 0
29743  split(line, arg, " ")
29744  if (arg[1] == "#") {
29745    defundef = arg[2]
29746    mac1 = arg[3]
29747  } else {
29748    defundef = substr(arg[1], 2)
29749    mac1 = arg[2]
29750  }
29751  split(mac1, mac2, "(") #)
29752  macro = mac2[1]
29753  prefix = substr(line, 1, index(line, defundef) - 1)
29754  if (D_is_set[macro]) {
29755    # Preserve the white space surrounding the "#".
29756    print prefix "define", macro P[macro] D[macro]
29757    next
29758  } else {
29759    # Replace #undef with comments.  This is necessary, for example,
29760    # in the case of _POSIX_SOURCE, which is predefined and required
29761    # on some systems where configure will not decide to define it.
29762    if (defundef == "undef") {
29763      print "/*", prefix defundef, macro, "*/"
29764      next
29765    }
29766  }
29767}
29768{ print }
29769_ACAWK
29770_ACEOF
29771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29772  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29773fi # test -n "$CONFIG_HEADERS"
29774
29775
29776eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
29777shift
29778for ac_tag
29779do
29780  case $ac_tag in
29781  :[FHLC]) ac_mode=$ac_tag; continue;;
29782  esac
29783  case $ac_mode$ac_tag in
29784  :[FHL]*:*);;
29785  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29786  :[FH]-) ac_tag=-:-;;
29787  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29788  esac
29789  ac_save_IFS=$IFS
29790  IFS=:
29791  set x $ac_tag
29792  IFS=$ac_save_IFS
29793  shift
29794  ac_file=$1
29795  shift
29796
29797  case $ac_mode in
29798  :L) ac_source=$1;;
29799  :[FH])
29800    ac_file_inputs=
29801    for ac_f
29802    do
29803      case $ac_f in
29804      -) ac_f="$ac_tmp/stdin";;
29805      *) # Look for the file first in the build tree, then in the source tree
29806	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
29807	 # because $ac_f cannot contain `:'.
29808	 test -f "$ac_f" ||
29809	   case $ac_f in
29810	   [\\/$]*) false;;
29811	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29812	   esac ||
29813	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29814      esac
29815      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29816      as_fn_append ac_file_inputs " '$ac_f'"
29817    done
29818
29819    # Let's still pretend it is `configure' which instantiates (i.e., don't
29820    # use $as_me), people would be surprised to read:
29821    #    /* config.h.  Generated by config.status.  */
29822    configure_input='Generated from '`
29823	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29824	`' by configure.'
29825    if test x"$ac_file" != x-; then
29826      configure_input="$ac_file.  $configure_input"
29827      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29828$as_echo "$as_me: creating $ac_file" >&6;}
29829    fi
29830    # Neutralize special characters interpreted by sed in replacement strings.
29831    case $configure_input in #(
29832    *\&* | *\|* | *\\* )
29833       ac_sed_conf_input=`$as_echo "$configure_input" |
29834       sed 's/[\\\\&|]/\\\\&/g'`;; #(
29835    *) ac_sed_conf_input=$configure_input;;
29836    esac
29837
29838    case $ac_tag in
29839    *:-:* | *:-) cat >"$ac_tmp/stdin" \
29840      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29841    esac
29842    ;;
29843  esac
29844
29845  ac_dir=`$as_dirname -- "$ac_file" ||
29846$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29847	 X"$ac_file" : 'X\(//\)[^/]' \| \
29848	 X"$ac_file" : 'X\(//\)$' \| \
29849	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29850$as_echo X"$ac_file" |
29851    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29852	    s//\1/
29853	    q
29854	  }
29855	  /^X\(\/\/\)[^/].*/{
29856	    s//\1/
29857	    q
29858	  }
29859	  /^X\(\/\/\)$/{
29860	    s//\1/
29861	    q
29862	  }
29863	  /^X\(\/\).*/{
29864	    s//\1/
29865	    q
29866	  }
29867	  s/.*/./; q'`
29868  as_dir="$ac_dir"; as_fn_mkdir_p
29869  ac_builddir=.
29870
29871case "$ac_dir" in
29872.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29873*)
29874  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29875  # A ".." for each directory in $ac_dir_suffix.
29876  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29877  case $ac_top_builddir_sub in
29878  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29879  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29880  esac ;;
29881esac
29882ac_abs_top_builddir=$ac_pwd
29883ac_abs_builddir=$ac_pwd$ac_dir_suffix
29884# for backward compatibility:
29885ac_top_builddir=$ac_top_build_prefix
29886
29887case $srcdir in
29888  .)  # We are building in place.
29889    ac_srcdir=.
29890    ac_top_srcdir=$ac_top_builddir_sub
29891    ac_abs_top_srcdir=$ac_pwd ;;
29892  [\\/]* | ?:[\\/]* )  # Absolute name.
29893    ac_srcdir=$srcdir$ac_dir_suffix;
29894    ac_top_srcdir=$srcdir
29895    ac_abs_top_srcdir=$srcdir ;;
29896  *) # Relative name.
29897    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29898    ac_top_srcdir=$ac_top_build_prefix$srcdir
29899    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29900esac
29901ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29902
29903
29904  case $ac_mode in
29905  :F)
29906  #
29907  # CONFIG_FILE
29908  #
29909
29910  case $INSTALL in
29911  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29912  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29913  esac
29914_ACEOF
29915
29916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29917# If the template does not know about datarootdir, expand it.
29918# FIXME: This hack should be removed a few years after 2.60.
29919ac_datarootdir_hack=; ac_datarootdir_seen=
29920ac_sed_dataroot='
29921/datarootdir/ {
29922  p
29923  q
29924}
29925/@datadir@/p
29926/@docdir@/p
29927/@infodir@/p
29928/@localedir@/p
29929/@mandir@/p'
29930case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29931*datarootdir*) ac_datarootdir_seen=yes;;
29932*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29933  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29934$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29935_ACEOF
29936cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29937  ac_datarootdir_hack='
29938  s&@datadir@&$datadir&g
29939  s&@docdir@&$docdir&g
29940  s&@infodir@&$infodir&g
29941  s&@localedir@&$localedir&g
29942  s&@mandir@&$mandir&g
29943  s&\\\${datarootdir}&$datarootdir&g' ;;
29944esac
29945_ACEOF
29946
29947# Neutralize VPATH when `$srcdir' = `.'.
29948# Shell code in configure.ac might set extrasub.
29949# FIXME: do we really want to maintain this feature?
29950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29951ac_sed_extra="$ac_vpsub
29952$extrasub
29953_ACEOF
29954cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29955:t
29956/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29957s|@configure_input@|$ac_sed_conf_input|;t t
29958s&@top_builddir@&$ac_top_builddir_sub&;t t
29959s&@top_build_prefix@&$ac_top_build_prefix&;t t
29960s&@srcdir@&$ac_srcdir&;t t
29961s&@abs_srcdir@&$ac_abs_srcdir&;t t
29962s&@top_srcdir@&$ac_top_srcdir&;t t
29963s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29964s&@builddir@&$ac_builddir&;t t
29965s&@abs_builddir@&$ac_abs_builddir&;t t
29966s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29967s&@INSTALL@&$ac_INSTALL&;t t
29968$ac_datarootdir_hack
29969"
29970eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29971  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29972
29973test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29974  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29975  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
29976      "$ac_tmp/out"`; test -z "$ac_out"; } &&
29977  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29978which seems to be undefined.  Please make sure it is defined" >&5
29979$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29980which seems to be undefined.  Please make sure it is defined" >&2;}
29981
29982  rm -f "$ac_tmp/stdin"
29983  case $ac_file in
29984  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29985  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
29986  esac \
29987  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29988 ;;
29989  :H)
29990  #
29991  # CONFIG_HEADER
29992  #
29993  if test x"$ac_file" != x-; then
29994    {
29995      $as_echo "/* $configure_input  */" \
29996      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29997    } >"$ac_tmp/config.h" \
29998      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29999    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
30000      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30001$as_echo "$as_me: $ac_file is unchanged" >&6;}
30002    else
30003      rm -f "$ac_file"
30004      mv "$ac_tmp/config.h" "$ac_file" \
30005	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
30006    fi
30007  else
30008    $as_echo "/* $configure_input  */" \
30009      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
30010      || as_fn_error $? "could not create -" "$LINENO" 5
30011  fi
30012 ;;
30013
30014  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30015$as_echo "$as_me: executing $ac_file commands" >&6;}
30016 ;;
30017  esac
30018
30019
30020  case $ac_file$ac_mode in
30021    "libtool":C)
30022
30023    # See if we are running on zsh, and set the options which allow our
30024    # commands through without removal of \ escapes.
30025    if test -n "${ZSH_VERSION+set}" ; then
30026      setopt NO_GLOB_SUBST
30027    fi
30028
30029    cfgfile="${ofile}T"
30030    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30031    $RM "$cfgfile"
30032
30033    cat <<_LT_EOF >> "$cfgfile"
30034#! $SHELL
30035
30036# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30037# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30038# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30039# NOTE: Changes made to this file will be lost: look at ltmain.sh.
30040#
30041#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30042#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
30043#                 Foundation, Inc.
30044#   Written by Gordon Matzigkeit, 1996
30045#
30046#   This file is part of GNU Libtool.
30047#
30048# GNU Libtool is free software; you can redistribute it and/or
30049# modify it under the terms of the GNU General Public License as
30050# published by the Free Software Foundation; either version 2 of
30051# the License, or (at your option) any later version.
30052#
30053# As a special exception to the GNU General Public License,
30054# if you distribute this file as part of a program or library that
30055# is built using GNU Libtool, you may include this file under the
30056# same distribution terms that you use for the rest of that program.
30057#
30058# GNU Libtool is distributed in the hope that it will be useful,
30059# but WITHOUT ANY WARRANTY; without even the implied warranty of
30060# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30061# GNU General Public License for more details.
30062#
30063# You should have received a copy of the GNU General Public License
30064# along with GNU Libtool; see the file COPYING.  If not, a copy
30065# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30066# obtained by writing to the Free Software Foundation, Inc.,
30067# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30068
30069
30070# The names of the tagged configurations supported by this script.
30071available_tags=""
30072
30073# ### BEGIN LIBTOOL CONFIG
30074
30075# Assembler program.
30076AS=$lt_AS
30077
30078# DLL creation program.
30079DLLTOOL=$lt_DLLTOOL
30080
30081# Object dumper program.
30082OBJDUMP=$lt_OBJDUMP
30083
30084# Which release of libtool.m4 was used?
30085macro_version=$macro_version
30086macro_revision=$macro_revision
30087
30088# Whether or not to build shared libraries.
30089build_libtool_libs=$enable_shared
30090
30091# Whether or not to build static libraries.
30092build_old_libs=$enable_static
30093
30094# What type of objects to build.
30095pic_mode=$pic_mode
30096
30097# Whether or not to optimize for fast installation.
30098fast_install=$enable_fast_install
30099
30100# Shell to use when invoking shell scripts.
30101SHELL=$lt_SHELL
30102
30103# An echo program that protects backslashes.
30104ECHO=$lt_ECHO
30105
30106# The PATH separator for the build system.
30107PATH_SEPARATOR=$lt_PATH_SEPARATOR
30108
30109# The host system.
30110host_alias=$host_alias
30111host=$host
30112host_os=$host_os
30113
30114# The build system.
30115build_alias=$build_alias
30116build=$build
30117build_os=$build_os
30118
30119# A sed program that does not truncate output.
30120SED=$lt_SED
30121
30122# Sed that helps us avoid accidentally triggering echo(1) options like -n.
30123Xsed="\$SED -e 1s/^X//"
30124
30125# A grep program that handles long lines.
30126GREP=$lt_GREP
30127
30128# An ERE matcher.
30129EGREP=$lt_EGREP
30130
30131# A literal string matcher.
30132FGREP=$lt_FGREP
30133
30134# A BSD- or MS-compatible name lister.
30135NM=$lt_NM
30136
30137# Whether we need soft or hard links.
30138LN_S=$lt_LN_S
30139
30140# What is the maximum length of a command?
30141max_cmd_len=$max_cmd_len
30142
30143# Object file suffix (normally "o").
30144objext=$ac_objext
30145
30146# Executable file suffix (normally "").
30147exeext=$exeext
30148
30149# whether the shell understands "unset".
30150lt_unset=$lt_unset
30151
30152# turn spaces into newlines.
30153SP2NL=$lt_lt_SP2NL
30154
30155# turn newlines into spaces.
30156NL2SP=$lt_lt_NL2SP
30157
30158# convert \$build file names to \$host format.
30159to_host_file_cmd=$lt_cv_to_host_file_cmd
30160
30161# convert \$build files to toolchain format.
30162to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30163
30164# Method to check whether dependent libraries are shared objects.
30165deplibs_check_method=$lt_deplibs_check_method
30166
30167# Command to use when deplibs_check_method = "file_magic".
30168file_magic_cmd=$lt_file_magic_cmd
30169
30170# How to find potential files when deplibs_check_method = "file_magic".
30171file_magic_glob=$lt_file_magic_glob
30172
30173# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
30174want_nocaseglob=$lt_want_nocaseglob
30175
30176# Command to associate shared and link libraries.
30177sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
30178
30179# The archiver.
30180AR=$lt_AR
30181
30182# Flags to create an archive.
30183AR_FLAGS=$lt_AR_FLAGS
30184
30185# How to feed a file listing to the archiver.
30186archiver_list_spec=$lt_archiver_list_spec
30187
30188# A symbol stripping program.
30189STRIP=$lt_STRIP
30190
30191# Commands used to install an old-style archive.
30192RANLIB=$lt_RANLIB
30193old_postinstall_cmds=$lt_old_postinstall_cmds
30194old_postuninstall_cmds=$lt_old_postuninstall_cmds
30195
30196# Whether to use a lock for old archive extraction.
30197lock_old_archive_extraction=$lock_old_archive_extraction
30198
30199# A C compiler.
30200LTCC=$lt_CC
30201
30202# LTCC compiler flags.
30203LTCFLAGS=$lt_CFLAGS
30204
30205# Take the output of nm and produce a listing of raw symbols and C names.
30206global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30207
30208# Transform the output of nm in a proper C declaration.
30209global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30210
30211# Transform the output of nm in a C name address pair.
30212global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30213
30214# Transform the output of nm in a C name address pair when lib prefix is needed.
30215global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30216
30217# Specify filename containing input files for \$NM.
30218nm_file_list_spec=$lt_nm_file_list_spec
30219
30220# The root where to search for dependent libraries,and in which our libraries should be installed.
30221lt_sysroot=$lt_sysroot
30222
30223# The name of the directory that contains temporary libtool files.
30224objdir=$objdir
30225
30226# Used to examine libraries when file_magic_cmd begins with "file".
30227MAGIC_CMD=$MAGIC_CMD
30228
30229# Must we lock files when doing compilation?
30230need_locks=$lt_need_locks
30231
30232# Manifest tool.
30233MANIFEST_TOOL=$lt_MANIFEST_TOOL
30234
30235# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30236DSYMUTIL=$lt_DSYMUTIL
30237
30238# Tool to change global to local symbols on Mac OS X.
30239NMEDIT=$lt_NMEDIT
30240
30241# Tool to manipulate fat objects and archives on Mac OS X.
30242LIPO=$lt_LIPO
30243
30244# ldd/readelf like tool for Mach-O binaries on Mac OS X.
30245OTOOL=$lt_OTOOL
30246
30247# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30248OTOOL64=$lt_OTOOL64
30249
30250# Old archive suffix (normally "a").
30251libext=$libext
30252
30253# Shared library suffix (normally ".so").
30254shrext_cmds=$lt_shrext_cmds
30255
30256# The commands to extract the exported symbol list from a shared archive.
30257extract_expsyms_cmds=$lt_extract_expsyms_cmds
30258
30259# Variables whose values should be saved in libtool wrapper scripts and
30260# restored at link time.
30261variables_saved_for_relink=$lt_variables_saved_for_relink
30262
30263# Do we need the "lib" prefix for modules?
30264need_lib_prefix=$need_lib_prefix
30265
30266# Do we need a version for libraries?
30267need_version=$need_version
30268
30269# Library versioning type.
30270version_type=$version_type
30271
30272# Shared library runtime path variable.
30273runpath_var=$runpath_var
30274
30275# Shared library path variable.
30276shlibpath_var=$shlibpath_var
30277
30278# Is shlibpath searched before the hard-coded library search path?
30279shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30280
30281# Format of library name prefix.
30282libname_spec=$lt_libname_spec
30283
30284# List of archive names.  First name is the real one, the rest are links.
30285# The last name is the one that the linker finds with -lNAME
30286library_names_spec=$lt_library_names_spec
30287
30288# The coded name of the library, if different from the real name.
30289soname_spec=$lt_soname_spec
30290
30291# Permission mode override for installation of shared libraries.
30292install_override_mode=$lt_install_override_mode
30293
30294# Command to use after installation of a shared archive.
30295postinstall_cmds=$lt_postinstall_cmds
30296
30297# Command to use after uninstallation of a shared archive.
30298postuninstall_cmds=$lt_postuninstall_cmds
30299
30300# Commands used to finish a libtool library installation in a directory.
30301finish_cmds=$lt_finish_cmds
30302
30303# As "finish_cmds", except a single script fragment to be evaled but
30304# not shown.
30305finish_eval=$lt_finish_eval
30306
30307# Whether we should hardcode library paths into libraries.
30308hardcode_into_libs=$hardcode_into_libs
30309
30310# Compile-time system search path for libraries.
30311sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30312
30313# Run-time system search path for libraries.
30314sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30315
30316# Whether dlopen is supported.
30317dlopen_support=$enable_dlopen
30318
30319# Whether dlopen of programs is supported.
30320dlopen_self=$enable_dlopen_self
30321
30322# Whether dlopen of statically linked programs is supported.
30323dlopen_self_static=$enable_dlopen_self_static
30324
30325# Commands to strip libraries.
30326old_striplib=$lt_old_striplib
30327striplib=$lt_striplib
30328
30329
30330# The linker used to build libraries.
30331LD=$lt_LD
30332
30333# How to create reloadable object files.
30334reload_flag=$lt_reload_flag
30335reload_cmds=$lt_reload_cmds
30336
30337# Commands used to build an old-style archive.
30338old_archive_cmds=$lt_old_archive_cmds
30339
30340# A language specific compiler.
30341CC=$lt_compiler
30342
30343# Is the compiler the GNU compiler?
30344with_gcc=$GCC
30345
30346# Compiler flag to turn off builtin functions.
30347no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30348
30349# Additional compiler flags for building library objects.
30350pic_flag=$lt_lt_prog_compiler_pic
30351
30352# How to pass a linker flag through the compiler.
30353wl=$lt_lt_prog_compiler_wl
30354
30355# Compiler flag to prevent dynamic linking.
30356link_static_flag=$lt_lt_prog_compiler_static
30357
30358# Does compiler simultaneously support -c and -o options?
30359compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30360
30361# Whether or not to add -lc for building shared libraries.
30362build_libtool_need_lc=$archive_cmds_need_lc
30363
30364# Whether or not to disallow shared libs when runtime libs are static.
30365allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30366
30367# Compiler flag to allow reflexive dlopens.
30368export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30369
30370# Compiler flag to generate shared objects directly from archives.
30371whole_archive_flag_spec=$lt_whole_archive_flag_spec
30372
30373# Whether the compiler copes with passing no objects directly.
30374compiler_needs_object=$lt_compiler_needs_object
30375
30376# Create an old-style archive from a shared archive.
30377old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30378
30379# Create a temporary old-style archive to link instead of a shared archive.
30380old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30381
30382# Commands used to build a shared archive.
30383archive_cmds=$lt_archive_cmds
30384archive_expsym_cmds=$lt_archive_expsym_cmds
30385
30386# Commands used to build a loadable module if different from building
30387# a shared archive.
30388module_cmds=$lt_module_cmds
30389module_expsym_cmds=$lt_module_expsym_cmds
30390
30391# Whether we are building with GNU ld or not.
30392with_gnu_ld=$lt_with_gnu_ld
30393
30394# Flag that allows shared libraries with undefined symbols to be built.
30395allow_undefined_flag=$lt_allow_undefined_flag
30396
30397# Flag that enforces no undefined symbols.
30398no_undefined_flag=$lt_no_undefined_flag
30399
30400# Flag to hardcode \$libdir into a binary during linking.
30401# This must work even if \$libdir does not exist
30402hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30403
30404# Whether we need a single "-rpath" flag with a separated argument.
30405hardcode_libdir_separator=$lt_hardcode_libdir_separator
30406
30407# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30408# DIR into the resulting binary.
30409hardcode_direct=$hardcode_direct
30410
30411# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30412# DIR into the resulting binary and the resulting library dependency is
30413# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30414# library is relocated.
30415hardcode_direct_absolute=$hardcode_direct_absolute
30416
30417# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30418# into the resulting binary.
30419hardcode_minus_L=$hardcode_minus_L
30420
30421# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30422# into the resulting binary.
30423hardcode_shlibpath_var=$hardcode_shlibpath_var
30424
30425# Set to "yes" if building a shared library automatically hardcodes DIR
30426# into the library and all subsequent libraries and executables linked
30427# against it.
30428hardcode_automatic=$hardcode_automatic
30429
30430# Set to yes if linker adds runtime paths of dependent libraries
30431# to runtime path list.
30432inherit_rpath=$inherit_rpath
30433
30434# Whether libtool must link a program against all its dependency libraries.
30435link_all_deplibs=$link_all_deplibs
30436
30437# Set to "yes" if exported symbols are required.
30438always_export_symbols=$always_export_symbols
30439
30440# The commands to list exported symbols.
30441export_symbols_cmds=$lt_export_symbols_cmds
30442
30443# Symbols that should not be listed in the preloaded symbols.
30444exclude_expsyms=$lt_exclude_expsyms
30445
30446# Symbols that must always be exported.
30447include_expsyms=$lt_include_expsyms
30448
30449# Commands necessary for linking programs (against libraries) with templates.
30450prelink_cmds=$lt_prelink_cmds
30451
30452# Commands necessary for finishing linking programs.
30453postlink_cmds=$lt_postlink_cmds
30454
30455# Specify filename containing input files.
30456file_list_spec=$lt_file_list_spec
30457
30458# How to hardcode a shared library path into an executable.
30459hardcode_action=$hardcode_action
30460
30461# ### END LIBTOOL CONFIG
30462
30463_LT_EOF
30464
30465  case $host_os in
30466  aix3*)
30467    cat <<\_LT_EOF >> "$cfgfile"
30468# AIX sometimes has problems with the GCC collect2 program.  For some
30469# reason, if we set the COLLECT_NAMES environment variable, the problems
30470# vanish in a puff of smoke.
30471if test "X${COLLECT_NAMES+set}" != Xset; then
30472  COLLECT_NAMES=
30473  export COLLECT_NAMES
30474fi
30475_LT_EOF
30476    ;;
30477  esac
30478
30479
30480ltmain="$ac_aux_dir/ltmain.sh"
30481
30482
30483  # We use sed instead of cat because bash on DJGPP gets confused if
30484  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
30485  # text mode, it properly converts lines to CR/LF.  This bash problem
30486  # is reportedly fixed, but why not run on old versions too?
30487  sed '$q' "$ltmain" >> "$cfgfile" \
30488     || (rm -f "$cfgfile"; exit 1)
30489
30490  if test x"$xsi_shell" = xyes; then
30491  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
30492func_dirname ()\
30493{\
30494\    case ${1} in\
30495\      */*) func_dirname_result="${1%/*}${2}" ;;\
30496\      *  ) func_dirname_result="${3}" ;;\
30497\    esac\
30498} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
30499  && mv -f "$cfgfile.tmp" "$cfgfile" \
30500    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30501test 0 -eq $? || _lt_function_replace_fail=:
30502
30503
30504  sed -e '/^func_basename ()$/,/^} # func_basename /c\
30505func_basename ()\
30506{\
30507\    func_basename_result="${1##*/}"\
30508} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
30509  && mv -f "$cfgfile.tmp" "$cfgfile" \
30510    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30511test 0 -eq $? || _lt_function_replace_fail=:
30512
30513
30514  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
30515func_dirname_and_basename ()\
30516{\
30517\    case ${1} in\
30518\      */*) func_dirname_result="${1%/*}${2}" ;;\
30519\      *  ) func_dirname_result="${3}" ;;\
30520\    esac\
30521\    func_basename_result="${1##*/}"\
30522} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
30523  && mv -f "$cfgfile.tmp" "$cfgfile" \
30524    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30525test 0 -eq $? || _lt_function_replace_fail=:
30526
30527
30528  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
30529func_stripname ()\
30530{\
30531\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
30532\    # positional parameters, so assign one to ordinary parameter first.\
30533\    func_stripname_result=${3}\
30534\    func_stripname_result=${func_stripname_result#"${1}"}\
30535\    func_stripname_result=${func_stripname_result%"${2}"}\
30536} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
30537  && mv -f "$cfgfile.tmp" "$cfgfile" \
30538    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30539test 0 -eq $? || _lt_function_replace_fail=:
30540
30541
30542  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
30543func_split_long_opt ()\
30544{\
30545\    func_split_long_opt_name=${1%%=*}\
30546\    func_split_long_opt_arg=${1#*=}\
30547} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
30548  && mv -f "$cfgfile.tmp" "$cfgfile" \
30549    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30550test 0 -eq $? || _lt_function_replace_fail=:
30551
30552
30553  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
30554func_split_short_opt ()\
30555{\
30556\    func_split_short_opt_arg=${1#??}\
30557\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
30558} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
30559  && mv -f "$cfgfile.tmp" "$cfgfile" \
30560    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30561test 0 -eq $? || _lt_function_replace_fail=:
30562
30563
30564  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
30565func_lo2o ()\
30566{\
30567\    case ${1} in\
30568\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
30569\      *)    func_lo2o_result=${1} ;;\
30570\    esac\
30571} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
30572  && mv -f "$cfgfile.tmp" "$cfgfile" \
30573    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30574test 0 -eq $? || _lt_function_replace_fail=:
30575
30576
30577  sed -e '/^func_xform ()$/,/^} # func_xform /c\
30578func_xform ()\
30579{\
30580    func_xform_result=${1%.*}.lo\
30581} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
30582  && mv -f "$cfgfile.tmp" "$cfgfile" \
30583    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30584test 0 -eq $? || _lt_function_replace_fail=:
30585
30586
30587  sed -e '/^func_arith ()$/,/^} # func_arith /c\
30588func_arith ()\
30589{\
30590    func_arith_result=$(( $* ))\
30591} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
30592  && mv -f "$cfgfile.tmp" "$cfgfile" \
30593    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30594test 0 -eq $? || _lt_function_replace_fail=:
30595
30596
30597  sed -e '/^func_len ()$/,/^} # func_len /c\
30598func_len ()\
30599{\
30600    func_len_result=${#1}\
30601} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
30602  && mv -f "$cfgfile.tmp" "$cfgfile" \
30603    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30604test 0 -eq $? || _lt_function_replace_fail=:
30605
30606fi
30607
30608if test x"$lt_shell_append" = xyes; then
30609  sed -e '/^func_append ()$/,/^} # func_append /c\
30610func_append ()\
30611{\
30612    eval "${1}+=\\${2}"\
30613} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
30614  && mv -f "$cfgfile.tmp" "$cfgfile" \
30615    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30616test 0 -eq $? || _lt_function_replace_fail=:
30617
30618
30619  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
30620func_append_quoted ()\
30621{\
30622\    func_quote_for_eval "${2}"\
30623\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
30624} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
30625  && mv -f "$cfgfile.tmp" "$cfgfile" \
30626    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30627test 0 -eq $? || _lt_function_replace_fail=:
30628
30629
30630  # Save a `func_append' function call where possible by direct use of '+='
30631  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
30632    && mv -f "$cfgfile.tmp" "$cfgfile" \
30633      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30634  test 0 -eq $? || _lt_function_replace_fail=:
30635else
30636  # Save a `func_append' function call even when '+=' is not available
30637  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
30638    && mv -f "$cfgfile.tmp" "$cfgfile" \
30639      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30640  test 0 -eq $? || _lt_function_replace_fail=:
30641fi
30642
30643if test x"$_lt_function_replace_fail" = x":"; then
30644  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
30645$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
30646fi
30647
30648
30649   mv -f "$cfgfile" "$ofile" ||
30650    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30651  chmod +x "$ofile"
30652
30653 ;;
30654    "default":C)
30655# Commands run at the end of config.status:
30656for i in $APR_SAVE_HEADERS; do
30657  if cmp -s $i $i.save 2>/dev/null; then
30658    mv $i.save $i
30659    { $as_echo "$as_me:${as_lineno-$LINENO}: $i is unchanged" >&5
30660$as_echo "$as_me: $i is unchanged" >&6;}
30661  fi
30662  rm -f $i.save
30663done
30664chmod +x apr-$APR_MAJOR_VERSION-config
30665 ;;
30666
30667  esac
30668done # for ac_tag
30669
30670
30671as_fn_exit 0
30672_ACEOF
30673ac_clean_files=$ac_clean_files_save
30674
30675test $ac_write_fail = 0 ||
30676  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30677
30678
30679# configure is writing to config.log, and then calls config.status.
30680# config.status does its own redirection, appending to config.log.
30681# Unfortunately, on DOS this fails, as config.log is still kept open
30682# by configure, so config.status won't be able to write to it; its
30683# output is simply discarded.  So we exec the FD to /dev/null,
30684# effectively closing config.log, so it can be properly (re)opened and
30685# appended to by config.status.  When coming back to configure, we
30686# need to make the FD available again.
30687if test "$no_create" != yes; then
30688  ac_cs_success=:
30689  ac_config_status_args=
30690  test "$silent" = yes &&
30691    ac_config_status_args="$ac_config_status_args --quiet"
30692  exec 5>/dev/null
30693  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30694  exec 5>>config.log
30695  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30696  # would make configure fail if this is the last instruction.
30697  $ac_cs_success || as_fn_exit 1
30698fi
30699if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30700  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30701$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30702fi
30703
30704