configure revision 289166
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    PATH=/empty FPATH=/empty; export PATH FPATH
206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
593PACKAGE_URL=
594
595ac_unique_file="build/apr_common.m4"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='LTLIBOBJS
633LIBOBJS
634INCLUDE_OUTPUTS
635INCLUDE_RULES
636LT_NO_INSTALL
637LIBTOOL_LIBS
638DEFAULT_OSDIR
639OSDIR
640INCLUDES
641LDLIBS
642INTERNAL_CPPFLAGS
643NOTEST_INCLUDES
644NOTEST_LIBS
645NOTEST_LDFLAGS
646NOTEST_CFLAGS
647NOTEST_CPPFLAGS
648EXTRA_INCLUDES
649EXTRA_LIBS
650EXTRA_LDFLAGS
651EXTRA_CFLAGS
652EXTRA_CPPFLAGS
653apr_has_user
654apr_thread_func
655apr_procattr_user_set_requires_password
656apr_has_xthread_files
657have_unicode_fs
658have_ipv6
659have_sa_storage
660have_sctp
661acceptfilter
662have_corkable_tcp
663apr_tcp_nopush_flag
664file_as_socket
665have_in_addr
666osuuid
667rand
668proclockglobal
669pthreadser
670procpthreadser
671fcntlser
672posixser
673sysvser
674flockser
675hasprocpthreadser
676hasfcntlser
677hasposixser
678hassysvser
679hasflockser
680have_union_semun
681struct_rlimit
682have_proc_invoked
683oc
684aprdso
685have_memchr
686have_strstr
687have_strdup
688have_strcasecmp
689have_stricmp
690have_strncasecmp
691have_strnicmp
692ino_t_value
693have_iovec
694aprlfs
695bigendian
696stdint
697uint64_literal
698int64_literal
699pid_t_fmt
700off_t_fmt
701size_t_fmt
702ssize_t_fmt
703uint64_t_hex_fmt
704uint64_t_fmt
705int64_t_fmt
706socklen_t_value
707ssize_t_value
708size_t_value
709off_t_value
710int64_value
711long_value
712int_value
713short_value
714voidp_size
715winsock2h
716windowsh
717semaphoreh
718pthreadh
719processh
720sys_waith
721signalh
722unistdh
723timeh
724sys_unh
725sys_uioh
726sys_timeh
727sys_typesh
728sys_sockioh
729sys_socketh
730sys_signalh
731sys_sendfileh
732sys_ioctlh
733stringsh
734stringh
735stdlibh
736stdioh
737stdargh
738netinet_tcph
739netinet_sctp_uioh
740netinet_sctph
741netinet_inh
742sys_syslimitsh
743netdbh
744limitsh
745ioh
746fcntlh
747direnth
748errnoh
749crypth
750ctypeh
751conioh
752arpa_ineth
753have_memmove
754mmap
755have_getrlimit
756have_setrlimit
757have_sigaction
758have_inet_network
759o_nonblock_inherited
760tcp_nodelay_inherited
761have_inet_addr
762fork
763apr_inaddr_none
764sendfile
765ALLOCA
766sharedmem
767havewin32shm
768haveos2shm
769havebeosarea
770haveshmget
771havemmapshm
772havemmaptmp
773usewin32shm
774useos2shm
775usebeosarea
776useshmget
777usemmapshm
778usemmaptmp
779havemmapanon
780havemmapzero
781haveshmgetanon
782usemmapanon
783usemmapzero
784useshmgetanon
785have_sigwait
786have_sigsuspend
787threads
788INSTALL_SUBDIRS
789eolstr
790proc_mutex_is_global
791OBJECTS_PLATFORM
792MKDEP
793LT_VERSION
794LT_LDFLAGS
795LTFLAGS
796shlibpath_var
797export_lib_target
798lib_target
799so_ext
800link
801lt_compile
802installbuilddir
803OTOOL64
804OTOOL
805LIPO
806NMEDIT
807DSYMUTIL
808MANIFEST_TOOL
809STRIP
810ac_ct_AR
811NM
812ac_ct_DUMPBIN
813DUMPBIN
814LD
815FGREP
816LIBTOOL
817OBJDUMP
818DLLTOOL
819APR_LIBNAME
820apr_charset_ebcdic
821EGREP
822GREP
823AR
824ASCPP
825AS
826RM
827INSTALL_DATA
828INSTALL_SCRIPT
829INSTALL_PROGRAM
830RANLIB
831LN_S
832AWK
833CPP
834SET_MAKE
835SED
836OBJEXT
837EXEEXT
838ac_ct_CC
839CPPFLAGS
840LDFLAGS
841CFLAGS
842CC
843APR_MAJOR_VERSION
844APR_DOTTED_VERSION
845apr_builders
846top_builddir
847APR_CONFIG_LOCATION
848apr_builddir
849apr_srcdir
850target_os
851target_vendor
852target_cpu
853target
854host_os
855host_vendor
856host_cpu
857host
858build_os
859build_vendor
860build_cpu
861build
862target_alias
863host_alias
864build_alias
865LIBS
866ECHO_T
867ECHO_N
868ECHO_C
869DEFS
870mandir
871localedir
872libdir
873psdir
874pdfdir
875dvidir
876htmldir
877infodir
878docdir
879oldincludedir
880includedir
881localstatedir
882sharedstatedir
883sysconfdir
884datadir
885datarootdir
886libexecdir
887sbindir
888bindir
889program_transform_name
890prefix
891exec_prefix
892PACKAGE_URL
893PACKAGE_BUGREPORT
894PACKAGE_STRING
895PACKAGE_VERSION
896PACKAGE_TARNAME
897PACKAGE_NAME
898PATH_SEPARATOR
899SHELL'
900ac_subst_files=''
901ac_user_opts='
902enable_option_checking
903enable_layout
904enable_experimental_libtool
905enable_shared
906enable_static
907with_pic
908enable_fast_install
909with_gnu_ld
910with_sysroot
911enable_libtool_lock
912with_installbuilddir
913with_libtool
914enable_debug
915enable_maintainer_mode
916enable_profile
917enable_pool_debug
918enable_malloc_debug
919enable_lfs
920enable_nonportable_atomics
921enable_threads
922with_efence
923enable_posix_shm
924with_sendfile
925enable_allocator_uses_mmap
926enable_dso
927enable_other_child
928with_egd
929with_devrandom
930enable_ipv6
931'
932      ac_precious_vars='build_alias
933host_alias
934target_alias
935CC
936CFLAGS
937LDFLAGS
938LIBS
939CPPFLAGS
940CPP'
941
942
943# Initialize some variables set by options.
944ac_init_help=
945ac_init_version=false
946ac_unrecognized_opts=
947ac_unrecognized_sep=
948# The variables have the same names as the options, with
949# dashes changed to underlines.
950cache_file=/dev/null
951exec_prefix=NONE
952no_create=
953no_recursion=
954prefix=NONE
955program_prefix=NONE
956program_suffix=NONE
957program_transform_name=s,x,x,
958silent=
959site=
960srcdir=
961verbose=
962x_includes=NONE
963x_libraries=NONE
964
965# Installation directory options.
966# These are left unexpanded so users can "make install exec_prefix=/foo"
967# and all the variables that are supposed to be based on exec_prefix
968# by default will actually change.
969# Use braces instead of parens because sh, perl, etc. also accept them.
970# (The list follows the same order as the GNU Coding Standards.)
971bindir='${exec_prefix}/bin'
972sbindir='${exec_prefix}/sbin'
973libexecdir='${exec_prefix}/libexec'
974datarootdir='${prefix}/share'
975datadir='${datarootdir}'
976sysconfdir='${prefix}/etc'
977sharedstatedir='${prefix}/com'
978localstatedir='${prefix}/var'
979includedir='${prefix}/include'
980oldincludedir='/usr/include'
981docdir='${datarootdir}/doc/${PACKAGE}'
982infodir='${datarootdir}/info'
983htmldir='${docdir}'
984dvidir='${docdir}'
985pdfdir='${docdir}'
986psdir='${docdir}'
987libdir='${exec_prefix}/lib'
988localedir='${datarootdir}/locale'
989mandir='${datarootdir}/man'
990
991ac_prev=
992ac_dashdash=
993for ac_option
994do
995  # If the previous option needs an argument, assign it.
996  if test -n "$ac_prev"; then
997    eval $ac_prev=\$ac_option
998    ac_prev=
999    continue
1000  fi
1001
1002  case $ac_option in
1003  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004  *=)   ac_optarg= ;;
1005  *)    ac_optarg=yes ;;
1006  esac
1007
1008  # Accept the important Cygnus configure options, so we can diagnose typos.
1009
1010  case $ac_dashdash$ac_option in
1011  --)
1012    ac_dashdash=yes ;;
1013
1014  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1015    ac_prev=bindir ;;
1016  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1017    bindir=$ac_optarg ;;
1018
1019  -build | --build | --buil | --bui | --bu)
1020    ac_prev=build_alias ;;
1021  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1022    build_alias=$ac_optarg ;;
1023
1024  -cache-file | --cache-file | --cache-fil | --cache-fi \
1025  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1026    ac_prev=cache_file ;;
1027  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1028  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1029    cache_file=$ac_optarg ;;
1030
1031  --config-cache | -C)
1032    cache_file=config.cache ;;
1033
1034  -datadir | --datadir | --datadi | --datad)
1035    ac_prev=datadir ;;
1036  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1037    datadir=$ac_optarg ;;
1038
1039  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1040  | --dataroo | --dataro | --datar)
1041    ac_prev=datarootdir ;;
1042  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1043  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1044    datarootdir=$ac_optarg ;;
1045
1046  -disable-* | --disable-*)
1047    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1048    # Reject names that are not valid shell variable names.
1049    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050      as_fn_error $? "invalid feature name: $ac_useropt"
1051    ac_useropt_orig=$ac_useropt
1052    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053    case $ac_user_opts in
1054      *"
1055"enable_$ac_useropt"
1056"*) ;;
1057      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1058	 ac_unrecognized_sep=', ';;
1059    esac
1060    eval enable_$ac_useropt=no ;;
1061
1062  -docdir | --docdir | --docdi | --doc | --do)
1063    ac_prev=docdir ;;
1064  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1065    docdir=$ac_optarg ;;
1066
1067  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068    ac_prev=dvidir ;;
1069  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1070    dvidir=$ac_optarg ;;
1071
1072  -enable-* | --enable-*)
1073    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074    # Reject names that are not valid shell variable names.
1075    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076      as_fn_error $? "invalid feature name: $ac_useropt"
1077    ac_useropt_orig=$ac_useropt
1078    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079    case $ac_user_opts in
1080      *"
1081"enable_$ac_useropt"
1082"*) ;;
1083      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1084	 ac_unrecognized_sep=', ';;
1085    esac
1086    eval enable_$ac_useropt=\$ac_optarg ;;
1087
1088  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090  | --exec | --exe | --ex)
1091    ac_prev=exec_prefix ;;
1092  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094  | --exec=* | --exe=* | --ex=*)
1095    exec_prefix=$ac_optarg ;;
1096
1097  -gas | --gas | --ga | --g)
1098    # Obsolete; use --with-gas.
1099    with_gas=yes ;;
1100
1101  -help | --help | --hel | --he | -h)
1102    ac_init_help=long ;;
1103  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104    ac_init_help=recursive ;;
1105  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106    ac_init_help=short ;;
1107
1108  -host | --host | --hos | --ho)
1109    ac_prev=host_alias ;;
1110  -host=* | --host=* | --hos=* | --ho=*)
1111    host_alias=$ac_optarg ;;
1112
1113  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114    ac_prev=htmldir ;;
1115  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116  | --ht=*)
1117    htmldir=$ac_optarg ;;
1118
1119  -includedir | --includedir | --includedi | --included | --include \
1120  | --includ | --inclu | --incl | --inc)
1121    ac_prev=includedir ;;
1122  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123  | --includ=* | --inclu=* | --incl=* | --inc=*)
1124    includedir=$ac_optarg ;;
1125
1126  -infodir | --infodir | --infodi | --infod | --info | --inf)
1127    ac_prev=infodir ;;
1128  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129    infodir=$ac_optarg ;;
1130
1131  -libdir | --libdir | --libdi | --libd)
1132    ac_prev=libdir ;;
1133  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134    libdir=$ac_optarg ;;
1135
1136  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137  | --libexe | --libex | --libe)
1138    ac_prev=libexecdir ;;
1139  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140  | --libexe=* | --libex=* | --libe=*)
1141    libexecdir=$ac_optarg ;;
1142
1143  -localedir | --localedir | --localedi | --localed | --locale)
1144    ac_prev=localedir ;;
1145  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146    localedir=$ac_optarg ;;
1147
1148  -localstatedir | --localstatedir | --localstatedi | --localstated \
1149  | --localstate | --localstat | --localsta | --localst | --locals)
1150    ac_prev=localstatedir ;;
1151  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153    localstatedir=$ac_optarg ;;
1154
1155  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156    ac_prev=mandir ;;
1157  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158    mandir=$ac_optarg ;;
1159
1160  -nfp | --nfp | --nf)
1161    # Obsolete; use --without-fp.
1162    with_fp=no ;;
1163
1164  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165  | --no-cr | --no-c | -n)
1166    no_create=yes ;;
1167
1168  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170    no_recursion=yes ;;
1171
1172  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174  | --oldin | --oldi | --old | --ol | --o)
1175    ac_prev=oldincludedir ;;
1176  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179    oldincludedir=$ac_optarg ;;
1180
1181  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182    ac_prev=prefix ;;
1183  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184    prefix=$ac_optarg ;;
1185
1186  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187  | --program-pre | --program-pr | --program-p)
1188    ac_prev=program_prefix ;;
1189  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191    program_prefix=$ac_optarg ;;
1192
1193  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194  | --program-suf | --program-su | --program-s)
1195    ac_prev=program_suffix ;;
1196  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198    program_suffix=$ac_optarg ;;
1199
1200  -program-transform-name | --program-transform-name \
1201  | --program-transform-nam | --program-transform-na \
1202  | --program-transform-n | --program-transform- \
1203  | --program-transform | --program-transfor \
1204  | --program-transfo | --program-transf \
1205  | --program-trans | --program-tran \
1206  | --progr-tra | --program-tr | --program-t)
1207    ac_prev=program_transform_name ;;
1208  -program-transform-name=* | --program-transform-name=* \
1209  | --program-transform-nam=* | --program-transform-na=* \
1210  | --program-transform-n=* | --program-transform-=* \
1211  | --program-transform=* | --program-transfor=* \
1212  | --program-transfo=* | --program-transf=* \
1213  | --program-trans=* | --program-tran=* \
1214  | --progr-tra=* | --program-tr=* | --program-t=*)
1215    program_transform_name=$ac_optarg ;;
1216
1217  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218    ac_prev=pdfdir ;;
1219  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220    pdfdir=$ac_optarg ;;
1221
1222  -psdir | --psdir | --psdi | --psd | --ps)
1223    ac_prev=psdir ;;
1224  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225    psdir=$ac_optarg ;;
1226
1227  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228  | -silent | --silent | --silen | --sile | --sil)
1229    silent=yes ;;
1230
1231  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232    ac_prev=sbindir ;;
1233  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234  | --sbi=* | --sb=*)
1235    sbindir=$ac_optarg ;;
1236
1237  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239  | --sharedst | --shareds | --shared | --share | --shar \
1240  | --sha | --sh)
1241    ac_prev=sharedstatedir ;;
1242  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245  | --sha=* | --sh=*)
1246    sharedstatedir=$ac_optarg ;;
1247
1248  -site | --site | --sit)
1249    ac_prev=site ;;
1250  -site=* | --site=* | --sit=*)
1251    site=$ac_optarg ;;
1252
1253  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254    ac_prev=srcdir ;;
1255  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256    srcdir=$ac_optarg ;;
1257
1258  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259  | --syscon | --sysco | --sysc | --sys | --sy)
1260    ac_prev=sysconfdir ;;
1261  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263    sysconfdir=$ac_optarg ;;
1264
1265  -target | --target | --targe | --targ | --tar | --ta | --t)
1266    ac_prev=target_alias ;;
1267  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268    target_alias=$ac_optarg ;;
1269
1270  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271    verbose=yes ;;
1272
1273  -version | --version | --versio | --versi | --vers | -V)
1274    ac_init_version=: ;;
1275
1276  -with-* | --with-*)
1277    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278    # Reject names that are not valid shell variable names.
1279    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280      as_fn_error $? "invalid package name: $ac_useropt"
1281    ac_useropt_orig=$ac_useropt
1282    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283    case $ac_user_opts in
1284      *"
1285"with_$ac_useropt"
1286"*) ;;
1287      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288	 ac_unrecognized_sep=', ';;
1289    esac
1290    eval with_$ac_useropt=\$ac_optarg ;;
1291
1292  -without-* | --without-*)
1293    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294    # Reject names that are not valid shell variable names.
1295    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296      as_fn_error $? "invalid package name: $ac_useropt"
1297    ac_useropt_orig=$ac_useropt
1298    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299    case $ac_user_opts in
1300      *"
1301"with_$ac_useropt"
1302"*) ;;
1303      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304	 ac_unrecognized_sep=', ';;
1305    esac
1306    eval with_$ac_useropt=no ;;
1307
1308  --x)
1309    # Obsolete; use --with-x.
1310    with_x=yes ;;
1311
1312  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313  | --x-incl | --x-inc | --x-in | --x-i)
1314    ac_prev=x_includes ;;
1315  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317    x_includes=$ac_optarg ;;
1318
1319  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321    ac_prev=x_libraries ;;
1322  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324    x_libraries=$ac_optarg ;;
1325
1326  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1327Try \`$0 --help' for more information"
1328    ;;
1329
1330  *=*)
1331    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332    # Reject names that are not valid shell variable names.
1333    case $ac_envvar in #(
1334      '' | [0-9]* | *[!_$as_cr_alnum]* )
1335      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1336    esac
1337    eval $ac_envvar=\$ac_optarg
1338    export $ac_envvar ;;
1339
1340  *)
1341    # FIXME: should be removed in autoconf 3.0.
1342    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1346    ;;
1347
1348  esac
1349done
1350
1351if test -n "$ac_prev"; then
1352  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353  as_fn_error $? "missing argument to $ac_option"
1354fi
1355
1356if test -n "$ac_unrecognized_opts"; then
1357  case $enable_option_checking in
1358    no) ;;
1359    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1360    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361  esac
1362fi
1363
1364# Check all directory arguments for consistency.
1365for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366		datadir sysconfdir sharedstatedir localstatedir includedir \
1367		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368		libdir localedir mandir
1369do
1370  eval ac_val=\$$ac_var
1371  # Remove trailing slashes.
1372  case $ac_val in
1373    */ )
1374      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375      eval $ac_var=\$ac_val;;
1376  esac
1377  # Be sure to have absolute directory names.
1378  case $ac_val in
1379    [\\/$]* | ?:[\\/]* )  continue;;
1380    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1381  esac
1382  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1383done
1384
1385# There might be people who depend on the old broken behavior: `$host'
1386# used to hold the argument of --host etc.
1387# FIXME: To remove some day.
1388build=$build_alias
1389host=$host_alias
1390target=$target_alias
1391
1392# FIXME: To remove some day.
1393if test "x$host_alias" != x; then
1394  if test "x$build_alias" = x; then
1395    cross_compiling=maybe
1396  elif test "x$build_alias" != "x$host_alias"; then
1397    cross_compiling=yes
1398  fi
1399fi
1400
1401ac_tool_prefix=
1402test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403
1404test "$silent" = yes && exec 6>/dev/null
1405
1406
1407ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408ac_ls_di=`ls -di .` &&
1409ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410  as_fn_error $? "working directory cannot be determined"
1411test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412  as_fn_error $? "pwd does not report name of working directory"
1413
1414
1415# Find the source files, if location was not specified.
1416if test -z "$srcdir"; then
1417  ac_srcdir_defaulted=yes
1418  # Try the directory containing this script, then the parent directory.
1419  ac_confdir=`$as_dirname -- "$as_myself" ||
1420$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421	 X"$as_myself" : 'X\(//\)[^/]' \| \
1422	 X"$as_myself" : 'X\(//\)$' \| \
1423	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424$as_echo X"$as_myself" |
1425    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426	    s//\1/
1427	    q
1428	  }
1429	  /^X\(\/\/\)[^/].*/{
1430	    s//\1/
1431	    q
1432	  }
1433	  /^X\(\/\/\)$/{
1434	    s//\1/
1435	    q
1436	  }
1437	  /^X\(\/\).*/{
1438	    s//\1/
1439	    q
1440	  }
1441	  s/.*/./; q'`
1442  srcdir=$ac_confdir
1443  if test ! -r "$srcdir/$ac_unique_file"; then
1444    srcdir=..
1445  fi
1446else
1447  ac_srcdir_defaulted=no
1448fi
1449if test ! -r "$srcdir/$ac_unique_file"; then
1450  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1452fi
1453ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454ac_abs_confdir=`(
1455	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1456	pwd)`
1457# When building in place, set srcdir=.
1458if test "$ac_abs_confdir" = "$ac_pwd"; then
1459  srcdir=.
1460fi
1461# Remove unnecessary trailing slashes from srcdir.
1462# Double slashes in file names in object file debugging info
1463# mess up M-x gdb in Emacs.
1464case $srcdir in
1465*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466esac
1467for ac_var in $ac_precious_vars; do
1468  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469  eval ac_env_${ac_var}_value=\$${ac_var}
1470  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472done
1473
1474#
1475# Report the --help message.
1476#
1477if test "$ac_init_help" = "long"; then
1478  # Omit some internal or obsolete options to make the list less imposing.
1479  # This message is too long to be a string in the A/UX 3.1 sh.
1480  cat <<_ACEOF
1481\`configure' configures this package to adapt to many kinds of systems.
1482
1483Usage: $0 [OPTION]... [VAR=VALUE]...
1484
1485To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486VAR=VALUE.  See below for descriptions of some of the useful variables.
1487
1488Defaults for the options are specified in brackets.
1489
1490Configuration:
1491  -h, --help              display this help and exit
1492      --help=short        display options specific to this package
1493      --help=recursive    display the short help of all the included packages
1494  -V, --version           display version information and exit
1495  -q, --quiet, --silent   do not print \`checking ...' messages
1496      --cache-file=FILE   cache test results in FILE [disabled]
1497  -C, --config-cache      alias for \`--cache-file=config.cache'
1498  -n, --no-create         do not create output files
1499      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1500
1501Installation directories:
1502  --prefix=PREFIX         install architecture-independent files in PREFIX
1503                          [$ac_default_prefix]
1504  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1505                          [PREFIX]
1506
1507By default, \`make install' will install all the files in
1508\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1509an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510for instance \`--prefix=\$HOME'.
1511
1512For better control, use the options below.
1513
1514Fine tuning of the installation directories:
1515  --bindir=DIR            user executables [EPREFIX/bin]
1516  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1517  --libexecdir=DIR        program executables [EPREFIX/libexec]
1518  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1519  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1520  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1521  --libdir=DIR            object code libraries [EPREFIX/lib]
1522  --includedir=DIR        C header files [PREFIX/include]
1523  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1524  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1525  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1526  --infodir=DIR           info documentation [DATAROOTDIR/info]
1527  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1528  --mandir=DIR            man documentation [DATAROOTDIR/man]
1529  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1530  --htmldir=DIR           html documentation [DOCDIR]
1531  --dvidir=DIR            dvi documentation [DOCDIR]
1532  --pdfdir=DIR            pdf documentation [DOCDIR]
1533  --psdir=DIR             ps documentation [DOCDIR]
1534_ACEOF
1535
1536  cat <<\_ACEOF
1537
1538System types:
1539  --build=BUILD     configure for building on BUILD [guessed]
1540  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1541  --target=TARGET   configure for building compilers for TARGET [HOST]
1542_ACEOF
1543fi
1544
1545if test -n "$ac_init_help"; then
1546
1547  cat <<\_ACEOF
1548
1549Optional Features:
1550  --disable-option-checking  ignore unrecognized --enable/--with options
1551  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1552  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1553  --enable-layout=LAYOUT
1554  --enable-experimental-libtool Use experimental custom libtool
1555  --enable-shared[=PKGS]  build shared libraries [default=yes]
1556  --enable-static[=PKGS]  build static libraries [default=yes]
1557  --enable-fast-install[=PKGS]
1558                          optimize for fast installation [default=yes]
1559  --disable-libtool-lock  avoid locking (might break parallel builds)
1560  --enable-debug          Turn on debugging and compile time warnings
1561  --enable-maintainer-mode  Turn on debugging and compile time warnings
1562  --enable-profile        Turn on profiling for the build (GCC)
1563  --enable-pool-debug[=yes|no|verbose|verbose-alloc|lifetime|owner|all]    Turn on pools debugging
1564  --enable-malloc-debug   Switch on malloc_debug for BeOS
1565  --disable-lfs           Disable large file support on 32-bit platforms
1566  --enable-nonportable-atomics  Use optimized atomic code which may produce nonportable binaries
1567  --enable-threads        Enable threading support in APR.
1568  --enable-posix-shm      Use POSIX shared memory (shm_open) if available
1569  --enable-allocator-uses-mmap    Use mmap in apr_allocator instead of malloc
1570  --disable-dso           Disable DSO support
1571  --enable-other-child    Enable reliable child processes
1572  --disable-ipv6          Disable IPv6 support in APR.
1573
1574Optional Packages:
1575  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1576  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1577  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1578                          both]
1579  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1580  --with-sysroot=DIR Search for dependent libraries within DIR
1581                        (or the compiler's sysroot if not specified).
1582  --with-installbuilddir=DIR location to store APR build files (defaults to '${datadir}/build')
1583  --without-libtool       avoid using libtool to link the library
1584  --with-efence[=DIR]     path to Electric Fence installation
1585  --with-sendfile         Override decision to use sendfile
1586  --with-egd[=DIR]        use EGD-compatible socket
1587  --with-devrandom[=DEV]  use /dev/random or compatible [searches by default]
1588
1589Some influential environment variables:
1590  CC          C compiler command
1591  CFLAGS      C compiler flags
1592  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1593              nonstandard directory <lib dir>
1594  LIBS        libraries to pass to the linker, e.g. -l<library>
1595  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1596              you have headers in a nonstandard directory <include dir>
1597  CPP         C preprocessor
1598
1599Use these variables to override the choices made by `configure' or to help
1600it to find libraries and programs with nonstandard names/locations.
1601
1602Report bugs to the package provider.
1603_ACEOF
1604ac_status=$?
1605fi
1606
1607if test "$ac_init_help" = "recursive"; then
1608  # If there are subdirs, report their specific --help.
1609  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610    test -d "$ac_dir" ||
1611      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1612      continue
1613    ac_builddir=.
1614
1615case "$ac_dir" in
1616.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617*)
1618  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1619  # A ".." for each directory in $ac_dir_suffix.
1620  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1621  case $ac_top_builddir_sub in
1622  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624  esac ;;
1625esac
1626ac_abs_top_builddir=$ac_pwd
1627ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628# for backward compatibility:
1629ac_top_builddir=$ac_top_build_prefix
1630
1631case $srcdir in
1632  .)  # We are building in place.
1633    ac_srcdir=.
1634    ac_top_srcdir=$ac_top_builddir_sub
1635    ac_abs_top_srcdir=$ac_pwd ;;
1636  [\\/]* | ?:[\\/]* )  # Absolute name.
1637    ac_srcdir=$srcdir$ac_dir_suffix;
1638    ac_top_srcdir=$srcdir
1639    ac_abs_top_srcdir=$srcdir ;;
1640  *) # Relative name.
1641    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642    ac_top_srcdir=$ac_top_build_prefix$srcdir
1643    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1644esac
1645ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1646
1647    cd "$ac_dir" || { ac_status=$?; continue; }
1648    # Check for guested configure.
1649    if test -f "$ac_srcdir/configure.gnu"; then
1650      echo &&
1651      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652    elif test -f "$ac_srcdir/configure"; then
1653      echo &&
1654      $SHELL "$ac_srcdir/configure" --help=recursive
1655    else
1656      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1657    fi || ac_status=$?
1658    cd "$ac_pwd" || { ac_status=$?; break; }
1659  done
1660fi
1661
1662test -n "$ac_init_help" && exit $ac_status
1663if $ac_init_version; then
1664  cat <<\_ACEOF
1665configure
1666generated by GNU Autoconf 2.69
1667
1668Copyright (C) 2012 Free Software Foundation, Inc.
1669This configure script is free software; the Free Software Foundation
1670gives unlimited permission to copy, distribute and modify it.
1671_ACEOF
1672  exit
1673fi
1674
1675## ------------------------ ##
1676## Autoconf initialization. ##
1677## ------------------------ ##
1678
1679# ac_fn_c_try_compile LINENO
1680# --------------------------
1681# Try to compile conftest.$ac_ext, and return whether this succeeded.
1682ac_fn_c_try_compile ()
1683{
1684  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685  rm -f conftest.$ac_objext
1686  if { { ac_try="$ac_compile"
1687case "(($ac_try" in
1688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689  *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692$as_echo "$ac_try_echo"; } >&5
1693  (eval "$ac_compile") 2>conftest.err
1694  ac_status=$?
1695  if test -s conftest.err; then
1696    grep -v '^ *+' conftest.err >conftest.er1
1697    cat conftest.er1 >&5
1698    mv -f conftest.er1 conftest.err
1699  fi
1700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701  test $ac_status = 0; } && {
1702	 test -z "$ac_c_werror_flag" ||
1703	 test ! -s conftest.err
1704       } && test -s conftest.$ac_objext; then :
1705  ac_retval=0
1706else
1707  $as_echo "$as_me: failed program was:" >&5
1708sed 's/^/| /' conftest.$ac_ext >&5
1709
1710	ac_retval=1
1711fi
1712  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713  as_fn_set_status $ac_retval
1714
1715} # ac_fn_c_try_compile
1716
1717# ac_fn_c_try_cpp LINENO
1718# ----------------------
1719# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1720ac_fn_c_try_cpp ()
1721{
1722  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723  if { { ac_try="$ac_cpp conftest.$ac_ext"
1724case "(($ac_try" in
1725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726  *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729$as_echo "$ac_try_echo"; } >&5
1730  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1731  ac_status=$?
1732  if test -s conftest.err; then
1733    grep -v '^ *+' conftest.err >conftest.er1
1734    cat conftest.er1 >&5
1735    mv -f conftest.er1 conftest.err
1736  fi
1737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738  test $ac_status = 0; } > conftest.i && {
1739	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1740	 test ! -s conftest.err
1741       }; then :
1742  ac_retval=0
1743else
1744  $as_echo "$as_me: failed program was:" >&5
1745sed 's/^/| /' conftest.$ac_ext >&5
1746
1747    ac_retval=1
1748fi
1749  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750  as_fn_set_status $ac_retval
1751
1752} # ac_fn_c_try_cpp
1753
1754# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1755# -------------------------------------------------------
1756# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1757# the include files in INCLUDES and setting the cache variable VAR
1758# accordingly.
1759ac_fn_c_check_header_mongrel ()
1760{
1761  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762  if eval \${$3+:} false; then :
1763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764$as_echo_n "checking for $2... " >&6; }
1765if eval \${$3+:} false; then :
1766  $as_echo_n "(cached) " >&6
1767fi
1768eval ac_res=\$$3
1769	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770$as_echo "$ac_res" >&6; }
1771else
1772  # Is the header compilable?
1773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1774$as_echo_n "checking $2 usability... " >&6; }
1775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776/* end confdefs.h.  */
1777$4
1778#include <$2>
1779_ACEOF
1780if ac_fn_c_try_compile "$LINENO"; then :
1781  ac_header_compiler=yes
1782else
1783  ac_header_compiler=no
1784fi
1785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1787$as_echo "$ac_header_compiler" >&6; }
1788
1789# Is the header present?
1790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1791$as_echo_n "checking $2 presence... " >&6; }
1792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793/* end confdefs.h.  */
1794#include <$2>
1795_ACEOF
1796if ac_fn_c_try_cpp "$LINENO"; then :
1797  ac_header_preproc=yes
1798else
1799  ac_header_preproc=no
1800fi
1801rm -f conftest.err conftest.i conftest.$ac_ext
1802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1803$as_echo "$ac_header_preproc" >&6; }
1804
1805# So?  What about this header?
1806case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1807  yes:no: )
1808    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1809$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1810    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1811$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1812    ;;
1813  no:yes:* )
1814    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1815$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1816    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1817$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1818    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1819$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1820    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1821$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1822    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1823$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1824    ;;
1825esac
1826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827$as_echo_n "checking for $2... " >&6; }
1828if eval \${$3+:} false; then :
1829  $as_echo_n "(cached) " >&6
1830else
1831  eval "$3=\$ac_header_compiler"
1832fi
1833eval ac_res=\$$3
1834	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835$as_echo "$ac_res" >&6; }
1836fi
1837  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838
1839} # ac_fn_c_check_header_mongrel
1840
1841# ac_fn_c_try_run LINENO
1842# ----------------------
1843# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1844# that executables *can* be run.
1845ac_fn_c_try_run ()
1846{
1847  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848  if { { ac_try="$ac_link"
1849case "(($ac_try" in
1850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851  *) ac_try_echo=$ac_try;;
1852esac
1853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854$as_echo "$ac_try_echo"; } >&5
1855  (eval "$ac_link") 2>&5
1856  ac_status=$?
1857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1859  { { case "(($ac_try" in
1860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861  *) ac_try_echo=$ac_try;;
1862esac
1863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864$as_echo "$ac_try_echo"; } >&5
1865  (eval "$ac_try") 2>&5
1866  ac_status=$?
1867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868  test $ac_status = 0; }; }; then :
1869  ac_retval=0
1870else
1871  $as_echo "$as_me: program exited with status $ac_status" >&5
1872       $as_echo "$as_me: failed program was:" >&5
1873sed 's/^/| /' conftest.$ac_ext >&5
1874
1875       ac_retval=$ac_status
1876fi
1877  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1878  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879  as_fn_set_status $ac_retval
1880
1881} # ac_fn_c_try_run
1882
1883# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1884# -------------------------------------------------------
1885# Tests whether HEADER exists and can be compiled using the include files in
1886# INCLUDES, setting the cache variable VAR accordingly.
1887ac_fn_c_check_header_compile ()
1888{
1889  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891$as_echo_n "checking for $2... " >&6; }
1892if eval \${$3+:} false; then :
1893  $as_echo_n "(cached) " >&6
1894else
1895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896/* end confdefs.h.  */
1897$4
1898#include <$2>
1899_ACEOF
1900if ac_fn_c_try_compile "$LINENO"; then :
1901  eval "$3=yes"
1902else
1903  eval "$3=no"
1904fi
1905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906fi
1907eval ac_res=\$$3
1908	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909$as_echo "$ac_res" >&6; }
1910  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911
1912} # ac_fn_c_check_header_compile
1913
1914# ac_fn_c_try_link LINENO
1915# -----------------------
1916# Try to link conftest.$ac_ext, and return whether this succeeded.
1917ac_fn_c_try_link ()
1918{
1919  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920  rm -f conftest.$ac_objext conftest$ac_exeext
1921  if { { ac_try="$ac_link"
1922case "(($ac_try" in
1923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924  *) ac_try_echo=$ac_try;;
1925esac
1926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927$as_echo "$ac_try_echo"; } >&5
1928  (eval "$ac_link") 2>conftest.err
1929  ac_status=$?
1930  if test -s conftest.err; then
1931    grep -v '^ *+' conftest.err >conftest.er1
1932    cat conftest.er1 >&5
1933    mv -f conftest.er1 conftest.err
1934  fi
1935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936  test $ac_status = 0; } && {
1937	 test -z "$ac_c_werror_flag" ||
1938	 test ! -s conftest.err
1939       } && test -s conftest$ac_exeext && {
1940	 test "$cross_compiling" = yes ||
1941	 test -x conftest$ac_exeext
1942       }; then :
1943  ac_retval=0
1944else
1945  $as_echo "$as_me: failed program was:" >&5
1946sed 's/^/| /' conftest.$ac_ext >&5
1947
1948	ac_retval=1
1949fi
1950  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1951  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1952  # interfere with the next link command; also delete a directory that is
1953  # left behind by Apple's compiler.  We do this before executing the actions.
1954  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1955  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956  as_fn_set_status $ac_retval
1957
1958} # ac_fn_c_try_link
1959
1960# ac_fn_c_check_func LINENO FUNC VAR
1961# ----------------------------------
1962# Tests whether FUNC exists, setting the cache variable VAR accordingly
1963ac_fn_c_check_func ()
1964{
1965  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967$as_echo_n "checking for $2... " >&6; }
1968if eval \${$3+:} false; then :
1969  $as_echo_n "(cached) " >&6
1970else
1971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972/* end confdefs.h.  */
1973/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1974   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1975#define $2 innocuous_$2
1976
1977/* System header to define __stub macros and hopefully few prototypes,
1978    which can conflict with char $2 (); below.
1979    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1980    <limits.h> exists even on freestanding compilers.  */
1981
1982#ifdef __STDC__
1983# include <limits.h>
1984#else
1985# include <assert.h>
1986#endif
1987
1988#undef $2
1989
1990/* Override any GCC internal prototype to avoid an error.
1991   Use char because int might match the return type of a GCC
1992   builtin and then its argument prototype would still apply.  */
1993#ifdef __cplusplus
1994extern "C"
1995#endif
1996char $2 ();
1997/* The GNU C library defines this for functions which it implements
1998    to always fail with ENOSYS.  Some functions are actually named
1999    something starting with __ and the normal name is an alias.  */
2000#if defined __stub_$2 || defined __stub___$2
2001choke me
2002#endif
2003
2004int
2005main ()
2006{
2007return $2 ();
2008  ;
2009  return 0;
2010}
2011_ACEOF
2012if ac_fn_c_try_link "$LINENO"; then :
2013  eval "$3=yes"
2014else
2015  eval "$3=no"
2016fi
2017rm -f core conftest.err conftest.$ac_objext \
2018    conftest$ac_exeext conftest.$ac_ext
2019fi
2020eval ac_res=\$$3
2021	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022$as_echo "$ac_res" >&6; }
2023  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024
2025} # ac_fn_c_check_func
2026
2027# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2028# -------------------------------------------
2029# Tests whether TYPE exists after having included INCLUDES, setting cache
2030# variable VAR accordingly.
2031ac_fn_c_check_type ()
2032{
2033  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2035$as_echo_n "checking for $2... " >&6; }
2036if eval \${$3+:} false; then :
2037  $as_echo_n "(cached) " >&6
2038else
2039  eval "$3=no"
2040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041/* end confdefs.h.  */
2042$4
2043int
2044main ()
2045{
2046if (sizeof ($2))
2047	 return 0;
2048  ;
2049  return 0;
2050}
2051_ACEOF
2052if ac_fn_c_try_compile "$LINENO"; then :
2053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054/* end confdefs.h.  */
2055$4
2056int
2057main ()
2058{
2059if (sizeof (($2)))
2060	    return 0;
2061  ;
2062  return 0;
2063}
2064_ACEOF
2065if ac_fn_c_try_compile "$LINENO"; then :
2066
2067else
2068  eval "$3=yes"
2069fi
2070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071fi
2072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073fi
2074eval ac_res=\$$3
2075	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076$as_echo "$ac_res" >&6; }
2077  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078
2079} # ac_fn_c_check_type
2080
2081# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2082# --------------------------------------------
2083# Tries to find the compile-time value of EXPR in a program that includes
2084# INCLUDES, setting VAR accordingly. Returns whether the value could be
2085# computed
2086ac_fn_c_compute_int ()
2087{
2088  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089  if test "$cross_compiling" = yes; then
2090    # Depending upon the size, compute the lo and hi bounds.
2091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h.  */
2093$4
2094int
2095main ()
2096{
2097static int test_array [1 - 2 * !(($2) >= 0)];
2098test_array [0] = 0;
2099return test_array [0];
2100
2101  ;
2102  return 0;
2103}
2104_ACEOF
2105if ac_fn_c_try_compile "$LINENO"; then :
2106  ac_lo=0 ac_mid=0
2107  while :; do
2108    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109/* end confdefs.h.  */
2110$4
2111int
2112main ()
2113{
2114static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2115test_array [0] = 0;
2116return test_array [0];
2117
2118  ;
2119  return 0;
2120}
2121_ACEOF
2122if ac_fn_c_try_compile "$LINENO"; then :
2123  ac_hi=$ac_mid; break
2124else
2125  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2126			if test $ac_lo -le $ac_mid; then
2127			  ac_lo= ac_hi=
2128			  break
2129			fi
2130			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2131fi
2132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133  done
2134else
2135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136/* end confdefs.h.  */
2137$4
2138int
2139main ()
2140{
2141static int test_array [1 - 2 * !(($2) < 0)];
2142test_array [0] = 0;
2143return test_array [0];
2144
2145  ;
2146  return 0;
2147}
2148_ACEOF
2149if ac_fn_c_try_compile "$LINENO"; then :
2150  ac_hi=-1 ac_mid=-1
2151  while :; do
2152    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153/* end confdefs.h.  */
2154$4
2155int
2156main ()
2157{
2158static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2159test_array [0] = 0;
2160return test_array [0];
2161
2162  ;
2163  return 0;
2164}
2165_ACEOF
2166if ac_fn_c_try_compile "$LINENO"; then :
2167  ac_lo=$ac_mid; break
2168else
2169  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2170			if test $ac_mid -le $ac_hi; then
2171			  ac_lo= ac_hi=
2172			  break
2173			fi
2174			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2175fi
2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177  done
2178else
2179  ac_lo= ac_hi=
2180fi
2181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182fi
2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184# Binary search between lo and hi bounds.
2185while test "x$ac_lo" != "x$ac_hi"; do
2186  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188/* end confdefs.h.  */
2189$4
2190int
2191main ()
2192{
2193static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2194test_array [0] = 0;
2195return test_array [0];
2196
2197  ;
2198  return 0;
2199}
2200_ACEOF
2201if ac_fn_c_try_compile "$LINENO"; then :
2202  ac_hi=$ac_mid
2203else
2204  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2205fi
2206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207done
2208case $ac_lo in #((
2209?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2210'') ac_retval=1 ;;
2211esac
2212  else
2213    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214/* end confdefs.h.  */
2215$4
2216static long int longval () { return $2; }
2217static unsigned long int ulongval () { return $2; }
2218#include <stdio.h>
2219#include <stdlib.h>
2220int
2221main ()
2222{
2223
2224  FILE *f = fopen ("conftest.val", "w");
2225  if (! f)
2226    return 1;
2227  if (($2) < 0)
2228    {
2229      long int i = longval ();
2230      if (i != ($2))
2231	return 1;
2232      fprintf (f, "%ld", i);
2233    }
2234  else
2235    {
2236      unsigned long int i = ulongval ();
2237      if (i != ($2))
2238	return 1;
2239      fprintf (f, "%lu", i);
2240    }
2241  /* Do not output a trailing newline, as this causes \r\n confusion
2242     on some platforms.  */
2243  return ferror (f) || fclose (f) != 0;
2244
2245  ;
2246  return 0;
2247}
2248_ACEOF
2249if ac_fn_c_try_run "$LINENO"; then :
2250  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2251else
2252  ac_retval=1
2253fi
2254rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2255  conftest.$ac_objext conftest.beam conftest.$ac_ext
2256rm -f conftest.val
2257
2258  fi
2259  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260  as_fn_set_status $ac_retval
2261
2262} # ac_fn_c_compute_int
2263
2264# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2265# ---------------------------------------------
2266# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2267# accordingly.
2268ac_fn_c_check_decl ()
2269{
2270  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2271  as_decl_name=`echo $2|sed 's/ *(.*//'`
2272  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2274$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2275if eval \${$3+:} false; then :
2276  $as_echo_n "(cached) " >&6
2277else
2278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279/* end confdefs.h.  */
2280$4
2281int
2282main ()
2283{
2284#ifndef $as_decl_name
2285#ifdef __cplusplus
2286  (void) $as_decl_use;
2287#else
2288  (void) $as_decl_name;
2289#endif
2290#endif
2291
2292  ;
2293  return 0;
2294}
2295_ACEOF
2296if ac_fn_c_try_compile "$LINENO"; then :
2297  eval "$3=yes"
2298else
2299  eval "$3=no"
2300fi
2301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302fi
2303eval ac_res=\$$3
2304	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305$as_echo "$ac_res" >&6; }
2306  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2307
2308} # ac_fn_c_check_decl
2309
2310# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2311# ----------------------------------------------------
2312# Tries to find if the field MEMBER exists in type AGGR, after including
2313# INCLUDES, setting cache variable VAR accordingly.
2314ac_fn_c_check_member ()
2315{
2316  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2318$as_echo_n "checking for $2.$3... " >&6; }
2319if eval \${$4+:} false; then :
2320  $as_echo_n "(cached) " >&6
2321else
2322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323/* end confdefs.h.  */
2324$5
2325int
2326main ()
2327{
2328static $2 ac_aggr;
2329if (ac_aggr.$3)
2330return 0;
2331  ;
2332  return 0;
2333}
2334_ACEOF
2335if ac_fn_c_try_compile "$LINENO"; then :
2336  eval "$4=yes"
2337else
2338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339/* end confdefs.h.  */
2340$5
2341int
2342main ()
2343{
2344static $2 ac_aggr;
2345if (sizeof ac_aggr.$3)
2346return 0;
2347  ;
2348  return 0;
2349}
2350_ACEOF
2351if ac_fn_c_try_compile "$LINENO"; then :
2352  eval "$4=yes"
2353else
2354  eval "$4=no"
2355fi
2356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357fi
2358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359fi
2360eval ac_res=\$$4
2361	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2362$as_echo "$ac_res" >&6; }
2363  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2364
2365} # ac_fn_c_check_member
2366cat >config.log <<_ACEOF
2367This file contains any messages produced by compilers while
2368running configure, to aid debugging if configure makes a mistake.
2369
2370It was created by $as_me, which was
2371generated by GNU Autoconf 2.69.  Invocation command line was
2372
2373  $ $0 $@
2374
2375_ACEOF
2376exec 5>>config.log
2377{
2378cat <<_ASUNAME
2379## --------- ##
2380## Platform. ##
2381## --------- ##
2382
2383hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2384uname -m = `(uname -m) 2>/dev/null || echo unknown`
2385uname -r = `(uname -r) 2>/dev/null || echo unknown`
2386uname -s = `(uname -s) 2>/dev/null || echo unknown`
2387uname -v = `(uname -v) 2>/dev/null || echo unknown`
2388
2389/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2390/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2391
2392/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2393/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2394/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2395/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2396/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2397/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2398/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2399
2400_ASUNAME
2401
2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403for as_dir in $PATH
2404do
2405  IFS=$as_save_IFS
2406  test -z "$as_dir" && as_dir=.
2407    $as_echo "PATH: $as_dir"
2408  done
2409IFS=$as_save_IFS
2410
2411} >&5
2412
2413cat >&5 <<_ACEOF
2414
2415
2416## ----------- ##
2417## Core tests. ##
2418## ----------- ##
2419
2420_ACEOF
2421
2422
2423# Keep a trace of the command line.
2424# Strip out --no-create and --no-recursion so they do not pile up.
2425# Strip out --silent because we don't want to record it for future runs.
2426# Also quote any args containing shell meta-characters.
2427# Make two passes to allow for proper duplicate-argument suppression.
2428ac_configure_args=
2429ac_configure_args0=
2430ac_configure_args1=
2431ac_must_keep_next=false
2432for ac_pass in 1 2
2433do
2434  for ac_arg
2435  do
2436    case $ac_arg in
2437    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2438    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2439    | -silent | --silent | --silen | --sile | --sil)
2440      continue ;;
2441    *\'*)
2442      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2443    esac
2444    case $ac_pass in
2445    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2446    2)
2447      as_fn_append ac_configure_args1 " '$ac_arg'"
2448      if test $ac_must_keep_next = true; then
2449	ac_must_keep_next=false # Got value, back to normal.
2450      else
2451	case $ac_arg in
2452	  *=* | --config-cache | -C | -disable-* | --disable-* \
2453	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2454	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2455	  | -with-* | --with-* | -without-* | --without-* | --x)
2456	    case "$ac_configure_args0 " in
2457	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2458	    esac
2459	    ;;
2460	  -* ) ac_must_keep_next=true ;;
2461	esac
2462      fi
2463      as_fn_append ac_configure_args " '$ac_arg'"
2464      ;;
2465    esac
2466  done
2467done
2468{ ac_configure_args0=; unset ac_configure_args0;}
2469{ ac_configure_args1=; unset ac_configure_args1;}
2470
2471# When interrupted or exit'd, cleanup temporary files, and complete
2472# config.log.  We remove comments because anyway the quotes in there
2473# would cause problems or look ugly.
2474# WARNING: Use '\'' to represent an apostrophe within the trap.
2475# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2476trap 'exit_status=$?
2477  # Save into config.log some information that might help in debugging.
2478  {
2479    echo
2480
2481    $as_echo "## ---------------- ##
2482## Cache variables. ##
2483## ---------------- ##"
2484    echo
2485    # The following way of writing the cache mishandles newlines in values,
2486(
2487  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2488    eval ac_val=\$$ac_var
2489    case $ac_val in #(
2490    *${as_nl}*)
2491      case $ac_var in #(
2492      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2493$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2494      esac
2495      case $ac_var in #(
2496      _ | IFS | as_nl) ;; #(
2497      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2498      *) { eval $ac_var=; unset $ac_var;} ;;
2499      esac ;;
2500    esac
2501  done
2502  (set) 2>&1 |
2503    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2504    *${as_nl}ac_space=\ *)
2505      sed -n \
2506	"s/'\''/'\''\\\\'\'''\''/g;
2507	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2508      ;; #(
2509    *)
2510      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2511      ;;
2512    esac |
2513    sort
2514)
2515    echo
2516
2517    $as_echo "## ----------------- ##
2518## Output variables. ##
2519## ----------------- ##"
2520    echo
2521    for ac_var in $ac_subst_vars
2522    do
2523      eval ac_val=\$$ac_var
2524      case $ac_val in
2525      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2526      esac
2527      $as_echo "$ac_var='\''$ac_val'\''"
2528    done | sort
2529    echo
2530
2531    if test -n "$ac_subst_files"; then
2532      $as_echo "## ------------------- ##
2533## File substitutions. ##
2534## ------------------- ##"
2535      echo
2536      for ac_var in $ac_subst_files
2537      do
2538	eval ac_val=\$$ac_var
2539	case $ac_val in
2540	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2541	esac
2542	$as_echo "$ac_var='\''$ac_val'\''"
2543      done | sort
2544      echo
2545    fi
2546
2547    if test -s confdefs.h; then
2548      $as_echo "## ----------- ##
2549## confdefs.h. ##
2550## ----------- ##"
2551      echo
2552      cat confdefs.h
2553      echo
2554    fi
2555    test "$ac_signal" != 0 &&
2556      $as_echo "$as_me: caught signal $ac_signal"
2557    $as_echo "$as_me: exit $exit_status"
2558  } >&5
2559  rm -f core *.core core.conftest.* &&
2560    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2561    exit $exit_status
2562' 0
2563for ac_signal in 1 2 13 15; do
2564  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2565done
2566ac_signal=0
2567
2568# confdefs.h avoids OS command line length limits that DEFS can exceed.
2569rm -f -r conftest* confdefs.h
2570
2571$as_echo "/* confdefs.h */" > confdefs.h
2572
2573# Predefined preprocessor variables.
2574
2575cat >>confdefs.h <<_ACEOF
2576#define PACKAGE_NAME "$PACKAGE_NAME"
2577_ACEOF
2578
2579cat >>confdefs.h <<_ACEOF
2580#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2581_ACEOF
2582
2583cat >>confdefs.h <<_ACEOF
2584#define PACKAGE_VERSION "$PACKAGE_VERSION"
2585_ACEOF
2586
2587cat >>confdefs.h <<_ACEOF
2588#define PACKAGE_STRING "$PACKAGE_STRING"
2589_ACEOF
2590
2591cat >>confdefs.h <<_ACEOF
2592#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2593_ACEOF
2594
2595cat >>confdefs.h <<_ACEOF
2596#define PACKAGE_URL "$PACKAGE_URL"
2597_ACEOF
2598
2599
2600# Let the site file select an alternate cache file if it wants to.
2601# Prefer an explicitly selected file to automatically selected ones.
2602ac_site_file1=NONE
2603ac_site_file2=NONE
2604if test -n "$CONFIG_SITE"; then
2605  # We do not want a PATH search for config.site.
2606  case $CONFIG_SITE in #((
2607    -*)  ac_site_file1=./$CONFIG_SITE;;
2608    */*) ac_site_file1=$CONFIG_SITE;;
2609    *)   ac_site_file1=./$CONFIG_SITE;;
2610  esac
2611elif test "x$prefix" != xNONE; then
2612  ac_site_file1=$prefix/share/config.site
2613  ac_site_file2=$prefix/etc/config.site
2614else
2615  ac_site_file1=$ac_default_prefix/share/config.site
2616  ac_site_file2=$ac_default_prefix/etc/config.site
2617fi
2618for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2619do
2620  test "x$ac_site_file" = xNONE && continue
2621  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2622    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2623$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2624    sed 's/^/| /' "$ac_site_file" >&5
2625    . "$ac_site_file" \
2626      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2627$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2628as_fn_error $? "failed to load site script $ac_site_file
2629See \`config.log' for more details" "$LINENO" 5; }
2630  fi
2631done
2632
2633if test -r "$cache_file"; then
2634  # Some versions of bash will fail to source /dev/null (special files
2635  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2636  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2637    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2638$as_echo "$as_me: loading cache $cache_file" >&6;}
2639    case $cache_file in
2640      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2641      *)                      . "./$cache_file";;
2642    esac
2643  fi
2644else
2645  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2646$as_echo "$as_me: creating cache $cache_file" >&6;}
2647  >$cache_file
2648fi
2649
2650# Check that the precious variables saved in the cache have kept the same
2651# value.
2652ac_cache_corrupted=false
2653for ac_var in $ac_precious_vars; do
2654  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2655  eval ac_new_set=\$ac_env_${ac_var}_set
2656  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2657  eval ac_new_val=\$ac_env_${ac_var}_value
2658  case $ac_old_set,$ac_new_set in
2659    set,)
2660      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2661$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2662      ac_cache_corrupted=: ;;
2663    ,set)
2664      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2665$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2666      ac_cache_corrupted=: ;;
2667    ,);;
2668    *)
2669      if test "x$ac_old_val" != "x$ac_new_val"; then
2670	# differences in whitespace do not lead to failure.
2671	ac_old_val_w=`echo x $ac_old_val`
2672	ac_new_val_w=`echo x $ac_new_val`
2673	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2674	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2675$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2676	  ac_cache_corrupted=:
2677	else
2678	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2679$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2680	  eval $ac_var=\$ac_old_val
2681	fi
2682	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2683$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2684	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2685$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2686      fi;;
2687  esac
2688  # Pass precious variables to config.status.
2689  if test "$ac_new_set" = set; then
2690    case $ac_new_val in
2691    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2692    *) ac_arg=$ac_var=$ac_new_val ;;
2693    esac
2694    case " $ac_configure_args " in
2695      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2696      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2697    esac
2698  fi
2699done
2700if $ac_cache_corrupted; then
2701  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2703  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2704$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2705  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2706fi
2707## -------------------- ##
2708## Main body of script. ##
2709## -------------------- ##
2710
2711ac_ext=c
2712ac_cpp='$CPP $CPPFLAGS'
2713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2715ac_compiler_gnu=$ac_cv_c_compiler_gnu
2716
2717
2718ac_config_headers="$ac_config_headers include/arch/unix/apr_private.h"
2719
2720ac_aux_dir=
2721for ac_dir in build "$srcdir"/build; do
2722  if test -f "$ac_dir/install-sh"; then
2723    ac_aux_dir=$ac_dir
2724    ac_install_sh="$ac_aux_dir/install-sh -c"
2725    break
2726  elif test -f "$ac_dir/install.sh"; then
2727    ac_aux_dir=$ac_dir
2728    ac_install_sh="$ac_aux_dir/install.sh -c"
2729    break
2730  elif test -f "$ac_dir/shtool"; then
2731    ac_aux_dir=$ac_dir
2732    ac_install_sh="$ac_aux_dir/shtool install -c"
2733    break
2734  fi
2735done
2736if test -z "$ac_aux_dir"; then
2737  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2738fi
2739
2740# These three variables are undocumented and unsupported,
2741# and are intended to be withdrawn in a future Autoconf release.
2742# They can cause serious problems if a builder's source tree is in a directory
2743# whose full name contains unusual characters.
2744ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2745ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2746ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2905#
2906#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2907#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
2908#                 Foundation, Inc.
2909#   Written by Gordon Matzigkeit, 1996
2910#
2911# This file is free software; the Free Software Foundation gives
2912# unlimited permission to copy and/or distribute it, with or without
2913# modifications, as long as this notice is preserved.
2914
2915
2916
2917# serial 57 LT_INIT
2918
2919
2920# LT_PREREQ(VERSION)
2921# ------------------
2922# Complain and exit if this libtool version is less that VERSION.
2923
2924
2925
2926# _LT_CHECK_BUILDDIR
2927# ------------------
2928# Complain if the absolute build directory name contains unusual characters
2929
2930
2931
2932# LT_INIT([OPTIONS])
2933# ------------------
2934# LT_INIT
2935
2936# Old names:
2937# This is what autoupdate's m4 run will expand.  It fires
2938# the warning (with _au_warn_XXX), outputs it into the
2939# updated configure.ac (with AC_DIAGNOSE), and then outputs
2940# the replacement expansion.
2941
2942
2943# This is an auxiliary macro that is also run when
2944# autoupdate runs m4.  It simply calls m4_warning, but
2945# we need a wrapper so that each warning is emitted only
2946# once.  We break the quoting in m4_warning's argument in
2947# order to expand this macro's arguments, not AU_DEFUN's.
2948
2949
2950# Finally, this is the expansion that is picked up by
2951# autoconf.  It tells the user to run autoupdate, and
2952# then outputs the replacement expansion.  We do not care
2953# about autoupdate's warning because that contains
2954# information on what to do *after* running autoupdate.
2955
2956# This is what autoupdate's m4 run will expand.  It fires
2957# the warning (with _au_warn_XXX), outputs it into the
2958# updated configure.ac (with AC_DIAGNOSE), and then outputs
2959# the replacement expansion.
2960
2961
2962# This is an auxiliary macro that is also run when
2963# autoupdate runs m4.  It simply calls m4_warning, but
2964# we need a wrapper so that each warning is emitted only
2965# once.  We break the quoting in m4_warning's argument in
2966# order to expand this macro's arguments, not AU_DEFUN's.
2967
2968
2969# Finally, this is the expansion that is picked up by
2970# autoconf.  It tells the user to run autoupdate, and
2971# then outputs the replacement expansion.  We do not care
2972# about autoupdate's warning because that contains
2973# information on what to do *after* running autoupdate.
2974
2975
2976
2977# _LT_CC_BASENAME(CC)
2978# -------------------
2979# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
2980
2981
2982
2983# _LT_FILEUTILS_DEFAULTS
2984# ----------------------
2985# It is okay to use these file commands and assume they have been set
2986# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2987# _LT_FILEUTILS_DEFAULTS
2988
2989
2990# _LT_SETUP
2991# ---------
2992# _LT_SETUP
2993
2994
2995# _LT_PREPARE_SED_QUOTE_VARS
2996# --------------------------
2997# Define a few sed substitution that help us do robust quoting.
2998
2999
3000# _LT_PROG_LTMAIN
3001# ---------------
3002# Note that this code is called both from `configure', and `config.status'
3003# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
3004# `config.status' has no value for ac_aux_dir unless we are using Automake,
3005# so we pass a copy along to make sure it has a sensible value anyway.
3006# _LT_PROG_LTMAIN
3007
3008
3009## ------------------------------------- ##
3010## Accumulate code for creating libtool. ##
3011## ------------------------------------- ##
3012
3013# So that we can recreate a full libtool script including additional
3014# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
3015# in macros and then make a single call at the end using the `libtool'
3016# label.
3017
3018
3019# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
3020# ----------------------------------------
3021# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
3022
3023
3024# Initialize.
3025
3026
3027
3028# _LT_CONFIG_LIBTOOL([COMMANDS])
3029# ------------------------------
3030# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
3031
3032
3033# Initialize.
3034
3035
3036
3037# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
3038# -----------------------------------------------------
3039
3040
3041
3042# _LT_FORMAT_COMMENT([COMMENT])
3043# -----------------------------
3044# Add leading comment marks to the start of each line, and a trailing
3045# full-stop to the whole comment if one is not present already.
3046
3047
3048
3049
3050## ------------------------ ##
3051## FIXME: Eliminate VARNAME ##
3052## ------------------------ ##
3053
3054
3055# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
3056# -------------------------------------------------------------------
3057# CONFIGNAME is the name given to the value in the libtool script.
3058# VARNAME is the (base) name used in the configure script.
3059# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
3060# VARNAME.  Any other value will be used directly.
3061
3062
3063
3064# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
3065# --------------------------------------------------------
3066
3067
3068
3069# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
3070# ------------------------------------------------
3071
3072
3073
3074# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
3075# ---------------------------------------------------------
3076
3077
3078
3079# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
3080# --------------------------------------------------
3081
3082
3083
3084# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
3085# ---------------------------------------------------
3086
3087
3088
3089# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
3090# ---------------------------------------------------
3091
3092
3093
3094
3095# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
3096# ------------------------------------------------
3097
3098
3099
3100
3101# _LT_CONFIG_STATUS_DECLARE([VARNAME])
3102# ------------------------------------
3103# Quote a variable value, and forward it to `config.status' so that its
3104# declaration there will have the same value as in `configure'.  VARNAME
3105# must have a single quote delimited value for this to work.
3106
3107
3108
3109# _LT_CONFIG_STATUS_DECLARATIONS
3110# ------------------------------
3111# We delimit libtool config variables with single quotes, so when
3112# we write them to config.status, we have to be sure to quote all
3113# embedded single quotes properly.  In configure, this macro expands
3114# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
3115#
3116#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
3117
3118
3119
3120# _LT_LIBTOOL_TAGS
3121# ----------------
3122# Output comment and list of tags supported by the script
3123
3124
3125
3126# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
3127# -----------------------------------
3128# Extract the dictionary values for VARNAME (optionally with TAG) and
3129# expand to a commented shell variable setting:
3130#
3131#    # Some comment about what VAR is for.
3132#    visible_name=$lt_internal_name
3133
3134
3135
3136# _LT_LIBTOOL_CONFIG_VARS
3137# -----------------------
3138# Produce commented declarations of non-tagged libtool config variables
3139# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
3140# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
3141# section) are produced by _LT_LIBTOOL_TAG_VARS.
3142
3143
3144
3145# _LT_LIBTOOL_TAG_VARS(TAG)
3146# -------------------------
3147
3148
3149
3150# _LT_TAGVAR(VARNAME, [TAGNAME])
3151# ------------------------------
3152
3153
3154
3155# _LT_CONFIG_COMMANDS
3156# -------------------
3157# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
3158# variables for single and double quote escaping we saved from calls
3159# to _LT_DECL, we can put quote escaped variables declarations
3160# into `config.status', and then the shell code to quote escape them in
3161# for loops in `config.status'.  Finally, any additional code accumulated
3162# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
3163#_LT_CONFIG_COMMANDS
3164
3165
3166# Initialize.
3167
3168
3169# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
3170# ------------------------------------
3171# Generate a child script FILE with all initialization necessary to
3172# reuse the environment learned by the parent script, and make the
3173# file executable.  If COMMENT is supplied, it is inserted after the
3174# `#!' sequence but before initialization text begins.  After this
3175# macro, additional text can be appended to FILE to form the body of
3176# the child script.  The macro ends with non-zero status if the
3177# file could not be fully written (such as if the disk is full).
3178# _LT_GENERATED_FILE_INIT
3179
3180# LT_OUTPUT
3181# ---------
3182# This macro allows early generation of the libtool script (before
3183# AC_OUTPUT is called), incase it is used in configure for compilation
3184# tests.
3185# LT_OUTPUT
3186
3187
3188# _LT_CONFIG(TAG)
3189# ---------------
3190# If TAG is the built-in tag, create an initial libtool script with a
3191# default configuration from the untagged config vars.  Otherwise add code
3192# to config.status for appending the configuration named by TAG from the
3193# matching tagged config vars.
3194# _LT_CONFIG
3195
3196
3197# LT_SUPPORTED_TAG(TAG)
3198# ---------------------
3199# Trace this macro to discover what tags are supported by the libtool
3200# --tag option, using:
3201#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
3202
3203
3204
3205# C support is built-in for now
3206
3207
3208
3209
3210# LT_LANG(LANG)
3211# -------------
3212# Enable libtool support for the given language if not already enabled.
3213# LT_LANG
3214
3215
3216# _LT_LANG(LANGNAME)
3217# ------------------
3218# _LT_LANG
3219
3220
3221#m4_ifndef
3222
3223
3224# _LT_LANG_DEFAULT_CONFIG
3225# -----------------------
3226# _LT_LANG_DEFAULT_CONFIG
3227
3228# Obsolete macros:
3229# This is what autoupdate's m4 run will expand.  It fires
3230# the warning (with _au_warn_XXX), outputs it into the
3231# updated configure.ac (with AC_DIAGNOSE), and then outputs
3232# the replacement expansion.
3233
3234
3235# This is an auxiliary macro that is also run when
3236# autoupdate runs m4.  It simply calls m4_warning, but
3237# we need a wrapper so that each warning is emitted only
3238# once.  We break the quoting in m4_warning's argument in
3239# order to expand this macro's arguments, not AU_DEFUN's.
3240
3241
3242# Finally, this is the expansion that is picked up by
3243# autoconf.  It tells the user to run autoupdate, and
3244# then outputs the replacement expansion.  We do not care
3245# about autoupdate's warning because that contains
3246# information on what to do *after* running autoupdate.
3247
3248# This is what autoupdate's m4 run will expand.  It fires
3249# the warning (with _au_warn_XXX), outputs it into the
3250# updated configure.ac (with AC_DIAGNOSE), and then outputs
3251# the replacement expansion.
3252
3253
3254# This is an auxiliary macro that is also run when
3255# autoupdate runs m4.  It simply calls m4_warning, but
3256# we need a wrapper so that each warning is emitted only
3257# once.  We break the quoting in m4_warning's argument in
3258# order to expand this macro's arguments, not AU_DEFUN's.
3259
3260
3261# Finally, this is the expansion that is picked up by
3262# autoconf.  It tells the user to run autoupdate, and
3263# then outputs the replacement expansion.  We do not care
3264# about autoupdate's warning because that contains
3265# information on what to do *after* running autoupdate.
3266
3267# This is what autoupdate's m4 run will expand.  It fires
3268# the warning (with _au_warn_XXX), outputs it into the
3269# updated configure.ac (with AC_DIAGNOSE), and then outputs
3270# the replacement expansion.
3271
3272
3273# This is an auxiliary macro that is also run when
3274# autoupdate runs m4.  It simply calls m4_warning, but
3275# we need a wrapper so that each warning is emitted only
3276# once.  We break the quoting in m4_warning's argument in
3277# order to expand this macro's arguments, not AU_DEFUN's.
3278
3279
3280# Finally, this is the expansion that is picked up by
3281# autoconf.  It tells the user to run autoupdate, and
3282# then outputs the replacement expansion.  We do not care
3283# about autoupdate's warning because that contains
3284# information on what to do *after* running autoupdate.
3285
3286# This is what autoupdate's m4 run will expand.  It fires
3287# the warning (with _au_warn_XXX), outputs it into the
3288# updated configure.ac (with AC_DIAGNOSE), and then outputs
3289# the replacement expansion.
3290
3291
3292# This is an auxiliary macro that is also run when
3293# autoupdate runs m4.  It simply calls m4_warning, but
3294# we need a wrapper so that each warning is emitted only
3295# once.  We break the quoting in m4_warning's argument in
3296# order to expand this macro's arguments, not AU_DEFUN's.
3297
3298
3299# Finally, this is the expansion that is picked up by
3300# autoconf.  It tells the user to run autoupdate, and
3301# then outputs the replacement expansion.  We do not care
3302# about autoupdate's warning because that contains
3303# information on what to do *after* running autoupdate.
3304
3305# This is what autoupdate's m4 run will expand.  It fires
3306# the warning (with _au_warn_XXX), outputs it into the
3307# updated configure.ac (with AC_DIAGNOSE), and then outputs
3308# the replacement expansion.
3309
3310
3311# This is an auxiliary macro that is also run when
3312# autoupdate runs m4.  It simply calls m4_warning, but
3313# we need a wrapper so that each warning is emitted only
3314# once.  We break the quoting in m4_warning's argument in
3315# order to expand this macro's arguments, not AU_DEFUN's.
3316
3317
3318# Finally, this is the expansion that is picked up by
3319# autoconf.  It tells the user to run autoupdate, and
3320# then outputs the replacement expansion.  We do not care
3321# about autoupdate's warning because that contains
3322# information on what to do *after* running autoupdate.
3323
3324
3325
3326# _LT_TAG_COMPILER
3327# ----------------
3328# _LT_TAG_COMPILER
3329
3330
3331# _LT_COMPILER_BOILERPLATE
3332# ------------------------
3333# Check for compiler boilerplate output or warnings with
3334# the simple compiler test code.
3335# _LT_COMPILER_BOILERPLATE
3336
3337
3338# _LT_LINKER_BOILERPLATE
3339# ----------------------
3340# Check for linker boilerplate output or warnings with
3341# the simple link test code.
3342# _LT_LINKER_BOILERPLATE
3343
3344# _LT_REQUIRED_DARWIN_CHECKS
3345# -------------------------
3346
3347
3348
3349# _LT_DARWIN_LINKER_FEATURES([TAG])
3350# ---------------------------------
3351# Checks for linker and compiler features on darwin
3352
3353
3354# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
3355# ----------------------------------
3356# Links a minimal program and checks the executable
3357# for the system default hardcoded library path. In most cases,
3358# this is /usr/lib:/lib, but when the MPI compilers are used
3359# the location of the communication and MPI libs are included too.
3360# If we don't find anything, use the default library path according
3361# to the aix ld manual.
3362# Store the results from the different compilers for each TAGNAME.
3363# Allow to override them for all tags through lt_cv_aix_libpath.
3364# _LT_SYS_MODULE_PATH_AIX
3365
3366
3367# _LT_SHELL_INIT(ARG)
3368# -------------------
3369# _LT_SHELL_INIT
3370
3371
3372
3373# _LT_PROG_ECHO_BACKSLASH
3374# -----------------------
3375# Find how we can fake an echo command that does not interpret backslash.
3376# In particular, with Autoconf 2.60 or later we add some code to the start
3377# of the generated configure script which will find a shell with a builtin
3378# printf (which we can use as an echo command).
3379# _LT_PROG_ECHO_BACKSLASH
3380
3381
3382# _LT_WITH_SYSROOT
3383# ----------------
3384
3385
3386# _LT_ENABLE_LOCK
3387# ---------------
3388# _LT_ENABLE_LOCK
3389
3390
3391# _LT_PROG_AR
3392# -----------
3393# _LT_PROG_AR
3394
3395
3396# _LT_CMD_OLD_ARCHIVE
3397# -------------------
3398# _LT_CMD_OLD_ARCHIVE
3399
3400
3401# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3402#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3403# ----------------------------------------------------------------
3404# Check whether the given compiler option works
3405# _LT_COMPILER_OPTION
3406
3407# Old name:
3408# This is what autoupdate's m4 run will expand.  It fires
3409# the warning (with _au_warn_XXX), outputs it into the
3410# updated configure.ac (with AC_DIAGNOSE), and then outputs
3411# the replacement expansion.
3412
3413
3414# This is an auxiliary macro that is also run when
3415# autoupdate runs m4.  It simply calls m4_warning, but
3416# we need a wrapper so that each warning is emitted only
3417# once.  We break the quoting in m4_warning's argument in
3418# order to expand this macro's arguments, not AU_DEFUN's.
3419
3420
3421# Finally, this is the expansion that is picked up by
3422# autoconf.  It tells the user to run autoupdate, and
3423# then outputs the replacement expansion.  We do not care
3424# about autoupdate's warning because that contains
3425# information on what to do *after* running autoupdate.
3426
3427
3428
3429# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3430#                  [ACTION-SUCCESS], [ACTION-FAILURE])
3431# ----------------------------------------------------
3432# Check whether the given linker option works
3433# _LT_LINKER_OPTION
3434
3435# Old name:
3436# This is what autoupdate's m4 run will expand.  It fires
3437# the warning (with _au_warn_XXX), outputs it into the
3438# updated configure.ac (with AC_DIAGNOSE), and then outputs
3439# the replacement expansion.
3440
3441
3442# This is an auxiliary macro that is also run when
3443# autoupdate runs m4.  It simply calls m4_warning, but
3444# we need a wrapper so that each warning is emitted only
3445# once.  We break the quoting in m4_warning's argument in
3446# order to expand this macro's arguments, not AU_DEFUN's.
3447
3448
3449# Finally, this is the expansion that is picked up by
3450# autoconf.  It tells the user to run autoupdate, and
3451# then outputs the replacement expansion.  We do not care
3452# about autoupdate's warning because that contains
3453# information on what to do *after* running autoupdate.
3454
3455
3456
3457# LT_CMD_MAX_LEN
3458#---------------
3459# LT_CMD_MAX_LEN
3460
3461# Old name:
3462# This is what autoupdate's m4 run will expand.  It fires
3463# the warning (with _au_warn_XXX), outputs it into the
3464# updated configure.ac (with AC_DIAGNOSE), and then outputs
3465# the replacement expansion.
3466
3467
3468# This is an auxiliary macro that is also run when
3469# autoupdate runs m4.  It simply calls m4_warning, but
3470# we need a wrapper so that each warning is emitted only
3471# once.  We break the quoting in m4_warning's argument in
3472# order to expand this macro's arguments, not AU_DEFUN's.
3473
3474
3475# Finally, this is the expansion that is picked up by
3476# autoconf.  It tells the user to run autoupdate, and
3477# then outputs the replacement expansion.  We do not care
3478# about autoupdate's warning because that contains
3479# information on what to do *after* running autoupdate.
3480
3481
3482
3483# _LT_HEADER_DLFCN
3484# ----------------
3485# _LT_HEADER_DLFCN
3486
3487
3488# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3489#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3490# ----------------------------------------------------------------
3491# _LT_TRY_DLOPEN_SELF
3492
3493
3494# LT_SYS_DLOPEN_SELF
3495# ------------------
3496# LT_SYS_DLOPEN_SELF
3497
3498# Old name:
3499# This is what autoupdate's m4 run will expand.  It fires
3500# the warning (with _au_warn_XXX), outputs it into the
3501# updated configure.ac (with AC_DIAGNOSE), and then outputs
3502# the replacement expansion.
3503
3504
3505# This is an auxiliary macro that is also run when
3506# autoupdate runs m4.  It simply calls m4_warning, but
3507# we need a wrapper so that each warning is emitted only
3508# once.  We break the quoting in m4_warning's argument in
3509# order to expand this macro's arguments, not AU_DEFUN's.
3510
3511
3512# Finally, this is the expansion that is picked up by
3513# autoconf.  It tells the user to run autoupdate, and
3514# then outputs the replacement expansion.  We do not care
3515# about autoupdate's warning because that contains
3516# information on what to do *after* running autoupdate.
3517
3518
3519
3520# _LT_COMPILER_C_O([TAGNAME])
3521# ---------------------------
3522# Check to see if options -c and -o are simultaneously supported by compiler.
3523# This macro does not hard code the compiler like AC_PROG_CC_C_O.
3524# _LT_COMPILER_C_O
3525
3526
3527# _LT_COMPILER_FILE_LOCKS([TAGNAME])
3528# ----------------------------------
3529# Check to see if we can do hard links to lock some files if needed
3530# _LT_COMPILER_FILE_LOCKS
3531
3532
3533# _LT_CHECK_OBJDIR
3534# ----------------
3535# _LT_CHECK_OBJDIR
3536
3537
3538# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3539# --------------------------------------
3540# Check hardcoding attributes.
3541# _LT_LINKER_HARDCODE_LIBPATH
3542
3543
3544# _LT_CMD_STRIPLIB
3545# ----------------
3546# _LT_CMD_STRIPLIB
3547
3548
3549# _LT_SYS_DYNAMIC_LINKER([TAG])
3550# -----------------------------
3551# PORTME Fill in your ld.so characteristics
3552# _LT_SYS_DYNAMIC_LINKER
3553
3554
3555# _LT_PATH_TOOL_PREFIX(TOOL)
3556# --------------------------
3557# find a file program which can recognize shared library
3558# _LT_PATH_TOOL_PREFIX
3559
3560# Old name:
3561# This is what autoupdate's m4 run will expand.  It fires
3562# the warning (with _au_warn_XXX), outputs it into the
3563# updated configure.ac (with AC_DIAGNOSE), and then outputs
3564# the replacement expansion.
3565
3566
3567# This is an auxiliary macro that is also run when
3568# autoupdate runs m4.  It simply calls m4_warning, but
3569# we need a wrapper so that each warning is emitted only
3570# once.  We break the quoting in m4_warning's argument in
3571# order to expand this macro's arguments, not AU_DEFUN's.
3572
3573
3574# Finally, this is the expansion that is picked up by
3575# autoconf.  It tells the user to run autoupdate, and
3576# then outputs the replacement expansion.  We do not care
3577# about autoupdate's warning because that contains
3578# information on what to do *after* running autoupdate.
3579
3580
3581
3582# _LT_PATH_MAGIC
3583# --------------
3584# find a file program which can recognize a shared library
3585# _LT_PATH_MAGIC
3586
3587
3588# LT_PATH_LD
3589# ----------
3590# find the pathname to the GNU or non-GNU linker
3591# LT_PATH_LD
3592
3593# Old names:
3594# This is what autoupdate's m4 run will expand.  It fires
3595# the warning (with _au_warn_XXX), outputs it into the
3596# updated configure.ac (with AC_DIAGNOSE), and then outputs
3597# the replacement expansion.
3598
3599
3600# This is an auxiliary macro that is also run when
3601# autoupdate runs m4.  It simply calls m4_warning, but
3602# we need a wrapper so that each warning is emitted only
3603# once.  We break the quoting in m4_warning's argument in
3604# order to expand this macro's arguments, not AU_DEFUN's.
3605
3606
3607# Finally, this is the expansion that is picked up by
3608# autoconf.  It tells the user to run autoupdate, and
3609# then outputs the replacement expansion.  We do not care
3610# about autoupdate's warning because that contains
3611# information on what to do *after* running autoupdate.
3612
3613# This is what autoupdate's m4 run will expand.  It fires
3614# the warning (with _au_warn_XXX), outputs it into the
3615# updated configure.ac (with AC_DIAGNOSE), and then outputs
3616# the replacement expansion.
3617
3618
3619# This is an auxiliary macro that is also run when
3620# autoupdate runs m4.  It simply calls m4_warning, but
3621# we need a wrapper so that each warning is emitted only
3622# once.  We break the quoting in m4_warning's argument in
3623# order to expand this macro's arguments, not AU_DEFUN's.
3624
3625
3626# Finally, this is the expansion that is picked up by
3627# autoconf.  It tells the user to run autoupdate, and
3628# then outputs the replacement expansion.  We do not care
3629# about autoupdate's warning because that contains
3630# information on what to do *after* running autoupdate.
3631
3632
3633
3634# _LT_PATH_LD_GNU
3635#- --------------
3636# _LT_PATH_LD_GNU
3637
3638
3639# _LT_CMD_RELOAD
3640# --------------
3641# find reload flag for linker
3642#   -- PORTME Some linkers may need a different reload flag.
3643# _LT_CMD_RELOAD
3644
3645
3646# _LT_CHECK_MAGIC_METHOD
3647# ----------------------
3648# how to check for library dependencies
3649#  -- PORTME fill in with the dynamic library characteristics
3650# _LT_CHECK_MAGIC_METHOD
3651
3652
3653# LT_PATH_NM
3654# ----------
3655# find the pathname to a BSD- or MS-compatible name lister
3656# LT_PATH_NM
3657
3658# Old names:
3659# This is what autoupdate's m4 run will expand.  It fires
3660# the warning (with _au_warn_XXX), outputs it into the
3661# updated configure.ac (with AC_DIAGNOSE), and then outputs
3662# the replacement expansion.
3663
3664
3665# This is an auxiliary macro that is also run when
3666# autoupdate runs m4.  It simply calls m4_warning, but
3667# we need a wrapper so that each warning is emitted only
3668# once.  We break the quoting in m4_warning's argument in
3669# order to expand this macro's arguments, not AU_DEFUN's.
3670
3671
3672# Finally, this is the expansion that is picked up by
3673# autoconf.  It tells the user to run autoupdate, and
3674# then outputs the replacement expansion.  We do not care
3675# about autoupdate's warning because that contains
3676# information on what to do *after* running autoupdate.
3677
3678# This is what autoupdate's m4 run will expand.  It fires
3679# the warning (with _au_warn_XXX), outputs it into the
3680# updated configure.ac (with AC_DIAGNOSE), and then outputs
3681# the replacement expansion.
3682
3683
3684# This is an auxiliary macro that is also run when
3685# autoupdate runs m4.  It simply calls m4_warning, but
3686# we need a wrapper so that each warning is emitted only
3687# once.  We break the quoting in m4_warning's argument in
3688# order to expand this macro's arguments, not AU_DEFUN's.
3689
3690
3691# Finally, this is the expansion that is picked up by
3692# autoconf.  It tells the user to run autoupdate, and
3693# then outputs the replacement expansion.  We do not care
3694# about autoupdate's warning because that contains
3695# information on what to do *after* running autoupdate.
3696
3697
3698# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3699# --------------------------------
3700# how to determine the name of the shared library
3701# associated with a specific link library.
3702#  -- PORTME fill in with the dynamic library characteristics
3703# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3704
3705
3706# _LT_PATH_MANIFEST_TOOL
3707# ----------------------
3708# locate the manifest tool
3709# _LT_PATH_MANIFEST_TOOL
3710
3711
3712# LT_LIB_M
3713# --------
3714# check for math library
3715# LT_LIB_M
3716
3717# Old name:
3718# This is what autoupdate's m4 run will expand.  It fires
3719# the warning (with _au_warn_XXX), outputs it into the
3720# updated configure.ac (with AC_DIAGNOSE), and then outputs
3721# the replacement expansion.
3722
3723
3724# This is an auxiliary macro that is also run when
3725# autoupdate runs m4.  It simply calls m4_warning, but
3726# we need a wrapper so that each warning is emitted only
3727# once.  We break the quoting in m4_warning's argument in
3728# order to expand this macro's arguments, not AU_DEFUN's.
3729
3730
3731# Finally, this is the expansion that is picked up by
3732# autoconf.  It tells the user to run autoupdate, and
3733# then outputs the replacement expansion.  We do not care
3734# about autoupdate's warning because that contains
3735# information on what to do *after* running autoupdate.
3736
3737
3738
3739# _LT_COMPILER_NO_RTTI([TAGNAME])
3740# -------------------------------
3741# _LT_COMPILER_NO_RTTI
3742
3743
3744# _LT_CMD_GLOBAL_SYMBOLS
3745# ----------------------
3746 # _LT_CMD_GLOBAL_SYMBOLS
3747
3748
3749# _LT_COMPILER_PIC([TAGNAME])
3750# ---------------------------
3751# _LT_COMPILER_PIC
3752
3753
3754# _LT_LINKER_SHLIBS([TAGNAME])
3755# ----------------------------
3756# See if the linker supports building shared libraries.
3757# _LT_LINKER_SHLIBS
3758
3759
3760# _LT_LANG_C_CONFIG([TAG])
3761# ------------------------
3762# Ensure that the configuration variables for a C compiler are suitably
3763# defined.  These variables are subsequently used by _LT_CONFIG to write
3764# the compiler configuration to `libtool'.
3765# _LT_LANG_C_CONFIG
3766
3767
3768# _LT_LANG_CXX_CONFIG([TAG])
3769# --------------------------
3770# Ensure that the configuration variables for a C++ compiler are suitably
3771# defined.  These variables are subsequently used by _LT_CONFIG to write
3772# the compiler configuration to `libtool'.
3773# _LT_LANG_CXX_CONFIG
3774
3775
3776# _LT_FUNC_STRIPNAME_CNF
3777# ----------------------
3778# func_stripname_cnf prefix suffix name
3779# strip PREFIX and SUFFIX off of NAME.
3780# PREFIX and SUFFIX must not contain globbing or regex special
3781# characters, hashes, percent signs, but SUFFIX may contain a leading
3782# dot (in which case that matches only a dot).
3783#
3784# This function is identical to the (non-XSI) version of func_stripname,
3785# except this one can be used by m4 code that may be executed by configure,
3786# rather than the libtool script.
3787# _LT_FUNC_STRIPNAME_CNF
3788
3789# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3790# ---------------------------------
3791# Figure out "hidden" library dependencies from verbose
3792# compiler output when linking a shared library.
3793# Parse the compiler output and extract the necessary
3794# objects, libraries and library flags.
3795# _LT_SYS_HIDDEN_LIBDEPS
3796
3797
3798# _LT_LANG_F77_CONFIG([TAG])
3799# --------------------------
3800# Ensure that the configuration variables for a Fortran 77 compiler are
3801# suitably defined.  These variables are subsequently used by _LT_CONFIG
3802# to write the compiler configuration to `libtool'.
3803# _LT_LANG_F77_CONFIG
3804
3805
3806# _LT_LANG_FC_CONFIG([TAG])
3807# -------------------------
3808# Ensure that the configuration variables for a Fortran compiler are
3809# suitably defined.  These variables are subsequently used by _LT_CONFIG
3810# to write the compiler configuration to `libtool'.
3811# _LT_LANG_FC_CONFIG
3812
3813
3814# _LT_LANG_GCJ_CONFIG([TAG])
3815# --------------------------
3816# Ensure that the configuration variables for the GNU Java Compiler compiler
3817# are suitably defined.  These variables are subsequently used by _LT_CONFIG
3818# to write the compiler configuration to `libtool'.
3819# _LT_LANG_GCJ_CONFIG
3820
3821
3822# _LT_LANG_GO_CONFIG([TAG])
3823# --------------------------
3824# Ensure that the configuration variables for the GNU Go compiler
3825# are suitably defined.  These variables are subsequently used by _LT_CONFIG
3826# to write the compiler configuration to `libtool'.
3827# _LT_LANG_GO_CONFIG
3828
3829
3830# _LT_LANG_RC_CONFIG([TAG])
3831# -------------------------
3832# Ensure that the configuration variables for the Windows resource compiler
3833# are suitably defined.  These variables are subsequently used by _LT_CONFIG
3834# to write the compiler configuration to `libtool'.
3835# _LT_LANG_RC_CONFIG
3836
3837
3838# LT_PROG_GCJ
3839# -----------
3840
3841
3842# Old name:
3843# This is what autoupdate's m4 run will expand.  It fires
3844# the warning (with _au_warn_XXX), outputs it into the
3845# updated configure.ac (with AC_DIAGNOSE), and then outputs
3846# the replacement expansion.
3847
3848
3849# This is an auxiliary macro that is also run when
3850# autoupdate runs m4.  It simply calls m4_warning, but
3851# we need a wrapper so that each warning is emitted only
3852# once.  We break the quoting in m4_warning's argument in
3853# order to expand this macro's arguments, not AU_DEFUN's.
3854
3855
3856# Finally, this is the expansion that is picked up by
3857# autoconf.  It tells the user to run autoupdate, and
3858# then outputs the replacement expansion.  We do not care
3859# about autoupdate's warning because that contains
3860# information on what to do *after* running autoupdate.
3861
3862
3863
3864# LT_PROG_GO
3865# ----------
3866
3867
3868
3869# LT_PROG_RC
3870# ----------
3871
3872
3873# Old name:
3874# This is what autoupdate's m4 run will expand.  It fires
3875# the warning (with _au_warn_XXX), outputs it into the
3876# updated configure.ac (with AC_DIAGNOSE), and then outputs
3877# the replacement expansion.
3878
3879
3880# This is an auxiliary macro that is also run when
3881# autoupdate runs m4.  It simply calls m4_warning, but
3882# we need a wrapper so that each warning is emitted only
3883# once.  We break the quoting in m4_warning's argument in
3884# order to expand this macro's arguments, not AU_DEFUN's.
3885
3886
3887# Finally, this is the expansion that is picked up by
3888# autoconf.  It tells the user to run autoupdate, and
3889# then outputs the replacement expansion.  We do not care
3890# about autoupdate's warning because that contains
3891# information on what to do *after* running autoupdate.
3892
3893
3894
3895# _LT_DECL_EGREP
3896# --------------
3897# If we don't have a new enough Autoconf to choose the best grep
3898# available, choose the one first in the user's PATH.
3899
3900
3901
3902# _LT_DECL_OBJDUMP
3903# --------------
3904# If we don't have a new enough Autoconf to choose the best objdump
3905# available, choose the one first in the user's PATH.
3906
3907
3908# _LT_DECL_DLLTOOL
3909# ----------------
3910# Ensure DLLTOOL variable is set.
3911
3912
3913# _LT_DECL_SED
3914# ------------
3915# Check for a fully-functional sed program, that truncates
3916# as few characters as possible.  Prefer GNU sed if found.
3917# _LT_DECL_SED
3918
3919#m4_ifndef
3920
3921# Old name:
3922# This is what autoupdate's m4 run will expand.  It fires
3923# the warning (with _au_warn_XXX), outputs it into the
3924# updated configure.ac (with AC_DIAGNOSE), and then outputs
3925# the replacement expansion.
3926
3927
3928# This is an auxiliary macro that is also run when
3929# autoupdate runs m4.  It simply calls m4_warning, but
3930# we need a wrapper so that each warning is emitted only
3931# once.  We break the quoting in m4_warning's argument in
3932# order to expand this macro's arguments, not AU_DEFUN's.
3933
3934
3935# Finally, this is the expansion that is picked up by
3936# autoconf.  It tells the user to run autoupdate, and
3937# then outputs the replacement expansion.  We do not care
3938# about autoupdate's warning because that contains
3939# information on what to do *after* running autoupdate.
3940
3941
3942
3943# _LT_CHECK_SHELL_FEATURES
3944# ------------------------
3945# Find out whether the shell is Bourne or XSI compatible,
3946# or has some other useful features.
3947# _LT_CHECK_SHELL_FEATURES
3948
3949
3950# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
3951# ------------------------------------------------------
3952# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
3953# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
3954
3955
3956
3957# _LT_PROG_REPLACE_SHELLFNS
3958# -------------------------
3959# Replace existing portable implementations of several shell functions with
3960# equivalent extended shell implementations where those features are available..
3961
3962
3963# _LT_PATH_CONVERSION_FUNCTIONS
3964# -----------------------------
3965# Determine which file name conversion functions should be used by
3966# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
3967# for certain cross-compile configurations and native mingw.
3968# _LT_PATH_CONVERSION_FUNCTIONS
3969
3970# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
3971#
3972# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3973# Written by Gary V. Vaughan, 2004
3974#
3975# This file is free software; the Free Software Foundation gives
3976# unlimited permission to copy and/or distribute it, with or without
3977# modifications, as long as this notice is preserved.
3978
3979# serial 6 ltsugar.m4
3980
3981# This is to help aclocal find these macros, as it can't see m4_define.
3982
3983
3984
3985# lt_join(SEP, ARG1, [ARG2...])
3986# -----------------------------
3987# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3988# associated separator.
3989# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3990# versions in m4sugar had bugs.
3991
3992
3993
3994
3995# lt_car(LIST)
3996# lt_cdr(LIST)
3997# ------------
3998# Manipulate m4 lists.
3999# These macros are necessary as long as will still need to support
4000# Autoconf-2.59 which quotes differently.
4001
4002
4003
4004
4005
4006# lt_append(MACRO-NAME, STRING, [SEPARATOR])
4007# ------------------------------------------
4008# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
4009# Note that neither SEPARATOR nor STRING are expanded; they are appended
4010# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
4011# No SEPARATOR is output if MACRO-NAME was previously undefined (different
4012# than defined and empty).
4013#
4014# This macro is needed until we can rely on Autoconf 2.62, since earlier
4015# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
4016
4017
4018
4019
4020# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
4021# ----------------------------------------------------------
4022# Produce a SEP delimited list of all paired combinations of elements of
4023# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
4024# has the form PREFIXmINFIXSUFFIXn.
4025# Needed until we can rely on m4_combine added in Autoconf 2.62.
4026
4027
4028
4029# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
4030# -----------------------------------------------------------------------
4031# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
4032# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
4033
4034
4035
4036# lt_dict_add(DICT, KEY, VALUE)
4037# -----------------------------
4038
4039
4040
4041# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
4042# --------------------------------------------
4043
4044
4045
4046# lt_dict_fetch(DICT, KEY, [SUBKEY])
4047# ----------------------------------
4048
4049
4050
4051# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
4052# -----------------------------------------------------------------
4053
4054
4055
4056# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
4057# --------------------------------------------------------------
4058
4059
4060
4061# Helper functions for option handling.                    -*- Autoconf -*-
4062#
4063#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
4064#   Inc.
4065#   Written by Gary V. Vaughan, 2004
4066#
4067# This file is free software; the Free Software Foundation gives
4068# unlimited permission to copy and/or distribute it, with or without
4069# modifications, as long as this notice is preserved.
4070
4071# serial 7 ltoptions.m4
4072
4073# This is to help aclocal find these macros, as it can't see m4_define.
4074
4075
4076
4077# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
4078# ------------------------------------------
4079
4080
4081
4082# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
4083# ---------------------------------------
4084# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
4085# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
4086# saved as a flag.
4087
4088
4089
4090# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
4091# ------------------------------------------------------------
4092# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
4093
4094
4095
4096# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
4097# -------------------------------------------------------
4098# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
4099# are set.
4100
4101
4102
4103# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
4104# ----------------------------------------
4105# OPTION-LIST is a space-separated list of Libtool options associated
4106# with MACRO-NAME.  If any OPTION has a matching handler declared with
4107# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
4108# the unknown option and exit.
4109# _LT_SET_OPTIONS
4110
4111
4112## --------------------------------- ##
4113## Macros to handle LT_INIT options. ##
4114## --------------------------------- ##
4115
4116# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
4117# -----------------------------------------
4118
4119
4120
4121# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
4122# -----------------------------------------------
4123# LT_OPTION_DEFINE
4124
4125
4126# dlopen
4127# ------
4128
4129
4130# This is what autoupdate's m4 run will expand.  It fires
4131# the warning (with _au_warn_XXX), outputs it into the
4132# updated configure.ac (with AC_DIAGNOSE), and then outputs
4133# the replacement expansion.
4134
4135
4136# This is an auxiliary macro that is also run when
4137# autoupdate runs m4.  It simply calls m4_warning, but
4138# we need a wrapper so that each warning is emitted only
4139# once.  We break the quoting in m4_warning's argument in
4140# order to expand this macro's arguments, not AU_DEFUN's.
4141
4142
4143# Finally, this is the expansion that is picked up by
4144# autoconf.  It tells the user to run autoupdate, and
4145# then outputs the replacement expansion.  We do not care
4146# about autoupdate's warning because that contains
4147# information on what to do *after* running autoupdate.
4148
4149
4150
4151
4152# win32-dll
4153# ---------
4154# Declare package support for building win32 dll's.
4155# win32-dll
4156
4157# This is what autoupdate's m4 run will expand.  It fires
4158# the warning (with _au_warn_XXX), outputs it into the
4159# updated configure.ac (with AC_DIAGNOSE), and then outputs
4160# the replacement expansion.
4161
4162
4163# This is an auxiliary macro that is also run when
4164# autoupdate runs m4.  It simply calls m4_warning, but
4165# we need a wrapper so that each warning is emitted only
4166# once.  We break the quoting in m4_warning's argument in
4167# order to expand this macro's arguments, not AU_DEFUN's.
4168
4169
4170# Finally, this is the expansion that is picked up by
4171# autoconf.  It tells the user to run autoupdate, and
4172# then outputs the replacement expansion.  We do not care
4173# about autoupdate's warning because that contains
4174# information on what to do *after* running autoupdate.
4175
4176
4177
4178
4179# _LT_ENABLE_SHARED([DEFAULT])
4180# ----------------------------
4181# implement the --enable-shared flag, and supports the `shared' and
4182# `disable-shared' LT_INIT options.
4183# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
4184# _LT_ENABLE_SHARED
4185
4186
4187
4188
4189# Old names:
4190
4191
4192
4193
4194# This is what autoupdate's m4 run will expand.  It fires
4195# the warning (with _au_warn_XXX), outputs it into the
4196# updated configure.ac (with AC_DIAGNOSE), and then outputs
4197# the replacement expansion.
4198
4199
4200# This is an auxiliary macro that is also run when
4201# autoupdate runs m4.  It simply calls m4_warning, but
4202# we need a wrapper so that each warning is emitted only
4203# once.  We break the quoting in m4_warning's argument in
4204# order to expand this macro's arguments, not AU_DEFUN's.
4205
4206
4207# Finally, this is the expansion that is picked up by
4208# autoconf.  It tells the user to run autoupdate, and
4209# then outputs the replacement expansion.  We do not care
4210# about autoupdate's warning because that contains
4211# information on what to do *after* running autoupdate.
4212
4213# This is what autoupdate's m4 run will expand.  It fires
4214# the warning (with _au_warn_XXX), outputs it into the
4215# updated configure.ac (with AC_DIAGNOSE), and then outputs
4216# the replacement expansion.
4217
4218
4219# This is an auxiliary macro that is also run when
4220# autoupdate runs m4.  It simply calls m4_warning, but
4221# we need a wrapper so that each warning is emitted only
4222# once.  We break the quoting in m4_warning's argument in
4223# order to expand this macro's arguments, not AU_DEFUN's.
4224
4225
4226# Finally, this is the expansion that is picked up by
4227# autoconf.  It tells the user to run autoupdate, and
4228# then outputs the replacement expansion.  We do not care
4229# about autoupdate's warning because that contains
4230# information on what to do *after* running autoupdate.
4231
4232
4233
4234
4235
4236# _LT_ENABLE_STATIC([DEFAULT])
4237# ----------------------------
4238# implement the --enable-static flag, and support the `static' and
4239# `disable-static' LT_INIT options.
4240# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
4241# _LT_ENABLE_STATIC
4242
4243
4244
4245
4246# Old names:
4247
4248
4249
4250
4251# This is what autoupdate's m4 run will expand.  It fires
4252# the warning (with _au_warn_XXX), outputs it into the
4253# updated configure.ac (with AC_DIAGNOSE), and then outputs
4254# the replacement expansion.
4255
4256
4257# This is an auxiliary macro that is also run when
4258# autoupdate runs m4.  It simply calls m4_warning, but
4259# we need a wrapper so that each warning is emitted only
4260# once.  We break the quoting in m4_warning's argument in
4261# order to expand this macro's arguments, not AU_DEFUN's.
4262
4263
4264# Finally, this is the expansion that is picked up by
4265# autoconf.  It tells the user to run autoupdate, and
4266# then outputs the replacement expansion.  We do not care
4267# about autoupdate's warning because that contains
4268# information on what to do *after* running autoupdate.
4269
4270# This is what autoupdate's m4 run will expand.  It fires
4271# the warning (with _au_warn_XXX), outputs it into the
4272# updated configure.ac (with AC_DIAGNOSE), and then outputs
4273# the replacement expansion.
4274
4275
4276# This is an auxiliary macro that is also run when
4277# autoupdate runs m4.  It simply calls m4_warning, but
4278# we need a wrapper so that each warning is emitted only
4279# once.  We break the quoting in m4_warning's argument in
4280# order to expand this macro's arguments, not AU_DEFUN's.
4281
4282
4283# Finally, this is the expansion that is picked up by
4284# autoconf.  It tells the user to run autoupdate, and
4285# then outputs the replacement expansion.  We do not care
4286# about autoupdate's warning because that contains
4287# information on what to do *after* running autoupdate.
4288
4289
4290
4291
4292
4293# _LT_ENABLE_FAST_INSTALL([DEFAULT])
4294# ----------------------------------
4295# implement the --enable-fast-install flag, and support the `fast-install'
4296# and `disable-fast-install' LT_INIT options.
4297# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
4298# _LT_ENABLE_FAST_INSTALL
4299
4300
4301
4302
4303# Old names:
4304# This is what autoupdate's m4 run will expand.  It fires
4305# the warning (with _au_warn_XXX), outputs it into the
4306# updated configure.ac (with AC_DIAGNOSE), and then outputs
4307# the replacement expansion.
4308
4309
4310# This is an auxiliary macro that is also run when
4311# autoupdate runs m4.  It simply calls m4_warning, but
4312# we need a wrapper so that each warning is emitted only
4313# once.  We break the quoting in m4_warning's argument in
4314# order to expand this macro's arguments, not AU_DEFUN's.
4315
4316
4317# Finally, this is the expansion that is picked up by
4318# autoconf.  It tells the user to run autoupdate, and
4319# then outputs the replacement expansion.  We do not care
4320# about autoupdate's warning because that contains
4321# information on what to do *after* running autoupdate.
4322
4323
4324# This is what autoupdate's m4 run will expand.  It fires
4325# the warning (with _au_warn_XXX), outputs it into the
4326# updated configure.ac (with AC_DIAGNOSE), and then outputs
4327# the replacement expansion.
4328
4329
4330# This is an auxiliary macro that is also run when
4331# autoupdate runs m4.  It simply calls m4_warning, but
4332# we need a wrapper so that each warning is emitted only
4333# once.  We break the quoting in m4_warning's argument in
4334# order to expand this macro's arguments, not AU_DEFUN's.
4335
4336
4337# Finally, this is the expansion that is picked up by
4338# autoconf.  It tells the user to run autoupdate, and
4339# then outputs the replacement expansion.  We do not care
4340# about autoupdate's warning because that contains
4341# information on what to do *after* running autoupdate.
4342
4343
4344
4345
4346# _LT_WITH_PIC([MODE])
4347# --------------------
4348# implement the --with-pic flag, and support the `pic-only' and `no-pic'
4349# LT_INIT options.
4350# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
4351# _LT_WITH_PIC
4352
4353
4354
4355
4356# Old name:
4357# This is what autoupdate's m4 run will expand.  It fires
4358# the warning (with _au_warn_XXX), outputs it into the
4359# updated configure.ac (with AC_DIAGNOSE), and then outputs
4360# the replacement expansion.
4361
4362
4363# This is an auxiliary macro that is also run when
4364# autoupdate runs m4.  It simply calls m4_warning, but
4365# we need a wrapper so that each warning is emitted only
4366# once.  We break the quoting in m4_warning's argument in
4367# order to expand this macro's arguments, not AU_DEFUN's.
4368
4369
4370# Finally, this is the expansion that is picked up by
4371# autoconf.  It tells the user to run autoupdate, and
4372# then outputs the replacement expansion.  We do not care
4373# about autoupdate's warning because that contains
4374# information on what to do *after* running autoupdate.
4375
4376
4377
4378## ----------------- ##
4379## LTDL_INIT Options ##
4380## ----------------- ##
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391# ltversion.m4 -- version numbers			-*- Autoconf -*-
4392#
4393#   Copyright (C) 2004 Free Software Foundation, Inc.
4394#   Written by Scott James Remnant, 2004
4395#
4396# This file is free software; the Free Software Foundation gives
4397# unlimited permission to copy and/or distribute it, with or without
4398# modifications, as long as this notice is preserved.
4399
4400# @configure_input@
4401
4402# serial 3337 ltversion.m4
4403# This file is part of GNU Libtool
4404
4405
4406
4407
4408
4409
4410# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
4411#
4412#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
4413#   Written by Scott James Remnant, 2004.
4414#
4415# This file is free software; the Free Software Foundation gives
4416# unlimited permission to copy and/or distribute it, with or without
4417# modifications, as long as this notice is preserved.
4418
4419# serial 5 lt~obsolete.m4
4420
4421# These exist entirely to fool aclocal when bootstrapping libtool.
4422#
4423# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
4424# which have later been changed to m4_define as they aren't part of the
4425# exported API, or moved to Autoconf or Automake where they belong.
4426#
4427# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
4428# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
4429# using a macro with the same name in our local m4/libtool.m4 it'll
4430# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
4431# and doesn't know about Autoconf macros at all.)
4432#
4433# So we provide this file, which has a silly filename so it's always
4434# included after everything else.  This provides aclocal with the
4435# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
4436# because those macros already exist, or will be overwritten later.
4437# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
4438#
4439# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
4440# Yes, that means every name once taken will need to remain here until
4441# we give up compatibility with versions before 1.7, at which point
4442# we need to keep only those names which we still refer to.
4443
4444# This is to help aclocal find these macros, as it can't see m4_define.
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515  apr_ste_save_CPPFLAGS="$CPPFLAGS"
4516
4517
4518  apr_ste_save_CFLAGS="$CFLAGS"
4519
4520
4521  apr_ste_save_LDFLAGS="$LDFLAGS"
4522
4523
4524  apr_ste_save_LIBS="$LIBS"
4525
4526
4527  apr_ste_save_INCLUDES="$INCLUDES"
4528
4529
4530
4531  rm -f config.nice
4532  cat >config.nice<<EOF
4533#! /bin/sh
4534#
4535# Created by configure
4536
4537EOF
4538  if test -n "$CC"; then
4539    echo "CC=\"$CC\"; export CC" >> config.nice
4540  fi
4541  if test -n "$CFLAGS"; then
4542    echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
4543  fi
4544  if test -n "$CPPFLAGS"; then
4545    echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
4546  fi
4547  if test -n "$LDFLAGS"; then
4548    echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
4549  fi
4550  if test -n "$LTFLAGS"; then
4551    echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
4552  fi
4553  if test -n "$LIBS"; then
4554    echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
4555  fi
4556  if test -n "$INCLUDES"; then
4557    echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
4558  fi
4559  if test -n "$NOTEST_CFLAGS"; then
4560    echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
4561  fi
4562  if test -n "$NOTEST_CPPFLAGS"; then
4563    echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
4564  fi
4565  if test -n "$NOTEST_LDFLAGS"; then
4566    echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
4567  fi
4568  if test -n "$NOTEST_LIBS"; then
4569    echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
4570  fi
4571
4572  # Retrieve command-line arguments.
4573  eval "set x $0 $ac_configure_args"
4574  shift
4575
4576  for arg
4577  do
4578
4579ap_last=
4580ap_cur="$arg"
4581while test "x${ap_cur}" != "x${ap_last}";
4582do
4583  ap_last="${ap_cur}"
4584  ap_cur=`eval "echo ${ap_cur}"`
4585done
4586arg="${ap_cur}"
4587
4588    echo "\"$arg\" \\" >> config.nice
4589  done
4590  echo '"$@"' >> config.nice
4591  chmod +x config.nice
4592
4593
4594# Make sure we can run config.sub.
4595$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4596  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4597
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4599$as_echo_n "checking build system type... " >&6; }
4600if ${ac_cv_build+:} false; then :
4601  $as_echo_n "(cached) " >&6
4602else
4603  ac_build_alias=$build_alias
4604test "x$ac_build_alias" = x &&
4605  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4606test "x$ac_build_alias" = x &&
4607  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4608ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4609  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4610
4611fi
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4613$as_echo "$ac_cv_build" >&6; }
4614case $ac_cv_build in
4615*-*-*) ;;
4616*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4617esac
4618build=$ac_cv_build
4619ac_save_IFS=$IFS; IFS='-'
4620set x $ac_cv_build
4621shift
4622build_cpu=$1
4623build_vendor=$2
4624shift; shift
4625# Remember, the first character of IFS is used to create $*,
4626# except with old shells:
4627build_os=$*
4628IFS=$ac_save_IFS
4629case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4630
4631
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4633$as_echo_n "checking host system type... " >&6; }
4634if ${ac_cv_host+:} false; then :
4635  $as_echo_n "(cached) " >&6
4636else
4637  if test "x$host_alias" = x; then
4638  ac_cv_host=$ac_cv_build
4639else
4640  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4641    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4642fi
4643
4644fi
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4646$as_echo "$ac_cv_host" >&6; }
4647case $ac_cv_host in
4648*-*-*) ;;
4649*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4650esac
4651host=$ac_cv_host
4652ac_save_IFS=$IFS; IFS='-'
4653set x $ac_cv_host
4654shift
4655host_cpu=$1
4656host_vendor=$2
4657shift; shift
4658# Remember, the first character of IFS is used to create $*,
4659# except with old shells:
4660host_os=$*
4661IFS=$ac_save_IFS
4662case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4663
4664
4665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4666$as_echo_n "checking target system type... " >&6; }
4667if ${ac_cv_target+:} false; then :
4668  $as_echo_n "(cached) " >&6
4669else
4670  if test "x$target_alias" = x; then
4671  ac_cv_target=$ac_cv_host
4672else
4673  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4674    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4675fi
4676
4677fi
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4679$as_echo "$ac_cv_target" >&6; }
4680case $ac_cv_target in
4681*-*-*) ;;
4682*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4683esac
4684target=$ac_cv_target
4685ac_save_IFS=$IFS; IFS='-'
4686set x $ac_cv_target
4687shift
4688target_cpu=$1
4689target_vendor=$2
4690shift; shift
4691# Remember, the first character of IFS is used to create $*,
4692# except with old shells:
4693target_os=$*
4694IFS=$ac_save_IFS
4695case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4696
4697
4698# The aliases save the names the user supplied, while $host etc.
4699# will get canonicalized.
4700test -n "$target_alias" &&
4701  test "$program_prefix$program_suffix$program_transform_name" = \
4702    NONENONEs,x,x, &&
4703  program_prefix=${target_alias}-
4704
4705echo "Configuring APR library"
4706echo "Platform: $host"
4707
4708
4709
4710# Absolute source/build directory
4711apr_srcdir=`(cd $srcdir && pwd)`
4712apr_builddir=`pwd`
4713
4714
4715
4716if test "$apr_builddir" != "$apr_srcdir"; then
4717  USE_VPATH=1
4718  APR_CONFIG_LOCATION=build
4719else
4720  APR_CONFIG_LOCATION=source
4721fi
4722
4723
4724
4725# Libtool might need this symbol -- it must point to the location of
4726# the generated libtool script (not necessarily the "top" build dir).
4727#
4728top_builddir="$apr_builddir"
4729
4730
4731# Directory containing apr build macros, helpers, and make rules
4732# NOTE: make rules (apr_rules.mk) will be in the builddir for vpath
4733#
4734apr_buildout=$apr_builddir/build
4735apr_builders=$apr_srcdir/build
4736
4737
4738MKDIR=$apr_builders/mkdir.sh
4739
4740
4741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkdir -p" >&5
4742$as_echo_n "checking for working mkdir -p... " >&6; }
4743if ${ac_cv_mkdir_p+:} false; then :
4744  $as_echo_n "(cached) " >&6
4745else
4746
4747    test -d conftestdir && rm -rf conftestdir
4748    mkdir -p conftestdir/somedir >/dev/null 2>&1
4749    if test -d conftestdir/somedir; then
4750      ac_cv_mkdir_p=yes
4751    else
4752      ac_cv_mkdir_p=no
4753    fi
4754    rm -rf conftestdir
4755
4756fi
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p" >&5
4758$as_echo "$ac_cv_mkdir_p" >&6; }
4759  if test "$ac_cv_mkdir_p" = "yes"; then
4760      mkdir_p="mkdir -p"
4761  else
4762      mkdir_p="$apr_builders/mkdir.sh"
4763  fi
4764
4765
4766# get our version information
4767get_version="$apr_builders/get-version.sh"
4768version_hdr="$apr_srcdir/include/apr_version.h"
4769APR_MAJOR_VERSION="`$get_version major $version_hdr APR`"
4770APR_DOTTED_VERSION="`$get_version all $version_hdr APR`"
4771
4772
4773
4774
4775echo "APR Version: ${APR_DOTTED_VERSION}"
4776
4777
4778# Check whether --enable-layout was given.
4779if test "${enable_layout+set}" = set; then :
4780  enableval=$enable_layout;
4781  LAYOUT=$enableval
4782
4783fi
4784
4785
4786if test -z "$LAYOUT"; then
4787  LAYOUT="apr"
4788fi
4789
4790  if test ! -f $srcdir/config.layout; then
4791    echo "** Error: Layout file $srcdir/config.layout not found"
4792    echo "** Error: Cannot use undefined layout '$LAYOUT'"
4793    exit 1
4794  fi
4795  # Catch layout names including a slash which will otherwise
4796  # confuse the heck out of the sed script.
4797  case $LAYOUT in
4798  */*)
4799    echo "** Error: $LAYOUT is not a valid layout name"
4800    exit 1 ;;
4801  esac
4802  pldconf=./config.pld
4803
4804  sed -e "1s/[ 	]*<[lL]ayout[ 	]*$LAYOUT[ 	]*>[ 	]*//;1t" \
4805      -e "1,/[ 	]*<[lL]ayout[ 	]*$LAYOUT[ 	]*>[ 	]*/d" \
4806      -e '/[ 	]*<\/Layout>[ 	]*/,$d' \
4807      -e "s/^[ 	]*//g" \
4808      -e "s/:[ 	]*/=\'/g" \
4809      -e "s/[ 	]*$/'/g" \
4810      $srcdir/config.layout > $pldconf
4811  layout_name=$LAYOUT
4812  if test ! -s $pldconf; then
4813    echo "** Error: unable to find layout $layout_name"
4814    exit 1
4815  fi
4816  . $pldconf
4817  rm $pldconf
4818  for var in prefix exec_prefix bindir sbindir libexecdir mandir \
4819             sysconfdir datadir includedir localstatedir runtimedir \
4820             logfiledir libdir installbuilddir libsuffix ; do
4821    eval "val=\"\$$var\""
4822    case $val in
4823      *+)
4824        val=`echo $val | sed -e 's;\+$;;'`
4825        eval "$var=\"\$val\""
4826        autosuffix=yes
4827        ;;
4828      *)
4829        autosuffix=no
4830        ;;
4831    esac
4832    val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
4833    val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
4834    if test "$autosuffix" = "yes"; then
4835      if echo $val | grep apache >/dev/null; then
4836        addtarget=no
4837      else
4838        addtarget=yes
4839      fi
4840      if test "$addtarget" = "yes"; then
4841        val="$val/apache2"
4842      fi
4843    fi
4844    eval "$var='$val'"
4845  done
4846
4847
4848
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5
4850$as_echo_n "checking for chosen layout... " >&6; }
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $layout_name" >&5
4852$as_echo "$layout_name" >&6; }
4853
4854
4855ac_prev=
4856# Retrieve the command-line arguments.  The eval is needed because
4857# the arguments are quoted to preserve accuracy.
4858eval "set x $ac_configure_args"
4859shift
4860for ac_option
4861do
4862  # If the previous option needs an argument, assign it.
4863  if test -n "$ac_prev"; then
4864    eval "$ac_prev=\$ac_option"
4865    ac_prev=
4866    continue
4867  fi
4868
4869  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
4870
4871  case $ac_option in
4872
4873  -bindir | --bindir | --bindi | --bind | --bin | --bi)
4874    ac_prev=bindir ;;
4875  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
4876    bindir="$ac_optarg" ;;
4877
4878  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
4879    ac_prev=datadir ;;
4880  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
4881  | --da=*)
4882    datadir="$ac_optarg" ;;
4883
4884  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
4885  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
4886  | --exec | --exe | --ex)
4887    ac_prev=exec_prefix ;;
4888  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
4889  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
4890  | --exec=* | --exe=* | --ex=*)
4891    exec_prefix="$ac_optarg" ;;
4892
4893  -includedir | --includedir | --includedi | --included | --include \
4894  | --includ | --inclu | --incl | --inc)
4895    ac_prev=includedir ;;
4896  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
4897  | --includ=* | --inclu=* | --incl=* | --inc=*)
4898    includedir="$ac_optarg" ;;
4899
4900  -infodir | --infodir | --infodi | --infod | --info | --inf)
4901    ac_prev=infodir ;;
4902  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
4903    infodir="$ac_optarg" ;;
4904
4905  -libdir | --libdir | --libdi | --libd)
4906    ac_prev=libdir ;;
4907  -libdir=* | --libdir=* | --libdi=* | --libd=*)
4908    libdir="$ac_optarg" ;;
4909
4910  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
4911  | --libexe | --libex | --libe)
4912    ac_prev=libexecdir ;;
4913  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
4914  | --libexe=* | --libex=* | --libe=*)
4915    libexecdir="$ac_optarg" ;;
4916
4917  -localstatedir | --localstatedir | --localstatedi | --localstated \
4918  | --localstate | --localstat | --localsta | --localst \
4919  | --locals | --local | --loca | --loc | --lo)
4920    ac_prev=localstatedir ;;
4921  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
4922  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
4923  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
4924    localstatedir="$ac_optarg" ;;
4925
4926  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
4927    ac_prev=mandir ;;
4928  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
4929    mandir="$ac_optarg" ;;
4930
4931  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4932    ac_prev=prefix ;;
4933  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4934    prefix="$ac_optarg" ;;
4935
4936  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
4937    ac_prev=sbindir ;;
4938  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
4939  | --sbi=* | --sb=*)
4940    sbindir="$ac_optarg" ;;
4941
4942  -sharedstatedir | --sharedstatedir | --sharedstatedi \
4943  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
4944  | --sharedst | --shareds | --shared | --share | --shar \
4945  | --sha | --sh)
4946    ac_prev=sharedstatedir ;;
4947  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
4948  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
4949  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
4950  | --sha=* | --sh=*)
4951    sharedstatedir="$ac_optarg" ;;
4952
4953  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
4954  | --syscon | --sysco | --sysc | --sys | --sy)
4955    ac_prev=sysconfdir ;;
4956  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
4957  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
4958    sysconfdir="$ac_optarg" ;;
4959
4960  esac
4961done
4962
4963# Be sure to have absolute paths.
4964for ac_var in exec_prefix prefix
4965do
4966  eval ac_val=$`echo $ac_var`
4967  case $ac_val in
4968    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
4969    *)  as_fn_error $? "expected an absolute path for --$ac_var: $ac_val" "$LINENO" 5;;
4970  esac
4971done
4972
4973
4974
4975
4976case "$host" in
4977  *-apple-aux3*)
4978
4979  if test -z "$CC"; then
4980    test "x$silent" != "xyes" && echo "  setting CC to \"gcc\""
4981    CC="gcc"
4982  fi
4983
4984      ;;
4985  bs2000*-siemens-sysv*)
4986
4987  if test -z "$CC"; then
4988    test "x$silent" != "xyes" && echo "  setting CC to \"c89 -XLLML -XLLMK -XL -Kno_integer_overflow\""
4989    CC="c89 -XLLML -XLLMK -XL -Kno_integer_overflow"
4990  fi
4991
4992      ;;
4993  *convex-v11*)
4994
4995  if test -z "$CC"; then
4996    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
4997    CC="cc"
4998  fi
4999
5000      ;;
5001  *-ibm-os390)
5002
5003  if test -z "$CC"; then
5004    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
5005    CC="cc"
5006  fi
5007
5008      ;;
5009  *-ibm-as400)
5010
5011  if test -z "$CC"; then
5012    test "x$silent" != "xyes" && echo "  setting CC to \"icc\""
5013    CC="icc"
5014  fi
5015
5016      ;;
5017  *-isc4*)
5018
5019  if test -z "$CC"; then
5020    test "x$silent" != "xyes" && echo "  setting CC to \"gcc\""
5021    CC="gcc"
5022  fi
5023
5024      ;;
5025  m88k-*-CX/SX|CYBER)
5026
5027  if test -z "$CC"; then
5028    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
5029    CC="cc"
5030  fi
5031
5032      ;;
5033  *-next-openstep*)
5034
5035  if test -z "$CC"; then
5036    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
5037    CC="cc"
5038  fi
5039
5040      ;;
5041  *-qnx32)
5042
5043  if test -z "$CC"; then
5044    test "x$silent" != "xyes" && echo "  setting CC to \"cc -F\""
5045    CC="cc -F"
5046  fi
5047
5048      ;;
5049  *-tandem-oss)
5050
5051  if test -z "$CC"; then
5052    test "x$silent" != "xyes" && echo "  setting CC to \"c89\""
5053    CC="c89"
5054  fi
5055
5056      ;;
5057  TPF)
5058
5059  if test -z "$CC"; then
5060    test "x$silent" != "xyes" && echo "  setting CC to \"c89\""
5061    CC="c89"
5062  fi
5063
5064      ;;
5065esac
5066
5067
5068ac_ext=c
5069ac_cpp='$CPP $CPPFLAGS'
5070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5072ac_compiler_gnu=$ac_cv_c_compiler_gnu
5073if test -n "$ac_tool_prefix"; then
5074  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5075set dummy ${ac_tool_prefix}gcc; ac_word=$2
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077$as_echo_n "checking for $ac_word... " >&6; }
5078if ${ac_cv_prog_CC+:} false; then :
5079  $as_echo_n "(cached) " >&6
5080else
5081  if test -n "$CC"; then
5082  ac_cv_prog_CC="$CC" # Let the user override the test.
5083else
5084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085for as_dir in $PATH
5086do
5087  IFS=$as_save_IFS
5088  test -z "$as_dir" && as_dir=.
5089    for ac_exec_ext in '' $ac_executable_extensions; do
5090  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5092    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093    break 2
5094  fi
5095done
5096  done
5097IFS=$as_save_IFS
5098
5099fi
5100fi
5101CC=$ac_cv_prog_CC
5102if test -n "$CC"; then
5103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5104$as_echo "$CC" >&6; }
5105else
5106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107$as_echo "no" >&6; }
5108fi
5109
5110
5111fi
5112if test -z "$ac_cv_prog_CC"; then
5113  ac_ct_CC=$CC
5114  # Extract the first word of "gcc", so it can be a program name with args.
5115set dummy gcc; ac_word=$2
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117$as_echo_n "checking for $ac_word... " >&6; }
5118if ${ac_cv_prog_ac_ct_CC+:} false; then :
5119  $as_echo_n "(cached) " >&6
5120else
5121  if test -n "$ac_ct_CC"; then
5122  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5123else
5124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125for as_dir in $PATH
5126do
5127  IFS=$as_save_IFS
5128  test -z "$as_dir" && as_dir=.
5129    for ac_exec_ext in '' $ac_executable_extensions; do
5130  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5131    ac_cv_prog_ac_ct_CC="gcc"
5132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133    break 2
5134  fi
5135done
5136  done
5137IFS=$as_save_IFS
5138
5139fi
5140fi
5141ac_ct_CC=$ac_cv_prog_ac_ct_CC
5142if test -n "$ac_ct_CC"; then
5143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5144$as_echo "$ac_ct_CC" >&6; }
5145else
5146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147$as_echo "no" >&6; }
5148fi
5149
5150  if test "x$ac_ct_CC" = x; then
5151    CC=""
5152  else
5153    case $cross_compiling:$ac_tool_warned in
5154yes:)
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5157ac_tool_warned=yes ;;
5158esac
5159    CC=$ac_ct_CC
5160  fi
5161else
5162  CC="$ac_cv_prog_CC"
5163fi
5164
5165if test -z "$CC"; then
5166          if test -n "$ac_tool_prefix"; then
5167    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5168set dummy ${ac_tool_prefix}cc; ac_word=$2
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170$as_echo_n "checking for $ac_word... " >&6; }
5171if ${ac_cv_prog_CC+:} false; then :
5172  $as_echo_n "(cached) " >&6
5173else
5174  if test -n "$CC"; then
5175  ac_cv_prog_CC="$CC" # Let the user override the test.
5176else
5177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178for as_dir in $PATH
5179do
5180  IFS=$as_save_IFS
5181  test -z "$as_dir" && as_dir=.
5182    for ac_exec_ext in '' $ac_executable_extensions; do
5183  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184    ac_cv_prog_CC="${ac_tool_prefix}cc"
5185    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186    break 2
5187  fi
5188done
5189  done
5190IFS=$as_save_IFS
5191
5192fi
5193fi
5194CC=$ac_cv_prog_CC
5195if test -n "$CC"; then
5196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5197$as_echo "$CC" >&6; }
5198else
5199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200$as_echo "no" >&6; }
5201fi
5202
5203
5204  fi
5205fi
5206if test -z "$CC"; then
5207  # Extract the first word of "cc", so it can be a program name with args.
5208set dummy cc; ac_word=$2
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210$as_echo_n "checking for $ac_word... " >&6; }
5211if ${ac_cv_prog_CC+:} false; then :
5212  $as_echo_n "(cached) " >&6
5213else
5214  if test -n "$CC"; then
5215  ac_cv_prog_CC="$CC" # Let the user override the test.
5216else
5217  ac_prog_rejected=no
5218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH
5220do
5221  IFS=$as_save_IFS
5222  test -z "$as_dir" && as_dir=.
5223    for ac_exec_ext in '' $ac_executable_extensions; do
5224  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5226       ac_prog_rejected=yes
5227       continue
5228     fi
5229    ac_cv_prog_CC="cc"
5230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231    break 2
5232  fi
5233done
5234  done
5235IFS=$as_save_IFS
5236
5237if test $ac_prog_rejected = yes; then
5238  # We found a bogon in the path, so make sure we never use it.
5239  set dummy $ac_cv_prog_CC
5240  shift
5241  if test $# != 0; then
5242    # We chose a different compiler from the bogus one.
5243    # However, it has the same basename, so the bogon will be chosen
5244    # first if we set CC to just the basename; use the full file name.
5245    shift
5246    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5247  fi
5248fi
5249fi
5250fi
5251CC=$ac_cv_prog_CC
5252if test -n "$CC"; then
5253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5254$as_echo "$CC" >&6; }
5255else
5256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257$as_echo "no" >&6; }
5258fi
5259
5260
5261fi
5262if test -z "$CC"; then
5263  if test -n "$ac_tool_prefix"; then
5264  for ac_prog in cl.exe
5265  do
5266    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5267set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269$as_echo_n "checking for $ac_word... " >&6; }
5270if ${ac_cv_prog_CC+:} false; then :
5271  $as_echo_n "(cached) " >&6
5272else
5273  if test -n "$CC"; then
5274  ac_cv_prog_CC="$CC" # Let the user override the test.
5275else
5276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277for as_dir in $PATH
5278do
5279  IFS=$as_save_IFS
5280  test -z "$as_dir" && as_dir=.
5281    for ac_exec_ext in '' $ac_executable_extensions; do
5282  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285    break 2
5286  fi
5287done
5288  done
5289IFS=$as_save_IFS
5290
5291fi
5292fi
5293CC=$ac_cv_prog_CC
5294if test -n "$CC"; then
5295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5296$as_echo "$CC" >&6; }
5297else
5298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299$as_echo "no" >&6; }
5300fi
5301
5302
5303    test -n "$CC" && break
5304  done
5305fi
5306if test -z "$CC"; then
5307  ac_ct_CC=$CC
5308  for ac_prog in cl.exe
5309do
5310  # Extract the first word of "$ac_prog", so it can be a program name with args.
5311set dummy $ac_prog; ac_word=$2
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313$as_echo_n "checking for $ac_word... " >&6; }
5314if ${ac_cv_prog_ac_ct_CC+:} false; then :
5315  $as_echo_n "(cached) " >&6
5316else
5317  if test -n "$ac_ct_CC"; then
5318  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5319else
5320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321for as_dir in $PATH
5322do
5323  IFS=$as_save_IFS
5324  test -z "$as_dir" && as_dir=.
5325    for ac_exec_ext in '' $ac_executable_extensions; do
5326  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327    ac_cv_prog_ac_ct_CC="$ac_prog"
5328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329    break 2
5330  fi
5331done
5332  done
5333IFS=$as_save_IFS
5334
5335fi
5336fi
5337ac_ct_CC=$ac_cv_prog_ac_ct_CC
5338if test -n "$ac_ct_CC"; then
5339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5340$as_echo "$ac_ct_CC" >&6; }
5341else
5342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343$as_echo "no" >&6; }
5344fi
5345
5346
5347  test -n "$ac_ct_CC" && break
5348done
5349
5350  if test "x$ac_ct_CC" = x; then
5351    CC=""
5352  else
5353    case $cross_compiling:$ac_tool_warned in
5354yes:)
5355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5357ac_tool_warned=yes ;;
5358esac
5359    CC=$ac_ct_CC
5360  fi
5361fi
5362
5363fi
5364
5365
5366test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5368as_fn_error $? "no acceptable C compiler found in \$PATH
5369See \`config.log' for more details" "$LINENO" 5; }
5370
5371# Provide some information about the compiler.
5372$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5373set X $ac_compile
5374ac_compiler=$2
5375for ac_option in --version -v -V -qversion; do
5376  { { ac_try="$ac_compiler $ac_option >&5"
5377case "(($ac_try" in
5378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379  *) ac_try_echo=$ac_try;;
5380esac
5381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5382$as_echo "$ac_try_echo"; } >&5
5383  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5384  ac_status=$?
5385  if test -s conftest.err; then
5386    sed '10a\
5387... rest of stderr output deleted ...
5388         10q' conftest.err >conftest.er1
5389    cat conftest.er1 >&5
5390  fi
5391  rm -f conftest.er1 conftest.err
5392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5393  test $ac_status = 0; }
5394done
5395
5396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397/* end confdefs.h.  */
5398
5399int
5400main ()
5401{
5402
5403  ;
5404  return 0;
5405}
5406_ACEOF
5407ac_clean_files_save=$ac_clean_files
5408ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5409# Try to create an executable without -o first, disregard a.out.
5410# It will help us diagnose broken compilers, and finding out an intuition
5411# of exeext.
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5413$as_echo_n "checking whether the C compiler works... " >&6; }
5414ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5415
5416# The possible output files:
5417ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5418
5419ac_rmfiles=
5420for ac_file in $ac_files
5421do
5422  case $ac_file in
5423    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5424    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5425  esac
5426done
5427rm -f $ac_rmfiles
5428
5429if { { ac_try="$ac_link_default"
5430case "(($ac_try" in
5431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432  *) ac_try_echo=$ac_try;;
5433esac
5434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5435$as_echo "$ac_try_echo"; } >&5
5436  (eval "$ac_link_default") 2>&5
5437  ac_status=$?
5438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5439  test $ac_status = 0; }; then :
5440  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5441# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5442# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5443# so that the user can short-circuit this test for compilers unknown to
5444# Autoconf.
5445for ac_file in $ac_files ''
5446do
5447  test -f "$ac_file" || continue
5448  case $ac_file in
5449    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5450	;;
5451    [ab].out )
5452	# We found the default executable, but exeext='' is most
5453	# certainly right.
5454	break;;
5455    *.* )
5456	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5457	then :; else
5458	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5459	fi
5460	# We set ac_cv_exeext here because the later test for it is not
5461	# safe: cross compilers may not add the suffix if given an `-o'
5462	# argument, so we may need to know it at that point already.
5463	# Even if this section looks crufty: it has the advantage of
5464	# actually working.
5465	break;;
5466    * )
5467	break;;
5468  esac
5469done
5470test "$ac_cv_exeext" = no && ac_cv_exeext=
5471
5472else
5473  ac_file=''
5474fi
5475if test -z "$ac_file"; then :
5476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477$as_echo "no" >&6; }
5478$as_echo "$as_me: failed program was:" >&5
5479sed 's/^/| /' conftest.$ac_ext >&5
5480
5481{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5483as_fn_error 77 "C compiler cannot create executables
5484See \`config.log' for more details" "$LINENO" 5; }
5485else
5486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5487$as_echo "yes" >&6; }
5488fi
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5490$as_echo_n "checking for C compiler default output file name... " >&6; }
5491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5492$as_echo "$ac_file" >&6; }
5493ac_exeext=$ac_cv_exeext
5494
5495rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5496ac_clean_files=$ac_clean_files_save
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5498$as_echo_n "checking for suffix of executables... " >&6; }
5499if { { ac_try="$ac_link"
5500case "(($ac_try" in
5501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502  *) ac_try_echo=$ac_try;;
5503esac
5504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5505$as_echo "$ac_try_echo"; } >&5
5506  (eval "$ac_link") 2>&5
5507  ac_status=$?
5508  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5509  test $ac_status = 0; }; then :
5510  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5511# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5512# work properly (i.e., refer to `conftest.exe'), while it won't with
5513# `rm'.
5514for ac_file in conftest.exe conftest conftest.*; do
5515  test -f "$ac_file" || continue
5516  case $ac_file in
5517    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5518    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5519	  break;;
5520    * ) break;;
5521  esac
5522done
5523else
5524  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5526as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5527See \`config.log' for more details" "$LINENO" 5; }
5528fi
5529rm -f conftest conftest$ac_cv_exeext
5530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5531$as_echo "$ac_cv_exeext" >&6; }
5532
5533rm -f conftest.$ac_ext
5534EXEEXT=$ac_cv_exeext
5535ac_exeext=$EXEEXT
5536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537/* end confdefs.h.  */
5538#include <stdio.h>
5539int
5540main ()
5541{
5542FILE *f = fopen ("conftest.out", "w");
5543 return ferror (f) || fclose (f) != 0;
5544
5545  ;
5546  return 0;
5547}
5548_ACEOF
5549ac_clean_files="$ac_clean_files conftest.out"
5550# Check that the compiler produces executables we can run.  If not, either
5551# the compiler is broken, or we cross compile.
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5553$as_echo_n "checking whether we are cross compiling... " >&6; }
5554if test "$cross_compiling" != yes; then
5555  { { ac_try="$ac_link"
5556case "(($ac_try" in
5557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558  *) ac_try_echo=$ac_try;;
5559esac
5560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5561$as_echo "$ac_try_echo"; } >&5
5562  (eval "$ac_link") 2>&5
5563  ac_status=$?
5564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5565  test $ac_status = 0; }
5566  if { ac_try='./conftest$ac_cv_exeext'
5567  { { case "(($ac_try" in
5568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569  *) ac_try_echo=$ac_try;;
5570esac
5571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5572$as_echo "$ac_try_echo"; } >&5
5573  (eval "$ac_try") 2>&5
5574  ac_status=$?
5575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5576  test $ac_status = 0; }; }; then
5577    cross_compiling=no
5578  else
5579    if test "$cross_compiling" = maybe; then
5580	cross_compiling=yes
5581    else
5582	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5584as_fn_error $? "cannot run C compiled programs.
5585If you meant to cross compile, use \`--host'.
5586See \`config.log' for more details" "$LINENO" 5; }
5587    fi
5588  fi
5589fi
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5591$as_echo "$cross_compiling" >&6; }
5592
5593rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5594ac_clean_files=$ac_clean_files_save
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5596$as_echo_n "checking for suffix of object files... " >&6; }
5597if ${ac_cv_objext+:} false; then :
5598  $as_echo_n "(cached) " >&6
5599else
5600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601/* end confdefs.h.  */
5602
5603int
5604main ()
5605{
5606
5607  ;
5608  return 0;
5609}
5610_ACEOF
5611rm -f conftest.o conftest.obj
5612if { { ac_try="$ac_compile"
5613case "(($ac_try" in
5614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615  *) ac_try_echo=$ac_try;;
5616esac
5617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5618$as_echo "$ac_try_echo"; } >&5
5619  (eval "$ac_compile") 2>&5
5620  ac_status=$?
5621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5622  test $ac_status = 0; }; then :
5623  for ac_file in conftest.o conftest.obj conftest.*; do
5624  test -f "$ac_file" || continue;
5625  case $ac_file in
5626    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5627    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5628       break;;
5629  esac
5630done
5631else
5632  $as_echo "$as_me: failed program was:" >&5
5633sed 's/^/| /' conftest.$ac_ext >&5
5634
5635{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5637as_fn_error $? "cannot compute suffix of object files: cannot compile
5638See \`config.log' for more details" "$LINENO" 5; }
5639fi
5640rm -f conftest.$ac_cv_objext conftest.$ac_ext
5641fi
5642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5643$as_echo "$ac_cv_objext" >&6; }
5644OBJEXT=$ac_cv_objext
5645ac_objext=$OBJEXT
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5647$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5648if ${ac_cv_c_compiler_gnu+:} false; then :
5649  $as_echo_n "(cached) " >&6
5650else
5651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652/* end confdefs.h.  */
5653
5654int
5655main ()
5656{
5657#ifndef __GNUC__
5658       choke me
5659#endif
5660
5661  ;
5662  return 0;
5663}
5664_ACEOF
5665if ac_fn_c_try_compile "$LINENO"; then :
5666  ac_compiler_gnu=yes
5667else
5668  ac_compiler_gnu=no
5669fi
5670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5671ac_cv_c_compiler_gnu=$ac_compiler_gnu
5672
5673fi
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5675$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5676if test $ac_compiler_gnu = yes; then
5677  GCC=yes
5678else
5679  GCC=
5680fi
5681ac_test_CFLAGS=${CFLAGS+set}
5682ac_save_CFLAGS=$CFLAGS
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5684$as_echo_n "checking whether $CC accepts -g... " >&6; }
5685if ${ac_cv_prog_cc_g+:} false; then :
5686  $as_echo_n "(cached) " >&6
5687else
5688  ac_save_c_werror_flag=$ac_c_werror_flag
5689   ac_c_werror_flag=yes
5690   ac_cv_prog_cc_g=no
5691   CFLAGS="-g"
5692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693/* end confdefs.h.  */
5694
5695int
5696main ()
5697{
5698
5699  ;
5700  return 0;
5701}
5702_ACEOF
5703if ac_fn_c_try_compile "$LINENO"; then :
5704  ac_cv_prog_cc_g=yes
5705else
5706  CFLAGS=""
5707      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708/* end confdefs.h.  */
5709
5710int
5711main ()
5712{
5713
5714  ;
5715  return 0;
5716}
5717_ACEOF
5718if ac_fn_c_try_compile "$LINENO"; then :
5719
5720else
5721  ac_c_werror_flag=$ac_save_c_werror_flag
5722	 CFLAGS="-g"
5723	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724/* end confdefs.h.  */
5725
5726int
5727main ()
5728{
5729
5730  ;
5731  return 0;
5732}
5733_ACEOF
5734if ac_fn_c_try_compile "$LINENO"; then :
5735  ac_cv_prog_cc_g=yes
5736fi
5737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5738fi
5739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5740fi
5741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742   ac_c_werror_flag=$ac_save_c_werror_flag
5743fi
5744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5745$as_echo "$ac_cv_prog_cc_g" >&6; }
5746if test "$ac_test_CFLAGS" = set; then
5747  CFLAGS=$ac_save_CFLAGS
5748elif test $ac_cv_prog_cc_g = yes; then
5749  if test "$GCC" = yes; then
5750    CFLAGS="-g -O2"
5751  else
5752    CFLAGS="-g"
5753  fi
5754else
5755  if test "$GCC" = yes; then
5756    CFLAGS="-O2"
5757  else
5758    CFLAGS=
5759  fi
5760fi
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5762$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5763if ${ac_cv_prog_cc_c89+:} false; then :
5764  $as_echo_n "(cached) " >&6
5765else
5766  ac_cv_prog_cc_c89=no
5767ac_save_CC=$CC
5768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769/* end confdefs.h.  */
5770#include <stdarg.h>
5771#include <stdio.h>
5772struct stat;
5773/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5774struct buf { int x; };
5775FILE * (*rcsopen) (struct buf *, struct stat *, int);
5776static char *e (p, i)
5777     char **p;
5778     int i;
5779{
5780  return p[i];
5781}
5782static char *f (char * (*g) (char **, int), char **p, ...)
5783{
5784  char *s;
5785  va_list v;
5786  va_start (v,p);
5787  s = g (p, va_arg (v,int));
5788  va_end (v);
5789  return s;
5790}
5791
5792/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5793   function prototypes and stuff, but not '\xHH' hex character constants.
5794   These don't provoke an error unfortunately, instead are silently treated
5795   as 'x'.  The following induces an error, until -std is added to get
5796   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5797   array size at least.  It's necessary to write '\x00'==0 to get something
5798   that's true only with -std.  */
5799int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5800
5801/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5802   inside strings and character constants.  */
5803#define FOO(x) 'x'
5804int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5805
5806int test (int i, double x);
5807struct s1 {int (*f) (int a);};
5808struct s2 {int (*f) (double a);};
5809int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5810int argc;
5811char **argv;
5812int
5813main ()
5814{
5815return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5816  ;
5817  return 0;
5818}
5819_ACEOF
5820for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5821	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5822do
5823  CC="$ac_save_CC $ac_arg"
5824  if ac_fn_c_try_compile "$LINENO"; then :
5825  ac_cv_prog_cc_c89=$ac_arg
5826fi
5827rm -f core conftest.err conftest.$ac_objext
5828  test "x$ac_cv_prog_cc_c89" != "xno" && break
5829done
5830rm -f conftest.$ac_ext
5831CC=$ac_save_CC
5832
5833fi
5834# AC_CACHE_VAL
5835case "x$ac_cv_prog_cc_c89" in
5836  x)
5837    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5838$as_echo "none needed" >&6; } ;;
5839  xno)
5840    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5841$as_echo "unsupported" >&6; } ;;
5842  *)
5843    CC="$CC $ac_cv_prog_cc_c89"
5844    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5845$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5846esac
5847if test "x$ac_cv_prog_cc_c89" != xno; then :
5848
5849fi
5850
5851ac_ext=c
5852ac_cpp='$CPP $CPPFLAGS'
5853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5855ac_compiler_gnu=$ac_cv_c_compiler_gnu
5856
5857
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5859$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5860if ${ac_cv_path_SED+:} false; then :
5861  $as_echo_n "(cached) " >&6
5862else
5863            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5864     for ac_i in 1 2 3 4 5 6 7; do
5865       ac_script="$ac_script$as_nl$ac_script"
5866     done
5867     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5868     { ac_script=; unset ac_script;}
5869     if test -z "$SED"; then
5870  ac_path_SED_found=false
5871  # Loop through the user's path and test for each of PROGNAME-LIST
5872  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873for as_dir in $PATH
5874do
5875  IFS=$as_save_IFS
5876  test -z "$as_dir" && as_dir=.
5877    for ac_prog in sed gsed; do
5878    for ac_exec_ext in '' $ac_executable_extensions; do
5879      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5880      as_fn_executable_p "$ac_path_SED" || continue
5881# Check for GNU ac_path_SED and select it if it is found.
5882  # Check for GNU $ac_path_SED
5883case `"$ac_path_SED" --version 2>&1` in
5884*GNU*)
5885  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5886*)
5887  ac_count=0
5888  $as_echo_n 0123456789 >"conftest.in"
5889  while :
5890  do
5891    cat "conftest.in" "conftest.in" >"conftest.tmp"
5892    mv "conftest.tmp" "conftest.in"
5893    cp "conftest.in" "conftest.nl"
5894    $as_echo '' >> "conftest.nl"
5895    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5896    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5897    as_fn_arith $ac_count + 1 && ac_count=$as_val
5898    if test $ac_count -gt ${ac_path_SED_max-0}; then
5899      # Best one so far, save it but keep looking for a better one
5900      ac_cv_path_SED="$ac_path_SED"
5901      ac_path_SED_max=$ac_count
5902    fi
5903    # 10*(2^10) chars as input seems more than enough
5904    test $ac_count -gt 10 && break
5905  done
5906  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5907esac
5908
5909      $ac_path_SED_found && break 3
5910    done
5911  done
5912  done
5913IFS=$as_save_IFS
5914  if test -z "$ac_cv_path_SED"; then
5915    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5916  fi
5917else
5918  ac_cv_path_SED=$SED
5919fi
5920
5921fi
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5923$as_echo "$ac_cv_path_SED" >&6; }
5924 SED="$ac_cv_path_SED"
5925  rm -f conftest.sed
5926
5927
5928
5929if test "x$apr_preload_done" != "xyes" ; then
5930
5931  apr_preload_done="yes"
5932
5933  echo "Applying APR hints file rules for $host"
5934
5935  case "$host" in
5936    *mint)
5937
5938  if test "x$CPPFLAGS" = "x"; then
5939    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DMINT -D_GNU_SOURCE\""
5940    CPPFLAGS="-DMINT -D_GNU_SOURCE"
5941  else
5942    apr_addto_bugger="-DMINT -D_GNU_SOURCE"
5943    for i in $apr_addto_bugger; do
5944      apr_addto_duplicate="0"
5945      for j in $CPPFLAGS; do
5946        if test "x$i" = "x$j"; then
5947          apr_addto_duplicate="1"
5948          break
5949        fi
5950      done
5951      if test $apr_addto_duplicate = "0"; then
5952        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5953        CPPFLAGS="$CPPFLAGS $i"
5954      fi
5955    done
5956  fi
5957
5958	;;
5959    *MPE/iX*)
5960
5961  if test "x$CPPFLAGS" = "x"; then
5962    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE\""
5963    CPPFLAGS="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
5964  else
5965    apr_addto_bugger="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
5966    for i in $apr_addto_bugger; do
5967      apr_addto_duplicate="0"
5968      for j in $CPPFLAGS; do
5969        if test "x$i" = "x$j"; then
5970          apr_addto_duplicate="1"
5971          break
5972        fi
5973      done
5974      if test $apr_addto_duplicate = "0"; then
5975        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5976        CPPFLAGS="$CPPFLAGS $i"
5977      fi
5978    done
5979  fi
5980
5981
5982  if test "x$LIBS" = "x"; then
5983    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lsvipc -lcurses\""
5984    LIBS="-lsvipc -lcurses"
5985  else
5986    apr_addto_bugger="-lsvipc -lcurses"
5987    for i in $apr_addto_bugger; do
5988      apr_addto_duplicate="0"
5989      for j in $LIBS; do
5990        if test "x$i" = "x$j"; then
5991          apr_addto_duplicate="1"
5992          break
5993        fi
5994      done
5995      if test $apr_addto_duplicate = "0"; then
5996        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
5997        LIBS="$LIBS $i"
5998      fi
5999    done
6000  fi
6001
6002
6003  if test "x$LDFLAGS" = "x"; then
6004    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\"\""
6005    LDFLAGS="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
6006  else
6007    apr_addto_bugger="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
6008    for i in $apr_addto_bugger; do
6009      apr_addto_duplicate="0"
6010      for j in $LDFLAGS; do
6011        if test "x$i" = "x$j"; then
6012          apr_addto_duplicate="1"
6013          break
6014        fi
6015      done
6016      if test $apr_addto_duplicate = "0"; then
6017        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
6018        LDFLAGS="$LDFLAGS $i"
6019      fi
6020    done
6021  fi
6022
6023	;;
6024    *-apple-aux3*)
6025
6026  if test "x$CPPFLAGS" = "x"; then
6027    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAUX3 -D_POSIX_SOURCE\""
6028    CPPFLAGS="-DAUX3 -D_POSIX_SOURCE"
6029  else
6030    apr_addto_bugger="-DAUX3 -D_POSIX_SOURCE"
6031    for i in $apr_addto_bugger; do
6032      apr_addto_duplicate="0"
6033      for j in $CPPFLAGS; do
6034        if test "x$i" = "x$j"; then
6035          apr_addto_duplicate="1"
6036          break
6037        fi
6038      done
6039      if test $apr_addto_duplicate = "0"; then
6040        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6041        CPPFLAGS="$CPPFLAGS $i"
6042      fi
6043    done
6044  fi
6045
6046
6047  if test "x$LIBS" = "x"; then
6048    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lposix -lbsd\""
6049    LIBS="-lposix -lbsd"
6050  else
6051    apr_addto_bugger="-lposix -lbsd"
6052    for i in $apr_addto_bugger; do
6053      apr_addto_duplicate="0"
6054      for j in $LIBS; do
6055        if test "x$i" = "x$j"; then
6056          apr_addto_duplicate="1"
6057          break
6058        fi
6059      done
6060      if test $apr_addto_duplicate = "0"; then
6061        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6062        LIBS="$LIBS $i"
6063      fi
6064    done
6065  fi
6066
6067
6068  if test "x$LDFLAGS" = "x"; then
6069    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-s\""
6070    LDFLAGS="-s"
6071  else
6072    apr_addto_bugger="-s"
6073    for i in $apr_addto_bugger; do
6074      apr_addto_duplicate="0"
6075      for j in $LDFLAGS; do
6076        if test "x$i" = "x$j"; then
6077          apr_addto_duplicate="1"
6078          break
6079        fi
6080      done
6081      if test $apr_addto_duplicate = "0"; then
6082        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
6083        LDFLAGS="$LDFLAGS $i"
6084      fi
6085    done
6086  fi
6087
6088
6089  test "x$silent" != "xyes" && echo "  forcing SHELL to \"/bin/ksh\""
6090  SHELL="/bin/ksh"
6091
6092	;;
6093    *-ibm-aix*)
6094
6095  if test "x$CPPFLAGS" = "x"; then
6096    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-U__STR__ -D_THREAD_SAFE\""
6097    CPPFLAGS="-U__STR__ -D_THREAD_SAFE"
6098  else
6099    apr_addto_bugger="-U__STR__ -D_THREAD_SAFE"
6100    for i in $apr_addto_bugger; do
6101      apr_addto_duplicate="0"
6102      for j in $CPPFLAGS; do
6103        if test "x$i" = "x$j"; then
6104          apr_addto_duplicate="1"
6105          break
6106        fi
6107      done
6108      if test $apr_addto_duplicate = "0"; then
6109        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6110        CPPFLAGS="$CPPFLAGS $i"
6111      fi
6112    done
6113  fi
6114
6115                case $host in
6116            *-ibm-aix4.3)
6117
6118  if test "x$CPPFLAGS" = "x"; then
6119    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_USE_IRS\""
6120    CPPFLAGS="-D_USE_IRS"
6121  else
6122    apr_addto_bugger="-D_USE_IRS"
6123    for i in $apr_addto_bugger; do
6124      apr_addto_duplicate="0"
6125      for j in $CPPFLAGS; do
6126        if test "x$i" = "x$j"; then
6127          apr_addto_duplicate="1"
6128          break
6129        fi
6130      done
6131      if test $apr_addto_duplicate = "0"; then
6132        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6133        CPPFLAGS="$CPPFLAGS $i"
6134      fi
6135    done
6136  fi
6137
6138	        ;;
6139            *-ibm-aix5*)
6140
6141  if test "x$CPPFLAGS" = "x"; then
6142    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_USE_IRS\""
6143    CPPFLAGS="-D_USE_IRS"
6144  else
6145    apr_addto_bugger="-D_USE_IRS"
6146    for i in $apr_addto_bugger; do
6147      apr_addto_duplicate="0"
6148      for j in $CPPFLAGS; do
6149        if test "x$i" = "x$j"; then
6150          apr_addto_duplicate="1"
6151          break
6152        fi
6153      done
6154      if test $apr_addto_duplicate = "0"; then
6155        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6156        CPPFLAGS="$CPPFLAGS $i"
6157      fi
6158    done
6159  fi
6160
6161	        ;;
6162            *-ibm-aix4.3.*)
6163
6164  if test "x$CPPFLAGS" = "x"; then
6165    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_USE_IRS\""
6166    CPPFLAGS="-D_USE_IRS"
6167  else
6168    apr_addto_bugger="-D_USE_IRS"
6169    for i in $apr_addto_bugger; do
6170      apr_addto_duplicate="0"
6171      for j in $CPPFLAGS; do
6172        if test "x$i" = "x$j"; then
6173          apr_addto_duplicate="1"
6174          break
6175        fi
6176      done
6177      if test $apr_addto_duplicate = "0"; then
6178        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6179        CPPFLAGS="$CPPFLAGS $i"
6180      fi
6181    done
6182  fi
6183
6184                ;;
6185        esac
6186                if $CC 2>&1 | grep 'xlc' > /dev/null; then
6187
6188  if test -z "$AIX_XLC"; then
6189    test "x$silent" != "xyes" && echo "  setting AIX_XLC to \"yes\""
6190    AIX_XLC="yes"
6191  fi
6192
6193
6194  if test "x$CFLAGS" = "x"; then
6195    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-qHALT=E\""
6196    CFLAGS="-qHALT=E"
6197  else
6198    apr_addto_bugger="-qHALT=E"
6199    for i in $apr_addto_bugger; do
6200      apr_addto_duplicate="0"
6201      for j in $CFLAGS; do
6202        if test "x$i" = "x$j"; then
6203          apr_addto_duplicate="1"
6204          break
6205        fi
6206      done
6207      if test $apr_addto_duplicate = "0"; then
6208        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
6209        CFLAGS="$CFLAGS $i"
6210      fi
6211    done
6212  fi
6213
6214        fi
6215
6216  if test -z "$apr_sysvsem_is_global"; then
6217    test "x$silent" != "xyes" && echo "  setting apr_sysvsem_is_global to \"yes\""
6218    apr_sysvsem_is_global="yes"
6219  fi
6220
6221
6222  if test -z "$apr_lock_method"; then
6223    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
6224    apr_lock_method="USE_SYSVSEM_SERIALIZE"
6225  fi
6226
6227        case $host in
6228            *-ibm-aix3* | *-ibm-aix4.1.*)
6229                ;;
6230            *)
6231
6232  if test "x$LDFLAGS" = "x"; then
6233    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Wl,-brtl\""
6234    LDFLAGS="-Wl,-brtl"
6235  else
6236    apr_addto_bugger="-Wl,-brtl"
6237    for i in $apr_addto_bugger; do
6238      apr_addto_duplicate="0"
6239      for j in $LDFLAGS; do
6240        if test "x$i" = "x$j"; then
6241          apr_addto_duplicate="1"
6242          break
6243        fi
6244      done
6245      if test $apr_addto_duplicate = "0"; then
6246        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
6247        LDFLAGS="$LDFLAGS $i"
6248      fi
6249    done
6250  fi
6251
6252                ;;
6253	esac
6254        ;;
6255    *-apollo-*)
6256
6257  if test "x$CPPFLAGS" = "x"; then
6258    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAPOLLO\""
6259    CPPFLAGS="-DAPOLLO"
6260  else
6261    apr_addto_bugger="-DAPOLLO"
6262    for i in $apr_addto_bugger; do
6263      apr_addto_duplicate="0"
6264      for j in $CPPFLAGS; do
6265        if test "x$i" = "x$j"; then
6266          apr_addto_duplicate="1"
6267          break
6268        fi
6269      done
6270      if test $apr_addto_duplicate = "0"; then
6271        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6272        CPPFLAGS="$CPPFLAGS $i"
6273      fi
6274    done
6275  fi
6276
6277	;;
6278    *-dg-dgux*)
6279
6280  if test "x$CPPFLAGS" = "x"; then
6281    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DDGUX\""
6282    CPPFLAGS="-DDGUX"
6283  else
6284    apr_addto_bugger="-DDGUX"
6285    for i in $apr_addto_bugger; do
6286      apr_addto_duplicate="0"
6287      for j in $CPPFLAGS; do
6288        if test "x$i" = "x$j"; then
6289          apr_addto_duplicate="1"
6290          break
6291        fi
6292      done
6293      if test $apr_addto_duplicate = "0"; then
6294        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6295        CPPFLAGS="$CPPFLAGS $i"
6296      fi
6297    done
6298  fi
6299
6300	;;
6301    *-os2*)
6302
6303  test "x$silent" != "xyes" && echo "  forcing SHELL to \"sh\""
6304  SHELL="sh"
6305
6306
6307  if test -z "$apr_gethostbyname_is_thread_safe"; then
6308    test "x$silent" != "xyes" && echo "  setting apr_gethostbyname_is_thread_safe to \"yes\""
6309    apr_gethostbyname_is_thread_safe="yes"
6310  fi
6311
6312
6313  if test -z "$apr_gethostbyaddr_is_thread_safe"; then
6314    test "x$silent" != "xyes" && echo "  setting apr_gethostbyaddr_is_thread_safe to \"yes\""
6315    apr_gethostbyaddr_is_thread_safe="yes"
6316  fi
6317
6318
6319  if test -z "$apr_getservbyname_is_thread_safe"; then
6320    test "x$silent" != "xyes" && echo "  setting apr_getservbyname_is_thread_safe to \"yes\""
6321    apr_getservbyname_is_thread_safe="yes"
6322  fi
6323
6324	;;
6325    *-hi-hiux)
6326
6327  if test "x$CPPFLAGS" = "x"; then
6328    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DHIUX\""
6329    CPPFLAGS="-DHIUX"
6330  else
6331    apr_addto_bugger="-DHIUX"
6332    for i in $apr_addto_bugger; do
6333      apr_addto_duplicate="0"
6334      for j in $CPPFLAGS; do
6335        if test "x$i" = "x$j"; then
6336          apr_addto_duplicate="1"
6337          break
6338        fi
6339      done
6340      if test $apr_addto_duplicate = "0"; then
6341        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6342        CPPFLAGS="$CPPFLAGS $i"
6343      fi
6344    done
6345  fi
6346
6347	;;
6348    *-hp-hpux11.*)
6349
6350  if test "x$CPPFLAGS" = "x"; then
6351    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE\""
6352    CPPFLAGS="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE"
6353  else
6354    apr_addto_bugger="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE"
6355    for i in $apr_addto_bugger; do
6356      apr_addto_duplicate="0"
6357      for j in $CPPFLAGS; do
6358        if test "x$i" = "x$j"; then
6359          apr_addto_duplicate="1"
6360          break
6361        fi
6362      done
6363      if test $apr_addto_duplicate = "0"; then
6364        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6365        CPPFLAGS="$CPPFLAGS $i"
6366      fi
6367    done
6368  fi
6369
6370	;;
6371    *-hp-hpux10.*)
6372 	case $host in
6373 	  *-hp-hpux10.01)
6374
6375  if test "x$CPPFLAGS" = "x"; then
6376    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSELECT_NEEDS_CAST\""
6377    CPPFLAGS="-DSELECT_NEEDS_CAST"
6378  else
6379    apr_addto_bugger="-DSELECT_NEEDS_CAST"
6380    for i in $apr_addto_bugger; do
6381      apr_addto_duplicate="0"
6382      for j in $CPPFLAGS; do
6383        if test "x$i" = "x$j"; then
6384          apr_addto_duplicate="1"
6385          break
6386        fi
6387      done
6388      if test $apr_addto_duplicate = "0"; then
6389        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6390        CPPFLAGS="$CPPFLAGS $i"
6391      fi
6392    done
6393  fi
6394
6395	       ;;
6396 	esac
6397
6398  if test "x$CPPFLAGS" = "x"; then
6399    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_REENTRANT\""
6400    CPPFLAGS="-D_REENTRANT"
6401  else
6402    apr_addto_bugger="-D_REENTRANT"
6403    for i in $apr_addto_bugger; do
6404      apr_addto_duplicate="0"
6405      for j in $CPPFLAGS; do
6406        if test "x$i" = "x$j"; then
6407          apr_addto_duplicate="1"
6408          break
6409        fi
6410      done
6411      if test $apr_addto_duplicate = "0"; then
6412        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6413        CPPFLAGS="$CPPFLAGS $i"
6414      fi
6415    done
6416  fi
6417
6418	;;
6419    *-hp-hpux*)
6420
6421  if test "x$CPPFLAGS" = "x"; then
6422    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DHPUX -D_REENTRANT\""
6423    CPPFLAGS="-DHPUX -D_REENTRANT"
6424  else
6425    apr_addto_bugger="-DHPUX -D_REENTRANT"
6426    for i in $apr_addto_bugger; do
6427      apr_addto_duplicate="0"
6428      for j in $CPPFLAGS; do
6429        if test "x$i" = "x$j"; then
6430          apr_addto_duplicate="1"
6431          break
6432        fi
6433      done
6434      if test $apr_addto_duplicate = "0"; then
6435        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6436        CPPFLAGS="$CPPFLAGS $i"
6437      fi
6438    done
6439  fi
6440
6441	;;
6442    *-linux*)
6443
6444  if test "x$CPPFLAGS" = "x"; then
6445    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DLINUX -D_REENTRANT -D_GNU_SOURCE\""
6446    CPPFLAGS="-DLINUX -D_REENTRANT -D_GNU_SOURCE"
6447  else
6448    apr_addto_bugger="-DLINUX -D_REENTRANT -D_GNU_SOURCE"
6449    for i in $apr_addto_bugger; do
6450      apr_addto_duplicate="0"
6451      for j in $CPPFLAGS; do
6452        if test "x$i" = "x$j"; then
6453          apr_addto_duplicate="1"
6454          break
6455        fi
6456      done
6457      if test $apr_addto_duplicate = "0"; then
6458        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6459        CPPFLAGS="$CPPFLAGS $i"
6460      fi
6461    done
6462  fi
6463
6464	;;
6465    *-lynx-lynxos)
6466
6467  if test "x$CPPFLAGS" = "x"; then
6468    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D__NO_INCLUDE_WARN__ -DLYNXOS\""
6469    CPPFLAGS="-D__NO_INCLUDE_WARN__ -DLYNXOS"
6470  else
6471    apr_addto_bugger="-D__NO_INCLUDE_WARN__ -DLYNXOS"
6472    for i in $apr_addto_bugger; do
6473      apr_addto_duplicate="0"
6474      for j in $CPPFLAGS; do
6475        if test "x$i" = "x$j"; then
6476          apr_addto_duplicate="1"
6477          break
6478        fi
6479      done
6480      if test $apr_addto_duplicate = "0"; then
6481        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6482        CPPFLAGS="$CPPFLAGS $i"
6483      fi
6484    done
6485  fi
6486
6487
6488  if test "x$LIBS" = "x"; then
6489    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbsd\""
6490    LIBS="-lbsd"
6491  else
6492    apr_addto_bugger="-lbsd"
6493    for i in $apr_addto_bugger; do
6494      apr_addto_duplicate="0"
6495      for j in $LIBS; do
6496        if test "x$i" = "x$j"; then
6497          apr_addto_duplicate="1"
6498          break
6499        fi
6500      done
6501      if test $apr_addto_duplicate = "0"; then
6502        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6503        LIBS="$LIBS $i"
6504      fi
6505    done
6506  fi
6507
6508	;;
6509    *486-*-bsdi*)
6510
6511  if test "x$CFLAGS" = "x"; then
6512    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-m486\""
6513    CFLAGS="-m486"
6514  else
6515    apr_addto_bugger="-m486"
6516    for i in $apr_addto_bugger; do
6517      apr_addto_duplicate="0"
6518      for j in $CFLAGS; do
6519        if test "x$i" = "x$j"; then
6520          apr_addto_duplicate="1"
6521          break
6522        fi
6523      done
6524      if test $apr_addto_duplicate = "0"; then
6525        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
6526        CFLAGS="$CFLAGS $i"
6527      fi
6528    done
6529  fi
6530
6531	;;
6532    *-*-bsdi*)
6533        case $host in
6534            *bsdi4.1)
6535
6536  if test "x$CFLAGS" = "x"; then
6537    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-D_REENTRANT\""
6538    CFLAGS="-D_REENTRANT"
6539  else
6540    apr_addto_bugger="-D_REENTRANT"
6541    for i in $apr_addto_bugger; do
6542      apr_addto_duplicate="0"
6543      for j in $CFLAGS; do
6544        if test "x$i" = "x$j"; then
6545          apr_addto_duplicate="1"
6546          break
6547        fi
6548      done
6549      if test $apr_addto_duplicate = "0"; then
6550        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
6551        CFLAGS="$CFLAGS $i"
6552      fi
6553    done
6554  fi
6555
6556                ;;
6557        esac
6558        ;;
6559    *-openbsd*)
6560
6561  if test "x$CPPFLAGS" = "x"; then
6562    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_POSIX_THREADS\""
6563    CPPFLAGS="-D_POSIX_THREADS"
6564  else
6565    apr_addto_bugger="-D_POSIX_THREADS"
6566    for i in $apr_addto_bugger; do
6567      apr_addto_duplicate="0"
6568      for j in $CPPFLAGS; do
6569        if test "x$i" = "x$j"; then
6570          apr_addto_duplicate="1"
6571          break
6572        fi
6573      done
6574      if test $apr_addto_duplicate = "0"; then
6575        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6576        CPPFLAGS="$CPPFLAGS $i"
6577      fi
6578    done
6579  fi
6580
6581        # binding to an ephemeral port fails on OpenBSD so override
6582        # the test for O_NONBLOCK inheritance across accept().
6583
6584  if test -z "$ac_cv_o_nonblock_inherited"; then
6585    test "x$silent" != "xyes" && echo "  setting ac_cv_o_nonblock_inherited to \"yes\""
6586    ac_cv_o_nonblock_inherited="yes"
6587  fi
6588
6589	;;
6590    *-netbsd*)
6591
6592  if test "x$CPPFLAGS" = "x"; then
6593    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNETBSD\""
6594    CPPFLAGS="-DNETBSD"
6595  else
6596    apr_addto_bugger="-DNETBSD"
6597    for i in $apr_addto_bugger; do
6598      apr_addto_duplicate="0"
6599      for j in $CPPFLAGS; do
6600        if test "x$i" = "x$j"; then
6601          apr_addto_duplicate="1"
6602          break
6603        fi
6604      done
6605      if test $apr_addto_duplicate = "0"; then
6606        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6607        CPPFLAGS="$CPPFLAGS $i"
6608      fi
6609    done
6610  fi
6611
6612        # fcntl() lies about O_NONBLOCK on an accept()ed socket (PR kern/26950)
6613
6614  if test -z "$ac_cv_o_nonblock_inherited"; then
6615    test "x$silent" != "xyes" && echo "  setting ac_cv_o_nonblock_inherited to \"yes\""
6616    ac_cv_o_nonblock_inherited="yes"
6617  fi
6618
6619	;;
6620    *-freebsd*)
6621
6622  if test -z "$apr_lock_method"; then
6623    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_FLOCK_SERIALIZE\""
6624    apr_lock_method="USE_FLOCK_SERIALIZE"
6625  fi
6626
6627        if test -x /sbin/sysctl; then
6628            os_version=`/sbin/sysctl -n kern.osreldate`
6629        else
6630            os_version=000000
6631        fi
6632        # 502102 is when libc_r switched to libpthread (aka libkse).
6633        if test $os_version -ge "502102"; then
6634          apr_cv_pthreads_cflags="none"
6635          apr_cv_pthreads_lib="-lpthread"
6636        else
6637
6638  if test "x$CPPFLAGS" = "x"; then
6639    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_THREAD_SAFE -D_REENTRANT\""
6640    CPPFLAGS="-D_THREAD_SAFE -D_REENTRANT"
6641  else
6642    apr_addto_bugger="-D_THREAD_SAFE -D_REENTRANT"
6643    for i in $apr_addto_bugger; do
6644      apr_addto_duplicate="0"
6645      for j in $CPPFLAGS; do
6646        if test "x$i" = "x$j"; then
6647          apr_addto_duplicate="1"
6648          break
6649        fi
6650      done
6651      if test $apr_addto_duplicate = "0"; then
6652        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6653        CPPFLAGS="$CPPFLAGS $i"
6654      fi
6655    done
6656  fi
6657
6658
6659  if test -z "$enable_threads"; then
6660    test "x$silent" != "xyes" && echo "  setting enable_threads to \"no\""
6661    enable_threads="no"
6662  fi
6663
6664        fi
6665        # prevent use of KQueue before FreeBSD 4.8
6666        if test $os_version -lt "480000"; then
6667
6668  if test -z "$ac_cv_func_kqueue"; then
6669    test "x$silent" != "xyes" && echo "  setting ac_cv_func_kqueue to \"no\""
6670    ac_cv_func_kqueue="no"
6671  fi
6672
6673        fi
6674	;;
6675    *-k*bsd*-gnu)
6676
6677  if test "x$CPPFLAGS" = "x"; then
6678    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE\""
6679    CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE"
6680  else
6681    apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE"
6682    for i in $apr_addto_bugger; do
6683      apr_addto_duplicate="0"
6684      for j in $CPPFLAGS; do
6685        if test "x$i" = "x$j"; then
6686          apr_addto_duplicate="1"
6687          break
6688        fi
6689      done
6690      if test $apr_addto_duplicate = "0"; then
6691        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6692        CPPFLAGS="$CPPFLAGS $i"
6693      fi
6694    done
6695  fi
6696
6697        ;;
6698    *-gnu*|*-GNU*)
6699
6700  if test "x$CPPFLAGS" = "x"; then
6701    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE -DHURD\""
6702    CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE -DHURD"
6703  else
6704    apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE -DHURD"
6705    for i in $apr_addto_bugger; do
6706      apr_addto_duplicate="0"
6707      for j in $CPPFLAGS; do
6708        if test "x$i" = "x$j"; then
6709          apr_addto_duplicate="1"
6710          break
6711        fi
6712      done
6713      if test $apr_addto_duplicate = "0"; then
6714        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6715        CPPFLAGS="$CPPFLAGS $i"
6716      fi
6717    done
6718  fi
6719
6720        ;;
6721    *-next-nextstep*)
6722
6723  if test -z "$CFLAGS"; then
6724    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
6725    CFLAGS="-O"
6726  fi
6727
6728
6729  if test "x$CPPFLAGS" = "x"; then
6730    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNEXT\""
6731    CPPFLAGS="-DNEXT"
6732  else
6733    apr_addto_bugger="-DNEXT"
6734    for i in $apr_addto_bugger; do
6735      apr_addto_duplicate="0"
6736      for j in $CPPFLAGS; do
6737        if test "x$i" = "x$j"; then
6738          apr_addto_duplicate="1"
6739          break
6740        fi
6741      done
6742      if test $apr_addto_duplicate = "0"; then
6743        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6744        CPPFLAGS="$CPPFLAGS $i"
6745      fi
6746    done
6747  fi
6748
6749	;;
6750    *-next-openstep*)
6751
6752  if test -z "$CFLAGS"; then
6753    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
6754    CFLAGS="-O"
6755  fi
6756
6757
6758  if test "x$CPPFLAGS" = "x"; then
6759    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNEXT\""
6760    CPPFLAGS="-DNEXT"
6761  else
6762    apr_addto_bugger="-DNEXT"
6763    for i in $apr_addto_bugger; do
6764      apr_addto_duplicate="0"
6765      for j in $CPPFLAGS; do
6766        if test "x$i" = "x$j"; then
6767          apr_addto_duplicate="1"
6768          break
6769        fi
6770      done
6771      if test $apr_addto_duplicate = "0"; then
6772        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6773        CPPFLAGS="$CPPFLAGS $i"
6774      fi
6775    done
6776  fi
6777
6778	;;
6779    *-apple-rhapsody*)
6780
6781  if test "x$CPPFLAGS" = "x"; then
6782    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DRHAPSODY\""
6783    CPPFLAGS="-DRHAPSODY"
6784  else
6785    apr_addto_bugger="-DRHAPSODY"
6786    for i in $apr_addto_bugger; do
6787      apr_addto_duplicate="0"
6788      for j in $CPPFLAGS; do
6789        if test "x$i" = "x$j"; then
6790          apr_addto_duplicate="1"
6791          break
6792        fi
6793      done
6794      if test $apr_addto_duplicate = "0"; then
6795        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6796        CPPFLAGS="$CPPFLAGS $i"
6797      fi
6798    done
6799  fi
6800
6801	;;
6802    *-apple-darwin*)
6803
6804  if test "x$CPPFLAGS" = "x"; then
6805    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK\""
6806    CPPFLAGS="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK"
6807  else
6808    apr_addto_bugger="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK"
6809    for i in $apr_addto_bugger; do
6810      apr_addto_duplicate="0"
6811      for j in $CPPFLAGS; do
6812        if test "x$i" = "x$j"; then
6813          apr_addto_duplicate="1"
6814          break
6815        fi
6816      done
6817      if test $apr_addto_duplicate = "0"; then
6818        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6819        CPPFLAGS="$CPPFLAGS $i"
6820      fi
6821    done
6822  fi
6823
6824
6825  if test -z "$apr_posixsem_is_global"; then
6826    test "x$silent" != "xyes" && echo "  setting apr_posixsem_is_global to \"yes\""
6827    apr_posixsem_is_global="yes"
6828  fi
6829
6830        case $host in
6831            *-apple-darwin[1-9].*)
6832                # APR's use of kqueue has triggered kernel panics for some
6833                # 10.5.x (Darwin 9.x) users when running the entire test suite.
6834                # In 10.4.x, use of kqueue would cause the socket tests to hang.
6835                # 10.6+ (Darwin 10.x is supposed to fix the KQueue issues
6836
6837  if test -z "$ac_cv_func_kqueue"; then
6838    test "x$silent" != "xyes" && echo "  setting ac_cv_func_kqueue to \"no\""
6839    ac_cv_func_kqueue="no"
6840  fi
6841
6842
6843  if test -z "$ac_cv_func_poll"; then
6844    test "x$silent" != "xyes" && echo "  setting ac_cv_func_poll to \"no\""
6845    ac_cv_func_poll="no"
6846  fi
6847 # See issue 34332
6848            ;;
6849            *-apple-darwin1?.*)
6850
6851  if test "x$CPPFLAGS" = "x"; then
6852    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DDARWIN_10\""
6853    CPPFLAGS="-DDARWIN_10"
6854  else
6855    apr_addto_bugger="-DDARWIN_10"
6856    for i in $apr_addto_bugger; do
6857      apr_addto_duplicate="0"
6858      for j in $CPPFLAGS; do
6859        if test "x$i" = "x$j"; then
6860          apr_addto_duplicate="1"
6861          break
6862        fi
6863      done
6864      if test $apr_addto_duplicate = "0"; then
6865        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6866        CPPFLAGS="$CPPFLAGS $i"
6867      fi
6868    done
6869  fi
6870
6871            ;;
6872        esac
6873	;;
6874    *-dec-osf*)
6875
6876  if test "x$CPPFLAGS" = "x"; then
6877    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DOSF1\""
6878    CPPFLAGS="-DOSF1"
6879  else
6880    apr_addto_bugger="-DOSF1"
6881    for i in $apr_addto_bugger; do
6882      apr_addto_duplicate="0"
6883      for j in $CPPFLAGS; do
6884        if test "x$i" = "x$j"; then
6885          apr_addto_duplicate="1"
6886          break
6887        fi
6888      done
6889      if test $apr_addto_duplicate = "0"; then
6890        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6891        CPPFLAGS="$CPPFLAGS $i"
6892      fi
6893    done
6894  fi
6895
6896        # process-shared mutexes don't seem to work in Tru64 5.0
6897
6898  if test -z "$apr_cv_process_shared_works"; then
6899    test "x$silent" != "xyes" && echo "  setting apr_cv_process_shared_works to \"no\""
6900    apr_cv_process_shared_works="no"
6901  fi
6902
6903	;;
6904    *-nto-qnx*)
6905	;;
6906    *-qnx)
6907
6908  if test "x$CPPFLAGS" = "x"; then
6909    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DQNX\""
6910    CPPFLAGS="-DQNX"
6911  else
6912    apr_addto_bugger="-DQNX"
6913    for i in $apr_addto_bugger; do
6914      apr_addto_duplicate="0"
6915      for j in $CPPFLAGS; do
6916        if test "x$i" = "x$j"; then
6917          apr_addto_duplicate="1"
6918          break
6919        fi
6920      done
6921      if test $apr_addto_duplicate = "0"; then
6922        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6923        CPPFLAGS="$CPPFLAGS $i"
6924      fi
6925    done
6926  fi
6927
6928
6929  if test "x$LIBS" = "x"; then
6930    test "x$silent" != "xyes" && echo "  setting LIBS to \"-N128k -lunix\""
6931    LIBS="-N128k -lunix"
6932  else
6933    apr_addto_bugger="-N128k -lunix"
6934    for i in $apr_addto_bugger; do
6935      apr_addto_duplicate="0"
6936      for j in $LIBS; do
6937        if test "x$i" = "x$j"; then
6938          apr_addto_duplicate="1"
6939          break
6940        fi
6941      done
6942      if test $apr_addto_duplicate = "0"; then
6943        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6944        LIBS="$LIBS $i"
6945      fi
6946    done
6947  fi
6948
6949	;;
6950    *-qnx32)
6951
6952  if test "x$CPPFLAGS" = "x"; then
6953    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DQNX\""
6954    CPPFLAGS="-DQNX"
6955  else
6956    apr_addto_bugger="-DQNX"
6957    for i in $apr_addto_bugger; do
6958      apr_addto_duplicate="0"
6959      for j in $CPPFLAGS; do
6960        if test "x$i" = "x$j"; then
6961          apr_addto_duplicate="1"
6962          break
6963        fi
6964      done
6965      if test $apr_addto_duplicate = "0"; then
6966        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6967        CPPFLAGS="$CPPFLAGS $i"
6968      fi
6969    done
6970  fi
6971
6972
6973  if test "x$CFLAGS" = "x"; then
6974    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-mf -3\""
6975    CFLAGS="-mf -3"
6976  else
6977    apr_addto_bugger="-mf -3"
6978    for i in $apr_addto_bugger; do
6979      apr_addto_duplicate="0"
6980      for j in $CFLAGS; do
6981        if test "x$i" = "x$j"; then
6982          apr_addto_duplicate="1"
6983          break
6984        fi
6985      done
6986      if test $apr_addto_duplicate = "0"; then
6987        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
6988        CFLAGS="$CFLAGS $i"
6989      fi
6990    done
6991  fi
6992
6993
6994  if test "x$LIBS" = "x"; then
6995    test "x$silent" != "xyes" && echo "  setting LIBS to \"-N128k -lunix\""
6996    LIBS="-N128k -lunix"
6997  else
6998    apr_addto_bugger="-N128k -lunix"
6999    for i in $apr_addto_bugger; do
7000      apr_addto_duplicate="0"
7001      for j in $LIBS; do
7002        if test "x$i" = "x$j"; then
7003          apr_addto_duplicate="1"
7004          break
7005        fi
7006      done
7007      if test $apr_addto_duplicate = "0"; then
7008        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7009        LIBS="$LIBS $i"
7010      fi
7011    done
7012  fi
7013
7014	;;
7015    *-isc4*)
7016
7017  if test "x$CPPFLAGS" = "x"; then
7018    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-posix -DISC\""
7019    CPPFLAGS="-posix -DISC"
7020  else
7021    apr_addto_bugger="-posix -DISC"
7022    for i in $apr_addto_bugger; do
7023      apr_addto_duplicate="0"
7024      for j in $CPPFLAGS; do
7025        if test "x$i" = "x$j"; then
7026          apr_addto_duplicate="1"
7027          break
7028        fi
7029      done
7030      if test $apr_addto_duplicate = "0"; then
7031        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7032        CPPFLAGS="$CPPFLAGS $i"
7033      fi
7034    done
7035  fi
7036
7037
7038  if test "x$LDFLAGS" = "x"; then
7039    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-posix\""
7040    LDFLAGS="-posix"
7041  else
7042    apr_addto_bugger="-posix"
7043    for i in $apr_addto_bugger; do
7044      apr_addto_duplicate="0"
7045      for j in $LDFLAGS; do
7046        if test "x$i" = "x$j"; then
7047          apr_addto_duplicate="1"
7048          break
7049        fi
7050      done
7051      if test $apr_addto_duplicate = "0"; then
7052        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
7053        LDFLAGS="$LDFLAGS $i"
7054      fi
7055    done
7056  fi
7057
7058
7059  if test "x$LIBS" = "x"; then
7060    test "x$silent" != "xyes" && echo "  setting LIBS to \"-linet\""
7061    LIBS="-linet"
7062  else
7063    apr_addto_bugger="-linet"
7064    for i in $apr_addto_bugger; do
7065      apr_addto_duplicate="0"
7066      for j in $LIBS; do
7067        if test "x$i" = "x$j"; then
7068          apr_addto_duplicate="1"
7069          break
7070        fi
7071      done
7072      if test $apr_addto_duplicate = "0"; then
7073        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7074        LIBS="$LIBS $i"
7075      fi
7076    done
7077  fi
7078
7079	;;
7080    *-sco3.2v[234]*)
7081
7082  if test "x$CPPFLAGS" = "x"; then
7083    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
7084    CPPFLAGS="-DSCO -D_REENTRANT"
7085  else
7086    apr_addto_bugger="-DSCO -D_REENTRANT"
7087    for i in $apr_addto_bugger; do
7088      apr_addto_duplicate="0"
7089      for j in $CPPFLAGS; do
7090        if test "x$i" = "x$j"; then
7091          apr_addto_duplicate="1"
7092          break
7093        fi
7094      done
7095      if test $apr_addto_duplicate = "0"; then
7096        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7097        CPPFLAGS="$CPPFLAGS $i"
7098      fi
7099    done
7100  fi
7101
7102	if test "$GCC" = "no"; then
7103
7104  if test "x$CFLAGS" = "x"; then
7105    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Oacgiltz\""
7106    CFLAGS="-Oacgiltz"
7107  else
7108    apr_addto_bugger="-Oacgiltz"
7109    for i in $apr_addto_bugger; do
7110      apr_addto_duplicate="0"
7111      for j in $CFLAGS; do
7112        if test "x$i" = "x$j"; then
7113          apr_addto_duplicate="1"
7114          break
7115        fi
7116      done
7117      if test $apr_addto_duplicate = "0"; then
7118        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
7119        CFLAGS="$CFLAGS $i"
7120      fi
7121    done
7122  fi
7123
7124	fi
7125
7126  if test "x$LIBS" = "x"; then
7127    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lPW -lmalloc\""
7128    LIBS="-lPW -lmalloc"
7129  else
7130    apr_addto_bugger="-lPW -lmalloc"
7131    for i in $apr_addto_bugger; do
7132      apr_addto_duplicate="0"
7133      for j in $LIBS; do
7134        if test "x$i" = "x$j"; then
7135          apr_addto_duplicate="1"
7136          break
7137        fi
7138      done
7139      if test $apr_addto_duplicate = "0"; then
7140        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7141        LIBS="$LIBS $i"
7142      fi
7143    done
7144  fi
7145
7146	;;
7147    *-sco3.2v5*)
7148
7149  if test "x$CPPFLAGS" = "x"; then
7150    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSCO5 -D_REENTRANT\""
7151    CPPFLAGS="-DSCO5 -D_REENTRANT"
7152  else
7153    apr_addto_bugger="-DSCO5 -D_REENTRANT"
7154    for i in $apr_addto_bugger; do
7155      apr_addto_duplicate="0"
7156      for j in $CPPFLAGS; do
7157        if test "x$i" = "x$j"; then
7158          apr_addto_duplicate="1"
7159          break
7160        fi
7161      done
7162      if test $apr_addto_duplicate = "0"; then
7163        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7164        CPPFLAGS="$CPPFLAGS $i"
7165      fi
7166    done
7167  fi
7168
7169	;;
7170    *-sco_sv*|*-SCO_SV*)
7171
7172  if test "x$CPPFLAGS" = "x"; then
7173    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
7174    CPPFLAGS="-DSCO -D_REENTRANT"
7175  else
7176    apr_addto_bugger="-DSCO -D_REENTRANT"
7177    for i in $apr_addto_bugger; do
7178      apr_addto_duplicate="0"
7179      for j in $CPPFLAGS; do
7180        if test "x$i" = "x$j"; then
7181          apr_addto_duplicate="1"
7182          break
7183        fi
7184      done
7185      if test $apr_addto_duplicate = "0"; then
7186        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7187        CPPFLAGS="$CPPFLAGS $i"
7188      fi
7189    done
7190  fi
7191
7192
7193  if test "x$LIBS" = "x"; then
7194    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lPW -lmalloc\""
7195    LIBS="-lPW -lmalloc"
7196  else
7197    apr_addto_bugger="-lPW -lmalloc"
7198    for i in $apr_addto_bugger; do
7199      apr_addto_duplicate="0"
7200      for j in $LIBS; do
7201        if test "x$i" = "x$j"; then
7202          apr_addto_duplicate="1"
7203          break
7204        fi
7205      done
7206      if test $apr_addto_duplicate = "0"; then
7207        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7208        LIBS="$LIBS $i"
7209      fi
7210    done
7211  fi
7212
7213	;;
7214    *-solaris2*)
7215    	PLATOSVERS=`echo $host | sed 's/^.*solaris2.//'`
7216
7217  if test "x$CPPFLAGS" = "x"; then
7218    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT\""
7219    CPPFLAGS="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
7220  else
7221    apr_addto_bugger="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
7222    for i in $apr_addto_bugger; do
7223      apr_addto_duplicate="0"
7224      for j in $CPPFLAGS; do
7225        if test "x$i" = "x$j"; then
7226          apr_addto_duplicate="1"
7227          break
7228        fi
7229      done
7230      if test $apr_addto_duplicate = "0"; then
7231        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7232        CPPFLAGS="$CPPFLAGS $i"
7233      fi
7234    done
7235  fi
7236
7237        if test $PLATOSVERS -ge 10; then
7238
7239  if test -z "$apr_lock_method"; then
7240    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_PROC_PTHREAD_SERIALIZE\""
7241    apr_lock_method="USE_PROC_PTHREAD_SERIALIZE"
7242  fi
7243
7244        else
7245
7246  if test -z "$apr_lock_method"; then
7247    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_FCNTL_SERIALIZE\""
7248    apr_lock_method="USE_FCNTL_SERIALIZE"
7249  fi
7250
7251        fi
7252        # readdir64_r error handling seems broken on Solaris (at least
7253        # up till 2.8) -- it will return -1 at end-of-directory.
7254
7255  if test -z "$ac_cv_func_readdir64_r"; then
7256    test "x$silent" != "xyes" && echo "  setting ac_cv_func_readdir64_r to \"no\""
7257    ac_cv_func_readdir64_r="no"
7258  fi
7259
7260	;;
7261    *-sunos4*)
7262
7263  if test "x$CPPFLAGS" = "x"; then
7264    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSUNOS4\""
7265    CPPFLAGS="-DSUNOS4"
7266  else
7267    apr_addto_bugger="-DSUNOS4"
7268    for i in $apr_addto_bugger; do
7269      apr_addto_duplicate="0"
7270      for j in $CPPFLAGS; do
7271        if test "x$i" = "x$j"; then
7272          apr_addto_duplicate="1"
7273          break
7274        fi
7275      done
7276      if test $apr_addto_duplicate = "0"; then
7277        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7278        CPPFLAGS="$CPPFLAGS $i"
7279      fi
7280    done
7281  fi
7282
7283	;;
7284    *-unixware1)
7285
7286  if test "x$CPPFLAGS" = "x"; then
7287    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=100\""
7288    CPPFLAGS="-DUW=100"
7289  else
7290    apr_addto_bugger="-DUW=100"
7291    for i in $apr_addto_bugger; do
7292      apr_addto_duplicate="0"
7293      for j in $CPPFLAGS; do
7294        if test "x$i" = "x$j"; then
7295          apr_addto_duplicate="1"
7296          break
7297        fi
7298      done
7299      if test $apr_addto_duplicate = "0"; then
7300        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7301        CPPFLAGS="$CPPFLAGS $i"
7302      fi
7303    done
7304  fi
7305
7306	;;
7307    *-unixware2)
7308
7309  if test "x$CPPFLAGS" = "x"; then
7310    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=200\""
7311    CPPFLAGS="-DUW=200"
7312  else
7313    apr_addto_bugger="-DUW=200"
7314    for i in $apr_addto_bugger; do
7315      apr_addto_duplicate="0"
7316      for j in $CPPFLAGS; do
7317        if test "x$i" = "x$j"; then
7318          apr_addto_duplicate="1"
7319          break
7320        fi
7321      done
7322      if test $apr_addto_duplicate = "0"; then
7323        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7324        CPPFLAGS="$CPPFLAGS $i"
7325      fi
7326    done
7327  fi
7328
7329
7330  if test "x$LIBS" = "x"; then
7331    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
7332    LIBS="-lgen"
7333  else
7334    apr_addto_bugger="-lgen"
7335    for i in $apr_addto_bugger; do
7336      apr_addto_duplicate="0"
7337      for j in $LIBS; do
7338        if test "x$i" = "x$j"; then
7339          apr_addto_duplicate="1"
7340          break
7341        fi
7342      done
7343      if test $apr_addto_duplicate = "0"; then
7344        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7345        LIBS="$LIBS $i"
7346      fi
7347    done
7348  fi
7349
7350	;;
7351    *-unixware211)
7352
7353  if test "x$CPPFLAGS" = "x"; then
7354    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=211\""
7355    CPPFLAGS="-DUW=211"
7356  else
7357    apr_addto_bugger="-DUW=211"
7358    for i in $apr_addto_bugger; do
7359      apr_addto_duplicate="0"
7360      for j in $CPPFLAGS; do
7361        if test "x$i" = "x$j"; then
7362          apr_addto_duplicate="1"
7363          break
7364        fi
7365      done
7366      if test $apr_addto_duplicate = "0"; then
7367        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7368        CPPFLAGS="$CPPFLAGS $i"
7369      fi
7370    done
7371  fi
7372
7373
7374  if test "x$LIBS" = "x"; then
7375    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
7376    LIBS="-lgen"
7377  else
7378    apr_addto_bugger="-lgen"
7379    for i in $apr_addto_bugger; do
7380      apr_addto_duplicate="0"
7381      for j in $LIBS; do
7382        if test "x$i" = "x$j"; then
7383          apr_addto_duplicate="1"
7384          break
7385        fi
7386      done
7387      if test $apr_addto_duplicate = "0"; then
7388        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7389        LIBS="$LIBS $i"
7390      fi
7391    done
7392  fi
7393
7394	;;
7395    *-unixware212)
7396
7397  if test "x$CPPFLAGS" = "x"; then
7398    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=212\""
7399    CPPFLAGS="-DUW=212"
7400  else
7401    apr_addto_bugger="-DUW=212"
7402    for i in $apr_addto_bugger; do
7403      apr_addto_duplicate="0"
7404      for j in $CPPFLAGS; do
7405        if test "x$i" = "x$j"; then
7406          apr_addto_duplicate="1"
7407          break
7408        fi
7409      done
7410      if test $apr_addto_duplicate = "0"; then
7411        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7412        CPPFLAGS="$CPPFLAGS $i"
7413      fi
7414    done
7415  fi
7416
7417
7418  if test "x$LIBS" = "x"; then
7419    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
7420    LIBS="-lgen"
7421  else
7422    apr_addto_bugger="-lgen"
7423    for i in $apr_addto_bugger; do
7424      apr_addto_duplicate="0"
7425      for j in $LIBS; do
7426        if test "x$i" = "x$j"; then
7427          apr_addto_duplicate="1"
7428          break
7429        fi
7430      done
7431      if test $apr_addto_duplicate = "0"; then
7432        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7433        LIBS="$LIBS $i"
7434      fi
7435    done
7436  fi
7437
7438	;;
7439    *-unixware7)
7440
7441  if test "x$CPPFLAGS" = "x"; then
7442    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=700\""
7443    CPPFLAGS="-DUW=700"
7444  else
7445    apr_addto_bugger="-DUW=700"
7446    for i in $apr_addto_bugger; do
7447      apr_addto_duplicate="0"
7448      for j in $CPPFLAGS; do
7449        if test "x$i" = "x$j"; then
7450          apr_addto_duplicate="1"
7451          break
7452        fi
7453      done
7454      if test $apr_addto_duplicate = "0"; then
7455        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7456        CPPFLAGS="$CPPFLAGS $i"
7457      fi
7458    done
7459  fi
7460
7461
7462  if test "x$LIBS" = "x"; then
7463    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
7464    LIBS="-lgen"
7465  else
7466    apr_addto_bugger="-lgen"
7467    for i in $apr_addto_bugger; do
7468      apr_addto_duplicate="0"
7469      for j in $LIBS; do
7470        if test "x$i" = "x$j"; then
7471          apr_addto_duplicate="1"
7472          break
7473        fi
7474      done
7475      if test $apr_addto_duplicate = "0"; then
7476        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7477        LIBS="$LIBS $i"
7478      fi
7479    done
7480  fi
7481
7482	;;
7483    maxion-*-sysv4*)
7484
7485  if test "x$CPPFLAGS" = "x"; then
7486    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
7487    CPPFLAGS="-DSVR4"
7488  else
7489    apr_addto_bugger="-DSVR4"
7490    for i in $apr_addto_bugger; do
7491      apr_addto_duplicate="0"
7492      for j in $CPPFLAGS; do
7493        if test "x$i" = "x$j"; then
7494          apr_addto_duplicate="1"
7495          break
7496        fi
7497      done
7498      if test $apr_addto_duplicate = "0"; then
7499        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7500        CPPFLAGS="$CPPFLAGS $i"
7501      fi
7502    done
7503  fi
7504
7505
7506  if test "x$LIBS" = "x"; then
7507    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc -lgen\""
7508    LIBS="-lc -lgen"
7509  else
7510    apr_addto_bugger="-lc -lgen"
7511    for i in $apr_addto_bugger; do
7512      apr_addto_duplicate="0"
7513      for j in $LIBS; do
7514        if test "x$i" = "x$j"; then
7515          apr_addto_duplicate="1"
7516          break
7517        fi
7518      done
7519      if test $apr_addto_duplicate = "0"; then
7520        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7521        LIBS="$LIBS $i"
7522      fi
7523    done
7524  fi
7525
7526	;;
7527    *-*-powermax*)
7528
7529  if test "x$CPPFLAGS" = "x"; then
7530    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
7531    CPPFLAGS="-DSVR4"
7532  else
7533    apr_addto_bugger="-DSVR4"
7534    for i in $apr_addto_bugger; do
7535      apr_addto_duplicate="0"
7536      for j in $CPPFLAGS; do
7537        if test "x$i" = "x$j"; then
7538          apr_addto_duplicate="1"
7539          break
7540        fi
7541      done
7542      if test $apr_addto_duplicate = "0"; then
7543        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7544        CPPFLAGS="$CPPFLAGS $i"
7545      fi
7546    done
7547  fi
7548
7549
7550  if test "x$LIBS" = "x"; then
7551    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
7552    LIBS="-lgen"
7553  else
7554    apr_addto_bugger="-lgen"
7555    for i in $apr_addto_bugger; do
7556      apr_addto_duplicate="0"
7557      for j in $LIBS; do
7558        if test "x$i" = "x$j"; then
7559          apr_addto_duplicate="1"
7560          break
7561        fi
7562      done
7563      if test $apr_addto_duplicate = "0"; then
7564        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7565        LIBS="$LIBS $i"
7566      fi
7567    done
7568  fi
7569
7570	;;
7571    TPF)
7572
7573  if test "x$CPPFLAGS" = "x"; then
7574    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DTPF -D_POSIX_SOURCE\""
7575    CPPFLAGS="-DTPF -D_POSIX_SOURCE"
7576  else
7577    apr_addto_bugger="-DTPF -D_POSIX_SOURCE"
7578    for i in $apr_addto_bugger; do
7579      apr_addto_duplicate="0"
7580      for j in $CPPFLAGS; do
7581        if test "x$i" = "x$j"; then
7582          apr_addto_duplicate="1"
7583          break
7584        fi
7585      done
7586      if test $apr_addto_duplicate = "0"; then
7587        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7588        CPPFLAGS="$CPPFLAGS $i"
7589      fi
7590    done
7591  fi
7592
7593       ;;
7594    bs2000*-siemens-sysv*)
7595
7596  if test -z "$CFLAGS"; then
7597    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
7598    CFLAGS="-O"
7599  fi
7600
7601
7602  if test "x$CPPFLAGS" = "x"; then
7603    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -D_KMEMUSER\""
7604    CPPFLAGS="-DSVR4 -D_XPG_IV -D_KMEMUSER"
7605  else
7606    apr_addto_bugger="-DSVR4 -D_XPG_IV -D_KMEMUSER"
7607    for i in $apr_addto_bugger; do
7608      apr_addto_duplicate="0"
7609      for j in $CPPFLAGS; do
7610        if test "x$i" = "x$j"; then
7611          apr_addto_duplicate="1"
7612          break
7613        fi
7614      done
7615      if test $apr_addto_duplicate = "0"; then
7616        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7617        CPPFLAGS="$CPPFLAGS $i"
7618      fi
7619    done
7620  fi
7621
7622
7623  if test "x$LIBS" = "x"; then
7624    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lsocket\""
7625    LIBS="-lsocket"
7626  else
7627    apr_addto_bugger="-lsocket"
7628    for i in $apr_addto_bugger; do
7629      apr_addto_duplicate="0"
7630      for j in $LIBS; do
7631        if test "x$i" = "x$j"; then
7632          apr_addto_duplicate="1"
7633          break
7634        fi
7635      done
7636      if test $apr_addto_duplicate = "0"; then
7637        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7638        LIBS="$LIBS $i"
7639      fi
7640    done
7641  fi
7642
7643
7644  if test -z "$enable_threads"; then
7645    test "x$silent" != "xyes" && echo "  setting enable_threads to \"no\""
7646    enable_threads="no"
7647  fi
7648
7649	;;
7650    *-siemens-sysv4*)
7651
7652  if test "x$CPPFLAGS" = "x"; then
7653    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT\""
7654    CPPFLAGS="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
7655  else
7656    apr_addto_bugger="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
7657    for i in $apr_addto_bugger; do
7658      apr_addto_duplicate="0"
7659      for j in $CPPFLAGS; do
7660        if test "x$i" = "x$j"; then
7661          apr_addto_duplicate="1"
7662          break
7663        fi
7664      done
7665      if test $apr_addto_duplicate = "0"; then
7666        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7667        CPPFLAGS="$CPPFLAGS $i"
7668      fi
7669    done
7670  fi
7671
7672
7673  if test "x$LIBS" = "x"; then
7674    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
7675    LIBS="-lc"
7676  else
7677    apr_addto_bugger="-lc"
7678    for i in $apr_addto_bugger; do
7679      apr_addto_duplicate="0"
7680      for j in $LIBS; do
7681        if test "x$i" = "x$j"; then
7682          apr_addto_duplicate="1"
7683          break
7684        fi
7685      done
7686      if test $apr_addto_duplicate = "0"; then
7687        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7688        LIBS="$LIBS $i"
7689      fi
7690    done
7691  fi
7692
7693	;;
7694    pyramid-pyramid-svr4)
7695
7696  if test "x$CPPFLAGS" = "x"; then
7697    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -DNO_LONG_DOUBLE\""
7698    CPPFLAGS="-DSVR4 -DNO_LONG_DOUBLE"
7699  else
7700    apr_addto_bugger="-DSVR4 -DNO_LONG_DOUBLE"
7701    for i in $apr_addto_bugger; do
7702      apr_addto_duplicate="0"
7703      for j in $CPPFLAGS; do
7704        if test "x$i" = "x$j"; then
7705          apr_addto_duplicate="1"
7706          break
7707        fi
7708      done
7709      if test $apr_addto_duplicate = "0"; then
7710        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7711        CPPFLAGS="$CPPFLAGS $i"
7712      fi
7713    done
7714  fi
7715
7716
7717  if test "x$LIBS" = "x"; then
7718    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
7719    LIBS="-lc"
7720  else
7721    apr_addto_bugger="-lc"
7722    for i in $apr_addto_bugger; do
7723      apr_addto_duplicate="0"
7724      for j in $LIBS; do
7725        if test "x$i" = "x$j"; then
7726          apr_addto_duplicate="1"
7727          break
7728        fi
7729      done
7730      if test $apr_addto_duplicate = "0"; then
7731        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7732        LIBS="$LIBS $i"
7733      fi
7734    done
7735  fi
7736
7737	;;
7738    DS/90\ 7000-*-sysv4*)
7739
7740  if test "x$CPPFLAGS" = "x"; then
7741    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUXPDS\""
7742    CPPFLAGS="-DUXPDS"
7743  else
7744    apr_addto_bugger="-DUXPDS"
7745    for i in $apr_addto_bugger; do
7746      apr_addto_duplicate="0"
7747      for j in $CPPFLAGS; do
7748        if test "x$i" = "x$j"; then
7749          apr_addto_duplicate="1"
7750          break
7751        fi
7752      done
7753      if test $apr_addto_duplicate = "0"; then
7754        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7755        CPPFLAGS="$CPPFLAGS $i"
7756      fi
7757    done
7758  fi
7759
7760	;;
7761    *-tandem-sysv4*)
7762
7763  if test "x$CPPFLAGS" = "x"; then
7764    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
7765    CPPFLAGS="-DSVR4"
7766  else
7767    apr_addto_bugger="-DSVR4"
7768    for i in $apr_addto_bugger; do
7769      apr_addto_duplicate="0"
7770      for j in $CPPFLAGS; do
7771        if test "x$i" = "x$j"; then
7772          apr_addto_duplicate="1"
7773          break
7774        fi
7775      done
7776      if test $apr_addto_duplicate = "0"; then
7777        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7778        CPPFLAGS="$CPPFLAGS $i"
7779      fi
7780    done
7781  fi
7782
7783	;;
7784    *-ncr-sysv4)
7785
7786  if test "x$CPPFLAGS" = "x"; then
7787    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
7788    CPPFLAGS="-DSVR4 -DMPRAS"
7789  else
7790    apr_addto_bugger="-DSVR4 -DMPRAS"
7791    for i in $apr_addto_bugger; do
7792      apr_addto_duplicate="0"
7793      for j in $CPPFLAGS; do
7794        if test "x$i" = "x$j"; then
7795          apr_addto_duplicate="1"
7796          break
7797        fi
7798      done
7799      if test $apr_addto_duplicate = "0"; then
7800        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7801        CPPFLAGS="$CPPFLAGS $i"
7802      fi
7803    done
7804  fi
7805
7806
7807  if test "x$LIBS" = "x"; then
7808    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc -L/usr/ucblib -lucb\""
7809    LIBS="-lc -L/usr/ucblib -lucb"
7810  else
7811    apr_addto_bugger="-lc -L/usr/ucblib -lucb"
7812    for i in $apr_addto_bugger; do
7813      apr_addto_duplicate="0"
7814      for j in $LIBS; do
7815        if test "x$i" = "x$j"; then
7816          apr_addto_duplicate="1"
7817          break
7818        fi
7819      done
7820      if test $apr_addto_duplicate = "0"; then
7821        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7822        LIBS="$LIBS $i"
7823      fi
7824    done
7825  fi
7826
7827	;;
7828    *-sysv4*)
7829
7830  if test "x$CPPFLAGS" = "x"; then
7831    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
7832    CPPFLAGS="-DSVR4"
7833  else
7834    apr_addto_bugger="-DSVR4"
7835    for i in $apr_addto_bugger; do
7836      apr_addto_duplicate="0"
7837      for j in $CPPFLAGS; do
7838        if test "x$i" = "x$j"; then
7839          apr_addto_duplicate="1"
7840          break
7841        fi
7842      done
7843      if test $apr_addto_duplicate = "0"; then
7844        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7845        CPPFLAGS="$CPPFLAGS $i"
7846      fi
7847    done
7848  fi
7849
7850
7851  if test "x$LIBS" = "x"; then
7852    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
7853    LIBS="-lc"
7854  else
7855    apr_addto_bugger="-lc"
7856    for i in $apr_addto_bugger; do
7857      apr_addto_duplicate="0"
7858      for j in $LIBS; do
7859        if test "x$i" = "x$j"; then
7860          apr_addto_duplicate="1"
7861          break
7862        fi
7863      done
7864      if test $apr_addto_duplicate = "0"; then
7865        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7866        LIBS="$LIBS $i"
7867      fi
7868    done
7869  fi
7870
7871	;;
7872    88k-encore-sysv4)
7873
7874  if test "x$CPPFLAGS" = "x"; then
7875    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -DENCORE\""
7876    CPPFLAGS="-DSVR4 -DENCORE"
7877  else
7878    apr_addto_bugger="-DSVR4 -DENCORE"
7879    for i in $apr_addto_bugger; do
7880      apr_addto_duplicate="0"
7881      for j in $CPPFLAGS; do
7882        if test "x$i" = "x$j"; then
7883          apr_addto_duplicate="1"
7884          break
7885        fi
7886      done
7887      if test $apr_addto_duplicate = "0"; then
7888        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7889        CPPFLAGS="$CPPFLAGS $i"
7890      fi
7891    done
7892  fi
7893
7894
7895  if test "x$LIBS" = "x"; then
7896    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lPW\""
7897    LIBS="-lPW"
7898  else
7899    apr_addto_bugger="-lPW"
7900    for i in $apr_addto_bugger; do
7901      apr_addto_duplicate="0"
7902      for j in $LIBS; do
7903        if test "x$i" = "x$j"; then
7904          apr_addto_duplicate="1"
7905          break
7906        fi
7907      done
7908      if test $apr_addto_duplicate = "0"; then
7909        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7910        LIBS="$LIBS $i"
7911      fi
7912    done
7913  fi
7914
7915	;;
7916    *-uts*)
7917	PLATOSVERS=`echo $host | sed 's/^.*,//'`
7918	case $PLATOSVERS in
7919	    2*)
7920  if test "x$CPPFLAGS" = "x"; then
7921    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUTS21\""
7922    CPPFLAGS="-DUTS21"
7923  else
7924    apr_addto_bugger="-DUTS21"
7925    for i in $apr_addto_bugger; do
7926      apr_addto_duplicate="0"
7927      for j in $CPPFLAGS; do
7928        if test "x$i" = "x$j"; then
7929          apr_addto_duplicate="1"
7930          break
7931        fi
7932      done
7933      if test $apr_addto_duplicate = "0"; then
7934        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7935        CPPFLAGS="$CPPFLAGS $i"
7936      fi
7937    done
7938  fi
7939
7940
7941  if test "x$CFLAGS" = "x"; then
7942    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Xa -eft\""
7943    CFLAGS="-Xa -eft"
7944  else
7945    apr_addto_bugger="-Xa -eft"
7946    for i in $apr_addto_bugger; do
7947      apr_addto_duplicate="0"
7948      for j in $CFLAGS; do
7949        if test "x$i" = "x$j"; then
7950          apr_addto_duplicate="1"
7951          break
7952        fi
7953      done
7954      if test $apr_addto_duplicate = "0"; then
7955        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
7956        CFLAGS="$CFLAGS $i"
7957      fi
7958    done
7959  fi
7960
7961
7962  if test "x$LIBS" = "x"; then
7963    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbsd -la\""
7964    LIBS="-lbsd -la"
7965  else
7966    apr_addto_bugger="-lbsd -la"
7967    for i in $apr_addto_bugger; do
7968      apr_addto_duplicate="0"
7969      for j in $LIBS; do
7970        if test "x$i" = "x$j"; then
7971          apr_addto_duplicate="1"
7972          break
7973        fi
7974      done
7975      if test $apr_addto_duplicate = "0"; then
7976        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7977        LIBS="$LIBS $i"
7978      fi
7979    done
7980  fi
7981
7982	        ;;
7983	    *)
7984  if test "x$CPPFLAGS" = "x"; then
7985    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
7986    CPPFLAGS="-DSVR4"
7987  else
7988    apr_addto_bugger="-DSVR4"
7989    for i in $apr_addto_bugger; do
7990      apr_addto_duplicate="0"
7991      for j in $CPPFLAGS; do
7992        if test "x$i" = "x$j"; then
7993          apr_addto_duplicate="1"
7994          break
7995        fi
7996      done
7997      if test $apr_addto_duplicate = "0"; then
7998        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7999        CPPFLAGS="$CPPFLAGS $i"
8000      fi
8001    done
8002  fi
8003
8004
8005  if test "x$CFLAGS" = "x"; then
8006    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Xa\""
8007    CFLAGS="-Xa"
8008  else
8009    apr_addto_bugger="-Xa"
8010    for i in $apr_addto_bugger; do
8011      apr_addto_duplicate="0"
8012      for j in $CFLAGS; do
8013        if test "x$i" = "x$j"; then
8014          apr_addto_duplicate="1"
8015          break
8016        fi
8017      done
8018      if test $apr_addto_duplicate = "0"; then
8019        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8020        CFLAGS="$CFLAGS $i"
8021      fi
8022    done
8023  fi
8024
8025	        ;;
8026	esac
8027	;;
8028    *-ultrix)
8029
8030  if test "x$CPPFLAGS" = "x"; then
8031    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DULTRIX\""
8032    CPPFLAGS="-DULTRIX"
8033  else
8034    apr_addto_bugger="-DULTRIX"
8035    for i in $apr_addto_bugger; do
8036      apr_addto_duplicate="0"
8037      for j in $CPPFLAGS; do
8038        if test "x$i" = "x$j"; then
8039          apr_addto_duplicate="1"
8040          break
8041        fi
8042      done
8043      if test $apr_addto_duplicate = "0"; then
8044        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8045        CPPFLAGS="$CPPFLAGS $i"
8046      fi
8047    done
8048  fi
8049
8050
8051  test "x$silent" != "xyes" && echo "  forcing SHELL to \"/bin/sh5\""
8052  SHELL="/bin/sh5"
8053
8054	;;
8055    *powerpc-tenon-machten*)
8056
8057  if test "x$LDFLAGS" = "x"; then
8058    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Xlstack=0x14000 -Xldelcsect\""
8059    LDFLAGS="-Xlstack=0x14000 -Xldelcsect"
8060  else
8061    apr_addto_bugger="-Xlstack=0x14000 -Xldelcsect"
8062    for i in $apr_addto_bugger; do
8063      apr_addto_duplicate="0"
8064      for j in $LDFLAGS; do
8065        if test "x$i" = "x$j"; then
8066          apr_addto_duplicate="1"
8067          break
8068        fi
8069      done
8070      if test $apr_addto_duplicate = "0"; then
8071        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
8072        LDFLAGS="$LDFLAGS $i"
8073      fi
8074    done
8075  fi
8076
8077	;;
8078    *-machten*)
8079
8080  if test "x$LDFLAGS" = "x"; then
8081    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-stack 0x14000\""
8082    LDFLAGS="-stack 0x14000"
8083  else
8084    apr_addto_bugger="-stack 0x14000"
8085    for i in $apr_addto_bugger; do
8086      apr_addto_duplicate="0"
8087      for j in $LDFLAGS; do
8088        if test "x$i" = "x$j"; then
8089          apr_addto_duplicate="1"
8090          break
8091        fi
8092      done
8093      if test $apr_addto_duplicate = "0"; then
8094        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
8095        LDFLAGS="$LDFLAGS $i"
8096      fi
8097    done
8098  fi
8099
8100	;;
8101    *convex-v11*)
8102
8103  if test "x$CPPFLAGS" = "x"; then
8104    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DCONVEXOS11\""
8105    CPPFLAGS="-DCONVEXOS11"
8106  else
8107    apr_addto_bugger="-DCONVEXOS11"
8108    for i in $apr_addto_bugger; do
8109      apr_addto_duplicate="0"
8110      for j in $CPPFLAGS; do
8111        if test "x$i" = "x$j"; then
8112          apr_addto_duplicate="1"
8113          break
8114        fi
8115      done
8116      if test $apr_addto_duplicate = "0"; then
8117        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8118        CPPFLAGS="$CPPFLAGS $i"
8119      fi
8120    done
8121  fi
8122
8123
8124  if test -z "$CFLAGS"; then
8125    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O1\""
8126    CFLAGS="-O1"
8127  fi
8128
8129
8130  if test "x$CFLAGS" = "x"; then
8131    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-ext\""
8132    CFLAGS="-ext"
8133  else
8134    apr_addto_bugger="-ext"
8135    for i in $apr_addto_bugger; do
8136      apr_addto_duplicate="0"
8137      for j in $CFLAGS; do
8138        if test "x$i" = "x$j"; then
8139          apr_addto_duplicate="1"
8140          break
8141        fi
8142      done
8143      if test $apr_addto_duplicate = "0"; then
8144        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8145        CFLAGS="$CFLAGS $i"
8146      fi
8147    done
8148  fi
8149
8150	;;
8151    i860-intel-osf1)
8152
8153  if test "x$CPPFLAGS" = "x"; then
8154    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DPARAGON\""
8155    CPPFLAGS="-DPARAGON"
8156  else
8157    apr_addto_bugger="-DPARAGON"
8158    for i in $apr_addto_bugger; do
8159      apr_addto_duplicate="0"
8160      for j in $CPPFLAGS; do
8161        if test "x$i" = "x$j"; then
8162          apr_addto_duplicate="1"
8163          break
8164        fi
8165      done
8166      if test $apr_addto_duplicate = "0"; then
8167        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8168        CPPFLAGS="$CPPFLAGS $i"
8169      fi
8170    done
8171  fi
8172
8173	;;
8174    *-sequent-ptx2.*.*)
8175
8176  if test "x$CPPFLAGS" = "x"; then
8177    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=20\""
8178    CPPFLAGS="-DSEQUENT=20"
8179  else
8180    apr_addto_bugger="-DSEQUENT=20"
8181    for i in $apr_addto_bugger; do
8182      apr_addto_duplicate="0"
8183      for j in $CPPFLAGS; do
8184        if test "x$i" = "x$j"; then
8185          apr_addto_duplicate="1"
8186          break
8187        fi
8188      done
8189      if test $apr_addto_duplicate = "0"; then
8190        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8191        CPPFLAGS="$CPPFLAGS $i"
8192      fi
8193    done
8194  fi
8195
8196
8197  if test "x$CFLAGS" = "x"; then
8198    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
8199    CFLAGS="-Wc,-pw"
8200  else
8201    apr_addto_bugger="-Wc,-pw"
8202    for i in $apr_addto_bugger; do
8203      apr_addto_duplicate="0"
8204      for j in $CFLAGS; do
8205        if test "x$i" = "x$j"; then
8206          apr_addto_duplicate="1"
8207          break
8208        fi
8209      done
8210      if test $apr_addto_duplicate = "0"; then
8211        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8212        CFLAGS="$CFLAGS $i"
8213      fi
8214    done
8215  fi
8216
8217
8218  if test "x$LIBS" = "x"; then
8219    test "x$silent" != "xyes" && echo "  setting LIBS to \"-linet -lc -lseq\""
8220    LIBS="-linet -lc -lseq"
8221  else
8222    apr_addto_bugger="-linet -lc -lseq"
8223    for i in $apr_addto_bugger; do
8224      apr_addto_duplicate="0"
8225      for j in $LIBS; do
8226        if test "x$i" = "x$j"; then
8227          apr_addto_duplicate="1"
8228          break
8229        fi
8230      done
8231      if test $apr_addto_duplicate = "0"; then
8232        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8233        LIBS="$LIBS $i"
8234      fi
8235    done
8236  fi
8237
8238	;;
8239    *-sequent-ptx4.0.*)
8240
8241  if test "x$CPPFLAGS" = "x"; then
8242    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=40\""
8243    CPPFLAGS="-DSEQUENT=40"
8244  else
8245    apr_addto_bugger="-DSEQUENT=40"
8246    for i in $apr_addto_bugger; do
8247      apr_addto_duplicate="0"
8248      for j in $CPPFLAGS; do
8249        if test "x$i" = "x$j"; then
8250          apr_addto_duplicate="1"
8251          break
8252        fi
8253      done
8254      if test $apr_addto_duplicate = "0"; then
8255        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8256        CPPFLAGS="$CPPFLAGS $i"
8257      fi
8258    done
8259  fi
8260
8261
8262  if test "x$CFLAGS" = "x"; then
8263    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
8264    CFLAGS="-Wc,-pw"
8265  else
8266    apr_addto_bugger="-Wc,-pw"
8267    for i in $apr_addto_bugger; do
8268      apr_addto_duplicate="0"
8269      for j in $CFLAGS; do
8270        if test "x$i" = "x$j"; then
8271          apr_addto_duplicate="1"
8272          break
8273        fi
8274      done
8275      if test $apr_addto_duplicate = "0"; then
8276        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8277        CFLAGS="$CFLAGS $i"
8278      fi
8279    done
8280  fi
8281
8282
8283  if test "x$LIBS" = "x"; then
8284    test "x$silent" != "xyes" && echo "  setting LIBS to \"-linet -lc\""
8285    LIBS="-linet -lc"
8286  else
8287    apr_addto_bugger="-linet -lc"
8288    for i in $apr_addto_bugger; do
8289      apr_addto_duplicate="0"
8290      for j in $LIBS; do
8291        if test "x$i" = "x$j"; then
8292          apr_addto_duplicate="1"
8293          break
8294        fi
8295      done
8296      if test $apr_addto_duplicate = "0"; then
8297        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8298        LIBS="$LIBS $i"
8299      fi
8300    done
8301  fi
8302
8303	;;
8304    *-sequent-ptx4.[123].*)
8305
8306  if test "x$CPPFLAGS" = "x"; then
8307    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=41\""
8308    CPPFLAGS="-DSEQUENT=41"
8309  else
8310    apr_addto_bugger="-DSEQUENT=41"
8311    for i in $apr_addto_bugger; do
8312      apr_addto_duplicate="0"
8313      for j in $CPPFLAGS; do
8314        if test "x$i" = "x$j"; then
8315          apr_addto_duplicate="1"
8316          break
8317        fi
8318      done
8319      if test $apr_addto_duplicate = "0"; then
8320        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8321        CPPFLAGS="$CPPFLAGS $i"
8322      fi
8323    done
8324  fi
8325
8326
8327  if test "x$CFLAGS" = "x"; then
8328    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
8329    CFLAGS="-Wc,-pw"
8330  else
8331    apr_addto_bugger="-Wc,-pw"
8332    for i in $apr_addto_bugger; do
8333      apr_addto_duplicate="0"
8334      for j in $CFLAGS; do
8335        if test "x$i" = "x$j"; then
8336          apr_addto_duplicate="1"
8337          break
8338        fi
8339      done
8340      if test $apr_addto_duplicate = "0"; then
8341        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8342        CFLAGS="$CFLAGS $i"
8343      fi
8344    done
8345  fi
8346
8347
8348  if test "x$LIBS" = "x"; then
8349    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
8350    LIBS="-lc"
8351  else
8352    apr_addto_bugger="-lc"
8353    for i in $apr_addto_bugger; do
8354      apr_addto_duplicate="0"
8355      for j in $LIBS; do
8356        if test "x$i" = "x$j"; then
8357          apr_addto_duplicate="1"
8358          break
8359        fi
8360      done
8361      if test $apr_addto_duplicate = "0"; then
8362        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8363        LIBS="$LIBS $i"
8364      fi
8365    done
8366  fi
8367
8368	;;
8369    *-sequent-ptx4.4.*)
8370
8371  if test "x$CPPFLAGS" = "x"; then
8372    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=44\""
8373    CPPFLAGS="-DSEQUENT=44"
8374  else
8375    apr_addto_bugger="-DSEQUENT=44"
8376    for i in $apr_addto_bugger; do
8377      apr_addto_duplicate="0"
8378      for j in $CPPFLAGS; do
8379        if test "x$i" = "x$j"; then
8380          apr_addto_duplicate="1"
8381          break
8382        fi
8383      done
8384      if test $apr_addto_duplicate = "0"; then
8385        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8386        CPPFLAGS="$CPPFLAGS $i"
8387      fi
8388    done
8389  fi
8390
8391
8392  if test "x$CFLAGS" = "x"; then
8393    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
8394    CFLAGS="-Wc,-pw"
8395  else
8396    apr_addto_bugger="-Wc,-pw"
8397    for i in $apr_addto_bugger; do
8398      apr_addto_duplicate="0"
8399      for j in $CFLAGS; do
8400        if test "x$i" = "x$j"; then
8401          apr_addto_duplicate="1"
8402          break
8403        fi
8404      done
8405      if test $apr_addto_duplicate = "0"; then
8406        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8407        CFLAGS="$CFLAGS $i"
8408      fi
8409    done
8410  fi
8411
8412
8413  if test "x$LIBS" = "x"; then
8414    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
8415    LIBS="-lc"
8416  else
8417    apr_addto_bugger="-lc"
8418    for i in $apr_addto_bugger; do
8419      apr_addto_duplicate="0"
8420      for j in $LIBS; do
8421        if test "x$i" = "x$j"; then
8422          apr_addto_duplicate="1"
8423          break
8424        fi
8425      done
8426      if test $apr_addto_duplicate = "0"; then
8427        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8428        LIBS="$LIBS $i"
8429      fi
8430    done
8431  fi
8432
8433	;;
8434    *-sequent-ptx4.5.*)
8435
8436  if test "x$CPPFLAGS" = "x"; then
8437    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=45\""
8438    CPPFLAGS="-DSEQUENT=45"
8439  else
8440    apr_addto_bugger="-DSEQUENT=45"
8441    for i in $apr_addto_bugger; do
8442      apr_addto_duplicate="0"
8443      for j in $CPPFLAGS; do
8444        if test "x$i" = "x$j"; then
8445          apr_addto_duplicate="1"
8446          break
8447        fi
8448      done
8449      if test $apr_addto_duplicate = "0"; then
8450        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8451        CPPFLAGS="$CPPFLAGS $i"
8452      fi
8453    done
8454  fi
8455
8456
8457  if test "x$CFLAGS" = "x"; then
8458    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
8459    CFLAGS="-Wc,-pw"
8460  else
8461    apr_addto_bugger="-Wc,-pw"
8462    for i in $apr_addto_bugger; do
8463      apr_addto_duplicate="0"
8464      for j in $CFLAGS; do
8465        if test "x$i" = "x$j"; then
8466          apr_addto_duplicate="1"
8467          break
8468        fi
8469      done
8470      if test $apr_addto_duplicate = "0"; then
8471        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8472        CFLAGS="$CFLAGS $i"
8473      fi
8474    done
8475  fi
8476
8477
8478  if test "x$LIBS" = "x"; then
8479    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
8480    LIBS="-lc"
8481  else
8482    apr_addto_bugger="-lc"
8483    for i in $apr_addto_bugger; do
8484      apr_addto_duplicate="0"
8485      for j in $LIBS; do
8486        if test "x$i" = "x$j"; then
8487          apr_addto_duplicate="1"
8488          break
8489        fi
8490      done
8491      if test $apr_addto_duplicate = "0"; then
8492        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8493        LIBS="$LIBS $i"
8494      fi
8495    done
8496  fi
8497
8498	;;
8499    *-sequent-ptx5.0.*)
8500
8501  if test "x$CPPFLAGS" = "x"; then
8502    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=50\""
8503    CPPFLAGS="-DSEQUENT=50"
8504  else
8505    apr_addto_bugger="-DSEQUENT=50"
8506    for i in $apr_addto_bugger; do
8507      apr_addto_duplicate="0"
8508      for j in $CPPFLAGS; do
8509        if test "x$i" = "x$j"; then
8510          apr_addto_duplicate="1"
8511          break
8512        fi
8513      done
8514      if test $apr_addto_duplicate = "0"; then
8515        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8516        CPPFLAGS="$CPPFLAGS $i"
8517      fi
8518    done
8519  fi
8520
8521
8522  if test "x$CFLAGS" = "x"; then
8523    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
8524    CFLAGS="-Wc,-pw"
8525  else
8526    apr_addto_bugger="-Wc,-pw"
8527    for i in $apr_addto_bugger; do
8528      apr_addto_duplicate="0"
8529      for j in $CFLAGS; do
8530        if test "x$i" = "x$j"; then
8531          apr_addto_duplicate="1"
8532          break
8533        fi
8534      done
8535      if test $apr_addto_duplicate = "0"; then
8536        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8537        CFLAGS="$CFLAGS $i"
8538      fi
8539    done
8540  fi
8541
8542
8543  if test "x$LIBS" = "x"; then
8544    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
8545    LIBS="-lc"
8546  else
8547    apr_addto_bugger="-lc"
8548    for i in $apr_addto_bugger; do
8549      apr_addto_duplicate="0"
8550      for j in $LIBS; do
8551        if test "x$i" = "x$j"; then
8552          apr_addto_duplicate="1"
8553          break
8554        fi
8555      done
8556      if test $apr_addto_duplicate = "0"; then
8557        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8558        LIBS="$LIBS $i"
8559      fi
8560    done
8561  fi
8562
8563	;;
8564    *NEWS-OS*)
8565
8566  if test "x$CPPFLAGS" = "x"; then
8567    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNEWSOS\""
8568    CPPFLAGS="-DNEWSOS"
8569  else
8570    apr_addto_bugger="-DNEWSOS"
8571    for i in $apr_addto_bugger; do
8572      apr_addto_duplicate="0"
8573      for j in $CPPFLAGS; do
8574        if test "x$i" = "x$j"; then
8575          apr_addto_duplicate="1"
8576          break
8577        fi
8578      done
8579      if test $apr_addto_duplicate = "0"; then
8580        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8581        CPPFLAGS="$CPPFLAGS $i"
8582      fi
8583    done
8584  fi
8585
8586	;;
8587    *-riscix)
8588
8589  if test "x$CPPFLAGS" = "x"; then
8590    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DRISCIX\""
8591    CPPFLAGS="-DRISCIX"
8592  else
8593    apr_addto_bugger="-DRISCIX"
8594    for i in $apr_addto_bugger; do
8595      apr_addto_duplicate="0"
8596      for j in $CPPFLAGS; do
8597        if test "x$i" = "x$j"; then
8598          apr_addto_duplicate="1"
8599          break
8600        fi
8601      done
8602      if test $apr_addto_duplicate = "0"; then
8603        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8604        CPPFLAGS="$CPPFLAGS $i"
8605      fi
8606    done
8607  fi
8608
8609
8610  if test -z "$CFLAGS"; then
8611    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
8612    CFLAGS="-O"
8613  fi
8614
8615	;;
8616    *-irix*)
8617
8618  if test "x$CPPFLAGS" = "x"; then
8619    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_POSIX_THREAD_SAFE_FUNCTIONS\""
8620    CPPFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
8621  else
8622    apr_addto_bugger="-D_POSIX_THREAD_SAFE_FUNCTIONS"
8623    for i in $apr_addto_bugger; do
8624      apr_addto_duplicate="0"
8625      for j in $CPPFLAGS; do
8626        if test "x$i" = "x$j"; then
8627          apr_addto_duplicate="1"
8628          break
8629        fi
8630      done
8631      if test $apr_addto_duplicate = "0"; then
8632        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8633        CPPFLAGS="$CPPFLAGS $i"
8634      fi
8635    done
8636  fi
8637
8638	;;
8639    *beos*)
8640
8641  if test "x$CPPFLAGS" = "x"; then
8642    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DBEOS\""
8643    CPPFLAGS="-DBEOS"
8644  else
8645    apr_addto_bugger="-DBEOS"
8646    for i in $apr_addto_bugger; do
8647      apr_addto_duplicate="0"
8648      for j in $CPPFLAGS; do
8649        if test "x$i" = "x$j"; then
8650          apr_addto_duplicate="1"
8651          break
8652        fi
8653      done
8654      if test $apr_addto_duplicate = "0"; then
8655        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8656        CPPFLAGS="$CPPFLAGS $i"
8657      fi
8658    done
8659  fi
8660
8661        PLATOSVERS=`uname -r`
8662
8663  if test -z "$apr_process_lock_is_global"; then
8664    test "x$silent" != "xyes" && echo "  setting apr_process_lock_is_global to \"yes\""
8665    apr_process_lock_is_global="yes"
8666  fi
8667
8668        case $PLATOSVERS in
8669            5.0.4)
8670
8671  if test "x$LDFLAGS" = "x"; then
8672    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L/boot/beos/system/lib\""
8673    LDFLAGS="-L/boot/beos/system/lib"
8674  else
8675    apr_addto_bugger="-L/boot/beos/system/lib"
8676    for i in $apr_addto_bugger; do
8677      apr_addto_duplicate="0"
8678      for j in $LDFLAGS; do
8679        if test "x$i" = "x$j"; then
8680          apr_addto_duplicate="1"
8681          break
8682        fi
8683      done
8684      if test $apr_addto_duplicate = "0"; then
8685        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
8686        LDFLAGS="$LDFLAGS $i"
8687      fi
8688    done
8689  fi
8690
8691
8692  if test "x$LIBS" = "x"; then
8693    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbind -lsocket\""
8694    LIBS="-lbind -lsocket"
8695  else
8696    apr_addto_bugger="-lbind -lsocket"
8697    for i in $apr_addto_bugger; do
8698      apr_addto_duplicate="0"
8699      for j in $LIBS; do
8700        if test "x$i" = "x$j"; then
8701          apr_addto_duplicate="1"
8702          break
8703        fi
8704      done
8705      if test $apr_addto_duplicate = "0"; then
8706        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8707        LIBS="$LIBS $i"
8708      fi
8709    done
8710  fi
8711
8712
8713  if test "x$CPPFLAGS" = "x"; then
8714    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DBONE7\""
8715    CPPFLAGS="-DBONE7"
8716  else
8717    apr_addto_bugger="-DBONE7"
8718    for i in $apr_addto_bugger; do
8719      apr_addto_duplicate="0"
8720      for j in $CPPFLAGS; do
8721        if test "x$i" = "x$j"; then
8722          apr_addto_duplicate="1"
8723          break
8724        fi
8725      done
8726      if test $apr_addto_duplicate = "0"; then
8727        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8728        CPPFLAGS="$CPPFLAGS $i"
8729      fi
8730    done
8731  fi
8732
8733                ;;
8734            5.1)
8735
8736  if test "x$LDFLAGS" = "x"; then
8737    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L/boot/beos/system/lib\""
8738    LDFLAGS="-L/boot/beos/system/lib"
8739  else
8740    apr_addto_bugger="-L/boot/beos/system/lib"
8741    for i in $apr_addto_bugger; do
8742      apr_addto_duplicate="0"
8743      for j in $LDFLAGS; do
8744        if test "x$i" = "x$j"; then
8745          apr_addto_duplicate="1"
8746          break
8747        fi
8748      done
8749      if test $apr_addto_duplicate = "0"; then
8750        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
8751        LDFLAGS="$LDFLAGS $i"
8752      fi
8753    done
8754  fi
8755
8756
8757  if test "x$LIBS" = "x"; then
8758    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbind -lsocket\""
8759    LIBS="-lbind -lsocket"
8760  else
8761    apr_addto_bugger="-lbind -lsocket"
8762    for i in $apr_addto_bugger; do
8763      apr_addto_duplicate="0"
8764      for j in $LIBS; do
8765        if test "x$i" = "x$j"; then
8766          apr_addto_duplicate="1"
8767          break
8768        fi
8769      done
8770      if test $apr_addto_duplicate = "0"; then
8771        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8772        LIBS="$LIBS $i"
8773      fi
8774    done
8775  fi
8776
8777                ;;
8778	esac
8779
8780  if test "x$CPPFLAGS" = "x"; then
8781    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSIGPROCMASK_SETS_THREAD_MASK\""
8782    CPPFLAGS="-DSIGPROCMASK_SETS_THREAD_MASK"
8783  else
8784    apr_addto_bugger="-DSIGPROCMASK_SETS_THREAD_MASK"
8785    for i in $apr_addto_bugger; do
8786      apr_addto_duplicate="0"
8787      for j in $CPPFLAGS; do
8788        if test "x$i" = "x$j"; then
8789          apr_addto_duplicate="1"
8790          break
8791        fi
8792      done
8793      if test $apr_addto_duplicate = "0"; then
8794        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8795        CPPFLAGS="$CPPFLAGS $i"
8796      fi
8797    done
8798  fi
8799
8800        ;;
8801    4850-*.*)
8802
8803  if test "x$CPPFLAGS" = "x"; then
8804    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
8805    CPPFLAGS="-DSVR4 -DMPRAS"
8806  else
8807    apr_addto_bugger="-DSVR4 -DMPRAS"
8808    for i in $apr_addto_bugger; do
8809      apr_addto_duplicate="0"
8810      for j in $CPPFLAGS; do
8811        if test "x$i" = "x$j"; then
8812          apr_addto_duplicate="1"
8813          break
8814        fi
8815      done
8816      if test $apr_addto_duplicate = "0"; then
8817        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8818        CPPFLAGS="$CPPFLAGS $i"
8819      fi
8820    done
8821  fi
8822
8823
8824  if test "x$LIBS" = "x"; then
8825    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc -L/usr/ucblib -lucb\""
8826    LIBS="-lc -L/usr/ucblib -lucb"
8827  else
8828    apr_addto_bugger="-lc -L/usr/ucblib -lucb"
8829    for i in $apr_addto_bugger; do
8830      apr_addto_duplicate="0"
8831      for j in $LIBS; do
8832        if test "x$i" = "x$j"; then
8833          apr_addto_duplicate="1"
8834          break
8835        fi
8836      done
8837      if test $apr_addto_duplicate = "0"; then
8838        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8839        LIBS="$LIBS $i"
8840      fi
8841    done
8842  fi
8843
8844	;;
8845    drs6000*)
8846
8847  if test "x$CPPFLAGS" = "x"; then
8848    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
8849    CPPFLAGS="-DSVR4"
8850  else
8851    apr_addto_bugger="-DSVR4"
8852    for i in $apr_addto_bugger; do
8853      apr_addto_duplicate="0"
8854      for j in $CPPFLAGS; do
8855        if test "x$i" = "x$j"; then
8856          apr_addto_duplicate="1"
8857          break
8858        fi
8859      done
8860      if test $apr_addto_duplicate = "0"; then
8861        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8862        CPPFLAGS="$CPPFLAGS $i"
8863      fi
8864    done
8865  fi
8866
8867
8868  if test "x$LIBS" = "x"; then
8869    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc -L/usr/ucblib -lucb\""
8870    LIBS="-lc -L/usr/ucblib -lucb"
8871  else
8872    apr_addto_bugger="-lc -L/usr/ucblib -lucb"
8873    for i in $apr_addto_bugger; do
8874      apr_addto_duplicate="0"
8875      for j in $LIBS; do
8876        if test "x$i" = "x$j"; then
8877          apr_addto_duplicate="1"
8878          break
8879        fi
8880      done
8881      if test $apr_addto_duplicate = "0"; then
8882        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8883        LIBS="$LIBS $i"
8884      fi
8885    done
8886  fi
8887
8888	;;
8889    m88k-*-CX/SX|CYBER)
8890
8891  if test "x$CPPFLAGS" = "x"; then
8892    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_CX_SX\""
8893    CPPFLAGS="-D_CX_SX"
8894  else
8895    apr_addto_bugger="-D_CX_SX"
8896    for i in $apr_addto_bugger; do
8897      apr_addto_duplicate="0"
8898      for j in $CPPFLAGS; do
8899        if test "x$i" = "x$j"; then
8900          apr_addto_duplicate="1"
8901          break
8902        fi
8903      done
8904      if test $apr_addto_duplicate = "0"; then
8905        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8906        CPPFLAGS="$CPPFLAGS $i"
8907      fi
8908    done
8909  fi
8910
8911
8912  if test "x$CFLAGS" = "x"; then
8913    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Xa\""
8914    CFLAGS="-Xa"
8915  else
8916    apr_addto_bugger="-Xa"
8917    for i in $apr_addto_bugger; do
8918      apr_addto_duplicate="0"
8919      for j in $CFLAGS; do
8920        if test "x$i" = "x$j"; then
8921          apr_addto_duplicate="1"
8922          break
8923        fi
8924      done
8925      if test $apr_addto_duplicate = "0"; then
8926        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8927        CFLAGS="$CFLAGS $i"
8928      fi
8929    done
8930  fi
8931
8932	;;
8933    *-tandem-oss)
8934
8935  if test "x$CPPFLAGS" = "x"; then
8936    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1\""
8937    CPPFLAGS="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
8938  else
8939    apr_addto_bugger="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
8940    for i in $apr_addto_bugger; do
8941      apr_addto_duplicate="0"
8942      for j in $CPPFLAGS; do
8943        if test "x$i" = "x$j"; then
8944          apr_addto_duplicate="1"
8945          break
8946        fi
8947      done
8948      if test $apr_addto_duplicate = "0"; then
8949        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8950        CPPFLAGS="$CPPFLAGS $i"
8951      fi
8952    done
8953  fi
8954
8955	;;
8956    *-ibm-os390)
8957
8958  if test -z "$apr_lock_method"; then
8959    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
8960    apr_lock_method="USE_SYSVSEM_SERIALIZE"
8961  fi
8962
8963
8964  if test -z "$apr_sysvsem_is_global"; then
8965    test "x$silent" != "xyes" && echo "  setting apr_sysvsem_is_global to \"yes\""
8966    apr_sysvsem_is_global="yes"
8967  fi
8968
8969
8970  if test -z "$apr_gethostbyname_is_thread_safe"; then
8971    test "x$silent" != "xyes" && echo "  setting apr_gethostbyname_is_thread_safe to \"yes\""
8972    apr_gethostbyname_is_thread_safe="yes"
8973  fi
8974
8975
8976  if test -z "$apr_gethostbyaddr_is_thread_safe"; then
8977    test "x$silent" != "xyes" && echo "  setting apr_gethostbyaddr_is_thread_safe to \"yes\""
8978    apr_gethostbyaddr_is_thread_safe="yes"
8979  fi
8980
8981
8982  if test -z "$apr_getservbyname_is_thread_safe"; then
8983    test "x$silent" != "xyes" && echo "  setting apr_getservbyname_is_thread_safe to \"yes\""
8984    apr_getservbyname_is_thread_safe="yes"
8985  fi
8986
8987
8988$as_echo "#define HAVE_ZOS_PTHREADS 1" >>confdefs.h
8989
8990
8991  if test "x$CPPFLAGS" = "x"; then
8992    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1\""
8993    CPPFLAGS="-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
8994  else
8995    apr_addto_bugger="-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
8996    for i in $apr_addto_bugger; do
8997      apr_addto_duplicate="0"
8998      for j in $CPPFLAGS; do
8999        if test "x$i" = "x$j"; then
9000          apr_addto_duplicate="1"
9001          break
9002        fi
9003      done
9004      if test $apr_addto_duplicate = "0"; then
9005        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
9006        CPPFLAGS="$CPPFLAGS $i"
9007      fi
9008    done
9009  fi
9010
9011        ;;
9012    *-ibm-as400)
9013
9014  if test -z "$apr_lock_method"; then
9015    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
9016    apr_lock_method="USE_SYSVSEM_SERIALIZE"
9017  fi
9018
9019
9020  if test -z "$apr_process_lock_is_global"; then
9021    test "x$silent" != "xyes" && echo "  setting apr_process_lock_is_global to \"yes\""
9022    apr_process_lock_is_global="yes"
9023  fi
9024
9025
9026  if test -z "$apr_gethostbyname_is_thread_safe"; then
9027    test "x$silent" != "xyes" && echo "  setting apr_gethostbyname_is_thread_safe to \"yes\""
9028    apr_gethostbyname_is_thread_safe="yes"
9029  fi
9030
9031
9032  if test -z "$apr_gethostbyaddr_is_thread_safe"; then
9033    test "x$silent" != "xyes" && echo "  setting apr_gethostbyaddr_is_thread_safe to \"yes\""
9034    apr_gethostbyaddr_is_thread_safe="yes"
9035  fi
9036
9037
9038  if test -z "$apr_getservbyname_is_thread_safe"; then
9039    test "x$silent" != "xyes" && echo "  setting apr_getservbyname_is_thread_safe to \"yes\""
9040    apr_getservbyname_is_thread_safe="yes"
9041  fi
9042
9043        ;;
9044    *mingw*)
9045
9046  if test "x$INTERNAL_CPPFLAGS" = "x"; then
9047    test "x$silent" != "xyes" && echo "  setting INTERNAL_CPPFLAGS to \"-DBINPATH=$apr_builddir/test/.libs\""
9048    INTERNAL_CPPFLAGS="-DBINPATH=$apr_builddir/test/.libs"
9049  else
9050    apr_addto_bugger="-DBINPATH=$apr_builddir/test/.libs"
9051    for i in $apr_addto_bugger; do
9052      apr_addto_duplicate="0"
9053      for j in $INTERNAL_CPPFLAGS; do
9054        if test "x$i" = "x$j"; then
9055          apr_addto_duplicate="1"
9056          break
9057        fi
9058      done
9059      if test $apr_addto_duplicate = "0"; then
9060        test "x$silent" != "xyes" && echo "  adding \"$i\" to INTERNAL_CPPFLAGS"
9061        INTERNAL_CPPFLAGS="$INTERNAL_CPPFLAGS $i"
9062      fi
9063    done
9064  fi
9065
9066
9067  if test "x$CPPFLAGS" = "x"; then
9068    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DWIN32 -D__MSVCRT__\""
9069    CPPFLAGS="-DWIN32 -D__MSVCRT__"
9070  else
9071    apr_addto_bugger="-DWIN32 -D__MSVCRT__"
9072    for i in $apr_addto_bugger; do
9073      apr_addto_duplicate="0"
9074      for j in $CPPFLAGS; do
9075        if test "x$i" = "x$j"; then
9076          apr_addto_duplicate="1"
9077          break
9078        fi
9079      done
9080      if test $apr_addto_duplicate = "0"; then
9081        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
9082        CPPFLAGS="$CPPFLAGS $i"
9083      fi
9084    done
9085  fi
9086
9087
9088  if test "x$LDFLAGS" = "x"; then
9089    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Wl,--enable-auto-import,--subsystem,console\""
9090    LDFLAGS="-Wl,--enable-auto-import,--subsystem,console"
9091  else
9092    apr_addto_bugger="-Wl,--enable-auto-import,--subsystem,console"
9093    for i in $apr_addto_bugger; do
9094      apr_addto_duplicate="0"
9095      for j in $LDFLAGS; do
9096        if test "x$i" = "x$j"; then
9097          apr_addto_duplicate="1"
9098          break
9099        fi
9100      done
9101      if test $apr_addto_duplicate = "0"; then
9102        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
9103        LDFLAGS="$LDFLAGS $i"
9104      fi
9105    done
9106  fi
9107
9108
9109  if test -z "$have_unicode_fs"; then
9110    test "x$silent" != "xyes" && echo "  setting have_unicode_fs to \"1\""
9111    have_unicode_fs="1"
9112  fi
9113
9114
9115  if test -z "$have_proc_invoked"; then
9116    test "x$silent" != "xyes" && echo "  setting have_proc_invoked to \"1\""
9117    have_proc_invoked="1"
9118  fi
9119
9120
9121  if test -z "$apr_lock_method"; then
9122    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"win32\""
9123    apr_lock_method="win32"
9124  fi
9125
9126
9127  if test -z "$apr_process_lock_is_global"; then
9128    test "x$silent" != "xyes" && echo "  setting apr_process_lock_is_global to \"yes\""
9129    apr_process_lock_is_global="yes"
9130  fi
9131
9132
9133  if test -z "$apr_cv_use_lfs64"; then
9134    test "x$silent" != "xyes" && echo "  setting apr_cv_use_lfs64 to \"yes\""
9135    apr_cv_use_lfs64="yes"
9136  fi
9137
9138
9139  if test -z "$apr_cv_osuuid"; then
9140    test "x$silent" != "xyes" && echo "  setting apr_cv_osuuid to \"yes\""
9141    apr_cv_osuuid="yes"
9142  fi
9143
9144
9145  if test -z "$apr_cv_tcp_nodelay_with_cork"; then
9146    test "x$silent" != "xyes" && echo "  setting apr_cv_tcp_nodelay_with_cork to \"no\""
9147    apr_cv_tcp_nodelay_with_cork="no"
9148  fi
9149
9150
9151  if test -z "$apr_thread_func"; then
9152    test "x$silent" != "xyes" && echo "  setting apr_thread_func to \"__stdcall\""
9153    apr_thread_func="__stdcall"
9154  fi
9155
9156
9157  if test -z "$ac_cv_o_nonblock_inherited"; then
9158    test "x$silent" != "xyes" && echo "  setting ac_cv_o_nonblock_inherited to \"yes\""
9159    ac_cv_o_nonblock_inherited="yes"
9160  fi
9161
9162
9163  if test -z "$ac_cv_tcp_nodelay_inherited"; then
9164    test "x$silent" != "xyes" && echo "  setting ac_cv_tcp_nodelay_inherited to \"yes\""
9165    ac_cv_tcp_nodelay_inherited="yes"
9166  fi
9167
9168
9169  if test -z "$ac_cv_file__dev_zero"; then
9170    test "x$silent" != "xyes" && echo "  setting ac_cv_file__dev_zero to \"no\""
9171    ac_cv_file__dev_zero="no"
9172  fi
9173
9174
9175  if test -z "$ac_cv_func_setpgrp_void"; then
9176    test "x$silent" != "xyes" && echo "  setting ac_cv_func_setpgrp_void to \"no\""
9177    ac_cv_func_setpgrp_void="no"
9178  fi
9179
9180
9181  if test -z "$ac_cv_func_mmap"; then
9182    test "x$silent" != "xyes" && echo "  setting ac_cv_func_mmap to \"yes\""
9183    ac_cv_func_mmap="yes"
9184  fi
9185
9186
9187  if test -z "$ac_cv_define_sockaddr_in6"; then
9188    test "x$silent" != "xyes" && echo "  setting ac_cv_define_sockaddr_in6 to \"yes\""
9189    ac_cv_define_sockaddr_in6="yes"
9190  fi
9191
9192
9193  if test -z "$ac_cv_working_getaddrinfo"; then
9194    test "x$silent" != "xyes" && echo "  setting ac_cv_working_getaddrinfo to \"yes\""
9195    ac_cv_working_getaddrinfo="yes"
9196  fi
9197
9198
9199  if test -z "$ac_cv_working_getnameinfo"; then
9200    test "x$silent" != "xyes" && echo "  setting ac_cv_working_getnameinfo to \"yes\""
9201    ac_cv_working_getnameinfo="yes"
9202  fi
9203
9204
9205  if test -z "$ac_cv_func_gai_strerror"; then
9206    test "x$silent" != "xyes" && echo "  setting ac_cv_func_gai_strerror to \"yes\""
9207    ac_cv_func_gai_strerror="yes"
9208  fi
9209
9210        case $host in
9211            *mingw32*)
9212
9213  if test -z "$apr_has_xthread_files"; then
9214    test "x$silent" != "xyes" && echo "  setting apr_has_xthread_files to \"1\""
9215    apr_has_xthread_files="1"
9216  fi
9217
9218
9219  if test -z "$apr_has_user"; then
9220    test "x$silent" != "xyes" && echo "  setting apr_has_user to \"1\""
9221    apr_has_user="1"
9222  fi
9223
9224
9225  if test -z "$apr_procattr_user_set_requires_password"; then
9226    test "x$silent" != "xyes" && echo "  setting apr_procattr_user_set_requires_password to \"1\""
9227    apr_procattr_user_set_requires_password="1"
9228  fi
9229
9230
9231  if test -z "$ac_cv_func_sendfile"; then
9232    test "x$silent" != "xyes" && echo "  setting ac_cv_func_sendfile to \"yes\""
9233    ac_cv_func_sendfile="yes"
9234  fi
9235
9236                ;;
9237            *mingwce)
9238
9239  if test -z "$apr_has_xthread_files"; then
9240    test "x$silent" != "xyes" && echo "  setting apr_has_xthread_files to \"0\""
9241    apr_has_xthread_files="0"
9242  fi
9243
9244
9245  if test -z "$apr_has_user"; then
9246    test "x$silent" != "xyes" && echo "  setting apr_has_user to \"0\""
9247    apr_has_user="0"
9248  fi
9249
9250
9251  if test -z "$apr_procattr_user_set_requires_password"; then
9252    test "x$silent" != "xyes" && echo "  setting apr_procattr_user_set_requires_password to \"0\""
9253    apr_procattr_user_set_requires_password="0"
9254  fi
9255
9256
9257  if test -z "$ac_cv_func_sendfile"; then
9258    test "x$silent" != "xyes" && echo "  setting ac_cv_func_sendfile to \"no\""
9259    ac_cv_func_sendfile="no"
9260  fi
9261
9262                ;;
9263        esac
9264        ;;
9265  esac
9266
9267fi
9268
9269
9270DEFAULT_OSDIR="unix"
9271echo "(Default will be ${DEFAULT_OSDIR})"
9272
9273apr_modules="file_io network_io threadproc misc locks time mmap shmem user memory atomic poll support random"
9274
9275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9276$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9277set x ${MAKE-make}
9278ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9279if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9280  $as_echo_n "(cached) " >&6
9281else
9282  cat >conftest.make <<\_ACEOF
9283SHELL = /bin/sh
9284all:
9285	@echo '@@@%%%=$(MAKE)=@@@%%%'
9286_ACEOF
9287# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9288case `${MAKE-make} -f conftest.make 2>/dev/null` in
9289  *@@@%%%=?*=@@@%%%*)
9290    eval ac_cv_prog_make_${ac_make}_set=yes;;
9291  *)
9292    eval ac_cv_prog_make_${ac_make}_set=no;;
9293esac
9294rm -f conftest.make
9295fi
9296if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9298$as_echo "yes" >&6; }
9299  SET_MAKE=
9300else
9301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9302$as_echo "no" >&6; }
9303  SET_MAKE="MAKE=${MAKE-make}"
9304fi
9305
9306ac_ext=c
9307ac_cpp='$CPP $CPPFLAGS'
9308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9310ac_compiler_gnu=$ac_cv_c_compiler_gnu
9311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9312$as_echo_n "checking how to run the C preprocessor... " >&6; }
9313# On Suns, sometimes $CPP names a directory.
9314if test -n "$CPP" && test -d "$CPP"; then
9315  CPP=
9316fi
9317if test -z "$CPP"; then
9318  if ${ac_cv_prog_CPP+:} false; then :
9319  $as_echo_n "(cached) " >&6
9320else
9321      # Double quotes because CPP needs to be expanded
9322    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9323    do
9324      ac_preproc_ok=false
9325for ac_c_preproc_warn_flag in '' yes
9326do
9327  # Use a header file that comes with gcc, so configuring glibc
9328  # with a fresh cross-compiler works.
9329  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9330  # <limits.h> exists even on freestanding compilers.
9331  # On the NeXT, cc -E runs the code through the compiler's parser,
9332  # not just through cpp. "Syntax error" is here to catch this case.
9333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334/* end confdefs.h.  */
9335#ifdef __STDC__
9336# include <limits.h>
9337#else
9338# include <assert.h>
9339#endif
9340		     Syntax error
9341_ACEOF
9342if ac_fn_c_try_cpp "$LINENO"; then :
9343
9344else
9345  # Broken: fails on valid input.
9346continue
9347fi
9348rm -f conftest.err conftest.i conftest.$ac_ext
9349
9350  # OK, works on sane cases.  Now check whether nonexistent headers
9351  # can be detected and how.
9352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353/* end confdefs.h.  */
9354#include <ac_nonexistent.h>
9355_ACEOF
9356if ac_fn_c_try_cpp "$LINENO"; then :
9357  # Broken: success on invalid input.
9358continue
9359else
9360  # Passes both tests.
9361ac_preproc_ok=:
9362break
9363fi
9364rm -f conftest.err conftest.i conftest.$ac_ext
9365
9366done
9367# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9368rm -f conftest.i conftest.err conftest.$ac_ext
9369if $ac_preproc_ok; then :
9370  break
9371fi
9372
9373    done
9374    ac_cv_prog_CPP=$CPP
9375
9376fi
9377  CPP=$ac_cv_prog_CPP
9378else
9379  ac_cv_prog_CPP=$CPP
9380fi
9381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9382$as_echo "$CPP" >&6; }
9383ac_preproc_ok=false
9384for ac_c_preproc_warn_flag in '' yes
9385do
9386  # Use a header file that comes with gcc, so configuring glibc
9387  # with a fresh cross-compiler works.
9388  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9389  # <limits.h> exists even on freestanding compilers.
9390  # On the NeXT, cc -E runs the code through the compiler's parser,
9391  # not just through cpp. "Syntax error" is here to catch this case.
9392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393/* end confdefs.h.  */
9394#ifdef __STDC__
9395# include <limits.h>
9396#else
9397# include <assert.h>
9398#endif
9399		     Syntax error
9400_ACEOF
9401if ac_fn_c_try_cpp "$LINENO"; then :
9402
9403else
9404  # Broken: fails on valid input.
9405continue
9406fi
9407rm -f conftest.err conftest.i conftest.$ac_ext
9408
9409  # OK, works on sane cases.  Now check whether nonexistent headers
9410  # can be detected and how.
9411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412/* end confdefs.h.  */
9413#include <ac_nonexistent.h>
9414_ACEOF
9415if ac_fn_c_try_cpp "$LINENO"; then :
9416  # Broken: success on invalid input.
9417continue
9418else
9419  # Passes both tests.
9420ac_preproc_ok=:
9421break
9422fi
9423rm -f conftest.err conftest.i conftest.$ac_ext
9424
9425done
9426# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9427rm -f conftest.i conftest.err conftest.$ac_ext
9428if $ac_preproc_ok; then :
9429
9430else
9431  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9433as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9434See \`config.log' for more details" "$LINENO" 5; }
9435fi
9436
9437ac_ext=c
9438ac_cpp='$CPP $CPPFLAGS'
9439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9441ac_compiler_gnu=$ac_cv_c_compiler_gnu
9442
9443for ac_prog in gawk mawk nawk awk
9444do
9445  # Extract the first word of "$ac_prog", so it can be a program name with args.
9446set dummy $ac_prog; ac_word=$2
9447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9448$as_echo_n "checking for $ac_word... " >&6; }
9449if ${ac_cv_prog_AWK+:} false; then :
9450  $as_echo_n "(cached) " >&6
9451else
9452  if test -n "$AWK"; then
9453  ac_cv_prog_AWK="$AWK" # Let the user override the test.
9454else
9455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9456for as_dir in $PATH
9457do
9458  IFS=$as_save_IFS
9459  test -z "$as_dir" && as_dir=.
9460    for ac_exec_ext in '' $ac_executable_extensions; do
9461  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9462    ac_cv_prog_AWK="$ac_prog"
9463    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9464    break 2
9465  fi
9466done
9467  done
9468IFS=$as_save_IFS
9469
9470fi
9471fi
9472AWK=$ac_cv_prog_AWK
9473if test -n "$AWK"; then
9474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9475$as_echo "$AWK" >&6; }
9476else
9477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9478$as_echo "no" >&6; }
9479fi
9480
9481
9482  test -n "$AWK" && break
9483done
9484
9485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9486$as_echo_n "checking whether ln -s works... " >&6; }
9487LN_S=$as_ln_s
9488if test "$LN_S" = "ln -s"; then
9489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9490$as_echo "yes" >&6; }
9491else
9492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9493$as_echo "no, using $LN_S" >&6; }
9494fi
9495
9496if test -n "$ac_tool_prefix"; then
9497  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9498set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9500$as_echo_n "checking for $ac_word... " >&6; }
9501if ${ac_cv_prog_RANLIB+:} false; then :
9502  $as_echo_n "(cached) " >&6
9503else
9504  if test -n "$RANLIB"; then
9505  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9506else
9507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9508for as_dir in $PATH
9509do
9510  IFS=$as_save_IFS
9511  test -z "$as_dir" && as_dir=.
9512    for ac_exec_ext in '' $ac_executable_extensions; do
9513  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9514    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9516    break 2
9517  fi
9518done
9519  done
9520IFS=$as_save_IFS
9521
9522fi
9523fi
9524RANLIB=$ac_cv_prog_RANLIB
9525if test -n "$RANLIB"; then
9526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9527$as_echo "$RANLIB" >&6; }
9528else
9529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9530$as_echo "no" >&6; }
9531fi
9532
9533
9534fi
9535if test -z "$ac_cv_prog_RANLIB"; then
9536  ac_ct_RANLIB=$RANLIB
9537  # Extract the first word of "ranlib", so it can be a program name with args.
9538set dummy ranlib; ac_word=$2
9539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9540$as_echo_n "checking for $ac_word... " >&6; }
9541if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9542  $as_echo_n "(cached) " >&6
9543else
9544  if test -n "$ac_ct_RANLIB"; then
9545  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9546else
9547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9548for as_dir in $PATH
9549do
9550  IFS=$as_save_IFS
9551  test -z "$as_dir" && as_dir=.
9552    for ac_exec_ext in '' $ac_executable_extensions; do
9553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9554    ac_cv_prog_ac_ct_RANLIB="ranlib"
9555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9556    break 2
9557  fi
9558done
9559  done
9560IFS=$as_save_IFS
9561
9562fi
9563fi
9564ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9565if test -n "$ac_ct_RANLIB"; then
9566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9567$as_echo "$ac_ct_RANLIB" >&6; }
9568else
9569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9570$as_echo "no" >&6; }
9571fi
9572
9573  if test "x$ac_ct_RANLIB" = x; then
9574    RANLIB=":"
9575  else
9576    case $cross_compiling:$ac_tool_warned in
9577yes:)
9578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9580ac_tool_warned=yes ;;
9581esac
9582    RANLIB=$ac_ct_RANLIB
9583  fi
9584else
9585  RANLIB="$ac_cv_prog_RANLIB"
9586fi
9587
9588# Find a good install program.  We prefer a C program (faster),
9589# so one script is as good as another.  But avoid the broken or
9590# incompatible versions:
9591# SysV /etc/install, /usr/sbin/install
9592# SunOS /usr/etc/install
9593# IRIX /sbin/install
9594# AIX /bin/install
9595# AmigaOS /C/install, which installs bootblocks on floppy discs
9596# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9597# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9598# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9599# OS/2's system install, which has a completely different semantic
9600# ./install, which can be erroneously created by make from ./install.sh.
9601# Reject install programs that cannot install multiple files.
9602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9603$as_echo_n "checking for a BSD-compatible install... " >&6; }
9604if test -z "$INSTALL"; then
9605if ${ac_cv_path_install+:} false; then :
9606  $as_echo_n "(cached) " >&6
9607else
9608  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9609for as_dir in $PATH
9610do
9611  IFS=$as_save_IFS
9612  test -z "$as_dir" && as_dir=.
9613    # Account for people who put trailing slashes in PATH elements.
9614case $as_dir/ in #((
9615  ./ | .// | /[cC]/* | \
9616  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9617  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9618  /usr/ucb/* ) ;;
9619  *)
9620    # OSF1 and SCO ODT 3.0 have their own names for install.
9621    # Don't use installbsd from OSF since it installs stuff as root
9622    # by default.
9623    for ac_prog in ginstall scoinst install; do
9624      for ac_exec_ext in '' $ac_executable_extensions; do
9625	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9626	  if test $ac_prog = install &&
9627	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9628	    # AIX install.  It has an incompatible calling convention.
9629	    :
9630	  elif test $ac_prog = install &&
9631	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9632	    # program-specific install script used by HP pwplus--don't use.
9633	    :
9634	  else
9635	    rm -rf conftest.one conftest.two conftest.dir
9636	    echo one > conftest.one
9637	    echo two > conftest.two
9638	    mkdir conftest.dir
9639	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9640	      test -s conftest.one && test -s conftest.two &&
9641	      test -s conftest.dir/conftest.one &&
9642	      test -s conftest.dir/conftest.two
9643	    then
9644	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9645	      break 3
9646	    fi
9647	  fi
9648	fi
9649      done
9650    done
9651    ;;
9652esac
9653
9654  done
9655IFS=$as_save_IFS
9656
9657rm -rf conftest.one conftest.two conftest.dir
9658
9659fi
9660  if test "${ac_cv_path_install+set}" = set; then
9661    INSTALL=$ac_cv_path_install
9662  else
9663    # As a last resort, use the slow shell script.  Don't cache a
9664    # value for INSTALL within a source directory, because that will
9665    # break other packages using the cache if that directory is
9666    # removed, or if the value is a relative name.
9667    INSTALL=$ac_install_sh
9668  fi
9669fi
9670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9671$as_echo "$INSTALL" >&6; }
9672
9673# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9674# It thinks the first close brace ends the variable substitution.
9675test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9676
9677test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9678
9679test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9680
9681# Extract the first word of "rm", so it can be a program name with args.
9682set dummy rm; ac_word=$2
9683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9684$as_echo_n "checking for $ac_word... " >&6; }
9685if ${ac_cv_prog_RM+:} false; then :
9686  $as_echo_n "(cached) " >&6
9687else
9688  if test -n "$RM"; then
9689  ac_cv_prog_RM="$RM" # Let the user override the test.
9690else
9691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692for as_dir in $PATH
9693do
9694  IFS=$as_save_IFS
9695  test -z "$as_dir" && as_dir=.
9696    for ac_exec_ext in '' $ac_executable_extensions; do
9697  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9698    ac_cv_prog_RM="rm"
9699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9700    break 2
9701  fi
9702done
9703  done
9704IFS=$as_save_IFS
9705
9706fi
9707fi
9708RM=$ac_cv_prog_RM
9709if test -n "$RM"; then
9710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9711$as_echo "$RM" >&6; }
9712else
9713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714$as_echo "no" >&6; }
9715fi
9716
9717
9718# Extract the first word of "as", so it can be a program name with args.
9719set dummy as; ac_word=$2
9720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9721$as_echo_n "checking for $ac_word... " >&6; }
9722if ${ac_cv_prog_AS+:} false; then :
9723  $as_echo_n "(cached) " >&6
9724else
9725  if test -n "$AS"; then
9726  ac_cv_prog_AS="$AS" # Let the user override the test.
9727else
9728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9729for as_dir in $PATH
9730do
9731  IFS=$as_save_IFS
9732  test -z "$as_dir" && as_dir=.
9733    for ac_exec_ext in '' $ac_executable_extensions; do
9734  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9735    ac_cv_prog_AS="as"
9736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9737    break 2
9738  fi
9739done
9740  done
9741IFS=$as_save_IFS
9742
9743fi
9744fi
9745AS=$ac_cv_prog_AS
9746if test -n "$AS"; then
9747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9748$as_echo "$AS" >&6; }
9749else
9750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9751$as_echo "no" >&6; }
9752fi
9753
9754
9755# Extract the first word of "cpp", so it can be a program name with args.
9756set dummy cpp; ac_word=$2
9757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9758$as_echo_n "checking for $ac_word... " >&6; }
9759if ${ac_cv_prog_ASCPP+:} false; then :
9760  $as_echo_n "(cached) " >&6
9761else
9762  if test -n "$ASCPP"; then
9763  ac_cv_prog_ASCPP="$ASCPP" # Let the user override the test.
9764else
9765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9766for as_dir in $PATH
9767do
9768  IFS=$as_save_IFS
9769  test -z "$as_dir" && as_dir=.
9770    for ac_exec_ext in '' $ac_executable_extensions; do
9771  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9772    ac_cv_prog_ASCPP="cpp"
9773    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9774    break 2
9775  fi
9776done
9777  done
9778IFS=$as_save_IFS
9779
9780fi
9781fi
9782ASCPP=$ac_cv_prog_ASCPP
9783if test -n "$ASCPP"; then
9784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCPP" >&5
9785$as_echo "$ASCPP" >&6; }
9786else
9787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9788$as_echo "no" >&6; }
9789fi
9790
9791
9792if test -n "$ac_tool_prefix"; then
9793  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9794set dummy ${ac_tool_prefix}ar; ac_word=$2
9795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9796$as_echo_n "checking for $ac_word... " >&6; }
9797if ${ac_cv_prog_AR+:} false; then :
9798  $as_echo_n "(cached) " >&6
9799else
9800  if test -n "$AR"; then
9801  ac_cv_prog_AR="$AR" # Let the user override the test.
9802else
9803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9804for as_dir in $PATH
9805do
9806  IFS=$as_save_IFS
9807  test -z "$as_dir" && as_dir=.
9808    for ac_exec_ext in '' $ac_executable_extensions; do
9809  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9810    ac_cv_prog_AR="${ac_tool_prefix}ar"
9811    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9812    break 2
9813  fi
9814done
9815  done
9816IFS=$as_save_IFS
9817
9818fi
9819fi
9820AR=$ac_cv_prog_AR
9821if test -n "$AR"; then
9822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9823$as_echo "$AR" >&6; }
9824else
9825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9826$as_echo "no" >&6; }
9827fi
9828
9829
9830fi
9831if test -z "$ac_cv_prog_AR"; then
9832  ac_ct_AR=$AR
9833  # Extract the first word of "ar", so it can be a program name with args.
9834set dummy ar; ac_word=$2
9835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9836$as_echo_n "checking for $ac_word... " >&6; }
9837if ${ac_cv_prog_ac_ct_AR+:} false; then :
9838  $as_echo_n "(cached) " >&6
9839else
9840  if test -n "$ac_ct_AR"; then
9841  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9842else
9843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9844for as_dir in $PATH
9845do
9846  IFS=$as_save_IFS
9847  test -z "$as_dir" && as_dir=.
9848    for ac_exec_ext in '' $ac_executable_extensions; do
9849  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9850    ac_cv_prog_ac_ct_AR="ar"
9851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9852    break 2
9853  fi
9854done
9855  done
9856IFS=$as_save_IFS
9857
9858fi
9859fi
9860ac_ct_AR=$ac_cv_prog_ac_ct_AR
9861if test -n "$ac_ct_AR"; then
9862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9863$as_echo "$ac_ct_AR" >&6; }
9864else
9865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866$as_echo "no" >&6; }
9867fi
9868
9869  if test "x$ac_ct_AR" = x; then
9870    AR="ar"
9871  else
9872    case $cross_compiling:$ac_tool_warned in
9873yes:)
9874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9876ac_tool_warned=yes ;;
9877esac
9878    AR=$ac_ct_AR
9879  fi
9880else
9881  AR="$ac_cv_prog_AR"
9882fi
9883
9884
9885
9886
9887
9888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
9889$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
9890if ${ac_cv_path_GREP+:} false; then :
9891  $as_echo_n "(cached) " >&6
9892else
9893  if test -z "$GREP"; then
9894  ac_path_GREP_found=false
9895  # Loop through the user's path and test for each of PROGNAME-LIST
9896  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9897for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9898do
9899  IFS=$as_save_IFS
9900  test -z "$as_dir" && as_dir=.
9901    for ac_prog in grep ggrep; do
9902    for ac_exec_ext in '' $ac_executable_extensions; do
9903      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
9904      as_fn_executable_p "$ac_path_GREP" || continue
9905# Check for GNU ac_path_GREP and select it if it is found.
9906  # Check for GNU $ac_path_GREP
9907case `"$ac_path_GREP" --version 2>&1` in
9908*GNU*)
9909  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
9910*)
9911  ac_count=0
9912  $as_echo_n 0123456789 >"conftest.in"
9913  while :
9914  do
9915    cat "conftest.in" "conftest.in" >"conftest.tmp"
9916    mv "conftest.tmp" "conftest.in"
9917    cp "conftest.in" "conftest.nl"
9918    $as_echo 'GREP' >> "conftest.nl"
9919    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9920    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9921    as_fn_arith $ac_count + 1 && ac_count=$as_val
9922    if test $ac_count -gt ${ac_path_GREP_max-0}; then
9923      # Best one so far, save it but keep looking for a better one
9924      ac_cv_path_GREP="$ac_path_GREP"
9925      ac_path_GREP_max=$ac_count
9926    fi
9927    # 10*(2^10) chars as input seems more than enough
9928    test $ac_count -gt 10 && break
9929  done
9930  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9931esac
9932
9933      $ac_path_GREP_found && break 3
9934    done
9935  done
9936  done
9937IFS=$as_save_IFS
9938  if test -z "$ac_cv_path_GREP"; then
9939    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9940  fi
9941else
9942  ac_cv_path_GREP=$GREP
9943fi
9944
9945fi
9946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
9947$as_echo "$ac_cv_path_GREP" >&6; }
9948 GREP="$ac_cv_path_GREP"
9949
9950
9951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9952$as_echo_n "checking for egrep... " >&6; }
9953if ${ac_cv_path_EGREP+:} false; then :
9954  $as_echo_n "(cached) " >&6
9955else
9956  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9957   then ac_cv_path_EGREP="$GREP -E"
9958   else
9959     if test -z "$EGREP"; then
9960  ac_path_EGREP_found=false
9961  # Loop through the user's path and test for each of PROGNAME-LIST
9962  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9963for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9964do
9965  IFS=$as_save_IFS
9966  test -z "$as_dir" && as_dir=.
9967    for ac_prog in egrep; do
9968    for ac_exec_ext in '' $ac_executable_extensions; do
9969      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9970      as_fn_executable_p "$ac_path_EGREP" || continue
9971# Check for GNU ac_path_EGREP and select it if it is found.
9972  # Check for GNU $ac_path_EGREP
9973case `"$ac_path_EGREP" --version 2>&1` in
9974*GNU*)
9975  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9976*)
9977  ac_count=0
9978  $as_echo_n 0123456789 >"conftest.in"
9979  while :
9980  do
9981    cat "conftest.in" "conftest.in" >"conftest.tmp"
9982    mv "conftest.tmp" "conftest.in"
9983    cp "conftest.in" "conftest.nl"
9984    $as_echo 'EGREP' >> "conftest.nl"
9985    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9986    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9987    as_fn_arith $ac_count + 1 && ac_count=$as_val
9988    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9989      # Best one so far, save it but keep looking for a better one
9990      ac_cv_path_EGREP="$ac_path_EGREP"
9991      ac_path_EGREP_max=$ac_count
9992    fi
9993    # 10*(2^10) chars as input seems more than enough
9994    test $ac_count -gt 10 && break
9995  done
9996  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9997esac
9998
9999      $ac_path_EGREP_found && break 3
10000    done
10001  done
10002  done
10003IFS=$as_save_IFS
10004  if test -z "$ac_cv_path_EGREP"; then
10005    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10006  fi
10007else
10008  ac_cv_path_EGREP=$EGREP
10009fi
10010
10011   fi
10012fi
10013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
10014$as_echo "$ac_cv_path_EGREP" >&6; }
10015 EGREP="$ac_cv_path_EGREP"
10016
10017
10018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10019$as_echo_n "checking for ANSI C header files... " >&6; }
10020if ${ac_cv_header_stdc+:} false; then :
10021  $as_echo_n "(cached) " >&6
10022else
10023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024/* end confdefs.h.  */
10025#include <stdlib.h>
10026#include <stdarg.h>
10027#include <string.h>
10028#include <float.h>
10029
10030int
10031main ()
10032{
10033
10034  ;
10035  return 0;
10036}
10037_ACEOF
10038if ac_fn_c_try_compile "$LINENO"; then :
10039  ac_cv_header_stdc=yes
10040else
10041  ac_cv_header_stdc=no
10042fi
10043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10044
10045if test $ac_cv_header_stdc = yes; then
10046  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048/* end confdefs.h.  */
10049#include <string.h>
10050
10051_ACEOF
10052if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10053  $EGREP "memchr" >/dev/null 2>&1; then :
10054
10055else
10056  ac_cv_header_stdc=no
10057fi
10058rm -f conftest*
10059
10060fi
10061
10062if test $ac_cv_header_stdc = yes; then
10063  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065/* end confdefs.h.  */
10066#include <stdlib.h>
10067
10068_ACEOF
10069if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10070  $EGREP "free" >/dev/null 2>&1; then :
10071
10072else
10073  ac_cv_header_stdc=no
10074fi
10075rm -f conftest*
10076
10077fi
10078
10079if test $ac_cv_header_stdc = yes; then
10080  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10081  if test "$cross_compiling" = yes; then :
10082  :
10083else
10084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085/* end confdefs.h.  */
10086#include <ctype.h>
10087#include <stdlib.h>
10088#if ((' ' & 0x0FF) == 0x020)
10089# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10090# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10091#else
10092# define ISLOWER(c) \
10093		   (('a' <= (c) && (c) <= 'i') \
10094		     || ('j' <= (c) && (c) <= 'r') \
10095		     || ('s' <= (c) && (c) <= 'z'))
10096# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10097#endif
10098
10099#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10100int
10101main ()
10102{
10103  int i;
10104  for (i = 0; i < 256; i++)
10105    if (XOR (islower (i), ISLOWER (i))
10106	|| toupper (i) != TOUPPER (i))
10107      return 2;
10108  return 0;
10109}
10110_ACEOF
10111if ac_fn_c_try_run "$LINENO"; then :
10112
10113else
10114  ac_cv_header_stdc=no
10115fi
10116rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10117  conftest.$ac_objext conftest.beam conftest.$ac_ext
10118fi
10119
10120fi
10121fi
10122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10123$as_echo "$ac_cv_header_stdc" >&6; }
10124if test $ac_cv_header_stdc = yes; then
10125
10126$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10127
10128fi
10129
10130# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10131for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10132		  inttypes.h stdint.h unistd.h
10133do :
10134  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10135ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10136"
10137if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10138  cat >>confdefs.h <<_ACEOF
10139#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10140_ACEOF
10141
10142fi
10143
10144done
10145
10146
10147
10148  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
10149if test "x$ac_cv_header_minix_config_h" = xyes; then :
10150  MINIX=yes
10151else
10152  MINIX=
10153fi
10154
10155
10156  if test "$MINIX" = yes; then
10157
10158$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
10159
10160
10161$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
10162
10163
10164$as_echo "#define _MINIX 1" >>confdefs.h
10165
10166  fi
10167
10168
10169  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
10170$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
10171if ${ac_cv_safe_to_define___extensions__+:} false; then :
10172  $as_echo_n "(cached) " >&6
10173else
10174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175/* end confdefs.h.  */
10176
10177#         define __EXTENSIONS__ 1
10178          $ac_includes_default
10179int
10180main ()
10181{
10182
10183  ;
10184  return 0;
10185}
10186_ACEOF
10187if ac_fn_c_try_compile "$LINENO"; then :
10188  ac_cv_safe_to_define___extensions__=yes
10189else
10190  ac_cv_safe_to_define___extensions__=no
10191fi
10192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10193fi
10194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
10195$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
10196  test $ac_cv_safe_to_define___extensions__ = yes &&
10197    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
10198
10199  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
10200
10201  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
10202
10203  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
10204
10205  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
10206
10207
10208
10209
10210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
10211$as_echo_n "checking for library containing strerror... " >&6; }
10212if ${ac_cv_search_strerror+:} false; then :
10213  $as_echo_n "(cached) " >&6
10214else
10215  ac_func_search_save_LIBS=$LIBS
10216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217/* end confdefs.h.  */
10218
10219/* Override any GCC internal prototype to avoid an error.
10220   Use char because int might match the return type of a GCC
10221   builtin and then its argument prototype would still apply.  */
10222#ifdef __cplusplus
10223extern "C"
10224#endif
10225char strerror ();
10226int
10227main ()
10228{
10229return strerror ();
10230  ;
10231  return 0;
10232}
10233_ACEOF
10234for ac_lib in '' cposix; do
10235  if test -z "$ac_lib"; then
10236    ac_res="none required"
10237  else
10238    ac_res=-l$ac_lib
10239    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10240  fi
10241  if ac_fn_c_try_link "$LINENO"; then :
10242  ac_cv_search_strerror=$ac_res
10243fi
10244rm -f core conftest.err conftest.$ac_objext \
10245    conftest$ac_exeext
10246  if ${ac_cv_search_strerror+:} false; then :
10247  break
10248fi
10249done
10250if ${ac_cv_search_strerror+:} false; then :
10251
10252else
10253  ac_cv_search_strerror=no
10254fi
10255rm conftest.$ac_ext
10256LIBS=$ac_func_search_save_LIBS
10257fi
10258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
10259$as_echo "$ac_cv_search_strerror" >&6; }
10260ac_res=$ac_cv_search_strerror
10261if test "$ac_res" != no; then :
10262  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10263
10264fi
10265
10266
10267  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses EBCDIC" >&5
10268$as_echo_n "checking whether system uses EBCDIC... " >&6; }
10269if ${ac_cv_ebcdic+:} false; then :
10270  $as_echo_n "(cached) " >&6
10271else
10272
10273  if test "$cross_compiling" = yes; then :
10274
10275  ac_cv_ebcdic="no"
10276
10277else
10278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279/* end confdefs.h.  */
10280
10281int main(void) {
10282  return (unsigned char)'A' != (unsigned char)0xC1;
10283}
10284
10285_ACEOF
10286if ac_fn_c_try_run "$LINENO"; then :
10287
10288  ac_cv_ebcdic="yes"
10289
10290else
10291
10292  ac_cv_ebcdic="no"
10293
10294fi
10295rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10296  conftest.$ac_objext conftest.beam conftest.$ac_ext
10297fi
10298
10299fi
10300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ebcdic" >&5
10301$as_echo "$ac_cv_ebcdic" >&6; }
10302  if test "$ac_cv_ebcdic" = "yes"; then
10303    apr_charset_ebcdic=1
10304  else
10305    apr_charset_ebcdic=0
10306  fi
10307
10308
10309
10310APR_LIBNAME="apr${libsuffix}"
10311
10312
10313echo "performing libtool configuration..."
10314
10315# Check whether --enable-experimental-libtool was given.
10316if test "${enable_experimental_libtool+set}" = set; then :
10317  enableval=$enable_experimental_libtool; experimental_libtool=$enableval
10318else
10319  experimental_libtool=no
10320fi
10321
10322
10323if test "x$Xsed" = "x"; then
10324  Xsed="$SED -e 1s/^X//"
10325fi
10326
10327case $host in
10328*-os2*)
10329    # Use a custom-made libtool replacement
10330    echo "using aplibtool"
10331    LIBTOOL="$srcdir/build/aplibtool"
10332    gcc $CFLAGS $CPPFLAGS -o $LIBTOOL.exe $LIBTOOL.c
10333    ;;
10334*)
10335    if test "x$LTFLAGS" = "x"; then
10336        LTFLAGS='--silent'
10337    fi
10338    if test "$experimental_libtool" = "yes"; then
10339        # Use a custom-made libtool replacement
10340        echo "using jlibtool"
10341        LIBTOOL="$apr_builddir/libtool"
10342        LIBTOOL_SRC="$apr_srcdir/build/jlibtool.c"
10343        $CC $CFLAGS $CPPFLAGS -o $LIBTOOL $LIBTOOL_SRC
10344        eval `$apr_builddir/libtool --config | grep "^shlibpath_var=[A-Z_]*$"`
10345        if test "x$shlibpath_var" = "x"; then
10346            shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
10347        fi
10348    else
10349        enable_win32_dll=yes
10350
10351case $host in
10352*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10353  if test -n "$ac_tool_prefix"; then
10354  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10355set dummy ${ac_tool_prefix}as; ac_word=$2
10356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10357$as_echo_n "checking for $ac_word... " >&6; }
10358if ${ac_cv_prog_AS+:} false; then :
10359  $as_echo_n "(cached) " >&6
10360else
10361  if test -n "$AS"; then
10362  ac_cv_prog_AS="$AS" # Let the user override the test.
10363else
10364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10365for as_dir in $PATH
10366do
10367  IFS=$as_save_IFS
10368  test -z "$as_dir" && as_dir=.
10369    for ac_exec_ext in '' $ac_executable_extensions; do
10370  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10371    ac_cv_prog_AS="${ac_tool_prefix}as"
10372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10373    break 2
10374  fi
10375done
10376  done
10377IFS=$as_save_IFS
10378
10379fi
10380fi
10381AS=$ac_cv_prog_AS
10382if test -n "$AS"; then
10383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10384$as_echo "$AS" >&6; }
10385else
10386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387$as_echo "no" >&6; }
10388fi
10389
10390
10391fi
10392if test -z "$ac_cv_prog_AS"; then
10393  ac_ct_AS=$AS
10394  # Extract the first word of "as", so it can be a program name with args.
10395set dummy as; ac_word=$2
10396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10397$as_echo_n "checking for $ac_word... " >&6; }
10398if ${ac_cv_prog_ac_ct_AS+:} false; then :
10399  $as_echo_n "(cached) " >&6
10400else
10401  if test -n "$ac_ct_AS"; then
10402  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10403else
10404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10405for as_dir in $PATH
10406do
10407  IFS=$as_save_IFS
10408  test -z "$as_dir" && as_dir=.
10409    for ac_exec_ext in '' $ac_executable_extensions; do
10410  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10411    ac_cv_prog_ac_ct_AS="as"
10412    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10413    break 2
10414  fi
10415done
10416  done
10417IFS=$as_save_IFS
10418
10419fi
10420fi
10421ac_ct_AS=$ac_cv_prog_ac_ct_AS
10422if test -n "$ac_ct_AS"; then
10423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10424$as_echo "$ac_ct_AS" >&6; }
10425else
10426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10427$as_echo "no" >&6; }
10428fi
10429
10430  if test "x$ac_ct_AS" = x; then
10431    AS="false"
10432  else
10433    case $cross_compiling:$ac_tool_warned in
10434yes:)
10435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10437ac_tool_warned=yes ;;
10438esac
10439    AS=$ac_ct_AS
10440  fi
10441else
10442  AS="$ac_cv_prog_AS"
10443fi
10444
10445  if test -n "$ac_tool_prefix"; then
10446  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10447set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10449$as_echo_n "checking for $ac_word... " >&6; }
10450if ${ac_cv_prog_DLLTOOL+:} false; then :
10451  $as_echo_n "(cached) " >&6
10452else
10453  if test -n "$DLLTOOL"; then
10454  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10455else
10456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10457for as_dir in $PATH
10458do
10459  IFS=$as_save_IFS
10460  test -z "$as_dir" && as_dir=.
10461    for ac_exec_ext in '' $ac_executable_extensions; do
10462  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10463    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10465    break 2
10466  fi
10467done
10468  done
10469IFS=$as_save_IFS
10470
10471fi
10472fi
10473DLLTOOL=$ac_cv_prog_DLLTOOL
10474if test -n "$DLLTOOL"; then
10475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10476$as_echo "$DLLTOOL" >&6; }
10477else
10478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479$as_echo "no" >&6; }
10480fi
10481
10482
10483fi
10484if test -z "$ac_cv_prog_DLLTOOL"; then
10485  ac_ct_DLLTOOL=$DLLTOOL
10486  # Extract the first word of "dlltool", so it can be a program name with args.
10487set dummy dlltool; ac_word=$2
10488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10489$as_echo_n "checking for $ac_word... " >&6; }
10490if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10491  $as_echo_n "(cached) " >&6
10492else
10493  if test -n "$ac_ct_DLLTOOL"; then
10494  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10495else
10496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497for as_dir in $PATH
10498do
10499  IFS=$as_save_IFS
10500  test -z "$as_dir" && as_dir=.
10501    for ac_exec_ext in '' $ac_executable_extensions; do
10502  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10503    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10505    break 2
10506  fi
10507done
10508  done
10509IFS=$as_save_IFS
10510
10511fi
10512fi
10513ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10514if test -n "$ac_ct_DLLTOOL"; then
10515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10516$as_echo "$ac_ct_DLLTOOL" >&6; }
10517else
10518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519$as_echo "no" >&6; }
10520fi
10521
10522  if test "x$ac_ct_DLLTOOL" = x; then
10523    DLLTOOL="false"
10524  else
10525    case $cross_compiling:$ac_tool_warned in
10526yes:)
10527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10529ac_tool_warned=yes ;;
10530esac
10531    DLLTOOL=$ac_ct_DLLTOOL
10532  fi
10533else
10534  DLLTOOL="$ac_cv_prog_DLLTOOL"
10535fi
10536
10537  if test -n "$ac_tool_prefix"; then
10538  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10539set dummy ${ac_tool_prefix}objdump; ac_word=$2
10540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10541$as_echo_n "checking for $ac_word... " >&6; }
10542if ${ac_cv_prog_OBJDUMP+:} false; then :
10543  $as_echo_n "(cached) " >&6
10544else
10545  if test -n "$OBJDUMP"; then
10546  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10547else
10548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10549for as_dir in $PATH
10550do
10551  IFS=$as_save_IFS
10552  test -z "$as_dir" && as_dir=.
10553    for ac_exec_ext in '' $ac_executable_extensions; do
10554  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10555    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10557    break 2
10558  fi
10559done
10560  done
10561IFS=$as_save_IFS
10562
10563fi
10564fi
10565OBJDUMP=$ac_cv_prog_OBJDUMP
10566if test -n "$OBJDUMP"; then
10567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10568$as_echo "$OBJDUMP" >&6; }
10569else
10570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10571$as_echo "no" >&6; }
10572fi
10573
10574
10575fi
10576if test -z "$ac_cv_prog_OBJDUMP"; then
10577  ac_ct_OBJDUMP=$OBJDUMP
10578  # Extract the first word of "objdump", so it can be a program name with args.
10579set dummy objdump; ac_word=$2
10580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10581$as_echo_n "checking for $ac_word... " >&6; }
10582if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10583  $as_echo_n "(cached) " >&6
10584else
10585  if test -n "$ac_ct_OBJDUMP"; then
10586  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10587else
10588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10589for as_dir in $PATH
10590do
10591  IFS=$as_save_IFS
10592  test -z "$as_dir" && as_dir=.
10593    for ac_exec_ext in '' $ac_executable_extensions; do
10594  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10595    ac_cv_prog_ac_ct_OBJDUMP="objdump"
10596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10597    break 2
10598  fi
10599done
10600  done
10601IFS=$as_save_IFS
10602
10603fi
10604fi
10605ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10606if test -n "$ac_ct_OBJDUMP"; then
10607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10608$as_echo "$ac_ct_OBJDUMP" >&6; }
10609else
10610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10611$as_echo "no" >&6; }
10612fi
10613
10614  if test "x$ac_ct_OBJDUMP" = x; then
10615    OBJDUMP="false"
10616  else
10617    case $cross_compiling:$ac_tool_warned in
10618yes:)
10619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10621ac_tool_warned=yes ;;
10622esac
10623    OBJDUMP=$ac_ct_OBJDUMP
10624  fi
10625else
10626  OBJDUMP="$ac_cv_prog_OBJDUMP"
10627fi
10628
10629  ;;
10630esac
10631
10632test -z "$AS" && AS=as
10633
10634
10635
10636
10637
10638test -z "$DLLTOOL" && DLLTOOL=dlltool
10639
10640
10641
10642
10643
10644test -z "$OBJDUMP" && OBJDUMP=objdump
10645
10646
10647
10648
10649
10650
10651
10652case `pwd` in
10653  *\ * | *\	*)
10654    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10655$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10656esac
10657
10658
10659
10660macro_version='2.4.2'
10661macro_revision='1.3337'
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675ltmain="$ac_aux_dir/ltmain.sh"
10676
10677# Backslashify metacharacters that are still active within
10678# double-quoted strings.
10679sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10680
10681# Same as above, but do not quote variable references.
10682double_quote_subst='s/\(["`\\]\)/\\\1/g'
10683
10684# Sed substitution to delay expansion of an escaped shell variable in a
10685# double_quote_subst'ed string.
10686delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10687
10688# Sed substitution to delay expansion of an escaped single quote.
10689delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10690
10691# Sed substitution to avoid accidental globbing in evaled expressions
10692no_glob_subst='s/\*/\\\*/g'
10693
10694ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10695ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10696ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10697
10698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10699$as_echo_n "checking how to print strings... " >&6; }
10700# Test print first, because it will be a builtin if present.
10701if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10702   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10703  ECHO='print -r --'
10704elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10705  ECHO='printf %s\n'
10706else
10707  # Use this function as a fallback that always works.
10708  func_fallback_echo ()
10709  {
10710    eval 'cat <<_LTECHO_EOF
10711$1
10712_LTECHO_EOF'
10713  }
10714  ECHO='func_fallback_echo'
10715fi
10716
10717# func_echo_all arg...
10718# Invoke $ECHO with all args, space-separated.
10719func_echo_all ()
10720{
10721    $ECHO ""
10722}
10723
10724case "$ECHO" in
10725  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10726$as_echo "printf" >&6; } ;;
10727  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10728$as_echo "print -r" >&6; } ;;
10729  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10730$as_echo "cat" >&6; } ;;
10731esac
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10747$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10748if ${ac_cv_path_SED+:} false; then :
10749  $as_echo_n "(cached) " >&6
10750else
10751            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10752     for ac_i in 1 2 3 4 5 6 7; do
10753       ac_script="$ac_script$as_nl$ac_script"
10754     done
10755     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10756     { ac_script=; unset ac_script;}
10757     if test -z "$SED"; then
10758  ac_path_SED_found=false
10759  # Loop through the user's path and test for each of PROGNAME-LIST
10760  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761for as_dir in $PATH
10762do
10763  IFS=$as_save_IFS
10764  test -z "$as_dir" && as_dir=.
10765    for ac_prog in sed gsed; do
10766    for ac_exec_ext in '' $ac_executable_extensions; do
10767      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10768      as_fn_executable_p "$ac_path_SED" || continue
10769# Check for GNU ac_path_SED and select it if it is found.
10770  # Check for GNU $ac_path_SED
10771case `"$ac_path_SED" --version 2>&1` in
10772*GNU*)
10773  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10774*)
10775  ac_count=0
10776  $as_echo_n 0123456789 >"conftest.in"
10777  while :
10778  do
10779    cat "conftest.in" "conftest.in" >"conftest.tmp"
10780    mv "conftest.tmp" "conftest.in"
10781    cp "conftest.in" "conftest.nl"
10782    $as_echo '' >> "conftest.nl"
10783    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10784    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10785    as_fn_arith $ac_count + 1 && ac_count=$as_val
10786    if test $ac_count -gt ${ac_path_SED_max-0}; then
10787      # Best one so far, save it but keep looking for a better one
10788      ac_cv_path_SED="$ac_path_SED"
10789      ac_path_SED_max=$ac_count
10790    fi
10791    # 10*(2^10) chars as input seems more than enough
10792    test $ac_count -gt 10 && break
10793  done
10794  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10795esac
10796
10797      $ac_path_SED_found && break 3
10798    done
10799  done
10800  done
10801IFS=$as_save_IFS
10802  if test -z "$ac_cv_path_SED"; then
10803    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10804  fi
10805else
10806  ac_cv_path_SED=$SED
10807fi
10808
10809fi
10810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10811$as_echo "$ac_cv_path_SED" >&6; }
10812 SED="$ac_cv_path_SED"
10813  rm -f conftest.sed
10814
10815test -z "$SED" && SED=sed
10816Xsed="$SED -e 1s/^X//"
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10829$as_echo_n "checking for fgrep... " >&6; }
10830if ${ac_cv_path_FGREP+:} false; then :
10831  $as_echo_n "(cached) " >&6
10832else
10833  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10834   then ac_cv_path_FGREP="$GREP -F"
10835   else
10836     if test -z "$FGREP"; then
10837  ac_path_FGREP_found=false
10838  # Loop through the user's path and test for each of PROGNAME-LIST
10839  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10841do
10842  IFS=$as_save_IFS
10843  test -z "$as_dir" && as_dir=.
10844    for ac_prog in fgrep; do
10845    for ac_exec_ext in '' $ac_executable_extensions; do
10846      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10847      as_fn_executable_p "$ac_path_FGREP" || continue
10848# Check for GNU ac_path_FGREP and select it if it is found.
10849  # Check for GNU $ac_path_FGREP
10850case `"$ac_path_FGREP" --version 2>&1` in
10851*GNU*)
10852  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10853*)
10854  ac_count=0
10855  $as_echo_n 0123456789 >"conftest.in"
10856  while :
10857  do
10858    cat "conftest.in" "conftest.in" >"conftest.tmp"
10859    mv "conftest.tmp" "conftest.in"
10860    cp "conftest.in" "conftest.nl"
10861    $as_echo 'FGREP' >> "conftest.nl"
10862    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10863    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10864    as_fn_arith $ac_count + 1 && ac_count=$as_val
10865    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10866      # Best one so far, save it but keep looking for a better one
10867      ac_cv_path_FGREP="$ac_path_FGREP"
10868      ac_path_FGREP_max=$ac_count
10869    fi
10870    # 10*(2^10) chars as input seems more than enough
10871    test $ac_count -gt 10 && break
10872  done
10873  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10874esac
10875
10876      $ac_path_FGREP_found && break 3
10877    done
10878  done
10879  done
10880IFS=$as_save_IFS
10881  if test -z "$ac_cv_path_FGREP"; then
10882    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10883  fi
10884else
10885  ac_cv_path_FGREP=$FGREP
10886fi
10887
10888   fi
10889fi
10890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10891$as_echo "$ac_cv_path_FGREP" >&6; }
10892 FGREP="$ac_cv_path_FGREP"
10893
10894
10895test -z "$GREP" && GREP=grep
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915# Check whether --with-gnu-ld was given.
10916if test "${with_gnu_ld+set}" = set; then :
10917  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10918else
10919  with_gnu_ld=no
10920fi
10921
10922ac_prog=ld
10923if test "$GCC" = yes; then
10924  # Check if gcc -print-prog-name=ld gives a path.
10925  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10926$as_echo_n "checking for ld used by $CC... " >&6; }
10927  case $host in
10928  *-*-mingw*)
10929    # gcc leaves a trailing carriage return which upsets mingw
10930    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10931  *)
10932    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10933  esac
10934  case $ac_prog in
10935    # Accept absolute paths.
10936    [\\/]* | ?:[\\/]*)
10937      re_direlt='/[^/][^/]*/\.\./'
10938      # Canonicalize the pathname of ld
10939      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10940      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10941	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10942      done
10943      test -z "$LD" && LD="$ac_prog"
10944      ;;
10945  "")
10946    # If it fails, then pretend we aren't using GCC.
10947    ac_prog=ld
10948    ;;
10949  *)
10950    # If it is relative, then search for the first ld in PATH.
10951    with_gnu_ld=unknown
10952    ;;
10953  esac
10954elif test "$with_gnu_ld" = yes; then
10955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10956$as_echo_n "checking for GNU ld... " >&6; }
10957else
10958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10959$as_echo_n "checking for non-GNU ld... " >&6; }
10960fi
10961if ${lt_cv_path_LD+:} false; then :
10962  $as_echo_n "(cached) " >&6
10963else
10964  if test -z "$LD"; then
10965  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10966  for ac_dir in $PATH; do
10967    IFS="$lt_save_ifs"
10968    test -z "$ac_dir" && ac_dir=.
10969    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10970      lt_cv_path_LD="$ac_dir/$ac_prog"
10971      # Check to see if the program is GNU ld.  I'd rather use --version,
10972      # but apparently some variants of GNU ld only accept -v.
10973      # Break only if it was the GNU/non-GNU ld that we prefer.
10974      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10975      *GNU* | *'with BFD'*)
10976	test "$with_gnu_ld" != no && break
10977	;;
10978      *)
10979	test "$with_gnu_ld" != yes && break
10980	;;
10981      esac
10982    fi
10983  done
10984  IFS="$lt_save_ifs"
10985else
10986  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10987fi
10988fi
10989
10990LD="$lt_cv_path_LD"
10991if test -n "$LD"; then
10992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10993$as_echo "$LD" >&6; }
10994else
10995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10996$as_echo "no" >&6; }
10997fi
10998test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11000$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11001if ${lt_cv_prog_gnu_ld+:} false; then :
11002  $as_echo_n "(cached) " >&6
11003else
11004  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11005case `$LD -v 2>&1 </dev/null` in
11006*GNU* | *'with BFD'*)
11007  lt_cv_prog_gnu_ld=yes
11008  ;;
11009*)
11010  lt_cv_prog_gnu_ld=no
11011  ;;
11012esac
11013fi
11014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11015$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11016with_gnu_ld=$lt_cv_prog_gnu_ld
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11027$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11028if ${lt_cv_path_NM+:} false; then :
11029  $as_echo_n "(cached) " >&6
11030else
11031  if test -n "$NM"; then
11032  # Let the user override the test.
11033  lt_cv_path_NM="$NM"
11034else
11035  lt_nm_to_check="${ac_tool_prefix}nm"
11036  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11037    lt_nm_to_check="$lt_nm_to_check nm"
11038  fi
11039  for lt_tmp_nm in $lt_nm_to_check; do
11040    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11041    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11042      IFS="$lt_save_ifs"
11043      test -z "$ac_dir" && ac_dir=.
11044      tmp_nm="$ac_dir/$lt_tmp_nm"
11045      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11046	# Check to see if the nm accepts a BSD-compat flag.
11047	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11048	#   nm: unknown option "B" ignored
11049	# Tru64's nm complains that /dev/null is an invalid object file
11050	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11051	*/dev/null* | *'Invalid file or object type'*)
11052	  lt_cv_path_NM="$tmp_nm -B"
11053	  break
11054	  ;;
11055	*)
11056	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11057	  */dev/null*)
11058	    lt_cv_path_NM="$tmp_nm -p"
11059	    break
11060	    ;;
11061	  *)
11062	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11063	    continue # so that we can try to find one that supports BSD flags
11064	    ;;
11065	  esac
11066	  ;;
11067	esac
11068      fi
11069    done
11070    IFS="$lt_save_ifs"
11071  done
11072  : ${lt_cv_path_NM=no}
11073fi
11074fi
11075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11076$as_echo "$lt_cv_path_NM" >&6; }
11077if test "$lt_cv_path_NM" != "no"; then
11078  NM="$lt_cv_path_NM"
11079else
11080  # Didn't find any BSD compatible name lister, look for dumpbin.
11081  if test -n "$DUMPBIN"; then :
11082    # Let the user override the test.
11083  else
11084    if test -n "$ac_tool_prefix"; then
11085  for ac_prog in dumpbin "link -dump"
11086  do
11087    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11088set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11090$as_echo_n "checking for $ac_word... " >&6; }
11091if ${ac_cv_prog_DUMPBIN+:} false; then :
11092  $as_echo_n "(cached) " >&6
11093else
11094  if test -n "$DUMPBIN"; then
11095  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11096else
11097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11098for as_dir in $PATH
11099do
11100  IFS=$as_save_IFS
11101  test -z "$as_dir" && as_dir=.
11102    for ac_exec_ext in '' $ac_executable_extensions; do
11103  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11104    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11105    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11106    break 2
11107  fi
11108done
11109  done
11110IFS=$as_save_IFS
11111
11112fi
11113fi
11114DUMPBIN=$ac_cv_prog_DUMPBIN
11115if test -n "$DUMPBIN"; then
11116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11117$as_echo "$DUMPBIN" >&6; }
11118else
11119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11120$as_echo "no" >&6; }
11121fi
11122
11123
11124    test -n "$DUMPBIN" && break
11125  done
11126fi
11127if test -z "$DUMPBIN"; then
11128  ac_ct_DUMPBIN=$DUMPBIN
11129  for ac_prog in dumpbin "link -dump"
11130do
11131  # Extract the first word of "$ac_prog", so it can be a program name with args.
11132set dummy $ac_prog; ac_word=$2
11133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11134$as_echo_n "checking for $ac_word... " >&6; }
11135if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11136  $as_echo_n "(cached) " >&6
11137else
11138  if test -n "$ac_ct_DUMPBIN"; then
11139  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11140else
11141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11142for as_dir in $PATH
11143do
11144  IFS=$as_save_IFS
11145  test -z "$as_dir" && as_dir=.
11146    for ac_exec_ext in '' $ac_executable_extensions; do
11147  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11148    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11150    break 2
11151  fi
11152done
11153  done
11154IFS=$as_save_IFS
11155
11156fi
11157fi
11158ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11159if test -n "$ac_ct_DUMPBIN"; then
11160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11161$as_echo "$ac_ct_DUMPBIN" >&6; }
11162else
11163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11164$as_echo "no" >&6; }
11165fi
11166
11167
11168  test -n "$ac_ct_DUMPBIN" && break
11169done
11170
11171  if test "x$ac_ct_DUMPBIN" = x; then
11172    DUMPBIN=":"
11173  else
11174    case $cross_compiling:$ac_tool_warned in
11175yes:)
11176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11178ac_tool_warned=yes ;;
11179esac
11180    DUMPBIN=$ac_ct_DUMPBIN
11181  fi
11182fi
11183
11184    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11185    *COFF*)
11186      DUMPBIN="$DUMPBIN -symbols"
11187      ;;
11188    *)
11189      DUMPBIN=:
11190      ;;
11191    esac
11192  fi
11193
11194  if test "$DUMPBIN" != ":"; then
11195    NM="$DUMPBIN"
11196  fi
11197fi
11198test -z "$NM" && NM=nm
11199
11200
11201
11202
11203
11204
11205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11206$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11207if ${lt_cv_nm_interface+:} false; then :
11208  $as_echo_n "(cached) " >&6
11209else
11210  lt_cv_nm_interface="BSD nm"
11211  echo "int some_variable = 0;" > conftest.$ac_ext
11212  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11213  (eval "$ac_compile" 2>conftest.err)
11214  cat conftest.err >&5
11215  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11216  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11217  cat conftest.err >&5
11218  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11219  cat conftest.out >&5
11220  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11221    lt_cv_nm_interface="MS dumpbin"
11222  fi
11223  rm -f conftest*
11224fi
11225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11226$as_echo "$lt_cv_nm_interface" >&6; }
11227
11228# find the maximum length of command line arguments
11229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11230$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11231if ${lt_cv_sys_max_cmd_len+:} false; then :
11232  $as_echo_n "(cached) " >&6
11233else
11234    i=0
11235  teststring="ABCD"
11236
11237  case $build_os in
11238  msdosdjgpp*)
11239    # On DJGPP, this test can blow up pretty badly due to problems in libc
11240    # (any single argument exceeding 2000 bytes causes a buffer overrun
11241    # during glob expansion).  Even if it were fixed, the result of this
11242    # check would be larger than it should be.
11243    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11244    ;;
11245
11246  gnu*)
11247    # Under GNU Hurd, this test is not required because there is
11248    # no limit to the length of command line arguments.
11249    # Libtool will interpret -1 as no limit whatsoever
11250    lt_cv_sys_max_cmd_len=-1;
11251    ;;
11252
11253  cygwin* | mingw* | cegcc*)
11254    # On Win9x/ME, this test blows up -- it succeeds, but takes
11255    # about 5 minutes as the teststring grows exponentially.
11256    # Worse, since 9x/ME are not pre-emptively multitasking,
11257    # you end up with a "frozen" computer, even though with patience
11258    # the test eventually succeeds (with a max line length of 256k).
11259    # Instead, let's just punt: use the minimum linelength reported by
11260    # all of the supported platforms: 8192 (on NT/2K/XP).
11261    lt_cv_sys_max_cmd_len=8192;
11262    ;;
11263
11264  mint*)
11265    # On MiNT this can take a long time and run out of memory.
11266    lt_cv_sys_max_cmd_len=8192;
11267    ;;
11268
11269  amigaos*)
11270    # On AmigaOS with pdksh, this test takes hours, literally.
11271    # So we just punt and use a minimum line length of 8192.
11272    lt_cv_sys_max_cmd_len=8192;
11273    ;;
11274
11275  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11276    # This has been around since 386BSD, at least.  Likely further.
11277    if test -x /sbin/sysctl; then
11278      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11279    elif test -x /usr/sbin/sysctl; then
11280      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11281    else
11282      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11283    fi
11284    # And add a safety zone
11285    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11286    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11287    ;;
11288
11289  interix*)
11290    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11291    lt_cv_sys_max_cmd_len=196608
11292    ;;
11293
11294  os2*)
11295    # The test takes a long time on OS/2.
11296    lt_cv_sys_max_cmd_len=8192
11297    ;;
11298
11299  osf*)
11300    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11301    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11302    # nice to cause kernel panics so lets avoid the loop below.
11303    # First set a reasonable default.
11304    lt_cv_sys_max_cmd_len=16384
11305    #
11306    if test -x /sbin/sysconfig; then
11307      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11308        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11309      esac
11310    fi
11311    ;;
11312  sco3.2v5*)
11313    lt_cv_sys_max_cmd_len=102400
11314    ;;
11315  sysv5* | sco5v6* | sysv4.2uw2*)
11316    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11317    if test -n "$kargmax"; then
11318      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11319    else
11320      lt_cv_sys_max_cmd_len=32768
11321    fi
11322    ;;
11323  *)
11324    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11325    if test -n "$lt_cv_sys_max_cmd_len"; then
11326      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11327      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11328    else
11329      # Make teststring a little bigger before we do anything with it.
11330      # a 1K string should be a reasonable start.
11331      for i in 1 2 3 4 5 6 7 8 ; do
11332        teststring=$teststring$teststring
11333      done
11334      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11335      # If test is not a shell built-in, we'll probably end up computing a
11336      # maximum length that is only half of the actual maximum length, but
11337      # we can't tell.
11338      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11339	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11340	      test $i != 17 # 1/2 MB should be enough
11341      do
11342        i=`expr $i + 1`
11343        teststring=$teststring$teststring
11344      done
11345      # Only check the string length outside the loop.
11346      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11347      teststring=
11348      # Add a significant safety factor because C++ compilers can tack on
11349      # massive amounts of additional arguments before passing them to the
11350      # linker.  It appears as though 1/2 is a usable value.
11351      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11352    fi
11353    ;;
11354  esac
11355
11356fi
11357
11358if test -n $lt_cv_sys_max_cmd_len ; then
11359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11360$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11361else
11362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11363$as_echo "none" >&6; }
11364fi
11365max_cmd_len=$lt_cv_sys_max_cmd_len
11366
11367
11368
11369
11370
11371
11372: ${CP="cp -f"}
11373: ${MV="mv -f"}
11374: ${RM="rm -f"}
11375
11376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11377$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11378# Try some XSI features
11379xsi_shell=no
11380( _lt_dummy="a/b/c"
11381  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11382      = c,a/b,b/c, \
11383    && eval 'test $(( 1 + 1 )) -eq 2 \
11384    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11385  && xsi_shell=yes
11386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11387$as_echo "$xsi_shell" >&6; }
11388
11389
11390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11391$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11392lt_shell_append=no
11393( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11394    >/dev/null 2>&1 \
11395  && lt_shell_append=yes
11396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11397$as_echo "$lt_shell_append" >&6; }
11398
11399
11400if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11401  lt_unset=unset
11402else
11403  lt_unset=false
11404fi
11405
11406
11407
11408
11409
11410# test EBCDIC or ASCII
11411case `echo X|tr X '\101'` in
11412 A) # ASCII based system
11413    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11414  lt_SP2NL='tr \040 \012'
11415  lt_NL2SP='tr \015\012 \040\040'
11416  ;;
11417 *) # EBCDIC based system
11418  lt_SP2NL='tr \100 \n'
11419  lt_NL2SP='tr \r\n \100\100'
11420  ;;
11421esac
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11432$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11433if ${lt_cv_to_host_file_cmd+:} false; then :
11434  $as_echo_n "(cached) " >&6
11435else
11436  case $host in
11437  *-*-mingw* )
11438    case $build in
11439      *-*-mingw* ) # actually msys
11440        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11441        ;;
11442      *-*-cygwin* )
11443        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11444        ;;
11445      * ) # otherwise, assume *nix
11446        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11447        ;;
11448    esac
11449    ;;
11450  *-*-cygwin* )
11451    case $build in
11452      *-*-mingw* ) # actually msys
11453        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11454        ;;
11455      *-*-cygwin* )
11456        lt_cv_to_host_file_cmd=func_convert_file_noop
11457        ;;
11458      * ) # otherwise, assume *nix
11459        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11460        ;;
11461    esac
11462    ;;
11463  * ) # unhandled hosts (and "normal" native builds)
11464    lt_cv_to_host_file_cmd=func_convert_file_noop
11465    ;;
11466esac
11467
11468fi
11469
11470to_host_file_cmd=$lt_cv_to_host_file_cmd
11471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11472$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11473
11474
11475
11476
11477
11478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11479$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11480if ${lt_cv_to_tool_file_cmd+:} false; then :
11481  $as_echo_n "(cached) " >&6
11482else
11483  #assume ordinary cross tools, or native build.
11484lt_cv_to_tool_file_cmd=func_convert_file_noop
11485case $host in
11486  *-*-mingw* )
11487    case $build in
11488      *-*-mingw* ) # actually msys
11489        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11490        ;;
11491    esac
11492    ;;
11493esac
11494
11495fi
11496
11497to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11499$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11500
11501
11502
11503
11504
11505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11506$as_echo_n "checking for $LD option to reload object files... " >&6; }
11507if ${lt_cv_ld_reload_flag+:} false; then :
11508  $as_echo_n "(cached) " >&6
11509else
11510  lt_cv_ld_reload_flag='-r'
11511fi
11512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11513$as_echo "$lt_cv_ld_reload_flag" >&6; }
11514reload_flag=$lt_cv_ld_reload_flag
11515case $reload_flag in
11516"" | " "*) ;;
11517*) reload_flag=" $reload_flag" ;;
11518esac
11519reload_cmds='$LD$reload_flag -o $output$reload_objs'
11520case $host_os in
11521  cygwin* | mingw* | pw32* | cegcc*)
11522    if test "$GCC" != yes; then
11523      reload_cmds=false
11524    fi
11525    ;;
11526  darwin*)
11527    if test "$GCC" = yes; then
11528      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11529    else
11530      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11531    fi
11532    ;;
11533esac
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543if test -n "$ac_tool_prefix"; then
11544  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11545set dummy ${ac_tool_prefix}objdump; ac_word=$2
11546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11547$as_echo_n "checking for $ac_word... " >&6; }
11548if ${ac_cv_prog_OBJDUMP+:} false; then :
11549  $as_echo_n "(cached) " >&6
11550else
11551  if test -n "$OBJDUMP"; then
11552  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11553else
11554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555for as_dir in $PATH
11556do
11557  IFS=$as_save_IFS
11558  test -z "$as_dir" && as_dir=.
11559    for ac_exec_ext in '' $ac_executable_extensions; do
11560  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11561    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11563    break 2
11564  fi
11565done
11566  done
11567IFS=$as_save_IFS
11568
11569fi
11570fi
11571OBJDUMP=$ac_cv_prog_OBJDUMP
11572if test -n "$OBJDUMP"; then
11573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11574$as_echo "$OBJDUMP" >&6; }
11575else
11576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577$as_echo "no" >&6; }
11578fi
11579
11580
11581fi
11582if test -z "$ac_cv_prog_OBJDUMP"; then
11583  ac_ct_OBJDUMP=$OBJDUMP
11584  # Extract the first word of "objdump", so it can be a program name with args.
11585set dummy objdump; ac_word=$2
11586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11587$as_echo_n "checking for $ac_word... " >&6; }
11588if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11589  $as_echo_n "(cached) " >&6
11590else
11591  if test -n "$ac_ct_OBJDUMP"; then
11592  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11593else
11594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595for as_dir in $PATH
11596do
11597  IFS=$as_save_IFS
11598  test -z "$as_dir" && as_dir=.
11599    for ac_exec_ext in '' $ac_executable_extensions; do
11600  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11601    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11603    break 2
11604  fi
11605done
11606  done
11607IFS=$as_save_IFS
11608
11609fi
11610fi
11611ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11612if test -n "$ac_ct_OBJDUMP"; then
11613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11614$as_echo "$ac_ct_OBJDUMP" >&6; }
11615else
11616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617$as_echo "no" >&6; }
11618fi
11619
11620  if test "x$ac_ct_OBJDUMP" = x; then
11621    OBJDUMP="false"
11622  else
11623    case $cross_compiling:$ac_tool_warned in
11624yes:)
11625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11627ac_tool_warned=yes ;;
11628esac
11629    OBJDUMP=$ac_ct_OBJDUMP
11630  fi
11631else
11632  OBJDUMP="$ac_cv_prog_OBJDUMP"
11633fi
11634
11635test -z "$OBJDUMP" && OBJDUMP=objdump
11636
11637
11638
11639
11640
11641
11642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11643$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11644if ${lt_cv_deplibs_check_method+:} false; then :
11645  $as_echo_n "(cached) " >&6
11646else
11647  lt_cv_file_magic_cmd='$MAGIC_CMD'
11648lt_cv_file_magic_test_file=
11649lt_cv_deplibs_check_method='unknown'
11650# Need to set the preceding variable on all platforms that support
11651# interlibrary dependencies.
11652# 'none' -- dependencies not supported.
11653# `unknown' -- same as none, but documents that we really don't know.
11654# 'pass_all' -- all dependencies passed with no checks.
11655# 'test_compile' -- check by making test program.
11656# 'file_magic [[regex]]' -- check by looking for files in library path
11657# which responds to the $file_magic_cmd with a given extended regex.
11658# If you have `file' or equivalent on your system and you're not sure
11659# whether `pass_all' will *always* work, you probably want this one.
11660
11661case $host_os in
11662aix[4-9]*)
11663  lt_cv_deplibs_check_method=pass_all
11664  ;;
11665
11666beos*)
11667  lt_cv_deplibs_check_method=pass_all
11668  ;;
11669
11670bsdi[45]*)
11671  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11672  lt_cv_file_magic_cmd='/usr/bin/file -L'
11673  lt_cv_file_magic_test_file=/shlib/libc.so
11674  ;;
11675
11676cygwin*)
11677  # func_win32_libid is a shell function defined in ltmain.sh
11678  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11679  lt_cv_file_magic_cmd='func_win32_libid'
11680  ;;
11681
11682mingw* | pw32*)
11683  # Base MSYS/MinGW do not provide the 'file' command needed by
11684  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11685  # unless we find 'file', for example because we are cross-compiling.
11686  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11687  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11688    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11689    lt_cv_file_magic_cmd='func_win32_libid'
11690  else
11691    # Keep this pattern in sync with the one in func_win32_libid.
11692    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11693    lt_cv_file_magic_cmd='$OBJDUMP -f'
11694  fi
11695  ;;
11696
11697cegcc*)
11698  # use the weaker test based on 'objdump'. See mingw*.
11699  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11700  lt_cv_file_magic_cmd='$OBJDUMP -f'
11701  ;;
11702
11703darwin* | rhapsody*)
11704  lt_cv_deplibs_check_method=pass_all
11705  ;;
11706
11707freebsd* | dragonfly*)
11708  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11709    case $host_cpu in
11710    i*86 )
11711      # Not sure whether the presence of OpenBSD here was a mistake.
11712      # Let's accept both of them until this is cleared up.
11713      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11714      lt_cv_file_magic_cmd=/usr/bin/file
11715      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11716      ;;
11717    esac
11718  else
11719    lt_cv_deplibs_check_method=pass_all
11720  fi
11721  ;;
11722
11723gnu*)
11724  lt_cv_deplibs_check_method=pass_all
11725  ;;
11726
11727haiku*)
11728  lt_cv_deplibs_check_method=pass_all
11729  ;;
11730
11731hpux10.20* | hpux11*)
11732  lt_cv_file_magic_cmd=/usr/bin/file
11733  case $host_cpu in
11734  ia64*)
11735    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11736    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11737    ;;
11738  hppa*64*)
11739    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
11740    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11741    ;;
11742  *)
11743    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11744    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11745    ;;
11746  esac
11747  ;;
11748
11749interix[3-9]*)
11750  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11751  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11752  ;;
11753
11754irix5* | irix6* | nonstopux*)
11755  case $LD in
11756  *-32|*"-32 ") libmagic=32-bit;;
11757  *-n32|*"-n32 ") libmagic=N32;;
11758  *-64|*"-64 ") libmagic=64-bit;;
11759  *) libmagic=never-match;;
11760  esac
11761  lt_cv_deplibs_check_method=pass_all
11762  ;;
11763
11764# This must be glibc/ELF.
11765linux* | k*bsd*-gnu | kopensolaris*-gnu)
11766  lt_cv_deplibs_check_method=pass_all
11767  ;;
11768
11769netbsd*)
11770  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11771    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11772  else
11773    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11774  fi
11775  ;;
11776
11777newos6*)
11778  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11779  lt_cv_file_magic_cmd=/usr/bin/file
11780  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11781  ;;
11782
11783*nto* | *qnx*)
11784  lt_cv_deplibs_check_method=pass_all
11785  ;;
11786
11787openbsd*)
11788  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11789    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11790  else
11791    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11792  fi
11793  ;;
11794
11795osf3* | osf4* | osf5*)
11796  lt_cv_deplibs_check_method=pass_all
11797  ;;
11798
11799rdos*)
11800  lt_cv_deplibs_check_method=pass_all
11801  ;;
11802
11803solaris*)
11804  lt_cv_deplibs_check_method=pass_all
11805  ;;
11806
11807sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11808  lt_cv_deplibs_check_method=pass_all
11809  ;;
11810
11811sysv4 | sysv4.3*)
11812  case $host_vendor in
11813  motorola)
11814    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
11815    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11816    ;;
11817  ncr)
11818    lt_cv_deplibs_check_method=pass_all
11819    ;;
11820  sequent)
11821    lt_cv_file_magic_cmd='/bin/file'
11822    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11823    ;;
11824  sni)
11825    lt_cv_file_magic_cmd='/bin/file'
11826    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11827    lt_cv_file_magic_test_file=/lib/libc.so
11828    ;;
11829  siemens)
11830    lt_cv_deplibs_check_method=pass_all
11831    ;;
11832  pc)
11833    lt_cv_deplibs_check_method=pass_all
11834    ;;
11835  esac
11836  ;;
11837
11838tpf*)
11839  lt_cv_deplibs_check_method=pass_all
11840  ;;
11841esac
11842
11843fi
11844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11845$as_echo "$lt_cv_deplibs_check_method" >&6; }
11846
11847file_magic_glob=
11848want_nocaseglob=no
11849if test "$build" = "$host"; then
11850  case $host_os in
11851  mingw* | pw32*)
11852    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11853      want_nocaseglob=yes
11854    else
11855      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11856    fi
11857    ;;
11858  esac
11859fi
11860
11861file_magic_cmd=$lt_cv_file_magic_cmd
11862deplibs_check_method=$lt_cv_deplibs_check_method
11863test -z "$deplibs_check_method" && deplibs_check_method=unknown
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886if test -n "$ac_tool_prefix"; then
11887  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11888set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890$as_echo_n "checking for $ac_word... " >&6; }
11891if ${ac_cv_prog_DLLTOOL+:} false; then :
11892  $as_echo_n "(cached) " >&6
11893else
11894  if test -n "$DLLTOOL"; then
11895  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11896else
11897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898for as_dir in $PATH
11899do
11900  IFS=$as_save_IFS
11901  test -z "$as_dir" && as_dir=.
11902    for ac_exec_ext in '' $ac_executable_extensions; do
11903  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11904    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11906    break 2
11907  fi
11908done
11909  done
11910IFS=$as_save_IFS
11911
11912fi
11913fi
11914DLLTOOL=$ac_cv_prog_DLLTOOL
11915if test -n "$DLLTOOL"; then
11916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11917$as_echo "$DLLTOOL" >&6; }
11918else
11919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920$as_echo "no" >&6; }
11921fi
11922
11923
11924fi
11925if test -z "$ac_cv_prog_DLLTOOL"; then
11926  ac_ct_DLLTOOL=$DLLTOOL
11927  # Extract the first word of "dlltool", so it can be a program name with args.
11928set dummy dlltool; ac_word=$2
11929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930$as_echo_n "checking for $ac_word... " >&6; }
11931if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11932  $as_echo_n "(cached) " >&6
11933else
11934  if test -n "$ac_ct_DLLTOOL"; then
11935  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11936else
11937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11938for as_dir in $PATH
11939do
11940  IFS=$as_save_IFS
11941  test -z "$as_dir" && as_dir=.
11942    for ac_exec_ext in '' $ac_executable_extensions; do
11943  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11944    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11946    break 2
11947  fi
11948done
11949  done
11950IFS=$as_save_IFS
11951
11952fi
11953fi
11954ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11955if test -n "$ac_ct_DLLTOOL"; then
11956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11957$as_echo "$ac_ct_DLLTOOL" >&6; }
11958else
11959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960$as_echo "no" >&6; }
11961fi
11962
11963  if test "x$ac_ct_DLLTOOL" = x; then
11964    DLLTOOL="false"
11965  else
11966    case $cross_compiling:$ac_tool_warned in
11967yes:)
11968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11970ac_tool_warned=yes ;;
11971esac
11972    DLLTOOL=$ac_ct_DLLTOOL
11973  fi
11974else
11975  DLLTOOL="$ac_cv_prog_DLLTOOL"
11976fi
11977
11978test -z "$DLLTOOL" && DLLTOOL=dlltool
11979
11980
11981
11982
11983
11984
11985
11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11987$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11988if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11989  $as_echo_n "(cached) " >&6
11990else
11991  lt_cv_sharedlib_from_linklib_cmd='unknown'
11992
11993case $host_os in
11994cygwin* | mingw* | pw32* | cegcc*)
11995  # two different shell functions defined in ltmain.sh
11996  # decide which to use based on capabilities of $DLLTOOL
11997  case `$DLLTOOL --help 2>&1` in
11998  *--identify-strict*)
11999    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12000    ;;
12001  *)
12002    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12003    ;;
12004  esac
12005  ;;
12006*)
12007  # fallback: assume linklib IS sharedlib
12008  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12009  ;;
12010esac
12011
12012fi
12013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12014$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12015sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12016test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12017
12018
12019
12020
12021
12022
12023
12024if test -n "$ac_tool_prefix"; then
12025  for ac_prog in ar
12026  do
12027    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12028set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12030$as_echo_n "checking for $ac_word... " >&6; }
12031if ${ac_cv_prog_AR+:} false; then :
12032  $as_echo_n "(cached) " >&6
12033else
12034  if test -n "$AR"; then
12035  ac_cv_prog_AR="$AR" # Let the user override the test.
12036else
12037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12038for as_dir in $PATH
12039do
12040  IFS=$as_save_IFS
12041  test -z "$as_dir" && as_dir=.
12042    for ac_exec_ext in '' $ac_executable_extensions; do
12043  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12044    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12046    break 2
12047  fi
12048done
12049  done
12050IFS=$as_save_IFS
12051
12052fi
12053fi
12054AR=$ac_cv_prog_AR
12055if test -n "$AR"; then
12056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12057$as_echo "$AR" >&6; }
12058else
12059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12060$as_echo "no" >&6; }
12061fi
12062
12063
12064    test -n "$AR" && break
12065  done
12066fi
12067if test -z "$AR"; then
12068  ac_ct_AR=$AR
12069  for ac_prog in ar
12070do
12071  # Extract the first word of "$ac_prog", so it can be a program name with args.
12072set dummy $ac_prog; ac_word=$2
12073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12074$as_echo_n "checking for $ac_word... " >&6; }
12075if ${ac_cv_prog_ac_ct_AR+:} false; then :
12076  $as_echo_n "(cached) " >&6
12077else
12078  if test -n "$ac_ct_AR"; then
12079  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12080else
12081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082for as_dir in $PATH
12083do
12084  IFS=$as_save_IFS
12085  test -z "$as_dir" && as_dir=.
12086    for ac_exec_ext in '' $ac_executable_extensions; do
12087  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12088    ac_cv_prog_ac_ct_AR="$ac_prog"
12089    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12090    break 2
12091  fi
12092done
12093  done
12094IFS=$as_save_IFS
12095
12096fi
12097fi
12098ac_ct_AR=$ac_cv_prog_ac_ct_AR
12099if test -n "$ac_ct_AR"; then
12100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12101$as_echo "$ac_ct_AR" >&6; }
12102else
12103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104$as_echo "no" >&6; }
12105fi
12106
12107
12108  test -n "$ac_ct_AR" && break
12109done
12110
12111  if test "x$ac_ct_AR" = x; then
12112    AR="false"
12113  else
12114    case $cross_compiling:$ac_tool_warned in
12115yes:)
12116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12118ac_tool_warned=yes ;;
12119esac
12120    AR=$ac_ct_AR
12121  fi
12122fi
12123
12124: ${AR=ar}
12125: ${AR_FLAGS=cru}
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12138$as_echo_n "checking for archiver @FILE support... " >&6; }
12139if ${lt_cv_ar_at_file+:} false; then :
12140  $as_echo_n "(cached) " >&6
12141else
12142  lt_cv_ar_at_file=no
12143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144/* end confdefs.h.  */
12145
12146int
12147main ()
12148{
12149
12150  ;
12151  return 0;
12152}
12153_ACEOF
12154if ac_fn_c_try_compile "$LINENO"; then :
12155  echo conftest.$ac_objext > conftest.lst
12156      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12157      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12158  (eval $lt_ar_try) 2>&5
12159  ac_status=$?
12160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12161  test $ac_status = 0; }
12162      if test "$ac_status" -eq 0; then
12163	# Ensure the archiver fails upon bogus file names.
12164	rm -f conftest.$ac_objext libconftest.a
12165	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12166  (eval $lt_ar_try) 2>&5
12167  ac_status=$?
12168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12169  test $ac_status = 0; }
12170	if test "$ac_status" -ne 0; then
12171          lt_cv_ar_at_file=@
12172        fi
12173      fi
12174      rm -f conftest.* libconftest.a
12175
12176fi
12177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12178
12179fi
12180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12181$as_echo "$lt_cv_ar_at_file" >&6; }
12182
12183if test "x$lt_cv_ar_at_file" = xno; then
12184  archiver_list_spec=
12185else
12186  archiver_list_spec=$lt_cv_ar_at_file
12187fi
12188
12189
12190
12191
12192
12193
12194
12195if test -n "$ac_tool_prefix"; then
12196  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12197set dummy ${ac_tool_prefix}strip; ac_word=$2
12198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12199$as_echo_n "checking for $ac_word... " >&6; }
12200if ${ac_cv_prog_STRIP+:} false; then :
12201  $as_echo_n "(cached) " >&6
12202else
12203  if test -n "$STRIP"; then
12204  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12205else
12206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207for as_dir in $PATH
12208do
12209  IFS=$as_save_IFS
12210  test -z "$as_dir" && as_dir=.
12211    for ac_exec_ext in '' $ac_executable_extensions; do
12212  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12213    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12215    break 2
12216  fi
12217done
12218  done
12219IFS=$as_save_IFS
12220
12221fi
12222fi
12223STRIP=$ac_cv_prog_STRIP
12224if test -n "$STRIP"; then
12225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12226$as_echo "$STRIP" >&6; }
12227else
12228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229$as_echo "no" >&6; }
12230fi
12231
12232
12233fi
12234if test -z "$ac_cv_prog_STRIP"; then
12235  ac_ct_STRIP=$STRIP
12236  # Extract the first word of "strip", so it can be a program name with args.
12237set dummy strip; ac_word=$2
12238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12239$as_echo_n "checking for $ac_word... " >&6; }
12240if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12241  $as_echo_n "(cached) " >&6
12242else
12243  if test -n "$ac_ct_STRIP"; then
12244  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12245else
12246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247for as_dir in $PATH
12248do
12249  IFS=$as_save_IFS
12250  test -z "$as_dir" && as_dir=.
12251    for ac_exec_ext in '' $ac_executable_extensions; do
12252  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12253    ac_cv_prog_ac_ct_STRIP="strip"
12254    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12255    break 2
12256  fi
12257done
12258  done
12259IFS=$as_save_IFS
12260
12261fi
12262fi
12263ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12264if test -n "$ac_ct_STRIP"; then
12265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12266$as_echo "$ac_ct_STRIP" >&6; }
12267else
12268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12269$as_echo "no" >&6; }
12270fi
12271
12272  if test "x$ac_ct_STRIP" = x; then
12273    STRIP=":"
12274  else
12275    case $cross_compiling:$ac_tool_warned in
12276yes:)
12277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12279ac_tool_warned=yes ;;
12280esac
12281    STRIP=$ac_ct_STRIP
12282  fi
12283else
12284  STRIP="$ac_cv_prog_STRIP"
12285fi
12286
12287test -z "$STRIP" && STRIP=:
12288
12289
12290
12291
12292
12293
12294if test -n "$ac_tool_prefix"; then
12295  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12296set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12298$as_echo_n "checking for $ac_word... " >&6; }
12299if ${ac_cv_prog_RANLIB+:} false; then :
12300  $as_echo_n "(cached) " >&6
12301else
12302  if test -n "$RANLIB"; then
12303  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12304else
12305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306for as_dir in $PATH
12307do
12308  IFS=$as_save_IFS
12309  test -z "$as_dir" && as_dir=.
12310    for ac_exec_ext in '' $ac_executable_extensions; do
12311  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12312    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12313    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12314    break 2
12315  fi
12316done
12317  done
12318IFS=$as_save_IFS
12319
12320fi
12321fi
12322RANLIB=$ac_cv_prog_RANLIB
12323if test -n "$RANLIB"; then
12324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12325$as_echo "$RANLIB" >&6; }
12326else
12327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328$as_echo "no" >&6; }
12329fi
12330
12331
12332fi
12333if test -z "$ac_cv_prog_RANLIB"; then
12334  ac_ct_RANLIB=$RANLIB
12335  # Extract the first word of "ranlib", so it can be a program name with args.
12336set dummy ranlib; ac_word=$2
12337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12338$as_echo_n "checking for $ac_word... " >&6; }
12339if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12340  $as_echo_n "(cached) " >&6
12341else
12342  if test -n "$ac_ct_RANLIB"; then
12343  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12344else
12345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12346for as_dir in $PATH
12347do
12348  IFS=$as_save_IFS
12349  test -z "$as_dir" && as_dir=.
12350    for ac_exec_ext in '' $ac_executable_extensions; do
12351  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12352    ac_cv_prog_ac_ct_RANLIB="ranlib"
12353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12354    break 2
12355  fi
12356done
12357  done
12358IFS=$as_save_IFS
12359
12360fi
12361fi
12362ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12363if test -n "$ac_ct_RANLIB"; then
12364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12365$as_echo "$ac_ct_RANLIB" >&6; }
12366else
12367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12368$as_echo "no" >&6; }
12369fi
12370
12371  if test "x$ac_ct_RANLIB" = x; then
12372    RANLIB=":"
12373  else
12374    case $cross_compiling:$ac_tool_warned in
12375yes:)
12376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12378ac_tool_warned=yes ;;
12379esac
12380    RANLIB=$ac_ct_RANLIB
12381  fi
12382else
12383  RANLIB="$ac_cv_prog_RANLIB"
12384fi
12385
12386test -z "$RANLIB" && RANLIB=:
12387
12388
12389
12390
12391
12392
12393# Determine commands to create old-style static archives.
12394old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12395old_postinstall_cmds='chmod 644 $oldlib'
12396old_postuninstall_cmds=
12397
12398if test -n "$RANLIB"; then
12399  case $host_os in
12400  openbsd*)
12401    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12402    ;;
12403  *)
12404    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12405    ;;
12406  esac
12407  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12408fi
12409
12410case $host_os in
12411  darwin*)
12412    lock_old_archive_extraction=yes ;;
12413  *)
12414    lock_old_archive_extraction=no ;;
12415esac
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455# If no C compiler was specified, use CC.
12456LTCC=${LTCC-"$CC"}
12457
12458# If no C compiler flags were specified, use CFLAGS.
12459LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12460
12461# Allow CC to be a program name with arguments.
12462compiler=$CC
12463
12464
12465# Check for command to grab the raw symbol name followed by C symbol from nm.
12466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12467$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12468if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12469  $as_echo_n "(cached) " >&6
12470else
12471
12472# These are sane defaults that work on at least a few old systems.
12473# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12474
12475# Character class describing NM global symbol codes.
12476symcode='[BCDEGRST]'
12477
12478# Regexp to match symbols that can be accessed directly from C.
12479sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12480
12481# Define system-specific variables.
12482case $host_os in
12483aix*)
12484  symcode='[BCDT]'
12485  ;;
12486cygwin* | mingw* | pw32* | cegcc*)
12487  symcode='[ABCDGISTW]'
12488  ;;
12489hpux*)
12490  if test "$host_cpu" = ia64; then
12491    symcode='[ABCDEGRST]'
12492  fi
12493  ;;
12494irix* | nonstopux*)
12495  symcode='[BCDEGRST]'
12496  ;;
12497osf*)
12498  symcode='[BCDEGQRST]'
12499  ;;
12500solaris*)
12501  symcode='[BDRT]'
12502  ;;
12503sco3.2v5*)
12504  symcode='[DT]'
12505  ;;
12506sysv4.2uw2*)
12507  symcode='[DT]'
12508  ;;
12509sysv5* | sco5v6* | unixware* | OpenUNIX*)
12510  symcode='[ABDT]'
12511  ;;
12512sysv4)
12513  symcode='[DFNSTU]'
12514  ;;
12515esac
12516
12517# If we're using GNU nm, then use its standard symbol codes.
12518case `$NM -V 2>&1` in
12519*GNU* | *'with BFD'*)
12520  symcode='[ABCDGIRSTW]' ;;
12521esac
12522
12523# Transform an extracted symbol line into a proper C declaration.
12524# Some systems (esp. on ia64) link data and code symbols differently,
12525# so use this general approach.
12526lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12527
12528# Transform an extracted symbol line into symbol name and symbol address
12529lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12530lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
12531
12532# Handle CRLF in mingw tool chain
12533opt_cr=
12534case $build_os in
12535mingw*)
12536  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12537  ;;
12538esac
12539
12540# Try without a prefix underscore, then with it.
12541for ac_symprfx in "" "_"; do
12542
12543  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12544  symxfrm="\\1 $ac_symprfx\\2 \\2"
12545
12546  # Write the raw and C identifiers.
12547  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12548    # Fake it for dumpbin and say T for any non-static function
12549    # and D for any global variable.
12550    # Also find C++ and __fastcall symbols from MSVC++,
12551    # which start with @ or ?.
12552    lt_cv_sys_global_symbol_pipe="$AWK '"\
12553"     {last_section=section; section=\$ 3};"\
12554"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12555"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12556"     \$ 0!~/External *\|/{next};"\
12557"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12558"     {if(hide[section]) next};"\
12559"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12560"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12561"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12562"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12563"     ' prfx=^$ac_symprfx"
12564  else
12565    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12566  fi
12567  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12568
12569  # Check to see that the pipe works correctly.
12570  pipe_works=no
12571
12572  rm -f conftest*
12573  cat > conftest.$ac_ext <<_LT_EOF
12574#ifdef __cplusplus
12575extern "C" {
12576#endif
12577char nm_test_var;
12578void nm_test_func(void);
12579void nm_test_func(void){}
12580#ifdef __cplusplus
12581}
12582#endif
12583int main(){nm_test_var='a';nm_test_func();return(0);}
12584_LT_EOF
12585
12586  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12587  (eval $ac_compile) 2>&5
12588  ac_status=$?
12589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12590  test $ac_status = 0; }; then
12591    # Now try to grab the symbols.
12592    nlist=conftest.nm
12593    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12594  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12595  ac_status=$?
12596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12597  test $ac_status = 0; } && test -s "$nlist"; then
12598      # Try sorting and uniquifying the output.
12599      if sort "$nlist" | uniq > "$nlist"T; then
12600	mv -f "$nlist"T "$nlist"
12601      else
12602	rm -f "$nlist"T
12603      fi
12604
12605      # Make sure that we snagged all the symbols we need.
12606      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12607	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12608	  cat <<_LT_EOF > conftest.$ac_ext
12609/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12610#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12611/* DATA imports from DLLs on WIN32 con't be const, because runtime
12612   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12613# define LT_DLSYM_CONST
12614#elif defined(__osf__)
12615/* This system does not cope well with relocations in const data.  */
12616# define LT_DLSYM_CONST
12617#else
12618# define LT_DLSYM_CONST const
12619#endif
12620
12621#ifdef __cplusplus
12622extern "C" {
12623#endif
12624
12625_LT_EOF
12626	  # Now generate the symbol file.
12627	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12628
12629	  cat <<_LT_EOF >> conftest.$ac_ext
12630
12631/* The mapping between symbol names and symbols.  */
12632LT_DLSYM_CONST struct {
12633  const char *name;
12634  void       *address;
12635}
12636lt__PROGRAM__LTX_preloaded_symbols[] =
12637{
12638  { "@PROGRAM@", (void *) 0 },
12639_LT_EOF
12640	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12641	  cat <<\_LT_EOF >> conftest.$ac_ext
12642  {0, (void *) 0}
12643};
12644
12645/* This works around a problem in FreeBSD linker */
12646#ifdef FREEBSD_WORKAROUND
12647static const void *lt_preloaded_setup() {
12648  return lt__PROGRAM__LTX_preloaded_symbols;
12649}
12650#endif
12651
12652#ifdef __cplusplus
12653}
12654#endif
12655_LT_EOF
12656	  # Now try linking the two files.
12657	  mv conftest.$ac_objext conftstm.$ac_objext
12658	  lt_globsym_save_LIBS=$LIBS
12659	  lt_globsym_save_CFLAGS=$CFLAGS
12660	  LIBS="conftstm.$ac_objext"
12661	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12662	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12663  (eval $ac_link) 2>&5
12664  ac_status=$?
12665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12666  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12667	    pipe_works=yes
12668	  fi
12669	  LIBS=$lt_globsym_save_LIBS
12670	  CFLAGS=$lt_globsym_save_CFLAGS
12671	else
12672	  echo "cannot find nm_test_func in $nlist" >&5
12673	fi
12674      else
12675	echo "cannot find nm_test_var in $nlist" >&5
12676      fi
12677    else
12678      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12679    fi
12680  else
12681    echo "$progname: failed program was:" >&5
12682    cat conftest.$ac_ext >&5
12683  fi
12684  rm -rf conftest* conftst*
12685
12686  # Do not use the global_symbol_pipe unless it works.
12687  if test "$pipe_works" = yes; then
12688    break
12689  else
12690    lt_cv_sys_global_symbol_pipe=
12691  fi
12692done
12693
12694fi
12695
12696if test -z "$lt_cv_sys_global_symbol_pipe"; then
12697  lt_cv_sys_global_symbol_to_cdecl=
12698fi
12699if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12701$as_echo "failed" >&6; }
12702else
12703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12704$as_echo "ok" >&6; }
12705fi
12706
12707# Response file support.
12708if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12709  nm_file_list_spec='@'
12710elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12711  nm_file_list_spec='@'
12712fi
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12741$as_echo_n "checking for sysroot... " >&6; }
12742
12743# Check whether --with-sysroot was given.
12744if test "${with_sysroot+set}" = set; then :
12745  withval=$with_sysroot;
12746else
12747  with_sysroot=no
12748fi
12749
12750
12751lt_sysroot=
12752case ${with_sysroot} in #(
12753 yes)
12754   if test "$GCC" = yes; then
12755     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12756   fi
12757   ;; #(
12758 /*)
12759   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12760   ;; #(
12761 no|'')
12762   ;; #(
12763 *)
12764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12765$as_echo "${with_sysroot}" >&6; }
12766   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12767   ;;
12768esac
12769
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12771$as_echo "${lt_sysroot:-no}" >&6; }
12772
12773
12774
12775
12776
12777# Check whether --enable-libtool-lock was given.
12778if test "${enable_libtool_lock+set}" = set; then :
12779  enableval=$enable_libtool_lock;
12780fi
12781
12782test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12783
12784# Some flags need to be propagated to the compiler or linker for good
12785# libtool support.
12786case $host in
12787ia64-*-hpux*)
12788  # Find out which ABI we are using.
12789  echo 'int i;' > conftest.$ac_ext
12790  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12791  (eval $ac_compile) 2>&5
12792  ac_status=$?
12793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12794  test $ac_status = 0; }; then
12795    case `/usr/bin/file conftest.$ac_objext` in
12796      *ELF-32*)
12797	HPUX_IA64_MODE="32"
12798	;;
12799      *ELF-64*)
12800	HPUX_IA64_MODE="64"
12801	;;
12802    esac
12803  fi
12804  rm -rf conftest*
12805  ;;
12806*-*-irix6*)
12807  # Find out which ABI we are using.
12808  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12809  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12810  (eval $ac_compile) 2>&5
12811  ac_status=$?
12812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12813  test $ac_status = 0; }; then
12814    if test "$lt_cv_prog_gnu_ld" = yes; then
12815      case `/usr/bin/file conftest.$ac_objext` in
12816	*32-bit*)
12817	  LD="${LD-ld} -melf32bsmip"
12818	  ;;
12819	*N32*)
12820	  LD="${LD-ld} -melf32bmipn32"
12821	  ;;
12822	*64-bit*)
12823	  LD="${LD-ld} -melf64bmip"
12824	;;
12825      esac
12826    else
12827      case `/usr/bin/file conftest.$ac_objext` in
12828	*32-bit*)
12829	  LD="${LD-ld} -32"
12830	  ;;
12831	*N32*)
12832	  LD="${LD-ld} -n32"
12833	  ;;
12834	*64-bit*)
12835	  LD="${LD-ld} -64"
12836	  ;;
12837      esac
12838    fi
12839  fi
12840  rm -rf conftest*
12841  ;;
12842
12843x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12844s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12845  # Find out which ABI we are using.
12846  echo 'int i;' > conftest.$ac_ext
12847  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12848  (eval $ac_compile) 2>&5
12849  ac_status=$?
12850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12851  test $ac_status = 0; }; then
12852    case `/usr/bin/file conftest.o` in
12853      *32-bit*)
12854	case $host in
12855	  x86_64-*kfreebsd*-gnu)
12856	    LD="${LD-ld} -m elf_i386_fbsd"
12857	    ;;
12858	  x86_64-*linux*)
12859	    LD="${LD-ld} -m elf_i386"
12860	    ;;
12861	  ppc64-*linux*|powerpc64-*linux*)
12862	    LD="${LD-ld} -m elf32ppclinux"
12863	    ;;
12864	  s390x-*linux*)
12865	    LD="${LD-ld} -m elf_s390"
12866	    ;;
12867	  sparc64-*linux*)
12868	    LD="${LD-ld} -m elf32_sparc"
12869	    ;;
12870	esac
12871	;;
12872      *64-bit*)
12873	case $host in
12874	  x86_64-*kfreebsd*-gnu)
12875	    LD="${LD-ld} -m elf_x86_64_fbsd"
12876	    ;;
12877	  x86_64-*linux*)
12878	    LD="${LD-ld} -m elf_x86_64"
12879	    ;;
12880	  ppc*-*linux*|powerpc*-*linux*)
12881	    LD="${LD-ld} -m elf64ppc"
12882	    ;;
12883	  s390*-*linux*|s390*-*tpf*)
12884	    LD="${LD-ld} -m elf64_s390"
12885	    ;;
12886	  sparc*-*linux*)
12887	    LD="${LD-ld} -m elf64_sparc"
12888	    ;;
12889	esac
12890	;;
12891    esac
12892  fi
12893  rm -rf conftest*
12894  ;;
12895
12896*-*-sco3.2v5*)
12897  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12898  SAVE_CFLAGS="$CFLAGS"
12899  CFLAGS="$CFLAGS -belf"
12900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12901$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12902if ${lt_cv_cc_needs_belf+:} false; then :
12903  $as_echo_n "(cached) " >&6
12904else
12905  ac_ext=c
12906ac_cpp='$CPP $CPPFLAGS'
12907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12909ac_compiler_gnu=$ac_cv_c_compiler_gnu
12910
12911     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912/* end confdefs.h.  */
12913
12914int
12915main ()
12916{
12917
12918  ;
12919  return 0;
12920}
12921_ACEOF
12922if ac_fn_c_try_link "$LINENO"; then :
12923  lt_cv_cc_needs_belf=yes
12924else
12925  lt_cv_cc_needs_belf=no
12926fi
12927rm -f core conftest.err conftest.$ac_objext \
12928    conftest$ac_exeext conftest.$ac_ext
12929     ac_ext=c
12930ac_cpp='$CPP $CPPFLAGS'
12931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12933ac_compiler_gnu=$ac_cv_c_compiler_gnu
12934
12935fi
12936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12937$as_echo "$lt_cv_cc_needs_belf" >&6; }
12938  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12939    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12940    CFLAGS="$SAVE_CFLAGS"
12941  fi
12942  ;;
12943*-*solaris*)
12944  # Find out which ABI we are using.
12945  echo 'int i;' > conftest.$ac_ext
12946  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12947  (eval $ac_compile) 2>&5
12948  ac_status=$?
12949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12950  test $ac_status = 0; }; then
12951    case `/usr/bin/file conftest.o` in
12952    *64-bit*)
12953      case $lt_cv_prog_gnu_ld in
12954      yes*)
12955        case $host in
12956        i?86-*-solaris*)
12957          LD="${LD-ld} -m elf_x86_64"
12958          ;;
12959        sparc*-*-solaris*)
12960          LD="${LD-ld} -m elf64_sparc"
12961          ;;
12962        esac
12963        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
12964        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12965          LD="${LD-ld}_sol2"
12966        fi
12967        ;;
12968      *)
12969	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12970	  LD="${LD-ld} -64"
12971	fi
12972	;;
12973      esac
12974      ;;
12975    esac
12976  fi
12977  rm -rf conftest*
12978  ;;
12979esac
12980
12981need_locks="$enable_libtool_lock"
12982
12983if test -n "$ac_tool_prefix"; then
12984  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12985set dummy ${ac_tool_prefix}mt; ac_word=$2
12986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12987$as_echo_n "checking for $ac_word... " >&6; }
12988if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12989  $as_echo_n "(cached) " >&6
12990else
12991  if test -n "$MANIFEST_TOOL"; then
12992  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12993else
12994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12995for as_dir in $PATH
12996do
12997  IFS=$as_save_IFS
12998  test -z "$as_dir" && as_dir=.
12999    for ac_exec_ext in '' $ac_executable_extensions; do
13000  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13001    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13003    break 2
13004  fi
13005done
13006  done
13007IFS=$as_save_IFS
13008
13009fi
13010fi
13011MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13012if test -n "$MANIFEST_TOOL"; then
13013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13014$as_echo "$MANIFEST_TOOL" >&6; }
13015else
13016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13017$as_echo "no" >&6; }
13018fi
13019
13020
13021fi
13022if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13023  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13024  # Extract the first word of "mt", so it can be a program name with args.
13025set dummy mt; ac_word=$2
13026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13027$as_echo_n "checking for $ac_word... " >&6; }
13028if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13029  $as_echo_n "(cached) " >&6
13030else
13031  if test -n "$ac_ct_MANIFEST_TOOL"; then
13032  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13033else
13034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13035for as_dir in $PATH
13036do
13037  IFS=$as_save_IFS
13038  test -z "$as_dir" && as_dir=.
13039    for ac_exec_ext in '' $ac_executable_extensions; do
13040  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13041    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13042    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13043    break 2
13044  fi
13045done
13046  done
13047IFS=$as_save_IFS
13048
13049fi
13050fi
13051ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13052if test -n "$ac_ct_MANIFEST_TOOL"; then
13053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13054$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13055else
13056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13057$as_echo "no" >&6; }
13058fi
13059
13060  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13061    MANIFEST_TOOL=":"
13062  else
13063    case $cross_compiling:$ac_tool_warned in
13064yes:)
13065{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13066$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13067ac_tool_warned=yes ;;
13068esac
13069    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13070  fi
13071else
13072  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13073fi
13074
13075test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13077$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13078if ${lt_cv_path_mainfest_tool+:} false; then :
13079  $as_echo_n "(cached) " >&6
13080else
13081  lt_cv_path_mainfest_tool=no
13082  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13083  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13084  cat conftest.err >&5
13085  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13086    lt_cv_path_mainfest_tool=yes
13087  fi
13088  rm -f conftest*
13089fi
13090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13091$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13092if test "x$lt_cv_path_mainfest_tool" != xyes; then
13093  MANIFEST_TOOL=:
13094fi
13095
13096
13097
13098
13099
13100
13101  case $host_os in
13102    rhapsody* | darwin*)
13103    if test -n "$ac_tool_prefix"; then
13104  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13105set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13107$as_echo_n "checking for $ac_word... " >&6; }
13108if ${ac_cv_prog_DSYMUTIL+:} false; then :
13109  $as_echo_n "(cached) " >&6
13110else
13111  if test -n "$DSYMUTIL"; then
13112  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13113else
13114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13115for as_dir in $PATH
13116do
13117  IFS=$as_save_IFS
13118  test -z "$as_dir" && as_dir=.
13119    for ac_exec_ext in '' $ac_executable_extensions; do
13120  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13121    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13123    break 2
13124  fi
13125done
13126  done
13127IFS=$as_save_IFS
13128
13129fi
13130fi
13131DSYMUTIL=$ac_cv_prog_DSYMUTIL
13132if test -n "$DSYMUTIL"; then
13133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13134$as_echo "$DSYMUTIL" >&6; }
13135else
13136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137$as_echo "no" >&6; }
13138fi
13139
13140
13141fi
13142if test -z "$ac_cv_prog_DSYMUTIL"; then
13143  ac_ct_DSYMUTIL=$DSYMUTIL
13144  # Extract the first word of "dsymutil", so it can be a program name with args.
13145set dummy dsymutil; ac_word=$2
13146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13147$as_echo_n "checking for $ac_word... " >&6; }
13148if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13149  $as_echo_n "(cached) " >&6
13150else
13151  if test -n "$ac_ct_DSYMUTIL"; then
13152  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13153else
13154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13155for as_dir in $PATH
13156do
13157  IFS=$as_save_IFS
13158  test -z "$as_dir" && as_dir=.
13159    for ac_exec_ext in '' $ac_executable_extensions; do
13160  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13161    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13163    break 2
13164  fi
13165done
13166  done
13167IFS=$as_save_IFS
13168
13169fi
13170fi
13171ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13172if test -n "$ac_ct_DSYMUTIL"; then
13173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13174$as_echo "$ac_ct_DSYMUTIL" >&6; }
13175else
13176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13177$as_echo "no" >&6; }
13178fi
13179
13180  if test "x$ac_ct_DSYMUTIL" = x; then
13181    DSYMUTIL=":"
13182  else
13183    case $cross_compiling:$ac_tool_warned in
13184yes:)
13185{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13186$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13187ac_tool_warned=yes ;;
13188esac
13189    DSYMUTIL=$ac_ct_DSYMUTIL
13190  fi
13191else
13192  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13193fi
13194
13195    if test -n "$ac_tool_prefix"; then
13196  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13197set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13199$as_echo_n "checking for $ac_word... " >&6; }
13200if ${ac_cv_prog_NMEDIT+:} false; then :
13201  $as_echo_n "(cached) " >&6
13202else
13203  if test -n "$NMEDIT"; then
13204  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13205else
13206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13207for as_dir in $PATH
13208do
13209  IFS=$as_save_IFS
13210  test -z "$as_dir" && as_dir=.
13211    for ac_exec_ext in '' $ac_executable_extensions; do
13212  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13213    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13215    break 2
13216  fi
13217done
13218  done
13219IFS=$as_save_IFS
13220
13221fi
13222fi
13223NMEDIT=$ac_cv_prog_NMEDIT
13224if test -n "$NMEDIT"; then
13225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13226$as_echo "$NMEDIT" >&6; }
13227else
13228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13229$as_echo "no" >&6; }
13230fi
13231
13232
13233fi
13234if test -z "$ac_cv_prog_NMEDIT"; then
13235  ac_ct_NMEDIT=$NMEDIT
13236  # Extract the first word of "nmedit", so it can be a program name with args.
13237set dummy nmedit; ac_word=$2
13238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13239$as_echo_n "checking for $ac_word... " >&6; }
13240if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13241  $as_echo_n "(cached) " >&6
13242else
13243  if test -n "$ac_ct_NMEDIT"; then
13244  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13245else
13246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247for as_dir in $PATH
13248do
13249  IFS=$as_save_IFS
13250  test -z "$as_dir" && as_dir=.
13251    for ac_exec_ext in '' $ac_executable_extensions; do
13252  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13253    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13254    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13255    break 2
13256  fi
13257done
13258  done
13259IFS=$as_save_IFS
13260
13261fi
13262fi
13263ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13264if test -n "$ac_ct_NMEDIT"; then
13265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13266$as_echo "$ac_ct_NMEDIT" >&6; }
13267else
13268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13269$as_echo "no" >&6; }
13270fi
13271
13272  if test "x$ac_ct_NMEDIT" = x; then
13273    NMEDIT=":"
13274  else
13275    case $cross_compiling:$ac_tool_warned in
13276yes:)
13277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13279ac_tool_warned=yes ;;
13280esac
13281    NMEDIT=$ac_ct_NMEDIT
13282  fi
13283else
13284  NMEDIT="$ac_cv_prog_NMEDIT"
13285fi
13286
13287    if test -n "$ac_tool_prefix"; then
13288  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13289set dummy ${ac_tool_prefix}lipo; ac_word=$2
13290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13291$as_echo_n "checking for $ac_word... " >&6; }
13292if ${ac_cv_prog_LIPO+:} false; then :
13293  $as_echo_n "(cached) " >&6
13294else
13295  if test -n "$LIPO"; then
13296  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13297else
13298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299for as_dir in $PATH
13300do
13301  IFS=$as_save_IFS
13302  test -z "$as_dir" && as_dir=.
13303    for ac_exec_ext in '' $ac_executable_extensions; do
13304  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13305    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13306    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13307    break 2
13308  fi
13309done
13310  done
13311IFS=$as_save_IFS
13312
13313fi
13314fi
13315LIPO=$ac_cv_prog_LIPO
13316if test -n "$LIPO"; then
13317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13318$as_echo "$LIPO" >&6; }
13319else
13320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13321$as_echo "no" >&6; }
13322fi
13323
13324
13325fi
13326if test -z "$ac_cv_prog_LIPO"; then
13327  ac_ct_LIPO=$LIPO
13328  # Extract the first word of "lipo", so it can be a program name with args.
13329set dummy lipo; ac_word=$2
13330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13331$as_echo_n "checking for $ac_word... " >&6; }
13332if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13333  $as_echo_n "(cached) " >&6
13334else
13335  if test -n "$ac_ct_LIPO"; then
13336  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13337else
13338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13339for as_dir in $PATH
13340do
13341  IFS=$as_save_IFS
13342  test -z "$as_dir" && as_dir=.
13343    for ac_exec_ext in '' $ac_executable_extensions; do
13344  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13345    ac_cv_prog_ac_ct_LIPO="lipo"
13346    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13347    break 2
13348  fi
13349done
13350  done
13351IFS=$as_save_IFS
13352
13353fi
13354fi
13355ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13356if test -n "$ac_ct_LIPO"; then
13357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13358$as_echo "$ac_ct_LIPO" >&6; }
13359else
13360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13361$as_echo "no" >&6; }
13362fi
13363
13364  if test "x$ac_ct_LIPO" = x; then
13365    LIPO=":"
13366  else
13367    case $cross_compiling:$ac_tool_warned in
13368yes:)
13369{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13370$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13371ac_tool_warned=yes ;;
13372esac
13373    LIPO=$ac_ct_LIPO
13374  fi
13375else
13376  LIPO="$ac_cv_prog_LIPO"
13377fi
13378
13379    if test -n "$ac_tool_prefix"; then
13380  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13381set dummy ${ac_tool_prefix}otool; ac_word=$2
13382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13383$as_echo_n "checking for $ac_word... " >&6; }
13384if ${ac_cv_prog_OTOOL+:} false; then :
13385  $as_echo_n "(cached) " >&6
13386else
13387  if test -n "$OTOOL"; then
13388  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13389else
13390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13391for as_dir in $PATH
13392do
13393  IFS=$as_save_IFS
13394  test -z "$as_dir" && as_dir=.
13395    for ac_exec_ext in '' $ac_executable_extensions; do
13396  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13397    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13399    break 2
13400  fi
13401done
13402  done
13403IFS=$as_save_IFS
13404
13405fi
13406fi
13407OTOOL=$ac_cv_prog_OTOOL
13408if test -n "$OTOOL"; then
13409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13410$as_echo "$OTOOL" >&6; }
13411else
13412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13413$as_echo "no" >&6; }
13414fi
13415
13416
13417fi
13418if test -z "$ac_cv_prog_OTOOL"; then
13419  ac_ct_OTOOL=$OTOOL
13420  # Extract the first word of "otool", so it can be a program name with args.
13421set dummy otool; ac_word=$2
13422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13423$as_echo_n "checking for $ac_word... " >&6; }
13424if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13425  $as_echo_n "(cached) " >&6
13426else
13427  if test -n "$ac_ct_OTOOL"; then
13428  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13429else
13430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13431for as_dir in $PATH
13432do
13433  IFS=$as_save_IFS
13434  test -z "$as_dir" && as_dir=.
13435    for ac_exec_ext in '' $ac_executable_extensions; do
13436  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13437    ac_cv_prog_ac_ct_OTOOL="otool"
13438    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13439    break 2
13440  fi
13441done
13442  done
13443IFS=$as_save_IFS
13444
13445fi
13446fi
13447ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13448if test -n "$ac_ct_OTOOL"; then
13449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13450$as_echo "$ac_ct_OTOOL" >&6; }
13451else
13452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453$as_echo "no" >&6; }
13454fi
13455
13456  if test "x$ac_ct_OTOOL" = x; then
13457    OTOOL=":"
13458  else
13459    case $cross_compiling:$ac_tool_warned in
13460yes:)
13461{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13463ac_tool_warned=yes ;;
13464esac
13465    OTOOL=$ac_ct_OTOOL
13466  fi
13467else
13468  OTOOL="$ac_cv_prog_OTOOL"
13469fi
13470
13471    if test -n "$ac_tool_prefix"; then
13472  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13473set dummy ${ac_tool_prefix}otool64; ac_word=$2
13474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13475$as_echo_n "checking for $ac_word... " >&6; }
13476if ${ac_cv_prog_OTOOL64+:} false; then :
13477  $as_echo_n "(cached) " >&6
13478else
13479  if test -n "$OTOOL64"; then
13480  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13481else
13482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13483for as_dir in $PATH
13484do
13485  IFS=$as_save_IFS
13486  test -z "$as_dir" && as_dir=.
13487    for ac_exec_ext in '' $ac_executable_extensions; do
13488  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13489    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13490    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13491    break 2
13492  fi
13493done
13494  done
13495IFS=$as_save_IFS
13496
13497fi
13498fi
13499OTOOL64=$ac_cv_prog_OTOOL64
13500if test -n "$OTOOL64"; then
13501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13502$as_echo "$OTOOL64" >&6; }
13503else
13504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13505$as_echo "no" >&6; }
13506fi
13507
13508
13509fi
13510if test -z "$ac_cv_prog_OTOOL64"; then
13511  ac_ct_OTOOL64=$OTOOL64
13512  # Extract the first word of "otool64", so it can be a program name with args.
13513set dummy otool64; ac_word=$2
13514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13515$as_echo_n "checking for $ac_word... " >&6; }
13516if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13517  $as_echo_n "(cached) " >&6
13518else
13519  if test -n "$ac_ct_OTOOL64"; then
13520  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13521else
13522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13523for as_dir in $PATH
13524do
13525  IFS=$as_save_IFS
13526  test -z "$as_dir" && as_dir=.
13527    for ac_exec_ext in '' $ac_executable_extensions; do
13528  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13529    ac_cv_prog_ac_ct_OTOOL64="otool64"
13530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13531    break 2
13532  fi
13533done
13534  done
13535IFS=$as_save_IFS
13536
13537fi
13538fi
13539ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13540if test -n "$ac_ct_OTOOL64"; then
13541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13542$as_echo "$ac_ct_OTOOL64" >&6; }
13543else
13544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545$as_echo "no" >&6; }
13546fi
13547
13548  if test "x$ac_ct_OTOOL64" = x; then
13549    OTOOL64=":"
13550  else
13551    case $cross_compiling:$ac_tool_warned in
13552yes:)
13553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13555ac_tool_warned=yes ;;
13556esac
13557    OTOOL64=$ac_ct_OTOOL64
13558  fi
13559else
13560  OTOOL64="$ac_cv_prog_OTOOL64"
13561fi
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13590$as_echo_n "checking for -single_module linker flag... " >&6; }
13591if ${lt_cv_apple_cc_single_mod+:} false; then :
13592  $as_echo_n "(cached) " >&6
13593else
13594  lt_cv_apple_cc_single_mod=no
13595      if test -z "${LT_MULTI_MODULE}"; then
13596	# By default we will add the -single_module flag. You can override
13597	# by either setting the environment variable LT_MULTI_MODULE
13598	# non-empty at configure time, or by adding -multi_module to the
13599	# link flags.
13600	rm -rf libconftest.dylib*
13601	echo "int foo(void){return 1;}" > conftest.c
13602	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13603-dynamiclib -Wl,-single_module conftest.c" >&5
13604	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13605	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13606        _lt_result=$?
13607	# If there is a non-empty error log, and "single_module"
13608	# appears in it, assume the flag caused a linker warning
13609        if test -s conftest.err && $GREP single_module conftest.err; then
13610	  cat conftest.err >&5
13611	# Otherwise, if the output was created with a 0 exit code from
13612	# the compiler, it worked.
13613	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13614	  lt_cv_apple_cc_single_mod=yes
13615	else
13616	  cat conftest.err >&5
13617	fi
13618	rm -rf libconftest.dylib*
13619	rm -f conftest.*
13620      fi
13621fi
13622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13623$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13624
13625    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13626$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13627if ${lt_cv_ld_exported_symbols_list+:} false; then :
13628  $as_echo_n "(cached) " >&6
13629else
13630  lt_cv_ld_exported_symbols_list=no
13631      save_LDFLAGS=$LDFLAGS
13632      echo "_main" > conftest.sym
13633      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13634      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635/* end confdefs.h.  */
13636
13637int
13638main ()
13639{
13640
13641  ;
13642  return 0;
13643}
13644_ACEOF
13645if ac_fn_c_try_link "$LINENO"; then :
13646  lt_cv_ld_exported_symbols_list=yes
13647else
13648  lt_cv_ld_exported_symbols_list=no
13649fi
13650rm -f core conftest.err conftest.$ac_objext \
13651    conftest$ac_exeext conftest.$ac_ext
13652	LDFLAGS="$save_LDFLAGS"
13653
13654fi
13655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13656$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13657
13658    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13659$as_echo_n "checking for -force_load linker flag... " >&6; }
13660if ${lt_cv_ld_force_load+:} false; then :
13661  $as_echo_n "(cached) " >&6
13662else
13663  lt_cv_ld_force_load=no
13664      cat > conftest.c << _LT_EOF
13665int forced_loaded() { return 2;}
13666_LT_EOF
13667      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13668      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13669      echo "$AR cru libconftest.a conftest.o" >&5
13670      $AR cru libconftest.a conftest.o 2>&5
13671      echo "$RANLIB libconftest.a" >&5
13672      $RANLIB libconftest.a 2>&5
13673      cat > conftest.c << _LT_EOF
13674int main() { return 0;}
13675_LT_EOF
13676      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13677      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13678      _lt_result=$?
13679      if test -s conftest.err && $GREP force_load conftest.err; then
13680	cat conftest.err >&5
13681      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13682	lt_cv_ld_force_load=yes
13683      else
13684	cat conftest.err >&5
13685      fi
13686        rm -f conftest.err libconftest.a conftest conftest.c
13687        rm -rf conftest.dSYM
13688
13689fi
13690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13691$as_echo "$lt_cv_ld_force_load" >&6; }
13692    case $host_os in
13693    rhapsody* | darwin1.[012])
13694      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13695    darwin1.*)
13696      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13697    darwin*) # darwin 5.x on
13698      # if running on 10.5 or later, the deployment target defaults
13699      # to the OS version, if on x86, and 10.4, the deployment
13700      # target defaults to 10.4. Don't you love it?
13701      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13702	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13703	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13704	10.[012]*)
13705	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13706	10.*)
13707	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13708      esac
13709    ;;
13710  esac
13711    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13712      _lt_dar_single_mod='$single_module'
13713    fi
13714    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13715      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13716    else
13717      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13718    fi
13719    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13720      _lt_dsymutil='~$DSYMUTIL $lib || :'
13721    else
13722      _lt_dsymutil=
13723    fi
13724    ;;
13725  esac
13726
13727for ac_header in dlfcn.h
13728do :
13729  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13730"
13731if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13732  cat >>confdefs.h <<_ACEOF
13733#define HAVE_DLFCN_H 1
13734_ACEOF
13735
13736fi
13737
13738done
13739
13740
13741
13742
13743
13744# Set options
13745
13746
13747
13748        enable_dlopen=no
13749
13750
13751
13752            # Check whether --enable-shared was given.
13753if test "${enable_shared+set}" = set; then :
13754  enableval=$enable_shared; p=${PACKAGE-default}
13755    case $enableval in
13756    yes) enable_shared=yes ;;
13757    no) enable_shared=no ;;
13758    *)
13759      enable_shared=no
13760      # Look at the argument we got.  We use all the common list separators.
13761      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13762      for pkg in $enableval; do
13763	IFS="$lt_save_ifs"
13764	if test "X$pkg" = "X$p"; then
13765	  enable_shared=yes
13766	fi
13767      done
13768      IFS="$lt_save_ifs"
13769      ;;
13770    esac
13771else
13772  enable_shared=yes
13773fi
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783  # Check whether --enable-static was given.
13784if test "${enable_static+set}" = set; then :
13785  enableval=$enable_static; p=${PACKAGE-default}
13786    case $enableval in
13787    yes) enable_static=yes ;;
13788    no) enable_static=no ;;
13789    *)
13790     enable_static=no
13791      # Look at the argument we got.  We use all the common list separators.
13792      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13793      for pkg in $enableval; do
13794	IFS="$lt_save_ifs"
13795	if test "X$pkg" = "X$p"; then
13796	  enable_static=yes
13797	fi
13798      done
13799      IFS="$lt_save_ifs"
13800      ;;
13801    esac
13802else
13803  enable_static=yes
13804fi
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815# Check whether --with-pic was given.
13816if test "${with_pic+set}" = set; then :
13817  withval=$with_pic; lt_p=${PACKAGE-default}
13818    case $withval in
13819    yes|no) pic_mode=$withval ;;
13820    *)
13821      pic_mode=default
13822      # Look at the argument we got.  We use all the common list separators.
13823      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13824      for lt_pkg in $withval; do
13825	IFS="$lt_save_ifs"
13826	if test "X$lt_pkg" = "X$lt_p"; then
13827	  pic_mode=yes
13828	fi
13829      done
13830      IFS="$lt_save_ifs"
13831      ;;
13832    esac
13833else
13834  pic_mode=default
13835fi
13836
13837
13838test -z "$pic_mode" && pic_mode=default
13839
13840
13841
13842
13843
13844
13845
13846  # Check whether --enable-fast-install was given.
13847if test "${enable_fast_install+set}" = set; then :
13848  enableval=$enable_fast_install; p=${PACKAGE-default}
13849    case $enableval in
13850    yes) enable_fast_install=yes ;;
13851    no) enable_fast_install=no ;;
13852    *)
13853      enable_fast_install=no
13854      # Look at the argument we got.  We use all the common list separators.
13855      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13856      for pkg in $enableval; do
13857	IFS="$lt_save_ifs"
13858	if test "X$pkg" = "X$p"; then
13859	  enable_fast_install=yes
13860	fi
13861      done
13862      IFS="$lt_save_ifs"
13863      ;;
13864    esac
13865else
13866  enable_fast_install=yes
13867fi
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879# This can be used to rebuild libtool when needed
13880LIBTOOL_DEPS="$ltmain"
13881
13882# Always use our own libtool.
13883LIBTOOL='$(SHELL) $(apr_builddir)/libtool'
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914test -z "$LN_S" && LN_S="ln -s"
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929if test -n "${ZSH_VERSION+set}" ; then
13930   setopt NO_GLOB_SUBST
13931fi
13932
13933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13934$as_echo_n "checking for objdir... " >&6; }
13935if ${lt_cv_objdir+:} false; then :
13936  $as_echo_n "(cached) " >&6
13937else
13938  rm -f .libs 2>/dev/null
13939mkdir .libs 2>/dev/null
13940if test -d .libs; then
13941  lt_cv_objdir=.libs
13942else
13943  # MS-DOS does not allow filenames that begin with a dot.
13944  lt_cv_objdir=_libs
13945fi
13946rmdir .libs 2>/dev/null
13947fi
13948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13949$as_echo "$lt_cv_objdir" >&6; }
13950objdir=$lt_cv_objdir
13951
13952
13953
13954
13955
13956cat >>confdefs.h <<_ACEOF
13957#define LT_OBJDIR "$lt_cv_objdir/"
13958_ACEOF
13959
13960
13961
13962
13963case $host_os in
13964aix3*)
13965  # AIX sometimes has problems with the GCC collect2 program.  For some
13966  # reason, if we set the COLLECT_NAMES environment variable, the problems
13967  # vanish in a puff of smoke.
13968  if test "X${COLLECT_NAMES+set}" != Xset; then
13969    COLLECT_NAMES=
13970    export COLLECT_NAMES
13971  fi
13972  ;;
13973esac
13974
13975# Global variables:
13976ofile=libtool
13977can_build_shared=yes
13978
13979# All known linkers require a `.a' archive for static linking (except MSVC,
13980# which needs '.lib').
13981libext=a
13982
13983with_gnu_ld="$lt_cv_prog_gnu_ld"
13984
13985old_CC="$CC"
13986old_CFLAGS="$CFLAGS"
13987
13988# Set sane defaults for various variables
13989test -z "$CC" && CC=cc
13990test -z "$LTCC" && LTCC=$CC
13991test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13992test -z "$LD" && LD=ld
13993test -z "$ac_objext" && ac_objext=o
13994
13995for cc_temp in $compiler""; do
13996  case $cc_temp in
13997    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13998    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13999    \-*) ;;
14000    *) break;;
14001  esac
14002done
14003cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14004
14005
14006# Only perform the check for file, if the check method requires it
14007test -z "$MAGIC_CMD" && MAGIC_CMD=file
14008case $deplibs_check_method in
14009file_magic*)
14010  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14011    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14012$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14013if ${lt_cv_path_MAGIC_CMD+:} false; then :
14014  $as_echo_n "(cached) " >&6
14015else
14016  case $MAGIC_CMD in
14017[\\/*] |  ?:[\\/]*)
14018  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14019  ;;
14020*)
14021  lt_save_MAGIC_CMD="$MAGIC_CMD"
14022  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14023  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14024  for ac_dir in $ac_dummy; do
14025    IFS="$lt_save_ifs"
14026    test -z "$ac_dir" && ac_dir=.
14027    if test -f $ac_dir/${ac_tool_prefix}file; then
14028      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14029      if test -n "$file_magic_test_file"; then
14030	case $deplibs_check_method in
14031	"file_magic "*)
14032	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14033	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14034	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14035	    $EGREP "$file_magic_regex" > /dev/null; then
14036	    :
14037	  else
14038	    cat <<_LT_EOF 1>&2
14039
14040*** Warning: the command libtool uses to detect shared libraries,
14041*** $file_magic_cmd, produces output that libtool cannot recognize.
14042*** The result is that libtool may fail to recognize shared libraries
14043*** as such.  This will affect the creation of libtool libraries that
14044*** depend on shared libraries, but programs linked with such libtool
14045*** libraries will work regardless of this problem.  Nevertheless, you
14046*** may want to report the problem to your system manager and/or to
14047*** bug-libtool@gnu.org
14048
14049_LT_EOF
14050	  fi ;;
14051	esac
14052      fi
14053      break
14054    fi
14055  done
14056  IFS="$lt_save_ifs"
14057  MAGIC_CMD="$lt_save_MAGIC_CMD"
14058  ;;
14059esac
14060fi
14061
14062MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14063if test -n "$MAGIC_CMD"; then
14064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14065$as_echo "$MAGIC_CMD" >&6; }
14066else
14067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14068$as_echo "no" >&6; }
14069fi
14070
14071
14072
14073
14074
14075if test -z "$lt_cv_path_MAGIC_CMD"; then
14076  if test -n "$ac_tool_prefix"; then
14077    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14078$as_echo_n "checking for file... " >&6; }
14079if ${lt_cv_path_MAGIC_CMD+:} false; then :
14080  $as_echo_n "(cached) " >&6
14081else
14082  case $MAGIC_CMD in
14083[\\/*] |  ?:[\\/]*)
14084  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14085  ;;
14086*)
14087  lt_save_MAGIC_CMD="$MAGIC_CMD"
14088  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14089  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14090  for ac_dir in $ac_dummy; do
14091    IFS="$lt_save_ifs"
14092    test -z "$ac_dir" && ac_dir=.
14093    if test -f $ac_dir/file; then
14094      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14095      if test -n "$file_magic_test_file"; then
14096	case $deplibs_check_method in
14097	"file_magic "*)
14098	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14099	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14100	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14101	    $EGREP "$file_magic_regex" > /dev/null; then
14102	    :
14103	  else
14104	    cat <<_LT_EOF 1>&2
14105
14106*** Warning: the command libtool uses to detect shared libraries,
14107*** $file_magic_cmd, produces output that libtool cannot recognize.
14108*** The result is that libtool may fail to recognize shared libraries
14109*** as such.  This will affect the creation of libtool libraries that
14110*** depend on shared libraries, but programs linked with such libtool
14111*** libraries will work regardless of this problem.  Nevertheless, you
14112*** may want to report the problem to your system manager and/or to
14113*** bug-libtool@gnu.org
14114
14115_LT_EOF
14116	  fi ;;
14117	esac
14118      fi
14119      break
14120    fi
14121  done
14122  IFS="$lt_save_ifs"
14123  MAGIC_CMD="$lt_save_MAGIC_CMD"
14124  ;;
14125esac
14126fi
14127
14128MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14129if test -n "$MAGIC_CMD"; then
14130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14131$as_echo "$MAGIC_CMD" >&6; }
14132else
14133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14134$as_echo "no" >&6; }
14135fi
14136
14137
14138  else
14139    MAGIC_CMD=:
14140  fi
14141fi
14142
14143  fi
14144  ;;
14145esac
14146
14147# Use C for the default configuration in the libtool script
14148
14149lt_save_CC="$CC"
14150ac_ext=c
14151ac_cpp='$CPP $CPPFLAGS'
14152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14154ac_compiler_gnu=$ac_cv_c_compiler_gnu
14155
14156
14157# Source file extension for C test sources.
14158ac_ext=c
14159
14160# Object file extension for compiled C test sources.
14161objext=o
14162objext=$objext
14163
14164# Code to be used in simple compile tests
14165lt_simple_compile_test_code="int some_variable = 0;"
14166
14167# Code to be used in simple link tests
14168lt_simple_link_test_code='int main(){return(0);}'
14169
14170
14171
14172
14173
14174
14175
14176# If no C compiler was specified, use CC.
14177LTCC=${LTCC-"$CC"}
14178
14179# If no C compiler flags were specified, use CFLAGS.
14180LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14181
14182# Allow CC to be a program name with arguments.
14183compiler=$CC
14184
14185# Save the default compiler, since it gets overwritten when the other
14186# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14187compiler_DEFAULT=$CC
14188
14189# save warnings/boilerplate of simple test code
14190ac_outfile=conftest.$ac_objext
14191echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14192eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14193_lt_compiler_boilerplate=`cat conftest.err`
14194$RM conftest*
14195
14196ac_outfile=conftest.$ac_objext
14197echo "$lt_simple_link_test_code" >conftest.$ac_ext
14198eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14199_lt_linker_boilerplate=`cat conftest.err`
14200$RM -r conftest*
14201
14202
14203## CAVEAT EMPTOR:
14204## There is no encapsulation within the following macros, do not change
14205## the running order or otherwise move them around unless you know exactly
14206## what you are doing...
14207if test -n "$compiler"; then
14208
14209lt_prog_compiler_no_builtin_flag=
14210
14211if test "$GCC" = yes; then
14212  case $cc_basename in
14213  nvcc*)
14214    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14215  *)
14216    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14217  esac
14218
14219  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14220$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14221if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14222  $as_echo_n "(cached) " >&6
14223else
14224  lt_cv_prog_compiler_rtti_exceptions=no
14225   ac_outfile=conftest.$ac_objext
14226   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14227   lt_compiler_flag="-fno-rtti -fno-exceptions"
14228   # Insert the option either (1) after the last *FLAGS variable, or
14229   # (2) before a word containing "conftest.", or (3) at the end.
14230   # Note that $ac_compile itself does not contain backslashes and begins
14231   # with a dollar sign (not a hyphen), so the echo should work correctly.
14232   # The option is referenced via a variable to avoid confusing sed.
14233   lt_compile=`echo "$ac_compile" | $SED \
14234   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14235   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14236   -e 's:$: $lt_compiler_flag:'`
14237   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14238   (eval "$lt_compile" 2>conftest.err)
14239   ac_status=$?
14240   cat conftest.err >&5
14241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242   if (exit $ac_status) && test -s "$ac_outfile"; then
14243     # The compiler can only warn and ignore the option if not recognized
14244     # So say no if there are warnings other than the usual output.
14245     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14246     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14247     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14248       lt_cv_prog_compiler_rtti_exceptions=yes
14249     fi
14250   fi
14251   $RM conftest*
14252
14253fi
14254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14255$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14256
14257if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14258    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14259else
14260    :
14261fi
14262
14263fi
14264
14265
14266
14267
14268
14269
14270  lt_prog_compiler_wl=
14271lt_prog_compiler_pic=
14272lt_prog_compiler_static=
14273
14274
14275  if test "$GCC" = yes; then
14276    lt_prog_compiler_wl='-Wl,'
14277    lt_prog_compiler_static='-static'
14278
14279    case $host_os in
14280      aix*)
14281      # All AIX code is PIC.
14282      if test "$host_cpu" = ia64; then
14283	# AIX 5 now supports IA64 processor
14284	lt_prog_compiler_static='-Bstatic'
14285      fi
14286      ;;
14287
14288    amigaos*)
14289      case $host_cpu in
14290      powerpc)
14291            # see comment about AmigaOS4 .so support
14292            lt_prog_compiler_pic='-fPIC'
14293        ;;
14294      m68k)
14295            # FIXME: we need at least 68020 code to build shared libraries, but
14296            # adding the `-m68020' flag to GCC prevents building anything better,
14297            # like `-m68040'.
14298            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14299        ;;
14300      esac
14301      ;;
14302
14303    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14304      # PIC is the default for these OSes.
14305      ;;
14306
14307    mingw* | cygwin* | pw32* | os2* | cegcc*)
14308      # This hack is so that the source file can tell whether it is being
14309      # built for inclusion in a dll (and should export symbols for example).
14310      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14311      # (--disable-auto-import) libraries
14312      lt_prog_compiler_pic='-DDLL_EXPORT'
14313      ;;
14314
14315    darwin* | rhapsody*)
14316      # PIC is the default on this platform
14317      # Common symbols not allowed in MH_DYLIB files
14318      lt_prog_compiler_pic='-fno-common'
14319      ;;
14320
14321    haiku*)
14322      # PIC is the default for Haiku.
14323      # The "-static" flag exists, but is broken.
14324      lt_prog_compiler_static=
14325      ;;
14326
14327    hpux*)
14328      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14329      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14330      # sets the default TLS model and affects inlining.
14331      case $host_cpu in
14332      hppa*64*)
14333	# +Z the default
14334	;;
14335      *)
14336	lt_prog_compiler_pic='-fPIC'
14337	;;
14338      esac
14339      ;;
14340
14341    interix[3-9]*)
14342      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14343      # Instead, we relocate shared libraries at runtime.
14344      ;;
14345
14346    msdosdjgpp*)
14347      # Just because we use GCC doesn't mean we suddenly get shared libraries
14348      # on systems that don't support them.
14349      lt_prog_compiler_can_build_shared=no
14350      enable_shared=no
14351      ;;
14352
14353    *nto* | *qnx*)
14354      # QNX uses GNU C++, but need to define -shared option too, otherwise
14355      # it will coredump.
14356      lt_prog_compiler_pic='-fPIC -shared'
14357      ;;
14358
14359    sysv4*MP*)
14360      if test -d /usr/nec; then
14361	lt_prog_compiler_pic=-Kconform_pic
14362      fi
14363      ;;
14364
14365    *)
14366      lt_prog_compiler_pic='-fPIC'
14367      ;;
14368    esac
14369
14370    case $cc_basename in
14371    nvcc*) # Cuda Compiler Driver 2.2
14372      lt_prog_compiler_wl='-Xlinker '
14373      if test -n "$lt_prog_compiler_pic"; then
14374        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14375      fi
14376      ;;
14377    esac
14378  else
14379    # PORTME Check for flag to pass linker flags through the system compiler.
14380    case $host_os in
14381    aix*)
14382      lt_prog_compiler_wl='-Wl,'
14383      if test "$host_cpu" = ia64; then
14384	# AIX 5 now supports IA64 processor
14385	lt_prog_compiler_static='-Bstatic'
14386      else
14387	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14388      fi
14389      ;;
14390
14391    mingw* | cygwin* | pw32* | os2* | cegcc*)
14392      # This hack is so that the source file can tell whether it is being
14393      # built for inclusion in a dll (and should export symbols for example).
14394      lt_prog_compiler_pic='-DDLL_EXPORT'
14395      ;;
14396
14397    hpux9* | hpux10* | hpux11*)
14398      lt_prog_compiler_wl='-Wl,'
14399      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14400      # not for PA HP-UX.
14401      case $host_cpu in
14402      hppa*64*|ia64*)
14403	# +Z the default
14404	;;
14405      *)
14406	lt_prog_compiler_pic='+Z'
14407	;;
14408      esac
14409      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14410      lt_prog_compiler_static='${wl}-a ${wl}archive'
14411      ;;
14412
14413    irix5* | irix6* | nonstopux*)
14414      lt_prog_compiler_wl='-Wl,'
14415      # PIC (with -KPIC) is the default.
14416      lt_prog_compiler_static='-non_shared'
14417      ;;
14418
14419    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14420      case $cc_basename in
14421      # old Intel for x86_64 which still supported -KPIC.
14422      ecc*)
14423	lt_prog_compiler_wl='-Wl,'
14424	lt_prog_compiler_pic='-KPIC'
14425	lt_prog_compiler_static='-static'
14426        ;;
14427      # icc used to be incompatible with GCC.
14428      # ICC 10 doesn't accept -KPIC any more.
14429      icc* | ifort*)
14430	lt_prog_compiler_wl='-Wl,'
14431	lt_prog_compiler_pic='-fPIC'
14432	lt_prog_compiler_static='-static'
14433        ;;
14434      # Lahey Fortran 8.1.
14435      lf95*)
14436	lt_prog_compiler_wl='-Wl,'
14437	lt_prog_compiler_pic='--shared'
14438	lt_prog_compiler_static='--static'
14439	;;
14440      nagfor*)
14441	# NAG Fortran compiler
14442	lt_prog_compiler_wl='-Wl,-Wl,,'
14443	lt_prog_compiler_pic='-PIC'
14444	lt_prog_compiler_static='-Bstatic'
14445	;;
14446      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14447        # Portland Group compilers (*not* the Pentium gcc compiler,
14448	# which looks to be a dead project)
14449	lt_prog_compiler_wl='-Wl,'
14450	lt_prog_compiler_pic='-fpic'
14451	lt_prog_compiler_static='-Bstatic'
14452        ;;
14453      ccc*)
14454        lt_prog_compiler_wl='-Wl,'
14455        # All Alpha code is PIC.
14456        lt_prog_compiler_static='-non_shared'
14457        ;;
14458      xl* | bgxl* | bgf* | mpixl*)
14459	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14460	lt_prog_compiler_wl='-Wl,'
14461	lt_prog_compiler_pic='-qpic'
14462	lt_prog_compiler_static='-qstaticlink'
14463	;;
14464      *)
14465	case `$CC -V 2>&1 | sed 5q` in
14466	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14467	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14468	  lt_prog_compiler_pic='-KPIC'
14469	  lt_prog_compiler_static='-Bstatic'
14470	  lt_prog_compiler_wl=''
14471	  ;;
14472	*Sun\ F* | *Sun*Fortran*)
14473	  lt_prog_compiler_pic='-KPIC'
14474	  lt_prog_compiler_static='-Bstatic'
14475	  lt_prog_compiler_wl='-Qoption ld '
14476	  ;;
14477	*Sun\ C*)
14478	  # Sun C 5.9
14479	  lt_prog_compiler_pic='-KPIC'
14480	  lt_prog_compiler_static='-Bstatic'
14481	  lt_prog_compiler_wl='-Wl,'
14482	  ;;
14483        *Intel*\ [CF]*Compiler*)
14484	  lt_prog_compiler_wl='-Wl,'
14485	  lt_prog_compiler_pic='-fPIC'
14486	  lt_prog_compiler_static='-static'
14487	  ;;
14488	*Portland\ Group*)
14489	  lt_prog_compiler_wl='-Wl,'
14490	  lt_prog_compiler_pic='-fpic'
14491	  lt_prog_compiler_static='-Bstatic'
14492	  ;;
14493	esac
14494	;;
14495      esac
14496      ;;
14497
14498    newsos6)
14499      lt_prog_compiler_pic='-KPIC'
14500      lt_prog_compiler_static='-Bstatic'
14501      ;;
14502
14503    *nto* | *qnx*)
14504      # QNX uses GNU C++, but need to define -shared option too, otherwise
14505      # it will coredump.
14506      lt_prog_compiler_pic='-fPIC -shared'
14507      ;;
14508
14509    osf3* | osf4* | osf5*)
14510      lt_prog_compiler_wl='-Wl,'
14511      # All OSF/1 code is PIC.
14512      lt_prog_compiler_static='-non_shared'
14513      ;;
14514
14515    rdos*)
14516      lt_prog_compiler_static='-non_shared'
14517      ;;
14518
14519    solaris*)
14520      lt_prog_compiler_pic='-KPIC'
14521      lt_prog_compiler_static='-Bstatic'
14522      case $cc_basename in
14523      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14524	lt_prog_compiler_wl='-Qoption ld ';;
14525      *)
14526	lt_prog_compiler_wl='-Wl,';;
14527      esac
14528      ;;
14529
14530    sunos4*)
14531      lt_prog_compiler_wl='-Qoption ld '
14532      lt_prog_compiler_pic='-PIC'
14533      lt_prog_compiler_static='-Bstatic'
14534      ;;
14535
14536    sysv4 | sysv4.2uw2* | sysv4.3*)
14537      lt_prog_compiler_wl='-Wl,'
14538      lt_prog_compiler_pic='-KPIC'
14539      lt_prog_compiler_static='-Bstatic'
14540      ;;
14541
14542    sysv4*MP*)
14543      if test -d /usr/nec ;then
14544	lt_prog_compiler_pic='-Kconform_pic'
14545	lt_prog_compiler_static='-Bstatic'
14546      fi
14547      ;;
14548
14549    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14550      lt_prog_compiler_wl='-Wl,'
14551      lt_prog_compiler_pic='-KPIC'
14552      lt_prog_compiler_static='-Bstatic'
14553      ;;
14554
14555    unicos*)
14556      lt_prog_compiler_wl='-Wl,'
14557      lt_prog_compiler_can_build_shared=no
14558      ;;
14559
14560    uts4*)
14561      lt_prog_compiler_pic='-pic'
14562      lt_prog_compiler_static='-Bstatic'
14563      ;;
14564
14565    *)
14566      lt_prog_compiler_can_build_shared=no
14567      ;;
14568    esac
14569  fi
14570
14571case $host_os in
14572  # For platforms which do not support PIC, -DPIC is meaningless:
14573  *djgpp*)
14574    lt_prog_compiler_pic=
14575    ;;
14576  *)
14577    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14578    ;;
14579esac
14580
14581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14582$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14583if ${lt_cv_prog_compiler_pic+:} false; then :
14584  $as_echo_n "(cached) " >&6
14585else
14586  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14587fi
14588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14589$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14590lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14591
14592#
14593# Check to make sure the PIC flag actually works.
14594#
14595if test -n "$lt_prog_compiler_pic"; then
14596  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14597$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14598if ${lt_cv_prog_compiler_pic_works+:} false; then :
14599  $as_echo_n "(cached) " >&6
14600else
14601  lt_cv_prog_compiler_pic_works=no
14602   ac_outfile=conftest.$ac_objext
14603   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14604   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14605   # Insert the option either (1) after the last *FLAGS variable, or
14606   # (2) before a word containing "conftest.", or (3) at the end.
14607   # Note that $ac_compile itself does not contain backslashes and begins
14608   # with a dollar sign (not a hyphen), so the echo should work correctly.
14609   # The option is referenced via a variable to avoid confusing sed.
14610   lt_compile=`echo "$ac_compile" | $SED \
14611   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14612   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14613   -e 's:$: $lt_compiler_flag:'`
14614   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14615   (eval "$lt_compile" 2>conftest.err)
14616   ac_status=$?
14617   cat conftest.err >&5
14618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619   if (exit $ac_status) && test -s "$ac_outfile"; then
14620     # The compiler can only warn and ignore the option if not recognized
14621     # So say no if there are warnings other than the usual output.
14622     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14623     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14624     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14625       lt_cv_prog_compiler_pic_works=yes
14626     fi
14627   fi
14628   $RM conftest*
14629
14630fi
14631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14632$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14633
14634if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14635    case $lt_prog_compiler_pic in
14636     "" | " "*) ;;
14637     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14638     esac
14639else
14640    lt_prog_compiler_pic=
14641     lt_prog_compiler_can_build_shared=no
14642fi
14643
14644fi
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656#
14657# Check to make sure the static flag actually works.
14658#
14659wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14661$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14662if ${lt_cv_prog_compiler_static_works+:} false; then :
14663  $as_echo_n "(cached) " >&6
14664else
14665  lt_cv_prog_compiler_static_works=no
14666   save_LDFLAGS="$LDFLAGS"
14667   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14668   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14669   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14670     # The linker can only warn and ignore the option if not recognized
14671     # So say no if there are warnings
14672     if test -s conftest.err; then
14673       # Append any errors to the config.log.
14674       cat conftest.err 1>&5
14675       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14676       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14677       if diff conftest.exp conftest.er2 >/dev/null; then
14678         lt_cv_prog_compiler_static_works=yes
14679       fi
14680     else
14681       lt_cv_prog_compiler_static_works=yes
14682     fi
14683   fi
14684   $RM -r conftest*
14685   LDFLAGS="$save_LDFLAGS"
14686
14687fi
14688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14689$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14690
14691if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14692    :
14693else
14694    lt_prog_compiler_static=
14695fi
14696
14697
14698
14699
14700
14701
14702
14703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14704$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14705if ${lt_cv_prog_compiler_c_o+:} false; then :
14706  $as_echo_n "(cached) " >&6
14707else
14708  lt_cv_prog_compiler_c_o=no
14709   $RM -r conftest 2>/dev/null
14710   mkdir conftest
14711   cd conftest
14712   mkdir out
14713   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14714
14715   lt_compiler_flag="-o out/conftest2.$ac_objext"
14716   # Insert the option either (1) after the last *FLAGS variable, or
14717   # (2) before a word containing "conftest.", or (3) at the end.
14718   # Note that $ac_compile itself does not contain backslashes and begins
14719   # with a dollar sign (not a hyphen), so the echo should work correctly.
14720   lt_compile=`echo "$ac_compile" | $SED \
14721   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14722   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14723   -e 's:$: $lt_compiler_flag:'`
14724   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14725   (eval "$lt_compile" 2>out/conftest.err)
14726   ac_status=$?
14727   cat out/conftest.err >&5
14728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14730   then
14731     # The compiler can only warn and ignore the option if not recognized
14732     # So say no if there are warnings
14733     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14734     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14735     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14736       lt_cv_prog_compiler_c_o=yes
14737     fi
14738   fi
14739   chmod u+w . 2>&5
14740   $RM conftest*
14741   # SGI C++ compiler will create directory out/ii_files/ for
14742   # template instantiation
14743   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14744   $RM out/* && rmdir out
14745   cd ..
14746   $RM -r conftest
14747   $RM conftest*
14748
14749fi
14750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14751$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14752
14753
14754
14755
14756
14757
14758  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14759$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14760if ${lt_cv_prog_compiler_c_o+:} false; then :
14761  $as_echo_n "(cached) " >&6
14762else
14763  lt_cv_prog_compiler_c_o=no
14764   $RM -r conftest 2>/dev/null
14765   mkdir conftest
14766   cd conftest
14767   mkdir out
14768   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14769
14770   lt_compiler_flag="-o out/conftest2.$ac_objext"
14771   # Insert the option either (1) after the last *FLAGS variable, or
14772   # (2) before a word containing "conftest.", or (3) at the end.
14773   # Note that $ac_compile itself does not contain backslashes and begins
14774   # with a dollar sign (not a hyphen), so the echo should work correctly.
14775   lt_compile=`echo "$ac_compile" | $SED \
14776   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14777   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14778   -e 's:$: $lt_compiler_flag:'`
14779   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14780   (eval "$lt_compile" 2>out/conftest.err)
14781   ac_status=$?
14782   cat out/conftest.err >&5
14783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14785   then
14786     # The compiler can only warn and ignore the option if not recognized
14787     # So say no if there are warnings
14788     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14789     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14790     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14791       lt_cv_prog_compiler_c_o=yes
14792     fi
14793   fi
14794   chmod u+w . 2>&5
14795   $RM conftest*
14796   # SGI C++ compiler will create directory out/ii_files/ for
14797   # template instantiation
14798   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14799   $RM out/* && rmdir out
14800   cd ..
14801   $RM -r conftest
14802   $RM conftest*
14803
14804fi
14805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14806$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14807
14808
14809
14810
14811hard_links="nottested"
14812if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14813  # do not overwrite the value of need_locks provided by the user
14814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14815$as_echo_n "checking if we can lock with hard links... " >&6; }
14816  hard_links=yes
14817  $RM conftest*
14818  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14819  touch conftest.a
14820  ln conftest.a conftest.b 2>&5 || hard_links=no
14821  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14823$as_echo "$hard_links" >&6; }
14824  if test "$hard_links" = no; then
14825    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14826$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14827    need_locks=warn
14828  fi
14829else
14830  need_locks=no
14831fi
14832
14833
14834
14835
14836
14837
14838  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14839$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14840
14841  runpath_var=
14842  allow_undefined_flag=
14843  always_export_symbols=no
14844  archive_cmds=
14845  archive_expsym_cmds=
14846  compiler_needs_object=no
14847  enable_shared_with_static_runtimes=no
14848  export_dynamic_flag_spec=
14849  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14850  hardcode_automatic=no
14851  hardcode_direct=no
14852  hardcode_direct_absolute=no
14853  hardcode_libdir_flag_spec=
14854  hardcode_libdir_separator=
14855  hardcode_minus_L=no
14856  hardcode_shlibpath_var=unsupported
14857  inherit_rpath=no
14858  link_all_deplibs=unknown
14859  module_cmds=
14860  module_expsym_cmds=
14861  old_archive_from_new_cmds=
14862  old_archive_from_expsyms_cmds=
14863  thread_safe_flag_spec=
14864  whole_archive_flag_spec=
14865  # include_expsyms should be a list of space-separated symbols to be *always*
14866  # included in the symbol list
14867  include_expsyms=
14868  # exclude_expsyms can be an extended regexp of symbols to exclude
14869  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14870  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14871  # as well as any symbol that contains `d'.
14872  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14873  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14874  # platforms (ab)use it in PIC code, but their linkers get confused if
14875  # the symbol is explicitly referenced.  Since portable code cannot
14876  # rely on this symbol name, it's probably fine to never include it in
14877  # preloaded symbol tables.
14878  # Exclude shared library initialization/finalization symbols.
14879  extract_expsyms_cmds=
14880
14881  case $host_os in
14882  cygwin* | mingw* | pw32* | cegcc*)
14883    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14884    # When not using gcc, we currently assume that we are using
14885    # Microsoft Visual C++.
14886    if test "$GCC" != yes; then
14887      with_gnu_ld=no
14888    fi
14889    ;;
14890  interix*)
14891    # we just hope/assume this is gcc and not c89 (= MSVC++)
14892    with_gnu_ld=yes
14893    ;;
14894  openbsd*)
14895    with_gnu_ld=no
14896    ;;
14897  esac
14898
14899  ld_shlibs=yes
14900
14901  # On some targets, GNU ld is compatible enough with the native linker
14902  # that we're better off using the native interface for both.
14903  lt_use_gnu_ld_interface=no
14904  if test "$with_gnu_ld" = yes; then
14905    case $host_os in
14906      aix*)
14907	# The AIX port of GNU ld has always aspired to compatibility
14908	# with the native linker.  However, as the warning in the GNU ld
14909	# block says, versions before 2.19.5* couldn't really create working
14910	# shared libraries, regardless of the interface used.
14911	case `$LD -v 2>&1` in
14912	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14913	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14914	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14915	  *)
14916	    lt_use_gnu_ld_interface=yes
14917	    ;;
14918	esac
14919	;;
14920      *)
14921	lt_use_gnu_ld_interface=yes
14922	;;
14923    esac
14924  fi
14925
14926  if test "$lt_use_gnu_ld_interface" = yes; then
14927    # If archive_cmds runs LD, not CC, wlarc should be empty
14928    wlarc='${wl}'
14929
14930    # Set some defaults for GNU ld with shared library support. These
14931    # are reset later if shared libraries are not supported. Putting them
14932    # here allows them to be overridden if necessary.
14933    runpath_var=LD_RUN_PATH
14934    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14935    export_dynamic_flag_spec='${wl}--export-dynamic'
14936    # ancient GNU ld didn't support --whole-archive et. al.
14937    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14938      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14939    else
14940      whole_archive_flag_spec=
14941    fi
14942    supports_anon_versioning=no
14943    case `$LD -v 2>&1` in
14944      *GNU\ gold*) supports_anon_versioning=yes ;;
14945      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14946      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14947      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14948      *\ 2.11.*) ;; # other 2.11 versions
14949      *) supports_anon_versioning=yes ;;
14950    esac
14951
14952    # See if GNU ld supports shared libraries.
14953    case $host_os in
14954    aix[3-9]*)
14955      # On AIX/PPC, the GNU linker is very broken
14956      if test "$host_cpu" != ia64; then
14957	ld_shlibs=no
14958	cat <<_LT_EOF 1>&2
14959
14960*** Warning: the GNU linker, at least up to release 2.19, is reported
14961*** to be unable to reliably create shared libraries on AIX.
14962*** Therefore, libtool is disabling shared libraries support.  If you
14963*** really care for shared libraries, you may want to install binutils
14964*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14965*** You will then need to restart the configuration process.
14966
14967_LT_EOF
14968      fi
14969      ;;
14970
14971    amigaos*)
14972      case $host_cpu in
14973      powerpc)
14974            # see comment about AmigaOS4 .so support
14975            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14976            archive_expsym_cmds=''
14977        ;;
14978      m68k)
14979            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14980            hardcode_libdir_flag_spec='-L$libdir'
14981            hardcode_minus_L=yes
14982        ;;
14983      esac
14984      ;;
14985
14986    beos*)
14987      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14988	allow_undefined_flag=unsupported
14989	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14990	# support --undefined.  This deserves some investigation.  FIXME
14991	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14992      else
14993	ld_shlibs=no
14994      fi
14995      ;;
14996
14997    cygwin* | mingw* | pw32* | cegcc*)
14998      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14999      # as there is no search path for DLLs.
15000      hardcode_libdir_flag_spec='-L$libdir'
15001      export_dynamic_flag_spec='${wl}--export-all-symbols'
15002      allow_undefined_flag=unsupported
15003      always_export_symbols=no
15004      enable_shared_with_static_runtimes=yes
15005      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15006      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15007
15008      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15009        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15010	# If the export-symbols file already is a .def file (1st line
15011	# is EXPORTS), use it as is; otherwise, prepend...
15012	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15013	  cp $export_symbols $output_objdir/$soname.def;
15014	else
15015	  echo EXPORTS > $output_objdir/$soname.def;
15016	  cat $export_symbols >> $output_objdir/$soname.def;
15017	fi~
15018	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15019      else
15020	ld_shlibs=no
15021      fi
15022      ;;
15023
15024    haiku*)
15025      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15026      link_all_deplibs=yes
15027      ;;
15028
15029    interix[3-9]*)
15030      hardcode_direct=no
15031      hardcode_shlibpath_var=no
15032      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15033      export_dynamic_flag_spec='${wl}-E'
15034      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15035      # Instead, shared libraries are loaded at an image base (0x10000000 by
15036      # default) and relocated if they conflict, which is a slow very memory
15037      # consuming and fragmenting process.  To avoid this, we pick a random,
15038      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15039      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15040      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15041      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15042      ;;
15043
15044    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15045      tmp_diet=no
15046      if test "$host_os" = linux-dietlibc; then
15047	case $cc_basename in
15048	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15049	esac
15050      fi
15051      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15052	 && test "$tmp_diet" = no
15053      then
15054	tmp_addflag=' $pic_flag'
15055	tmp_sharedflag='-shared'
15056	case $cc_basename,$host_cpu in
15057        pgcc*)				# Portland Group C compiler
15058	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15059	  tmp_addflag=' $pic_flag'
15060	  ;;
15061	pgf77* | pgf90* | pgf95* | pgfortran*)
15062					# Portland Group f77 and f90 compilers
15063	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15064	  tmp_addflag=' $pic_flag -Mnomain' ;;
15065	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15066	  tmp_addflag=' -i_dynamic' ;;
15067	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15068	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15069	ifc* | ifort*)			# Intel Fortran compiler
15070	  tmp_addflag=' -nofor_main' ;;
15071	lf95*)				# Lahey Fortran 8.1
15072	  whole_archive_flag_spec=
15073	  tmp_sharedflag='--shared' ;;
15074	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15075	  tmp_sharedflag='-qmkshrobj'
15076	  tmp_addflag= ;;
15077	nvcc*)	# Cuda Compiler Driver 2.2
15078	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15079	  compiler_needs_object=yes
15080	  ;;
15081	esac
15082	case `$CC -V 2>&1 | sed 5q` in
15083	*Sun\ C*)			# Sun C 5.9
15084	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15085	  compiler_needs_object=yes
15086	  tmp_sharedflag='-G' ;;
15087	*Sun\ F*)			# Sun Fortran 8.3
15088	  tmp_sharedflag='-G' ;;
15089	esac
15090	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15091
15092        if test "x$supports_anon_versioning" = xyes; then
15093          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15094	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15095	    echo "local: *; };" >> $output_objdir/$libname.ver~
15096	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15097        fi
15098
15099	case $cc_basename in
15100	xlf* | bgf* | bgxlf* | mpixlf*)
15101	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15102	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15103	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15104	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15105	  if test "x$supports_anon_versioning" = xyes; then
15106	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15107	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15108	      echo "local: *; };" >> $output_objdir/$libname.ver~
15109	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15110	  fi
15111	  ;;
15112	esac
15113      else
15114        ld_shlibs=no
15115      fi
15116      ;;
15117
15118    netbsd*)
15119      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15120	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15121	wlarc=
15122      else
15123	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15124	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15125      fi
15126      ;;
15127
15128    solaris*)
15129      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15130	ld_shlibs=no
15131	cat <<_LT_EOF 1>&2
15132
15133*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15134*** create shared libraries on Solaris systems.  Therefore, libtool
15135*** is disabling shared libraries support.  We urge you to upgrade GNU
15136*** binutils to release 2.9.1 or newer.  Another option is to modify
15137*** your PATH or compiler configuration so that the native linker is
15138*** used, and then restart.
15139
15140_LT_EOF
15141      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15142	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15143	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15144      else
15145	ld_shlibs=no
15146      fi
15147      ;;
15148
15149    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15150      case `$LD -v 2>&1` in
15151        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15152	ld_shlibs=no
15153	cat <<_LT_EOF 1>&2
15154
15155*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15156*** reliably create shared libraries on SCO systems.  Therefore, libtool
15157*** is disabling shared libraries support.  We urge you to upgrade GNU
15158*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15159*** your PATH or compiler configuration so that the native linker is
15160*** used, and then restart.
15161
15162_LT_EOF
15163	;;
15164	*)
15165	  # For security reasons, it is highly recommended that you always
15166	  # use absolute paths for naming shared libraries, and exclude the
15167	  # DT_RUNPATH tag from executables and libraries.  But doing so
15168	  # requires that you compile everything twice, which is a pain.
15169	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15170	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15171	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15172	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15173	  else
15174	    ld_shlibs=no
15175	  fi
15176	;;
15177      esac
15178      ;;
15179
15180    sunos4*)
15181      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15182      wlarc=
15183      hardcode_direct=yes
15184      hardcode_shlibpath_var=no
15185      ;;
15186
15187    *)
15188      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15189	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15190	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15191      else
15192	ld_shlibs=no
15193      fi
15194      ;;
15195    esac
15196
15197    if test "$ld_shlibs" = no; then
15198      runpath_var=
15199      hardcode_libdir_flag_spec=
15200      export_dynamic_flag_spec=
15201      whole_archive_flag_spec=
15202    fi
15203  else
15204    # PORTME fill in a description of your system's linker (not GNU ld)
15205    case $host_os in
15206    aix3*)
15207      allow_undefined_flag=unsupported
15208      always_export_symbols=yes
15209      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15210      # Note: this linker hardcodes the directories in LIBPATH if there
15211      # are no directories specified by -L.
15212      hardcode_minus_L=yes
15213      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15214	# Neither direct hardcoding nor static linking is supported with a
15215	# broken collect2.
15216	hardcode_direct=unsupported
15217      fi
15218      ;;
15219
15220    aix[4-9]*)
15221      if test "$host_cpu" = ia64; then
15222	# On IA64, the linker does run time linking by default, so we don't
15223	# have to do anything special.
15224	aix_use_runtimelinking=no
15225	exp_sym_flag='-Bexport'
15226	no_entry_flag=""
15227      else
15228	# If we're using GNU nm, then we don't want the "-C" option.
15229	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15230	# Also, AIX nm treats weak defined symbols like other global
15231	# defined symbols, whereas GNU nm marks them as "W".
15232	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15233	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15234	else
15235	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15236	fi
15237	aix_use_runtimelinking=no
15238
15239	# Test if we are trying to use run time linking or normal
15240	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15241	# need to do runtime linking.
15242	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15243	  for ld_flag in $LDFLAGS; do
15244	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15245	    aix_use_runtimelinking=yes
15246	    break
15247	  fi
15248	  done
15249	  ;;
15250	esac
15251
15252	exp_sym_flag='-bexport'
15253	no_entry_flag='-bnoentry'
15254      fi
15255
15256      # When large executables or shared objects are built, AIX ld can
15257      # have problems creating the table of contents.  If linking a library
15258      # or program results in "error TOC overflow" add -mminimal-toc to
15259      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15260      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15261
15262      archive_cmds=''
15263      hardcode_direct=yes
15264      hardcode_direct_absolute=yes
15265      hardcode_libdir_separator=':'
15266      link_all_deplibs=yes
15267      file_list_spec='${wl}-f,'
15268
15269      if test "$GCC" = yes; then
15270	case $host_os in aix4.[012]|aix4.[012].*)
15271	# We only want to do this on AIX 4.2 and lower, the check
15272	# below for broken collect2 doesn't work under 4.3+
15273	  collect2name=`${CC} -print-prog-name=collect2`
15274	  if test -f "$collect2name" &&
15275	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15276	  then
15277	  # We have reworked collect2
15278	  :
15279	  else
15280	  # We have old collect2
15281	  hardcode_direct=unsupported
15282	  # It fails to find uninstalled libraries when the uninstalled
15283	  # path is not listed in the libpath.  Setting hardcode_minus_L
15284	  # to unsupported forces relinking
15285	  hardcode_minus_L=yes
15286	  hardcode_libdir_flag_spec='-L$libdir'
15287	  hardcode_libdir_separator=
15288	  fi
15289	  ;;
15290	esac
15291	shared_flag='-shared'
15292	if test "$aix_use_runtimelinking" = yes; then
15293	  shared_flag="$shared_flag "'${wl}-G'
15294	fi
15295      else
15296	# not using gcc
15297	if test "$host_cpu" = ia64; then
15298	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15299	# chokes on -Wl,-G. The following line is correct:
15300	  shared_flag='-G'
15301	else
15302	  if test "$aix_use_runtimelinking" = yes; then
15303	    shared_flag='${wl}-G'
15304	  else
15305	    shared_flag='${wl}-bM:SRE'
15306	  fi
15307	fi
15308      fi
15309
15310      export_dynamic_flag_spec='${wl}-bexpall'
15311      # It seems that -bexpall does not export symbols beginning with
15312      # underscore (_), so it is better to generate a list of symbols to export.
15313      always_export_symbols=yes
15314      if test "$aix_use_runtimelinking" = yes; then
15315	# Warning - without using the other runtime loading flags (-brtl),
15316	# -berok will link without error, but may produce a broken library.
15317	allow_undefined_flag='-berok'
15318        # Determine the default libpath from the value encoded in an
15319        # empty executable.
15320        if test "${lt_cv_aix_libpath+set}" = set; then
15321  aix_libpath=$lt_cv_aix_libpath
15322else
15323  if ${lt_cv_aix_libpath_+:} false; then :
15324  $as_echo_n "(cached) " >&6
15325else
15326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327/* end confdefs.h.  */
15328
15329int
15330main ()
15331{
15332
15333  ;
15334  return 0;
15335}
15336_ACEOF
15337if ac_fn_c_try_link "$LINENO"; then :
15338
15339  lt_aix_libpath_sed='
15340      /Import File Strings/,/^$/ {
15341	  /^0/ {
15342	      s/^0  *\([^ ]*\) *$/\1/
15343	      p
15344	  }
15345      }'
15346  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15347  # Check for a 64-bit object if we didn't find anything.
15348  if test -z "$lt_cv_aix_libpath_"; then
15349    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15350  fi
15351fi
15352rm -f core conftest.err conftest.$ac_objext \
15353    conftest$ac_exeext conftest.$ac_ext
15354  if test -z "$lt_cv_aix_libpath_"; then
15355    lt_cv_aix_libpath_="/usr/lib:/lib"
15356  fi
15357
15358fi
15359
15360  aix_libpath=$lt_cv_aix_libpath_
15361fi
15362
15363        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15364        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15365      else
15366	if test "$host_cpu" = ia64; then
15367	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15368	  allow_undefined_flag="-z nodefs"
15369	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15370	else
15371	 # Determine the default libpath from the value encoded in an
15372	 # empty executable.
15373	 if test "${lt_cv_aix_libpath+set}" = set; then
15374  aix_libpath=$lt_cv_aix_libpath
15375else
15376  if ${lt_cv_aix_libpath_+:} false; then :
15377  $as_echo_n "(cached) " >&6
15378else
15379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15380/* end confdefs.h.  */
15381
15382int
15383main ()
15384{
15385
15386  ;
15387  return 0;
15388}
15389_ACEOF
15390if ac_fn_c_try_link "$LINENO"; then :
15391
15392  lt_aix_libpath_sed='
15393      /Import File Strings/,/^$/ {
15394	  /^0/ {
15395	      s/^0  *\([^ ]*\) *$/\1/
15396	      p
15397	  }
15398      }'
15399  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15400  # Check for a 64-bit object if we didn't find anything.
15401  if test -z "$lt_cv_aix_libpath_"; then
15402    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15403  fi
15404fi
15405rm -f core conftest.err conftest.$ac_objext \
15406    conftest$ac_exeext conftest.$ac_ext
15407  if test -z "$lt_cv_aix_libpath_"; then
15408    lt_cv_aix_libpath_="/usr/lib:/lib"
15409  fi
15410
15411fi
15412
15413  aix_libpath=$lt_cv_aix_libpath_
15414fi
15415
15416	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15417	  # Warning - without using the other run time loading flags,
15418	  # -berok will link without error, but may produce a broken library.
15419	  no_undefined_flag=' ${wl}-bernotok'
15420	  allow_undefined_flag=' ${wl}-berok'
15421	  if test "$with_gnu_ld" = yes; then
15422	    # We only use this code for GNU lds that support --whole-archive.
15423	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15424	  else
15425	    # Exported symbols can be pulled into shared objects from archives
15426	    whole_archive_flag_spec='$convenience'
15427	  fi
15428	  archive_cmds_need_lc=yes
15429	  # This is similar to how AIX traditionally builds its shared libraries.
15430	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15431	fi
15432      fi
15433      ;;
15434
15435    amigaos*)
15436      case $host_cpu in
15437      powerpc)
15438            # see comment about AmigaOS4 .so support
15439            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15440            archive_expsym_cmds=''
15441        ;;
15442      m68k)
15443            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15444            hardcode_libdir_flag_spec='-L$libdir'
15445            hardcode_minus_L=yes
15446        ;;
15447      esac
15448      ;;
15449
15450    bsdi[45]*)
15451      export_dynamic_flag_spec=-rdynamic
15452      ;;
15453
15454    cygwin* | mingw* | pw32* | cegcc*)
15455      # When not using gcc, we currently assume that we are using
15456      # Microsoft Visual C++.
15457      # hardcode_libdir_flag_spec is actually meaningless, as there is
15458      # no search path for DLLs.
15459      case $cc_basename in
15460      cl*)
15461	# Native MSVC
15462	hardcode_libdir_flag_spec=' '
15463	allow_undefined_flag=unsupported
15464	always_export_symbols=yes
15465	file_list_spec='@'
15466	# Tell ltmain to make .lib files, not .a files.
15467	libext=lib
15468	# Tell ltmain to make .dll files, not .so files.
15469	shrext_cmds=".dll"
15470	# FIXME: Setting linknames here is a bad hack.
15471	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15472	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15473	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15474	  else
15475	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15476	  fi~
15477	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15478	  linknames='
15479	# The linker will not automatically build a static lib if we build a DLL.
15480	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15481	enable_shared_with_static_runtimes=yes
15482	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15483	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15484	# Don't use ranlib
15485	old_postinstall_cmds='chmod 644 $oldlib'
15486	postlink_cmds='lt_outputfile="@OUTPUT@"~
15487	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15488	  case $lt_outputfile in
15489	    *.exe|*.EXE) ;;
15490	    *)
15491	      lt_outputfile="$lt_outputfile.exe"
15492	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15493	      ;;
15494	  esac~
15495	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15496	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15497	    $RM "$lt_outputfile.manifest";
15498	  fi'
15499	;;
15500      *)
15501	# Assume MSVC wrapper
15502	hardcode_libdir_flag_spec=' '
15503	allow_undefined_flag=unsupported
15504	# Tell ltmain to make .lib files, not .a files.
15505	libext=lib
15506	# Tell ltmain to make .dll files, not .so files.
15507	shrext_cmds=".dll"
15508	# FIXME: Setting linknames here is a bad hack.
15509	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15510	# The linker will automatically build a .lib file if we build a DLL.
15511	old_archive_from_new_cmds='true'
15512	# FIXME: Should let the user specify the lib program.
15513	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15514	enable_shared_with_static_runtimes=yes
15515	;;
15516      esac
15517      ;;
15518
15519    darwin* | rhapsody*)
15520
15521
15522  archive_cmds_need_lc=no
15523  hardcode_direct=no
15524  hardcode_automatic=yes
15525  hardcode_shlibpath_var=unsupported
15526  if test "$lt_cv_ld_force_load" = "yes"; then
15527    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15528
15529  else
15530    whole_archive_flag_spec=''
15531  fi
15532  link_all_deplibs=yes
15533  allow_undefined_flag="$_lt_dar_allow_undefined"
15534  case $cc_basename in
15535     ifort*) _lt_dar_can_shared=yes ;;
15536     *) _lt_dar_can_shared=$GCC ;;
15537  esac
15538  if test "$_lt_dar_can_shared" = "yes"; then
15539    output_verbose_link_cmd=func_echo_all
15540    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15541    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15542    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15543    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15544
15545  else
15546  ld_shlibs=no
15547  fi
15548
15549      ;;
15550
15551    dgux*)
15552      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15553      hardcode_libdir_flag_spec='-L$libdir'
15554      hardcode_shlibpath_var=no
15555      ;;
15556
15557    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15558    # support.  Future versions do this automatically, but an explicit c++rt0.o
15559    # does not break anything, and helps significantly (at the cost of a little
15560    # extra space).
15561    freebsd2.2*)
15562      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15563      hardcode_libdir_flag_spec='-R$libdir'
15564      hardcode_direct=yes
15565      hardcode_shlibpath_var=no
15566      ;;
15567
15568    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15569    freebsd2.*)
15570      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15571      hardcode_direct=yes
15572      hardcode_minus_L=yes
15573      hardcode_shlibpath_var=no
15574      ;;
15575
15576    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15577    freebsd* | dragonfly*)
15578      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15579      hardcode_libdir_flag_spec='-R$libdir'
15580      hardcode_direct=yes
15581      hardcode_shlibpath_var=no
15582      ;;
15583
15584    hpux9*)
15585      if test "$GCC" = yes; then
15586	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15587      else
15588	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15589      fi
15590      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15591      hardcode_libdir_separator=:
15592      hardcode_direct=yes
15593
15594      # hardcode_minus_L: Not really in the search PATH,
15595      # but as the default location of the library.
15596      hardcode_minus_L=yes
15597      export_dynamic_flag_spec='${wl}-E'
15598      ;;
15599
15600    hpux10*)
15601      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15602	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15603      else
15604	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15605      fi
15606      if test "$with_gnu_ld" = no; then
15607	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15608	hardcode_libdir_separator=:
15609	hardcode_direct=yes
15610	hardcode_direct_absolute=yes
15611	export_dynamic_flag_spec='${wl}-E'
15612	# hardcode_minus_L: Not really in the search PATH,
15613	# but as the default location of the library.
15614	hardcode_minus_L=yes
15615      fi
15616      ;;
15617
15618    hpux11*)
15619      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15620	case $host_cpu in
15621	hppa*64*)
15622	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15623	  ;;
15624	ia64*)
15625	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15626	  ;;
15627	*)
15628	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15629	  ;;
15630	esac
15631      else
15632	case $host_cpu in
15633	hppa*64*)
15634	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15635	  ;;
15636	ia64*)
15637	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15638	  ;;
15639	*)
15640
15641	  # Older versions of the 11.00 compiler do not understand -b yet
15642	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15643	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15644$as_echo_n "checking if $CC understands -b... " >&6; }
15645if ${lt_cv_prog_compiler__b+:} false; then :
15646  $as_echo_n "(cached) " >&6
15647else
15648  lt_cv_prog_compiler__b=no
15649   save_LDFLAGS="$LDFLAGS"
15650   LDFLAGS="$LDFLAGS -b"
15651   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15652   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15653     # The linker can only warn and ignore the option if not recognized
15654     # So say no if there are warnings
15655     if test -s conftest.err; then
15656       # Append any errors to the config.log.
15657       cat conftest.err 1>&5
15658       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15659       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15660       if diff conftest.exp conftest.er2 >/dev/null; then
15661         lt_cv_prog_compiler__b=yes
15662       fi
15663     else
15664       lt_cv_prog_compiler__b=yes
15665     fi
15666   fi
15667   $RM -r conftest*
15668   LDFLAGS="$save_LDFLAGS"
15669
15670fi
15671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15672$as_echo "$lt_cv_prog_compiler__b" >&6; }
15673
15674if test x"$lt_cv_prog_compiler__b" = xyes; then
15675    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15676else
15677    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15678fi
15679
15680	  ;;
15681	esac
15682      fi
15683      if test "$with_gnu_ld" = no; then
15684	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15685	hardcode_libdir_separator=:
15686
15687	case $host_cpu in
15688	hppa*64*|ia64*)
15689	  hardcode_direct=no
15690	  hardcode_shlibpath_var=no
15691	  ;;
15692	*)
15693	  hardcode_direct=yes
15694	  hardcode_direct_absolute=yes
15695	  export_dynamic_flag_spec='${wl}-E'
15696
15697	  # hardcode_minus_L: Not really in the search PATH,
15698	  # but as the default location of the library.
15699	  hardcode_minus_L=yes
15700	  ;;
15701	esac
15702      fi
15703      ;;
15704
15705    irix5* | irix6* | nonstopux*)
15706      if test "$GCC" = yes; then
15707	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15708	# Try to use the -exported_symbol ld option, if it does not
15709	# work, assume that -exports_file does not work either and
15710	# implicitly export all symbols.
15711	# This should be the same for all languages, so no per-tag cache variable.
15712	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15713$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15714if ${lt_cv_irix_exported_symbol+:} false; then :
15715  $as_echo_n "(cached) " >&6
15716else
15717  save_LDFLAGS="$LDFLAGS"
15718	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15719	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720/* end confdefs.h.  */
15721int foo (void) { return 0; }
15722_ACEOF
15723if ac_fn_c_try_link "$LINENO"; then :
15724  lt_cv_irix_exported_symbol=yes
15725else
15726  lt_cv_irix_exported_symbol=no
15727fi
15728rm -f core conftest.err conftest.$ac_objext \
15729    conftest$ac_exeext conftest.$ac_ext
15730           LDFLAGS="$save_LDFLAGS"
15731fi
15732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15733$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15734	if test "$lt_cv_irix_exported_symbol" = yes; then
15735          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
15736	fi
15737      else
15738	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15739	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
15740      fi
15741      archive_cmds_need_lc='no'
15742      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15743      hardcode_libdir_separator=:
15744      inherit_rpath=yes
15745      link_all_deplibs=yes
15746      ;;
15747
15748    netbsd*)
15749      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15750	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15751      else
15752	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15753      fi
15754      hardcode_libdir_flag_spec='-R$libdir'
15755      hardcode_direct=yes
15756      hardcode_shlibpath_var=no
15757      ;;
15758
15759    newsos6)
15760      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15761      hardcode_direct=yes
15762      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15763      hardcode_libdir_separator=:
15764      hardcode_shlibpath_var=no
15765      ;;
15766
15767    *nto* | *qnx*)
15768      ;;
15769
15770    openbsd*)
15771      if test -f /usr/libexec/ld.so; then
15772	hardcode_direct=yes
15773	hardcode_shlibpath_var=no
15774	hardcode_direct_absolute=yes
15775	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15776	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15777	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15778	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15779	  export_dynamic_flag_spec='${wl}-E'
15780	else
15781	  case $host_os in
15782	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15783	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15784	     hardcode_libdir_flag_spec='-R$libdir'
15785	     ;;
15786	   *)
15787	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15788	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15789	     ;;
15790	  esac
15791	fi
15792      else
15793	ld_shlibs=no
15794      fi
15795      ;;
15796
15797    os2*)
15798      hardcode_libdir_flag_spec='-L$libdir'
15799      hardcode_minus_L=yes
15800      allow_undefined_flag=unsupported
15801      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15802      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15803      ;;
15804
15805    osf3*)
15806      if test "$GCC" = yes; then
15807	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15808	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15809      else
15810	allow_undefined_flag=' -expect_unresolved \*'
15811	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15812      fi
15813      archive_cmds_need_lc='no'
15814      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15815      hardcode_libdir_separator=:
15816      ;;
15817
15818    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15819      if test "$GCC" = yes; then
15820	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15821	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15822	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15823      else
15824	allow_undefined_flag=' -expect_unresolved \*'
15825	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15826	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
15827	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
15828
15829	# Both c and cxx compiler support -rpath directly
15830	hardcode_libdir_flag_spec='-rpath $libdir'
15831      fi
15832      archive_cmds_need_lc='no'
15833      hardcode_libdir_separator=:
15834      ;;
15835
15836    solaris*)
15837      no_undefined_flag=' -z defs'
15838      if test "$GCC" = yes; then
15839	wlarc='${wl}'
15840	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15841	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15842	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15843      else
15844	case `$CC -V 2>&1` in
15845	*"Compilers 5.0"*)
15846	  wlarc=''
15847	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15848	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15849	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15850	  ;;
15851	*)
15852	  wlarc='${wl}'
15853	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15854	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15855	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15856	  ;;
15857	esac
15858      fi
15859      hardcode_libdir_flag_spec='-R$libdir'
15860      hardcode_shlibpath_var=no
15861      case $host_os in
15862      solaris2.[0-5] | solaris2.[0-5].*) ;;
15863      *)
15864	# The compiler driver will combine and reorder linker options,
15865	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15866	# but is careful enough not to reorder.
15867	# Supported since Solaris 2.6 (maybe 2.5.1?)
15868	if test "$GCC" = yes; then
15869	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15870	else
15871	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15872	fi
15873	;;
15874      esac
15875      link_all_deplibs=yes
15876      ;;
15877
15878    sunos4*)
15879      if test "x$host_vendor" = xsequent; then
15880	# Use $CC to link under sequent, because it throws in some extra .o
15881	# files that make .init and .fini sections work.
15882	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15883      else
15884	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15885      fi
15886      hardcode_libdir_flag_spec='-L$libdir'
15887      hardcode_direct=yes
15888      hardcode_minus_L=yes
15889      hardcode_shlibpath_var=no
15890      ;;
15891
15892    sysv4)
15893      case $host_vendor in
15894	sni)
15895	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15896	  hardcode_direct=yes # is this really true???
15897	;;
15898	siemens)
15899	  ## LD is ld it makes a PLAMLIB
15900	  ## CC just makes a GrossModule.
15901	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15902	  reload_cmds='$CC -r -o $output$reload_objs'
15903	  hardcode_direct=no
15904        ;;
15905	motorola)
15906	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15907	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15908	;;
15909      esac
15910      runpath_var='LD_RUN_PATH'
15911      hardcode_shlibpath_var=no
15912      ;;
15913
15914    sysv4.3*)
15915      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15916      hardcode_shlibpath_var=no
15917      export_dynamic_flag_spec='-Bexport'
15918      ;;
15919
15920    sysv4*MP*)
15921      if test -d /usr/nec; then
15922	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15923	hardcode_shlibpath_var=no
15924	runpath_var=LD_RUN_PATH
15925	hardcode_runpath_var=yes
15926	ld_shlibs=yes
15927      fi
15928      ;;
15929
15930    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15931      no_undefined_flag='${wl}-z,text'
15932      archive_cmds_need_lc=no
15933      hardcode_shlibpath_var=no
15934      runpath_var='LD_RUN_PATH'
15935
15936      if test "$GCC" = yes; then
15937	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15938	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15939      else
15940	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15941	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15942      fi
15943      ;;
15944
15945    sysv5* | sco3.2v5* | sco5v6*)
15946      # Note: We can NOT use -z defs as we might desire, because we do not
15947      # link with -lc, and that would cause any symbols used from libc to
15948      # always be unresolved, which means just about no library would
15949      # ever link correctly.  If we're not using GNU ld we use -z text
15950      # though, which does catch some bad symbols but isn't as heavy-handed
15951      # as -z defs.
15952      no_undefined_flag='${wl}-z,text'
15953      allow_undefined_flag='${wl}-z,nodefs'
15954      archive_cmds_need_lc=no
15955      hardcode_shlibpath_var=no
15956      hardcode_libdir_flag_spec='${wl}-R,$libdir'
15957      hardcode_libdir_separator=':'
15958      link_all_deplibs=yes
15959      export_dynamic_flag_spec='${wl}-Bexport'
15960      runpath_var='LD_RUN_PATH'
15961
15962      if test "$GCC" = yes; then
15963	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15964	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15965      else
15966	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15967	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15968      fi
15969      ;;
15970
15971    uts4*)
15972      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15973      hardcode_libdir_flag_spec='-L$libdir'
15974      hardcode_shlibpath_var=no
15975      ;;
15976
15977    *)
15978      ld_shlibs=no
15979      ;;
15980    esac
15981
15982    if test x$host_vendor = xsni; then
15983      case $host in
15984      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15985	export_dynamic_flag_spec='${wl}-Blargedynsym'
15986	;;
15987      esac
15988    fi
15989  fi
15990
15991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15992$as_echo "$ld_shlibs" >&6; }
15993test "$ld_shlibs" = no && can_build_shared=no
15994
15995with_gnu_ld=$with_gnu_ld
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011#
16012# Do we need to explicitly link libc?
16013#
16014case "x$archive_cmds_need_lc" in
16015x|xyes)
16016  # Assume -lc should be added
16017  archive_cmds_need_lc=yes
16018
16019  if test "$enable_shared" = yes && test "$GCC" = yes; then
16020    case $archive_cmds in
16021    *'~'*)
16022      # FIXME: we may have to deal with multi-command sequences.
16023      ;;
16024    '$CC '*)
16025      # Test whether the compiler implicitly links with -lc since on some
16026      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16027      # to ld, don't add -lc before -lgcc.
16028      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16029$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16030if ${lt_cv_archive_cmds_need_lc+:} false; then :
16031  $as_echo_n "(cached) " >&6
16032else
16033  $RM conftest*
16034	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16035
16036	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16037  (eval $ac_compile) 2>&5
16038  ac_status=$?
16039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16040  test $ac_status = 0; } 2>conftest.err; then
16041	  soname=conftest
16042	  lib=conftest
16043	  libobjs=conftest.$ac_objext
16044	  deplibs=
16045	  wl=$lt_prog_compiler_wl
16046	  pic_flag=$lt_prog_compiler_pic
16047	  compiler_flags=-v
16048	  linker_flags=-v
16049	  verstring=
16050	  output_objdir=.
16051	  libname=conftest
16052	  lt_save_allow_undefined_flag=$allow_undefined_flag
16053	  allow_undefined_flag=
16054	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16055  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16056  ac_status=$?
16057  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16058  test $ac_status = 0; }
16059	  then
16060	    lt_cv_archive_cmds_need_lc=no
16061	  else
16062	    lt_cv_archive_cmds_need_lc=yes
16063	  fi
16064	  allow_undefined_flag=$lt_save_allow_undefined_flag
16065	else
16066	  cat conftest.err 1>&5
16067	fi
16068	$RM conftest*
16069
16070fi
16071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16072$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16073      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16074      ;;
16075    esac
16076  fi
16077  ;;
16078esac
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16232$as_echo_n "checking dynamic linker characteristics... " >&6; }
16233
16234if test "$GCC" = yes; then
16235  case $host_os in
16236    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16237    *) lt_awk_arg="/^libraries:/" ;;
16238  esac
16239  case $host_os in
16240    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16241    *) lt_sed_strip_eq="s,=/,/,g" ;;
16242  esac
16243  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16244  case $lt_search_path_spec in
16245  *\;*)
16246    # if the path contains ";" then we assume it to be the separator
16247    # otherwise default to the standard path separator (i.e. ":") - it is
16248    # assumed that no part of a normal pathname contains ";" but that should
16249    # okay in the real world where ";" in dirpaths is itself problematic.
16250    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16251    ;;
16252  *)
16253    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16254    ;;
16255  esac
16256  # Ok, now we have the path, separated by spaces, we can step through it
16257  # and add multilib dir if necessary.
16258  lt_tmp_lt_search_path_spec=
16259  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16260  for lt_sys_path in $lt_search_path_spec; do
16261    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16262      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16263    else
16264      test -d "$lt_sys_path" && \
16265	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16266    fi
16267  done
16268  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16269BEGIN {RS=" "; FS="/|\n";} {
16270  lt_foo="";
16271  lt_count=0;
16272  for (lt_i = NF; lt_i > 0; lt_i--) {
16273    if ($lt_i != "" && $lt_i != ".") {
16274      if ($lt_i == "..") {
16275        lt_count++;
16276      } else {
16277        if (lt_count == 0) {
16278          lt_foo="/" $lt_i lt_foo;
16279        } else {
16280          lt_count--;
16281        }
16282      }
16283    }
16284  }
16285  if (lt_foo != "") { lt_freq[lt_foo]++; }
16286  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16287}'`
16288  # AWK program above erroneously prepends '/' to C:/dos/paths
16289  # for these hosts.
16290  case $host_os in
16291    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16292      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16293  esac
16294  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16295else
16296  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16297fi
16298library_names_spec=
16299libname_spec='lib$name'
16300soname_spec=
16301shrext_cmds=".so"
16302postinstall_cmds=
16303postuninstall_cmds=
16304finish_cmds=
16305finish_eval=
16306shlibpath_var=
16307shlibpath_overrides_runpath=unknown
16308version_type=none
16309dynamic_linker="$host_os ld.so"
16310sys_lib_dlsearch_path_spec="/lib /usr/lib"
16311need_lib_prefix=unknown
16312hardcode_into_libs=no
16313
16314# when you set need_version to no, make sure it does not cause -set_version
16315# flags to be left without arguments
16316need_version=unknown
16317
16318case $host_os in
16319aix3*)
16320  version_type=linux # correct to gnu/linux during the next big refactor
16321  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16322  shlibpath_var=LIBPATH
16323
16324  # AIX 3 has no versioning support, so we append a major version to the name.
16325  soname_spec='${libname}${release}${shared_ext}$major'
16326  ;;
16327
16328aix[4-9]*)
16329  version_type=linux # correct to gnu/linux during the next big refactor
16330  need_lib_prefix=no
16331  need_version=no
16332  hardcode_into_libs=yes
16333  if test "$host_cpu" = ia64; then
16334    # AIX 5 supports IA64
16335    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16336    shlibpath_var=LD_LIBRARY_PATH
16337  else
16338    # With GCC up to 2.95.x, collect2 would create an import file
16339    # for dependence libraries.  The import file would start with
16340    # the line `#! .'.  This would cause the generated library to
16341    # depend on `.', always an invalid library.  This was fixed in
16342    # development snapshots of GCC prior to 3.0.
16343    case $host_os in
16344      aix4 | aix4.[01] | aix4.[01].*)
16345      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16346	   echo ' yes '
16347	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16348	:
16349      else
16350	can_build_shared=no
16351      fi
16352      ;;
16353    esac
16354    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16355    # soname into executable. Probably we can add versioning support to
16356    # collect2, so additional links can be useful in future.
16357    if test "$aix_use_runtimelinking" = yes; then
16358      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16359      # instead of lib<name>.a to let people know that these are not
16360      # typical AIX shared libraries.
16361      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16362    else
16363      # We preserve .a as extension for shared libraries through AIX4.2
16364      # and later when we are not doing run time linking.
16365      library_names_spec='${libname}${release}.a $libname.a'
16366      soname_spec='${libname}${release}${shared_ext}$major'
16367    fi
16368    shlibpath_var=LIBPATH
16369  fi
16370  ;;
16371
16372amigaos*)
16373  case $host_cpu in
16374  powerpc)
16375    # Since July 2007 AmigaOS4 officially supports .so libraries.
16376    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16377    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16378    ;;
16379  m68k)
16380    library_names_spec='$libname.ixlibrary $libname.a'
16381    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16382    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16383    ;;
16384  esac
16385  ;;
16386
16387beos*)
16388  library_names_spec='${libname}${shared_ext}'
16389  dynamic_linker="$host_os ld.so"
16390  shlibpath_var=LIBRARY_PATH
16391  ;;
16392
16393bsdi[45]*)
16394  version_type=linux # correct to gnu/linux during the next big refactor
16395  need_version=no
16396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16397  soname_spec='${libname}${release}${shared_ext}$major'
16398  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16399  shlibpath_var=LD_LIBRARY_PATH
16400  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16401  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16402  # the default ld.so.conf also contains /usr/contrib/lib and
16403  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16404  # libtool to hard-code these into programs
16405  ;;
16406
16407cygwin* | mingw* | pw32* | cegcc*)
16408  version_type=windows
16409  shrext_cmds=".dll"
16410  need_version=no
16411  need_lib_prefix=no
16412
16413  case $GCC,$cc_basename in
16414  yes,*)
16415    # gcc
16416    library_names_spec='$libname.dll.a'
16417    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16418    postinstall_cmds='base_file=`basename \${file}`~
16419      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16420      dldir=$destdir/`dirname \$dlpath`~
16421      test -d \$dldir || mkdir -p \$dldir~
16422      $install_prog $dir/$dlname \$dldir/$dlname~
16423      chmod a+x \$dldir/$dlname~
16424      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16425        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16426      fi'
16427    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16428      dlpath=$dir/\$dldll~
16429       $RM \$dlpath'
16430    shlibpath_overrides_runpath=yes
16431
16432    case $host_os in
16433    cygwin*)
16434      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16435      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16436
16437      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16438      ;;
16439    mingw* | cegcc*)
16440      # MinGW DLLs use traditional 'lib' prefix
16441      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16442      ;;
16443    pw32*)
16444      # pw32 DLLs use 'pw' prefix rather than 'lib'
16445      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16446      ;;
16447    esac
16448    dynamic_linker='Win32 ld.exe'
16449    ;;
16450
16451  *,cl*)
16452    # Native MSVC
16453    libname_spec='$name'
16454    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16455    library_names_spec='${libname}.dll.lib'
16456
16457    case $build_os in
16458    mingw*)
16459      sys_lib_search_path_spec=
16460      lt_save_ifs=$IFS
16461      IFS=';'
16462      for lt_path in $LIB
16463      do
16464        IFS=$lt_save_ifs
16465        # Let DOS variable expansion print the short 8.3 style file name.
16466        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16467        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16468      done
16469      IFS=$lt_save_ifs
16470      # Convert to MSYS style.
16471      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16472      ;;
16473    cygwin*)
16474      # Convert to unix form, then to dos form, then back to unix form
16475      # but this time dos style (no spaces!) so that the unix form looks
16476      # like /cygdrive/c/PROGRA~1:/cygdr...
16477      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16478      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16479      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16480      ;;
16481    *)
16482      sys_lib_search_path_spec="$LIB"
16483      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16484        # It is most probably a Windows format PATH.
16485        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16486      else
16487        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16488      fi
16489      # FIXME: find the short name or the path components, as spaces are
16490      # common. (e.g. "Program Files" -> "PROGRA~1")
16491      ;;
16492    esac
16493
16494    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16495    postinstall_cmds='base_file=`basename \${file}`~
16496      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16497      dldir=$destdir/`dirname \$dlpath`~
16498      test -d \$dldir || mkdir -p \$dldir~
16499      $install_prog $dir/$dlname \$dldir/$dlname'
16500    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16501      dlpath=$dir/\$dldll~
16502       $RM \$dlpath'
16503    shlibpath_overrides_runpath=yes
16504    dynamic_linker='Win32 link.exe'
16505    ;;
16506
16507  *)
16508    # Assume MSVC wrapper
16509    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16510    dynamic_linker='Win32 ld.exe'
16511    ;;
16512  esac
16513  # FIXME: first we should search . and the directory the executable is in
16514  shlibpath_var=PATH
16515  ;;
16516
16517darwin* | rhapsody*)
16518  dynamic_linker="$host_os dyld"
16519  version_type=darwin
16520  need_lib_prefix=no
16521  need_version=no
16522  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16523  soname_spec='${libname}${release}${major}$shared_ext'
16524  shlibpath_overrides_runpath=yes
16525  shlibpath_var=DYLD_LIBRARY_PATH
16526  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16527
16528  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16529  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16530  ;;
16531
16532dgux*)
16533  version_type=linux # correct to gnu/linux during the next big refactor
16534  need_lib_prefix=no
16535  need_version=no
16536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16537  soname_spec='${libname}${release}${shared_ext}$major'
16538  shlibpath_var=LD_LIBRARY_PATH
16539  ;;
16540
16541freebsd* | dragonfly*)
16542  # DragonFly does not have aout.  When/if they implement a new
16543  # versioning mechanism, adjust this.
16544  if test -x /usr/bin/objformat; then
16545    objformat=`/usr/bin/objformat`
16546  else
16547    case $host_os in
16548    freebsd[23].*) objformat=aout ;;
16549    *) objformat=elf ;;
16550    esac
16551  fi
16552  version_type=freebsd-$objformat
16553  case $version_type in
16554    freebsd-elf*)
16555      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16556      need_version=no
16557      need_lib_prefix=no
16558      ;;
16559    freebsd-*)
16560      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16561      need_version=yes
16562      ;;
16563  esac
16564  shlibpath_var=LD_LIBRARY_PATH
16565  case $host_os in
16566  freebsd2.*)
16567    shlibpath_overrides_runpath=yes
16568    ;;
16569  freebsd3.[01]* | freebsdelf3.[01]*)
16570    shlibpath_overrides_runpath=yes
16571    hardcode_into_libs=yes
16572    ;;
16573  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16574  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16575    shlibpath_overrides_runpath=no
16576    hardcode_into_libs=yes
16577    ;;
16578  *) # from 4.6 on, and DragonFly
16579    shlibpath_overrides_runpath=yes
16580    hardcode_into_libs=yes
16581    ;;
16582  esac
16583  ;;
16584
16585gnu*)
16586  version_type=linux # correct to gnu/linux during the next big refactor
16587  need_lib_prefix=no
16588  need_version=no
16589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16590  soname_spec='${libname}${release}${shared_ext}$major'
16591  shlibpath_var=LD_LIBRARY_PATH
16592  shlibpath_overrides_runpath=no
16593  hardcode_into_libs=yes
16594  ;;
16595
16596haiku*)
16597  version_type=linux # correct to gnu/linux during the next big refactor
16598  need_lib_prefix=no
16599  need_version=no
16600  dynamic_linker="$host_os runtime_loader"
16601  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16602  soname_spec='${libname}${release}${shared_ext}$major'
16603  shlibpath_var=LIBRARY_PATH
16604  shlibpath_overrides_runpath=yes
16605  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16606  hardcode_into_libs=yes
16607  ;;
16608
16609hpux9* | hpux10* | hpux11*)
16610  # Give a soname corresponding to the major version so that dld.sl refuses to
16611  # link against other versions.
16612  version_type=sunos
16613  need_lib_prefix=no
16614  need_version=no
16615  case $host_cpu in
16616  ia64*)
16617    shrext_cmds='.so'
16618    hardcode_into_libs=yes
16619    dynamic_linker="$host_os dld.so"
16620    shlibpath_var=LD_LIBRARY_PATH
16621    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16622    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623    soname_spec='${libname}${release}${shared_ext}$major'
16624    if test "X$HPUX_IA64_MODE" = X32; then
16625      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16626    else
16627      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16628    fi
16629    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16630    ;;
16631  hppa*64*)
16632    shrext_cmds='.sl'
16633    hardcode_into_libs=yes
16634    dynamic_linker="$host_os dld.sl"
16635    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16636    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16637    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16638    soname_spec='${libname}${release}${shared_ext}$major'
16639    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16640    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16641    ;;
16642  *)
16643    shrext_cmds='.sl'
16644    dynamic_linker="$host_os dld.sl"
16645    shlibpath_var=SHLIB_PATH
16646    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16647    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16648    soname_spec='${libname}${release}${shared_ext}$major'
16649    ;;
16650  esac
16651  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16652  postinstall_cmds='chmod 555 $lib'
16653  # or fails outright, so override atomically:
16654  install_override_mode=555
16655  ;;
16656
16657interix[3-9]*)
16658  version_type=linux # correct to gnu/linux during the next big refactor
16659  need_lib_prefix=no
16660  need_version=no
16661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16662  soname_spec='${libname}${release}${shared_ext}$major'
16663  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16664  shlibpath_var=LD_LIBRARY_PATH
16665  shlibpath_overrides_runpath=no
16666  hardcode_into_libs=yes
16667  ;;
16668
16669irix5* | irix6* | nonstopux*)
16670  case $host_os in
16671    nonstopux*) version_type=nonstopux ;;
16672    *)
16673	if test "$lt_cv_prog_gnu_ld" = yes; then
16674		version_type=linux # correct to gnu/linux during the next big refactor
16675	else
16676		version_type=irix
16677	fi ;;
16678  esac
16679  need_lib_prefix=no
16680  need_version=no
16681  soname_spec='${libname}${release}${shared_ext}$major'
16682  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16683  case $host_os in
16684  irix5* | nonstopux*)
16685    libsuff= shlibsuff=
16686    ;;
16687  *)
16688    case $LD in # libtool.m4 will add one of these switches to LD
16689    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16690      libsuff= shlibsuff= libmagic=32-bit;;
16691    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16692      libsuff=32 shlibsuff=N32 libmagic=N32;;
16693    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16694      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16695    *) libsuff= shlibsuff= libmagic=never-match;;
16696    esac
16697    ;;
16698  esac
16699  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16700  shlibpath_overrides_runpath=no
16701  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16702  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16703  hardcode_into_libs=yes
16704  ;;
16705
16706# No shared lib support for Linux oldld, aout, or coff.
16707linux*oldld* | linux*aout* | linux*coff*)
16708  dynamic_linker=no
16709  ;;
16710
16711# This must be glibc/ELF.
16712linux* | k*bsd*-gnu | kopensolaris*-gnu)
16713  version_type=linux # correct to gnu/linux during the next big refactor
16714  need_lib_prefix=no
16715  need_version=no
16716  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16717  soname_spec='${libname}${release}${shared_ext}$major'
16718  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16719  shlibpath_var=LD_LIBRARY_PATH
16720  shlibpath_overrides_runpath=no
16721
16722  # Some binutils ld are patched to set DT_RUNPATH
16723  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16724  $as_echo_n "(cached) " >&6
16725else
16726  lt_cv_shlibpath_overrides_runpath=no
16727    save_LDFLAGS=$LDFLAGS
16728    save_libdir=$libdir
16729    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16730	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16731    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732/* end confdefs.h.  */
16733
16734int
16735main ()
16736{
16737
16738  ;
16739  return 0;
16740}
16741_ACEOF
16742if ac_fn_c_try_link "$LINENO"; then :
16743  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16744  lt_cv_shlibpath_overrides_runpath=yes
16745fi
16746fi
16747rm -f core conftest.err conftest.$ac_objext \
16748    conftest$ac_exeext conftest.$ac_ext
16749    LDFLAGS=$save_LDFLAGS
16750    libdir=$save_libdir
16751
16752fi
16753
16754  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16755
16756  # This implies no fast_install, which is unacceptable.
16757  # Some rework will be needed to allow for fast_install
16758  # before this can be enabled.
16759  hardcode_into_libs=yes
16760
16761  # Append ld.so.conf contents to the search path
16762  if test -f /etc/ld.so.conf; then
16763    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16764    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16765  fi
16766
16767  # We used to test for /lib/ld.so.1 and disable shared libraries on
16768  # powerpc, because MkLinux only supported shared libraries with the
16769  # GNU dynamic linker.  Since this was broken with cross compilers,
16770  # most powerpc-linux boxes support dynamic linking these days and
16771  # people can always --disable-shared, the test was removed, and we
16772  # assume the GNU/Linux dynamic linker is in use.
16773  dynamic_linker='GNU/Linux ld.so'
16774  ;;
16775
16776netbsd*)
16777  version_type=sunos
16778  need_lib_prefix=no
16779  need_version=no
16780  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16781    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16782    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16783    dynamic_linker='NetBSD (a.out) ld.so'
16784  else
16785    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16786    soname_spec='${libname}${release}${shared_ext}$major'
16787    dynamic_linker='NetBSD ld.elf_so'
16788  fi
16789  shlibpath_var=LD_LIBRARY_PATH
16790  shlibpath_overrides_runpath=yes
16791  hardcode_into_libs=yes
16792  ;;
16793
16794newsos6)
16795  version_type=linux # correct to gnu/linux during the next big refactor
16796  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16797  shlibpath_var=LD_LIBRARY_PATH
16798  shlibpath_overrides_runpath=yes
16799  ;;
16800
16801*nto* | *qnx*)
16802  version_type=qnx
16803  need_lib_prefix=no
16804  need_version=no
16805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16806  soname_spec='${libname}${release}${shared_ext}$major'
16807  shlibpath_var=LD_LIBRARY_PATH
16808  shlibpath_overrides_runpath=no
16809  hardcode_into_libs=yes
16810  dynamic_linker='ldqnx.so'
16811  ;;
16812
16813openbsd*)
16814  version_type=sunos
16815  sys_lib_dlsearch_path_spec="/usr/lib"
16816  need_lib_prefix=no
16817  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16818  case $host_os in
16819    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16820    *)				need_version=no  ;;
16821  esac
16822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16823  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16824  shlibpath_var=LD_LIBRARY_PATH
16825  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16826    case $host_os in
16827      openbsd2.[89] | openbsd2.[89].*)
16828	shlibpath_overrides_runpath=no
16829	;;
16830      *)
16831	shlibpath_overrides_runpath=yes
16832	;;
16833      esac
16834  else
16835    shlibpath_overrides_runpath=yes
16836  fi
16837  ;;
16838
16839os2*)
16840  libname_spec='$name'
16841  shrext_cmds=".dll"
16842  need_lib_prefix=no
16843  library_names_spec='$libname${shared_ext} $libname.a'
16844  dynamic_linker='OS/2 ld.exe'
16845  shlibpath_var=LIBPATH
16846  ;;
16847
16848osf3* | osf4* | osf5*)
16849  version_type=osf
16850  need_lib_prefix=no
16851  need_version=no
16852  soname_spec='${libname}${release}${shared_ext}$major'
16853  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16854  shlibpath_var=LD_LIBRARY_PATH
16855  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16856  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16857  ;;
16858
16859rdos*)
16860  dynamic_linker=no
16861  ;;
16862
16863solaris*)
16864  version_type=linux # correct to gnu/linux during the next big refactor
16865  need_lib_prefix=no
16866  need_version=no
16867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16868  soname_spec='${libname}${release}${shared_ext}$major'
16869  shlibpath_var=LD_LIBRARY_PATH
16870  shlibpath_overrides_runpath=yes
16871  hardcode_into_libs=yes
16872  # ldd complains unless libraries are executable
16873  postinstall_cmds='chmod +x $lib'
16874  ;;
16875
16876sunos4*)
16877  version_type=sunos
16878  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16879  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16880  shlibpath_var=LD_LIBRARY_PATH
16881  shlibpath_overrides_runpath=yes
16882  if test "$with_gnu_ld" = yes; then
16883    need_lib_prefix=no
16884  fi
16885  need_version=yes
16886  ;;
16887
16888sysv4 | sysv4.3*)
16889  version_type=linux # correct to gnu/linux during the next big refactor
16890  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16891  soname_spec='${libname}${release}${shared_ext}$major'
16892  shlibpath_var=LD_LIBRARY_PATH
16893  case $host_vendor in
16894    sni)
16895      shlibpath_overrides_runpath=no
16896      need_lib_prefix=no
16897      runpath_var=LD_RUN_PATH
16898      ;;
16899    siemens)
16900      need_lib_prefix=no
16901      ;;
16902    motorola)
16903      need_lib_prefix=no
16904      need_version=no
16905      shlibpath_overrides_runpath=no
16906      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16907      ;;
16908  esac
16909  ;;
16910
16911sysv4*MP*)
16912  if test -d /usr/nec ;then
16913    version_type=linux # correct to gnu/linux during the next big refactor
16914    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16915    soname_spec='$libname${shared_ext}.$major'
16916    shlibpath_var=LD_LIBRARY_PATH
16917  fi
16918  ;;
16919
16920sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16921  version_type=freebsd-elf
16922  need_lib_prefix=no
16923  need_version=no
16924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16925  soname_spec='${libname}${release}${shared_ext}$major'
16926  shlibpath_var=LD_LIBRARY_PATH
16927  shlibpath_overrides_runpath=yes
16928  hardcode_into_libs=yes
16929  if test "$with_gnu_ld" = yes; then
16930    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16931  else
16932    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16933    case $host_os in
16934      sco3.2v5*)
16935        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16936	;;
16937    esac
16938  fi
16939  sys_lib_dlsearch_path_spec='/usr/lib'
16940  ;;
16941
16942tpf*)
16943  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16944  version_type=linux # correct to gnu/linux during the next big refactor
16945  need_lib_prefix=no
16946  need_version=no
16947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16948  shlibpath_var=LD_LIBRARY_PATH
16949  shlibpath_overrides_runpath=no
16950  hardcode_into_libs=yes
16951  ;;
16952
16953uts4*)
16954  version_type=linux # correct to gnu/linux during the next big refactor
16955  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16956  soname_spec='${libname}${release}${shared_ext}$major'
16957  shlibpath_var=LD_LIBRARY_PATH
16958  ;;
16959
16960*)
16961  dynamic_linker=no
16962  ;;
16963esac
16964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16965$as_echo "$dynamic_linker" >&6; }
16966test "$dynamic_linker" = no && can_build_shared=no
16967
16968variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16969if test "$GCC" = yes; then
16970  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16971fi
16972
16973if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16974  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16975fi
16976if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16977  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16978fi
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17072$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17073hardcode_action=
17074if test -n "$hardcode_libdir_flag_spec" ||
17075   test -n "$runpath_var" ||
17076   test "X$hardcode_automatic" = "Xyes" ; then
17077
17078  # We can hardcode non-existent directories.
17079  if test "$hardcode_direct" != no &&
17080     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17081     # have to relink, otherwise we might link with an installed library
17082     # when we should be linking with a yet-to-be-installed one
17083     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17084     test "$hardcode_minus_L" != no; then
17085    # Linking always hardcodes the temporary library directory.
17086    hardcode_action=relink
17087  else
17088    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17089    hardcode_action=immediate
17090  fi
17091else
17092  # We cannot hardcode anything, or else we can only hardcode existing
17093  # directories.
17094  hardcode_action=unsupported
17095fi
17096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17097$as_echo "$hardcode_action" >&6; }
17098
17099if test "$hardcode_action" = relink ||
17100   test "$inherit_rpath" = yes; then
17101  # Fast installation is not supported
17102  enable_fast_install=no
17103elif test "$shlibpath_overrides_runpath" = yes ||
17104     test "$enable_shared" = no; then
17105  # Fast installation is not necessary
17106  enable_fast_install=needless
17107fi
17108
17109
17110
17111
17112
17113
17114  if test "x$enable_dlopen" != xyes; then
17115  enable_dlopen=unknown
17116  enable_dlopen_self=unknown
17117  enable_dlopen_self_static=unknown
17118else
17119  lt_cv_dlopen=no
17120  lt_cv_dlopen_libs=
17121
17122  case $host_os in
17123  beos*)
17124    lt_cv_dlopen="load_add_on"
17125    lt_cv_dlopen_libs=
17126    lt_cv_dlopen_self=yes
17127    ;;
17128
17129  mingw* | pw32* | cegcc*)
17130    lt_cv_dlopen="LoadLibrary"
17131    lt_cv_dlopen_libs=
17132    ;;
17133
17134  cygwin*)
17135    lt_cv_dlopen="dlopen"
17136    lt_cv_dlopen_libs=
17137    ;;
17138
17139  darwin*)
17140  # if libdl is installed we need to link against it
17141    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17142$as_echo_n "checking for dlopen in -ldl... " >&6; }
17143if ${ac_cv_lib_dl_dlopen+:} false; then :
17144  $as_echo_n "(cached) " >&6
17145else
17146  ac_check_lib_save_LIBS=$LIBS
17147LIBS="-ldl  $LIBS"
17148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17149/* end confdefs.h.  */
17150
17151/* Override any GCC internal prototype to avoid an error.
17152   Use char because int might match the return type of a GCC
17153   builtin and then its argument prototype would still apply.  */
17154#ifdef __cplusplus
17155extern "C"
17156#endif
17157char dlopen ();
17158int
17159main ()
17160{
17161return dlopen ();
17162  ;
17163  return 0;
17164}
17165_ACEOF
17166if ac_fn_c_try_link "$LINENO"; then :
17167  ac_cv_lib_dl_dlopen=yes
17168else
17169  ac_cv_lib_dl_dlopen=no
17170fi
17171rm -f core conftest.err conftest.$ac_objext \
17172    conftest$ac_exeext conftest.$ac_ext
17173LIBS=$ac_check_lib_save_LIBS
17174fi
17175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17176$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17177if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17178  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17179else
17180
17181    lt_cv_dlopen="dyld"
17182    lt_cv_dlopen_libs=
17183    lt_cv_dlopen_self=yes
17184
17185fi
17186
17187    ;;
17188
17189  *)
17190    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17191if test "x$ac_cv_func_shl_load" = xyes; then :
17192  lt_cv_dlopen="shl_load"
17193else
17194  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17195$as_echo_n "checking for shl_load in -ldld... " >&6; }
17196if ${ac_cv_lib_dld_shl_load+:} false; then :
17197  $as_echo_n "(cached) " >&6
17198else
17199  ac_check_lib_save_LIBS=$LIBS
17200LIBS="-ldld  $LIBS"
17201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17202/* end confdefs.h.  */
17203
17204/* Override any GCC internal prototype to avoid an error.
17205   Use char because int might match the return type of a GCC
17206   builtin and then its argument prototype would still apply.  */
17207#ifdef __cplusplus
17208extern "C"
17209#endif
17210char shl_load ();
17211int
17212main ()
17213{
17214return shl_load ();
17215  ;
17216  return 0;
17217}
17218_ACEOF
17219if ac_fn_c_try_link "$LINENO"; then :
17220  ac_cv_lib_dld_shl_load=yes
17221else
17222  ac_cv_lib_dld_shl_load=no
17223fi
17224rm -f core conftest.err conftest.$ac_objext \
17225    conftest$ac_exeext conftest.$ac_ext
17226LIBS=$ac_check_lib_save_LIBS
17227fi
17228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17229$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17230if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17231  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17232else
17233  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17234if test "x$ac_cv_func_dlopen" = xyes; then :
17235  lt_cv_dlopen="dlopen"
17236else
17237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17238$as_echo_n "checking for dlopen in -ldl... " >&6; }
17239if ${ac_cv_lib_dl_dlopen+:} false; then :
17240  $as_echo_n "(cached) " >&6
17241else
17242  ac_check_lib_save_LIBS=$LIBS
17243LIBS="-ldl  $LIBS"
17244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17245/* end confdefs.h.  */
17246
17247/* Override any GCC internal prototype to avoid an error.
17248   Use char because int might match the return type of a GCC
17249   builtin and then its argument prototype would still apply.  */
17250#ifdef __cplusplus
17251extern "C"
17252#endif
17253char dlopen ();
17254int
17255main ()
17256{
17257return dlopen ();
17258  ;
17259  return 0;
17260}
17261_ACEOF
17262if ac_fn_c_try_link "$LINENO"; then :
17263  ac_cv_lib_dl_dlopen=yes
17264else
17265  ac_cv_lib_dl_dlopen=no
17266fi
17267rm -f core conftest.err conftest.$ac_objext \
17268    conftest$ac_exeext conftest.$ac_ext
17269LIBS=$ac_check_lib_save_LIBS
17270fi
17271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17272$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17273if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17274  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17275else
17276  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17277$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17278if ${ac_cv_lib_svld_dlopen+:} false; then :
17279  $as_echo_n "(cached) " >&6
17280else
17281  ac_check_lib_save_LIBS=$LIBS
17282LIBS="-lsvld  $LIBS"
17283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17284/* end confdefs.h.  */
17285
17286/* Override any GCC internal prototype to avoid an error.
17287   Use char because int might match the return type of a GCC
17288   builtin and then its argument prototype would still apply.  */
17289#ifdef __cplusplus
17290extern "C"
17291#endif
17292char dlopen ();
17293int
17294main ()
17295{
17296return dlopen ();
17297  ;
17298  return 0;
17299}
17300_ACEOF
17301if ac_fn_c_try_link "$LINENO"; then :
17302  ac_cv_lib_svld_dlopen=yes
17303else
17304  ac_cv_lib_svld_dlopen=no
17305fi
17306rm -f core conftest.err conftest.$ac_objext \
17307    conftest$ac_exeext conftest.$ac_ext
17308LIBS=$ac_check_lib_save_LIBS
17309fi
17310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17311$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17312if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17313  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17314else
17315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17316$as_echo_n "checking for dld_link in -ldld... " >&6; }
17317if ${ac_cv_lib_dld_dld_link+:} false; then :
17318  $as_echo_n "(cached) " >&6
17319else
17320  ac_check_lib_save_LIBS=$LIBS
17321LIBS="-ldld  $LIBS"
17322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17323/* end confdefs.h.  */
17324
17325/* Override any GCC internal prototype to avoid an error.
17326   Use char because int might match the return type of a GCC
17327   builtin and then its argument prototype would still apply.  */
17328#ifdef __cplusplus
17329extern "C"
17330#endif
17331char dld_link ();
17332int
17333main ()
17334{
17335return dld_link ();
17336  ;
17337  return 0;
17338}
17339_ACEOF
17340if ac_fn_c_try_link "$LINENO"; then :
17341  ac_cv_lib_dld_dld_link=yes
17342else
17343  ac_cv_lib_dld_dld_link=no
17344fi
17345rm -f core conftest.err conftest.$ac_objext \
17346    conftest$ac_exeext conftest.$ac_ext
17347LIBS=$ac_check_lib_save_LIBS
17348fi
17349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17350$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17351if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17352  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17353fi
17354
17355
17356fi
17357
17358
17359fi
17360
17361
17362fi
17363
17364
17365fi
17366
17367
17368fi
17369
17370    ;;
17371  esac
17372
17373  if test "x$lt_cv_dlopen" != xno; then
17374    enable_dlopen=yes
17375  else
17376    enable_dlopen=no
17377  fi
17378
17379  case $lt_cv_dlopen in
17380  dlopen)
17381    save_CPPFLAGS="$CPPFLAGS"
17382    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17383
17384    save_LDFLAGS="$LDFLAGS"
17385    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17386
17387    save_LIBS="$LIBS"
17388    LIBS="$lt_cv_dlopen_libs $LIBS"
17389
17390    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17391$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17392if ${lt_cv_dlopen_self+:} false; then :
17393  $as_echo_n "(cached) " >&6
17394else
17395  	  if test "$cross_compiling" = yes; then :
17396  lt_cv_dlopen_self=cross
17397else
17398  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17399  lt_status=$lt_dlunknown
17400  cat > conftest.$ac_ext <<_LT_EOF
17401#line $LINENO "configure"
17402#include "confdefs.h"
17403
17404#if HAVE_DLFCN_H
17405#include <dlfcn.h>
17406#endif
17407
17408#include <stdio.h>
17409
17410#ifdef RTLD_GLOBAL
17411#  define LT_DLGLOBAL		RTLD_GLOBAL
17412#else
17413#  ifdef DL_GLOBAL
17414#    define LT_DLGLOBAL		DL_GLOBAL
17415#  else
17416#    define LT_DLGLOBAL		0
17417#  endif
17418#endif
17419
17420/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17421   find out it does not work in some platform. */
17422#ifndef LT_DLLAZY_OR_NOW
17423#  ifdef RTLD_LAZY
17424#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17425#  else
17426#    ifdef DL_LAZY
17427#      define LT_DLLAZY_OR_NOW		DL_LAZY
17428#    else
17429#      ifdef RTLD_NOW
17430#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17431#      else
17432#        ifdef DL_NOW
17433#          define LT_DLLAZY_OR_NOW	DL_NOW
17434#        else
17435#          define LT_DLLAZY_OR_NOW	0
17436#        endif
17437#      endif
17438#    endif
17439#  endif
17440#endif
17441
17442/* When -fvisbility=hidden is used, assume the code has been annotated
17443   correspondingly for the symbols needed.  */
17444#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17445int fnord () __attribute__((visibility("default")));
17446#endif
17447
17448int fnord () { return 42; }
17449int main ()
17450{
17451  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17452  int status = $lt_dlunknown;
17453
17454  if (self)
17455    {
17456      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17457      else
17458        {
17459	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17460          else puts (dlerror ());
17461	}
17462      /* dlclose (self); */
17463    }
17464  else
17465    puts (dlerror ());
17466
17467  return status;
17468}
17469_LT_EOF
17470  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17471  (eval $ac_link) 2>&5
17472  ac_status=$?
17473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17474  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17475    (./conftest; exit; ) >&5 2>/dev/null
17476    lt_status=$?
17477    case x$lt_status in
17478      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17479      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17480      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17481    esac
17482  else :
17483    # compilation failed
17484    lt_cv_dlopen_self=no
17485  fi
17486fi
17487rm -fr conftest*
17488
17489
17490fi
17491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17492$as_echo "$lt_cv_dlopen_self" >&6; }
17493
17494    if test "x$lt_cv_dlopen_self" = xyes; then
17495      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17496      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17497$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17498if ${lt_cv_dlopen_self_static+:} false; then :
17499  $as_echo_n "(cached) " >&6
17500else
17501  	  if test "$cross_compiling" = yes; then :
17502  lt_cv_dlopen_self_static=cross
17503else
17504  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17505  lt_status=$lt_dlunknown
17506  cat > conftest.$ac_ext <<_LT_EOF
17507#line $LINENO "configure"
17508#include "confdefs.h"
17509
17510#if HAVE_DLFCN_H
17511#include <dlfcn.h>
17512#endif
17513
17514#include <stdio.h>
17515
17516#ifdef RTLD_GLOBAL
17517#  define LT_DLGLOBAL		RTLD_GLOBAL
17518#else
17519#  ifdef DL_GLOBAL
17520#    define LT_DLGLOBAL		DL_GLOBAL
17521#  else
17522#    define LT_DLGLOBAL		0
17523#  endif
17524#endif
17525
17526/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17527   find out it does not work in some platform. */
17528#ifndef LT_DLLAZY_OR_NOW
17529#  ifdef RTLD_LAZY
17530#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17531#  else
17532#    ifdef DL_LAZY
17533#      define LT_DLLAZY_OR_NOW		DL_LAZY
17534#    else
17535#      ifdef RTLD_NOW
17536#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17537#      else
17538#        ifdef DL_NOW
17539#          define LT_DLLAZY_OR_NOW	DL_NOW
17540#        else
17541#          define LT_DLLAZY_OR_NOW	0
17542#        endif
17543#      endif
17544#    endif
17545#  endif
17546#endif
17547
17548/* When -fvisbility=hidden is used, assume the code has been annotated
17549   correspondingly for the symbols needed.  */
17550#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17551int fnord () __attribute__((visibility("default")));
17552#endif
17553
17554int fnord () { return 42; }
17555int main ()
17556{
17557  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17558  int status = $lt_dlunknown;
17559
17560  if (self)
17561    {
17562      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17563      else
17564        {
17565	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17566          else puts (dlerror ());
17567	}
17568      /* dlclose (self); */
17569    }
17570  else
17571    puts (dlerror ());
17572
17573  return status;
17574}
17575_LT_EOF
17576  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17577  (eval $ac_link) 2>&5
17578  ac_status=$?
17579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17580  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17581    (./conftest; exit; ) >&5 2>/dev/null
17582    lt_status=$?
17583    case x$lt_status in
17584      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17585      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17586      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17587    esac
17588  else :
17589    # compilation failed
17590    lt_cv_dlopen_self_static=no
17591  fi
17592fi
17593rm -fr conftest*
17594
17595
17596fi
17597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17598$as_echo "$lt_cv_dlopen_self_static" >&6; }
17599    fi
17600
17601    CPPFLAGS="$save_CPPFLAGS"
17602    LDFLAGS="$save_LDFLAGS"
17603    LIBS="$save_LIBS"
17604    ;;
17605  esac
17606
17607  case $lt_cv_dlopen_self in
17608  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17609  *) enable_dlopen_self=unknown ;;
17610  esac
17611
17612  case $lt_cv_dlopen_self_static in
17613  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17614  *) enable_dlopen_self_static=unknown ;;
17615  esac
17616fi
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634striplib=
17635old_striplib=
17636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17637$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17638if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17639  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17640  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17642$as_echo "yes" >&6; }
17643else
17644# FIXME - insert some real tests, host_os isn't really good enough
17645  case $host_os in
17646  darwin*)
17647    if test -n "$STRIP" ; then
17648      striplib="$STRIP -x"
17649      old_striplib="$STRIP -S"
17650      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17651$as_echo "yes" >&6; }
17652    else
17653      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17654$as_echo "no" >&6; }
17655    fi
17656    ;;
17657  *)
17658    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17659$as_echo "no" >&6; }
17660    ;;
17661  esac
17662fi
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675  # Report which library types will actually be built
17676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17677$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17679$as_echo "$can_build_shared" >&6; }
17680
17681  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17682$as_echo_n "checking whether to build shared libraries... " >&6; }
17683  test "$can_build_shared" = "no" && enable_shared=no
17684
17685  # On AIX, shared libraries and static libraries use the same namespace, and
17686  # are all built from PIC.
17687  case $host_os in
17688  aix3*)
17689    test "$enable_shared" = yes && enable_static=no
17690    if test -n "$RANLIB"; then
17691      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17692      postinstall_cmds='$RANLIB $lib'
17693    fi
17694    ;;
17695
17696  aix[4-9]*)
17697    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17698      test "$enable_shared" = yes && enable_static=no
17699    fi
17700    ;;
17701  esac
17702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17703$as_echo "$enable_shared" >&6; }
17704
17705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17706$as_echo_n "checking whether to build static libraries... " >&6; }
17707  # Make sure either enable_shared or enable_static is yes.
17708  test "$enable_shared" = yes || enable_static=yes
17709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17710$as_echo "$enable_static" >&6; }
17711
17712
17713
17714
17715fi
17716ac_ext=c
17717ac_cpp='$CPP $CPPFLAGS'
17718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17720ac_compiler_gnu=$ac_cv_c_compiler_gnu
17721
17722CC="$lt_save_CC"
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738        ac_config_commands="$ac_config_commands libtool"
17739
17740
17741
17742
17743# Only expand once:
17744
17745
17746        # get libtool's setting of shlibpath_var
17747        eval `grep "^shlibpath_var=[A-Z_]*$" $apr_builddir/libtool`
17748        if test "x$shlibpath_var" = "x"; then
17749            shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
17750        fi
17751    fi
17752    ;;
17753esac
17754
17755
17756# Check whether --with-installbuilddir was given.
17757if test "${with_installbuilddir+set}" = set; then :
17758  withval=$with_installbuilddir;  installbuilddir=$withval
17759else
17760   installbuilddir="${datadir}/build-${APR_MAJOR_VERSION}"
17761fi
17762
17763
17764
17765
17766# Check whether --with-libtool was given.
17767if test "${with_libtool+set}" = set; then :
17768  withval=$with_libtool;  use_libtool=$withval
17769else
17770   use_libtool="yes"
17771fi
17772
17773
17774if test "x$use_libtool" = "xyes"; then
17775      lt_compile='$(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) -o $@ -c $< && touch $@'
17776      LT_VERSION="-version-info `$get_version libtool $version_hdr APR`"
17777      link="\$(LIBTOOL) \$(LTFLAGS) --mode=link \$(COMPILE) \$(LT_LDFLAGS) \$(LT_VERSION) \$(ALL_LDFLAGS) -o \$@"
17778      so_ext='lo'
17779      lib_target='-rpath $(libdir) $(OBJECTS)'
17780      export_lib_target='-rpath \$(libdir) \$(OBJECTS)'
17781else
17782      lt_compile='$(COMPILE) -o $@ -c $<'
17783      link='$(AR) cr $(TARGET_LIB) $(OBJECTS); $(RANLIB) $(TARGET_LIB)'
17784      so_ext='o'
17785      lib_target=''
17786      export_lib_target=''
17787fi
17788
17789case $host in
17790    *-solaris2*)
17791        apr_platform_runtime_link_flag="-R"
17792        ;;
17793    *-mingw* | *-cygwin*)
17794        LT_LDFLAGS="$LT_LDFLAGS -no-undefined"
17795        ;;
17796    *)
17797        ;;
17798esac
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810nl='
17811'
17812echo "${nl}Check for compiler flags..."
17813
17814
17815case $host in
17816    *os390)
17817        if test "$ac_test_CFLAGS" != set; then
17818
17819  if test "x$CFLAGS" = "x-g"; then
17820    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
17821    CFLAGS=""
17822  else
17823    apr_new_bugger=""
17824    apr_removed=0
17825    for i in $CFLAGS; do
17826      if test "x$i" != "x-g"; then
17827        apr_new_bugger="$apr_new_bugger $i"
17828      else
17829        apr_removed=1
17830      fi
17831    done
17832    if test $apr_removed = "1"; then
17833      test "x$silent" != "xyes" && echo "  removed \"-g\" from CFLAGS"
17834      CFLAGS=$apr_new_bugger
17835    fi
17836  fi
17837
17838        fi
17839        ;;
17840esac
17841
17842# Check whether --enable-debug was given.
17843if test "${enable_debug+set}" = set; then :
17844  enableval=$enable_debug;
17845  if test "x$CFLAGS" = "x"; then
17846    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-g\""
17847    CFLAGS="-g"
17848  else
17849    apr_addto_bugger="-g"
17850    for i in $apr_addto_bugger; do
17851      apr_addto_duplicate="0"
17852      for j in $CFLAGS; do
17853        if test "x$i" = "x$j"; then
17854          apr_addto_duplicate="1"
17855          break
17856        fi
17857      done
17858      if test $apr_addto_duplicate = "0"; then
17859        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
17860        CFLAGS="$CFLAGS $i"
17861      fi
17862    done
17863  fi
17864
17865   if test "$GCC" = "yes"; then
17866
17867  if test "x$CFLAGS" = "x"; then
17868    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wall\""
17869    CFLAGS="-Wall"
17870  else
17871    apr_addto_bugger="-Wall"
17872    for i in $apr_addto_bugger; do
17873      apr_addto_duplicate="0"
17874      for j in $CFLAGS; do
17875        if test "x$i" = "x$j"; then
17876          apr_addto_duplicate="1"
17877          break
17878        fi
17879      done
17880      if test $apr_addto_duplicate = "0"; then
17881        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
17882        CFLAGS="$CFLAGS $i"
17883      fi
17884    done
17885  fi
17886
17887   elif test "$AIX_XLC" = "yes"; then
17888
17889  if test "x$CFLAGS" = "x"; then
17890    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-qfullpath\""
17891    CFLAGS="-qfullpath"
17892  else
17893    apr_addto_bugger="-qfullpath"
17894    for i in $apr_addto_bugger; do
17895      apr_addto_duplicate="0"
17896      for j in $CFLAGS; do
17897        if test "x$i" = "x$j"; then
17898          apr_addto_duplicate="1"
17899          break
17900        fi
17901      done
17902      if test $apr_addto_duplicate = "0"; then
17903        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
17904        CFLAGS="$CFLAGS $i"
17905      fi
17906    done
17907  fi
17908
17909   fi
17910
17911fi
17912
17913# Check whether --enable-maintainer-mode was given.
17914if test "${enable_maintainer_mode+set}" = set; then :
17915  enableval=$enable_maintainer_mode;
17916  if test "x$CFLAGS" = "x"; then
17917    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-g\""
17918    CFLAGS="-g"
17919  else
17920    apr_addto_bugger="-g"
17921    for i in $apr_addto_bugger; do
17922      apr_addto_duplicate="0"
17923      for j in $CFLAGS; do
17924        if test "x$i" = "x$j"; then
17925          apr_addto_duplicate="1"
17926          break
17927        fi
17928      done
17929      if test $apr_addto_duplicate = "0"; then
17930        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
17931        CFLAGS="$CFLAGS $i"
17932      fi
17933    done
17934  fi
17935
17936   if test "$GCC" = "yes"; then
17937
17938  if test "x$CFLAGS" = "x"; then
17939    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations\""
17940    CFLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
17941  else
17942    apr_addto_bugger="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
17943    for i in $apr_addto_bugger; do
17944      apr_addto_duplicate="0"
17945      for j in $CFLAGS; do
17946        if test "x$i" = "x$j"; then
17947          apr_addto_duplicate="1"
17948          break
17949        fi
17950      done
17951      if test $apr_addto_duplicate = "0"; then
17952        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
17953        CFLAGS="$CFLAGS $i"
17954      fi
17955    done
17956  fi
17957
17958   elif test "$AIX_XLC" = "yes"; then
17959
17960  if test "x$CFLAGS" = "x"; then
17961    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro\""
17962    CFLAGS="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
17963  else
17964    apr_addto_bugger="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
17965    for i in $apr_addto_bugger; do
17966      apr_addto_duplicate="0"
17967      for j in $CFLAGS; do
17968        if test "x$i" = "x$j"; then
17969          apr_addto_duplicate="1"
17970          break
17971        fi
17972      done
17973      if test $apr_addto_duplicate = "0"; then
17974        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
17975        CFLAGS="$CFLAGS $i"
17976      fi
17977    done
17978  fi
17979
17980   fi
17981
17982fi
17983
17984# Check whether --enable-profile was given.
17985if test "${enable_profile+set}" = set; then :
17986  enableval=$enable_profile; if test "$GCC" = "yes"; then
17987
17988  if test "x$CFLAGS" = "x"; then
17989    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-pg\""
17990    CFLAGS="-pg"
17991  else
17992    apr_addto_bugger="-pg"
17993    for i in $apr_addto_bugger; do
17994      apr_addto_duplicate="0"
17995      for j in $CFLAGS; do
17996        if test "x$i" = "x$j"; then
17997          apr_addto_duplicate="1"
17998          break
17999        fi
18000      done
18001      if test $apr_addto_duplicate = "0"; then
18002        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
18003        CFLAGS="$CFLAGS $i"
18004      fi
18005    done
18006  fi
18007
18008
18009  if test "x$CFLAGS" = "x-g"; then
18010    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
18011    CFLAGS=""
18012  else
18013    apr_new_bugger=""
18014    apr_removed=0
18015    for i in $CFLAGS; do
18016      if test "x$i" != "x-g"; then
18017        apr_new_bugger="$apr_new_bugger $i"
18018      else
18019        apr_removed=1
18020      fi
18021    done
18022    if test $apr_removed = "1"; then
18023      test "x$silent" != "xyes" && echo "  removed \"-g\" from CFLAGS"
18024      CFLAGS=$apr_new_bugger
18025    fi
18026  fi
18027
18028    if test "$host" = "i586-pc-beos"; then
18029
18030  if test "x$CFLAGS" = "x-O2"; then
18031    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
18032    CFLAGS=""
18033  else
18034    apr_new_bugger=""
18035    apr_removed=0
18036    for i in $CFLAGS; do
18037      if test "x$i" != "x-O2"; then
18038        apr_new_bugger="$apr_new_bugger $i"
18039      else
18040        apr_removed=1
18041      fi
18042    done
18043    if test $apr_removed = "1"; then
18044      test "x$silent" != "xyes" && echo "  removed \"-O2\" from CFLAGS"
18045      CFLAGS=$apr_new_bugger
18046    fi
18047  fi
18048
18049
18050  if test "x$CFLAGS" = "x"; then
18051    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O1\""
18052    CFLAGS="-O1"
18053  else
18054    apr_addto_bugger="-O1"
18055    for i in $apr_addto_bugger; do
18056      apr_addto_duplicate="0"
18057      for j in $CFLAGS; do
18058        if test "x$i" = "x$j"; then
18059          apr_addto_duplicate="1"
18060          break
18061        fi
18062      done
18063      if test $apr_addto_duplicate = "0"; then
18064        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
18065        CFLAGS="$CFLAGS $i"
18066      fi
18067    done
18068  fi
18069
18070
18071  if test "x$LDFLAGS" = "x"; then
18072    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-p\""
18073    LDFLAGS="-p"
18074  else
18075    apr_addto_bugger="-p"
18076    for i in $apr_addto_bugger; do
18077      apr_addto_duplicate="0"
18078      for j in $LDFLAGS; do
18079        if test "x$i" = "x$j"; then
18080          apr_addto_duplicate="1"
18081          break
18082        fi
18083      done
18084      if test $apr_addto_duplicate = "0"; then
18085        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
18086        LDFLAGS="$LDFLAGS $i"
18087      fi
18088    done
18089  fi
18090
18091    fi
18092  fi
18093
18094fi
18095
18096# Check whether --enable-pool-debug was given.
18097if test "${enable_pool_debug+set}" = set; then :
18098  enableval=$enable_pool_debug;  if test -z "$enableval"; then
18099
18100  if test "x$CPPFLAGS" = "x"; then
18101    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAPR_POOL_DEBUG=1\""
18102    CPPFLAGS="-DAPR_POOL_DEBUG=1"
18103  else
18104    apr_addto_bugger="-DAPR_POOL_DEBUG=1"
18105    for i in $apr_addto_bugger; do
18106      apr_addto_duplicate="0"
18107      for j in $CPPFLAGS; do
18108        if test "x$i" = "x$j"; then
18109          apr_addto_duplicate="1"
18110          break
18111        fi
18112      done
18113      if test $apr_addto_duplicate = "0"; then
18114        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18115        CPPFLAGS="$CPPFLAGS $i"
18116      fi
18117    done
18118  fi
18119
18120    elif test ! "$enableval" = "no"; then
18121        apr_pool_debug=1
18122
18123        for i in $enableval
18124        do
18125            flag=0
18126
18127            case $i in
18128            yes)
18129                flag=1
18130                ;;
18131            verbose)
18132                flag=2
18133                ;;
18134            lifetime)
18135                flag=4
18136                ;;
18137            owner)
18138                flag=8
18139                ;;
18140            verbose-alloc)
18141                flag=16
18142                ;;
18143            all)
18144                apr_pool_debug=31
18145                ;;
18146            *)
18147                ;;
18148            esac
18149
18150            if test $flag -gt 0; then
18151                apr_pool_debug=`expr '(' $apr_pool_debug - $apr_pool_debug % \
18152                    '(' $flag '*' 2 ')' ')' + $flag + $apr_pool_debug % $flag`
18153            fi
18154        done
18155
18156
18157  if test "x$CPPFLAGS" = "x"; then
18158    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAPR_POOL_DEBUG=$apr_pool_debug\""
18159    CPPFLAGS="-DAPR_POOL_DEBUG=$apr_pool_debug"
18160  else
18161    apr_addto_bugger="-DAPR_POOL_DEBUG=$apr_pool_debug"
18162    for i in $apr_addto_bugger; do
18163      apr_addto_duplicate="0"
18164      for j in $CPPFLAGS; do
18165        if test "x$i" = "x$j"; then
18166          apr_addto_duplicate="1"
18167          break
18168        fi
18169      done
18170      if test $apr_addto_duplicate = "0"; then
18171        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18172        CPPFLAGS="$CPPFLAGS $i"
18173      fi
18174    done
18175  fi
18176
18177    fi
18178
18179fi
18180
18181
18182if test "$host" = "i586-pc-beos"; then
18183  # Check whether --enable-malloc-debug was given.
18184if test "${enable_malloc_debug+set}" = set; then :
18185  enableval=$enable_malloc_debug;
18186  if test "x$CFLAGS" = "x-O2"; then
18187    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
18188    CFLAGS=""
18189  else
18190    apr_new_bugger=""
18191    apr_removed=0
18192    for i in $CFLAGS; do
18193      if test "x$i" != "x-O2"; then
18194        apr_new_bugger="$apr_new_bugger $i"
18195      else
18196        apr_removed=1
18197      fi
18198    done
18199    if test $apr_removed = "1"; then
18200      test "x$silent" != "xyes" && echo "  removed \"-O2\" from CFLAGS"
18201      CFLAGS=$apr_new_bugger
18202    fi
18203  fi
18204
18205
18206  if test "x$CPPFLAGS" = "x"; then
18207    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-fcheck-memory-usage -D_KERNEL_MODE\""
18208    CPPFLAGS="-fcheck-memory-usage -D_KERNEL_MODE"
18209  else
18210    apr_addto_bugger="-fcheck-memory-usage -D_KERNEL_MODE"
18211    for i in $apr_addto_bugger; do
18212      apr_addto_duplicate="0"
18213      for j in $CPPFLAGS; do
18214        if test "x$i" = "x$j"; then
18215          apr_addto_duplicate="1"
18216          break
18217        fi
18218      done
18219      if test $apr_addto_duplicate = "0"; then
18220        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18221        CPPFLAGS="$CPPFLAGS $i"
18222      fi
18223    done
18224  fi
18225
18226
18227fi
18228 fi
18229
18230# this is the place to put specific options for platform/compiler
18231# combinations
18232case "$host:$CC" in
18233    *-hp-hpux*:cc )
18234
18235  if test "x$CFLAGS" = "x"; then
18236    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Ae +Z\""
18237    CFLAGS="-Ae +Z"
18238  else
18239    apr_addto_bugger="-Ae +Z"
18240    for i in $apr_addto_bugger; do
18241      apr_addto_duplicate="0"
18242      for j in $CFLAGS; do
18243        if test "x$i" = "x$j"; then
18244          apr_addto_duplicate="1"
18245          break
18246        fi
18247      done
18248      if test $apr_addto_duplicate = "0"; then
18249        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
18250        CFLAGS="$CFLAGS $i"
18251      fi
18252    done
18253  fi
18254
18255	case $host in
18256	  ia64-* )
18257	    ;;
18258          * )
18259	    if echo "$CFLAGS " | grep '+DA' >/dev/null; then :
18260	    else
18261
18262  if test "x$CFLAGS" = "x"; then
18263    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"+DAportable\""
18264    CFLAGS="+DAportable"
18265  else
18266    apr_addto_bugger="+DAportable"
18267    for i in $apr_addto_bugger; do
18268      apr_addto_duplicate="0"
18269      for j in $CFLAGS; do
18270        if test "x$i" = "x$j"; then
18271          apr_addto_duplicate="1"
18272          break
18273        fi
18274      done
18275      if test $apr_addto_duplicate = "0"; then
18276        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
18277        CFLAGS="$CFLAGS $i"
18278      fi
18279    done
18280  fi
18281
18282	    fi
18283	    ;;
18284        esac
18285	;;
18286    powerpc-*-beos:mwcc* )
18287
18288  test "x$silent" != "xyes" && echo "  forcing CPP to \"mwcc -E\""
18289  CPP="mwcc -E"
18290
18291
18292  test "x$silent" != "xyes" && echo "  forcing CC to \"mwcc\""
18293  CC="mwcc"
18294
18295
18296  test "x$silent" != "xyes" && echo "  forcing AR to \"ar\""
18297  AR="ar"
18298
18299	;;
18300                        *-mingw* | *-cygwin*)
18301        if test "$enable_shared" = "yes"; then
18302
18303  if test "x$INTERNAL_CPPFLAGS" = "x"; then
18304    test "x$silent" != "xyes" && echo "  setting INTERNAL_CPPFLAGS to \"-DAPR_DECLARE_EXPORT\""
18305    INTERNAL_CPPFLAGS="-DAPR_DECLARE_EXPORT"
18306  else
18307    apr_addto_bugger="-DAPR_DECLARE_EXPORT"
18308    for i in $apr_addto_bugger; do
18309      apr_addto_duplicate="0"
18310      for j in $INTERNAL_CPPFLAGS; do
18311        if test "x$i" = "x$j"; then
18312          apr_addto_duplicate="1"
18313          break
18314        fi
18315      done
18316      if test $apr_addto_duplicate = "0"; then
18317        test "x$silent" != "xyes" && echo "  adding \"$i\" to INTERNAL_CPPFLAGS"
18318        INTERNAL_CPPFLAGS="$INTERNAL_CPPFLAGS $i"
18319      fi
18320    done
18321  fi
18322
18323        else
18324
18325  if test "x$CPPFLAGS" = "x"; then
18326    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAPR_DECLARE_STATIC\""
18327    CPPFLAGS="-DAPR_DECLARE_STATIC"
18328  else
18329    apr_addto_bugger="-DAPR_DECLARE_STATIC"
18330    for i in $apr_addto_bugger; do
18331      apr_addto_duplicate="0"
18332      for j in $CPPFLAGS; do
18333        if test "x$i" = "x$j"; then
18334          apr_addto_duplicate="1"
18335          break
18336        fi
18337      done
18338      if test $apr_addto_duplicate = "0"; then
18339        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18340        CPPFLAGS="$CPPFLAGS $i"
18341      fi
18342    done
18343  fi
18344
18345        fi
18346        ;;
18347esac
18348
18349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
18350$as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
18351if ${ap_cv_atomic_builtins+:} false; then :
18352  $as_echo_n "(cached) " >&6
18353else
18354  if test "$cross_compiling" = yes; then :
18355  ap_cv_atomic_builtins=no
18356else
18357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18358/* end confdefs.h.  */
18359
18360int main()
18361{
18362    unsigned long val = 1010, tmp, *mem = &val;
18363
18364    if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
18365        return 1;
18366
18367    tmp = val;
18368
18369    if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
18370        return 1;
18371
18372    if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
18373        return 1;
18374
18375    tmp = 3030;
18376
18377    if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
18378        return 1;
18379
18380    if (__sync_lock_test_and_set(&val, 4040) != 3030)
18381        return 1;
18382
18383    mem = &tmp;
18384
18385    if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
18386        return 1;
18387
18388    __sync_synchronize();
18389
18390    if (mem != &val)
18391        return 1;
18392
18393    return 0;
18394}
18395_ACEOF
18396if ac_fn_c_try_run "$LINENO"; then :
18397  ap_cv_atomic_builtins=yes
18398else
18399  ap_cv_atomic_builtins=no
18400fi
18401rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18402  conftest.$ac_objext conftest.beam conftest.$ac_ext
18403fi
18404
18405fi
18406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_atomic_builtins" >&5
18407$as_echo "$ap_cv_atomic_builtins" >&6; }
18408
18409if test "$ap_cv_atomic_builtins" = "yes"; then
18410
18411$as_echo "#define HAVE_ATOMIC_BUILTINS 1" >>confdefs.h
18412
18413fi
18414
18415case $host in
18416    powerpc-405-*)
18417        # The IBM ppc405cr processor has a bugged stwcx instruction.
18418
18419$as_echo "#define PPC405_ERRATA 1" >>confdefs.h
18420
18421        ;;
18422    *)
18423        ;;
18424esac
18425
18426
18427if test "$GCC" = "yes"; then
18428  MKDEP='$(CC) -MM'
18429else
18430  rm -f conftest.c
18431  cat > conftest.c <<EOF
18432#include <sys/types.h>
18433  int main() { return 0; }
18434EOF
18435  MKDEP="true"
18436  for i in "$CC -MM" "$CC -M" "$CPP -MM" "$CPP -M" "cpp -M"; do
18437    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $i can create proper make dependencies" >&5
18438$as_echo_n "checking if $i can create proper make dependencies... " >&6; }
18439    if $i conftest.c 2>/dev/null | grep 'conftest.o: conftest.c' >/dev/null; then
18440      MKDEP=$i
18441      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18442$as_echo "yes" >&6; }
18443      break;
18444    fi
18445    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18446$as_echo "no" >&6; }
18447  done
18448  rm -f conftest.c
18449fi
18450
18451
18452
18453
18454proc_mutex_is_global=0
18455
18456config_subdirs="none"
18457INSTALL_SUBDIRS="none"
18458OBJECTS_PLATFORM='$(OBJECTS_unix)'
18459
18460case $host in
18461   i386-ibm-aix* | *-ibm-aix[1-2].* | *-ibm-aix3.* | *-ibm-aix4.1 | *-ibm-aix4.1.* | *-ibm-aix4.2 | *-ibm-aix4.2.*)
18462       OSDIR="aix"
18463
18464  if test "x$LDFLAGS" = "x"; then
18465    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-lld\""
18466    LDFLAGS="-lld"
18467  else
18468    apr_addto_bugger="-lld"
18469    for i in $apr_addto_bugger; do
18470      apr_addto_duplicate="0"
18471      for j in $LDFLAGS; do
18472        if test "x$i" = "x$j"; then
18473          apr_addto_duplicate="1"
18474          break
18475        fi
18476      done
18477      if test $apr_addto_duplicate = "0"; then
18478        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
18479        LDFLAGS="$LDFLAGS $i"
18480      fi
18481    done
18482  fi
18483
18484       eolstr="\\n"
18485       OBJECTS_PLATFORM='$(OBJECTS_aix)'
18486       ;;
18487   *-os2*)
18488
18489  if test "x$CPPFLAGS" = "x"; then
18490    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DOS2\""
18491    CPPFLAGS="-DOS2"
18492  else
18493    apr_addto_bugger="-DOS2"
18494    for i in $apr_addto_bugger; do
18495      apr_addto_duplicate="0"
18496      for j in $CPPFLAGS; do
18497        if test "x$i" = "x$j"; then
18498          apr_addto_duplicate="1"
18499          break
18500        fi
18501      done
18502      if test $apr_addto_duplicate = "0"; then
18503        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18504        CPPFLAGS="$CPPFLAGS $i"
18505      fi
18506    done
18507  fi
18508
18509
18510  if test "x$CFLAGS" = "x"; then
18511    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Zmt\""
18512    CFLAGS="-Zmt"
18513  else
18514    apr_addto_bugger="-Zmt"
18515    for i in $apr_addto_bugger; do
18516      apr_addto_duplicate="0"
18517      for j in $CFLAGS; do
18518        if test "x$i" = "x$j"; then
18519          apr_addto_duplicate="1"
18520          break
18521        fi
18522      done
18523      if test $apr_addto_duplicate = "0"; then
18524        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
18525        CFLAGS="$CFLAGS $i"
18526      fi
18527    done
18528  fi
18529
18530       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random in -lbsd" >&5
18531$as_echo_n "checking for random in -lbsd... " >&6; }
18532if ${ac_cv_lib_bsd_random+:} false; then :
18533  $as_echo_n "(cached) " >&6
18534else
18535  ac_check_lib_save_LIBS=$LIBS
18536LIBS="-lbsd  $LIBS"
18537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18538/* end confdefs.h.  */
18539
18540/* Override any GCC internal prototype to avoid an error.
18541   Use char because int might match the return type of a GCC
18542   builtin and then its argument prototype would still apply.  */
18543#ifdef __cplusplus
18544extern "C"
18545#endif
18546char random ();
18547int
18548main ()
18549{
18550return random ();
18551  ;
18552  return 0;
18553}
18554_ACEOF
18555if ac_fn_c_try_link "$LINENO"; then :
18556  ac_cv_lib_bsd_random=yes
18557else
18558  ac_cv_lib_bsd_random=no
18559fi
18560rm -f core conftest.err conftest.$ac_objext \
18561    conftest$ac_exeext conftest.$ac_ext
18562LIBS=$ac_check_lib_save_LIBS
18563fi
18564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_random" >&5
18565$as_echo "$ac_cv_lib_bsd_random" >&6; }
18566if test "x$ac_cv_lib_bsd_random" = xyes; then :
18567  cat >>confdefs.h <<_ACEOF
18568#define HAVE_LIBBSD 1
18569_ACEOF
18570
18571  LIBS="-lbsd $LIBS"
18572
18573fi
18574
18575       OSDIR="os2"
18576       enable_threads="system_threads"
18577       eolstr="\\r\\n"
18578       file_as_socket="0"
18579       proc_mutex_is_global=1
18580       OBJECTS_PLATFORM='$(OBJECTS_os2)'
18581       ;;
18582   *beos*)
18583       OSDIR="beos"
18584
18585  if test "x$CPPFLAGS" = "x"; then
18586    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DBEOS\""
18587    CPPFLAGS="-DBEOS"
18588  else
18589    apr_addto_bugger="-DBEOS"
18590    for i in $apr_addto_bugger; do
18591      apr_addto_duplicate="0"
18592      for j in $CPPFLAGS; do
18593        if test "x$i" = "x$j"; then
18594          apr_addto_duplicate="1"
18595          break
18596        fi
18597      done
18598      if test $apr_addto_duplicate = "0"; then
18599        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18600        CPPFLAGS="$CPPFLAGS $i"
18601      fi
18602    done
18603  fi
18604
18605       enable_threads="system_threads"
18606       native_mmap_emul="1"
18607
18608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BONE_VERSION in sys/socket.h" >&5
18609$as_echo_n "checking for BONE_VERSION in sys/socket.h... " >&6; }
18610if ${ac_cv_define_BONE_VERSION+:} false; then :
18611  $as_echo_n "(cached) " >&6
18612else
18613
18614    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18615/* end confdefs.h.  */
18616
18617#include <sys/socket.h>
18618#ifdef BONE_VERSION
18619YES_IS_DEFINED
18620#endif
18621
18622_ACEOF
18623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18624  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
18625  ac_cv_define_BONE_VERSION=yes
18626else
18627  ac_cv_define_BONE_VERSION=no
18628fi
18629rm -f conftest*
18630
18631
18632fi
18633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_BONE_VERSION" >&5
18634$as_echo "$ac_cv_define_BONE_VERSION" >&6; }
18635  if test "$ac_cv_define_BONE_VERSION" = "yes"; then
18636
18637$as_echo "#define HAVE_BONE_VERSION 1" >>confdefs.h
18638
18639  fi
18640
18641       eolstr="\\n"
18642       osver=`uname -r`
18643       proc_mutex_is_global=1
18644       OBJECTS_PLATFORM='$(OBJECTS_beos)'
18645       case $osver in
18646          5.0.4)
18647             file_as_socket="1"
18648             ;;
18649          *)
18650             file_as_socket="0"
18651             ;;
18652       esac
18653       ;;
18654   *os390)
18655       OSDIR="os390"
18656       OBJECTS_PLATFORM='$(OBJECTS_os390)'
18657       eolstr="\\n"
18658       ;;
18659   *os400)
18660       OSDIR="as400"
18661       eolstr="\\n"
18662       ;;
18663   *mingw*)
18664       OSDIR="win32"
18665       enable_threads="system_threads"
18666       eolstr="\\r\\n"
18667       file_as_socket=0
18668       proc_mutex_is_global=1
18669       OBJECTS_PLATFORM='$(OBJECTS_win32)'
18670       ;;
18671   *cygwin*)
18672       OSDIR="unix"
18673       enable_threads="no"
18674       eolstr="\\n"
18675       ;;
18676   *hpux10* )
18677       enable_threads="no"
18678       OSDIR="unix"
18679       eolstr="\\n"
18680       ;;
18681   *)
18682       OSDIR="unix"
18683       eolstr="\\n"
18684       ;;
18685esac
18686
18687
18688
18689# Check whether LFS has explicitly been disabled
18690# Check whether --enable-lfs was given.
18691if test "${enable_lfs+set}" = set; then :
18692  enableval=$enable_lfs; apr_lfs_choice=$enableval
18693else
18694  apr_lfs_choice=yes
18695fi
18696
18697
18698if test "$apr_lfs_choice" = "yes"; then
18699   # Check whether the transitional LFS API is sufficient
18700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable -D_LARGEFILE64_SOURCE" >&5
18701$as_echo_n "checking whether to enable -D_LARGEFILE64_SOURCE... " >&6; }
18702if ${apr_cv_use_lfs64+:} false; then :
18703  $as_echo_n "(cached) " >&6
18704else
18705
18706   apr_save_CPPFLAGS=$CPPFLAGS
18707   CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
18708   if test "$cross_compiling" = yes; then :
18709  apr_cv_use_lfs64=no
18710else
18711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18712/* end confdefs.h.  */
18713
18714#include <sys/types.h>
18715#include <sys/stat.h>
18716#include <fcntl.h>
18717#include <stdlib.h>
18718#include <stdio.h>
18719#include <unistd.h>
18720
18721void main(void)
18722{
18723    int fd, ret = 0;
18724    struct stat64 st;
18725    off64_t off = 4242;
18726
18727    if (sizeof(off64_t) != 8 || sizeof(off_t) != 4)
18728       exit(1);
18729    if ((fd = open("conftest.lfs", O_LARGEFILE|O_CREAT|O_WRONLY, 0644)) < 0)
18730       exit(2);
18731    if (ftruncate64(fd, off) != 0)
18732       ret = 3;
18733    else if (fstat64(fd, &st) != 0 || st.st_size != off)
18734       ret = 4;
18735    else if (lseek64(fd, off, SEEK_SET) != off)
18736       ret = 5;
18737    else if (close(fd) != 0)
18738       ret = 6;
18739    else if (lstat64("conftest.lfs", &st) != 0 || st.st_size != off)
18740       ret = 7;
18741    else if (stat64("conftest.lfs", &st) != 0 || st.st_size != off)
18742       ret = 8;
18743    unlink("conftest.lfs");
18744
18745    exit(ret);
18746}
18747_ACEOF
18748if ac_fn_c_try_run "$LINENO"; then :
18749  apr_cv_use_lfs64=yes
18750else
18751  apr_cv_use_lfs64=no
18752fi
18753rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18754  conftest.$ac_objext conftest.beam conftest.$ac_ext
18755fi
18756
18757   CPPFLAGS=$apr_save_CPPFLAGS
18758fi
18759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_use_lfs64" >&5
18760$as_echo "$apr_cv_use_lfs64" >&6; }
18761   if test "$apr_cv_use_lfs64" = "yes"; then
18762
18763  if test "x$CPPFLAGS" = "x"; then
18764    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_LARGEFILE64_SOURCE\""
18765    CPPFLAGS="-D_LARGEFILE64_SOURCE"
18766  else
18767    apr_addto_bugger="-D_LARGEFILE64_SOURCE"
18768    for i in $apr_addto_bugger; do
18769      apr_addto_duplicate="0"
18770      for j in $CPPFLAGS; do
18771        if test "x$i" = "x$j"; then
18772          apr_addto_duplicate="1"
18773          break
18774        fi
18775      done
18776      if test $apr_addto_duplicate = "0"; then
18777        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18778        CPPFLAGS="$CPPFLAGS $i"
18779      fi
18780    done
18781  fi
18782
18783   fi
18784fi
18785
18786# Check whether --enable-nonportable-atomics was given.
18787if test "${enable_nonportable_atomics+set}" = set; then :
18788  enableval=$enable_nonportable_atomics; if test $enableval = yes; then
18789   force_generic_atomics=no
18790 else
18791   force_generic_atomics=yes
18792 fi
18793
18794else
18795  case $host_cpu in
18796   i[456]86) force_generic_atomics=yes ;;
18797   *) force_generic_atomics=no
18798      case $host in
18799         *solaris2.10*)
18800            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18801/* end confdefs.h.  */
18802#include <atomic.h>
18803int
18804main ()
18805{
18806void *ptr = NULL; atomic_cas_ptr(&ptr, NULL, NULL);
18807  ;
18808  return 0;
18809}
18810_ACEOF
18811if ac_fn_c_try_compile "$LINENO"; then :
18812
18813else
18814  force_generic_atomics=yes
18815
18816fi
18817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18818            if test $force_generic_atomics = yes; then
18819                { $as_echo "$as_me:${as_lineno-$LINENO}: nonportable atomic support disabled, system needs Patch-ID 118884 or 118885" >&5
18820$as_echo "$as_me: nonportable atomic support disabled, system needs Patch-ID 118884 or 118885" >&6;}
18821            fi
18822            ;;
18823      esac
18824      ;;
18825esac
18826
18827fi
18828
18829
18830if test $force_generic_atomics = yes; then
18831
18832$as_echo "#define USE_ATOMICS_GENERIC 1" >>confdefs.h
18833
18834fi
18835
18836
18837
18838
18839
18840# For some platforms we need a version string which allows easy numeric
18841# comparisons.
18842case $host in
18843    *freebsd*)
18844        if test -x /sbin/sysctl; then
18845            os_version=`/sbin/sysctl -n kern.osreldate`
18846        else
18847            os_version=000000
18848        fi
18849        ;;
18850    *linux*)
18851        os_major=`uname -r | sed -e 's/\([1-9][0-9]*\)\..*/\1/'`
18852        os_minor=`uname -r | sed -e 's/[1-9][0-9]*\.\([0-9]\+\)\..*/\1/'`
18853        if test $os_major -lt 2 -o \( $os_major -eq 2 -a $os_minor -lt 4 \); then
18854            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configured for pre-2.4 Linux $os_major.$os_minor" >&5
18855$as_echo "$as_me: WARNING: Configured for pre-2.4 Linux $os_major.$os_minor" >&2;}
18856            os_pre24linux=1
18857        else
18858            os_pre24linux=0
18859            { $as_echo "$as_me:${as_lineno-$LINENO}: Configured for Linux $os_major.$os_minor" >&5
18860$as_echo "$as_me: Configured for Linux $os_major.$os_minor" >&6;}
18861        fi
18862        ;;
18863    *os390)
18864        os_version=`uname -r | sed -e 's/\.//g'`
18865        ;;
18866    *)
18867        os_version=OS_VERSION_IS_NOT_SET
18868        ;;
18869esac
18870
18871echo "${nl}Checking for libraries..."
18872
18873case $host in
18874   *mingw*)
18875
18876  if test "x$LIBS" = "x"; then
18877    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock\""
18878    LIBS="-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock"
18879  else
18880    apr_addto_bugger="-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock"
18881    for i in $apr_addto_bugger; do
18882      apr_addto_duplicate="0"
18883      for j in $LIBS; do
18884        if test "x$i" = "x$j"; then
18885          apr_addto_duplicate="1"
18886          break
18887        fi
18888      done
18889      if test $apr_addto_duplicate = "0"; then
18890        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
18891        LIBS="$LIBS $i"
18892      fi
18893    done
18894  fi
18895
18896      ac_cv_func_CreateFileMapping=yes
18897      ;;
18898   *)
18899      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
18900$as_echo_n "checking for library containing gethostbyname... " >&6; }
18901if ${ac_cv_search_gethostbyname+:} false; then :
18902  $as_echo_n "(cached) " >&6
18903else
18904  ac_func_search_save_LIBS=$LIBS
18905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18906/* end confdefs.h.  */
18907
18908/* Override any GCC internal prototype to avoid an error.
18909   Use char because int might match the return type of a GCC
18910   builtin and then its argument prototype would still apply.  */
18911#ifdef __cplusplus
18912extern "C"
18913#endif
18914char gethostbyname ();
18915int
18916main ()
18917{
18918return gethostbyname ();
18919  ;
18920  return 0;
18921}
18922_ACEOF
18923for ac_lib in '' nsl; do
18924  if test -z "$ac_lib"; then
18925    ac_res="none required"
18926  else
18927    ac_res=-l$ac_lib
18928    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18929  fi
18930  if ac_fn_c_try_link "$LINENO"; then :
18931  ac_cv_search_gethostbyname=$ac_res
18932fi
18933rm -f core conftest.err conftest.$ac_objext \
18934    conftest$ac_exeext
18935  if ${ac_cv_search_gethostbyname+:} false; then :
18936  break
18937fi
18938done
18939if ${ac_cv_search_gethostbyname+:} false; then :
18940
18941else
18942  ac_cv_search_gethostbyname=no
18943fi
18944rm conftest.$ac_ext
18945LIBS=$ac_func_search_save_LIBS
18946fi
18947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
18948$as_echo "$ac_cv_search_gethostbyname" >&6; }
18949ac_res=$ac_cv_search_gethostbyname
18950if test "$ac_res" != no; then :
18951  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18952
18953fi
18954
18955      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
18956$as_echo_n "checking for library containing gethostname... " >&6; }
18957if ${ac_cv_search_gethostname+:} false; then :
18958  $as_echo_n "(cached) " >&6
18959else
18960  ac_func_search_save_LIBS=$LIBS
18961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18962/* end confdefs.h.  */
18963
18964/* Override any GCC internal prototype to avoid an error.
18965   Use char because int might match the return type of a GCC
18966   builtin and then its argument prototype would still apply.  */
18967#ifdef __cplusplus
18968extern "C"
18969#endif
18970char gethostname ();
18971int
18972main ()
18973{
18974return gethostname ();
18975  ;
18976  return 0;
18977}
18978_ACEOF
18979for ac_lib in '' nsl; do
18980  if test -z "$ac_lib"; then
18981    ac_res="none required"
18982  else
18983    ac_res=-l$ac_lib
18984    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18985  fi
18986  if ac_fn_c_try_link "$LINENO"; then :
18987  ac_cv_search_gethostname=$ac_res
18988fi
18989rm -f core conftest.err conftest.$ac_objext \
18990    conftest$ac_exeext
18991  if ${ac_cv_search_gethostname+:} false; then :
18992  break
18993fi
18994done
18995if ${ac_cv_search_gethostname+:} false; then :
18996
18997else
18998  ac_cv_search_gethostname=no
18999fi
19000rm conftest.$ac_ext
19001LIBS=$ac_func_search_save_LIBS
19002fi
19003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
19004$as_echo "$ac_cv_search_gethostname" >&6; }
19005ac_res=$ac_cv_search_gethostname
19006if test "$ac_res" != no; then :
19007  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19008
19009fi
19010
19011      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19012$as_echo_n "checking for library containing socket... " >&6; }
19013if ${ac_cv_search_socket+:} false; then :
19014  $as_echo_n "(cached) " >&6
19015else
19016  ac_func_search_save_LIBS=$LIBS
19017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19018/* end confdefs.h.  */
19019
19020/* Override any GCC internal prototype to avoid an error.
19021   Use char because int might match the return type of a GCC
19022   builtin and then its argument prototype would still apply.  */
19023#ifdef __cplusplus
19024extern "C"
19025#endif
19026char socket ();
19027int
19028main ()
19029{
19030return socket ();
19031  ;
19032  return 0;
19033}
19034_ACEOF
19035for ac_lib in '' socket; do
19036  if test -z "$ac_lib"; then
19037    ac_res="none required"
19038  else
19039    ac_res=-l$ac_lib
19040    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19041  fi
19042  if ac_fn_c_try_link "$LINENO"; then :
19043  ac_cv_search_socket=$ac_res
19044fi
19045rm -f core conftest.err conftest.$ac_objext \
19046    conftest$ac_exeext
19047  if ${ac_cv_search_socket+:} false; then :
19048  break
19049fi
19050done
19051if ${ac_cv_search_socket+:} false; then :
19052
19053else
19054  ac_cv_search_socket=no
19055fi
19056rm conftest.$ac_ext
19057LIBS=$ac_func_search_save_LIBS
19058fi
19059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19060$as_echo "$ac_cv_search_socket" >&6; }
19061ac_res=$ac_cv_search_socket
19062if test "$ac_res" != no; then :
19063  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19064
19065fi
19066
19067      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19068$as_echo_n "checking for library containing crypt... " >&6; }
19069if ${ac_cv_search_crypt+:} false; then :
19070  $as_echo_n "(cached) " >&6
19071else
19072  ac_func_search_save_LIBS=$LIBS
19073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19074/* end confdefs.h.  */
19075
19076/* Override any GCC internal prototype to avoid an error.
19077   Use char because int might match the return type of a GCC
19078   builtin and then its argument prototype would still apply.  */
19079#ifdef __cplusplus
19080extern "C"
19081#endif
19082char crypt ();
19083int
19084main ()
19085{
19086return crypt ();
19087  ;
19088  return 0;
19089}
19090_ACEOF
19091for ac_lib in '' crypt ufc; do
19092  if test -z "$ac_lib"; then
19093    ac_res="none required"
19094  else
19095    ac_res=-l$ac_lib
19096    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19097  fi
19098  if ac_fn_c_try_link "$LINENO"; then :
19099  ac_cv_search_crypt=$ac_res
19100fi
19101rm -f core conftest.err conftest.$ac_objext \
19102    conftest$ac_exeext
19103  if ${ac_cv_search_crypt+:} false; then :
19104  break
19105fi
19106done
19107if ${ac_cv_search_crypt+:} false; then :
19108
19109else
19110  ac_cv_search_crypt=no
19111fi
19112rm conftest.$ac_ext
19113LIBS=$ac_func_search_save_LIBS
19114fi
19115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19116$as_echo "$ac_cv_search_crypt" >&6; }
19117ac_res=$ac_cv_search_crypt
19118if test "$ac_res" != no; then :
19119  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19120
19121fi
19122
19123      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltruerand" >&5
19124$as_echo_n "checking for main in -ltruerand... " >&6; }
19125if ${ac_cv_lib_truerand_main+:} false; then :
19126  $as_echo_n "(cached) " >&6
19127else
19128  ac_check_lib_save_LIBS=$LIBS
19129LIBS="-ltruerand  $LIBS"
19130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19131/* end confdefs.h.  */
19132
19133
19134int
19135main ()
19136{
19137return main ();
19138  ;
19139  return 0;
19140}
19141_ACEOF
19142if ac_fn_c_try_link "$LINENO"; then :
19143  ac_cv_lib_truerand_main=yes
19144else
19145  ac_cv_lib_truerand_main=no
19146fi
19147rm -f core conftest.err conftest.$ac_objext \
19148    conftest$ac_exeext conftest.$ac_ext
19149LIBS=$ac_check_lib_save_LIBS
19150fi
19151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_truerand_main" >&5
19152$as_echo "$ac_cv_lib_truerand_main" >&6; }
19153if test "x$ac_cv_lib_truerand_main" = xyes; then :
19154  cat >>confdefs.h <<_ACEOF
19155#define HAVE_LIBTRUERAND 1
19156_ACEOF
19157
19158  LIBS="-ltruerand $LIBS"
19159
19160fi
19161
19162      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing modf" >&5
19163$as_echo_n "checking for library containing modf... " >&6; }
19164if ${ac_cv_search_modf+:} false; then :
19165  $as_echo_n "(cached) " >&6
19166else
19167  ac_func_search_save_LIBS=$LIBS
19168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19169/* end confdefs.h.  */
19170
19171/* Override any GCC internal prototype to avoid an error.
19172   Use char because int might match the return type of a GCC
19173   builtin and then its argument prototype would still apply.  */
19174#ifdef __cplusplus
19175extern "C"
19176#endif
19177char modf ();
19178int
19179main ()
19180{
19181return modf ();
19182  ;
19183  return 0;
19184}
19185_ACEOF
19186for ac_lib in '' m; do
19187  if test -z "$ac_lib"; then
19188    ac_res="none required"
19189  else
19190    ac_res=-l$ac_lib
19191    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19192  fi
19193  if ac_fn_c_try_link "$LINENO"; then :
19194  ac_cv_search_modf=$ac_res
19195fi
19196rm -f core conftest.err conftest.$ac_objext \
19197    conftest$ac_exeext
19198  if ${ac_cv_search_modf+:} false; then :
19199  break
19200fi
19201done
19202if ${ac_cv_search_modf+:} false; then :
19203
19204else
19205  ac_cv_search_modf=no
19206fi
19207rm conftest.$ac_ext
19208LIBS=$ac_func_search_save_LIBS
19209fi
19210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_modf" >&5
19211$as_echo "$ac_cv_search_modf" >&6; }
19212ac_res=$ac_cv_search_modf
19213if test "$ac_res" != no; then :
19214  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19215
19216fi
19217
19218       ;;
19219esac
19220
19221echo "${nl}Checking for Threads..."
19222
19223if test -z "$enable_threads"; then
19224	# Check whether --enable-threads was given.
19225if test "${enable_threads+set}" = set; then :
19226  enableval=$enable_threads;  enable_threads=$enableval
19227else
19228
19229  if test "$GCC" = "yes"; then
19230    SAVE_FL="$CPPFLAGS"
19231    CPPFLAGS="$CPPFLAGS -w"
19232    for ac_header in pthread.h
19233do :
19234  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19235if test "x$ac_cv_header_pthread_h" = xyes; then :
19236  cat >>confdefs.h <<_ACEOF
19237#define HAVE_PTHREAD_H 1
19238_ACEOF
19239   enable_threads="pthread"
19240else
19241    enable_threads="no"
19242fi
19243
19244done
19245
19246    CPPFLAGS="$SAVE_FL"
19247  else
19248    for ac_header in pthread.h
19249do :
19250  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19251if test "x$ac_cv_header_pthread_h" = xyes; then :
19252  cat >>confdefs.h <<_ACEOF
19253#define HAVE_PTHREAD_H 1
19254_ACEOF
19255   enable_threads="pthread"
19256else
19257    enable_threads="no"
19258fi
19259
19260done
19261
19262  fi
19263
19264fi
19265
19266fi
19267
19268if test "$enable_threads" = "no"; then
19269    threads="0"
19270    pthreadh="0"
19271    pthreadser="0"
19272else
19273    if test "$enable_threads" = "pthread"; then
19274# We have specified pthreads for our threading library, just make sure
19275# that we have everything we need
19276
19277  apr_pthsv_CFLAGS="$CFLAGS"
19278  apr_pthsv_LIBS="$LIBS"
19279
19280
19281
19282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5
19283$as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
19284if ${apr_cv_pthreads_cflags+:} false; then :
19285  $as_echo_n "(cached) " >&6
19286else
19287  apr_ptc_cflags=$CFLAGS
19288 for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
19289    CFLAGS=$apr_ptc_cflags
19290    test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
19291
19292if test "$cross_compiling" = yes; then :
19293  apr_p_t_r=no
19294else
19295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19296/* end confdefs.h.  */
19297
19298#include <pthread.h>
19299#include <stddef.h>
19300
19301void *thread_routine(void *data) {
19302    return data;
19303}
19304
19305int main() {
19306    pthread_t thd;
19307    pthread_mutexattr_t mattr;
19308    pthread_once_t once_init = PTHREAD_ONCE_INIT;
19309    int data = 1;
19310    pthread_mutexattr_init(&mattr);
19311    return pthread_create(&thd, NULL, thread_routine, &data);
19312}
19313_ACEOF
19314if ac_fn_c_try_run "$LINENO"; then :
19315  apr_p_t_r=yes
19316else
19317  apr_p_t_r=no
19318fi
19319rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19320  conftest.$ac_objext conftest.beam conftest.$ac_ext
19321fi
19322
19323
19324if test $apr_p_t_r = yes; then
19325
19326      apr_cv_pthreads_cflags="$flag"
19327      break
19328
19329fi
19330
19331
19332 done
19333 CFLAGS=$apr_ptc_cflags
19334
19335fi
19336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5
19337$as_echo "$apr_cv_pthreads_cflags" >&6; }
19338
19339if test -n "$apr_cv_pthreads_cflags"; then
19340   pthreads_working=yes
19341   if test "x$apr_cv_pthreads_cflags" != "xnone"; then
19342
19343  if test "x$CFLAGS" = "x"; then
19344    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"$apr_cv_pthreads_cflags\""
19345    CFLAGS="$apr_cv_pthreads_cflags"
19346  else
19347    apr_addto_bugger="$apr_cv_pthreads_cflags"
19348    for i in $apr_addto_bugger; do
19349      apr_addto_duplicate="0"
19350      for j in $CFLAGS; do
19351        if test "x$i" = "x$j"; then
19352          apr_addto_duplicate="1"
19353          break
19354        fi
19355      done
19356      if test $apr_addto_duplicate = "0"; then
19357        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
19358        CFLAGS="$CFLAGS $i"
19359      fi
19360    done
19361  fi
19362
19363   fi
19364fi
19365
19366# The CFLAGS may or may not be sufficient to ensure that libapr
19367# depends on the pthreads library: some versions of libtool
19368# drop -pthread when passed on the link line; some versions of
19369# gcc ignore -pthread when linking a shared object.  So always
19370# try and add the relevant library to LIBS too.
19371
19372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5
19373$as_echo_n "checking for LIBS needed for pthreads... " >&6; }
19374if ${apr_cv_pthreads_lib+:} false; then :
19375  $as_echo_n "(cached) " >&6
19376else
19377
19378  apr_ptc_libs=$LIBS
19379  for lib in -lpthread -lpthreads -lc_r; do
19380    LIBS="$apr_ptc_libs $lib"
19381
19382if test "$cross_compiling" = yes; then :
19383  apr_p_t_r=no
19384else
19385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19386/* end confdefs.h.  */
19387
19388#include <pthread.h>
19389#include <stddef.h>
19390
19391void *thread_routine(void *data) {
19392    return data;
19393}
19394
19395int main() {
19396    pthread_t thd;
19397    pthread_mutexattr_t mattr;
19398    pthread_once_t once_init = PTHREAD_ONCE_INIT;
19399    int data = 1;
19400    pthread_mutexattr_init(&mattr);
19401    return pthread_create(&thd, NULL, thread_routine, &data);
19402}
19403_ACEOF
19404if ac_fn_c_try_run "$LINENO"; then :
19405  apr_p_t_r=yes
19406else
19407  apr_p_t_r=no
19408fi
19409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19410  conftest.$ac_objext conftest.beam conftest.$ac_ext
19411fi
19412
19413
19414if test $apr_p_t_r = yes; then
19415
19416      apr_cv_pthreads_lib=$lib
19417      break
19418
19419fi
19420
19421
19422  done
19423  LIBS=$apr_ptc_libs
19424
19425fi
19426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5
19427$as_echo "$apr_cv_pthreads_lib" >&6; }
19428
19429if test -n "$apr_cv_pthreads_lib"; then
19430   pthreads_working=yes
19431
19432  if test "x$LIBS" = "x"; then
19433    test "x$silent" != "xyes" && echo "  setting LIBS to \"$apr_cv_pthreads_lib\""
19434    LIBS="$apr_cv_pthreads_lib"
19435  else
19436    apr_addto_bugger="$apr_cv_pthreads_lib"
19437    for i in $apr_addto_bugger; do
19438      apr_addto_duplicate="0"
19439      for j in $LIBS; do
19440        if test "x$i" = "x$j"; then
19441          apr_addto_duplicate="1"
19442          break
19443        fi
19444      done
19445      if test $apr_addto_duplicate = "0"; then
19446        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
19447        LIBS="$LIBS $i"
19448      fi
19449    done
19450  fi
19451
19452fi
19453
19454if test "$pthreads_working" = "yes"; then
19455  threads_result="POSIX Threads found"
19456else
19457  threads_result="POSIX Threads not found"
19458fi
19459
19460
19461  if test "$GCC" = "yes"; then
19462    SAVE_FL="$CPPFLAGS"
19463    CPPFLAGS="$CPPFLAGS -w"
19464    for ac_header in pthread.h
19465do :
19466  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19467if test "x$ac_cv_header_pthread_h" = xyes; then :
19468  cat >>confdefs.h <<_ACEOF
19469#define HAVE_PTHREAD_H 1
19470_ACEOF
19471
19472          threads="1"
19473          pthreadh="1"
19474          pthreadser="1"
19475else
19476
19477          threads="0"
19478          pthreadh="0"
19479          pthreadser="0"
19480
19481  CFLAGS="$apr_pthsv_CFLAGS"
19482  LIBS="$apr_pthsv_LIBS"
19483
19484fi
19485
19486done
19487
19488    CPPFLAGS="$SAVE_FL"
19489  else
19490    for ac_header in pthread.h
19491do :
19492  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19493if test "x$ac_cv_header_pthread_h" = xyes; then :
19494  cat >>confdefs.h <<_ACEOF
19495#define HAVE_PTHREAD_H 1
19496_ACEOF
19497
19498          threads="1"
19499          pthreadh="1"
19500          pthreadser="1"
19501else
19502
19503          threads="0"
19504          pthreadh="0"
19505          pthreadser="0"
19506
19507  CFLAGS="$apr_pthsv_CFLAGS"
19508  LIBS="$apr_pthsv_LIBS"
19509
19510fi
19511
19512done
19513
19514  fi
19515
19516    elif test "$enable_threads" = "system_threads"; then
19517        threads="1"
19518        pthreadh="0"
19519        pthreadser="0"
19520    else
19521# We basically specified that we wanted threads, but not how to implement
19522# them.  In this case, just look for pthreads.  In the future, we can check
19523# for other threading libraries as well.
19524
19525  apr_pthsv_CFLAGS="$CFLAGS"
19526  apr_pthsv_LIBS="$LIBS"
19527
19528
19529
19530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5
19531$as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
19532if ${apr_cv_pthreads_cflags+:} false; then :
19533  $as_echo_n "(cached) " >&6
19534else
19535  apr_ptc_cflags=$CFLAGS
19536 for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
19537    CFLAGS=$apr_ptc_cflags
19538    test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
19539
19540if test "$cross_compiling" = yes; then :
19541  apr_p_t_r=no
19542else
19543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19544/* end confdefs.h.  */
19545
19546#include <pthread.h>
19547#include <stddef.h>
19548
19549void *thread_routine(void *data) {
19550    return data;
19551}
19552
19553int main() {
19554    pthread_t thd;
19555    pthread_mutexattr_t mattr;
19556    pthread_once_t once_init = PTHREAD_ONCE_INIT;
19557    int data = 1;
19558    pthread_mutexattr_init(&mattr);
19559    return pthread_create(&thd, NULL, thread_routine, &data);
19560}
19561_ACEOF
19562if ac_fn_c_try_run "$LINENO"; then :
19563  apr_p_t_r=yes
19564else
19565  apr_p_t_r=no
19566fi
19567rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19568  conftest.$ac_objext conftest.beam conftest.$ac_ext
19569fi
19570
19571
19572if test $apr_p_t_r = yes; then
19573
19574      apr_cv_pthreads_cflags="$flag"
19575      break
19576
19577fi
19578
19579
19580 done
19581 CFLAGS=$apr_ptc_cflags
19582
19583fi
19584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5
19585$as_echo "$apr_cv_pthreads_cflags" >&6; }
19586
19587if test -n "$apr_cv_pthreads_cflags"; then
19588   pthreads_working=yes
19589   if test "x$apr_cv_pthreads_cflags" != "xnone"; then
19590
19591  if test "x$CFLAGS" = "x"; then
19592    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"$apr_cv_pthreads_cflags\""
19593    CFLAGS="$apr_cv_pthreads_cflags"
19594  else
19595    apr_addto_bugger="$apr_cv_pthreads_cflags"
19596    for i in $apr_addto_bugger; do
19597      apr_addto_duplicate="0"
19598      for j in $CFLAGS; do
19599        if test "x$i" = "x$j"; then
19600          apr_addto_duplicate="1"
19601          break
19602        fi
19603      done
19604      if test $apr_addto_duplicate = "0"; then
19605        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
19606        CFLAGS="$CFLAGS $i"
19607      fi
19608    done
19609  fi
19610
19611   fi
19612fi
19613
19614# The CFLAGS may or may not be sufficient to ensure that libapr
19615# depends on the pthreads library: some versions of libtool
19616# drop -pthread when passed on the link line; some versions of
19617# gcc ignore -pthread when linking a shared object.  So always
19618# try and add the relevant library to LIBS too.
19619
19620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5
19621$as_echo_n "checking for LIBS needed for pthreads... " >&6; }
19622if ${apr_cv_pthreads_lib+:} false; then :
19623  $as_echo_n "(cached) " >&6
19624else
19625
19626  apr_ptc_libs=$LIBS
19627  for lib in -lpthread -lpthreads -lc_r; do
19628    LIBS="$apr_ptc_libs $lib"
19629
19630if test "$cross_compiling" = yes; then :
19631  apr_p_t_r=no
19632else
19633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19634/* end confdefs.h.  */
19635
19636#include <pthread.h>
19637#include <stddef.h>
19638
19639void *thread_routine(void *data) {
19640    return data;
19641}
19642
19643int main() {
19644    pthread_t thd;
19645    pthread_mutexattr_t mattr;
19646    pthread_once_t once_init = PTHREAD_ONCE_INIT;
19647    int data = 1;
19648    pthread_mutexattr_init(&mattr);
19649    return pthread_create(&thd, NULL, thread_routine, &data);
19650}
19651_ACEOF
19652if ac_fn_c_try_run "$LINENO"; then :
19653  apr_p_t_r=yes
19654else
19655  apr_p_t_r=no
19656fi
19657rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19658  conftest.$ac_objext conftest.beam conftest.$ac_ext
19659fi
19660
19661
19662if test $apr_p_t_r = yes; then
19663
19664      apr_cv_pthreads_lib=$lib
19665      break
19666
19667fi
19668
19669
19670  done
19671  LIBS=$apr_ptc_libs
19672
19673fi
19674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5
19675$as_echo "$apr_cv_pthreads_lib" >&6; }
19676
19677if test -n "$apr_cv_pthreads_lib"; then
19678   pthreads_working=yes
19679
19680  if test "x$LIBS" = "x"; then
19681    test "x$silent" != "xyes" && echo "  setting LIBS to \"$apr_cv_pthreads_lib\""
19682    LIBS="$apr_cv_pthreads_lib"
19683  else
19684    apr_addto_bugger="$apr_cv_pthreads_lib"
19685    for i in $apr_addto_bugger; do
19686      apr_addto_duplicate="0"
19687      for j in $LIBS; do
19688        if test "x$i" = "x$j"; then
19689          apr_addto_duplicate="1"
19690          break
19691        fi
19692      done
19693      if test $apr_addto_duplicate = "0"; then
19694        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
19695        LIBS="$LIBS $i"
19696      fi
19697    done
19698  fi
19699
19700fi
19701
19702if test "$pthreads_working" = "yes"; then
19703  threads_result="POSIX Threads found"
19704else
19705  threads_result="POSIX Threads not found"
19706fi
19707
19708
19709  if test "$GCC" = "yes"; then
19710    SAVE_FL="$CPPFLAGS"
19711    CPPFLAGS="$CPPFLAGS -w"
19712    for ac_header in pthread.h
19713do :
19714  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19715if test "x$ac_cv_header_pthread_h" = xyes; then :
19716  cat >>confdefs.h <<_ACEOF
19717#define HAVE_PTHREAD_H 1
19718_ACEOF
19719
19720          threads="1"
19721          pthreadh="1"
19722          pthreadser="1"
19723else
19724
19725          threads="0"
19726          pthreadser="0"
19727          pthreadh="0"
19728
19729  CFLAGS="$apr_pthsv_CFLAGS"
19730  LIBS="$apr_pthsv_LIBS"
19731
19732fi
19733
19734done
19735
19736    CPPFLAGS="$SAVE_FL"
19737  else
19738    for ac_header in pthread.h
19739do :
19740  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19741if test "x$ac_cv_header_pthread_h" = xyes; then :
19742  cat >>confdefs.h <<_ACEOF
19743#define HAVE_PTHREAD_H 1
19744_ACEOF
19745
19746          threads="1"
19747          pthreadh="1"
19748          pthreadser="1"
19749else
19750
19751          threads="0"
19752          pthreadser="0"
19753          pthreadh="0"
19754
19755  CFLAGS="$apr_pthsv_CFLAGS"
19756  LIBS="$apr_pthsv_LIBS"
19757
19758fi
19759
19760done
19761
19762  fi
19763
19764    fi
19765    if test "$pthreadh" = "1"; then
19766
19767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_getspecific takes two arguments" >&5
19768$as_echo_n "checking whether pthread_getspecific takes two arguments... " >&6; }
19769if ${ac_cv_pthread_getspecific_two_args+:} false; then :
19770  $as_echo_n "(cached) " >&6
19771else
19772
19773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19774/* end confdefs.h.  */
19775
19776#include <pthread.h>
19777
19778int
19779main ()
19780{
19781
19782pthread_key_t key;
19783void *tmp;
19784pthread_getspecific(key,&tmp);
19785
19786  ;
19787  return 0;
19788}
19789_ACEOF
19790if ac_fn_c_try_compile "$LINENO"; then :
19791
19792    ac_cv_pthread_getspecific_two_args=yes
19793
19794else
19795
19796    ac_cv_pthread_getspecific_two_args=no
19797
19798fi
19799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19800
19801fi
19802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_getspecific_two_args" >&5
19803$as_echo "$ac_cv_pthread_getspecific_two_args" >&6; }
19804
19805if test "$ac_cv_pthread_getspecific_two_args" = "yes"; then
19806
19807$as_echo "#define PTHREAD_GETSPECIFIC_TAKES_TWO_ARGS 1" >>confdefs.h
19808
19809fi
19810
19811
19812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_attr_getdetachstate takes one argument" >&5
19813$as_echo_n "checking whether pthread_attr_getdetachstate takes one argument... " >&6; }
19814if ${ac_cv_pthread_attr_getdetachstate_one_arg+:} false; then :
19815  $as_echo_n "(cached) " >&6
19816else
19817
19818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19819/* end confdefs.h.  */
19820
19821#include <pthread.h>
19822
19823int
19824main ()
19825{
19826
19827pthread_attr_t *attr;
19828pthread_attr_getdetachstate(attr);
19829
19830  ;
19831  return 0;
19832}
19833_ACEOF
19834if ac_fn_c_try_compile "$LINENO"; then :
19835
19836    ac_cv_pthread_attr_getdetachstate_one_arg=yes
19837
19838else
19839
19840    ac_cv_pthread_attr_getdetachstate_one_arg=no
19841
19842fi
19843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19844
19845fi
19846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_attr_getdetachstate_one_arg" >&5
19847$as_echo "$ac_cv_pthread_attr_getdetachstate_one_arg" >&6; }
19848
19849if test "$ac_cv_pthread_attr_getdetachstate_one_arg" = "yes"; then
19850
19851$as_echo "#define PTHREAD_ATTR_GETDETACHSTATE_TAKES_ONE_ARG 1" >>confdefs.h
19852
19853fi
19854
19855
19856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutex support" >&5
19857$as_echo_n "checking for recursive mutex support... " >&6; }
19858if ${apr_cv_mutex_recursive+:} false; then :
19859  $as_echo_n "(cached) " >&6
19860else
19861  if test "$cross_compiling" = yes; then :
19862  apr_cv_mutex_recursive=no
19863else
19864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19865/* end confdefs.h.  */
19866#include <sys/types.h>
19867#include <pthread.h>
19868#include <stdlib.h>
19869
19870int main() {
19871    pthread_mutexattr_t attr;
19872    pthread_mutex_t m;
19873
19874    exit (pthread_mutexattr_init(&attr)
19875          || pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
19876          || pthread_mutex_init(&m, &attr));
19877}
19878_ACEOF
19879if ac_fn_c_try_run "$LINENO"; then :
19880  apr_cv_mutex_recursive=yes
19881else
19882  apr_cv_mutex_recursive=no
19883fi
19884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19885  conftest.$ac_objext conftest.beam conftest.$ac_ext
19886fi
19887
19888fi
19889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_recursive" >&5
19890$as_echo "$apr_cv_mutex_recursive" >&6; }
19891
19892if test "$apr_cv_mutex_recursive" = "yes"; then
19893
19894$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
19895
19896fi
19897
19898        for ac_func in pthread_key_delete pthread_rwlock_init \
19899                        pthread_attr_setguardsize pthread_yield
19900do :
19901  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19902ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19903if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19904  cat >>confdefs.h <<_ACEOF
19905#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19906_ACEOF
19907
19908fi
19909done
19910
19911
19912        if test "$ac_cv_func_pthread_rwlock_init" = "yes"; then
19913                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_t" >&5
19914$as_echo_n "checking for pthread_rwlock_t... " >&6; }
19915if ${apr_cv_type_rwlock_t+:} false; then :
19916  $as_echo_n "(cached) " >&6
19917else
19918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19919/* end confdefs.h.  */
19920#include <sys/types.h>
19921#include <pthread.h>
19922int
19923main ()
19924{
19925pthread_rwlock_t *rwlock;
19926  ;
19927  return 0;
19928}
19929_ACEOF
19930if ac_fn_c_try_compile "$LINENO"; then :
19931  apr_cv_type_rwlock_t=yes
19932else
19933  apr_cv_type_rwlock_t=no
19934fi
19935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19936fi
19937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_type_rwlock_t" >&5
19938$as_echo "$apr_cv_type_rwlock_t" >&6; }
19939            if test "$apr_cv_type_rwlock_t" = "yes"; then
19940
19941$as_echo "#define HAVE_PTHREAD_RWLOCKS 1" >>confdefs.h
19942
19943            fi
19944        fi
19945
19946        if test "$ac_cv_func_pthread_yield" = "no"; then
19947                        for ac_header in sched.h
19948do :
19949  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19950if test "x$ac_cv_header_sched_h" = xyes; then :
19951  cat >>confdefs.h <<_ACEOF
19952#define HAVE_SCHED_H 1
19953_ACEOF
19954
19955fi
19956
19957done
19958
19959            for ac_func in sched_yield
19960do :
19961  ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
19962if test "x$ac_cv_func_sched_yield" = xyes; then :
19963  cat >>confdefs.h <<_ACEOF
19964#define HAVE_SCHED_YIELD 1
19965_ACEOF
19966
19967fi
19968done
19969
19970        fi
19971    fi
19972fi
19973
19974ac_cv_define_READDIR_IS_THREAD_SAFE=no
19975ac_cv_define_GETHOSTBYNAME_IS_THREAD_SAFE=no
19976ac_cv_define_GETHOSTBYADDR_IS_THREAD_SAFE=no
19977ac_cv_define_GETSERVBYNAME_IS_THREAD_SAFE=no
19978if test "$threads" = "1"; then
19979    echo "APR will use threads"
19980    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readdir in -lc_r" >&5
19981$as_echo_n "checking for readdir in -lc_r... " >&6; }
19982if ${ac_cv_lib_c_r_readdir+:} false; then :
19983  $as_echo_n "(cached) " >&6
19984else
19985  ac_check_lib_save_LIBS=$LIBS
19986LIBS="-lc_r  $LIBS"
19987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19988/* end confdefs.h.  */
19989
19990/* Override any GCC internal prototype to avoid an error.
19991   Use char because int might match the return type of a GCC
19992   builtin and then its argument prototype would still apply.  */
19993#ifdef __cplusplus
19994extern "C"
19995#endif
19996char readdir ();
19997int
19998main ()
19999{
20000return readdir ();
20001  ;
20002  return 0;
20003}
20004_ACEOF
20005if ac_fn_c_try_link "$LINENO"; then :
20006  ac_cv_lib_c_r_readdir=yes
20007else
20008  ac_cv_lib_c_r_readdir=no
20009fi
20010rm -f core conftest.err conftest.$ac_objext \
20011    conftest$ac_exeext conftest.$ac_ext
20012LIBS=$ac_check_lib_save_LIBS
20013fi
20014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_readdir" >&5
20015$as_echo "$ac_cv_lib_c_r_readdir" >&6; }
20016if test "x$ac_cv_lib_c_r_readdir" = xyes; then :
20017
20018$as_echo "#define READDIR_IS_THREAD_SAFE 1" >>confdefs.h
20019
20020fi
20021
20022    if test "x$apr_gethostbyname_is_thread_safe" = "x"; then
20023        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lc_r" >&5
20024$as_echo_n "checking for gethostbyname in -lc_r... " >&6; }
20025if ${ac_cv_lib_c_r_gethostbyname+:} false; then :
20026  $as_echo_n "(cached) " >&6
20027else
20028  ac_check_lib_save_LIBS=$LIBS
20029LIBS="-lc_r  $LIBS"
20030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20031/* end confdefs.h.  */
20032
20033/* Override any GCC internal prototype to avoid an error.
20034   Use char because int might match the return type of a GCC
20035   builtin and then its argument prototype would still apply.  */
20036#ifdef __cplusplus
20037extern "C"
20038#endif
20039char gethostbyname ();
20040int
20041main ()
20042{
20043return gethostbyname ();
20044  ;
20045  return 0;
20046}
20047_ACEOF
20048if ac_fn_c_try_link "$LINENO"; then :
20049  ac_cv_lib_c_r_gethostbyname=yes
20050else
20051  ac_cv_lib_c_r_gethostbyname=no
20052fi
20053rm -f core conftest.err conftest.$ac_objext \
20054    conftest$ac_exeext conftest.$ac_ext
20055LIBS=$ac_check_lib_save_LIBS
20056fi
20057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyname" >&5
20058$as_echo "$ac_cv_lib_c_r_gethostbyname" >&6; }
20059if test "x$ac_cv_lib_c_r_gethostbyname" = xyes; then :
20060  apr_gethostbyname_is_thread_safe=yes
20061fi
20062
20063    fi
20064    if test "$apr_gethostbyname_is_thread_safe" = "yes"; then
20065
20066$as_echo "#define GETHOSTBYNAME_IS_THREAD_SAFE 1" >>confdefs.h
20067
20068    fi
20069    if test "x$apr_gethostbyaddr_is_thread_safe" = "x"; then
20070        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lc_r" >&5
20071$as_echo_n "checking for gethostbyaddr in -lc_r... " >&6; }
20072if ${ac_cv_lib_c_r_gethostbyaddr+:} false; then :
20073  $as_echo_n "(cached) " >&6
20074else
20075  ac_check_lib_save_LIBS=$LIBS
20076LIBS="-lc_r  $LIBS"
20077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20078/* end confdefs.h.  */
20079
20080/* Override any GCC internal prototype to avoid an error.
20081   Use char because int might match the return type of a GCC
20082   builtin and then its argument prototype would still apply.  */
20083#ifdef __cplusplus
20084extern "C"
20085#endif
20086char gethostbyaddr ();
20087int
20088main ()
20089{
20090return gethostbyaddr ();
20091  ;
20092  return 0;
20093}
20094_ACEOF
20095if ac_fn_c_try_link "$LINENO"; then :
20096  ac_cv_lib_c_r_gethostbyaddr=yes
20097else
20098  ac_cv_lib_c_r_gethostbyaddr=no
20099fi
20100rm -f core conftest.err conftest.$ac_objext \
20101    conftest$ac_exeext conftest.$ac_ext
20102LIBS=$ac_check_lib_save_LIBS
20103fi
20104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyaddr" >&5
20105$as_echo "$ac_cv_lib_c_r_gethostbyaddr" >&6; }
20106if test "x$ac_cv_lib_c_r_gethostbyaddr" = xyes; then :
20107  apr_gethostbyaddr_is_thread_safe=yes
20108fi
20109
20110    fi
20111    if test "$apr_gethostbyaddr_is_thread_safe" = "yes"; then
20112
20113$as_echo "#define GETHOSTBYADDR_IS_THREAD_SAFE 1" >>confdefs.h
20114
20115    fi
20116    if test "x$apr_getservbyname_is_thread_safe" = "x"; then
20117        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in -lc_r" >&5
20118$as_echo_n "checking for getservbyname in -lc_r... " >&6; }
20119if ${ac_cv_lib_c_r_getservbyname+:} false; then :
20120  $as_echo_n "(cached) " >&6
20121else
20122  ac_check_lib_save_LIBS=$LIBS
20123LIBS="-lc_r  $LIBS"
20124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20125/* end confdefs.h.  */
20126
20127/* Override any GCC internal prototype to avoid an error.
20128   Use char because int might match the return type of a GCC
20129   builtin and then its argument prototype would still apply.  */
20130#ifdef __cplusplus
20131extern "C"
20132#endif
20133char getservbyname ();
20134int
20135main ()
20136{
20137return getservbyname ();
20138  ;
20139  return 0;
20140}
20141_ACEOF
20142if ac_fn_c_try_link "$LINENO"; then :
20143  ac_cv_lib_c_r_getservbyname=yes
20144else
20145  ac_cv_lib_c_r_getservbyname=no
20146fi
20147rm -f core conftest.err conftest.$ac_objext \
20148    conftest$ac_exeext conftest.$ac_ext
20149LIBS=$ac_check_lib_save_LIBS
20150fi
20151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_getservbyname" >&5
20152$as_echo "$ac_cv_lib_c_r_getservbyname" >&6; }
20153if test "x$ac_cv_lib_c_r_getservbyname" = xyes; then :
20154  apr_getservbyname_is_thread_safe=yes
20155fi
20156
20157    fi
20158    if test "$apr_getservbyname_is_thread_safe" = "yes"; then
20159
20160$as_echo "#define GETSERVBYNAME_IS_THREAD_SAFE 1" >>confdefs.h
20161
20162    fi
20163    for ac_func in gethostbyname_r gethostbyaddr_r getservbyname_r
20164do :
20165  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20166ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20167if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20168  cat >>confdefs.h <<_ACEOF
20169#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20170_ACEOF
20171
20172fi
20173done
20174
20175else
20176    echo "APR will be non-threaded"
20177fi
20178
20179
20180# Check whether --with-efence was given.
20181if test "${with_efence+set}" = set; then :
20182  withval=$with_efence;  apr_efence_dir="$withval"
20183    if test "$apr_efence_dir" != "yes"; then
20184
20185  if test "x$LDFLAGS" = "x"; then
20186    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L$apr_efence_dir/lib\""
20187    LDFLAGS="-L$apr_efence_dir/lib"
20188  else
20189    apr_addto_bugger="-L$apr_efence_dir/lib"
20190    for i in $apr_addto_bugger; do
20191      apr_addto_duplicate="0"
20192      for j in $LDFLAGS; do
20193        if test "x$i" = "x$j"; then
20194          apr_addto_duplicate="1"
20195          break
20196        fi
20197      done
20198      if test $apr_addto_duplicate = "0"; then
20199        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
20200        LDFLAGS="$LDFLAGS $i"
20201      fi
20202    done
20203  fi
20204
20205      if test "x$apr_platform_runtime_link_flag" != "x"; then
20206
20207  if test "x$LDFLAGS" = "x"; then
20208    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$apr_platform_runtime_link_flag$apr_efence_dir/lib\""
20209    LDFLAGS="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
20210  else
20211    apr_addto_bugger="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
20212    for i in $apr_addto_bugger; do
20213      apr_addto_duplicate="0"
20214      for j in $LDFLAGS; do
20215        if test "x$i" = "x$j"; then
20216          apr_addto_duplicate="1"
20217          break
20218        fi
20219      done
20220      if test $apr_addto_duplicate = "0"; then
20221        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
20222        LDFLAGS="$LDFLAGS $i"
20223      fi
20224    done
20225  fi
20226
20227      fi
20228    fi
20229    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5
20230$as_echo_n "checking for malloc in -lefence... " >&6; }
20231if ${ac_cv_lib_efence_malloc+:} false; then :
20232  $as_echo_n "(cached) " >&6
20233else
20234  ac_check_lib_save_LIBS=$LIBS
20235LIBS="-lefence  $LIBS"
20236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20237/* end confdefs.h.  */
20238
20239/* Override any GCC internal prototype to avoid an error.
20240   Use char because int might match the return type of a GCC
20241   builtin and then its argument prototype would still apply.  */
20242#ifdef __cplusplus
20243extern "C"
20244#endif
20245char malloc ();
20246int
20247main ()
20248{
20249return malloc ();
20250  ;
20251  return 0;
20252}
20253_ACEOF
20254if ac_fn_c_try_link "$LINENO"; then :
20255  ac_cv_lib_efence_malloc=yes
20256else
20257  ac_cv_lib_efence_malloc=no
20258fi
20259rm -f core conftest.err conftest.$ac_objext \
20260    conftest$ac_exeext conftest.$ac_ext
20261LIBS=$ac_check_lib_save_LIBS
20262fi
20263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_malloc" >&5
20264$as_echo "$ac_cv_lib_efence_malloc" >&6; }
20265if test "x$ac_cv_lib_efence_malloc" = xyes; then :
20266
20267  if test "x$LIBS" = "x"; then
20268    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lefence\""
20269    LIBS="-lefence"
20270  else
20271    apr_addto_bugger="-lefence"
20272    for i in $apr_addto_bugger; do
20273      apr_addto_duplicate="0"
20274      for j in $LIBS; do
20275        if test "x$i" = "x$j"; then
20276          apr_addto_duplicate="1"
20277          break
20278        fi
20279      done
20280      if test $apr_addto_duplicate = "0"; then
20281        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
20282        LIBS="$LIBS $i"
20283      fi
20284    done
20285  fi
20286
20287else
20288   as_fn_error $? "Electric Fence requested but not detected" "$LINENO" 5
20289fi
20290
20291
20292fi
20293
20294
20295for ac_func in sigsuspend
20296do :
20297  ac_fn_c_check_func "$LINENO" "sigsuspend" "ac_cv_func_sigsuspend"
20298if test "x$ac_cv_func_sigsuspend" = xyes; then :
20299  cat >>confdefs.h <<_ACEOF
20300#define HAVE_SIGSUSPEND 1
20301_ACEOF
20302  have_sigsuspend="1"
20303else
20304   have_sigsuspend="0"
20305fi
20306done
20307
20308for ac_func in sigwait
20309do :
20310  ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
20311if test "x$ac_cv_func_sigwait" = xyes; then :
20312  cat >>confdefs.h <<_ACEOF
20313#define HAVE_SIGWAIT 1
20314_ACEOF
20315  have_sigwait="1"
20316else
20317   have_sigwait="0"
20318fi
20319done
20320
20321case $host in
20322    *alpha*-dec-osf* )
20323        have_sigwait="1"
20324        ;;
20325esac
20326
20327
20328
20329
20330
20331for ac_func in poll kqueue port_create
20332do :
20333  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20334ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20335if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20336  cat >>confdefs.h <<_ACEOF
20337#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20338_ACEOF
20339
20340fi
20341done
20342
20343
20344# Check for the Linux epoll interface; epoll* may be available in libc
20345# but return ENOSYS on a pre-2.6 kernel, so do a run-time check.
20346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support" >&5
20347$as_echo_n "checking for epoll support... " >&6; }
20348if ${apr_cv_epoll+:} false; then :
20349  $as_echo_n "(cached) " >&6
20350else
20351  if test "$cross_compiling" = yes; then :
20352  apr_cv_epoll=no
20353else
20354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20355/* end confdefs.h.  */
20356
20357#include <sys/epoll.h>
20358#include <unistd.h>
20359
20360int main()
20361{
20362    return epoll_create(5) == -1;
20363}
20364_ACEOF
20365if ac_fn_c_try_run "$LINENO"; then :
20366  apr_cv_epoll=yes
20367else
20368  apr_cv_epoll=no
20369fi
20370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20371  conftest.$ac_objext conftest.beam conftest.$ac_ext
20372fi
20373
20374fi
20375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll" >&5
20376$as_echo "$apr_cv_epoll" >&6; }
20377
20378if test "$apr_cv_epoll" = "yes"; then
20379
20380$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
20381
20382fi
20383
20384# test for epoll_create1
20385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5
20386$as_echo_n "checking for epoll_create1 support... " >&6; }
20387if ${apr_cv_epoll_create1+:} false; then :
20388  $as_echo_n "(cached) " >&6
20389else
20390  if test "$cross_compiling" = yes; then :
20391  apr_cv_epoll_create1=no
20392else
20393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20394/* end confdefs.h.  */
20395
20396#include <sys/epoll.h>
20397#include <unistd.h>
20398
20399int main()
20400{
20401    return epoll_create1(0) == -1;
20402}
20403_ACEOF
20404if ac_fn_c_try_run "$LINENO"; then :
20405  apr_cv_epoll_create1=yes
20406else
20407  apr_cv_epoll_create1=no
20408fi
20409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20410  conftest.$ac_objext conftest.beam conftest.$ac_ext
20411fi
20412
20413fi
20414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5
20415$as_echo "$apr_cv_epoll_create1" >&6; }
20416
20417if test "$apr_cv_epoll_create1" = "yes"; then
20418
20419$as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
20420
20421fi
20422
20423# test for dup3
20424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5
20425$as_echo_n "checking for dup3 support... " >&6; }
20426if ${apr_cv_dup3+:} false; then :
20427  $as_echo_n "(cached) " >&6
20428else
20429  if test "$cross_compiling" = yes; then :
20430  apr_cv_dup3=no
20431else
20432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20433/* end confdefs.h.  */
20434
20435#include <unistd.h>
20436
20437int main()
20438{
20439    return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
20440}
20441_ACEOF
20442if ac_fn_c_try_run "$LINENO"; then :
20443  apr_cv_dup3=yes
20444else
20445  apr_cv_dup3=no
20446fi
20447rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20448  conftest.$ac_objext conftest.beam conftest.$ac_ext
20449fi
20450
20451fi
20452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5
20453$as_echo "$apr_cv_dup3" >&6; }
20454
20455if test "$apr_cv_dup3" = "yes"; then
20456
20457$as_echo "#define HAVE_DUP3 1" >>confdefs.h
20458
20459fi
20460
20461# Test for accept4().  Create a non-blocking socket, bind it to
20462# an unspecified port & address (kernel picks), and attempt to
20463# call accept4() on it.  If the syscall is wired up (i.e. the
20464# kernel is new enough), it should return EAGAIN.
20465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5
20466$as_echo_n "checking for accept4 support... " >&6; }
20467if ${apr_cv_accept4+:} false; then :
20468  $as_echo_n "(cached) " >&6
20469else
20470  if test "$cross_compiling" = yes; then :
20471  apr_cv_accept4=no
20472else
20473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20474/* end confdefs.h.  */
20475
20476#include <sys/types.h>
20477#include <sys/socket.h>
20478#include <sys/wait.h>
20479#include <netinet/in.h>
20480#include <netinet/tcp.h>
20481#include <errno.h>
20482#include <string.h>
20483#include <unistd.h>
20484#include <fcntl.h>
20485
20486int main(int argc, char **argv)
20487{
20488    int fd, flags;
20489    struct sockaddr_in sin;
20490
20491    if ((fd = socket(AF_INET, SOCK_STREAM, 0)) == -1)
20492        return 1;
20493    flags = fcntl(fd, F_GETFL);
20494    if (flags == -1 || fcntl(fd, F_SETFL, flags|O_NONBLOCK) == -1)
20495        return 5;
20496
20497    memset(&sin, 0, sizeof sin);
20498    sin.sin_family = AF_INET;
20499
20500    if (bind(fd, (struct sockaddr *) &sin, sizeof sin) == -1)
20501        return 2;
20502
20503    if (listen(fd, 5) == -1)
20504        return 3;
20505
20506    if (accept4(fd, NULL, 0, SOCK_NONBLOCK) == 0
20507        || errno == EAGAIN || errno == EWOULDBLOCK)
20508        return 0;
20509
20510    return 4;
20511}
20512_ACEOF
20513if ac_fn_c_try_run "$LINENO"; then :
20514  apr_cv_accept4=yes
20515else
20516  apr_cv_accept4=no
20517fi
20518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20519  conftest.$ac_objext conftest.beam conftest.$ac_ext
20520fi
20521
20522fi
20523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5
20524$as_echo "$apr_cv_accept4" >&6; }
20525
20526if test "$apr_cv_accept4" = "yes"; then
20527
20528$as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
20529
20530fi
20531
20532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5
20533$as_echo_n "checking for SOCK_CLOEXEC support... " >&6; }
20534if ${apr_cv_sock_cloexec+:} false; then :
20535  $as_echo_n "(cached) " >&6
20536else
20537  if test "$cross_compiling" = yes; then :
20538  apr_cv_sock_cloexec=no
20539else
20540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20541/* end confdefs.h.  */
20542
20543#include <sys/types.h>
20544#include <sys/socket.h>
20545
20546int main()
20547{
20548    return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
20549}
20550_ACEOF
20551if ac_fn_c_try_run "$LINENO"; then :
20552  apr_cv_sock_cloexec=yes
20553else
20554  apr_cv_sock_cloexec=no
20555fi
20556rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20557  conftest.$ac_objext conftest.beam conftest.$ac_ext
20558fi
20559
20560fi
20561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5
20562$as_echo "$apr_cv_sock_cloexec" >&6; }
20563
20564if test "$apr_cv_sock_cloexec" = "yes"; then
20565
20566$as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
20567
20568fi
20569
20570for ac_func in fdatasync
20571do :
20572  ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
20573if test "x$ac_cv_func_fdatasync" = xyes; then :
20574  cat >>confdefs.h <<_ACEOF
20575#define HAVE_FDATASYNC 1
20576_ACEOF
20577
20578fi
20579done
20580
20581
20582# test for epoll_create1
20583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5
20584$as_echo_n "checking for epoll_create1 support... " >&6; }
20585if ${apr_cv_epoll_create1+:} false; then :
20586  $as_echo_n "(cached) " >&6
20587else
20588  if test "$cross_compiling" = yes; then :
20589  apr_cv_epoll_create1=no
20590else
20591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20592/* end confdefs.h.  */
20593
20594#include <sys/epoll.h>
20595#include <unistd.h>
20596
20597int main()
20598{
20599    return epoll_create1(0) == -1;
20600}
20601_ACEOF
20602if ac_fn_c_try_run "$LINENO"; then :
20603  apr_cv_epoll_create1=yes
20604else
20605  apr_cv_epoll_create1=no
20606fi
20607rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20608  conftest.$ac_objext conftest.beam conftest.$ac_ext
20609fi
20610
20611fi
20612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5
20613$as_echo "$apr_cv_epoll_create1" >&6; }
20614
20615if test "$apr_cv_epoll_create1" = "yes"; then
20616
20617$as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
20618
20619fi
20620
20621# Check for z/OS async i/o support.
20622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asio -> message queue support" >&5
20623$as_echo_n "checking for asio -> message queue support... " >&6; }
20624if ${apr_cv_aio_msgq+:} false; then :
20625  $as_echo_n "(cached) " >&6
20626else
20627  if test "$cross_compiling" = yes; then :
20628  apr_cv_aio_msgq=no
20629else
20630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20631/* end confdefs.h.  */
20632
20633#define _AIO_OS390
20634#include <aio.h>
20635
20636int main()
20637{
20638    struct aiocb a;
20639
20640    a.aio_notifytype = AIO_MSGQ;  /* use IPC message queue for notification */
20641
20642    return aio_cancel(2, NULL) == -1;
20643}
20644_ACEOF
20645if ac_fn_c_try_run "$LINENO"; then :
20646  apr_cv_aio_msgq=yes
20647else
20648  apr_cv_aio_msgq=no
20649fi
20650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20651  conftest.$ac_objext conftest.beam conftest.$ac_ext
20652fi
20653
20654fi
20655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_aio_msgq" >&5
20656$as_echo "$apr_cv_aio_msgq" >&6; }
20657
20658if test "$apr_cv_aio_msgq" = "yes"; then
20659
20660$as_echo "#define HAVE_AIO_MSGQ 1" >>confdefs.h
20661
20662fi
20663
20664# test for dup3
20665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5
20666$as_echo_n "checking for dup3 support... " >&6; }
20667if ${apr_cv_dup3+:} false; then :
20668  $as_echo_n "(cached) " >&6
20669else
20670  if test "$cross_compiling" = yes; then :
20671  apr_cv_dup3=no
20672else
20673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20674/* end confdefs.h.  */
20675
20676#include <unistd.h>
20677
20678int main()
20679{
20680    return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
20681}
20682_ACEOF
20683if ac_fn_c_try_run "$LINENO"; then :
20684  apr_cv_dup3=yes
20685else
20686  apr_cv_dup3=no
20687fi
20688rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20689  conftest.$ac_objext conftest.beam conftest.$ac_ext
20690fi
20691
20692fi
20693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5
20694$as_echo "$apr_cv_dup3" >&6; }
20695
20696if test "$apr_cv_dup3" = "yes"; then
20697
20698$as_echo "#define HAVE_DUP3 1" >>confdefs.h
20699
20700fi
20701
20702# test for accept4
20703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5
20704$as_echo_n "checking for accept4 support... " >&6; }
20705if ${apr_cv_accept4+:} false; then :
20706  $as_echo_n "(cached) " >&6
20707else
20708  if test "$cross_compiling" = yes; then :
20709  apr_cv_accept4=no
20710else
20711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20712/* end confdefs.h.  */
20713
20714#include <unistd.h>
20715#include <sys/types.h>
20716#include <sys/socket.h>
20717#include <sys/un.h>
20718#include <sys/wait.h>
20719#include <signal.h>
20720#include <errno.h>
20721
20722#define A4_SOCK "./apr_accept4_test_socket"
20723
20724int main()
20725{
20726    pid_t pid;
20727    int fd;
20728    struct sockaddr_un loc, rem;
20729    socklen_t rem_sz;
20730
20731    if ((pid = fork())) {
20732        int status;
20733
20734        unlink(A4_SOCK);
20735
20736        if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
20737            goto cleanup_failure2;
20738
20739        loc.sun_family = AF_UNIX;
20740        strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
20741
20742        if (bind(fd, (struct sockaddr *) &loc,
20743                 sizeof(struct sockaddr_un)) == -1)
20744            goto cleanup_failure;
20745
20746        if (listen(fd, 5) == -1)
20747            goto cleanup_failure;
20748
20749        rem_sz = sizeof(struct sockaddr_un);
20750        if (accept4(fd, (struct sockaddr *) &rem, &rem_sz, 0) == -1) {
20751            goto cleanup_failure;
20752        }
20753        else {
20754            close(fd);
20755            waitpid(pid, &status, 0);
20756            unlink(A4_SOCK);
20757            return 0;
20758        }
20759
20760cleanup_failure:
20761        close(fd);
20762cleanup_failure2:
20763        kill(pid, SIGKILL);
20764        waitpid(pid, &status, 0);
20765        unlink(A4_SOCK);
20766        return 1;
20767    }
20768    else {
20769        if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
20770            return 1; /* this will be bad: we'll hang */
20771
20772        loc.sun_family = AF_UNIX;
20773        strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
20774
20775        while(connect(fd, (struct sockaddr *) &loc,
20776                      sizeof(struct sockaddr_un)) == -1 &&
20777              (errno==ENOENT || errno==ECONNREFUSED))
20778            ;
20779
20780        close(fd);
20781        return 0;
20782    }
20783}
20784_ACEOF
20785if ac_fn_c_try_run "$LINENO"; then :
20786  apr_cv_accept4=yes
20787else
20788  apr_cv_accept4=no
20789fi
20790rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20791  conftest.$ac_objext conftest.beam conftest.$ac_ext
20792fi
20793
20794fi
20795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5
20796$as_echo "$apr_cv_accept4" >&6; }
20797
20798if test "$apr_cv_accept4" = "yes"; then
20799
20800$as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
20801
20802fi
20803
20804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5
20805$as_echo_n "checking for SOCK_CLOEXEC support... " >&6; }
20806if ${apr_cv_sock_cloexec+:} false; then :
20807  $as_echo_n "(cached) " >&6
20808else
20809  if test "$cross_compiling" = yes; then :
20810  apr_cv_sock_cloexec=no
20811else
20812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20813/* end confdefs.h.  */
20814
20815#include <sys/types.h>
20816#include <sys/socket.h>
20817
20818int main()
20819{
20820    return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
20821}
20822_ACEOF
20823if ac_fn_c_try_run "$LINENO"; then :
20824  apr_cv_sock_cloexec=yes
20825else
20826  apr_cv_sock_cloexec=no
20827fi
20828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20829  conftest.$ac_objext conftest.beam conftest.$ac_ext
20830fi
20831
20832fi
20833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5
20834$as_echo "$apr_cv_sock_cloexec" >&6; }
20835
20836if test "$apr_cv_sock_cloexec" = "yes"; then
20837
20838$as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
20839
20840fi
20841
20842for ac_func in getpwnam_r getpwuid_r getgrnam_r getgrgid_r
20843do :
20844  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20845ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20846if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20847  cat >>confdefs.h <<_ACEOF
20848#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20849_ACEOF
20850
20851fi
20852done
20853
20854
20855echo "${nl}Checking for Shared Memory Support..."
20856
20857# The real-time POSIX extensions (e.g. shm_*, sem_*) may only
20858# be available if linking against librt.
20859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
20860$as_echo_n "checking for library containing shm_open... " >&6; }
20861if ${ac_cv_search_shm_open+:} false; then :
20862  $as_echo_n "(cached) " >&6
20863else
20864  ac_func_search_save_LIBS=$LIBS
20865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20866/* end confdefs.h.  */
20867
20868/* Override any GCC internal prototype to avoid an error.
20869   Use char because int might match the return type of a GCC
20870   builtin and then its argument prototype would still apply.  */
20871#ifdef __cplusplus
20872extern "C"
20873#endif
20874char shm_open ();
20875int
20876main ()
20877{
20878return shm_open ();
20879  ;
20880  return 0;
20881}
20882_ACEOF
20883for ac_lib in '' rt; do
20884  if test -z "$ac_lib"; then
20885    ac_res="none required"
20886  else
20887    ac_res=-l$ac_lib
20888    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20889  fi
20890  if ac_fn_c_try_link "$LINENO"; then :
20891  ac_cv_search_shm_open=$ac_res
20892fi
20893rm -f core conftest.err conftest.$ac_objext \
20894    conftest$ac_exeext
20895  if ${ac_cv_search_shm_open+:} false; then :
20896  break
20897fi
20898done
20899if ${ac_cv_search_shm_open+:} false; then :
20900
20901else
20902  ac_cv_search_shm_open=no
20903fi
20904rm conftest.$ac_ext
20905LIBS=$ac_func_search_save_LIBS
20906fi
20907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
20908$as_echo "$ac_cv_search_shm_open" >&6; }
20909ac_res=$ac_cv_search_shm_open
20910if test "$ac_res" != no; then :
20911  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20912
20913fi
20914
20915
20916case $host in
20917 *-sysv*)
20918   ac_includes_default="$ac_includes_default
20919#if HAVE_SYS_MUTEX_H /* needed to define lock_t for sys/shm.h */
20920# include <sys/mutex.h>
20921#endif";;
20922esac
20923
20924for 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
20925do :
20926  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20927ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20928if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20929  cat >>confdefs.h <<_ACEOF
20930#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20931_ACEOF
20932
20933fi
20934
20935done
20936
20937for ac_func in mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \
20938                create_area
20939do :
20940  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20941ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20942if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20943  cat >>confdefs.h <<_ACEOF
20944#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20945_ACEOF
20946
20947fi
20948done
20949
20950
20951
20952  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON in sys/mman.h" >&5
20953$as_echo_n "checking for MAP_ANON in sys/mman.h... " >&6; }
20954if ${ac_cv_define_MAP_ANON+:} false; then :
20955  $as_echo_n "(cached) " >&6
20956else
20957
20958    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20959/* end confdefs.h.  */
20960
20961#include <sys/mman.h>
20962#ifdef MAP_ANON
20963YES_IS_DEFINED
20964#endif
20965
20966_ACEOF
20967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20968  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
20969  ac_cv_define_MAP_ANON=yes
20970else
20971  ac_cv_define_MAP_ANON=no
20972fi
20973rm -f conftest*
20974
20975
20976fi
20977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_MAP_ANON" >&5
20978$as_echo "$ac_cv_define_MAP_ANON" >&6; }
20979  if test "$ac_cv_define_MAP_ANON" = "yes"; then
20980
20981$as_echo "#define HAVE_MAP_ANON 1" >>confdefs.h
20982
20983  fi
20984
20985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
20986$as_echo_n "checking for /dev/zero... " >&6; }
20987if ${ac_cv_file__dev_zero+:} false; then :
20988  $as_echo_n "(cached) " >&6
20989else
20990  test "$cross_compiling" = yes &&
20991  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20992if test -r "/dev/zero"; then
20993  ac_cv_file__dev_zero=yes
20994else
20995  ac_cv_file__dev_zero=no
20996fi
20997fi
20998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5
20999$as_echo "$ac_cv_file__dev_zero" >&6; }
21000if test "x$ac_cv_file__dev_zero" = xyes; then :
21001
21002fi
21003
21004
21005# Not all systems can mmap /dev/zero (such as HP-UX).  Check for that.
21006if test "$ac_cv_func_mmap" = "yes" &&
21007   test "$ac_cv_file__dev_zero" = "yes"; then
21008    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap that can map /dev/zero" >&5
21009$as_echo_n "checking for mmap that can map /dev/zero... " >&6; }
21010    if test "$cross_compiling" = yes; then :
21011  ac_cv_file__dev_zero=no
21012else
21013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21014/* end confdefs.h.  */
21015
21016#include <sys/types.h>
21017#include <sys/stat.h>
21018#include <fcntl.h>
21019#ifdef HAVE_SYS_MMAN_H
21020#include <sys/mman.h>
21021#endif
21022    int main()
21023    {
21024        int fd;
21025        void *m;
21026        fd = open("/dev/zero", O_RDWR);
21027        if (fd < 0) {
21028            return 1;
21029        }
21030        m = mmap(0, sizeof(void*), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
21031        if (m == (void *)-1) {  /* aka MAP_FAILED */
21032            return 2;
21033        }
21034        if (munmap(m, sizeof(void*)) < 0) {
21035            return 3;
21036        }
21037        return 0;
21038    }
21039_ACEOF
21040if ac_fn_c_try_run "$LINENO"; then :
21041
21042else
21043  ac_cv_file__dev_zero=no
21044fi
21045rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21046  conftest.$ac_objext conftest.beam conftest.$ac_ext
21047fi
21048
21049
21050    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5
21051$as_echo "$ac_cv_file__dev_zero" >&6; }
21052fi
21053
21054# Now we determine which one is our anonymous shmem preference.
21055haveshmgetanon="0"
21056havemmapzero="0"
21057havemmapanon="0"
21058ac_decision_item='anonymous shared memory allocation method'
21059ac_decision_msg='FAILED'
21060ac_decision=''
21061
21062ac_rc=yes
21063for ac_spec in header:sys/ipc.h header:sys/shm.h header:sys/file.h              func:shmget func:shmat func:shmdt func:shmctl; do
21064    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21065    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21066    case $ac_type in
21067        header )
21068            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21069            ac_var="ac_cv_header_$ac_item"
21070            ;;
21071        file )
21072            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21073            ac_var="ac_cv_file_$ac_item"
21074            ;;
21075        func )   ac_var="ac_cv_func_$ac_item"   ;;
21076        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21077        define ) ac_var="ac_cv_define_$ac_item" ;;
21078        custom ) ac_var="$ac_item" ;;
21079    esac
21080    eval "ac_val=\$$ac_var"
21081    if test ".$ac_val" != .yes; then
21082        ac_rc=no
21083        break
21084    fi
21085done
21086if test ".$ac_rc" = .yes; then
21087    :
21088    haveshmgetanon="1"
21089
21090ac_decision='USE_SHMEM_SHMGET_ANON'
21091ac_decision_msg='SysV IPC shmget()'
21092ac_decision_USE_SHMEM_SHMGET_ANON=yes
21093ac_decision_USE_SHMEM_SHMGET_ANON_msg='SysV IPC shmget()'
21094
21095else
21096    :
21097
21098fi
21099
21100ac_rc=yes
21101for ac_spec in header:sys/mman.h func:mmap func:munmap file:/dev/zero; do
21102    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21103    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21104    case $ac_type in
21105        header )
21106            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21107            ac_var="ac_cv_header_$ac_item"
21108            ;;
21109        file )
21110            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21111            ac_var="ac_cv_file_$ac_item"
21112            ;;
21113        func )   ac_var="ac_cv_func_$ac_item"   ;;
21114        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21115        define ) ac_var="ac_cv_define_$ac_item" ;;
21116        custom ) ac_var="$ac_item" ;;
21117    esac
21118    eval "ac_val=\$$ac_var"
21119    if test ".$ac_val" != .yes; then
21120        ac_rc=no
21121        break
21122    fi
21123done
21124if test ".$ac_rc" = .yes; then
21125    :
21126    havemmapzero="1"
21127
21128ac_decision='USE_SHMEM_MMAP_ZERO'
21129ac_decision_msg='SVR4-style mmap() on /dev/zero'
21130ac_decision_USE_SHMEM_MMAP_ZERO=yes
21131ac_decision_USE_SHMEM_MMAP_ZERO_msg='SVR4-style mmap() on /dev/zero'
21132
21133else
21134    :
21135
21136fi
21137
21138ac_rc=yes
21139for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
21140    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21141    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21142    case $ac_type in
21143        header )
21144            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21145            ac_var="ac_cv_header_$ac_item"
21146            ;;
21147        file )
21148            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21149            ac_var="ac_cv_file_$ac_item"
21150            ;;
21151        func )   ac_var="ac_cv_func_$ac_item"   ;;
21152        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21153        define ) ac_var="ac_cv_define_$ac_item" ;;
21154        custom ) ac_var="$ac_item" ;;
21155    esac
21156    eval "ac_val=\$$ac_var"
21157    if test ".$ac_val" != .yes; then
21158        ac_rc=no
21159        break
21160    fi
21161done
21162if test ".$ac_rc" = .yes; then
21163    :
21164    havemmapanon="1"
21165
21166ac_decision='USE_SHMEM_MMAP_ANON'
21167ac_decision_msg='4.4BSD-style mmap() via MAP_ANON'
21168ac_decision_USE_SHMEM_MMAP_ANON=yes
21169ac_decision_USE_SHMEM_MMAP_ANON_msg='4.4BSD-style mmap() via MAP_ANON'
21170
21171else
21172    :
21173
21174fi
21175
21176ac_rc=yes
21177for ac_spec in header:os2.h; do
21178    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21179    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21180    case $ac_type in
21181        header )
21182            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21183            ac_var="ac_cv_header_$ac_item"
21184            ;;
21185        file )
21186            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21187            ac_var="ac_cv_file_$ac_item"
21188            ;;
21189        func )   ac_var="ac_cv_func_$ac_item"   ;;
21190        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21191        define ) ac_var="ac_cv_define_$ac_item" ;;
21192        custom ) ac_var="$ac_item" ;;
21193    esac
21194    eval "ac_val=\$$ac_var"
21195    if test ".$ac_val" != .yes; then
21196        ac_rc=no
21197        break
21198    fi
21199done
21200if test ".$ac_rc" = .yes; then
21201    :
21202    haveos2shm="1"
21203
21204ac_decision='USE_SHMEM_OS2_ANON'
21205ac_decision_msg='OS/2 DosAllocSharedMem()'
21206ac_decision_USE_SHMEM_OS2_ANON=yes
21207ac_decision_USE_SHMEM_OS2_ANON_msg='OS/2 DosAllocSharedMem()'
21208
21209else
21210    :
21211
21212fi
21213
21214ac_rc=yes
21215for ac_spec in header:kernel/OS.h func:create_area; do
21216    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21217    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21218    case $ac_type in
21219        header )
21220            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21221            ac_var="ac_cv_header_$ac_item"
21222            ;;
21223        file )
21224            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21225            ac_var="ac_cv_file_$ac_item"
21226            ;;
21227        func )   ac_var="ac_cv_func_$ac_item"   ;;
21228        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21229        define ) ac_var="ac_cv_define_$ac_item" ;;
21230        custom ) ac_var="$ac_item" ;;
21231    esac
21232    eval "ac_val=\$$ac_var"
21233    if test ".$ac_val" != .yes; then
21234        ac_rc=no
21235        break
21236    fi
21237done
21238if test ".$ac_rc" = .yes; then
21239    :
21240    havebeosshm="1"
21241
21242ac_decision='USE_SHMEM_BEOS_ANON'
21243ac_decision_msg='BeOS areas'
21244ac_decision_USE_SHMEM_BEOS_ANON=yes
21245ac_decision_USE_SHMEM_BEOS_ANON_msg='BeOS areas'
21246
21247else
21248    :
21249
21250fi
21251
21252ac_rc=yes
21253for ac_spec in header:windows.h func:CreateFileMapping; do
21254    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21255    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21256    case $ac_type in
21257        header )
21258            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21259            ac_var="ac_cv_header_$ac_item"
21260            ;;
21261        file )
21262            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21263            ac_var="ac_cv_file_$ac_item"
21264            ;;
21265        func )   ac_var="ac_cv_func_$ac_item"   ;;
21266        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21267        define ) ac_var="ac_cv_define_$ac_item" ;;
21268        custom ) ac_var="$ac_item" ;;
21269    esac
21270    eval "ac_val=\$$ac_var"
21271    if test ".$ac_val" != .yes; then
21272        ac_rc=no
21273        break
21274    fi
21275done
21276if test ".$ac_rc" = .yes; then
21277    :
21278    havewin32shm="1"
21279
21280ac_decision='USE_SHMEM_WIN32_ANON'
21281ac_decision_msg='Windows CreateFileMapping()'
21282ac_decision_USE_SHMEM_WIN32_ANON=yes
21283ac_decision_USE_SHMEM_WIN32_ANON_msg='Windows CreateFileMapping()'
21284
21285else
21286    :
21287
21288fi
21289
21290case $host in
21291    *linux* )
21292        # Linux has problems with MM_SHMT_MMANON even though it reports
21293        # that it has it.
21294        # FIXME - find exact 2.3 version that MMANON was fixed in.  It is
21295        # confirmed fixed in 2.4 series.
21296        if test $os_pre24linux -eq 1; then
21297            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling anon mmap() support for Linux pre-2.4" >&5
21298$as_echo "$as_me: WARNING: Disabling anon mmap() support for Linux pre-2.4" >&2;}
21299                ac_decision=''
21300    for ac_item in USE_SHMEM_MMAP_ZERO USE_SHMEM_SHMGET_ANON; do
21301         eval "ac_decision_this=\$ac_decision_${ac_item}"
21302         if test ".$ac_decision_this" = .yes; then
21303             ac_decision=$ac_item
21304             eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21305         fi
21306    done
21307
21308        fi
21309        ;;
21310    *hpux11* )
21311            ac_decision=''
21312    for ac_item in USE_SHMEM_SHMGET_ANON; do
21313         eval "ac_decision_this=\$ac_decision_${ac_item}"
21314         if test ".$ac_decision_this" = .yes; then
21315             ac_decision=$ac_item
21316             eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21317         fi
21318    done
21319
21320        ;;
21321esac
21322if test ".$ac_decision" = .; then
21323    echo "$0:Error: decision on $ac_decision_item failed" 1>&2
21324    exit 1
21325else
21326    if test ".$ac_decision_msg" = .; then
21327        ac_decision_msg="$ac_decision"
21328    fi
21329    cat >>confdefs.h <<_ACEOF
21330#define ${ac_decision_item} 1
21331_ACEOF
21332
21333    { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
21334$as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
21335fi
21336
21337cat >>confdefs.h <<_ACEOF
21338#define $ac_decision 1
21339_ACEOF
21340
21341
21342useshmgetanon="0"
21343usemmapzero="0"
21344usemmapanon="0"
21345
21346case $ac_decision in
21347    USE_SHMEM_SHMGET_ANON )
21348        useshmgetanon="1"
21349        ;;
21350    USE_SHMEM_MMAP_ZERO )
21351        usemmapzero="1"
21352        ;;
21353    USE_SHMEM_MMAP_ANON )
21354        usemmapanon="1"
21355        ;;
21356esac
21357
21358
21359
21360
21361
21362
21363
21364
21365# Now we determine which one is our name-based shmem preference.
21366havemmaptmp="0"
21367havemmapshm="0"
21368haveshmget="0"
21369havebeosarea="0"
21370haveos2shm="0"
21371havewin32shm="0"
21372ac_decision_item='namebased memory allocation method'
21373ac_decision_msg='FAILED'
21374ac_decision=''
21375
21376ac_rc=yes
21377for ac_spec in header:sys/mman.h func:mmap func:munmap; do
21378    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21379    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21380    case $ac_type in
21381        header )
21382            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21383            ac_var="ac_cv_header_$ac_item"
21384            ;;
21385        file )
21386            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21387            ac_var="ac_cv_file_$ac_item"
21388            ;;
21389        func )   ac_var="ac_cv_func_$ac_item"   ;;
21390        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21391        define ) ac_var="ac_cv_define_$ac_item" ;;
21392        custom ) ac_var="$ac_item" ;;
21393    esac
21394    eval "ac_val=\$$ac_var"
21395    if test ".$ac_val" != .yes; then
21396        ac_rc=no
21397        break
21398    fi
21399done
21400if test ".$ac_rc" = .yes; then
21401    :
21402    havemmaptmp="1"
21403
21404ac_decision='USE_SHMEM_MMAP_TMP'
21405ac_decision_msg='Classical mmap() on temporary file'
21406ac_decision_USE_SHMEM_MMAP_TMP=yes
21407ac_decision_USE_SHMEM_MMAP_TMP_msg='Classical mmap() on temporary file'
21408
21409else
21410    :
21411
21412fi
21413
21414ac_rc=yes
21415for ac_spec in header:sys/mman.h func:mmap func:munmap func:shm_open              func:shm_unlink; do
21416    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21417    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21418    case $ac_type in
21419        header )
21420            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21421            ac_var="ac_cv_header_$ac_item"
21422            ;;
21423        file )
21424            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21425            ac_var="ac_cv_file_$ac_item"
21426            ;;
21427        func )   ac_var="ac_cv_func_$ac_item"   ;;
21428        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21429        define ) ac_var="ac_cv_define_$ac_item" ;;
21430        custom ) ac_var="$ac_item" ;;
21431    esac
21432    eval "ac_val=\$$ac_var"
21433    if test ".$ac_val" != .yes; then
21434        ac_rc=no
21435        break
21436    fi
21437done
21438if test ".$ac_rc" = .yes; then
21439    :
21440    havemmapshm="1"
21441
21442ac_decision='USE_SHMEM_MMAP_SHM'
21443ac_decision_msg='mmap() via POSIX.1 shm_open() on temporary file'
21444ac_decision_USE_SHMEM_MMAP_SHM=yes
21445ac_decision_USE_SHMEM_MMAP_SHM_msg='mmap() via POSIX.1 shm_open() on temporary file'
21446
21447else
21448    :
21449
21450fi
21451
21452ac_rc=yes
21453for ac_spec in header:sys/ipc.h header:sys/shm.h header:sys/file.h              func:shmget func:shmat func:shmdt func:shmctl; do
21454    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21455    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21456    case $ac_type in
21457        header )
21458            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21459            ac_var="ac_cv_header_$ac_item"
21460            ;;
21461        file )
21462            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21463            ac_var="ac_cv_file_$ac_item"
21464            ;;
21465        func )   ac_var="ac_cv_func_$ac_item"   ;;
21466        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21467        define ) ac_var="ac_cv_define_$ac_item" ;;
21468        custom ) ac_var="$ac_item" ;;
21469    esac
21470    eval "ac_val=\$$ac_var"
21471    if test ".$ac_val" != .yes; then
21472        ac_rc=no
21473        break
21474    fi
21475done
21476if test ".$ac_rc" = .yes; then
21477    :
21478    haveshmget="1"
21479
21480ac_decision='USE_SHMEM_SHMGET'
21481ac_decision_msg='SysV IPC shmget()'
21482ac_decision_USE_SHMEM_SHMGET=yes
21483ac_decision_USE_SHMEM_SHMGET_msg='SysV IPC shmget()'
21484
21485else
21486    :
21487
21488fi
21489
21490ac_rc=yes
21491for ac_spec in header:kernel/OS.h func:create_area; do
21492    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21493    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21494    case $ac_type in
21495        header )
21496            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21497            ac_var="ac_cv_header_$ac_item"
21498            ;;
21499        file )
21500            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21501            ac_var="ac_cv_file_$ac_item"
21502            ;;
21503        func )   ac_var="ac_cv_func_$ac_item"   ;;
21504        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21505        define ) ac_var="ac_cv_define_$ac_item" ;;
21506        custom ) ac_var="$ac_item" ;;
21507    esac
21508    eval "ac_val=\$$ac_var"
21509    if test ".$ac_val" != .yes; then
21510        ac_rc=no
21511        break
21512    fi
21513done
21514if test ".$ac_rc" = .yes; then
21515    :
21516    havebeosshm="1"
21517
21518ac_decision='USE_SHMEM_BEOS'
21519ac_decision_msg='BeOS areas'
21520ac_decision_USE_SHMEM_BEOS=yes
21521ac_decision_USE_SHMEM_BEOS_msg='BeOS areas'
21522
21523else
21524    :
21525
21526fi
21527
21528ac_rc=yes
21529for ac_spec in header:os2.h; do
21530    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21531    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21532    case $ac_type in
21533        header )
21534            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21535            ac_var="ac_cv_header_$ac_item"
21536            ;;
21537        file )
21538            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21539            ac_var="ac_cv_file_$ac_item"
21540            ;;
21541        func )   ac_var="ac_cv_func_$ac_item"   ;;
21542        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21543        define ) ac_var="ac_cv_define_$ac_item" ;;
21544        custom ) ac_var="$ac_item" ;;
21545    esac
21546    eval "ac_val=\$$ac_var"
21547    if test ".$ac_val" != .yes; then
21548        ac_rc=no
21549        break
21550    fi
21551done
21552if test ".$ac_rc" = .yes; then
21553    :
21554    haveos2shm="1"
21555
21556ac_decision='USE_SHMEM_OS2'
21557ac_decision_msg='OS/2 DosAllocSharedMem()'
21558ac_decision_USE_SHMEM_OS2=yes
21559ac_decision_USE_SHMEM_OS2_msg='OS/2 DosAllocSharedMem()'
21560
21561else
21562    :
21563
21564fi
21565
21566ac_rc=yes
21567for ac_spec in header:windows.h; do
21568    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21569    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21570    case $ac_type in
21571        header )
21572            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21573            ac_var="ac_cv_header_$ac_item"
21574            ;;
21575        file )
21576            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21577            ac_var="ac_cv_file_$ac_item"
21578            ;;
21579        func )   ac_var="ac_cv_func_$ac_item"   ;;
21580        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21581        define ) ac_var="ac_cv_define_$ac_item" ;;
21582        custom ) ac_var="$ac_item" ;;
21583    esac
21584    eval "ac_val=\$$ac_var"
21585    if test ".$ac_val" != .yes; then
21586        ac_rc=no
21587        break
21588    fi
21589done
21590if test ".$ac_rc" = .yes; then
21591    :
21592    havewin32shm="1"
21593
21594ac_decision='USE_SHMEM_WIN32'
21595ac_decision_msg='Windows shared memory'
21596ac_decision_USE_SHMEM_WIN32=yes
21597ac_decision_USE_SHMEM_WIN32_msg='Windows shared memory'
21598
21599else
21600    :
21601
21602fi
21603
21604# Check whether --enable-posix-shm was given.
21605if test "${enable_posix_shm+set}" = set; then :
21606  enableval=$enable_posix_shm;
21607if test "$havemmapshm" = "1"; then
21608      ac_decision=''
21609    for ac_item in USE_SHMEM_MMAP_SHM; do
21610         eval "ac_decision_this=\$ac_decision_${ac_item}"
21611         if test ".$ac_decision_this" = .yes; then
21612             ac_decision=$ac_item
21613             eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21614         fi
21615    done
21616
21617fi
21618
21619fi
21620
21621case $host in
21622    *linux* )
21623        # Linux pre-2.4 had problems with MM_SHMT_MMANON even though
21624        # it reports that it has it.
21625        if test $os_pre24linux -eq 1; then
21626                ac_decision=''
21627    for ac_item in USE_SHMEM_MMAP_TMP USE_SHMEM_MMAP_SHM                                   USE_SHMEM_SHMGET; do
21628         eval "ac_decision_this=\$ac_decision_${ac_item}"
21629         if test ".$ac_decision_this" = .yes; then
21630             ac_decision=$ac_item
21631             eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21632         fi
21633    done
21634
21635        fi
21636        ;;
21637esac
21638if test ".$ac_decision" = .; then
21639    echo "$0:Error: decision on $ac_decision_item failed" 1>&2
21640    exit 1
21641else
21642    if test ".$ac_decision_msg" = .; then
21643        ac_decision_msg="$ac_decision"
21644    fi
21645    cat >>confdefs.h <<_ACEOF
21646#define ${ac_decision_item} 1
21647_ACEOF
21648
21649    { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
21650$as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
21651fi
21652
21653cat >>confdefs.h <<_ACEOF
21654#define $ac_decision 1
21655_ACEOF
21656
21657
21658usemmaptmp="0"
21659usemmapshm="0"
21660useshmget="0"
21661usebeosarea="0"
21662useos2shm="0"
21663usewin32shm="0"
21664
21665case $ac_decision in
21666    USE_SHMEM_MMAP_TMP )
21667        usemmaptmp="1"
21668        ;;
21669    USE_SHMEM_MMAP_SHM )
21670        usemmapshm="1"
21671        ;;
21672    USE_SHMEM_SHMGET )
21673        useshmget="1"
21674        ;;
21675    USE_SHMEM_BEOS )
21676        usebeosarea="1"
21677        ;;
21678    USE_SHMEM_OS2 )
21679        useos2shm="1"
21680        ;;
21681    USE_SHMEM_WIN32 )
21682        usewin32shm="1"
21683        ;;
21684esac
21685
21686# Do we have any shared memory support?
21687if test "$usemmaptmp$usemmapshm$usemmapzero$useshmget$usemmapanon$usebeosarea$useos2shm$usewin32shm" = "00000000"; then
21688  sharedmem="0"
21689else
21690  sharedmem="1"
21691fi
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704
21705
21706
21707
21708ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21709if test "x$ac_cv_type_size_t" = xyes; then :
21710
21711else
21712
21713cat >>confdefs.h <<_ACEOF
21714#define size_t unsigned int
21715_ACEOF
21716
21717fi
21718
21719# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21720# for constant arguments.  Useless!
21721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21722$as_echo_n "checking for working alloca.h... " >&6; }
21723if ${ac_cv_working_alloca_h+:} false; then :
21724  $as_echo_n "(cached) " >&6
21725else
21726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21727/* end confdefs.h.  */
21728#include <alloca.h>
21729int
21730main ()
21731{
21732char *p = (char *) alloca (2 * sizeof (int));
21733			  if (p) return 0;
21734  ;
21735  return 0;
21736}
21737_ACEOF
21738if ac_fn_c_try_link "$LINENO"; then :
21739  ac_cv_working_alloca_h=yes
21740else
21741  ac_cv_working_alloca_h=no
21742fi
21743rm -f core conftest.err conftest.$ac_objext \
21744    conftest$ac_exeext conftest.$ac_ext
21745fi
21746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21747$as_echo "$ac_cv_working_alloca_h" >&6; }
21748if test $ac_cv_working_alloca_h = yes; then
21749
21750$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21751
21752fi
21753
21754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21755$as_echo_n "checking for alloca... " >&6; }
21756if ${ac_cv_func_alloca_works+:} false; then :
21757  $as_echo_n "(cached) " >&6
21758else
21759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21760/* end confdefs.h.  */
21761#ifdef __GNUC__
21762# define alloca __builtin_alloca
21763#else
21764# ifdef _MSC_VER
21765#  include <malloc.h>
21766#  define alloca _alloca
21767# else
21768#  ifdef HAVE_ALLOCA_H
21769#   include <alloca.h>
21770#  else
21771#   ifdef _AIX
21772 #pragma alloca
21773#   else
21774#    ifndef alloca /* predefined by HP cc +Olibcalls */
21775void *alloca (size_t);
21776#    endif
21777#   endif
21778#  endif
21779# endif
21780#endif
21781
21782int
21783main ()
21784{
21785char *p = (char *) alloca (1);
21786				    if (p) return 0;
21787  ;
21788  return 0;
21789}
21790_ACEOF
21791if ac_fn_c_try_link "$LINENO"; then :
21792  ac_cv_func_alloca_works=yes
21793else
21794  ac_cv_func_alloca_works=no
21795fi
21796rm -f core conftest.err conftest.$ac_objext \
21797    conftest$ac_exeext conftest.$ac_ext
21798fi
21799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21800$as_echo "$ac_cv_func_alloca_works" >&6; }
21801
21802if test $ac_cv_func_alloca_works = yes; then
21803
21804$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21805
21806else
21807  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21808# that cause trouble.  Some versions do not even contain alloca or
21809# contain a buggy version.  If you still want to use their alloca,
21810# use ar to extract alloca.o from them instead of compiling alloca.c.
21811
21812ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21813
21814$as_echo "#define C_ALLOCA 1" >>confdefs.h
21815
21816
21817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21818$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21819if ${ac_cv_os_cray+:} false; then :
21820  $as_echo_n "(cached) " >&6
21821else
21822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21823/* end confdefs.h.  */
21824#if defined CRAY && ! defined CRAY2
21825webecray
21826#else
21827wenotbecray
21828#endif
21829
21830_ACEOF
21831if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21832  $EGREP "webecray" >/dev/null 2>&1; then :
21833  ac_cv_os_cray=yes
21834else
21835  ac_cv_os_cray=no
21836fi
21837rm -f conftest*
21838
21839fi
21840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21841$as_echo "$ac_cv_os_cray" >&6; }
21842if test $ac_cv_os_cray = yes; then
21843  for ac_func in _getb67 GETB67 getb67; do
21844    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21845ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21846if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21847
21848cat >>confdefs.h <<_ACEOF
21849#define CRAY_STACKSEG_END $ac_func
21850_ACEOF
21851
21852    break
21853fi
21854
21855  done
21856fi
21857
21858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21859$as_echo_n "checking stack direction for C alloca... " >&6; }
21860if ${ac_cv_c_stack_direction+:} false; then :
21861  $as_echo_n "(cached) " >&6
21862else
21863  if test "$cross_compiling" = yes; then :
21864  ac_cv_c_stack_direction=0
21865else
21866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21867/* end confdefs.h.  */
21868$ac_includes_default
21869int
21870find_stack_direction (int *addr, int depth)
21871{
21872  int dir, dummy = 0;
21873  if (! addr)
21874    addr = &dummy;
21875  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
21876  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
21877  return dir + dummy;
21878}
21879
21880int
21881main (int argc, char **argv)
21882{
21883  return find_stack_direction (0, argc + !argv + 20) < 0;
21884}
21885_ACEOF
21886if ac_fn_c_try_run "$LINENO"; then :
21887  ac_cv_c_stack_direction=1
21888else
21889  ac_cv_c_stack_direction=-1
21890fi
21891rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21892  conftest.$ac_objext conftest.beam conftest.$ac_ext
21893fi
21894
21895fi
21896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21897$as_echo "$ac_cv_c_stack_direction" >&6; }
21898cat >>confdefs.h <<_ACEOF
21899#define STACK_DIRECTION $ac_cv_c_stack_direction
21900_ACEOF
21901
21902
21903fi
21904
21905
21906for ac_func in calloc setsid isinf isnan \
21907                getenv putenv setenv unsetenv \
21908                writev getifaddrs utime utimes
21909do :
21910  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21911ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21912if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21913  cat >>confdefs.h <<_ACEOF
21914#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21915_ACEOF
21916
21917fi
21918done
21919
21920for ac_func in setrlimit
21921do :
21922  ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
21923if test "x$ac_cv_func_setrlimit" = xyes; then :
21924  cat >>confdefs.h <<_ACEOF
21925#define HAVE_SETRLIMIT 1
21926_ACEOF
21927  have_setrlimit="1"
21928else
21929   have_setrlimit="0"
21930fi
21931done
21932
21933for ac_func in getrlimit
21934do :
21935  ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
21936if test "x$ac_cv_func_getrlimit" = xyes; then :
21937  cat >>confdefs.h <<_ACEOF
21938#define HAVE_GETRLIMIT 1
21939_ACEOF
21940  have_getrlimit="1"
21941else
21942   have_getrlimit="0"
21943fi
21944done
21945
21946sendfile="0"
21947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfilev in -lsendfile" >&5
21948$as_echo_n "checking for sendfilev in -lsendfile... " >&6; }
21949if ${ac_cv_lib_sendfile_sendfilev+:} false; then :
21950  $as_echo_n "(cached) " >&6
21951else
21952  ac_check_lib_save_LIBS=$LIBS
21953LIBS="-lsendfile  $LIBS"
21954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21955/* end confdefs.h.  */
21956
21957/* Override any GCC internal prototype to avoid an error.
21958   Use char because int might match the return type of a GCC
21959   builtin and then its argument prototype would still apply.  */
21960#ifdef __cplusplus
21961extern "C"
21962#endif
21963char sendfilev ();
21964int
21965main ()
21966{
21967return sendfilev ();
21968  ;
21969  return 0;
21970}
21971_ACEOF
21972if ac_fn_c_try_link "$LINENO"; then :
21973  ac_cv_lib_sendfile_sendfilev=yes
21974else
21975  ac_cv_lib_sendfile_sendfilev=no
21976fi
21977rm -f core conftest.err conftest.$ac_objext \
21978    conftest$ac_exeext conftest.$ac_ext
21979LIBS=$ac_check_lib_save_LIBS
21980fi
21981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfilev" >&5
21982$as_echo "$ac_cv_lib_sendfile_sendfilev" >&6; }
21983if test "x$ac_cv_lib_sendfile_sendfilev" = xyes; then :
21984  cat >>confdefs.h <<_ACEOF
21985#define HAVE_LIBSENDFILE 1
21986_ACEOF
21987
21988  LIBS="-lsendfile $LIBS"
21989
21990fi
21991
21992for ac_func in sendfile send_file sendfilev
21993do :
21994  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21995ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21996if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21997  cat >>confdefs.h <<_ACEOF
21998#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21999_ACEOF
22000  sendfile="1"
22001fi
22002done
22003
22004
22005
22006
22007# Check whether --with-sendfile was given.
22008if test "${with_sendfile+set}" = set; then :
22009  withval=$with_sendfile;  if test "$withval" = "yes"; then
22010        sendfile="1"
22011    else
22012        sendfile="0"
22013    fi
22014else
22015
22016    orig_sendfile=$sendfile
22017    case $host in
22018        *freebsd*)
22019            # FreeBSD < 4.2 has issues with threads+sendfile
22020            if test $os_version -le "401999"; then
22021                if test "$threads" = "1"; then
22022                    sendfile="0"
22023                fi
22024            fi
22025            ;;
22026        *alpha*-dec-osf* )
22027            sendfile="0"
22028            ;;
22029        s390-*-linux-gnu)
22030            # disable sendfile support for 2.2 on S/390
22031            if test $os_pre24linux -eq 1; then
22032                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabled sendfile support for Linux 2.2 on S/390" >&5
22033$as_echo "$as_me: WARNING: Disabled sendfile support for Linux 2.2 on S/390" >&2;}
22034                sendfile="0"
22035            fi
22036            ;;
22037        *aix*)
22038            # compiler-independent check for 64-bit build
22039            # The cast to long int works around a bug in the HP C Compiler
22040# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22041# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22042# This bug is HP SR number 8606223364.
22043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
22044$as_echo_n "checking size of void*... " >&6; }
22045if ${ac_cv_sizeof_voidp+:} false; then :
22046  $as_echo_n "(cached) " >&6
22047else
22048  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
22049
22050else
22051  if test "$ac_cv_type_voidp" = yes; then
22052     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22054as_fn_error 77 "cannot compute sizeof (void*)
22055See \`config.log' for more details" "$LINENO" 5; }
22056   else
22057     ac_cv_sizeof_voidp=0
22058   fi
22059fi
22060
22061fi
22062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
22063$as_echo "$ac_cv_sizeof_voidp" >&6; }
22064
22065
22066
22067cat >>confdefs.h <<_ACEOF
22068#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
22069_ACEOF
22070
22071
22072            if test "x$ac_cv_sizeof_voidp" = "x8"; then
22073                # sendfile not working for 64-bit build
22074                sendfile="0"
22075            fi
22076            ;;
22077    esac
22078    if test "$orig_sendfile" != "$sendfile"; then
22079      echo "sendfile support disabled to avoid system problem"
22080    fi
22081fi
22082
22083
22084
22085for ac_func in sigaction
22086do :
22087  ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
22088if test "x$ac_cv_func_sigaction" = xyes; then :
22089  cat >>confdefs.h <<_ACEOF
22090#define HAVE_SIGACTION 1
22091_ACEOF
22092  have_sigaction="1"
22093else
22094   have_sigaction="0"
22095fi
22096done
22097
22098ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
22099/* NetBSD declares sys_siglist in unistd.h.  */
22100#ifdef HAVE_UNISTD_H
22101# include <unistd.h>
22102#endif
22103
22104"
22105if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
22106  ac_have_decl=1
22107else
22108  ac_have_decl=0
22109fi
22110
22111cat >>confdefs.h <<_ACEOF
22112#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
22113_ACEOF
22114
22115
22116
22117for ac_func in fork
22118do :
22119  ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
22120if test "x$ac_cv_func_fork" = xyes; then :
22121  cat >>confdefs.h <<_ACEOF
22122#define HAVE_FORK 1
22123_ACEOF
22124  fork="1"
22125else
22126   fork="0"
22127fi
22128done
22129
22130
22131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr" >&5
22132$as_echo_n "checking for inet_addr... " >&6; }
22133if ${ac_cv_func_inet_addr+:} false; then :
22134  $as_echo_n "(cached) " >&6
22135else
22136
22137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22138/* end confdefs.h.  */
22139
22140#ifdef HAVE_SYS_TYPES_H
22141#include <sys/types.h>
22142#endif
22143#ifdef HAVE_ARPA_INET_H
22144#include <arpa/inet.h>
22145#endif
22146
22147int
22148main ()
22149{
22150
22151inet_addr("127.0.0.1");
22152
22153  ;
22154  return 0;
22155}
22156_ACEOF
22157if ac_fn_c_try_compile "$LINENO"; then :
22158
22159    ac_cv_func_inet_addr=yes
22160
22161else
22162
22163    ac_cv_func_inet_addr=no
22164
22165fi
22166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22167
22168fi
22169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_addr" >&5
22170$as_echo "$ac_cv_func_inet_addr" >&6; }
22171
22172if test "$ac_cv_func_inet_addr" = "yes"; then
22173  have_inet_addr=1
22174else
22175  have_inet_addr=0
22176fi
22177
22178
22179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_network" >&5
22180$as_echo_n "checking for inet_network... " >&6; }
22181if ${ac_cv_func_inet_network+:} false; then :
22182  $as_echo_n "(cached) " >&6
22183else
22184
22185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22186/* end confdefs.h.  */
22187
22188#ifdef HAVE_SYS_TYPES_H
22189#include <sys/types.h>
22190#endif
22191#ifdef HAVE_ARPA_INET_H
22192#include <arpa/inet.h>
22193#endif
22194
22195int
22196main ()
22197{
22198
22199inet_network("127.0.0.1");
22200
22201  ;
22202  return 0;
22203}
22204_ACEOF
22205if ac_fn_c_try_compile "$LINENO"; then :
22206
22207    ac_cv_func_inet_network=yes
22208
22209else
22210
22211    ac_cv_func_inet_network=no
22212
22213fi
22214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22215
22216fi
22217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_network" >&5
22218$as_echo "$ac_cv_func_inet_network" >&6; }
22219
22220if test "$ac_cv_func_inet_network" = "yes"; then
22221  have_inet_network=1
22222else
22223  have_inet_network=0
22224fi
22225
22226
22227ac_fn_c_check_func "$LINENO" "_getch" "ac_cv_func__getch"
22228if test "x$ac_cv_func__getch" = xyes; then :
22229
22230fi
22231
22232for ac_func in strerror_r
22233do :
22234  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
22235if test "x$ac_cv_func_strerror_r" = xyes; then :
22236  cat >>confdefs.h <<_ACEOF
22237#define HAVE_STRERROR_R 1
22238_ACEOF
22239  strerror_r="1"
22240else
22241   strerror_r="0"
22242fi
22243done
22244
22245if test "$strerror_r" = "1"; then
22246
22247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of return code from strerror_r" >&5
22248$as_echo_n "checking for type of return code from strerror_r... " >&6; }
22249if test "$cross_compiling" = yes; then :
22250
22251    ac_cv_strerror_r_rc_int=no
22252else
22253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22254/* end confdefs.h.  */
22255
22256#include <errno.h>
22257#include <string.h>
22258#include <stdio.h>
22259main()
22260{
22261  char buf[1024];
22262  if (strerror_r(ERANGE, buf, sizeof buf) < 1) {
22263    exit(0);
22264  }
22265  else {
22266    exit(1);
22267  }
22268}
22269_ACEOF
22270if ac_fn_c_try_run "$LINENO"; then :
22271
22272    ac_cv_strerror_r_rc_int=yes
22273else
22274
22275    ac_cv_strerror_r_rc_int=no
22276fi
22277rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22278  conftest.$ac_objext conftest.beam conftest.$ac_ext
22279fi
22280
22281if test "x$ac_cv_strerror_r_rc_int" = xyes; then
22282
22283$as_echo "#define STRERROR_R_RC_INT 1" >>confdefs.h
22284
22285  msg="int"
22286else
22287  msg="pointer"
22288fi
22289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
22290$as_echo "$msg" >&6; }
22291
22292fi
22293for ac_func in mmap
22294do :
22295  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
22296if test "x$ac_cv_func_mmap" = xyes; then :
22297  cat >>confdefs.h <<_ACEOF
22298#define HAVE_MMAP 1
22299_ACEOF
22300  mmap="1"
22301else
22302   mmap="0"
22303fi
22304done
22305
22306if test "$native_mmap_emul" = "1"; then
22307    mmap="1"
22308fi
22309for ac_func in memmove
22310do :
22311  ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22312if test "x$ac_cv_func_memmove" = xyes; then :
22313  cat >>confdefs.h <<_ACEOF
22314#define HAVE_MEMMOVE 1
22315_ACEOF
22316  have_memmove="1"
22317else
22318  have_memmove="0"
22319fi
22320done
22321
22322for ac_func in getpass getpassphrase gmtime_r localtime_r
22323do :
22324  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22325ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22326if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22327  cat >>confdefs.h <<_ACEOF
22328#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22329_ACEOF
22330
22331fi
22332done
22333
22334case $host in
22335    *-hp-hpux*)
22336                ;;
22337    *)
22338        for ac_func in mkstemp
22339do :
22340  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
22341if test "x$ac_cv_func_mkstemp" = xyes; then :
22342  cat >>confdefs.h <<_ACEOF
22343#define HAVE_MKSTEMP 1
22344_ACEOF
22345
22346fi
22347done
22348
22349        ;;
22350esac
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sigwait takes one argument" >&5
22365$as_echo_n "checking whether sigwait takes one argument... " >&6; }
22366if ${ac_cv_sigwait_one_arg+:} false; then :
22367  $as_echo_n "(cached) " >&6
22368else
22369
22370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22371/* end confdefs.h.  */
22372
22373#if defined(__NETBSD__) || defined(DARWIN)
22374    /* When using the unproven-pthreads package, we need to pull in this
22375     * header to get a prototype for sigwait().  Else things will fail later
22376     * on.  XXX Should probably be fixed in the unproven-pthreads package.
22377     * Darwin is declaring sigwait() in the wrong place as well.
22378     */
22379#include <pthread.h>
22380#endif
22381#include <signal.h>
22382
22383int
22384main ()
22385{
22386
22387  sigset_t set;
22388
22389  sigwait(&set);
22390
22391  ;
22392  return 0;
22393}
22394_ACEOF
22395if ac_fn_c_try_compile "$LINENO"; then :
22396
22397  ac_cv_sigwait_one_arg=yes
22398
22399else
22400
22401  ac_cv_sigwait_one_arg=no
22402
22403fi
22404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22405fi
22406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sigwait_one_arg" >&5
22407$as_echo "$ac_cv_sigwait_one_arg" >&6; }
22408  if test "$ac_cv_sigwait_one_arg" = "yes"; then
22409
22410$as_echo "#define SIGWAIT_TAKES_ONE_ARG 1" >>confdefs.h
22411
22412  fi
22413
22414
22415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
22416$as_echo_n "checking for ANSI C header files... " >&6; }
22417if ${ac_cv_header_stdc+:} false; then :
22418  $as_echo_n "(cached) " >&6
22419else
22420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22421/* end confdefs.h.  */
22422#include <stdlib.h>
22423#include <stdarg.h>
22424#include <string.h>
22425#include <float.h>
22426
22427int
22428main ()
22429{
22430
22431  ;
22432  return 0;
22433}
22434_ACEOF
22435if ac_fn_c_try_compile "$LINENO"; then :
22436  ac_cv_header_stdc=yes
22437else
22438  ac_cv_header_stdc=no
22439fi
22440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22441
22442if test $ac_cv_header_stdc = yes; then
22443  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22445/* end confdefs.h.  */
22446#include <string.h>
22447
22448_ACEOF
22449if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22450  $EGREP "memchr" >/dev/null 2>&1; then :
22451
22452else
22453  ac_cv_header_stdc=no
22454fi
22455rm -f conftest*
22456
22457fi
22458
22459if test $ac_cv_header_stdc = yes; then
22460  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22462/* end confdefs.h.  */
22463#include <stdlib.h>
22464
22465_ACEOF
22466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22467  $EGREP "free" >/dev/null 2>&1; then :
22468
22469else
22470  ac_cv_header_stdc=no
22471fi
22472rm -f conftest*
22473
22474fi
22475
22476if test $ac_cv_header_stdc = yes; then
22477  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22478  if test "$cross_compiling" = yes; then :
22479  :
22480else
22481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22482/* end confdefs.h.  */
22483#include <ctype.h>
22484#include <stdlib.h>
22485#if ((' ' & 0x0FF) == 0x020)
22486# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22487# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22488#else
22489# define ISLOWER(c) \
22490		   (('a' <= (c) && (c) <= 'i') \
22491		     || ('j' <= (c) && (c) <= 'r') \
22492		     || ('s' <= (c) && (c) <= 'z'))
22493# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22494#endif
22495
22496#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22497int
22498main ()
22499{
22500  int i;
22501  for (i = 0; i < 256; i++)
22502    if (XOR (islower (i), ISLOWER (i))
22503	|| toupper (i) != TOUPPER (i))
22504      return 2;
22505  return 0;
22506}
22507_ACEOF
22508if ac_fn_c_try_run "$LINENO"; then :
22509
22510else
22511  ac_cv_header_stdc=no
22512fi
22513rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22514  conftest.$ac_objext conftest.beam conftest.$ac_ext
22515fi
22516
22517fi
22518fi
22519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
22520$as_echo "$ac_cv_header_stdc" >&6; }
22521if test $ac_cv_header_stdc = yes; then
22522
22523$as_echo "#define STDC_HEADERS 1" >>confdefs.h
22524
22525fi
22526
22527
22528
22529for ac_header in ByteOrder.h		\
22530    conio.h		\
22531    crypt.h		\
22532    ctype.h		\
22533    dir.h		\
22534    dirent.h		\
22535    dl.h		\
22536    dlfcn.h		\
22537    errno.h		\
22538    fcntl.h		\
22539    grp.h		\
22540    io.h		\
22541    limits.h		\
22542    mach-o/dyld.h	\
22543    malloc.h		\
22544    memory.h		\
22545    netdb.h		\
22546    osreldate.h		\
22547    poll.h		\
22548    process.h		\
22549    pwd.h		\
22550    semaphore.h		\
22551    signal.h		\
22552    stdarg.h		\
22553    stddef.h		\
22554    stdio.h		\
22555    stdlib.h		\
22556    string.h		\
22557    strings.h		\
22558    sysapi.h		\
22559    sysgtime.h		\
22560    termios.h		\
22561    time.h		\
22562    tpfeq.h		\
22563    tpfio.h		\
22564    unistd.h		\
22565    unix.h		\
22566    windows.h		\
22567    winsock2.h		\
22568    arpa/inet.h		\
22569    kernel/OS.h		\
22570    net/errno.h		\
22571    netinet/in.h	\
22572    netinet/sctp.h      \
22573    netinet/sctp_uio.h  \
22574    sys/file.h		\
22575    sys/ioctl.h         \
22576    sys/mman.h		\
22577    sys/param.h         \
22578    sys/poll.h		\
22579    sys/resource.h	\
22580    sys/select.h	\
22581    sys/sem.h		\
22582    sys/sendfile.h	\
22583    sys/signal.h	\
22584    sys/socket.h	\
22585    sys/sockio.h	\
22586    sys/stat.h          \
22587    sys/sysctl.h	\
22588    sys/syslimits.h	\
22589    sys/time.h		\
22590    sys/types.h		\
22591    sys/uio.h		\
22592    sys/un.h		\
22593    sys/wait.h
22594do :
22595  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22596ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22597if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22598  cat >>confdefs.h <<_ACEOF
22599#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22600_ACEOF
22601
22602fi
22603
22604done
22605
22606for aprt_i in ByteOrder.h		\
22607    conio.h		\
22608    crypt.h		\
22609    ctype.h		\
22610    dir.h		\
22611    dirent.h		\
22612    dl.h		\
22613    dlfcn.h		\
22614    errno.h		\
22615    fcntl.h		\
22616    grp.h		\
22617    io.h		\
22618    limits.h		\
22619    mach-o/dyld.h	\
22620    malloc.h		\
22621    memory.h		\
22622    netdb.h		\
22623    osreldate.h		\
22624    poll.h		\
22625    process.h		\
22626    pwd.h		\
22627    semaphore.h		\
22628    signal.h		\
22629    stdarg.h		\
22630    stddef.h		\
22631    stdio.h		\
22632    stdlib.h		\
22633    string.h		\
22634    strings.h		\
22635    sysapi.h		\
22636    sysgtime.h		\
22637    termios.h		\
22638    time.h		\
22639    tpfeq.h		\
22640    tpfio.h		\
22641    unistd.h		\
22642    unix.h		\
22643    windows.h		\
22644    winsock2.h		\
22645    arpa/inet.h		\
22646    kernel/OS.h		\
22647    net/errno.h		\
22648    netinet/in.h	\
22649    netinet/sctp.h      \
22650    netinet/sctp_uio.h  \
22651    sys/file.h		\
22652    sys/ioctl.h         \
22653    sys/mman.h		\
22654    sys/param.h         \
22655    sys/poll.h		\
22656    sys/resource.h	\
22657    sys/select.h	\
22658    sys/sem.h		\
22659    sys/sendfile.h	\
22660    sys/signal.h	\
22661    sys/socket.h	\
22662    sys/sockio.h	\
22663    sys/stat.h          \
22664    sys/sysctl.h	\
22665    sys/syslimits.h	\
22666    sys/time.h		\
22667    sys/types.h		\
22668    sys/uio.h		\
22669    sys/un.h		\
22670    sys/wait.h
22671do
22672    ac_safe=`echo "$aprt_i" | sed 'y%./+-%__p_%'`
22673    aprt_2=`echo "$aprt_i" | sed -e 's%/%_%g' -e 's/\.//g' -e 's/-//g'`
22674    if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22675       eval "$aprt_2=1"
22676    else
22677       eval "$aprt_2=0"
22678    fi
22679done
22680
22681
22682# IRIX 6.5 has a problem in <netinet/tcp.h> which prevents it from
22683# being included by itself.  Check for <netinet/tcp.h> manually,
22684# including another header file first.
22685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netinet/tcp.h" >&5
22686$as_echo_n "checking for netinet/tcp.h... " >&6; }
22687if ${apr_cv_hdr_netinet_tcp_h+:} false; then :
22688  $as_echo_n "(cached) " >&6
22689else
22690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22691/* end confdefs.h.  */
22692#ifdef HAVE_NETINET_IN_H
22693#include <netinet/in.h>
22694#endif
22695#include <netinet/tcp.h>
22696
22697_ACEOF
22698if ac_fn_c_try_cpp "$LINENO"; then :
22699  apr_cv_hdr_netinet_tcp_h=yes
22700else
22701  apr_cv_hdr_netinet_tcp_h=no
22702fi
22703rm -f conftest.err conftest.i conftest.$ac_ext
22704fi
22705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_hdr_netinet_tcp_h" >&5
22706$as_echo "$apr_cv_hdr_netinet_tcp_h" >&6; }
22707if test "$apr_cv_hdr_netinet_tcp_h" = "yes"; then
22708   netinet_tcph=1
22709
22710$as_echo "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
22711
22712else
22713   netinet_tcph=0
22714fi
22715
22716
22717
22718
22719
22720
22721
22722
22723
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750
22751
22752
22753
22754
22755# Checking for h_errno in <netdb.h>
22756if test "$netdbh" = "1"; then
22757
22758  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5
22759$as_echo_n "checking for h_errno in netdb.h... " >&6; }
22760  if ${ac_cv_h_errno_cppflags+:} false; then :
22761  $as_echo_n "(cached) " >&6
22762else
22763
22764
22765  if test x != x; then
22766    CPPFLAGS="-D $CPPFLAGS"
22767  fi
22768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22769/* end confdefs.h.  */
22770
22771#ifdef HAVE_SYS_TYPES_H
22772#include <sys/types.h>
22773#endif
22774#ifdef HAVE_NETDB_H
22775#include <netdb.h>
22776#endif
22777
22778int
22779main ()
22780{
22781
22782int h_e = h_errno;
22783
22784  ;
22785  return 0;
22786}
22787_ACEOF
22788if ac_fn_c_try_compile "$LINENO"; then :
22789
22790  if test x != x; then
22791    ac_cv_h_errno_cppflags=""
22792  else
22793    ac_cv_h_errno_cppflags=yes
22794  fi
22795
22796else
22797
22798  ac_cv_h_errno_cppflags=no
22799
22800fi
22801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22802    if test "$ac_cv_h_errno_cppflags" = "no"; then
22803      ac_save="$CPPFLAGS"
22804      for flag in _XOPEN_SOURCE_EXTENDED; do
22805
22806  if test x$flag != x; then
22807    CPPFLAGS="-D$flag $CPPFLAGS"
22808  fi
22809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22810/* end confdefs.h.  */
22811
22812#ifdef HAVE_SYS_TYPES_H
22813#include <sys/types.h>
22814#endif
22815#ifdef HAVE_NETDB_H
22816#include <netdb.h>
22817#endif
22818
22819int
22820main ()
22821{
22822
22823int h_e = h_errno;
22824
22825  ;
22826  return 0;
22827}
22828_ACEOF
22829if ac_fn_c_try_compile "$LINENO"; then :
22830
22831  if test x$flag != x; then
22832    ac_cv_h_errno_cppflags="$flag"
22833  else
22834    ac_cv_h_errno_cppflags=yes
22835  fi
22836
22837else
22838
22839  ac_cv_h_errno_cppflags=no
22840
22841fi
22842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22843        if test "$ac_cv_h_errno_cppflags" != "no"; then
22844          break
22845        fi
22846      done
22847      CPPFLAGS="$ac_save"
22848    fi
22849
22850fi
22851
22852  if test "$ac_cv_h_errno_cppflags" != "no"; then
22853    if test "$ac_cv_h_errno_cppflags" != "yes"; then
22854      CPPFLAGS="-D$ac_cv_h_errno_cppflags $CPPFLAGS"
22855      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -D$ac_cv_h_errno_cppflags" >&5
22856$as_echo "yes, with -D$ac_cv_h_errno_cppflags" >&6; }
22857    else
22858      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5
22859$as_echo "$ac_cv_h_errno_cppflags" >&6; }
22860    fi
22861  else
22862    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5
22863$as_echo "$ac_cv_h_errno_cppflags" >&6; }
22864  fi
22865
22866  if test "$ac_cv_h_errno_cflags" = "no"; then
22867    as_fn_error $? "can not find h_errno in netdb.h" "$LINENO" 5
22868  fi
22869fi
22870
22871# Check whether --enable-allocator-uses-mmap was given.
22872if test "${enable_allocator_uses_mmap+set}" = set; then :
22873  enableval=$enable_allocator_uses_mmap;  if test "$enableval" = "yes"; then
22874        ac_rc=yes
22875for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
22876    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
22877    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
22878    case $ac_type in
22879        header )
22880            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22881            ac_var="ac_cv_header_$ac_item"
22882            ;;
22883        file )
22884            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22885            ac_var="ac_cv_file_$ac_item"
22886            ;;
22887        func )   ac_var="ac_cv_func_$ac_item"   ;;
22888        struct ) ac_var="ac_cv_struct_$ac_item" ;;
22889        define ) ac_var="ac_cv_define_$ac_item" ;;
22890        custom ) ac_var="$ac_item" ;;
22891    esac
22892    eval "ac_val=\$$ac_var"
22893    if test ".$ac_val" != .yes; then
22894        ac_rc=no
22895        break
22896    fi
22897done
22898if test ".$ac_rc" = .yes; then
22899    :
22900
22901$as_echo "#define APR_ALLOCATOR_USES_MMAP 1" >>confdefs.h
22902
22903else
22904    :
22905    as_fn_error $? "mmap()/MAP_ANON not supported" "$LINENO" 5
22906
22907fi
22908
22909    fi
22910
22911fi
22912
22913
22914ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22915if test "x$ac_cv_type_off_t" = xyes; then :
22916
22917else
22918
22919cat >>confdefs.h <<_ACEOF
22920#define off_t long int
22921_ACEOF
22922
22923fi
22924
22925ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22926if test "x$ac_cv_type_pid_t" = xyes; then :
22927
22928else
22929
22930cat >>confdefs.h <<_ACEOF
22931#define pid_t int
22932_ACEOF
22933
22934fi
22935
22936ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22937if test "x$ac_cv_type_size_t" = xyes; then :
22938
22939else
22940
22941cat >>confdefs.h <<_ACEOF
22942#define size_t unsigned int
22943_ACEOF
22944
22945fi
22946
22947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22948$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22949if ${ac_cv_type_uid_t+:} false; then :
22950  $as_echo_n "(cached) " >&6
22951else
22952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22953/* end confdefs.h.  */
22954#include <sys/types.h>
22955
22956_ACEOF
22957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22958  $EGREP "uid_t" >/dev/null 2>&1; then :
22959  ac_cv_type_uid_t=yes
22960else
22961  ac_cv_type_uid_t=no
22962fi
22963rm -f conftest*
22964
22965fi
22966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22967$as_echo "$ac_cv_type_uid_t" >&6; }
22968if test $ac_cv_type_uid_t = no; then
22969
22970$as_echo "#define uid_t int" >>confdefs.h
22971
22972
22973$as_echo "#define gid_t int" >>confdefs.h
22974
22975fi
22976
22977ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22978if test "x$ac_cv_type_ssize_t" = xyes; then :
22979
22980else
22981
22982cat >>confdefs.h <<_ACEOF
22983#define ssize_t int
22984_ACEOF
22985
22986fi
22987
22988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22989$as_echo_n "checking for inline... " >&6; }
22990if ${ac_cv_c_inline+:} false; then :
22991  $as_echo_n "(cached) " >&6
22992else
22993  ac_cv_c_inline=no
22994for ac_kw in inline __inline__ __inline; do
22995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22996/* end confdefs.h.  */
22997#ifndef __cplusplus
22998typedef int foo_t;
22999static $ac_kw foo_t static_foo () {return 0; }
23000$ac_kw foo_t foo () {return 0; }
23001#endif
23002
23003_ACEOF
23004if ac_fn_c_try_compile "$LINENO"; then :
23005  ac_cv_c_inline=$ac_kw
23006fi
23007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23008  test "$ac_cv_c_inline" != no && break
23009done
23010
23011fi
23012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
23013$as_echo "$ac_cv_c_inline" >&6; }
23014
23015case $ac_cv_c_inline in
23016  inline | yes) ;;
23017  *)
23018    case $ac_cv_c_inline in
23019      no) ac_val=;;
23020      *) ac_val=$ac_cv_c_inline;;
23021    esac
23022    cat >>confdefs.h <<_ACEOF
23023#ifndef __cplusplus
23024#define inline $ac_val
23025#endif
23026_ACEOF
23027    ;;
23028esac
23029
23030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23031$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23032if ${ac_cv_c_const+:} false; then :
23033  $as_echo_n "(cached) " >&6
23034else
23035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23036/* end confdefs.h.  */
23037
23038int
23039main ()
23040{
23041
23042#ifndef __cplusplus
23043  /* Ultrix mips cc rejects this sort of thing.  */
23044  typedef int charset[2];
23045  const charset cs = { 0, 0 };
23046  /* SunOS 4.1.1 cc rejects this.  */
23047  char const *const *pcpcc;
23048  char **ppc;
23049  /* NEC SVR4.0.2 mips cc rejects this.  */
23050  struct point {int x, y;};
23051  static struct point const zero = {0,0};
23052  /* AIX XL C 1.02.0.0 rejects this.
23053     It does not let you subtract one const X* pointer from another in
23054     an arm of an if-expression whose if-part is not a constant
23055     expression */
23056  const char *g = "string";
23057  pcpcc = &g + (g ? g-g : 0);
23058  /* HPUX 7.0 cc rejects these. */
23059  ++pcpcc;
23060  ppc = (char**) pcpcc;
23061  pcpcc = (char const *const *) ppc;
23062  { /* SCO 3.2v4 cc rejects this sort of thing.  */
23063    char tx;
23064    char *t = &tx;
23065    char const *s = 0 ? (char *) 0 : (char const *) 0;
23066
23067    *t++ = 0;
23068    if (s) return 0;
23069  }
23070  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23071    int x[] = {25, 17};
23072    const int *foo = &x[0];
23073    ++foo;
23074  }
23075  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23076    typedef const int *iptr;
23077    iptr p = 0;
23078    ++p;
23079  }
23080  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23081       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23082    struct s { int j; const int *ap[3]; } bx;
23083    struct s *b = &bx; b->j = 5;
23084  }
23085  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23086    const int foo = 10;
23087    if (!foo) return 0;
23088  }
23089  return !cs[0] && !zero.x;
23090#endif
23091
23092  ;
23093  return 0;
23094}
23095_ACEOF
23096if ac_fn_c_try_compile "$LINENO"; then :
23097  ac_cv_c_const=yes
23098else
23099  ac_cv_c_const=no
23100fi
23101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23102fi
23103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23104$as_echo "$ac_cv_c_const" >&6; }
23105if test $ac_cv_c_const = no; then
23106
23107$as_echo "#define const /**/" >>confdefs.h
23108
23109fi
23110
23111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
23112$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
23113if ${ac_cv_func_setpgrp_void+:} false; then :
23114  $as_echo_n "(cached) " >&6
23115else
23116  if test "$cross_compiling" = yes; then :
23117  as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
23118else
23119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23120/* end confdefs.h.  */
23121$ac_includes_default
23122int
23123main ()
23124{
23125/* If this system has a BSD-style setpgrp which takes arguments,
23126  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
23127  exit successfully. */
23128  return setpgrp (1,1) != -1;
23129  ;
23130  return 0;
23131}
23132_ACEOF
23133if ac_fn_c_try_run "$LINENO"; then :
23134  ac_cv_func_setpgrp_void=no
23135else
23136  ac_cv_func_setpgrp_void=yes
23137fi
23138rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23139  conftest.$ac_objext conftest.beam conftest.$ac_ext
23140fi
23141
23142fi
23143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
23144$as_echo "$ac_cv_func_setpgrp_void" >&6; }
23145if test $ac_cv_func_setpgrp_void = yes; then
23146
23147$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
23148
23149fi
23150
23151
23152
23153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
23154$as_echo_n "checking for socklen_t... " >&6; }
23155if ${ac_cv_socklen_t+:} false; then :
23156  $as_echo_n "(cached) " >&6
23157else
23158
23159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23160/* end confdefs.h.  */
23161
23162#ifdef HAVE_SYS_TYPES_H
23163#include <sys/types.h>
23164#endif
23165#ifdef HAVE_SYS_SOCKET_H
23166#include <sys/socket.h>
23167#endif
23168
23169int
23170main ()
23171{
23172
23173socklen_t foo = (socklen_t) 0;
23174
23175  ;
23176  return 0;
23177}
23178_ACEOF
23179if ac_fn_c_try_compile "$LINENO"; then :
23180
23181    ac_cv_socklen_t=yes
23182
23183else
23184
23185    ac_cv_socklen_t=no
23186
23187fi
23188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23189
23190fi
23191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_socklen_t" >&5
23192$as_echo "$ac_cv_socklen_t" >&6; }
23193
23194if test "$ac_cv_socklen_t" = "yes"; then
23195
23196$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
23197
23198fi
23199
23200
23201# The cast to long int works around a bug in the HP C Compiler
23202# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23203# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23204# This bug is HP SR number 8606223364.
23205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
23206$as_echo_n "checking size of void*... " >&6; }
23207if ${ac_cv_sizeof_voidp+:} false; then :
23208  $as_echo_n "(cached) " >&6
23209else
23210  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
23211
23212else
23213  if test "$ac_cv_type_voidp" = yes; then
23214     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23216as_fn_error 77 "cannot compute sizeof (void*)
23217See \`config.log' for more details" "$LINENO" 5; }
23218   else
23219     ac_cv_sizeof_voidp=0
23220   fi
23221fi
23222
23223fi
23224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
23225$as_echo "$ac_cv_sizeof_voidp" >&6; }
23226
23227
23228
23229cat >>confdefs.h <<_ACEOF
23230#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
23231_ACEOF
23232
23233
23234
23235if test "x$ac_cv_sizeof_voidp" != "x"; then
23236    voidp_size=$ac_cv_sizeof_voidp
23237else
23238    as_fn_error $? "Cannot determine size of void*" "$LINENO" 5
23239fi
23240
23241# The cast to long int works around a bug in the HP C Compiler
23242# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23243# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23244# This bug is HP SR number 8606223364.
23245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
23246$as_echo_n "checking size of char... " >&6; }
23247if ${ac_cv_sizeof_char+:} false; then :
23248  $as_echo_n "(cached) " >&6
23249else
23250  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
23251
23252else
23253  if test "$ac_cv_type_char" = yes; then
23254     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23256as_fn_error 77 "cannot compute sizeof (char)
23257See \`config.log' for more details" "$LINENO" 5; }
23258   else
23259     ac_cv_sizeof_char=0
23260   fi
23261fi
23262
23263fi
23264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
23265$as_echo "$ac_cv_sizeof_char" >&6; }
23266
23267
23268
23269cat >>confdefs.h <<_ACEOF
23270#define SIZEOF_CHAR $ac_cv_sizeof_char
23271_ACEOF
23272
23273
23274# The cast to long int works around a bug in the HP C Compiler
23275# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23276# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23277# This bug is HP SR number 8606223364.
23278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23279$as_echo_n "checking size of int... " >&6; }
23280if ${ac_cv_sizeof_int+:} false; then :
23281  $as_echo_n "(cached) " >&6
23282else
23283  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
23284
23285else
23286  if test "$ac_cv_type_int" = yes; then
23287     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23289as_fn_error 77 "cannot compute sizeof (int)
23290See \`config.log' for more details" "$LINENO" 5; }
23291   else
23292     ac_cv_sizeof_int=0
23293   fi
23294fi
23295
23296fi
23297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23298$as_echo "$ac_cv_sizeof_int" >&6; }
23299
23300
23301
23302cat >>confdefs.h <<_ACEOF
23303#define SIZEOF_INT $ac_cv_sizeof_int
23304_ACEOF
23305
23306
23307# The cast to long int works around a bug in the HP C Compiler
23308# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23309# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23310# This bug is HP SR number 8606223364.
23311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23312$as_echo_n "checking size of long... " >&6; }
23313if ${ac_cv_sizeof_long+:} false; then :
23314  $as_echo_n "(cached) " >&6
23315else
23316  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
23317
23318else
23319  if test "$ac_cv_type_long" = yes; then
23320     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23322as_fn_error 77 "cannot compute sizeof (long)
23323See \`config.log' for more details" "$LINENO" 5; }
23324   else
23325     ac_cv_sizeof_long=0
23326   fi
23327fi
23328
23329fi
23330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23331$as_echo "$ac_cv_sizeof_long" >&6; }
23332
23333
23334
23335cat >>confdefs.h <<_ACEOF
23336#define SIZEOF_LONG $ac_cv_sizeof_long
23337_ACEOF
23338
23339
23340# The cast to long int works around a bug in the HP C Compiler
23341# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23342# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23343# This bug is HP SR number 8606223364.
23344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23345$as_echo_n "checking size of short... " >&6; }
23346if ${ac_cv_sizeof_short+:} false; then :
23347  $as_echo_n "(cached) " >&6
23348else
23349  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
23350
23351else
23352  if test "$ac_cv_type_short" = yes; then
23353     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23355as_fn_error 77 "cannot compute sizeof (short)
23356See \`config.log' for more details" "$LINENO" 5; }
23357   else
23358     ac_cv_sizeof_short=0
23359   fi
23360fi
23361
23362fi
23363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23364$as_echo "$ac_cv_sizeof_short" >&6; }
23365
23366
23367
23368cat >>confdefs.h <<_ACEOF
23369#define SIZEOF_SHORT $ac_cv_sizeof_short
23370_ACEOF
23371
23372
23373# The cast to long int works around a bug in the HP C Compiler
23374# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23375# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23376# This bug is HP SR number 8606223364.
23377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23378$as_echo_n "checking size of long long... " >&6; }
23379if ${ac_cv_sizeof_long_long+:} false; then :
23380  $as_echo_n "(cached) " >&6
23381else
23382  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
23383
23384else
23385  if test "$ac_cv_type_long_long" = yes; then
23386     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23388as_fn_error 77 "cannot compute sizeof (long long)
23389See \`config.log' for more details" "$LINENO" 5; }
23390   else
23391     ac_cv_sizeof_long_long=0
23392   fi
23393fi
23394
23395fi
23396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23397$as_echo "$ac_cv_sizeof_long_long" >&6; }
23398
23399
23400
23401cat >>confdefs.h <<_ACEOF
23402#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23403_ACEOF
23404
23405
23406
23407if test "$ac_cv_sizeof_short" = "2"; then
23408    short_value=short
23409fi
23410if test "$ac_cv_sizeof_int" = "4"; then
23411    int_value=int
23412fi
23413# Now we need to find what apr_int64_t (sizeof == 8) will be.
23414# The first match is our preference.
23415if test "$ac_cv_sizeof_int" = "8"; then
23416    int64_literal='#define APR_INT64_C(val) (val)'
23417    uint64_literal='#define APR_UINT64_C(val) (val##U)'
23418    int64_t_fmt='#define APR_INT64_T_FMT "d"'
23419    uint64_t_fmt='#define APR_UINT64_T_FMT "u"'
23420    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "x"'
23421    int64_value="int"
23422    long_value=int
23423    int64_strfn="strtoi"
23424elif test "$ac_cv_sizeof_long" = "8"; then
23425    int64_literal='#define APR_INT64_C(val) (val##L)'
23426    uint64_literal='#define APR_UINT64_C(val) (val##UL)'
23427    int64_t_fmt='#define APR_INT64_T_FMT "ld"'
23428    uint64_t_fmt='#define APR_UINT64_T_FMT "lu"'
23429    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "lx"'
23430    int64_value="long"
23431    long_value=long
23432    int64_strfn="strtol"
23433elif test "$ac_cv_sizeof_long_long" = "8"; then
23434    int64_literal='#define APR_INT64_C(val) (val##LL)'
23435    uint64_literal='#define APR_UINT64_C(val) (val##ULL)'
23436    # Linux, Solaris, FreeBSD all support ll with printf.
23437    # BSD 4.4 originated 'q'.  Solaris is more popular and
23438    # doesn't support 'q'.  Solaris wins.  Exceptions can
23439    # go to the OS-dependent section.
23440    int64_t_fmt='#define APR_INT64_T_FMT "lld"'
23441    uint64_t_fmt='#define APR_UINT64_T_FMT "llu"'
23442    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "llx"'
23443    int64_value="long long"
23444    long_value="long long"
23445    int64_strfn="strtoll"
23446elif test "$ac_cv_sizeof_longlong" = "8"; then
23447    int64_literal='#define APR_INT64_C(val) (val##LL)'
23448    uint64_literal='#define APR_UINT64_C(val) (val##ULL)'
23449    int64_t_fmt='#define APR_INT64_T_FMT "qd"'
23450    uint64_t_fmt='#define APR_UINT64_T_FMT "qu"'
23451    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "qx"'
23452    int64_value="__int64"
23453    long_value="__int64"
23454    int64_strfn="strtoll"
23455else
23456    # int64_literal may be overriden if your compiler thinks you have
23457    # a 64-bit value but APR does not agree.
23458    as_fn_error $? "could not detect a 64-bit integer type" "$LINENO" 5
23459fi
23460
23461# If present, allow the C99 macro INT64_C to override our conversion.
23462#
23463# HP-UX's ANSI C compiler provides this without any includes, so we
23464# will first look for INT64_C without adding stdint.h
23465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for INT64_C" >&5
23466$as_echo_n "checking for INT64_C... " >&6; }
23467if ${apr_cv_define_INT64_C+:} false; then :
23468  $as_echo_n "(cached) " >&6
23469else
23470
23471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23472/* end confdefs.h.  */
23473#ifdef INT64_C
23474YES_IS_DEFINED
23475#endif
23476_ACEOF
23477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23478  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
23479  apr_cv_define_INT64_C=yes
23480else
23481
23482    # Now check for INT64_C in stdint.h
23483    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23484/* end confdefs.h.  */
23485#include <stdint.h>
23486#ifdef INT64_C
23487YES_IS_DEFINED
23488#endif
23489_ACEOF
23490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23491  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
23492  apr_cv_define_INT64_C=yes
23493else
23494  apr_cv_define_INT64_C=no
23495fi
23496rm -f conftest*
23497
23498fi
23499rm -f conftest*
23500
23501fi
23502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_INT64_C" >&5
23503$as_echo "$apr_cv_define_INT64_C" >&6; }
23504
23505if test "$apr_cv_define_INT64_C" = "yes"; then
23506    int64_literal='#define APR_INT64_C(val) INT64_C(val)'
23507    uint64_literal='#define APR_UINT64_C(val) UINT64_C(val)'
23508    stdint=1
23509else
23510    stdint=0
23511fi
23512
23513if test "$ac_cv_type_size_t" = "yes"; then
23514    size_t_value="size_t"
23515else
23516    size_t_value="apr_int32_t"
23517fi
23518if test "$ac_cv_type_ssize_t" = "yes"; then
23519    ssize_t_value="ssize_t"
23520else
23521    ssize_t_value="apr_int32_t"
23522fi
23523if test "$ac_cv_socklen_t" = "yes"; then
23524    socklen_t_value="socklen_t"
23525    case $host in
23526        *-hp-hpux*)
23527            if test "$ac_cv_sizeof_long" = "8"; then
23528                # 64-bit HP-UX requires 32-bit socklens in
23529                # kernel, but user-space declarations say
23530                # 64-bit (socklen_t == size_t == long).
23531                # This will result in many compile warnings,
23532                # but we're functionally busted otherwise.
23533                socklen_t_value="int"
23534            fi
23535            ;;
23536    esac
23537else
23538    socklen_t_value="int"
23539fi
23540
23541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
23542$as_echo_n "checking size of pid_t... " >&6; }
23543if ${ac_cv_sizeof_pid_t+:} false; then :
23544  $as_echo_n "(cached) " >&6
23545else
23546  if test "$cross_compiling" = yes; then :
23547  ac_cv_sizeof_pid_t=8
23548else
23549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23550/* end confdefs.h.  */
23551#include <stdio.h>
23552#include <sys/types.h>
23553#ifdef WIN32
23554#define binmode "b"
23555#else
23556#define binmode
23557#endif
23558main()
23559{
23560  FILE *f=fopen("conftestval", "w" binmode);
23561  if (!f) exit(1);
23562  fprintf(f, "%d\n", sizeof(pid_t));
23563  exit(0);
23564}
23565_ACEOF
23566if ac_fn_c_try_run "$LINENO"; then :
23567  ac_cv_sizeof_pid_t=`cat conftestval`
23568else
23569  ac_cv_sizeof_pid_t=0
23570fi
23571rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23572  conftest.$ac_objext conftest.beam conftest.$ac_ext
23573fi
23574
23575fi
23576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
23577$as_echo "$ac_cv_sizeof_pid_t" >&6; }
23578
23579cat >>confdefs.h <<_ACEOF
23580#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
23581_ACEOF
23582
23583
23584
23585if test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_short"; then
23586    pid_t_fmt='#define APR_PID_T_FMT "hd"'
23587elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_int"; then
23588    pid_t_fmt='#define APR_PID_T_FMT "d"'
23589elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long"; then
23590    pid_t_fmt='#define APR_PID_T_FMT "ld"'
23591elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long_long"; then
23592    pid_t_fmt='#define APR_PID_T_FMT APR_INT64_T_FMT'
23593else
23594    pid_t_fmt='#error Can not determine the proper size for pid_t'
23595fi
23596
23597# Basically, we have tried to figure out the correct format strings
23598# for APR types which vary between platforms, but we don't always get
23599# it right.
23600case $host in
23601   s390*linux*)
23602       # uniquely, the 31-bit Linux/s390 uses "unsigned long int"
23603       # for size_t rather than "unsigned int":
23604       size_t_fmt="lu"
23605       ssize_t_fmt="ld"
23606       ;;
23607   *-os2*)
23608       size_t_fmt="lu"
23609       ;;
23610   *-solaris*)
23611       if test "$ac_cv_sizeof_long" = "8"; then
23612         pid_t_fmt='#define APR_PID_T_FMT "d"'
23613       else
23614         pid_t_fmt='#define APR_PID_T_FMT "ld"'
23615       fi
23616       ;;
23617   *aix4*|*aix5*)
23618       ssize_t_fmt="ld"
23619       size_t_fmt="lu"
23620       ;;
23621    *beos*)
23622        ssize_t_fmt="ld"
23623        size_t_fmt="ld"
23624        ;;
23625    *apple-darwin*)
23626        osver=`uname -r`
23627        case $osver in
23628           [0-7].*)
23629              ssize_t_fmt="d"
23630              ;;
23631           *)
23632              ssize_t_fmt="ld"
23633              ;;
23634        esac
23635        size_t_fmt="lu"
23636        ;;
23637    *-mingw*)
23638        int64_t_fmt='#define APR_INT64_T_FMT "I64d"'
23639        uint64_t_fmt='#define APR_UINT64_T_FMT "I64u"'
23640        uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "I64x"'
23641        int64_value="__int64"
23642        long_value="__int64"
23643        int64_strfn="_strtoi64"
23644        ;;
23645esac
23646
23647
23648
23649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and int are the same" >&5
23650$as_echo_n "checking whether ssize_t and int are the same... " >&6; }
23651if ${apr_cv_typematch_ssize_t_int+:} false; then :
23652  $as_echo_n "(cached) " >&6
23653else
23654
23655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23656/* end confdefs.h.  */
23657$ac_includes_default
23658int
23659main ()
23660{
23661
23662    int foo[0 - !__builtin_types_compatible_p(ssize_t, int)];
23663
23664  ;
23665  return 0;
23666}
23667_ACEOF
23668if ac_fn_c_try_compile "$LINENO"; then :
23669  apr_cv_typematch_ssize_t_int=yes
23670ssize_t_fmt="d"
23671else
23672  apr_cv_typematch_ssize_t_int=no
23673fi
23674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23675fi
23676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_int" >&5
23677$as_echo "$apr_cv_typematch_ssize_t_int" >&6; }
23678
23679
23680
23681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and long are the same" >&5
23682$as_echo_n "checking whether ssize_t and long are the same... " >&6; }
23683if ${apr_cv_typematch_ssize_t_long+:} false; then :
23684  $as_echo_n "(cached) " >&6
23685else
23686
23687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23688/* end confdefs.h.  */
23689$ac_includes_default
23690int
23691main ()
23692{
23693
23694    int foo[0 - !__builtin_types_compatible_p(ssize_t, long)];
23695
23696  ;
23697  return 0;
23698}
23699_ACEOF
23700if ac_fn_c_try_compile "$LINENO"; then :
23701  apr_cv_typematch_ssize_t_long=yes
23702ssize_t_fmt="ld"
23703else
23704  apr_cv_typematch_ssize_t_long=no
23705fi
23706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23707fi
23708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_long" >&5
23709$as_echo "$apr_cv_typematch_ssize_t_long" >&6; }
23710
23711
23712
23713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned int are the same" >&5
23714$as_echo_n "checking whether size_t and unsigned int are the same... " >&6; }
23715if ${apr_cv_typematch_size_t_unsigned_int+:} false; then :
23716  $as_echo_n "(cached) " >&6
23717else
23718
23719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23720/* end confdefs.h.  */
23721$ac_includes_default
23722int
23723main ()
23724{
23725
23726    int foo[0 - !__builtin_types_compatible_p(size_t, unsigned int)];
23727
23728  ;
23729  return 0;
23730}
23731_ACEOF
23732if ac_fn_c_try_compile "$LINENO"; then :
23733  apr_cv_typematch_size_t_unsigned_int=yes
23734size_t_fmt="u"
23735else
23736  apr_cv_typematch_size_t_unsigned_int=no
23737fi
23738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23739fi
23740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_int" >&5
23741$as_echo "$apr_cv_typematch_size_t_unsigned_int" >&6; }
23742
23743
23744
23745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned long are the same" >&5
23746$as_echo_n "checking whether size_t and unsigned long are the same... " >&6; }
23747if ${apr_cv_typematch_size_t_unsigned_long+:} false; then :
23748  $as_echo_n "(cached) " >&6
23749else
23750
23751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23752/* end confdefs.h.  */
23753$ac_includes_default
23754int
23755main ()
23756{
23757
23758    int foo[0 - !__builtin_types_compatible_p(size_t, unsigned long)];
23759
23760  ;
23761  return 0;
23762}
23763_ACEOF
23764if ac_fn_c_try_compile "$LINENO"; then :
23765  apr_cv_typematch_size_t_unsigned_long=yes
23766size_t_fmt="lu"
23767else
23768  apr_cv_typematch_size_t_unsigned_long=no
23769fi
23770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23771fi
23772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_long" >&5
23773$as_echo "$apr_cv_typematch_size_t_unsigned_long" >&6; }
23774
23775
23776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23777$as_echo_n "checking size of ssize_t... " >&6; }
23778if ${ac_cv_sizeof_ssize_t+:} false; then :
23779  $as_echo_n "(cached) " >&6
23780else
23781  if test "$cross_compiling" = yes; then :
23782  ac_cv_sizeof_ssize_t=8
23783else
23784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23785/* end confdefs.h.  */
23786#include <stdio.h>
23787#include <sys/types.h>
23788#ifdef WIN32
23789#define binmode "b"
23790#else
23791#define binmode
23792#endif
23793main()
23794{
23795  FILE *f=fopen("conftestval", "w" binmode);
23796  if (!f) exit(1);
23797  fprintf(f, "%d\n", sizeof(ssize_t));
23798  exit(0);
23799}
23800_ACEOF
23801if ac_fn_c_try_run "$LINENO"; then :
23802  ac_cv_sizeof_ssize_t=`cat conftestval`
23803else
23804  ac_cv_sizeof_ssize_t=0
23805fi
23806rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23807  conftest.$ac_objext conftest.beam conftest.$ac_ext
23808fi
23809
23810fi
23811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23812$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23813
23814cat >>confdefs.h <<_ACEOF
23815#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23816_ACEOF
23817
23818
23819
23820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_ssize_t" >&5
23821$as_echo_n "checking which format to use for apr_ssize_t... " >&6; }
23822if test -n "$ssize_t_fmt"; then
23823    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$ssize_t_fmt" >&5
23824$as_echo "%$ssize_t_fmt" >&6; }
23825elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_int"; then
23826    ssize_t_fmt="d"
23827    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5
23828$as_echo "%d" >&6; }
23829elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_long"; then
23830    ssize_t_fmt="ld"
23831    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5
23832$as_echo "%ld" >&6; }
23833else
23834    as_fn_error $? "could not determine the proper format for apr_ssize_t" "$LINENO" 5
23835fi
23836
23837ssize_t_fmt="#define APR_SSIZE_T_FMT \"$ssize_t_fmt\""
23838
23839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23840$as_echo_n "checking size of size_t... " >&6; }
23841if ${ac_cv_sizeof_size_t+:} false; then :
23842  $as_echo_n "(cached) " >&6
23843else
23844  if test "$cross_compiling" = yes; then :
23845  ac_cv_sizeof_size_t=8
23846else
23847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23848/* end confdefs.h.  */
23849#include <stdio.h>
23850#include <stddef.h>
23851#ifdef WIN32
23852#define binmode "b"
23853#else
23854#define binmode
23855#endif
23856main()
23857{
23858  FILE *f=fopen("conftestval", "w" binmode);
23859  if (!f) exit(1);
23860  fprintf(f, "%d\n", sizeof(size_t));
23861  exit(0);
23862}
23863_ACEOF
23864if ac_fn_c_try_run "$LINENO"; then :
23865  ac_cv_sizeof_size_t=`cat conftestval`
23866else
23867  ac_cv_sizeof_size_t=0
23868fi
23869rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23870  conftest.$ac_objext conftest.beam conftest.$ac_ext
23871fi
23872
23873fi
23874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23875$as_echo "$ac_cv_sizeof_size_t" >&6; }
23876
23877cat >>confdefs.h <<_ACEOF
23878#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23879_ACEOF
23880
23881
23882
23883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_size_t" >&5
23884$as_echo_n "checking which format to use for apr_size_t... " >&6; }
23885if test -n "$size_t_fmt"; then
23886    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$size_t_fmt" >&5
23887$as_echo "%$size_t_fmt" >&6; }
23888elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_int"; then
23889    size_t_fmt="d"
23890    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5
23891$as_echo "%d" >&6; }
23892elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_long"; then
23893    size_t_fmt="ld"
23894    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5
23895$as_echo "%ld" >&6; }
23896else
23897    as_fn_error $? "could not determine the proper format for apr_size_t" "$LINENO" 5
23898fi
23899
23900size_t_fmt="#define APR_SIZE_T_FMT \"$size_t_fmt\""
23901
23902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23903$as_echo_n "checking size of off_t... " >&6; }
23904if ${ac_cv_sizeof_off_t+:} false; then :
23905  $as_echo_n "(cached) " >&6
23906else
23907  if test "$cross_compiling" = yes; then :
23908  ac_cv_sizeof_off_t=8
23909else
23910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23911/* end confdefs.h.  */
23912#include <stdio.h>
23913#include <sys/types.h>
23914#ifdef WIN32
23915#define binmode "b"
23916#else
23917#define binmode
23918#endif
23919main()
23920{
23921  FILE *f=fopen("conftestval", "w" binmode);
23922  if (!f) exit(1);
23923  fprintf(f, "%d\n", sizeof(off_t));
23924  exit(0);
23925}
23926_ACEOF
23927if ac_fn_c_try_run "$LINENO"; then :
23928  ac_cv_sizeof_off_t=`cat conftestval`
23929else
23930  ac_cv_sizeof_off_t=0
23931fi
23932rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23933  conftest.$ac_objext conftest.beam conftest.$ac_ext
23934fi
23935
23936fi
23937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23938$as_echo "$ac_cv_sizeof_off_t" >&6; }
23939
23940cat >>confdefs.h <<_ACEOF
23941#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23942_ACEOF
23943
23944
23945
23946if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
23947    # Enable LFS
23948    aprlfs=1
23949    for ac_func in mmap64 sendfile64 sendfilev64 readdir64_r
23950do :
23951  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23952ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23953if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23954  cat >>confdefs.h <<_ACEOF
23955#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23956_ACEOF
23957
23958fi
23959done
23960
23961    case $host in
23962        *-hp-hpux*)
23963                        ;;
23964        *)
23965            for ac_func in mkstemp64
23966do :
23967  ac_fn_c_check_func "$LINENO" "mkstemp64" "ac_cv_func_mkstemp64"
23968if test "x$ac_cv_func_mkstemp64" = xyes; then :
23969  cat >>confdefs.h <<_ACEOF
23970#define HAVE_MKSTEMP64 1
23971_ACEOF
23972
23973fi
23974done
23975
23976            ;;
23977    esac
23978elif test "${ac_cv_sizeof_off_t}" != "${ac_cv_sizeof_size_t}"; then
23979    # unsure of using -gt above is as portable, can can't forsee where
23980    # off_t can legitimately be smaller than size_t
23981    aprlfs=1
23982else
23983    aprlfs=0
23984fi
23985
23986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which type to use for apr_off_t" >&5
23987$as_echo_n "checking which type to use for apr_off_t... " >&6; }
23988if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
23989    # LFS is go!
23990    off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
23991    off_t_value='off64_t'
23992    off_t_strfn='apr_strtoi64'
23993elif test "${ac_cv_sizeof_off_t}x${ac_cv_sizeof_long}" = "4x4"; then
23994    # Special case: off_t may change size with _FILE_OFFSET_BITS
23995    # on 32-bit systems with LFS support.  To avoid compatibility
23996    # issues when other packages do define _FILE_OFFSET_BITS,
23997    # hard-code apr_off_t to long.
23998    off_t_value=long
23999    off_t_fmt='#define APR_OFF_T_FMT "ld"'
24000    off_t_strfn='strtol'
24001elif test "$ac_cv_type_off_t" = "yes"; then
24002    off_t_value=off_t
24003    # off_t is more commonly a long than an int; prefer that case
24004    # where int and long are the same size.
24005    if test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_long"; then
24006        off_t_fmt='#define APR_OFF_T_FMT "ld"'
24007        off_t_strfn='strtol'
24008    elif test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_int"; then
24009        off_t_fmt='#define APR_OFF_T_FMT "d"'
24010        off_t_strfn='strtoi'
24011    elif test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_long_long"; then
24012        off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
24013        off_t_strfn='apr_strtoi64'
24014    else
24015        as_fn_error $? "could not determine the size of off_t" "$LINENO" 5
24016    fi
24017    # Per OS tuning...
24018    case $host in
24019    *-mingw*)
24020        off_t_value=apr_int64_t
24021        off_t_fmt='#define APR_OFF_T_FMT "I64d"'
24022        off_t_strfn='_strtoi64'
24023        ;;
24024    esac
24025else
24026   # Fallback on int
24027   off_t_value=apr_int32_t
24028   off_t_fmt=d
24029   off_t_strfn='strtoi'
24030fi
24031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $off_t_value" >&5
24032$as_echo "$off_t_value" >&6; }
24033
24034# Regardless of whether _LARGEFILE64_SOURCE is used, on some
24035# platforms _FILE_OFFSET_BITS will affect the size of ino_t and hence
24036# the build-time ABI may be different from the apparent ABI when using
24037# APR with another package which *does* define _FILE_OFFSET_BITS.
24038# (Exactly as per the case above with off_t where LFS is *not* used)
24039#
24040# To be safe, hard-code apr_ino_t as 'unsigned long' or 'unsigned int'
24041# iff that is exactly the size of ino_t here; otherwise use ino_t as existing
24042# releases did.  To be correct, apr_ino_t should have been made an
24043# ino64_t as apr_off_t is off64_t, but this can't be done now without
24044# breaking ABI.
24045
24046# Per OS tuning...
24047case $host in
24048*mingw*)
24049    ino_t_value=apr_int64_t
24050    ;;
24051*)
24052    ino_t_value=ino_t
24053    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
24054$as_echo_n "checking size of ino_t... " >&6; }
24055if ${ac_cv_sizeof_ino_t+:} false; then :
24056  $as_echo_n "(cached) " >&6
24057else
24058  if test "$cross_compiling" = yes; then :
24059  ac_cv_sizeof_ino_t=$ac_cv_sizeof_long
24060else
24061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24062/* end confdefs.h.  */
24063#include <stdio.h>
24064$ac_includes_default
24065#ifdef WIN32
24066#define binmode "b"
24067#else
24068#define binmode
24069#endif
24070main()
24071{
24072  FILE *f=fopen("conftestval", "w" binmode);
24073  if (!f) exit(1);
24074  fprintf(f, "%d\n", sizeof(ino_t));
24075  exit(0);
24076}
24077_ACEOF
24078if ac_fn_c_try_run "$LINENO"; then :
24079  ac_cv_sizeof_ino_t=`cat conftestval`
24080else
24081  ac_cv_sizeof_ino_t=0
24082fi
24083rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24084  conftest.$ac_objext conftest.beam conftest.$ac_ext
24085fi
24086
24087fi
24088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
24089$as_echo "$ac_cv_sizeof_ino_t" >&6; }
24090
24091cat >>confdefs.h <<_ACEOF
24092#define SIZEOF_INO_T $ac_cv_sizeof_ino_t
24093_ACEOF
24094
24095
24096    if test $ac_cv_sizeof_ino_t = 4; then
24097        if test $ac_cv_sizeof_long = 4; then
24098            ino_t_value="unsigned long"
24099        else
24100            ino_t_value="unsigned int"
24101        fi
24102    fi
24103    ;;
24104esac
24105{ $as_echo "$as_me:${as_lineno-$LINENO}: using $ino_t_value for ino_t" >&5
24106$as_echo "$as_me: using $ino_t_value for ino_t" >&6;}
24107
24108# Checks for endianness
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
24110$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
24111if ${ac_cv_c_bigendian+:} false; then :
24112  $as_echo_n "(cached) " >&6
24113else
24114  ac_cv_c_bigendian=unknown
24115    # See if we're dealing with a universal compiler.
24116    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24117/* end confdefs.h.  */
24118#ifndef __APPLE_CC__
24119	       not a universal capable compiler
24120	     #endif
24121	     typedef int dummy;
24122
24123_ACEOF
24124if ac_fn_c_try_compile "$LINENO"; then :
24125
24126	# Check for potential -arch flags.  It is not universal unless
24127	# there are at least two -arch flags with different values.
24128	ac_arch=
24129	ac_prev=
24130	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
24131	 if test -n "$ac_prev"; then
24132	   case $ac_word in
24133	     i?86 | x86_64 | ppc | ppc64)
24134	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
24135		 ac_arch=$ac_word
24136	       else
24137		 ac_cv_c_bigendian=universal
24138		 break
24139	       fi
24140	       ;;
24141	   esac
24142	   ac_prev=
24143	 elif test "x$ac_word" = "x-arch"; then
24144	   ac_prev=arch
24145	 fi
24146       done
24147fi
24148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24149    if test $ac_cv_c_bigendian = unknown; then
24150      # See if sys/param.h defines the BYTE_ORDER macro.
24151      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24152/* end confdefs.h.  */
24153#include <sys/types.h>
24154	     #include <sys/param.h>
24155
24156int
24157main ()
24158{
24159#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24160		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24161		     && LITTLE_ENDIAN)
24162	      bogus endian macros
24163	     #endif
24164
24165  ;
24166  return 0;
24167}
24168_ACEOF
24169if ac_fn_c_try_compile "$LINENO"; then :
24170  # It does; now see whether it defined to BIG_ENDIAN or not.
24171	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24172/* end confdefs.h.  */
24173#include <sys/types.h>
24174		#include <sys/param.h>
24175
24176int
24177main ()
24178{
24179#if BYTE_ORDER != BIG_ENDIAN
24180		 not big endian
24181		#endif
24182
24183  ;
24184  return 0;
24185}
24186_ACEOF
24187if ac_fn_c_try_compile "$LINENO"; then :
24188  ac_cv_c_bigendian=yes
24189else
24190  ac_cv_c_bigendian=no
24191fi
24192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24193fi
24194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24195    fi
24196    if test $ac_cv_c_bigendian = unknown; then
24197      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24198      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24199/* end confdefs.h.  */
24200#include <limits.h>
24201
24202int
24203main ()
24204{
24205#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24206	      bogus endian macros
24207	     #endif
24208
24209  ;
24210  return 0;
24211}
24212_ACEOF
24213if ac_fn_c_try_compile "$LINENO"; then :
24214  # It does; now see whether it defined to _BIG_ENDIAN or not.
24215	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24216/* end confdefs.h.  */
24217#include <limits.h>
24218
24219int
24220main ()
24221{
24222#ifndef _BIG_ENDIAN
24223		 not big endian
24224		#endif
24225
24226  ;
24227  return 0;
24228}
24229_ACEOF
24230if ac_fn_c_try_compile "$LINENO"; then :
24231  ac_cv_c_bigendian=yes
24232else
24233  ac_cv_c_bigendian=no
24234fi
24235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24236fi
24237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24238    fi
24239    if test $ac_cv_c_bigendian = unknown; then
24240      # Compile a test program.
24241      if test "$cross_compiling" = yes; then :
24242  # Try to guess by grepping values from an object file.
24243	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24244/* end confdefs.h.  */
24245short int ascii_mm[] =
24246		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24247		short int ascii_ii[] =
24248		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24249		int use_ascii (int i) {
24250		  return ascii_mm[i] + ascii_ii[i];
24251		}
24252		short int ebcdic_ii[] =
24253		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24254		short int ebcdic_mm[] =
24255		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24256		int use_ebcdic (int i) {
24257		  return ebcdic_mm[i] + ebcdic_ii[i];
24258		}
24259		extern int foo;
24260
24261int
24262main ()
24263{
24264return use_ascii (foo) == use_ebcdic (foo);
24265  ;
24266  return 0;
24267}
24268_ACEOF
24269if ac_fn_c_try_compile "$LINENO"; then :
24270  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24271	      ac_cv_c_bigendian=yes
24272	    fi
24273	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24274	      if test "$ac_cv_c_bigendian" = unknown; then
24275		ac_cv_c_bigendian=no
24276	      else
24277		# finding both strings is unlikely to happen, but who knows?
24278		ac_cv_c_bigendian=unknown
24279	      fi
24280	    fi
24281fi
24282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24283else
24284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24285/* end confdefs.h.  */
24286$ac_includes_default
24287int
24288main ()
24289{
24290
24291	     /* Are we little or big endian?  From Harbison&Steele.  */
24292	     union
24293	     {
24294	       long int l;
24295	       char c[sizeof (long int)];
24296	     } u;
24297	     u.l = 1;
24298	     return u.c[sizeof (long int) - 1] == 1;
24299
24300  ;
24301  return 0;
24302}
24303_ACEOF
24304if ac_fn_c_try_run "$LINENO"; then :
24305  ac_cv_c_bigendian=no
24306else
24307  ac_cv_c_bigendian=yes
24308fi
24309rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24310  conftest.$ac_objext conftest.beam conftest.$ac_ext
24311fi
24312
24313    fi
24314fi
24315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
24316$as_echo "$ac_cv_c_bigendian" >&6; }
24317 case $ac_cv_c_bigendian in #(
24318   yes)
24319     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
24320;; #(
24321   no)
24322      ;; #(
24323   universal)
24324
24325$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
24326
24327     ;; #(
24328   *)
24329     as_fn_error $? "unknown endianness
24330 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
24331 esac
24332
24333if test $ac_cv_c_bigendian = yes; then
24334    bigendian=1
24335else
24336    bigendian=0
24337fi
24338
24339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iovec" >&5
24340$as_echo_n "checking size of struct iovec... " >&6; }
24341if ${ac_cv_sizeof_struct_iovec+:} false; then :
24342  $as_echo_n "(cached) " >&6
24343else
24344  if test "$cross_compiling" = yes; then :
24345  ac_cv_sizeof_struct_iovec=0
24346else
24347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24348/* end confdefs.h.  */
24349#include <stdio.h>
24350#include <sys/types.h>
24351#include <sys/uio.h>
24352#ifdef WIN32
24353#define binmode "b"
24354#else
24355#define binmode
24356#endif
24357main()
24358{
24359  FILE *f=fopen("conftestval", "w" binmode);
24360  if (!f) exit(1);
24361  fprintf(f, "%d\n", sizeof(struct iovec));
24362  exit(0);
24363}
24364_ACEOF
24365if ac_fn_c_try_run "$LINENO"; then :
24366  ac_cv_sizeof_struct_iovec=`cat conftestval`
24367else
24368  ac_cv_sizeof_struct_iovec=0
24369fi
24370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24371  conftest.$ac_objext conftest.beam conftest.$ac_ext
24372fi
24373
24374fi
24375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iovec" >&5
24376$as_echo "$ac_cv_sizeof_struct_iovec" >&6; }
24377
24378cat >>confdefs.h <<_ACEOF
24379#define SIZEOF_STRUCT_IOVEC $ac_cv_sizeof_struct_iovec
24380_ACEOF
24381
24382
24383if test "$ac_cv_sizeof_struct_iovec" = "0"; then
24384    have_iovec=0
24385else
24386    have_iovec=1
24387fi
24388
24389
24390
24391
24392
24393
24394
24395
24396
24397
24398
24399
24400
24401
24402
24403
24404
24405
24406
24407
24408
24409
24410
24411
24412
24413for ac_func in strnicmp
24414do :
24415  ac_fn_c_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp"
24416if test "x$ac_cv_func_strnicmp" = xyes; then :
24417  cat >>confdefs.h <<_ACEOF
24418#define HAVE_STRNICMP 1
24419_ACEOF
24420 have_strnicmp="1"
24421else
24422  have_strnicmp="0"
24423fi
24424done
24425
24426for ac_func in strncasecmp
24427do :
24428  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
24429if test "x$ac_cv_func_strncasecmp" = xyes; then :
24430  cat >>confdefs.h <<_ACEOF
24431#define HAVE_STRNCASECMP 1
24432_ACEOF
24433 have_strncasecmp="1"
24434else
24435  have_strncasecmp="0"
24436fi
24437done
24438
24439for ac_func in stricmp
24440do :
24441  ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp"
24442if test "x$ac_cv_func_stricmp" = xyes; then :
24443  cat >>confdefs.h <<_ACEOF
24444#define HAVE_STRICMP 1
24445_ACEOF
24446 have_stricmp="1"
24447else
24448  have_stricmp="0"
24449fi
24450done
24451
24452for ac_func in strcasecmp
24453do :
24454  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
24455if test "x$ac_cv_func_strcasecmp" = xyes; then :
24456  cat >>confdefs.h <<_ACEOF
24457#define HAVE_STRCASECMP 1
24458_ACEOF
24459 have_strcasecmp="1"
24460else
24461  have_strcasecmp="0"
24462fi
24463done
24464
24465for ac_func in strdup
24466do :
24467  ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
24468if test "x$ac_cv_func_strdup" = xyes; then :
24469  cat >>confdefs.h <<_ACEOF
24470#define HAVE_STRDUP 1
24471_ACEOF
24472 have_strdup="1"
24473else
24474  have_strdup="0"
24475fi
24476done
24477
24478for ac_func in strstr
24479do :
24480  ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
24481if test "x$ac_cv_func_strstr" = xyes; then :
24482  cat >>confdefs.h <<_ACEOF
24483#define HAVE_STRSTR 1
24484_ACEOF
24485 have_strstr="1"
24486else
24487  have_strstr="0"
24488fi
24489done
24490
24491for ac_func in memchr
24492do :
24493  ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
24494if test "x$ac_cv_func_memchr" = xyes; then :
24495  cat >>confdefs.h <<_ACEOF
24496#define HAVE_MEMCHR 1
24497_ACEOF
24498 have_memchr="1"
24499else
24500  have_memchr="0"
24501fi
24502done
24503
24504as_ac_var=`$as_echo "ac_cv_func_$int64_strfn" | $as_tr_sh`
24505ac_fn_c_check_func "$LINENO" "$int64_strfn" "$as_ac_var"
24506if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24507  have_int64_strfn="1"
24508else
24509  have_int64_strfn="0"
24510fi
24511
24512
24513if test "$have_int64_strfn" = "0" && test "$int64_strfn" = "strtoll"; then
24514    int64_strfn="strtoq"
24515    ac_fn_c_check_func "$LINENO" "strtoq" "ac_cv_func_strtoq"
24516if test "x$ac_cv_func_strtoq" = xyes; then :
24517  have_int64_strfn=1
24518else
24519  have_int64_strfn=0
24520fi
24521
24522fi
24523
24524if test "$have_int64_strfn" = "1"; then
24525
24526cat >>confdefs.h <<_ACEOF
24527#define APR_INT64_STRFN $int64_strfn
24528_ACEOF
24529
24530fi
24531
24532
24533
24534
24535
24536
24537
24538
24539
24540if test "$off_t_strfn" = "apr_strtoi64" && test "$have_int64_strfn" = "1"; then
24541    off_t_strfn=$int64_strfn
24542fi
24543
24544cat >>confdefs.h <<_ACEOF
24545#define APR_OFF_T_STRFN $off_t_strfn
24546_ACEOF
24547
24548
24549echo "${nl}Checking for DSO..."
24550# Check whether --enable-dso was given.
24551if test "${enable_dso+set}" = set; then :
24552  enableval=$enable_dso; if test "x$enableval" = "xyes"; then
24553      dsotype=any
24554   else
24555      dsotype=$enableval
24556   fi
24557
24558else
24559  dsotype=any
24560fi
24561
24562
24563if test "$dsotype" = "any"; then
24564    if test "$dsotype" = "any"; then
24565      case $host in
24566        *darwin[0-8]\.*)
24567          # Original Darwin, not for 9.0!:
24568          ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule"
24569if test "x$ac_cv_func_NSLinkModule" = xyes; then :
24570  dsotype=dyld
24571fi
24572;;
24573        hppa*-hpux[1-9]\.*|hppa*-hpux1[01]*)
24574          # shl is specific to parisc hpux SOM binaries, not used for 64 bit
24575          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
24576$as_echo_n "checking for shl_load in -ldld... " >&6; }
24577if ${ac_cv_lib_dld_shl_load+:} false; then :
24578  $as_echo_n "(cached) " >&6
24579else
24580  ac_check_lib_save_LIBS=$LIBS
24581LIBS="-ldld  $LIBS"
24582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24583/* end confdefs.h.  */
24584
24585/* Override any GCC internal prototype to avoid an error.
24586   Use char because int might match the return type of a GCC
24587   builtin and then its argument prototype would still apply.  */
24588#ifdef __cplusplus
24589extern "C"
24590#endif
24591char shl_load ();
24592int
24593main ()
24594{
24595return shl_load ();
24596  ;
24597  return 0;
24598}
24599_ACEOF
24600if ac_fn_c_try_link "$LINENO"; then :
24601  ac_cv_lib_dld_shl_load=yes
24602else
24603  ac_cv_lib_dld_shl_load=no
24604fi
24605rm -f core conftest.err conftest.$ac_objext \
24606    conftest$ac_exeext conftest.$ac_ext
24607LIBS=$ac_check_lib_save_LIBS
24608fi
24609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
24610$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
24611if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
24612  have_shl=1
24613fi
24614
24615          if test "$ac_cv_sizeof_voidp$have_shl" = "41"; then
24616            dsotype=shl;
24617  if test "x$LIBS" = "x"; then
24618    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldld\""
24619    LIBS="-ldld"
24620  else
24621    apr_addto_bugger="-ldld"
24622    for i in $apr_addto_bugger; do
24623      apr_addto_duplicate="0"
24624      for j in $LIBS; do
24625        if test "x$i" = "x$j"; then
24626          apr_addto_duplicate="1"
24627          break
24628        fi
24629      done
24630      if test $apr_addto_duplicate = "0"; then
24631        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
24632        LIBS="$LIBS $i"
24633      fi
24634    done
24635  fi
24636
24637          fi;;
24638        *mingw*|*-os2*)
24639          # several 'other's below probably belong up here.  If they always
24640          # use a platform implementation and shouldn't test the dlopen/dlfcn
24641          # features, then bring them up here.
24642          # But if they -should- optionally use dlfcn, and/or need the config
24643          # detection of dlopen/dlsym, do not move them up.
24644          dsotype=other ;;
24645      esac
24646    fi
24647    # Normal POSIX:
24648    if test "$dsotype" = "any"; then
24649      ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
24650if test "x$ac_cv_func_dlopen" = xyes; then :
24651  dsotype=dlfcn
24652fi
24653
24654    fi
24655    if test "$dsotype" = "any"; then
24656      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
24657$as_echo_n "checking for dlopen in -ldl... " >&6; }
24658if ${ac_cv_lib_dl_dlopen+:} false; then :
24659  $as_echo_n "(cached) " >&6
24660else
24661  ac_check_lib_save_LIBS=$LIBS
24662LIBS="-ldl  $LIBS"
24663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24664/* end confdefs.h.  */
24665
24666/* Override any GCC internal prototype to avoid an error.
24667   Use char because int might match the return type of a GCC
24668   builtin and then its argument prototype would still apply.  */
24669#ifdef __cplusplus
24670extern "C"
24671#endif
24672char dlopen ();
24673int
24674main ()
24675{
24676return dlopen ();
24677  ;
24678  return 0;
24679}
24680_ACEOF
24681if ac_fn_c_try_link "$LINENO"; then :
24682  ac_cv_lib_dl_dlopen=yes
24683else
24684  ac_cv_lib_dl_dlopen=no
24685fi
24686rm -f core conftest.err conftest.$ac_objext \
24687    conftest$ac_exeext conftest.$ac_ext
24688LIBS=$ac_check_lib_save_LIBS
24689fi
24690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
24691$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
24692if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
24693  dsotype=dlfcn;
24694  if test "x$LIBS" = "x"; then
24695    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldl\""
24696    LIBS="-ldl"
24697  else
24698    apr_addto_bugger="-ldl"
24699    for i in $apr_addto_bugger; do
24700      apr_addto_duplicate="0"
24701      for j in $LIBS; do
24702        if test "x$i" = "x$j"; then
24703          apr_addto_duplicate="1"
24704          break
24705        fi
24706      done
24707      if test $apr_addto_duplicate = "0"; then
24708        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
24709        LIBS="$LIBS $i"
24710      fi
24711    done
24712  fi
24713
24714fi
24715
24716    fi
24717    if test "$dsotype" = "dlfcn"; then
24718        # ReliantUnix has dlopen() in libc but dlsym() in libdl :(
24719        ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
24720if test "x$ac_cv_func_dlsym" = xyes; then :
24721
24722else
24723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
24724$as_echo_n "checking for dlsym in -ldl... " >&6; }
24725if ${ac_cv_lib_dl_dlsym+:} false; then :
24726  $as_echo_n "(cached) " >&6
24727else
24728  ac_check_lib_save_LIBS=$LIBS
24729LIBS="-ldl  $LIBS"
24730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24731/* end confdefs.h.  */
24732
24733/* Override any GCC internal prototype to avoid an error.
24734   Use char because int might match the return type of a GCC
24735   builtin and then its argument prototype would still apply.  */
24736#ifdef __cplusplus
24737extern "C"
24738#endif
24739char dlsym ();
24740int
24741main ()
24742{
24743return dlsym ();
24744  ;
24745  return 0;
24746}
24747_ACEOF
24748if ac_fn_c_try_link "$LINENO"; then :
24749  ac_cv_lib_dl_dlsym=yes
24750else
24751  ac_cv_lib_dl_dlsym=no
24752fi
24753rm -f core conftest.err conftest.$ac_objext \
24754    conftest$ac_exeext conftest.$ac_ext
24755LIBS=$ac_check_lib_save_LIBS
24756fi
24757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
24758$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
24759if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
24760
24761  if test "x$LIBS" = "x"; then
24762    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldl\""
24763    LIBS="-ldl"
24764  else
24765    apr_addto_bugger="-ldl"
24766    for i in $apr_addto_bugger; do
24767      apr_addto_duplicate="0"
24768      for j in $LIBS; do
24769        if test "x$i" = "x$j"; then
24770          apr_addto_duplicate="1"
24771          break
24772        fi
24773      done
24774      if test $apr_addto_duplicate = "0"; then
24775        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
24776        LIBS="$LIBS $i"
24777      fi
24778    done
24779  fi
24780
24781else
24782  dsotype=any
24783              echo "Weird: dlopen() was found but dlsym() was not found!"
24784fi
24785
24786fi
24787
24788    fi
24789    if test "$dsotype" = "any"; then
24790      # BeOS:
24791      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for load_image in -lroot" >&5
24792$as_echo_n "checking for load_image in -lroot... " >&6; }
24793if ${ac_cv_lib_root_load_image+:} false; then :
24794  $as_echo_n "(cached) " >&6
24795else
24796  ac_check_lib_save_LIBS=$LIBS
24797LIBS="-lroot  $LIBS"
24798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24799/* end confdefs.h.  */
24800
24801/* Override any GCC internal prototype to avoid an error.
24802   Use char because int might match the return type of a GCC
24803   builtin and then its argument prototype would still apply.  */
24804#ifdef __cplusplus
24805extern "C"
24806#endif
24807char load_image ();
24808int
24809main ()
24810{
24811return load_image ();
24812  ;
24813  return 0;
24814}
24815_ACEOF
24816if ac_fn_c_try_link "$LINENO"; then :
24817  ac_cv_lib_root_load_image=yes
24818else
24819  ac_cv_lib_root_load_image=no
24820fi
24821rm -f core conftest.err conftest.$ac_objext \
24822    conftest$ac_exeext conftest.$ac_ext
24823LIBS=$ac_check_lib_save_LIBS
24824fi
24825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_load_image" >&5
24826$as_echo "$ac_cv_lib_root_load_image" >&6; }
24827if test "x$ac_cv_lib_root_load_image" = xyes; then :
24828  dsotype=other
24829fi
24830
24831    fi
24832    # Everything else:
24833    if test "$dsotype" = "any"; then
24834        case $host in
24835        *os390|*os400|*-aix*)
24836          # Some -aix5 will use dl, no hassles.  Keep that pattern here.
24837          dsotype=other ;;
24838        *-hpux*)
24839          if test "$have_shl" = "1"; then
24840            dsotype=shl;
24841  if test "x$LIBS" = "x"; then
24842    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldld\""
24843    LIBS="-ldld"
24844  else
24845    apr_addto_bugger="-ldld"
24846    for i in $apr_addto_bugger; do
24847      apr_addto_duplicate="0"
24848      for j in $LIBS; do
24849        if test "x$i" = "x$j"; then
24850          apr_addto_duplicate="1"
24851          break
24852        fi
24853      done
24854      if test $apr_addto_duplicate = "0"; then
24855        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
24856        LIBS="$LIBS $i"
24857      fi
24858    done
24859  fi
24860
24861          fi;;
24862        esac
24863    fi
24864fi
24865
24866if test "$dsotype" = "any"; then
24867    as_fn_error $? "Could not detect suitable DSO implementation" "$LINENO" 5
24868elif test "$dsotype" = "no"; then
24869    aprdso="0"
24870else
24871    case "$dsotype" in
24872    dlfcn)
24873$as_echo "#define DSO_USE_DLFCN 1" >>confdefs.h
24874;;
24875    shl)
24876$as_echo "#define DSO_USE_SHL 1" >>confdefs.h
24877;;
24878    dyld)
24879$as_echo "#define DSO_USE_DYLD 1" >>confdefs.h
24880;;
24881    other) ;; # Use whatever is in dso/OSDIR
24882    *) as_fn_error $? "Unknown DSO implementation \"$dsotype\"" "$LINENO" 5;;
24883    esac
24884    aprdso="1"
24885    apr_modules="$apr_modules dso"
24886fi
24887
24888
24889
24890echo "${nl}Checking for Processes..."
24891
24892for ac_func in waitpid
24893do :
24894  ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
24895if test "x$ac_cv_func_waitpid" = xyes; then :
24896  cat >>confdefs.h <<_ACEOF
24897#define HAVE_WAITPID 1
24898_ACEOF
24899
24900fi
24901done
24902
24903
24904# Check whether --enable-other-child was given.
24905if test "${enable_other_child+set}" = set; then :
24906  enableval=$enable_other_child;  if test "$enableval" = "yes"; then
24907        oc="1"
24908    else
24909        oc="0"
24910    fi
24911else
24912   oc=1
24913fi
24914
24915
24916
24917
24918if test -z "$have_proc_invoked"; then
24919  have_proc_invoked="0"
24920fi
24921
24922
24923
24924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Variable Length Arrays" >&5
24925$as_echo_n "checking for Variable Length Arrays... " >&6; }
24926apr_save_CFLAGS=$CFLAGS
24927 CFLAGS="$CFLAGS $CFLAGS_WARN"
24928 if test "$ac_cv_c_compiler_gnu" = "yes"; then
24929   CFLAGS="$CFLAGS -Werror"
24930 fi
24931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24932/* end confdefs.h.  */
24933#include "confdefs.h"
24934
24935
24936   int main(int argc, const char *const *argv) {
24937
24938    int foo[argc];
24939    foo[0] = 0;
24940
24941      return 0; }
24942
24943_ACEOF
24944if ac_fn_c_try_compile "$LINENO"; then :
24945  vla_msg=yes
24946else
24947  vla_msg=no
24948fi
24949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24950 CFLAGS=$apr_save_CFLAGS
24951
24952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vla_msg" >&5
24953$as_echo "$vla_msg" >&6; }
24954if test "$vla_msg" = "yes"; then
24955
24956$as_echo "#define HAVE_VLA 1" >>confdefs.h
24957
24958fi
24959
24960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct rlimit" >&5
24961$as_echo_n "checking struct rlimit... " >&6; }
24962if ${ac_cv_struct_rlimit+:} false; then :
24963  $as_echo_n "(cached) " >&6
24964else
24965
24966if test "$cross_compiling" = yes; then :
24967
24968    ac_cv_struct_rlimit=no
24969else
24970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24971/* end confdefs.h.  */
24972
24973#include <sys/types.h>
24974#include <sys/time.h>
24975#include <sys/resource.h>
24976main()
24977{
24978    struct rlimit limit;
24979    limit.rlim_cur = 0;
24980    limit.rlim_max = 0;
24981    exit(0);
24982}
24983_ACEOF
24984if ac_fn_c_try_run "$LINENO"; then :
24985
24986    ac_cv_struct_rlimit=yes
24987else
24988
24989    ac_cv_struct_rlimit=no
24990fi
24991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24992  conftest.$ac_objext conftest.beam conftest.$ac_ext
24993fi
24994
24995fi
24996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rlimit" >&5
24997$as_echo "$ac_cv_struct_rlimit" >&6; }
24998struct_rlimit=0
24999test "x$ac_cv_struct_rlimit" = xyes && struct_rlimit=1
25000
25001
25002echo "${nl}Checking for Locking..."
25003
25004for ac_func in semget semctl flock
25005do :
25006  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25007ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25008if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25009  cat >>confdefs.h <<_ACEOF
25010#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25011_ACEOF
25012
25013fi
25014done
25015
25016for ac_header in semaphore.h OS.h
25017do :
25018  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25019ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25020if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25021  cat >>confdefs.h <<_ACEOF
25022#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25023_ACEOF
25024
25025fi
25026
25027done
25028
25029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
25030$as_echo_n "checking for library containing sem_open... " >&6; }
25031if ${ac_cv_search_sem_open+:} false; then :
25032  $as_echo_n "(cached) " >&6
25033else
25034  ac_func_search_save_LIBS=$LIBS
25035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25036/* end confdefs.h.  */
25037
25038/* Override any GCC internal prototype to avoid an error.
25039   Use char because int might match the return type of a GCC
25040   builtin and then its argument prototype would still apply.  */
25041#ifdef __cplusplus
25042extern "C"
25043#endif
25044char sem_open ();
25045int
25046main ()
25047{
25048return sem_open ();
25049  ;
25050  return 0;
25051}
25052_ACEOF
25053for ac_lib in '' rt; do
25054  if test -z "$ac_lib"; then
25055    ac_res="none required"
25056  else
25057    ac_res=-l$ac_lib
25058    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25059  fi
25060  if ac_fn_c_try_link "$LINENO"; then :
25061  ac_cv_search_sem_open=$ac_res
25062fi
25063rm -f core conftest.err conftest.$ac_objext \
25064    conftest$ac_exeext
25065  if ${ac_cv_search_sem_open+:} false; then :
25066  break
25067fi
25068done
25069if ${ac_cv_search_sem_open+:} false; then :
25070
25071else
25072  ac_cv_search_sem_open=no
25073fi
25074rm conftest.$ac_ext
25075LIBS=$ac_func_search_save_LIBS
25076fi
25077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
25078$as_echo "$ac_cv_search_sem_open" >&6; }
25079ac_res=$ac_cv_search_sem_open
25080if test "$ac_res" != no; then :
25081  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25082
25083fi
25084
25085for ac_func in sem_close sem_unlink sem_post sem_wait create_sem
25086do :
25087  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25088ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25089if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25090  cat >>confdefs.h <<_ACEOF
25091#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25092_ACEOF
25093
25094fi
25095done
25096
25097
25098# Some systems return ENOSYS from sem_open.
25099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sem_open" >&5
25100$as_echo_n "checking for working sem_open... " >&6; }
25101if ${ac_cv_func_sem_open+:} false; then :
25102  $as_echo_n "(cached) " >&6
25103else
25104
25105if test "$cross_compiling" = yes; then :
25106  ac_cv_func_sem_open=no
25107else
25108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25109/* end confdefs.h.  */
25110
25111#include <errno.h>
25112#include <stdlib.h>
25113#include <fcntl.h>
25114#include <semaphore.h>
25115#ifndef SEM_FAILED
25116#define SEM_FAILED (-1)
25117#endif
25118main()
25119{
25120    sem_t *psem;
25121    const char *sem_name = "/apr_autoconf";
25122
25123    psem = sem_open(sem_name, O_CREAT, 0644, 1);
25124    if (psem == (sem_t *)SEM_FAILED) {
25125	exit(1);
25126    }
25127    sem_close(psem);
25128    psem = sem_open(sem_name, O_CREAT | O_EXCL, 0644, 1);
25129    if (psem != (sem_t *)SEM_FAILED) {
25130        sem_close(psem);
25131        exit(1);
25132    }
25133    sem_unlink(sem_name);
25134    exit(0);
25135}
25136_ACEOF
25137if ac_fn_c_try_run "$LINENO"; then :
25138  ac_cv_func_sem_open=yes
25139else
25140  ac_cv_func_sem_open=no
25141fi
25142rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25143  conftest.$ac_objext conftest.beam conftest.$ac_ext
25144fi
25145
25146fi
25147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sem_open" >&5
25148$as_echo "$ac_cv_func_sem_open" >&6; }
25149
25150# It's stupid, but not all platforms have union semun, even those that need it.
25151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun in sys/sem.h" >&5
25152$as_echo_n "checking for union semun in sys/sem.h... " >&6; }
25153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25154/* end confdefs.h.  */
25155
25156#include <sys/types.h>
25157#include <sys/ipc.h>
25158#include <sys/sem.h>
25159
25160int
25161main ()
25162{
25163
25164union semun arg;
25165semctl(0, 0, 0, arg);
25166
25167  ;
25168  return 0;
25169}
25170_ACEOF
25171if ac_fn_c_try_compile "$LINENO"; then :
25172  have_union_semun="1" union_semun=yes
25173msg=yes
25174else
25175
25176have_union_semun="0"
25177msg=no
25178fi
25179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
25181$as_echo "$msg" >&6; }
25182
25183
25184
25185  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOCK_EX in sys/file.h" >&5
25186$as_echo_n "checking for LOCK_EX in sys/file.h... " >&6; }
25187if ${ac_cv_define_LOCK_EX+:} false; then :
25188  $as_echo_n "(cached) " >&6
25189else
25190
25191    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25192/* end confdefs.h.  */
25193
25194#include <sys/file.h>
25195#ifdef LOCK_EX
25196YES_IS_DEFINED
25197#endif
25198
25199_ACEOF
25200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25201  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25202  ac_cv_define_LOCK_EX=yes
25203else
25204  ac_cv_define_LOCK_EX=no
25205fi
25206rm -f conftest*
25207
25208
25209fi
25210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_LOCK_EX" >&5
25211$as_echo "$ac_cv_define_LOCK_EX" >&6; }
25212  if test "$ac_cv_define_LOCK_EX" = "yes"; then
25213
25214$as_echo "#define HAVE_LOCK_EX 1" >>confdefs.h
25215
25216  fi
25217
25218
25219  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLK in fcntl.h" >&5
25220$as_echo_n "checking for F_SETLK in fcntl.h... " >&6; }
25221if ${ac_cv_define_F_SETLK+:} false; then :
25222  $as_echo_n "(cached) " >&6
25223else
25224
25225    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25226/* end confdefs.h.  */
25227
25228#include <fcntl.h>
25229#ifdef F_SETLK
25230YES_IS_DEFINED
25231#endif
25232
25233_ACEOF
25234if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25235  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25236  ac_cv_define_F_SETLK=yes
25237else
25238  ac_cv_define_F_SETLK=no
25239fi
25240rm -f conftest*
25241
25242
25243fi
25244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_F_SETLK" >&5
25245$as_echo "$ac_cv_define_F_SETLK" >&6; }
25246  if test "$ac_cv_define_F_SETLK" = "yes"; then
25247
25248$as_echo "#define HAVE_F_SETLK 1" >>confdefs.h
25249
25250  fi
25251
25252
25253  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SEM_UNDO in sys/sem.h" >&5
25254$as_echo_n "checking for SEM_UNDO in sys/sem.h... " >&6; }
25255if ${ac_cv_define_SEM_UNDO+:} false; then :
25256  $as_echo_n "(cached) " >&6
25257else
25258
25259    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25260/* end confdefs.h.  */
25261
25262#include <sys/sem.h>
25263#ifdef SEM_UNDO
25264YES_IS_DEFINED
25265#endif
25266
25267_ACEOF
25268if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25269  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25270  ac_cv_define_SEM_UNDO=yes
25271else
25272  ac_cv_define_SEM_UNDO=no
25273fi
25274rm -f conftest*
25275
25276
25277fi
25278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SEM_UNDO" >&5
25279$as_echo "$ac_cv_define_SEM_UNDO" >&6; }
25280  if test "$ac_cv_define_SEM_UNDO" = "yes"; then
25281
25282$as_echo "#define HAVE_SEM_UNDO 1" >>confdefs.h
25283
25284  fi
25285
25286
25287# We are assuming that if the platform doesn't have POLLIN, it doesn't have
25288# any POLL definitions.
25289
25290  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POLLIN in poll.h sys/poll.h" >&5
25291$as_echo_n "checking for POLLIN in poll.h sys/poll.h... " >&6; }
25292if ${ac_cv_define_POLLIN+:} false; then :
25293  $as_echo_n "(cached) " >&6
25294else
25295
25296    ac_cv_define_POLLIN=no
25297    for curhdr in poll.h sys/poll.h
25298    do
25299      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25300/* end confdefs.h.  */
25301
25302#include <$curhdr>
25303#ifdef POLLIN
25304YES_IS_DEFINED
25305#endif
25306
25307_ACEOF
25308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25309  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25310  ac_cv_define_POLLIN=yes
25311fi
25312rm -f conftest*
25313
25314    done
25315
25316fi
25317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_POLLIN" >&5
25318$as_echo "$ac_cv_define_POLLIN" >&6; }
25319  if test "$ac_cv_define_POLLIN" = "yes"; then
25320
25321$as_echo "#define HAVE_POLLIN 1" >>confdefs.h
25322
25323  fi
25324
25325
25326if test "$threads" = "1"; then
25327
25328  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PROCESS_SHARED in pthread.h" >&5
25329$as_echo_n "checking for PTHREAD_PROCESS_SHARED in pthread.h... " >&6; }
25330if ${ac_cv_define_PTHREAD_PROCESS_SHARED+:} false; then :
25331  $as_echo_n "(cached) " >&6
25332else
25333
25334    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25335/* end confdefs.h.  */
25336
25337#include <pthread.h>
25338#ifdef PTHREAD_PROCESS_SHARED
25339YES_IS_DEFINED
25340#endif
25341
25342_ACEOF
25343if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25344  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25345  ac_cv_define_PTHREAD_PROCESS_SHARED=yes
25346else
25347  ac_cv_define_PTHREAD_PROCESS_SHARED=no
25348fi
25349rm -f conftest*
25350
25351
25352fi
25353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_PTHREAD_PROCESS_SHARED" >&5
25354$as_echo "$ac_cv_define_PTHREAD_PROCESS_SHARED" >&6; }
25355  if test "$ac_cv_define_PTHREAD_PROCESS_SHARED" = "yes"; then
25356
25357$as_echo "#define HAVE_PTHREAD_PROCESS_SHARED 1" >>confdefs.h
25358
25359  fi
25360
25361    for ac_func in pthread_mutexattr_setpshared
25362do :
25363  ac_fn_c_check_func "$LINENO" "pthread_mutexattr_setpshared" "ac_cv_func_pthread_mutexattr_setpshared"
25364if test "x$ac_cv_func_pthread_mutexattr_setpshared" = xyes; then :
25365  cat >>confdefs.h <<_ACEOF
25366#define HAVE_PTHREAD_MUTEXATTR_SETPSHARED 1
25367_ACEOF
25368
25369fi
25370done
25371
25372    # Some systems have setpshared and define PROCESS_SHARED, but don't
25373    # really support PROCESS_SHARED locks.  So, we must validate that we
25374    # can go through the steps without receiving some sort of system error.
25375    # Linux and older versions of AIX have this problem.
25376    ac_rc=yes
25377for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED func:pthread_mutexattr_setpshared; do
25378    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25379    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25380    case $ac_type in
25381        header )
25382            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25383            ac_var="ac_cv_header_$ac_item"
25384            ;;
25385        file )
25386            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25387            ac_var="ac_cv_file_$ac_item"
25388            ;;
25389        func )   ac_var="ac_cv_func_$ac_item"   ;;
25390        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25391        define ) ac_var="ac_cv_define_$ac_item" ;;
25392        custom ) ac_var="$ac_item" ;;
25393    esac
25394    eval "ac_val=\$$ac_var"
25395    if test ".$ac_val" != .yes; then
25396        ac_rc=no
25397        break
25398    fi
25399done
25400if test ".$ac_rc" = .yes; then
25401    :
25402
25403      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working PROCESS_SHARED locks" >&5
25404$as_echo_n "checking for working PROCESS_SHARED locks... " >&6; }
25405if ${apr_cv_process_shared_works+:} false; then :
25406  $as_echo_n "(cached) " >&6
25407else
25408
25409      if test "$cross_compiling" = yes; then :
25410  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25412as_fn_error $? "cannot run test program while cross compiling
25413See \`config.log' for more details" "$LINENO" 5; }
25414else
25415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25416/* end confdefs.h.  */
25417
25418#include <sys/types.h>
25419#include <pthread.h>
25420        int main()
25421        {
25422            pthread_mutex_t mutex;
25423            pthread_mutexattr_t attr;
25424            if (pthread_mutexattr_init(&attr))
25425                exit(1);
25426            if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
25427                exit(2);
25428            if (pthread_mutex_init(&mutex, &attr))
25429                exit(3);
25430            if (pthread_mutexattr_destroy(&attr))
25431                exit(4);
25432            if (pthread_mutex_destroy(&mutex))
25433                exit(5);
25434            exit(0);
25435        }
25436_ACEOF
25437if ac_fn_c_try_run "$LINENO"; then :
25438  apr_cv_process_shared_works=yes
25439else
25440  apr_cv_process_shared_works=no
25441fi
25442rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25443  conftest.$ac_objext conftest.beam conftest.$ac_ext
25444fi
25445
25446fi
25447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_process_shared_works" >&5
25448$as_echo "$apr_cv_process_shared_works" >&6; }
25449      # Override detection of pthread_mutexattr_setpshared
25450      ac_cv_func_pthread_mutexattr_setpshared=$apr_cv_process_shared_works
25451else
25452    :
25453
25454fi
25455
25456
25457    if test "$ac_cv_func_pthread_mutexattr_setpshared" = "yes"; then
25458
25459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for robust cross-process mutex support" >&5
25460$as_echo_n "checking for robust cross-process mutex support... " >&6; }
25461if ${apr_cv_mutex_robust_shared+:} false; then :
25462  $as_echo_n "(cached) " >&6
25463else
25464  if test "$cross_compiling" = yes; then :
25465  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25467as_fn_error $? "cannot run test program while cross compiling
25468See \`config.log' for more details" "$LINENO" 5; }
25469else
25470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25471/* end confdefs.h.  */
25472
25473#include <sys/types.h>
25474#include <pthread.h>
25475#include <stdlib.h>
25476
25477int main(int argc, char **argv)
25478{
25479    pthread_mutex_t mutex;
25480    pthread_mutexattr_t attr;
25481
25482    if (pthread_mutexattr_init(&attr))
25483        exit(1);
25484    if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
25485        exit(2);
25486    if (pthread_mutexattr_setrobust_np(&attr, PTHREAD_MUTEX_ROBUST_NP))
25487        exit(3);
25488    if (pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT))
25489        exit(4);
25490    if (pthread_mutex_init(&mutex, &attr))
25491        exit(5);
25492    if (pthread_mutexattr_destroy(&attr))
25493        exit(6);
25494    if (pthread_mutex_destroy(&mutex))
25495        exit(7);
25496
25497    exit(0);
25498}
25499_ACEOF
25500if ac_fn_c_try_run "$LINENO"; then :
25501  apr_cv_mutex_robust_shared=yes
25502else
25503  apr_cv_mutex_robust_shared=no
25504fi
25505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25506  conftest.$ac_objext conftest.beam conftest.$ac_ext
25507fi
25508
25509fi
25510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_robust_shared" >&5
25511$as_echo "$apr_cv_mutex_robust_shared" >&6; }
25512
25513if test "$apr_cv_mutex_robust_shared" = "yes"; then
25514
25515$as_echo "#define HAVE_PTHREAD_MUTEX_ROBUST 1" >>confdefs.h
25516
25517fi
25518
25519    fi
25520fi
25521
25522# See which lock mechanisms we can support on this system.
25523ac_rc=yes
25524for ac_spec in header:semaphore.h func:sem_open func:sem_close              func:sem_unlink func:sem_post func:sem_wait; do
25525    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25526    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25527    case $ac_type in
25528        header )
25529            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25530            ac_var="ac_cv_header_$ac_item"
25531            ;;
25532        file )
25533            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25534            ac_var="ac_cv_file_$ac_item"
25535            ;;
25536        func )   ac_var="ac_cv_func_$ac_item"   ;;
25537        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25538        define ) ac_var="ac_cv_define_$ac_item" ;;
25539        custom ) ac_var="$ac_item" ;;
25540    esac
25541    eval "ac_val=\$$ac_var"
25542    if test ".$ac_val" != .yes; then
25543        ac_rc=no
25544        break
25545    fi
25546done
25547if test ".$ac_rc" = .yes; then
25548    :
25549    hasposixser="1"
25550else
25551    :
25552    hasposixser="0"
25553fi
25554
25555ac_rc=yes
25556for ac_spec in func:semget func:semctl define:SEM_UNDO; do
25557    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25558    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25559    case $ac_type in
25560        header )
25561            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25562            ac_var="ac_cv_header_$ac_item"
25563            ;;
25564        file )
25565            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25566            ac_var="ac_cv_file_$ac_item"
25567            ;;
25568        func )   ac_var="ac_cv_func_$ac_item"   ;;
25569        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25570        define ) ac_var="ac_cv_define_$ac_item" ;;
25571        custom ) ac_var="$ac_item" ;;
25572    esac
25573    eval "ac_val=\$$ac_var"
25574    if test ".$ac_val" != .yes; then
25575        ac_rc=no
25576        break
25577    fi
25578done
25579if test ".$ac_rc" = .yes; then
25580    :
25581    hassysvser="1"
25582else
25583    :
25584    hassysvser="0"
25585fi
25586
25587ac_rc=yes
25588for ac_spec in func:flock define:LOCK_EX; do
25589    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25590    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25591    case $ac_type in
25592        header )
25593            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25594            ac_var="ac_cv_header_$ac_item"
25595            ;;
25596        file )
25597            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25598            ac_var="ac_cv_file_$ac_item"
25599            ;;
25600        func )   ac_var="ac_cv_func_$ac_item"   ;;
25601        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25602        define ) ac_var="ac_cv_define_$ac_item" ;;
25603        custom ) ac_var="$ac_item" ;;
25604    esac
25605    eval "ac_val=\$$ac_var"
25606    if test ".$ac_val" != .yes; then
25607        ac_rc=no
25608        break
25609    fi
25610done
25611if test ".$ac_rc" = .yes; then
25612    :
25613    hasflockser="1"
25614else
25615    :
25616    hasflockser="0"
25617fi
25618
25619ac_rc=yes
25620for ac_spec in header:fcntl.h define:F_SETLK; do
25621    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25622    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25623    case $ac_type in
25624        header )
25625            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25626            ac_var="ac_cv_header_$ac_item"
25627            ;;
25628        file )
25629            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25630            ac_var="ac_cv_file_$ac_item"
25631            ;;
25632        func )   ac_var="ac_cv_func_$ac_item"   ;;
25633        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25634        define ) ac_var="ac_cv_define_$ac_item" ;;
25635        custom ) ac_var="$ac_item" ;;
25636    esac
25637    eval "ac_val=\$$ac_var"
25638    if test ".$ac_val" != .yes; then
25639        ac_rc=no
25640        break
25641    fi
25642done
25643if test ".$ac_rc" = .yes; then
25644    :
25645    hasfcntlser="1"
25646else
25647    :
25648    hasfcntlser="0"
25649fi
25650
25651# note: the current APR use of shared mutex requires /dev/zero
25652ac_rc=yes
25653for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED              func:pthread_mutexattr_setpshared              file:/dev/zero; do
25654    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25655    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25656    case $ac_type in
25657        header )
25658            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25659            ac_var="ac_cv_header_$ac_item"
25660            ;;
25661        file )
25662            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25663            ac_var="ac_cv_file_$ac_item"
25664            ;;
25665        func )   ac_var="ac_cv_func_$ac_item"   ;;
25666        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25667        define ) ac_var="ac_cv_define_$ac_item" ;;
25668        custom ) ac_var="$ac_item" ;;
25669    esac
25670    eval "ac_val=\$$ac_var"
25671    if test ".$ac_val" != .yes; then
25672        ac_rc=no
25673        break
25674    fi
25675done
25676if test ".$ac_rc" = .yes; then
25677    :
25678    hasprocpthreadser="1"
25679else
25680    :
25681    hasprocpthreadser="0"
25682fi
25683
25684ac_rc=yes
25685for ac_spec in header:OS.h func:create_sem; do
25686    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25687    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25688    case $ac_type in
25689        header )
25690            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25691            ac_var="ac_cv_header_$ac_item"
25692            ;;
25693        file )
25694            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25695            ac_var="ac_cv_file_$ac_item"
25696            ;;
25697        func )   ac_var="ac_cv_func_$ac_item"   ;;
25698        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25699        define ) ac_var="ac_cv_define_$ac_item" ;;
25700        custom ) ac_var="$ac_item" ;;
25701    esac
25702    eval "ac_val=\$$ac_var"
25703    if test ".$ac_val" != .yes; then
25704        ac_rc=no
25705        break
25706    fi
25707done
25708if test ".$ac_rc" = .yes; then
25709    :
25710    hasbeossem="1"
25711else
25712    :
25713    hasbeossem="0"
25714fi
25715
25716
25717# See which lock mechanism we'll select by default on this system.
25718# The last APR_DECIDE to execute sets the default.
25719# At this stage, we match the ordering in Apache 1.3
25720# which is (highest to lowest): sysvsem -> fcntl -> flock.
25721# POSIX semaphores and cross-process pthread mutexes are not
25722# used by default since they have less desirable behaviour when
25723# e.g. a process holding the mutex segfaults.
25724# The BEOSSEM decision doesn't require any substitutions but is
25725# included here to prevent the fcntl() branch being selected
25726# from the decision making.
25727ac_decision_item='apr_lock implementation method'
25728ac_decision_msg='FAILED'
25729ac_decision=''
25730
25731ac_rc=yes
25732for ac_spec in func:flock define:LOCK_EX; do
25733    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25734    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25735    case $ac_type in
25736        header )
25737            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25738            ac_var="ac_cv_header_$ac_item"
25739            ;;
25740        file )
25741            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25742            ac_var="ac_cv_file_$ac_item"
25743            ;;
25744        func )   ac_var="ac_cv_func_$ac_item"   ;;
25745        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25746        define ) ac_var="ac_cv_define_$ac_item" ;;
25747        custom ) ac_var="$ac_item" ;;
25748    esac
25749    eval "ac_val=\$$ac_var"
25750    if test ".$ac_val" != .yes; then
25751        ac_rc=no
25752        break
25753    fi
25754done
25755if test ".$ac_rc" = .yes; then
25756    :
25757
25758ac_decision='USE_FLOCK_SERIALIZE'
25759ac_decision_msg='4.2BSD-style flock()'
25760ac_decision_USE_FLOCK_SERIALIZE=yes
25761ac_decision_USE_FLOCK_SERIALIZE_msg='4.2BSD-style flock()'
25762
25763else
25764    :
25765
25766fi
25767
25768ac_rc=yes
25769for ac_spec in header:fcntl.h define:F_SETLK; do
25770    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25771    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25772    case $ac_type in
25773        header )
25774            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25775            ac_var="ac_cv_header_$ac_item"
25776            ;;
25777        file )
25778            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25779            ac_var="ac_cv_file_$ac_item"
25780            ;;
25781        func )   ac_var="ac_cv_func_$ac_item"   ;;
25782        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25783        define ) ac_var="ac_cv_define_$ac_item" ;;
25784        custom ) ac_var="$ac_item" ;;
25785    esac
25786    eval "ac_val=\$$ac_var"
25787    if test ".$ac_val" != .yes; then
25788        ac_rc=no
25789        break
25790    fi
25791done
25792if test ".$ac_rc" = .yes; then
25793    :
25794
25795ac_decision='USE_FCNTL_SERIALIZE'
25796ac_decision_msg='SVR4-style fcntl()'
25797ac_decision_USE_FCNTL_SERIALIZE=yes
25798ac_decision_USE_FCNTL_SERIALIZE_msg='SVR4-style fcntl()'
25799
25800else
25801    :
25802
25803fi
25804
25805ac_rc=yes
25806for ac_spec in func:semget func:semctl define:SEM_UNDO; do
25807    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25808    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25809    case $ac_type in
25810        header )
25811            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25812            ac_var="ac_cv_header_$ac_item"
25813            ;;
25814        file )
25815            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25816            ac_var="ac_cv_file_$ac_item"
25817            ;;
25818        func )   ac_var="ac_cv_func_$ac_item"   ;;
25819        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25820        define ) ac_var="ac_cv_define_$ac_item" ;;
25821        custom ) ac_var="$ac_item" ;;
25822    esac
25823    eval "ac_val=\$$ac_var"
25824    if test ".$ac_val" != .yes; then
25825        ac_rc=no
25826        break
25827    fi
25828done
25829if test ".$ac_rc" = .yes; then
25830    :
25831
25832ac_decision='USE_SYSVSEM_SERIALIZE'
25833ac_decision_msg='SysV IPC semget()'
25834ac_decision_USE_SYSVSEM_SERIALIZE=yes
25835ac_decision_USE_SYSVSEM_SERIALIZE_msg='SysV IPC semget()'
25836
25837else
25838    :
25839
25840fi
25841
25842ac_rc=yes
25843for ac_spec in header:OS.h func:create_sem; do
25844    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25845    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25846    case $ac_type in
25847        header )
25848            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25849            ac_var="ac_cv_header_$ac_item"
25850            ;;
25851        file )
25852            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25853            ac_var="ac_cv_file_$ac_item"
25854            ;;
25855        func )   ac_var="ac_cv_func_$ac_item"   ;;
25856        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25857        define ) ac_var="ac_cv_define_$ac_item" ;;
25858        custom ) ac_var="$ac_item" ;;
25859    esac
25860    eval "ac_val=\$$ac_var"
25861    if test ".$ac_val" != .yes; then
25862        ac_rc=no
25863        break
25864    fi
25865done
25866if test ".$ac_rc" = .yes; then
25867    :
25868
25869ac_decision='USE_BEOSSEM'
25870ac_decision_msg='BeOS Semaphores'
25871ac_decision_USE_BEOSSEM=yes
25872ac_decision_USE_BEOSSEM_msg='BeOS Semaphores'
25873
25874else
25875    :
25876
25877fi
25878
25879if test "x$apr_lock_method" != "x"; then
25880    ac_decision="$apr_lock_method"
25881eval "ac_decision_msg=\"\$ac_decision_${ac_decision}_msg\""
25882
25883fi
25884if test ".$ac_decision" = .; then
25885    echo "$0:Error: decision on $ac_decision_item failed" 1>&2
25886    exit 1
25887else
25888    if test ".$ac_decision_msg" = .; then
25889        ac_decision_msg="$ac_decision"
25890    fi
25891    cat >>confdefs.h <<_ACEOF
25892#define ${ac_decision_item} 1
25893_ACEOF
25894
25895    { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
25896$as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
25897fi
25898
25899cat >>confdefs.h <<_ACEOF
25900#define $ac_decision 1
25901_ACEOF
25902
25903
25904flockser="0"
25905sysvser="0"
25906posixser="0"
25907procpthreadser="0"
25908fcntlser="0"
25909case $ac_decision in
25910    USE_FLOCK_SERIALIZE )
25911        flockser="1"
25912        ;;
25913    USE_FCNTL_SERIALIZE )
25914        fcntlser="1"
25915        ;;
25916    USE_SYSVSEM_SERIALIZE )
25917        sysvser="1"
25918        ;;
25919    USE_POSIXSEM_SERIALIZE )
25920        posixser="1"
25921        ;;
25922    USE_PROC_PTHREAD_SERIALIZE )
25923        procpthreadser="1"
25924        ;;
25925    USE_BEOSSEM )
25926        beossem="1"
25927        ;;
25928esac
25929
25930if test $hasfcntlser = "1"; then
25931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl returns EACCES when F_SETLK is already held" >&5
25932$as_echo_n "checking if fcntl returns EACCES when F_SETLK is already held... " >&6; }
25933if test "$cross_compiling" = yes; then :
25934  apr_fcntl_tryacquire_eacces=0
25935else
25936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25937/* end confdefs.h.  */
25938
25939#ifdef HAVE_STDLIB_H
25940#include <stdlib.h>
25941#endif
25942#ifdef HAVE_SYS_TYPES_H
25943#include <sys/types.h>
25944#endif
25945#ifdef HAVE_SYS_STAT_H
25946#include <sys/stat.h>
25947#endif
25948#ifdef HAVE_SYS_WAIT_H
25949#include <sys/wait.h>
25950#endif
25951#if defined(HAVE_UNISTD_H)
25952#include <unistd.h>
25953#endif
25954#include <fcntl.h>
25955#include <errno.h>
25956
25957int fd;
25958struct flock proc_mutex_lock_it = {0};
25959const char *fname = "conftest.fcntl";
25960
25961int main()
25962{
25963    int rc, status;;
25964    proc_mutex_lock_it.l_whence = SEEK_SET;   /* from current point */
25965    proc_mutex_lock_it.l_type = F_WRLCK;      /* set exclusive/write lock */
25966
25967    fd = creat(fname, S_IRWXU);
25968    unlink(fname);
25969
25970    if (rc = lockit()) {
25971        exit(-1);
25972    }
25973
25974    if (fork()) {
25975        wait(&status);
25976    }
25977    else {
25978      return(lockit());
25979    }
25980
25981    close(fd);
25982    exit(WEXITSTATUS(status) != EACCES);
25983}
25984
25985int lockit() {
25986    int rc;
25987    do {
25988        rc = fcntl(fd, F_SETLK, &proc_mutex_lock_it);
25989    } while ( rc < 0 && errno == EINTR);
25990
25991    return (rc < 0) ? errno : 0;
25992}
25993_ACEOF
25994if ac_fn_c_try_run "$LINENO"; then :
25995  apr_fcntl_tryacquire_eacces=1
25996else
25997  apr_fcntl_tryacquire_eacces=0
25998fi
25999rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26000  conftest.$ac_objext conftest.beam conftest.$ac_ext
26001fi
26002
26003fi
26004
26005if test "$apr_fcntl_tryacquire_eacces" = "1"; then
26006
26007$as_echo "#define FCNTL_TRYACQUIRE_EACCES 1" >>confdefs.h
26008
26009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26010$as_echo "yes" >&6; }
26011else
26012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26013$as_echo "no" >&6; }
26014fi
26015
26016
26017
26018
26019
26020
26021
26022
26023
26024
26025
26026
26027
26028
26029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if all interprocess locks affect threads" >&5
26030$as_echo_n "checking if all interprocess locks affect threads... " >&6; }
26031if test "x$apr_process_lock_is_global" = "xyes"; then
26032    proclockglobal="1"
26033    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26034$as_echo "yes" >&6; }
26035else
26036    proclockglobal="0"
26037    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26038$as_echo "no" >&6; }
26039fi
26040
26041
26042
26043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if POSIX sems affect threads in the same process" >&5
26044$as_echo_n "checking if POSIX sems affect threads in the same process... " >&6; }
26045if test "x$apr_posixsem_is_global" = "xyes"; then
26046
26047$as_echo "#define POSIXSEM_IS_GLOBAL 1" >>confdefs.h
26048
26049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26050$as_echo "yes" >&6; }
26051else
26052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26053$as_echo "no" >&6; }
26054fi
26055
26056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SysV sems affect threads in the same process" >&5
26057$as_echo_n "checking if SysV sems affect threads in the same process... " >&6; }
26058if test "x$apr_sysvsem_is_global" = "xyes"; then
26059
26060$as_echo "#define SYSVSEM_IS_GLOBAL 1" >>confdefs.h
26061
26062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26063$as_echo "yes" >&6; }
26064else
26065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26066$as_echo "no" >&6; }
26067fi
26068
26069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl locks affect threads in the same process" >&5
26070$as_echo_n "checking if fcntl locks affect threads in the same process... " >&6; }
26071if test "x$apr_fcntl_is_global" = "xyes"; then
26072
26073$as_echo "#define FCNTL_IS_GLOBAL 1" >>confdefs.h
26074
26075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26076$as_echo "yes" >&6; }
26077else
26078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26079$as_echo "no" >&6; }
26080fi
26081
26082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if flock locks affect threads in the same process" >&5
26083$as_echo_n "checking if flock locks affect threads in the same process... " >&6; }
26084if test "x$apr_flock_is_global" = "xyes"; then
26085
26086$as_echo "#define FLOCK_IS_GLOBAL 1" >>confdefs.h
26087
26088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26089$as_echo "yes" >&6; }
26090else
26091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26092$as_echo "no" >&6; }
26093fi
26094
26095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for entropy source" >&5
26096$as_echo_n "checking for entropy source... " >&6; }
26097
26098why_no_rand=""
26099
26100
26101# Check whether --with-egd was given.
26102if test "${with_egd+set}" = set; then :
26103  withval=$with_egd;
26104$as_echo "#define HAVE_EGD 1" >>confdefs.h
26105
26106    if test "$withval" = "yes"; then
26107
26108cat >>confdefs.h <<_ACEOF
26109#define EGD_DEFAULT_SOCKET "/var/run/egd-pool","/dev/egd-pool","/etc/egd-pool","/etc/entropy"
26110_ACEOF
26111
26112    else
26113        cat >>confdefs.h <<_ACEOF
26114#define EGD_DEFAULT_SOCKET "$withval"
26115_ACEOF
26116
26117    fi
26118    { $as_echo "$as_me:${as_lineno-$LINENO}: result: EGD-compatible daemon" >&5
26119$as_echo "EGD-compatible daemon" >&6; }
26120    rand="1"
26121
26122fi
26123
26124
26125if test "$rand" != "1"; then
26126
26127# Check whether --with-devrandom was given.
26128if test "${with_devrandom+set}" = set; then :
26129  withval=$with_devrandom;  apr_devrandom="$withval"
26130else
26131   apr_devrandom="yes"
26132fi
26133
26134
26135  if test "$apr_devrandom" = "yes"; then
26136    # /dev/random on OpenBSD doesn't provide random data, so
26137    # prefer /dev/arandom, which does; see random(4).
26138    for f in /dev/arandom /dev/urandom /dev/random; do
26139      if test -r $f; then
26140        apr_devrandom=$f
26141        rand=1
26142        break
26143      fi
26144    done
26145  elif test "$apr_devrandom" != "no"; then
26146    if test -r "$apr_devrandom"; then
26147      rand="1"
26148    else
26149      as_fn_error $? "$apr_devrandom not found or unreadable." "$LINENO" 5
26150    fi
26151  fi
26152
26153  if test "$rand" = "1"; then
26154    case $host in
26155      *os390)
26156        if test $os_version -lt 1700; then
26157          rand="0"
26158          why_no_rand=" ($apr_devrandom unusable on z/OS before V1R7)"
26159        fi
26160        ;;
26161    esac
26162  fi
26163
26164  if test "$rand" = "1"; then
26165
26166cat >>confdefs.h <<_ACEOF
26167#define DEV_RANDOM "$apr_devrandom"
26168_ACEOF
26169
26170    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_devrandom" >&5
26171$as_echo "$apr_devrandom" >&6; }
26172  fi
26173fi
26174
26175if test "$rand" != "1"; then
26176    case $host in
26177        # we have built in support for OS/2
26178        *-os2*)
26179            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OS/2 builtin random" >&5
26180$as_echo "Using OS/2 builtin random" >&6; }
26181            rand="1"
26182            ;;
26183        *)
26184            if test "$rand" != "1"; then
26185              if test "$ac_cv_lib_truerand_main" = "yes"; then
26186
26187$as_echo "#define HAVE_TRUERAND 1" >>confdefs.h
26188
26189                { $as_echo "$as_me:${as_lineno-$LINENO}: result: truerand" >&5
26190$as_echo "truerand" >&6; }
26191                rand="1"
26192              else
26193                { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found$why_no_rand" >&5
26194$as_echo "not found$why_no_rand" >&6; }
26195                rand="0"
26196              fi
26197            fi
26198            ;;
26199    esac
26200fi
26201
26202
26203
26204echo "${nl}Checking for File Info Support..."
26205ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "
26206#ifdef HAVE_SYS_TYPES_H
26207#include <sys/types.h>
26208#endif
26209#ifdef HAVE_SYS_STAT_H
26210#include <sys/stat.h>
26211#endif
26212#ifdef HAVE_UNISTD_H
26213#include <unistd.h>
26214#endif
26215"
26216if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26217
26218cat >>confdefs.h <<_ACEOF
26219#define HAVE_STRUCT_STAT_ST_BLOCKS 1
26220_ACEOF
26221
26222
26223fi
26224ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "
26225#ifdef HAVE_SYS_TYPES_H
26226#include <sys/types.h>
26227#endif
26228#ifdef HAVE_SYS_STAT_H
26229#include <sys/stat.h>
26230#endif
26231#ifdef HAVE_UNISTD_H
26232#include <unistd.h>
26233#endif
26234"
26235if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
26236
26237cat >>confdefs.h <<_ACEOF
26238#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
26239_ACEOF
26240
26241
26242fi
26243ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "
26244#ifdef HAVE_SYS_TYPES_H
26245#include <sys/types.h>
26246#endif
26247#ifdef HAVE_SYS_STAT_H
26248#include <sys/stat.h>
26249#endif
26250#ifdef HAVE_UNISTD_H
26251#include <unistd.h>
26252#endif
26253"
26254if test "x$ac_cv_member_struct_stat_st_ctimensec" = xyes; then :
26255
26256cat >>confdefs.h <<_ACEOF
26257#define HAVE_STRUCT_STAT_ST_CTIMENSEC 1
26258_ACEOF
26259
26260
26261fi
26262ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "
26263#ifdef HAVE_SYS_TYPES_H
26264#include <sys/types.h>
26265#endif
26266#ifdef HAVE_SYS_STAT_H
26267#include <sys/stat.h>
26268#endif
26269#ifdef HAVE_UNISTD_H
26270#include <unistd.h>
26271#endif
26272"
26273if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
26274
26275cat >>confdefs.h <<_ACEOF
26276#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
26277_ACEOF
26278
26279
26280fi
26281ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "
26282#ifdef HAVE_SYS_TYPES_H
26283#include <sys/types.h>
26284#endif
26285#ifdef HAVE_SYS_STAT_H
26286#include <sys/stat.h>
26287#endif
26288#ifdef HAVE_UNISTD_H
26289#include <unistd.h>
26290#endif
26291"
26292if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
26293
26294cat >>confdefs.h <<_ACEOF
26295#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
26296_ACEOF
26297
26298
26299fi
26300ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim.tv_nsec" "ac_cv_member_struct_stat_st_ctim_tv_nsec" "
26301#ifdef HAVE_SYS_TYPES_H
26302#include <sys/types.h>
26303#endif
26304#ifdef HAVE_SYS_STAT_H
26305#include <sys/stat.h>
26306#endif
26307#ifdef HAVE_UNISTD_H
26308#include <unistd.h>
26309#endif
26310"
26311if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = xyes; then :
26312
26313cat >>confdefs.h <<_ACEOF
26314#define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1
26315_ACEOF
26316
26317
26318fi
26319ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "
26320#ifdef HAVE_SYS_TYPES_H
26321#include <sys/types.h>
26322#endif
26323#ifdef HAVE_SYS_STAT_H
26324#include <sys/stat.h>
26325#endif
26326#ifdef HAVE_UNISTD_H
26327#include <unistd.h>
26328#endif
26329"
26330if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
26331
26332cat >>confdefs.h <<_ACEOF
26333#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
26334_ACEOF
26335
26336
26337fi
26338ac_fn_c_check_member "$LINENO" "struct stat" "st_atime_n" "ac_cv_member_struct_stat_st_atime_n" "
26339#ifdef HAVE_SYS_TYPES_H
26340#include <sys/types.h>
26341#endif
26342#ifdef HAVE_SYS_STAT_H
26343#include <sys/stat.h>
26344#endif
26345#ifdef HAVE_UNISTD_H
26346#include <unistd.h>
26347#endif
26348"
26349if test "x$ac_cv_member_struct_stat_st_atime_n" = xyes; then :
26350
26351cat >>confdefs.h <<_ACEOF
26352#define HAVE_STRUCT_STAT_ST_ATIME_N 1
26353_ACEOF
26354
26355
26356fi
26357ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime_n" "ac_cv_member_struct_stat_st_ctime_n" "
26358#ifdef HAVE_SYS_TYPES_H
26359#include <sys/types.h>
26360#endif
26361#ifdef HAVE_SYS_STAT_H
26362#include <sys/stat.h>
26363#endif
26364#ifdef HAVE_UNISTD_H
26365#include <unistd.h>
26366#endif
26367"
26368if test "x$ac_cv_member_struct_stat_st_ctime_n" = xyes; then :
26369
26370cat >>confdefs.h <<_ACEOF
26371#define HAVE_STRUCT_STAT_ST_CTIME_N 1
26372_ACEOF
26373
26374
26375fi
26376ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_n" "ac_cv_member_struct_stat_st_mtime_n" "
26377#ifdef HAVE_SYS_TYPES_H
26378#include <sys/types.h>
26379#endif
26380#ifdef HAVE_SYS_STAT_H
26381#include <sys/stat.h>
26382#endif
26383#ifdef HAVE_UNISTD_H
26384#include <unistd.h>
26385#endif
26386"
26387if test "x$ac_cv_member_struct_stat_st_mtime_n" = xyes; then :
26388
26389cat >>confdefs.h <<_ACEOF
26390#define HAVE_STRUCT_STAT_ST_MTIME_N 1
26391_ACEOF
26392
26393
26394fi
26395
26396
26397
26398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inode member of struct dirent" >&5
26399$as_echo_n "checking for inode member of struct dirent... " >&6; }
26400if ${apr_cv_dirent_inode+:} false; then :
26401  $as_echo_n "(cached) " >&6
26402else
26403
26404apr_cv_dirent_inode=no
26405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26406/* end confdefs.h.  */
26407
26408#include <sys/types.h>
26409#include <dirent.h>
26410
26411int
26412main ()
26413{
26414
26415#ifdef d_ino
26416#undef d_ino
26417#endif
26418struct dirent de; de.d_fileno;
26419
26420  ;
26421  return 0;
26422}
26423_ACEOF
26424if ac_fn_c_try_compile "$LINENO"; then :
26425  apr_cv_dirent_inode=d_fileno
26426fi
26427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26428if test "$apr_cv_dirent_inode" = "no"; then
26429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26430/* end confdefs.h.  */
26431
26432#include <sys/types.h>
26433#include <dirent.h>
26434
26435int
26436main ()
26437{
26438
26439#ifdef d_fileno
26440#undef d_fileno
26441#endif
26442struct dirent de; de.d_ino;
26443
26444  ;
26445  return 0;
26446}
26447_ACEOF
26448if ac_fn_c_try_compile "$LINENO"; then :
26449  apr_cv_dirent_inode=d_ino
26450fi
26451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26452fi
26453
26454fi
26455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_inode" >&5
26456$as_echo "$apr_cv_dirent_inode" >&6; }
26457if test "$apr_cv_dirent_inode" != "no"; then
26458
26459cat >>confdefs.h <<_ACEOF
26460#define DIRENT_INODE $apr_cv_dirent_inode
26461_ACEOF
26462
26463fi
26464
26465
26466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file type member of struct dirent" >&5
26467$as_echo_n "checking for file type member of struct dirent... " >&6; }
26468if ${apr_cv_dirent_type+:} false; then :
26469  $as_echo_n "(cached) " >&6
26470else
26471
26472apr_cv_dirent_type=no
26473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26474/* end confdefs.h.  */
26475
26476#include <sys/types.h>
26477#include <dirent.h>
26478
26479int
26480main ()
26481{
26482
26483struct dirent de; de.d_type = DT_REG;
26484
26485  ;
26486  return 0;
26487}
26488_ACEOF
26489if ac_fn_c_try_compile "$LINENO"; then :
26490  apr_cv_dirent_type=d_type
26491fi
26492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26493
26494fi
26495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_type" >&5
26496$as_echo "$apr_cv_dirent_type" >&6; }
26497if test "$apr_cv_dirent_type" != "no"; then
26498
26499cat >>confdefs.h <<_ACEOF
26500#define DIRENT_TYPE $apr_cv_dirent_type
26501_ACEOF
26502
26503fi
26504
26505
26506echo "${nl}Checking for OS UUID Support..."
26507
26508for ac_header in uuid.h uuid/uuid.h sys/uuid.h
26509do :
26510  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26511ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26512if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26513  cat >>confdefs.h <<_ACEOF
26514#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26515_ACEOF
26516 break
26517fi
26518
26519done
26520
26521
26522apr_revert_save_LIBS=$LIBS
26523
26524# Prefer the flavor(s) that live in libc;
26525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
26526$as_echo_n "checking for library containing uuid_create... " >&6; }
26527if ${ac_cv_search_uuid_create+:} false; then :
26528  $as_echo_n "(cached) " >&6
26529else
26530  ac_func_search_save_LIBS=$LIBS
26531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26532/* end confdefs.h.  */
26533
26534/* Override any GCC internal prototype to avoid an error.
26535   Use char because int might match the return type of a GCC
26536   builtin and then its argument prototype would still apply.  */
26537#ifdef __cplusplus
26538extern "C"
26539#endif
26540char uuid_create ();
26541int
26542main ()
26543{
26544return uuid_create ();
26545  ;
26546  return 0;
26547}
26548_ACEOF
26549for ac_lib in '' uuid; do
26550  if test -z "$ac_lib"; then
26551    ac_res="none required"
26552  else
26553    ac_res=-l$ac_lib
26554    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26555  fi
26556  if ac_fn_c_try_link "$LINENO"; then :
26557  ac_cv_search_uuid_create=$ac_res
26558fi
26559rm -f core conftest.err conftest.$ac_objext \
26560    conftest$ac_exeext
26561  if ${ac_cv_search_uuid_create+:} false; then :
26562  break
26563fi
26564done
26565if ${ac_cv_search_uuid_create+:} false; then :
26566
26567else
26568  ac_cv_search_uuid_create=no
26569fi
26570rm conftest.$ac_ext
26571LIBS=$ac_func_search_save_LIBS
26572fi
26573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5
26574$as_echo "$ac_cv_search_uuid_create" >&6; }
26575ac_res=$ac_cv_search_uuid_create
26576if test "$ac_res" != no; then :
26577  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26578
26579fi
26580
26581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
26582$as_echo_n "checking for library containing uuid_generate... " >&6; }
26583if ${ac_cv_search_uuid_generate+:} false; then :
26584  $as_echo_n "(cached) " >&6
26585else
26586  ac_func_search_save_LIBS=$LIBS
26587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26588/* end confdefs.h.  */
26589
26590/* Override any GCC internal prototype to avoid an error.
26591   Use char because int might match the return type of a GCC
26592   builtin and then its argument prototype would still apply.  */
26593#ifdef __cplusplus
26594extern "C"
26595#endif
26596char uuid_generate ();
26597int
26598main ()
26599{
26600return uuid_generate ();
26601  ;
26602  return 0;
26603}
26604_ACEOF
26605for ac_lib in '' uuid; do
26606  if test -z "$ac_lib"; then
26607    ac_res="none required"
26608  else
26609    ac_res=-l$ac_lib
26610    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26611  fi
26612  if ac_fn_c_try_link "$LINENO"; then :
26613  ac_cv_search_uuid_generate=$ac_res
26614fi
26615rm -f core conftest.err conftest.$ac_objext \
26616    conftest$ac_exeext
26617  if ${ac_cv_search_uuid_generate+:} false; then :
26618  break
26619fi
26620done
26621if ${ac_cv_search_uuid_generate+:} false; then :
26622
26623else
26624  ac_cv_search_uuid_generate=no
26625fi
26626rm conftest.$ac_ext
26627LIBS=$ac_func_search_save_LIBS
26628fi
26629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
26630$as_echo "$ac_cv_search_uuid_generate" >&6; }
26631ac_res=$ac_cv_search_uuid_generate
26632if test "$ac_res" != no; then :
26633  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26634
26635fi
26636
26637if test "$ac_cv_search_uuid_create" = "none required" -o \
26638        "$ac_cv_search_uuid_generate" = "none required"; then
26639 LIBS=$apr_revert_save_LIBS
26640fi
26641
26642for ac_func in uuid_create uuid_generate
26643do :
26644  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26645ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26646if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26647  cat >>confdefs.h <<_ACEOF
26648#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26649_ACEOF
26650
26651fi
26652done
26653
26654
26655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for os uuid usability" >&5
26656$as_echo_n "checking for os uuid usability... " >&6; }
26657if ${apr_cv_osuuid+:} false; then :
26658  $as_echo_n "(cached) " >&6
26659else
26660
26661# Ensure this test closely mirrors misc/unix/rand.c!
26662uuid_includes="
26663#if defined(HAVE_SYS_TYPES_H)
26664#include <sys/types.h>
26665#endif
26666#if defined(HAVE_UNISTD_H)
26667#include <unistd.h>
26668#endif
26669#if defined(HAVE_UUID_H)
26670#include <uuid.h>
26671#elif defined(HAVE_UUID_UUID_H)
26672#include <uuid/uuid.h>
26673#elif defined(HAVE_SYS_UUID_H)
26674#include <sys/uuid.h>
26675#endif
26676"
26677 apr_cv_osuuid=no
26678 if test $ac_cv_func_uuid_create = yes; then
26679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26680/* end confdefs.h.  */
26681$uuid_includes
26682int
26683main ()
26684{
26685
26686    uuid_t g;
26687    uint32_t s;
26688    uuid_create(&g, &s);
26689    if (s == uuid_s_ok) s = 0;
26690
26691  ;
26692  return 0;
26693}
26694_ACEOF
26695if ac_fn_c_try_link "$LINENO"; then :
26696  apr_cv_osuuid=yes
26697else
26698  apr_cv_func_uuid_create=no
26699fi
26700rm -f core conftest.err conftest.$ac_objext \
26701    conftest$ac_exeext conftest.$ac_ext
26702 fi
26703 if test $ac_cv_func_uuid_generate = yes; then
26704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26705/* end confdefs.h.  */
26706$uuid_includes
26707int
26708main ()
26709{
26710
26711    uuid_t g;
26712    uuid_generate(g);
26713
26714  ;
26715  return 0;
26716}
26717_ACEOF
26718if ac_fn_c_try_link "$LINENO"; then :
26719  apr_cv_osuuid=yes
26720else
26721  apr_cv_func_uuid_generate=no
26722fi
26723rm -f core conftest.err conftest.$ac_objext \
26724    conftest$ac_exeext conftest.$ac_ext
26725 fi
26726
26727fi
26728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_osuuid" >&5
26729$as_echo "$apr_cv_osuuid" >&6; }
26730
26731if test $apr_cv_osuuid = yes; then
26732  osuuid="1"
26733else
26734  osuuid="0"
26735  LIBS=$apr_revert_save_LIBS
26736fi
26737
26738
26739
26740echo "${nl}Checking for Time Support..."
26741
26742ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "
26743#include <sys/types.h>
26744#include <time.h>
26745"
26746if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
26747
26748cat >>confdefs.h <<_ACEOF
26749#define HAVE_STRUCT_TM_TM_GMTOFF 1
26750_ACEOF
26751
26752
26753fi
26754ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "
26755#include <sys/types.h>
26756#include <time.h>
26757"
26758if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then :
26759
26760cat >>confdefs.h <<_ACEOF
26761#define HAVE_STRUCT_TM___TM_GMTOFF 1
26762_ACEOF
26763
26764
26765fi
26766
26767
26768echo "${nl}Checking for Networking support..."
26769
26770  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type in_addr" >&5
26771$as_echo_n "checking for type in_addr... " >&6; }
26772if ${ac_cv_type_in_addr+:} false; then :
26773  $as_echo_n "(cached) " >&6
26774else
26775
26776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26777/* end confdefs.h.  */
26778
26779#ifdef HAVE_SYS_TYPES_H
26780#include <sys/types.h>
26781#endif
26782#ifdef HAVE_NETINET_IN_H
26783#include <netinet/in.h>
26784#endif
26785#ifdef HAVE_WINSOCK2_H
26786#include <winsock2.h>
26787#endif
26788
26789int
26790main ()
26791{
26792
26793 struct in_addr arg;
26794 arg.s_addr = htonl(INADDR_ANY);
26795
26796  ;
26797  return 0;
26798}
26799_ACEOF
26800if ac_fn_c_try_compile "$LINENO"; then :
26801   ac_cv_type_in_addr="yes"
26802else
26803
26804ac_cv_type_in_addr="no"
26805fi
26806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26807
26808fi
26809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_in_addr" >&5
26810$as_echo "$ac_cv_type_in_addr" >&6; }
26811
26812if test "$ac_cv_type_in_addr" = "yes"; then
26813  have_in_addr="1"
26814else
26815  have_in_addr="0"
26816fi
26817
26818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fd == socket on this platform" >&5
26819$as_echo_n "checking if fd == socket on this platform... " >&6; }
26820if test "x$file_as_socket" != "x0" ; then
26821    file_as_socket="1";
26822    echo "yes"
26823else
26824    echo "no"
26825fi
26826
26827
26828
26829
26830if test "$ac_cv_func_poll $file_as_socket" = "yes 1"; then
26831
26832$as_echo "#define WAITIO_USES_POLL 1" >>confdefs.h
26833
26834fi
26835
26836# Check the types only if we have gethostbyname_r
26837if test "$ac_cv_func_gethostbyname_r" = "yes"; then
26838
26839
26840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking style of gethostbyname_r routine" >&5
26841$as_echo_n "checking style of gethostbyname_r routine... " >&6; }
26842if ${ac_cv_gethostbyname_r_style+:} false; then :
26843  $as_echo_n "(cached) " >&6
26844else
26845  apr_save_CFLAGS=$CFLAGS
26846 CFLAGS="$CFLAGS $CFLAGS_WARN"
26847 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26848   CFLAGS="$CFLAGS -Werror"
26849 fi
26850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26851/* end confdefs.h.  */
26852#include "confdefs.h"
26853
26854
26855#ifdef HAVE_SYS_TYPES_H
26856#include <sys/types.h>
26857#endif
26858#ifdef HAVE_NETINET_IN_H
26859#include <netinet/in.h>
26860#endif
26861#ifdef HAVE_ARPA_INET_H
26862#include <arpa/inet.h>
26863#endif
26864#ifdef HAVE_NETDB_H
26865#include <netdb.h>
26866#endif
26867#ifdef HAVE_STDLIB_H
26868#include <stdlib.h>
26869#endif
26870
26871   int main(int argc, const char *const *argv) {
26872
26873int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
26874                          (char *) 0, 0, (struct hostent **) 0, &tmp);
26875/* use tmp to suppress the warning */
26876tmp=0;
26877
26878      return 0; }
26879
26880_ACEOF
26881if ac_fn_c_try_compile "$LINENO"; then :
26882  ac_cv_gethostbyname_r_style=glibc2
26883else
26884  ac_cv_gethostbyname_r_style=none
26885fi
26886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26887 CFLAGS=$apr_save_CFLAGS
26888
26889fi
26890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_style" >&5
26891$as_echo "$ac_cv_gethostbyname_r_style" >&6; }
26892
26893if test "$ac_cv_gethostbyname_r_style" = "glibc2"; then
26894
26895$as_echo "#define GETHOSTBYNAME_R_GLIBC2 1" >>confdefs.h
26896
26897fi
26898
26899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking 3rd argument to the gethostbyname_r routines" >&5
26900$as_echo_n "checking 3rd argument to the gethostbyname_r routines... " >&6; }
26901if ${ac_cv_gethostbyname_r_arg+:} false; then :
26902  $as_echo_n "(cached) " >&6
26903else
26904  apr_save_CFLAGS=$CFLAGS
26905 CFLAGS="$CFLAGS $CFLAGS_WARN"
26906 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26907   CFLAGS="$CFLAGS -Werror"
26908 fi
26909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26910/* end confdefs.h.  */
26911#include "confdefs.h"
26912
26913
26914#ifdef HAVE_SYS_TYPES_H
26915#include <sys/types.h>
26916#endif
26917#ifdef HAVE_NETINET_IN_H
26918#include <netinet/in.h>
26919#endif
26920#ifdef HAVE_ARPA_INET_H
26921#include <arpa/inet.h>
26922#endif
26923#ifdef HAVE_NETDB_H
26924#include <netdb.h>
26925#endif
26926#ifdef HAVE_STDLIB_H
26927#include <stdlib.h>
26928#endif
26929
26930   int main(int argc, const char *const *argv) {
26931
26932int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
26933                          (struct hostent_data *) 0);
26934/* use tmp to suppress the warning */
26935tmp=0;
26936
26937      return 0; }
26938
26939_ACEOF
26940if ac_fn_c_try_compile "$LINENO"; then :
26941  ac_cv_gethostbyname_r_arg=hostent_data
26942else
26943  ac_cv_gethostbyname_r_arg=char
26944fi
26945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26946 CFLAGS=$apr_save_CFLAGS
26947
26948fi
26949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_arg" >&5
26950$as_echo "$ac_cv_gethostbyname_r_arg" >&6; }
26951
26952if test "$ac_cv_gethostbyname_r_arg" = "hostent_data"; then
26953
26954$as_echo "#define GETHOSTBYNAME_R_HOSTENT_DATA 1" >>confdefs.h
26955
26956fi
26957
26958fi
26959
26960# Check the types only if we have getservbyname_r
26961if test "$ac_cv_func_getservbyname_r" = "yes"; then
26962
26963
26964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking style of getservbyname_r routine" >&5
26965$as_echo_n "checking style of getservbyname_r routine... " >&6; }
26966if ${ac_cv_getservbyname_r_style+:} false; then :
26967  $as_echo_n "(cached) " >&6
26968else
26969
26970apr_save_CFLAGS=$CFLAGS
26971 CFLAGS="$CFLAGS $CFLAGS_WARN"
26972 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26973   CFLAGS="$CFLAGS -Werror"
26974 fi
26975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26976/* end confdefs.h.  */
26977#include "confdefs.h"
26978
26979
26980#ifdef HAVE_SYS_TYPES_H
26981#include <sys/types.h>
26982#endif
26983#ifdef HAVE_NETINET_IN_H
26984#include <netinet/in.h>
26985#endif
26986#ifdef HAVE_ARPA_INET_H
26987#include <arpa/inet.h>
26988#endif
26989#ifdef HAVE_NETDB_H
26990#include <netdb.h>
26991#endif
26992#ifdef HAVE_STDLIB_H
26993#include <stdlib.h>
26994#endif
26995
26996   int main(int argc, const char *const *argv) {
26997
26998int tmp = getservbyname_r((const char *) 0, (const char *) 0,
26999                          (struct servent *) 0, (char *) 0, 0,
27000                          (struct servent **) 0);
27001/* use tmp to suppress the warning */
27002tmp=0;
27003
27004      return 0; }
27005
27006_ACEOF
27007if ac_fn_c_try_compile "$LINENO"; then :
27008  ac_cv_getservbyname_r_style=glibc2
27009else
27010  ac_cv_getservbyname_r_style=none
27011fi
27012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27013 CFLAGS=$apr_save_CFLAGS
27014
27015
27016if test "$ac_cv_getservbyname_r_style" = "none"; then
27017            apr_save_CFLAGS=$CFLAGS
27018 CFLAGS="$CFLAGS $CFLAGS_WARN"
27019 if test "$ac_cv_c_compiler_gnu" = "yes"; then
27020   CFLAGS="$CFLAGS -Werror"
27021 fi
27022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27023/* end confdefs.h.  */
27024#include "confdefs.h"
27025
27026
27027    #ifdef HAVE_SYS_TYPES_H
27028    #include <sys/types.h>
27029    #endif
27030    #ifdef HAVE_NETINET_IN_H
27031    #include <netinet/in.h>
27032    #endif
27033    #ifdef HAVE_ARPA_INET_H
27034    #include <arpa/inet.h>
27035    #endif
27036    #ifdef HAVE_NETDB_H
27037    #include <netdb.h>
27038    #endif
27039    #ifdef HAVE_STDLIB_H
27040    #include <stdlib.h>
27041    #endif
27042
27043   int main(int argc, const char *const *argv) {
27044
27045    struct servent *tmp = getservbyname_r((const char *) 0, (const char *) 0,
27046                                          (struct servent *) 0, (char *) 0, 0);
27047    /* use tmp to suppress the warning */
27048    tmp=NULL;
27049
27050      return 0; }
27051
27052_ACEOF
27053if ac_fn_c_try_compile "$LINENO"; then :
27054  ac_cv_getservbyname_r_style=solaris
27055else
27056  ac_cv_getservbyname_r_style=none
27057fi
27058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27059 CFLAGS=$apr_save_CFLAGS
27060
27061fi
27062
27063if test "$ac_cv_getservbyname_r_style" = "none"; then
27064            apr_save_CFLAGS=$CFLAGS
27065 CFLAGS="$CFLAGS $CFLAGS_WARN"
27066 if test "$ac_cv_c_compiler_gnu" = "yes"; then
27067   CFLAGS="$CFLAGS -Werror"
27068 fi
27069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27070/* end confdefs.h.  */
27071#include "confdefs.h"
27072
27073
27074    #ifdef HAVE_SYS_TYPES_H
27075    #include <sys/types.h>
27076    #endif
27077    #ifdef HAVE_NETINET_IN_H
27078    #include <netinet/in.h>
27079    #endif
27080    #ifdef HAVE_ARPA_INET_H
27081    #include <arpa/inet.h>
27082    #endif
27083    #ifdef HAVE_NETDB_H
27084    #include <netdb.h>
27085    #endif
27086    #ifdef HAVE_STDLIB_H
27087    #include <stdlib.h>
27088    #endif
27089
27090   int main(int argc, const char *const *argv) {
27091
27092    int tmp = getservbyname_r((const char *) 0, (const char *) 0,
27093                              (struct servent *) 0, (struct servent_data *) 0);
27094    /* use tmp to suppress the warning */
27095    tmp=0;
27096
27097      return 0; }
27098
27099_ACEOF
27100if ac_fn_c_try_compile "$LINENO"; then :
27101  ac_cv_getservbyname_r_style=osf1
27102else
27103  ac_cv_getservbyname_r_style=none
27104fi
27105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27106 CFLAGS=$apr_save_CFLAGS
27107
27108fi
27109
27110fi
27111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_getservbyname_r_style" >&5
27112$as_echo "$ac_cv_getservbyname_r_style" >&6; }
27113
27114if test "$ac_cv_getservbyname_r_style" = "glibc2"; then
27115
27116$as_echo "#define GETSERVBYNAME_R_GLIBC2 1" >>confdefs.h
27117
27118elif test "$ac_cv_getservbyname_r_style" = "solaris"; then
27119
27120$as_echo "#define GETSERVBYNAME_R_SOLARIS 1" >>confdefs.h
27121
27122elif test "$ac_cv_getservbyname_r_style" = "osf1"; then
27123
27124$as_echo "#define GETSERVBYNAME_R_OSF1 1" >>confdefs.h
27125
27126fi
27127
27128fi
27129
27130
27131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TCP_NODELAY setting is inherited from listening sockets" >&5
27132$as_echo_n "checking if TCP_NODELAY setting is inherited from listening sockets... " >&6; }
27133if ${ac_cv_tcp_nodelay_inherited+:} false; then :
27134  $as_echo_n "(cached) " >&6
27135else
27136
27137  if test "$cross_compiling" = yes; then :
27138
27139    ac_cv_tcp_nodelay_inherited="yes"
27140
27141else
27142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27143/* end confdefs.h.  */
27144
27145#include <stdio.h>
27146#ifdef HAVE_SYS_TYPES_H
27147#include <sys/types.h>
27148#endif
27149#ifdef HAVE_SYS_SOCKET_H
27150#include <sys/socket.h>
27151#endif
27152#ifdef HAVE_NETINET_IN_H
27153#include <netinet/in.h>
27154#endif
27155#ifdef HAVE_NETINET_TCP_H
27156#include <netinet/tcp.h>
27157#endif
27158#ifndef HAVE_SOCKLEN_T
27159typedef int socklen_t;
27160#endif
27161int main(void) {
27162    int listen_s, connected_s, client_s;
27163    int listen_port, rc;
27164    struct sockaddr_in sa;
27165    socklen_t sa_len;
27166    socklen_t option_len;
27167    int option;
27168
27169    listen_s = socket(AF_INET, SOCK_STREAM, 0);
27170    if (listen_s < 0) {
27171        perror("socket");
27172        exit(1);
27173    }
27174    option = 1;
27175    rc = setsockopt(listen_s, IPPROTO_TCP, TCP_NODELAY, &option, sizeof option);
27176    if (rc < 0) {
27177        perror("setsockopt TCP_NODELAY");
27178        exit(1);
27179    }
27180    memset(&sa, 0, sizeof sa);
27181    sa.sin_family = AF_INET;
27182#ifdef BEOS
27183    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27184#endif
27185    /* leave port 0 to get ephemeral */
27186    rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
27187    if (rc < 0) {
27188        perror("bind for ephemeral port");
27189        exit(1);
27190    }
27191    /* find ephemeral port */
27192    sa_len = sizeof(sa);
27193    rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
27194    if (rc < 0) {
27195        perror("getsockname");
27196        exit(1);
27197    }
27198    listen_port = sa.sin_port;
27199    rc = listen(listen_s, 5);
27200    if (rc < 0) {
27201        perror("listen");
27202        exit(1);
27203    }
27204    client_s = socket(AF_INET, SOCK_STREAM, 0);
27205    if (client_s < 0) {
27206        perror("socket");
27207        exit(1);
27208    }
27209    memset(&sa, 0, sizeof sa);
27210    sa.sin_family = AF_INET;
27211    sa.sin_port   = listen_port;
27212#ifdef BEOS
27213    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27214#endif
27215    /* leave sin_addr all zeros to use loopback */
27216    rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
27217    if (rc < 0) {
27218        perror("connect");
27219        exit(1);
27220    }
27221    sa_len = sizeof sa;
27222    connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
27223    if (connected_s < 0) {
27224        perror("accept");
27225        exit(1);
27226    }
27227    option_len = sizeof option;
27228    rc = getsockopt(connected_s, IPPROTO_TCP, TCP_NODELAY, &option, &option_len);
27229    if (rc < 0) {
27230        perror("getsockopt");
27231        exit(1);
27232    }
27233    if (!option) {
27234        fprintf(stderr, "TCP_NODELAY is not set in the child.\n");
27235        exit(1);
27236    }
27237    return 0;
27238}
27239
27240_ACEOF
27241if ac_fn_c_try_run "$LINENO"; then :
27242
27243    ac_cv_tcp_nodelay_inherited="yes"
27244
27245else
27246
27247    ac_cv_tcp_nodelay_inherited="no"
27248
27249fi
27250rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27251  conftest.$ac_objext conftest.beam conftest.$ac_ext
27252fi
27253
27254fi
27255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tcp_nodelay_inherited" >&5
27256$as_echo "$ac_cv_tcp_nodelay_inherited" >&6; }
27257if test "$ac_cv_tcp_nodelay_inherited" = "yes"; then
27258    tcp_nodelay_inherited=1
27259else
27260    tcp_nodelay_inherited=0
27261fi
27262
27263
27264  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if O_NONBLOCK setting is inherited from listening sockets" >&5
27265$as_echo_n "checking if O_NONBLOCK setting is inherited from listening sockets... " >&6; }
27266if ${ac_cv_o_nonblock_inherited+:} false; then :
27267  $as_echo_n "(cached) " >&6
27268else
27269
27270  if test "$cross_compiling" = yes; then :
27271
27272    ac_cv_o_nonblock_inherited="yes"
27273
27274else
27275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27276/* end confdefs.h.  */
27277
27278#ifdef HAVE_STDLIB_H
27279#include <stdlib.h>
27280#endif
27281#ifdef HAVE_STRING_H
27282#include <string.h>
27283#endif
27284#ifdef HAVE_STDIO_H
27285#include <stdio.h>
27286#endif
27287#ifdef HAVE_SYS_TYPES_H
27288#include <sys/types.h>
27289#endif
27290#ifdef HAVE_SYS_SOCKET_H
27291#include <sys/socket.h>
27292#endif
27293#ifdef HAVE_SYS_TIME_H
27294#include <sys/time.h>
27295#endif
27296#ifdef HAVE_SYS_SELECT_H
27297#include <sys/select.h>
27298#endif
27299#ifdef HAVE_NETINET_IN_H
27300#include <netinet/in.h>
27301#endif
27302#ifdef HAVE_NETINET_TCP_H
27303#include <netinet/tcp.h>
27304#endif
27305#ifndef HAVE_SOCKLEN_T
27306typedef int socklen_t;
27307#endif
27308#ifdef HAVE_FCNTL_H
27309#include <fcntl.h>
27310#endif
27311int main(void) {
27312    int listen_s, connected_s, client_s;
27313    int listen_port, rc;
27314    struct sockaddr_in sa;
27315    socklen_t sa_len;
27316    fd_set fds;
27317    struct timeval tv;
27318
27319    listen_s = socket(AF_INET, SOCK_STREAM, 0);
27320    if (listen_s < 0) {
27321        perror("socket");
27322        exit(1);
27323    }
27324    memset(&sa, 0, sizeof sa);
27325    sa.sin_family = AF_INET;
27326#ifdef BEOS
27327    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27328#endif
27329    /* leave port 0 to get ephemeral */
27330    rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
27331    if (rc < 0) {
27332        perror("bind for ephemeral port");
27333        exit(1);
27334    }
27335    /* find ephemeral port */
27336    sa_len = sizeof(sa);
27337    rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
27338    if (rc < 0) {
27339        perror("getsockname");
27340        exit(1);
27341    }
27342    listen_port = sa.sin_port;
27343    rc = listen(listen_s, 5);
27344    if (rc < 0) {
27345        perror("listen");
27346        exit(1);
27347    }
27348    rc = fcntl(listen_s, F_SETFL, O_NONBLOCK);
27349    if (rc < 0) {
27350        perror("fcntl(F_SETFL)");
27351        exit(1);
27352    }
27353    client_s = socket(AF_INET, SOCK_STREAM, 0);
27354    if (client_s < 0) {
27355        perror("socket");
27356        exit(1);
27357    }
27358    memset(&sa, 0, sizeof sa);
27359    sa.sin_family = AF_INET;
27360    sa.sin_port   = listen_port;
27361#ifdef BEOS
27362    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27363#endif
27364    /* leave sin_addr all zeros to use loopback */
27365    rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
27366    if (rc < 0) {
27367        perror("connect");
27368        exit(1);
27369    }
27370    sa_len = sizeof sa;
27371    /* 1 second select timeout */
27372    tv.tv_sec = 1;
27373    tv.tv_usec = 0;
27374    /* Set up fd set */
27375    FD_ZERO(&fds);
27376    FD_SET(listen_s, &fds);
27377    /* Wait for socket to become readable */
27378    rc = select(listen_s + 1, &fds, NULL, NULL, &tv);
27379    if (rc < 0) {
27380        perror("select");
27381        exit(1);
27382    }
27383    if (rc == 0) {
27384        fprintf(stderr, "Socket failed to become readable (timeout)\n");
27385        exit(1);
27386    }
27387    if (!FD_ISSET(listen_s, &fds)) {
27388        fprintf(stderr, "Socket failed to become readable (selected another fd)\n");
27389        exit(1);
27390    }
27391    connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
27392    if (connected_s < 0) {
27393        perror("accept");
27394        exit(1);
27395    }
27396    rc = fcntl(connected_s, F_GETFL, 0);
27397    if (rc < 0) {
27398        perror("fcntl(F_GETFL)");
27399        exit(1);
27400    }
27401    if (!(rc & O_NONBLOCK)) {
27402        fprintf(stderr, "O_NONBLOCK is not set in the child.\n");
27403        exit(1);
27404    }
27405    return 0;
27406}
27407
27408_ACEOF
27409if ac_fn_c_try_run "$LINENO"; then :
27410
27411    ac_cv_o_nonblock_inherited="yes"
27412
27413else
27414
27415    ac_cv_o_nonblock_inherited="no"
27416
27417fi
27418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27419  conftest.$ac_objext conftest.beam conftest.$ac_ext
27420fi
27421
27422fi
27423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_nonblock_inherited" >&5
27424$as_echo "$ac_cv_o_nonblock_inherited" >&6; }
27425if test "$ac_cv_o_nonblock_inherited" = "yes"; then
27426    o_nonblock_inherited=1
27427else
27428    o_nonblock_inherited=0
27429fi
27430
27431
27432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCP_NODELAY and TCP_CORK can both be enabled" >&5
27433$as_echo_n "checking whether TCP_NODELAY and TCP_CORK can both be enabled... " >&6; }
27434if ${apr_cv_tcp_nodelay_with_cork+:} false; then :
27435  $as_echo_n "(cached) " >&6
27436else
27437  if test "$cross_compiling" = yes; then :
27438  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27440as_fn_error $? "cannot run test program while cross compiling
27441See \`config.log' for more details" "$LINENO" 5; }
27442else
27443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27444/* end confdefs.h.  */
27445
27446#ifdef HAVE_SYS_TYPES_H
27447#include <sys/types.h>
27448#endif
27449#ifdef HAVE_SYS_SOCKET_H
27450#include <sys/socket.h>
27451#endif
27452#ifdef HAVE_NETINET_IN_H
27453#include <netinet/in.h>
27454#endif
27455#ifdef HAVE_NETINET_TCP_H
27456#include <netinet/tcp.h>
27457#endif
27458#include <stdio.h>
27459#include <stdlib.h>
27460
27461int
27462main ()
27463{
27464
27465    int fd, flag, rc;
27466
27467    fd = socket(AF_INET, SOCK_STREAM, 0);
27468    if (fd < 0) {
27469       exit(1);
27470    }
27471
27472    flag = 1;
27473    rc = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &flag, sizeof flag);
27474    if (rc < 0) {
27475        perror("setsockopt TCP_NODELAY");
27476        exit(2);
27477    }
27478
27479    flag = 1;
27480    rc = setsockopt(fd, IPPROTO_TCP, TCP_CORK, &flag, sizeof flag);
27481    if (rc < 0) {
27482        perror("setsockopt TCP_CORK");
27483        exit(3);
27484    }
27485
27486    exit(0);
27487
27488  ;
27489  return 0;
27490}
27491_ACEOF
27492if ac_fn_c_try_run "$LINENO"; then :
27493  apr_cv_tcp_nodelay_with_cork=yes
27494else
27495  apr_cv_tcp_nodelay_with_cork=no
27496fi
27497rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27498  conftest.$ac_objext conftest.beam conftest.$ac_ext
27499fi
27500
27501fi
27502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_tcp_nodelay_with_cork" >&5
27503$as_echo "$apr_cv_tcp_nodelay_with_cork" >&6; }
27504
27505if test "$apr_cv_tcp_nodelay_with_cork" = "yes"; then
27506
27507$as_echo "#define HAVE_TCP_NODELAY_WITH_CORK 1" >>confdefs.h
27508
27509fi
27510
27511
27512# Look for a way of corking TCP...
27513
27514  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_CORK in netinet/tcp.h" >&5
27515$as_echo_n "checking for TCP_CORK in netinet/tcp.h... " >&6; }
27516if ${ac_cv_define_TCP_CORK+:} false; then :
27517  $as_echo_n "(cached) " >&6
27518else
27519
27520    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27521/* end confdefs.h.  */
27522
27523#include <netinet/tcp.h>
27524#ifdef TCP_CORK
27525YES_IS_DEFINED
27526#endif
27527
27528_ACEOF
27529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27530  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
27531  ac_cv_define_TCP_CORK=yes
27532else
27533  ac_cv_define_TCP_CORK=no
27534fi
27535rm -f conftest*
27536
27537
27538fi
27539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_CORK" >&5
27540$as_echo "$ac_cv_define_TCP_CORK" >&6; }
27541  if test "$ac_cv_define_TCP_CORK" = "yes"; then
27542
27543$as_echo "#define HAVE_TCP_CORK 1" >>confdefs.h
27544
27545  fi
27546
27547
27548  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_NOPUSH in netinet/tcp.h" >&5
27549$as_echo_n "checking for TCP_NOPUSH in netinet/tcp.h... " >&6; }
27550if ${ac_cv_define_TCP_NOPUSH+:} false; then :
27551  $as_echo_n "(cached) " >&6
27552else
27553
27554    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27555/* end confdefs.h.  */
27556
27557#include <netinet/tcp.h>
27558#ifdef TCP_NOPUSH
27559YES_IS_DEFINED
27560#endif
27561
27562_ACEOF
27563if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27564  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
27565  ac_cv_define_TCP_NOPUSH=yes
27566else
27567  ac_cv_define_TCP_NOPUSH=no
27568fi
27569rm -f conftest*
27570
27571
27572fi
27573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_NOPUSH" >&5
27574$as_echo "$ac_cv_define_TCP_NOPUSH" >&6; }
27575  if test "$ac_cv_define_TCP_NOPUSH" = "yes"; then
27576
27577$as_echo "#define HAVE_TCP_NOPUSH 1" >>confdefs.h
27578
27579  fi
27580
27581apr_tcp_nopush_flag="0"
27582have_corkable_tcp="0"
27583if test "x$ac_cv_define_TCP_CORK" = "xyes"; then
27584    apr_tcp_nopush_flag="TCP_CORK"
27585    have_corkable_tcp="1"
27586else
27587    case $host in
27588        *linux*)
27589            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27590/* end confdefs.h.  */
27591
27592#include <linux/socket.h>
27593#ifdef TCP_CORK
27594yes
27595#endif
27596
27597_ACEOF
27598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27599  $EGREP "yes" >/dev/null 2>&1; then :
27600
27601                apr_tcp_nopush_flag="3"
27602                have_corkable_tcp="1"
27603
27604fi
27605rm -f conftest*
27606
27607            ;;
27608        *)
27609            ;;
27610    esac
27611fi
27612if test "x$ac_cv_define_TCP_NOPUSH" = "xyes"; then
27613    apr_tcp_nopush_flag="TCP_NOPUSH"
27614    have_corkable_tcp="1"
27615fi
27616
27617
27618  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_ACCEPTFILTER in sys/socket.h" >&5
27619$as_echo_n "checking for SO_ACCEPTFILTER in sys/socket.h... " >&6; }
27620if ${ac_cv_define_SO_ACCEPTFILTER+:} false; then :
27621  $as_echo_n "(cached) " >&6
27622else
27623
27624    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27625/* end confdefs.h.  */
27626
27627#include <sys/socket.h>
27628#ifdef SO_ACCEPTFILTER
27629YES_IS_DEFINED
27630#endif
27631
27632_ACEOF
27633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27634  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
27635  ac_cv_define_SO_ACCEPTFILTER=yes
27636else
27637  ac_cv_define_SO_ACCEPTFILTER=no
27638fi
27639rm -f conftest*
27640
27641
27642fi
27643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SO_ACCEPTFILTER" >&5
27644$as_echo "$ac_cv_define_SO_ACCEPTFILTER" >&6; }
27645  if test "$ac_cv_define_SO_ACCEPTFILTER" = "yes"; then
27646
27647$as_echo "#define HAVE_SO_ACCEPTFILTER 1" >>confdefs.h
27648
27649  fi
27650
27651if test "x$ac_cv_define_SO_ACCEPTFILTER" = "xyes"; then
27652    acceptfilter="1"
27653else
27654    acceptfilter="0"
27655fi
27656
27657
27658  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SCTP is supported" >&5
27659$as_echo_n "checking whether SCTP is supported... " >&6; }
27660if ${apr_cv_sctp+:} false; then :
27661  $as_echo_n "(cached) " >&6
27662else
27663
27664  if test "$cross_compiling" = yes; then :
27665  apr_cv_sctp=no
27666else
27667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27668/* end confdefs.h.  */
27669
27670#ifdef HAVE_SYS_TYPES_H
27671#include <sys/types.h>
27672#endif
27673#ifdef HAVE_SYS_SOCKET_H
27674#include <sys/socket.h>
27675#endif
27676#ifdef HAVE_NETINET_IN_H
27677#include <netinet/in.h>
27678#endif
27679#ifdef HAVE_NETINET_SCTP_H
27680#include <netinet/sctp.h>
27681#endif
27682#ifdef HAVE_NETINET_SCTP_UIO_H
27683#include <netinet/sctp_uio.h>
27684#endif
27685#include <stdlib.h>
27686int main(void) {
27687    int s, opt = 1;
27688    if ((s = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP)) < 0)
27689       exit(1);
27690    if (setsockopt(s, IPPROTO_SCTP, SCTP_NODELAY, &opt, sizeof(int)) < 0)
27691       exit(2);
27692    exit(0);
27693}
27694_ACEOF
27695if ac_fn_c_try_run "$LINENO"; then :
27696  apr_cv_sctp=yes
27697else
27698  apr_cv_sctp=no
27699fi
27700rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27701  conftest.$ac_objext conftest.beam conftest.$ac_ext
27702fi
27703
27704fi
27705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sctp" >&5
27706$as_echo "$apr_cv_sctp" >&6; }
27707
27708if test "$apr_cv_sctp" = "yes"; then
27709    have_sctp=1
27710else
27711    have_sctp=0
27712fi
27713
27714
27715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip_mreq" >&5
27716$as_echo_n "checking for struct ip_mreq... " >&6; }
27717if ${apr_cv_struct_ipmreq+:} false; then :
27718  $as_echo_n "(cached) " >&6
27719else
27720
27721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27722/* end confdefs.h.  */
27723
27724#include <sys/types.h>
27725#include <netinet/in.h>
27726
27727int
27728main ()
27729{
27730
27731    struct ip_mreq mip;
27732    mip.imr_interface.s_addr = INADDR_ANY;
27733
27734  ;
27735  return 0;
27736}
27737_ACEOF
27738if ac_fn_c_try_compile "$LINENO"; then :
27739  apr_cv_struct_ipmreq=yes
27740else
27741  apr_cv_struct_ipmreq=no
27742fi
27743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27744fi
27745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_struct_ipmreq" >&5
27746$as_echo "$apr_cv_struct_ipmreq" >&6; }
27747
27748if test $apr_cv_struct_ipmreq = yes; then
27749
27750$as_echo "#define HAVE_STRUCT_IPMREQ 1" >>confdefs.h
27751
27752fi
27753
27754
27755
27756
27757
27758
27759
27760for ac_func in set_h_errno
27761do :
27762  ac_fn_c_check_func "$LINENO" "set_h_errno" "ac_cv_func_set_h_errno"
27763if test "x$ac_cv_func_set_h_errno" = xyes; then :
27764  cat >>confdefs.h <<_ACEOF
27765#define HAVE_SET_H_ERRNO 1
27766_ACEOF
27767
27768fi
27769done
27770
27771
27772echo "${nl}Checking for IPv6 Networking support..."
27773
27774# Check whether --enable-ipv6 was given.
27775if test "${enable_ipv6+set}" = set; then :
27776  enableval=$enable_ipv6;  if test "$enableval" = "no"; then
27777        user_disabled_ipv6=1
27778    fi
27779else
27780   user_disabled_ipv6=0
27781fi
27782
27783
27784case $host in
27785  *)
27786    broken_ipv6=0
27787esac
27788
27789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
27790$as_echo_n "checking for library containing getaddrinfo... " >&6; }
27791if ${ac_cv_search_getaddrinfo+:} false; then :
27792  $as_echo_n "(cached) " >&6
27793else
27794  ac_func_search_save_LIBS=$LIBS
27795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27796/* end confdefs.h.  */
27797
27798/* Override any GCC internal prototype to avoid an error.
27799   Use char because int might match the return type of a GCC
27800   builtin and then its argument prototype would still apply.  */
27801#ifdef __cplusplus
27802extern "C"
27803#endif
27804char getaddrinfo ();
27805int
27806main ()
27807{
27808return getaddrinfo ();
27809  ;
27810  return 0;
27811}
27812_ACEOF
27813for ac_lib in '' socket inet6; do
27814  if test -z "$ac_lib"; then
27815    ac_res="none required"
27816  else
27817    ac_res=-l$ac_lib
27818    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27819  fi
27820  if ac_fn_c_try_link "$LINENO"; then :
27821  ac_cv_search_getaddrinfo=$ac_res
27822fi
27823rm -f core conftest.err conftest.$ac_objext \
27824    conftest$ac_exeext
27825  if ${ac_cv_search_getaddrinfo+:} false; then :
27826  break
27827fi
27828done
27829if ${ac_cv_search_getaddrinfo+:} false; then :
27830
27831else
27832  ac_cv_search_getaddrinfo=no
27833fi
27834rm conftest.$ac_ext
27835LIBS=$ac_func_search_save_LIBS
27836fi
27837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
27838$as_echo "$ac_cv_search_getaddrinfo" >&6; }
27839ac_res=$ac_cv_search_getaddrinfo
27840if test "$ac_res" != no; then :
27841  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27842
27843fi
27844
27845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gai_strerror" >&5
27846$as_echo_n "checking for library containing gai_strerror... " >&6; }
27847if ${ac_cv_search_gai_strerror+:} false; then :
27848  $as_echo_n "(cached) " >&6
27849else
27850  ac_func_search_save_LIBS=$LIBS
27851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27852/* end confdefs.h.  */
27853
27854/* Override any GCC internal prototype to avoid an error.
27855   Use char because int might match the return type of a GCC
27856   builtin and then its argument prototype would still apply.  */
27857#ifdef __cplusplus
27858extern "C"
27859#endif
27860char gai_strerror ();
27861int
27862main ()
27863{
27864return gai_strerror ();
27865  ;
27866  return 0;
27867}
27868_ACEOF
27869for ac_lib in '' socket inet6; do
27870  if test -z "$ac_lib"; then
27871    ac_res="none required"
27872  else
27873    ac_res=-l$ac_lib
27874    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27875  fi
27876  if ac_fn_c_try_link "$LINENO"; then :
27877  ac_cv_search_gai_strerror=$ac_res
27878fi
27879rm -f core conftest.err conftest.$ac_objext \
27880    conftest$ac_exeext
27881  if ${ac_cv_search_gai_strerror+:} false; then :
27882  break
27883fi
27884done
27885if ${ac_cv_search_gai_strerror+:} false; then :
27886
27887else
27888  ac_cv_search_gai_strerror=no
27889fi
27890rm conftest.$ac_ext
27891LIBS=$ac_func_search_save_LIBS
27892fi
27893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gai_strerror" >&5
27894$as_echo "$ac_cv_search_gai_strerror" >&6; }
27895ac_res=$ac_cv_search_gai_strerror
27896if test "$ac_res" != no; then :
27897  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27898
27899fi
27900
27901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
27902$as_echo_n "checking for library containing getnameinfo... " >&6; }
27903if ${ac_cv_search_getnameinfo+:} false; then :
27904  $as_echo_n "(cached) " >&6
27905else
27906  ac_func_search_save_LIBS=$LIBS
27907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27908/* end confdefs.h.  */
27909
27910/* Override any GCC internal prototype to avoid an error.
27911   Use char because int might match the return type of a GCC
27912   builtin and then its argument prototype would still apply.  */
27913#ifdef __cplusplus
27914extern "C"
27915#endif
27916char getnameinfo ();
27917int
27918main ()
27919{
27920return getnameinfo ();
27921  ;
27922  return 0;
27923}
27924_ACEOF
27925for ac_lib in '' socket inet6; do
27926  if test -z "$ac_lib"; then
27927    ac_res="none required"
27928  else
27929    ac_res=-l$ac_lib
27930    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27931  fi
27932  if ac_fn_c_try_link "$LINENO"; then :
27933  ac_cv_search_getnameinfo=$ac_res
27934fi
27935rm -f core conftest.err conftest.$ac_objext \
27936    conftest$ac_exeext
27937  if ${ac_cv_search_getnameinfo+:} false; then :
27938  break
27939fi
27940done
27941if ${ac_cv_search_getnameinfo+:} false; then :
27942
27943else
27944  ac_cv_search_getnameinfo=no
27945fi
27946rm conftest.$ac_ext
27947LIBS=$ac_func_search_save_LIBS
27948fi
27949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
27950$as_echo "$ac_cv_search_getnameinfo" >&6; }
27951ac_res=$ac_cv_search_getnameinfo
27952if test "$ac_res" != no; then :
27953  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27954
27955fi
27956
27957for ac_func in gai_strerror
27958do :
27959  ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
27960if test "x$ac_cv_func_gai_strerror" = xyes; then :
27961  cat >>confdefs.h <<_ACEOF
27962#define HAVE_GAI_STRERROR 1
27963_ACEOF
27964
27965fi
27966done
27967
27968
27969  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
27970$as_echo_n "checking for working getaddrinfo... " >&6; }
27971if ${ac_cv_working_getaddrinfo+:} false; then :
27972  $as_echo_n "(cached) " >&6
27973else
27974
27975  if test "$cross_compiling" = yes; then :
27976
27977  ac_cv_working_getaddrinfo="yes"
27978
27979else
27980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27981/* end confdefs.h.  */
27982
27983#ifdef HAVE_NETDB_H
27984#include <netdb.h>
27985#endif
27986#ifdef HAVE_STRING_H
27987#include <string.h>
27988#endif
27989#ifdef HAVE_SYS_TYPES_H
27990#include <sys/types.h>
27991#endif
27992#ifdef HAVE_SYS_SOCKET_H
27993#include <sys/socket.h>
27994#endif
27995
27996int main(void) {
27997    struct addrinfo hints, *ai;
27998    int error;
27999
28000    memset(&hints, 0, sizeof(hints));
28001    hints.ai_family = AF_UNSPEC;
28002    hints.ai_socktype = SOCK_STREAM;
28003    error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28004    if (error) {
28005        exit(1);
28006    }
28007    if (ai->ai_addr->sa_family != AF_INET) {
28008        exit(1);
28009    }
28010    exit(0);
28011}
28012
28013_ACEOF
28014if ac_fn_c_try_run "$LINENO"; then :
28015
28016  ac_cv_working_getaddrinfo="yes"
28017
28018else
28019
28020  ac_cv_working_getaddrinfo="no"
28021
28022fi
28023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28024  conftest.$ac_objext conftest.beam conftest.$ac_ext
28025fi
28026
28027fi
28028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28029$as_echo "$ac_cv_working_getaddrinfo" >&6; }
28030if test "$ac_cv_working_getaddrinfo" = "yes"; then
28031  if test "$ac_cv_func_gai_strerror" != "yes"; then
28032    ac_cv_working_getaddrinfo="no"
28033  else
28034
28035$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28036
28037  fi
28038fi
28039
28040
28041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for negative error codes for getaddrinfo" >&5
28042$as_echo_n "checking for negative error codes for getaddrinfo... " >&6; }
28043if ${ac_cv_negative_eai+:} false; then :
28044  $as_echo_n "(cached) " >&6
28045else
28046
28047  if test "$cross_compiling" = yes; then :
28048
28049  ac_cv_negative_eai="no"
28050
28051else
28052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28053/* end confdefs.h.  */
28054
28055#ifdef HAVE_NETDB_H
28056#include <netdb.h>
28057#endif
28058
28059int main(void) {
28060    if (EAI_ADDRFAMILY < 0) {
28061        exit(0);
28062    }
28063    exit(1);
28064}
28065
28066_ACEOF
28067if ac_fn_c_try_run "$LINENO"; then :
28068
28069  ac_cv_negative_eai="yes"
28070
28071else
28072
28073  ac_cv_negative_eai="no"
28074
28075fi
28076rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28077  conftest.$ac_objext conftest.beam conftest.$ac_ext
28078fi
28079
28080fi
28081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_negative_eai" >&5
28082$as_echo "$ac_cv_negative_eai" >&6; }
28083if test "$ac_cv_negative_eai" = "yes"; then
28084
28085$as_echo "#define NEGATIVE_EAI 1" >>confdefs.h
28086
28087fi
28088
28089
28090  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getnameinfo" >&5
28091$as_echo_n "checking for working getnameinfo... " >&6; }
28092if ${ac_cv_working_getnameinfo+:} false; then :
28093  $as_echo_n "(cached) " >&6
28094else
28095
28096  if test "$cross_compiling" = yes; then :
28097
28098  ac_cv_working_getnameinfo="yes"
28099
28100else
28101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28102/* end confdefs.h.  */
28103
28104#ifdef HAVE_NETDB_H
28105#include <netdb.h>
28106#endif
28107#ifdef HAVE_STRING_H
28108#include <string.h>
28109#endif
28110#ifdef HAVE_SYS_TYPES_H
28111#include <sys/types.h>
28112#endif
28113#ifdef HAVE_SYS_SOCKET_H
28114#include <sys/socket.h>
28115#endif
28116#ifdef HAVE_NETINET_IN_H
28117#include <netinet/in.h>
28118#endif
28119
28120int main(void) {
28121    struct sockaddr_in sa;
28122    char hbuf[256];
28123    int error;
28124
28125    sa.sin_family = AF_INET;
28126    sa.sin_port = 0;
28127    sa.sin_addr.s_addr = inet_addr("127.0.0.1");
28128#ifdef SIN6_LEN
28129    sa.sin_len = sizeof(sa);
28130#endif
28131
28132    error = getnameinfo((const struct sockaddr *)&sa, sizeof(sa),
28133                        hbuf, 256, NULL, 0,
28134                        NI_NUMERICHOST);
28135    if (error) {
28136        exit(1);
28137    } else {
28138        exit(0);
28139    }
28140}
28141
28142_ACEOF
28143if ac_fn_c_try_run "$LINENO"; then :
28144
28145  ac_cv_working_getnameinfo="yes"
28146
28147else
28148
28149  ac_cv_working_getnameinfo="no"
28150
28151fi
28152rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28153  conftest.$ac_objext conftest.beam conftest.$ac_ext
28154fi
28155
28156fi
28157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getnameinfo" >&5
28158$as_echo "$ac_cv_working_getnameinfo" >&6; }
28159if test "$ac_cv_working_getnameinfo" = "yes"; then
28160
28161$as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28162
28163fi
28164
28165
28166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6" >&5
28167$as_echo_n "checking for sockaddr_in6... " >&6; }
28168if ${ac_cv_define_sockaddr_in6+:} false; then :
28169  $as_echo_n "(cached) " >&6
28170else
28171
28172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28173/* end confdefs.h.  */
28174
28175#ifdef HAVE_SYS_TYPES_H
28176#include <sys/types.h>
28177#endif
28178#ifdef HAVE_NETINET_IN_H
28179#include <netinet/in.h>
28180#endif
28181
28182int
28183main ()
28184{
28185
28186struct sockaddr_in6 sa;
28187
28188  ;
28189  return 0;
28190}
28191_ACEOF
28192if ac_fn_c_try_compile "$LINENO"; then :
28193
28194    ac_cv_define_sockaddr_in6=yes
28195
28196else
28197
28198    ac_cv_define_sockaddr_in6=no
28199
28200fi
28201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28202
28203fi
28204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_sockaddr_in6" >&5
28205$as_echo "$ac_cv_define_sockaddr_in6" >&6; }
28206
28207if test "$ac_cv_define_sockaddr_in6" = "yes"; then
28208  have_sockaddr_in6=1
28209else
28210  have_sockaddr_in6=0
28211fi
28212
28213
28214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
28215$as_echo_n "checking for sockaddr_storage... " >&6; }
28216if ${apr_cv_define_sockaddr_storage+:} false; then :
28217  $as_echo_n "(cached) " >&6
28218else
28219
28220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28221/* end confdefs.h.  */
28222
28223#ifdef HAVE_SYS_TYPES_H
28224#include <sys/types.h>
28225#endif
28226#ifdef HAVE_NETINET_IN_H
28227#include <netinet/in.h>
28228#endif
28229
28230int
28231main ()
28232{
28233struct sockaddr_storage sa;
28234  ;
28235  return 0;
28236}
28237_ACEOF
28238if ac_fn_c_try_compile "$LINENO"; then :
28239  apr_cv_define_sockaddr_storage=yes
28240else
28241  apr_cv_define_sockaddr_storage=no
28242fi
28243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28244fi
28245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_sockaddr_storage" >&5
28246$as_echo "$apr_cv_define_sockaddr_storage" >&6; }
28247
28248if test "$apr_cv_define_sockaddr_storage" = "yes"; then
28249  have_sa_storage=1
28250else
28251  have_sa_storage=0
28252fi
28253
28254
28255
28256have_ipv6="0"
28257if test "$user_disabled_ipv6" = 1; then
28258    ipv6_result="no -- disabled by user"
28259else
28260    if test "x$broken_ipv6" = "x0"; then
28261        if test "x$have_sockaddr_in6" = "x1"; then
28262            if test "x$ac_cv_working_getaddrinfo" = "xyes"; then
28263                if test "x$ac_cv_working_getnameinfo" = "xyes"; then
28264
28265  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working AI_ADDRCONFIG" >&5
28266$as_echo_n "checking for working AI_ADDRCONFIG... " >&6; }
28267if ${apr_cv_gai_addrconfig+:} false; then :
28268  $as_echo_n "(cached) " >&6
28269else
28270
28271  if test "$cross_compiling" = yes; then :
28272  apr_cv_gai_addrconfig=no
28273else
28274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28275/* end confdefs.h.  */
28276
28277#ifdef HAVE_NETDB_H
28278#include <netdb.h>
28279#endif
28280#ifdef HAVE_STRING_H
28281#include <string.h>
28282#endif
28283#ifdef HAVE_SYS_TYPES_H
28284#include <sys/types.h>
28285#endif
28286#ifdef HAVE_SYS_SOCKET_H
28287#include <sys/socket.h>
28288#endif
28289
28290int main(int argc, char **argv) {
28291    struct addrinfo hints, *ai;
28292
28293    memset(&hints, 0, sizeof(hints));
28294    hints.ai_family = AF_UNSPEC;
28295    hints.ai_socktype = SOCK_STREAM;
28296    hints.ai_flags = AI_ADDRCONFIG;
28297    return getaddrinfo("localhost", NULL, &hints, &ai) != 0;
28298}
28299_ACEOF
28300if ac_fn_c_try_run "$LINENO"; then :
28301  apr_cv_gai_addrconfig=yes
28302else
28303  apr_cv_gai_addrconfig=no
28304fi
28305rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28306  conftest.$ac_objext conftest.beam conftest.$ac_ext
28307fi
28308
28309fi
28310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_gai_addrconfig" >&5
28311$as_echo "$apr_cv_gai_addrconfig" >&6; }
28312
28313if test $apr_cv_gai_addrconfig = yes; then
28314
28315$as_echo "#define HAVE_GAI_ADDRCONFIG 1" >>confdefs.h
28316
28317fi
28318
28319                    have_ipv6="1"
28320                    ipv6_result="yes"
28321                else
28322                    ipv6_result="no -- no getnameinfo"
28323                fi
28324            else
28325                ipv6_result="no -- no working getaddrinfo"
28326            fi
28327        else
28328            ipv6_result="no -- no sockaddr_in6"
28329        fi
28330    else
28331        ipv6_result="no -- the platform has known problems supporting IPv6"
28332    fi
28333fi
28334
28335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if APR supports IPv6" >&5
28336$as_echo_n "checking if APR supports IPv6... " >&6; }
28337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_result" >&5
28338$as_echo "$ipv6_result" >&6; }
28339
28340
28341
28342# hstrerror is only needed if IPv6 is not enabled,
28343# so getaddrinfo/gai_strerror are not used.
28344if test $have_ipv6 = 0; then
28345  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
28346$as_echo_n "checking for library containing hstrerror... " >&6; }
28347if ${ac_cv_search_hstrerror+:} false; then :
28348  $as_echo_n "(cached) " >&6
28349else
28350  ac_func_search_save_LIBS=$LIBS
28351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28352/* end confdefs.h.  */
28353
28354/* Override any GCC internal prototype to avoid an error.
28355   Use char because int might match the return type of a GCC
28356   builtin and then its argument prototype would still apply.  */
28357#ifdef __cplusplus
28358extern "C"
28359#endif
28360char hstrerror ();
28361int
28362main ()
28363{
28364return hstrerror ();
28365  ;
28366  return 0;
28367}
28368_ACEOF
28369for ac_lib in '' resolv; do
28370  if test -z "$ac_lib"; then
28371    ac_res="none required"
28372  else
28373    ac_res=-l$ac_lib
28374    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28375  fi
28376  if ac_fn_c_try_link "$LINENO"; then :
28377  ac_cv_search_hstrerror=$ac_res
28378fi
28379rm -f core conftest.err conftest.$ac_objext \
28380    conftest$ac_exeext
28381  if ${ac_cv_search_hstrerror+:} false; then :
28382  break
28383fi
28384done
28385if ${ac_cv_search_hstrerror+:} false; then :
28386
28387else
28388  ac_cv_search_hstrerror=no
28389fi
28390rm conftest.$ac_ext
28391LIBS=$ac_func_search_save_LIBS
28392fi
28393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
28394$as_echo "$ac_cv_search_hstrerror" >&6; }
28395ac_res=$ac_cv_search_hstrerror
28396if test "$ac_res" != no; then :
28397  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28398
28399$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
28400
28401fi
28402
28403fi
28404
28405
28406for ac_header in langinfo.h
28407do :
28408  ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
28409if test "x$ac_cv_header_langinfo_h" = xyes; then :
28410  cat >>confdefs.h <<_ACEOF
28411#define HAVE_LANGINFO_H 1
28412_ACEOF
28413
28414fi
28415
28416done
28417
28418for ac_func in nl_langinfo
28419do :
28420  ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
28421if test "x$ac_cv_func_nl_langinfo" = xyes; then :
28422  cat >>confdefs.h <<_ACEOF
28423#define HAVE_NL_LANGINFO 1
28424_ACEOF
28425
28426fi
28427done
28428
28429
28430
28431
28432  if test -z "$have_unicode_fs"; then
28433    test "x$silent" != "xyes" && echo "  setting have_unicode_fs to \"0\""
28434    have_unicode_fs="0"
28435  fi
28436
28437
28438
28439
28440  if test -z "$apr_has_xthread_files"; then
28441    test "x$silent" != "xyes" && echo "  setting apr_has_xthread_files to \"0\""
28442    apr_has_xthread_files="0"
28443  fi
28444
28445
28446
28447
28448  if test -z "$apr_procattr_user_set_requires_password"; then
28449    test "x$silent" != "xyes" && echo "  setting apr_procattr_user_set_requires_password to \"0\""
28450    apr_procattr_user_set_requires_password="0"
28451  fi
28452
28453
28454
28455
28456  if test -z "$apr_thread_func"; then
28457    test "x$silent" != "xyes" && echo "  setting apr_thread_func to \"\""
28458    apr_thread_func=""
28459  fi
28460
28461
28462
28463
28464  if test -z "$apr_has_user"; then
28465    test "x$silent" != "xyes" && echo "  setting apr_has_user to \"1\""
28466    apr_has_user="1"
28467  fi
28468
28469
28470
28471
28472echo "${nl}Restore user-defined environment settings..."
28473
28474
28475set X $apr_ste_save_CPPFLAGS
28476if test ${#} -eq 1; then
28477  EXTRA_CPPFLAGS="$CPPFLAGS"
28478  CPPFLAGS=
28479else
28480  if test "x$apr_ste_save_CPPFLAGS" = "x$CPPFLAGS"; then
28481    EXTRA_CPPFLAGS=
28482  else
28483    EXTRA_CPPFLAGS=`echo "$CPPFLAGS" | sed -e "s%${apr_ste_save_CPPFLAGS}%%"`
28484    CPPFLAGS="$apr_ste_save_CPPFLAGS"
28485  fi
28486fi
28487if test "x$silent" != "xyes"; then
28488  echo "  restoring CPPFLAGS to \"$CPPFLAGS\""
28489  echo "  setting EXTRA_CPPFLAGS to \"$EXTRA_CPPFLAGS\""
28490fi
28491
28492
28493
28494set X $apr_ste_save_CFLAGS
28495if test ${#} -eq 1; then
28496  EXTRA_CFLAGS="$CFLAGS"
28497  CFLAGS=
28498else
28499  if test "x$apr_ste_save_CFLAGS" = "x$CFLAGS"; then
28500    EXTRA_CFLAGS=
28501  else
28502    EXTRA_CFLAGS=`echo "$CFLAGS" | sed -e "s%${apr_ste_save_CFLAGS}%%"`
28503    CFLAGS="$apr_ste_save_CFLAGS"
28504  fi
28505fi
28506if test "x$silent" != "xyes"; then
28507  echo "  restoring CFLAGS to \"$CFLAGS\""
28508  echo "  setting EXTRA_CFLAGS to \"$EXTRA_CFLAGS\""
28509fi
28510
28511
28512
28513set X $apr_ste_save_LDFLAGS
28514if test ${#} -eq 1; then
28515  EXTRA_LDFLAGS="$LDFLAGS"
28516  LDFLAGS=
28517else
28518  if test "x$apr_ste_save_LDFLAGS" = "x$LDFLAGS"; then
28519    EXTRA_LDFLAGS=
28520  else
28521    EXTRA_LDFLAGS=`echo "$LDFLAGS" | sed -e "s%${apr_ste_save_LDFLAGS}%%"`
28522    LDFLAGS="$apr_ste_save_LDFLAGS"
28523  fi
28524fi
28525if test "x$silent" != "xyes"; then
28526  echo "  restoring LDFLAGS to \"$LDFLAGS\""
28527  echo "  setting EXTRA_LDFLAGS to \"$EXTRA_LDFLAGS\""
28528fi
28529
28530
28531
28532set X $apr_ste_save_LIBS
28533if test ${#} -eq 1; then
28534  EXTRA_LIBS="$LIBS"
28535  LIBS=
28536else
28537  if test "x$apr_ste_save_LIBS" = "x$LIBS"; then
28538    EXTRA_LIBS=
28539  else
28540    EXTRA_LIBS=`echo "$LIBS" | sed -e "s%${apr_ste_save_LIBS}%%"`
28541    LIBS="$apr_ste_save_LIBS"
28542  fi
28543fi
28544if test "x$silent" != "xyes"; then
28545  echo "  restoring LIBS to \"$LIBS\""
28546  echo "  setting EXTRA_LIBS to \"$EXTRA_LIBS\""
28547fi
28548
28549
28550
28551set X $apr_ste_save_INCLUDES
28552if test ${#} -eq 1; then
28553  EXTRA_INCLUDES="$INCLUDES"
28554  INCLUDES=
28555else
28556  if test "x$apr_ste_save_INCLUDES" = "x$INCLUDES"; then
28557    EXTRA_INCLUDES=
28558  else
28559    EXTRA_INCLUDES=`echo "$INCLUDES" | sed -e "s%${apr_ste_save_INCLUDES}%%"`
28560    INCLUDES="$apr_ste_save_INCLUDES"
28561  fi
28562fi
28563if test "x$silent" != "xyes"; then
28564  echo "  restoring INCLUDES to \"$INCLUDES\""
28565  echo "  setting EXTRA_INCLUDES to \"$EXTRA_INCLUDES\""
28566fi
28567
28568
28569
28570
28571
28572
28573
28574
28575
28576
28577
28578
28579
28580
28581
28582
28583
28584
28585
28586# Use -no-install or -no-fast-install to link the test
28587# programs on all platforms but Darwin, where it would cause
28588# the programs to be linked against installed versions of
28589# libapr instead of those just built.
28590case $host in
28591    *-apple-darwin*)
28592        LT_NO_INSTALL=""
28593        ;;
28594    *-mingw*)
28595        LT_NO_INSTALL="-no-fast-install"
28596        ;;
28597    *)
28598        LT_NO_INSTALL="-no-install"
28599        ;;
28600esac
28601
28602
28603#
28604# BSD/OS (BSDi) needs to use a different include syntax in the Makefiles
28605#
28606case $host in
28607*bsdi*)
28608    # Check whether they've installed GNU make
28609    if make --version > /dev/null 2>&1; then
28610	INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
28611	INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk"
28612    else
28613	# BSDi make
28614	INCLUDE_RULES=".include \"$apr_buildout/apr_rules.mk\""
28615	INCLUDE_OUTPUTS=".include \"$apr_srcdir/build-outputs.mk\""
28616    fi
28617    ;;
28618*)
28619    INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
28620    INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk"
28621    ;;
28622esac
28623
28624
28625
28626ac_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"
28627
28628
28629if test -d $srcdir/test; then
28630   ac_config_files="$ac_config_files test/Makefile test/internal/Makefile"
28631
28632fi
28633
28634dir=include/arch/unix
28635test -d $dir || $MKDIR $dir
28636
28637ac_config_commands="$ac_config_commands default"
28638
28639
28640cat >confcache <<\_ACEOF
28641# This file is a shell script that caches the results of configure
28642# tests run on this system so they can be shared between configure
28643# scripts and configure runs, see configure's option --config-cache.
28644# It is not useful on other systems.  If it contains results you don't
28645# want to keep, you may remove or edit it.
28646#
28647# config.status only pays attention to the cache file if you give it
28648# the --recheck option to rerun configure.
28649#
28650# `ac_cv_env_foo' variables (set or unset) will be overridden when
28651# loading this file, other *unset* `ac_cv_foo' will be assigned the
28652# following values.
28653
28654_ACEOF
28655
28656# The following way of writing the cache mishandles newlines in values,
28657# but we know of no workaround that is simple, portable, and efficient.
28658# So, we kill variables containing newlines.
28659# Ultrix sh set writes to stderr and can't be redirected directly,
28660# and sets the high bit in the cache file unless we assign to the vars.
28661(
28662  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28663    eval ac_val=\$$ac_var
28664    case $ac_val in #(
28665    *${as_nl}*)
28666      case $ac_var in #(
28667      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28668$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28669      esac
28670      case $ac_var in #(
28671      _ | IFS | as_nl) ;; #(
28672      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28673      *) { eval $ac_var=; unset $ac_var;} ;;
28674      esac ;;
28675    esac
28676  done
28677
28678  (set) 2>&1 |
28679    case $as_nl`(ac_space=' '; set) 2>&1` in #(
28680    *${as_nl}ac_space=\ *)
28681      # `set' does not quote correctly, so add quotes: double-quote
28682      # substitution turns \\\\ into \\, and sed turns \\ into \.
28683      sed -n \
28684	"s/'/'\\\\''/g;
28685	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28686      ;; #(
28687    *)
28688      # `set' quotes correctly as required by POSIX, so do not add quotes.
28689      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28690      ;;
28691    esac |
28692    sort
28693) |
28694  sed '
28695     /^ac_cv_env_/b end
28696     t clear
28697     :clear
28698     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28699     t end
28700     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28701     :end' >>confcache
28702if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28703  if test -w "$cache_file"; then
28704    if test "x$cache_file" != "x/dev/null"; then
28705      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28706$as_echo "$as_me: updating cache $cache_file" >&6;}
28707      if test ! -f "$cache_file" || test -h "$cache_file"; then
28708	cat confcache >"$cache_file"
28709      else
28710        case $cache_file in #(
28711        */* | ?:*)
28712	  mv -f confcache "$cache_file"$$ &&
28713	  mv -f "$cache_file"$$ "$cache_file" ;; #(
28714        *)
28715	  mv -f confcache "$cache_file" ;;
28716	esac
28717      fi
28718    fi
28719  else
28720    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28721$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28722  fi
28723fi
28724rm -f confcache
28725
28726test "x$prefix" = xNONE && prefix=$ac_default_prefix
28727# Let make expand exec_prefix.
28728test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28729
28730DEFS=-DHAVE_CONFIG_H
28731
28732ac_libobjs=
28733ac_ltlibobjs=
28734U=
28735for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28736  # 1. Remove the extension, and $U if already installed.
28737  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28738  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28739  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28740  #    will be set to the directory where LIBOBJS objects are built.
28741  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28742  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28743done
28744LIBOBJS=$ac_libobjs
28745
28746LTLIBOBJS=$ac_ltlibobjs
28747
28748
28749
28750
28751: "${CONFIG_STATUS=./config.status}"
28752ac_write_fail=0
28753ac_clean_files_save=$ac_clean_files
28754ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28755{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28756$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28757as_write_fail=0
28758cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28759#! $SHELL
28760# Generated by $as_me.
28761# Run this file to recreate the current configuration.
28762# Compiler output produced by configure, useful for debugging
28763# configure, is in config.log if it exists.
28764
28765debug=false
28766ac_cs_recheck=false
28767ac_cs_silent=false
28768
28769SHELL=\${CONFIG_SHELL-$SHELL}
28770export SHELL
28771_ASEOF
28772cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28773## -------------------- ##
28774## M4sh Initialization. ##
28775## -------------------- ##
28776
28777# Be more Bourne compatible
28778DUALCASE=1; export DUALCASE # for MKS sh
28779if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28780  emulate sh
28781  NULLCMD=:
28782  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28783  # is contrary to our usage.  Disable this feature.
28784  alias -g '${1+"$@"}'='"$@"'
28785  setopt NO_GLOB_SUBST
28786else
28787  case `(set -o) 2>/dev/null` in #(
28788  *posix*) :
28789    set -o posix ;; #(
28790  *) :
28791     ;;
28792esac
28793fi
28794
28795
28796as_nl='
28797'
28798export as_nl
28799# Printing a long string crashes Solaris 7 /usr/bin/printf.
28800as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28801as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28802as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28803# Prefer a ksh shell builtin over an external printf program on Solaris,
28804# but without wasting forks for bash or zsh.
28805if test -z "$BASH_VERSION$ZSH_VERSION" \
28806    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28807  as_echo='print -r --'
28808  as_echo_n='print -rn --'
28809elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28810  as_echo='printf %s\n'
28811  as_echo_n='printf %s'
28812else
28813  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28814    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28815    as_echo_n='/usr/ucb/echo -n'
28816  else
28817    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28818    as_echo_n_body='eval
28819      arg=$1;
28820      case $arg in #(
28821      *"$as_nl"*)
28822	expr "X$arg" : "X\\(.*\\)$as_nl";
28823	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28824      esac;
28825      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28826    '
28827    export as_echo_n_body
28828    as_echo_n='sh -c $as_echo_n_body as_echo'
28829  fi
28830  export as_echo_body
28831  as_echo='sh -c $as_echo_body as_echo'
28832fi
28833
28834# The user is always right.
28835if test "${PATH_SEPARATOR+set}" != set; then
28836  PATH_SEPARATOR=:
28837  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28838    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28839      PATH_SEPARATOR=';'
28840  }
28841fi
28842
28843
28844# IFS
28845# We need space, tab and new line, in precisely that order.  Quoting is
28846# there to prevent editors from complaining about space-tab.
28847# (If _AS_PATH_WALK were called with IFS unset, it would disable word
28848# splitting by setting IFS to empty value.)
28849IFS=" ""	$as_nl"
28850
28851# Find who we are.  Look in the path if we contain no directory separator.
28852as_myself=
28853case $0 in #((
28854  *[\\/]* ) as_myself=$0 ;;
28855  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28856for as_dir in $PATH
28857do
28858  IFS=$as_save_IFS
28859  test -z "$as_dir" && as_dir=.
28860    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28861  done
28862IFS=$as_save_IFS
28863
28864     ;;
28865esac
28866# We did not find ourselves, most probably we were run as `sh COMMAND'
28867# in which case we are not to be found in the path.
28868if test "x$as_myself" = x; then
28869  as_myself=$0
28870fi
28871if test ! -f "$as_myself"; then
28872  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28873  exit 1
28874fi
28875
28876# Unset variables that we do not need and which cause bugs (e.g. in
28877# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
28878# suppresses any "Segmentation fault" message there.  '((' could
28879# trigger a bug in pdksh 5.2.14.
28880for as_var in BASH_ENV ENV MAIL MAILPATH
28881do eval test x\${$as_var+set} = xset \
28882  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28883done
28884PS1='$ '
28885PS2='> '
28886PS4='+ '
28887
28888# NLS nuisances.
28889LC_ALL=C
28890export LC_ALL
28891LANGUAGE=C
28892export LANGUAGE
28893
28894# CDPATH.
28895(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28896
28897
28898# as_fn_error STATUS ERROR [LINENO LOG_FD]
28899# ----------------------------------------
28900# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28901# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28902# script with STATUS, using 1 if that was 0.
28903as_fn_error ()
28904{
28905  as_status=$1; test $as_status -eq 0 && as_status=1
28906  if test "$4"; then
28907    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28908    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28909  fi
28910  $as_echo "$as_me: error: $2" >&2
28911  as_fn_exit $as_status
28912} # as_fn_error
28913
28914
28915# as_fn_set_status STATUS
28916# -----------------------
28917# Set $? to STATUS, without forking.
28918as_fn_set_status ()
28919{
28920  return $1
28921} # as_fn_set_status
28922
28923# as_fn_exit STATUS
28924# -----------------
28925# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28926as_fn_exit ()
28927{
28928  set +e
28929  as_fn_set_status $1
28930  exit $1
28931} # as_fn_exit
28932
28933# as_fn_unset VAR
28934# ---------------
28935# Portably unset VAR.
28936as_fn_unset ()
28937{
28938  { eval $1=; unset $1;}
28939}
28940as_unset=as_fn_unset
28941# as_fn_append VAR VALUE
28942# ----------------------
28943# Append the text in VALUE to the end of the definition contained in VAR. Take
28944# advantage of any shell optimizations that allow amortized linear growth over
28945# repeated appends, instead of the typical quadratic growth present in naive
28946# implementations.
28947if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28948  eval 'as_fn_append ()
28949  {
28950    eval $1+=\$2
28951  }'
28952else
28953  as_fn_append ()
28954  {
28955    eval $1=\$$1\$2
28956  }
28957fi # as_fn_append
28958
28959# as_fn_arith ARG...
28960# ------------------
28961# Perform arithmetic evaluation on the ARGs, and store the result in the
28962# global $as_val. Take advantage of shells that can avoid forks. The arguments
28963# must be portable across $(()) and expr.
28964if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28965  eval 'as_fn_arith ()
28966  {
28967    as_val=$(( $* ))
28968  }'
28969else
28970  as_fn_arith ()
28971  {
28972    as_val=`expr "$@" || test $? -eq 1`
28973  }
28974fi # as_fn_arith
28975
28976
28977if expr a : '\(a\)' >/dev/null 2>&1 &&
28978   test "X`expr 00001 : '.*\(...\)'`" = X001; then
28979  as_expr=expr
28980else
28981  as_expr=false
28982fi
28983
28984if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28985  as_basename=basename
28986else
28987  as_basename=false
28988fi
28989
28990if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28991  as_dirname=dirname
28992else
28993  as_dirname=false
28994fi
28995
28996as_me=`$as_basename -- "$0" ||
28997$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28998	 X"$0" : 'X\(//\)$' \| \
28999	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29000$as_echo X/"$0" |
29001    sed '/^.*\/\([^/][^/]*\)\/*$/{
29002	    s//\1/
29003	    q
29004	  }
29005	  /^X\/\(\/\/\)$/{
29006	    s//\1/
29007	    q
29008	  }
29009	  /^X\/\(\/\).*/{
29010	    s//\1/
29011	    q
29012	  }
29013	  s/.*/./; q'`
29014
29015# Avoid depending upon Character Ranges.
29016as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29017as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29018as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29019as_cr_digits='0123456789'
29020as_cr_alnum=$as_cr_Letters$as_cr_digits
29021
29022ECHO_C= ECHO_N= ECHO_T=
29023case `echo -n x` in #(((((
29024-n*)
29025  case `echo 'xy\c'` in
29026  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
29027  xy)  ECHO_C='\c';;
29028  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
29029       ECHO_T='	';;
29030  esac;;
29031*)
29032  ECHO_N='-n';;
29033esac
29034
29035rm -f conf$$ conf$$.exe conf$$.file
29036if test -d conf$$.dir; then
29037  rm -f conf$$.dir/conf$$.file
29038else
29039  rm -f conf$$.dir
29040  mkdir conf$$.dir 2>/dev/null
29041fi
29042if (echo >conf$$.file) 2>/dev/null; then
29043  if ln -s conf$$.file conf$$ 2>/dev/null; then
29044    as_ln_s='ln -s'
29045    # ... but there are two gotchas:
29046    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29047    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29048    # In both cases, we have to default to `cp -pR'.
29049    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29050      as_ln_s='cp -pR'
29051  elif ln conf$$.file conf$$ 2>/dev/null; then
29052    as_ln_s=ln
29053  else
29054    as_ln_s='cp -pR'
29055  fi
29056else
29057  as_ln_s='cp -pR'
29058fi
29059rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29060rmdir conf$$.dir 2>/dev/null
29061
29062
29063# as_fn_mkdir_p
29064# -------------
29065# Create "$as_dir" as a directory, including parents if necessary.
29066as_fn_mkdir_p ()
29067{
29068
29069  case $as_dir in #(
29070  -*) as_dir=./$as_dir;;
29071  esac
29072  test -d "$as_dir" || eval $as_mkdir_p || {
29073    as_dirs=
29074    while :; do
29075      case $as_dir in #(
29076      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29077      *) as_qdir=$as_dir;;
29078      esac
29079      as_dirs="'$as_qdir' $as_dirs"
29080      as_dir=`$as_dirname -- "$as_dir" ||
29081$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29082	 X"$as_dir" : 'X\(//\)[^/]' \| \
29083	 X"$as_dir" : 'X\(//\)$' \| \
29084	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29085$as_echo X"$as_dir" |
29086    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29087	    s//\1/
29088	    q
29089	  }
29090	  /^X\(\/\/\)[^/].*/{
29091	    s//\1/
29092	    q
29093	  }
29094	  /^X\(\/\/\)$/{
29095	    s//\1/
29096	    q
29097	  }
29098	  /^X\(\/\).*/{
29099	    s//\1/
29100	    q
29101	  }
29102	  s/.*/./; q'`
29103      test -d "$as_dir" && break
29104    done
29105    test -z "$as_dirs" || eval "mkdir $as_dirs"
29106  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
29107
29108
29109} # as_fn_mkdir_p
29110if mkdir -p . 2>/dev/null; then
29111  as_mkdir_p='mkdir -p "$as_dir"'
29112else
29113  test -d ./-p && rmdir ./-p
29114  as_mkdir_p=false
29115fi
29116
29117
29118# as_fn_executable_p FILE
29119# -----------------------
29120# Test if FILE is an executable regular file.
29121as_fn_executable_p ()
29122{
29123  test -f "$1" && test -x "$1"
29124} # as_fn_executable_p
29125as_test_x='test -x'
29126as_executable_p=as_fn_executable_p
29127
29128# Sed expression to map a string onto a valid CPP name.
29129as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29130
29131# Sed expression to map a string onto a valid variable name.
29132as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29133
29134
29135exec 6>&1
29136## ----------------------------------- ##
29137## Main body of $CONFIG_STATUS script. ##
29138## ----------------------------------- ##
29139_ASEOF
29140test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29141
29142cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29143# Save the log message, to keep $0 and so on meaningful, and to
29144# report actual input values of CONFIG_FILES etc. instead of their
29145# values after options handling.
29146ac_log="
29147This file was extended by $as_me, which was
29148generated by GNU Autoconf 2.69.  Invocation command line was
29149
29150  CONFIG_FILES    = $CONFIG_FILES
29151  CONFIG_HEADERS  = $CONFIG_HEADERS
29152  CONFIG_LINKS    = $CONFIG_LINKS
29153  CONFIG_COMMANDS = $CONFIG_COMMANDS
29154  $ $0 $@
29155
29156on `(hostname || uname -n) 2>/dev/null | sed 1q`
29157"
29158
29159_ACEOF
29160
29161case $ac_config_files in *"
29162"*) set x $ac_config_files; shift; ac_config_files=$*;;
29163esac
29164
29165case $ac_config_headers in *"
29166"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29167esac
29168
29169
29170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29171# Files that config.status was made for.
29172config_files="$ac_config_files"
29173config_headers="$ac_config_headers"
29174config_commands="$ac_config_commands"
29175
29176_ACEOF
29177
29178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29179ac_cs_usage="\
29180\`$as_me' instantiates files and other configuration actions
29181from templates according to the current configuration.  Unless the files
29182and actions are specified as TAGs, all are instantiated by default.
29183
29184Usage: $0 [OPTION]... [TAG]...
29185
29186  -h, --help       print this help, then exit
29187  -V, --version    print version number and configuration settings, then exit
29188      --config     print configuration, then exit
29189  -q, --quiet, --silent
29190                   do not print progress messages
29191  -d, --debug      don't remove temporary files
29192      --recheck    update $as_me by reconfiguring in the same conditions
29193      --file=FILE[:TEMPLATE]
29194                   instantiate the configuration file FILE
29195      --header=FILE[:TEMPLATE]
29196                   instantiate the configuration header FILE
29197
29198Configuration files:
29199$config_files
29200
29201Configuration headers:
29202$config_headers
29203
29204Configuration commands:
29205$config_commands
29206
29207Report bugs to the package provider."
29208
29209_ACEOF
29210cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29211ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29212ac_cs_version="\\
29213config.status
29214configured by $0, generated by GNU Autoconf 2.69,
29215  with options \\"\$ac_cs_config\\"
29216
29217Copyright (C) 2012 Free Software Foundation, Inc.
29218This config.status script is free software; the Free Software Foundation
29219gives unlimited permission to copy, distribute and modify it."
29220
29221ac_pwd='$ac_pwd'
29222srcdir='$srcdir'
29223INSTALL='$INSTALL'
29224AWK='$AWK'
29225test -n "\$AWK" || AWK=awk
29226_ACEOF
29227
29228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29229# The default lists apply if the user does not specify any file.
29230ac_need_defaults=:
29231while test $# != 0
29232do
29233  case $1 in
29234  --*=?*)
29235    ac_option=`expr "X$1" : 'X\([^=]*\)='`
29236    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29237    ac_shift=:
29238    ;;
29239  --*=)
29240    ac_option=`expr "X$1" : 'X\([^=]*\)='`
29241    ac_optarg=
29242    ac_shift=:
29243    ;;
29244  *)
29245    ac_option=$1
29246    ac_optarg=$2
29247    ac_shift=shift
29248    ;;
29249  esac
29250
29251  case $ac_option in
29252  # Handling of the options.
29253  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29254    ac_cs_recheck=: ;;
29255  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29256    $as_echo "$ac_cs_version"; exit ;;
29257  --config | --confi | --conf | --con | --co | --c )
29258    $as_echo "$ac_cs_config"; exit ;;
29259  --debug | --debu | --deb | --de | --d | -d )
29260    debug=: ;;
29261  --file | --fil | --fi | --f )
29262    $ac_shift
29263    case $ac_optarg in
29264    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29265    '') as_fn_error $? "missing file argument" ;;
29266    esac
29267    as_fn_append CONFIG_FILES " '$ac_optarg'"
29268    ac_need_defaults=false;;
29269  --header | --heade | --head | --hea )
29270    $ac_shift
29271    case $ac_optarg in
29272    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29273    esac
29274    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29275    ac_need_defaults=false;;
29276  --he | --h)
29277    # Conflict between --help and --header
29278    as_fn_error $? "ambiguous option: \`$1'
29279Try \`$0 --help' for more information.";;
29280  --help | --hel | -h )
29281    $as_echo "$ac_cs_usage"; exit ;;
29282  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29283  | -silent | --silent | --silen | --sile | --sil | --si | --s)
29284    ac_cs_silent=: ;;
29285
29286  # This is an error.
29287  -*) as_fn_error $? "unrecognized option: \`$1'
29288Try \`$0 --help' for more information." ;;
29289
29290  *) as_fn_append ac_config_targets " $1"
29291     ac_need_defaults=false ;;
29292
29293  esac
29294  shift
29295done
29296
29297ac_configure_extra_args=
29298
29299if $ac_cs_silent; then
29300  exec 6>/dev/null
29301  ac_configure_extra_args="$ac_configure_extra_args --silent"
29302fi
29303
29304_ACEOF
29305cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29306if \$ac_cs_recheck; then
29307  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29308  shift
29309  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29310  CONFIG_SHELL='$SHELL'
29311  export CONFIG_SHELL
29312  exec "\$@"
29313fi
29314
29315_ACEOF
29316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29317exec 5>>config.log
29318{
29319  echo
29320  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29321## Running $as_me. ##
29322_ASBOX
29323  $as_echo "$ac_log"
29324} >&5
29325
29326_ACEOF
29327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29328#
29329# INIT-COMMANDS
29330#
29331
29332
29333# The HP-UX ksh and POSIX shell print the target directory to stdout
29334# if CDPATH is set.
29335(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29336
29337sed_quote_subst='$sed_quote_subst'
29338double_quote_subst='$double_quote_subst'
29339delay_variable_subst='$delay_variable_subst'
29340AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
29341DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
29342OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
29343macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
29344macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
29345enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
29346enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
29347pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
29348enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
29349SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
29350ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
29351PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
29352host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
29353host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
29354host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
29355build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
29356build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
29357build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
29358SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
29359Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
29360GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
29361EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
29362FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
29363LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
29364NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
29365LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
29366max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
29367ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
29368exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
29369lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
29370lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
29371lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
29372lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
29373lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
29374reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
29375reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
29376deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
29377file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
29378file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
29379want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
29380sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
29381AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
29382AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
29383archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
29384STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
29385RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
29386old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29387old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29388old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
29389lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
29390CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
29391CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
29392compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
29393GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
29394lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
29395lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
29396lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
29397lt_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"`'
29398nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
29399lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
29400objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
29401MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
29402lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
29403lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
29404lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
29405lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
29406lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
29407need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
29408MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
29409DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
29410NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
29411LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
29412OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
29413OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
29414libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
29415shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
29416extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29417archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
29418enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
29419export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
29420whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
29421compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
29422old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
29423old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29424archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
29425archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29426module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
29427module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29428with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
29429allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
29430no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
29431hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
29432hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
29433hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
29434hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
29435hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
29436hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
29437hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
29438inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
29439link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
29440always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
29441export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
29442exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
29443include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
29444prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
29445postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
29446file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
29447variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
29448need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
29449need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
29450version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
29451runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
29452shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
29453shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
29454libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
29455library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
29456soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
29457install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
29458postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29459postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29460finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
29461finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
29462hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
29463sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
29464sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
29465hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
29466enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
29467enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
29468enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
29469old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
29470striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
29471
29472LTCC='$LTCC'
29473LTCFLAGS='$LTCFLAGS'
29474compiler='$compiler_DEFAULT'
29475
29476# A function that is used when there is no print builtin or printf.
29477func_fallback_echo ()
29478{
29479  eval 'cat <<_LTECHO_EOF
29480\$1
29481_LTECHO_EOF'
29482}
29483
29484# Quote evaled strings.
29485for var in AS \
29486DLLTOOL \
29487OBJDUMP \
29488SHELL \
29489ECHO \
29490PATH_SEPARATOR \
29491SED \
29492GREP \
29493EGREP \
29494FGREP \
29495LD \
29496NM \
29497LN_S \
29498lt_SP2NL \
29499lt_NL2SP \
29500reload_flag \
29501deplibs_check_method \
29502file_magic_cmd \
29503file_magic_glob \
29504want_nocaseglob \
29505sharedlib_from_linklib_cmd \
29506AR \
29507AR_FLAGS \
29508archiver_list_spec \
29509STRIP \
29510RANLIB \
29511CC \
29512CFLAGS \
29513compiler \
29514lt_cv_sys_global_symbol_pipe \
29515lt_cv_sys_global_symbol_to_cdecl \
29516lt_cv_sys_global_symbol_to_c_name_address \
29517lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29518nm_file_list_spec \
29519lt_prog_compiler_no_builtin_flag \
29520lt_prog_compiler_pic \
29521lt_prog_compiler_wl \
29522lt_prog_compiler_static \
29523lt_cv_prog_compiler_c_o \
29524need_locks \
29525MANIFEST_TOOL \
29526DSYMUTIL \
29527NMEDIT \
29528LIPO \
29529OTOOL \
29530OTOOL64 \
29531shrext_cmds \
29532export_dynamic_flag_spec \
29533whole_archive_flag_spec \
29534compiler_needs_object \
29535with_gnu_ld \
29536allow_undefined_flag \
29537no_undefined_flag \
29538hardcode_libdir_flag_spec \
29539hardcode_libdir_separator \
29540exclude_expsyms \
29541include_expsyms \
29542file_list_spec \
29543variables_saved_for_relink \
29544libname_spec \
29545library_names_spec \
29546soname_spec \
29547install_override_mode \
29548finish_eval \
29549old_striplib \
29550striplib; do
29551    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29552    *[\\\\\\\`\\"\\\$]*)
29553      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29554      ;;
29555    *)
29556      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29557      ;;
29558    esac
29559done
29560
29561# Double-quote double-evaled strings.
29562for var in reload_cmds \
29563old_postinstall_cmds \
29564old_postuninstall_cmds \
29565old_archive_cmds \
29566extract_expsyms_cmds \
29567old_archive_from_new_cmds \
29568old_archive_from_expsyms_cmds \
29569archive_cmds \
29570archive_expsym_cmds \
29571module_cmds \
29572module_expsym_cmds \
29573export_symbols_cmds \
29574prelink_cmds \
29575postlink_cmds \
29576postinstall_cmds \
29577postuninstall_cmds \
29578finish_cmds \
29579sys_lib_search_path_spec \
29580sys_lib_dlsearch_path_spec; do
29581    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29582    *[\\\\\\\`\\"\\\$]*)
29583      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29584      ;;
29585    *)
29586      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29587      ;;
29588    esac
29589done
29590
29591ac_aux_dir='$ac_aux_dir'
29592xsi_shell='$xsi_shell'
29593lt_shell_append='$lt_shell_append'
29594
29595# See if we are running on zsh, and set the options which allow our
29596# commands through without removal of \ escapes INIT.
29597if test -n "\${ZSH_VERSION+set}" ; then
29598   setopt NO_GLOB_SUBST
29599fi
29600
29601
29602    PACKAGE='$PACKAGE'
29603    VERSION='$VERSION'
29604    TIMESTAMP='$TIMESTAMP'
29605    RM='$RM'
29606    ofile='$ofile'
29607
29608
29609
29610
29611
29612# Commands run at the beginning of config.status:
29613APR_SAVE_HEADERS="include/apr.h include/arch/unix/apr_private.h"
29614APR_MAJOR_VERSION=$APR_MAJOR_VERSION
29615APR_PLATFORM=$host
29616
29617for apri in \${APR_SAVE_HEADERS}; do
29618  test -r \${apri} && mv \${apri} \${apri}.save
29619done
29620
29621
29622_ACEOF
29623
29624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29625
29626# Handling of arguments.
29627for ac_config_target in $ac_config_targets
29628do
29629  case $ac_config_target in
29630    "include/arch/unix/apr_private.h") CONFIG_HEADERS="$CONFIG_HEADERS include/arch/unix/apr_private.h" ;;
29631    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29632    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29633    "include/apr.h") CONFIG_FILES="$CONFIG_FILES include/apr.h" ;;
29634    "build/apr_rules.mk") CONFIG_FILES="$CONFIG_FILES build/apr_rules.mk" ;;
29635    "build/pkg/pkginfo") CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;;
29636    "apr-$APR_MAJOR_VERSION-config") CONFIG_FILES="$CONFIG_FILES apr-$APR_MAJOR_VERSION-config:apr-config.in" ;;
29637    "apr.pc") CONFIG_FILES="$CONFIG_FILES apr.pc" ;;
29638    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
29639    "test/internal/Makefile") CONFIG_FILES="$CONFIG_FILES test/internal/Makefile" ;;
29640    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29641
29642  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29643  esac
29644done
29645
29646
29647# If the user did not use the arguments to specify the items to instantiate,
29648# then the envvar interface is used.  Set only those that are not.
29649# We use the long form for the default assignment because of an extremely
29650# bizarre bug on SunOS 4.1.3.
29651if $ac_need_defaults; then
29652  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29653  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29654  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29655fi
29656
29657# Have a temporary directory for convenience.  Make it in the build tree
29658# simply because there is no reason against having it here, and in addition,
29659# creating and moving files from /tmp can sometimes cause problems.
29660# Hook for its removal unless debugging.
29661# Note that there is a small window in which the directory will not be cleaned:
29662# after its creation but before its name has been assigned to `$tmp'.
29663$debug ||
29664{
29665  tmp= ac_tmp=
29666  trap 'exit_status=$?
29667  : "${ac_tmp:=$tmp}"
29668  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29669' 0
29670  trap 'as_fn_exit 1' 1 2 13 15
29671}
29672# Create a (secure) tmp directory for tmp files.
29673
29674{
29675  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29676  test -d "$tmp"
29677}  ||
29678{
29679  tmp=./conf$$-$RANDOM
29680  (umask 077 && mkdir "$tmp")
29681} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29682ac_tmp=$tmp
29683
29684# Set up the scripts for CONFIG_FILES section.
29685# No need to generate them if there are no CONFIG_FILES.
29686# This happens for instance with `./config.status config.h'.
29687if test -n "$CONFIG_FILES"; then
29688
29689
29690ac_cr=`echo X | tr X '\015'`
29691# On cygwin, bash can eat \r inside `` if the user requested igncr.
29692# But we know of no other shell where ac_cr would be empty at this
29693# point, so we can use a bashism as a fallback.
29694if test "x$ac_cr" = x; then
29695  eval ac_cr=\$\'\\r\'
29696fi
29697ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29698if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29699  ac_cs_awk_cr='\\r'
29700else
29701  ac_cs_awk_cr=$ac_cr
29702fi
29703
29704echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29705_ACEOF
29706
29707
29708{
29709  echo "cat >conf$$subs.awk <<_ACEOF" &&
29710  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29711  echo "_ACEOF"
29712} >conf$$subs.sh ||
29713  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29714ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29715ac_delim='%!_!# '
29716for ac_last_try in false false false false false :; do
29717  . ./conf$$subs.sh ||
29718    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29719
29720  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29721  if test $ac_delim_n = $ac_delim_num; then
29722    break
29723  elif $ac_last_try; then
29724    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29725  else
29726    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29727  fi
29728done
29729rm -f conf$$subs.sh
29730
29731cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29732cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
29733_ACEOF
29734sed -n '
29735h
29736s/^/S["/; s/!.*/"]=/
29737p
29738g
29739s/^[^!]*!//
29740:repl
29741t repl
29742s/'"$ac_delim"'$//
29743t delim
29744:nl
29745h
29746s/\(.\{148\}\)..*/\1/
29747t more1
29748s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29749p
29750n
29751b repl
29752:more1
29753s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29754p
29755g
29756s/.\{148\}//
29757t nl
29758:delim
29759h
29760s/\(.\{148\}\)..*/\1/
29761t more2
29762s/["\\]/\\&/g; s/^/"/; s/$/"/
29763p
29764b
29765:more2
29766s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29767p
29768g
29769s/.\{148\}//
29770t delim
29771' <conf$$subs.awk | sed '
29772/^[^""]/{
29773  N
29774  s/\n//
29775}
29776' >>$CONFIG_STATUS || ac_write_fail=1
29777rm -f conf$$subs.awk
29778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29779_ACAWK
29780cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
29781  for (key in S) S_is_set[key] = 1
29782  FS = ""
29783
29784}
29785{
29786  line = $ 0
29787  nfields = split(line, field, "@")
29788  substed = 0
29789  len = length(field[1])
29790  for (i = 2; i < nfields; i++) {
29791    key = field[i]
29792    keylen = length(key)
29793    if (S_is_set[key]) {
29794      value = S[key]
29795      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29796      len += length(value) + length(field[++i])
29797      substed = 1
29798    } else
29799      len += 1 + keylen
29800  }
29801
29802  print line
29803}
29804
29805_ACAWK
29806_ACEOF
29807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29808if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29809  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29810else
29811  cat
29812fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
29813  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
29814_ACEOF
29815
29816# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29817# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
29818# trailing colons and then remove the whole line if VPATH becomes empty
29819# (actually we leave an empty line to preserve line numbers).
29820if test "x$srcdir" = x.; then
29821  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
29822h
29823s///
29824s/^/:/
29825s/[	 ]*$/:/
29826s/:\$(srcdir):/:/g
29827s/:\${srcdir}:/:/g
29828s/:@srcdir@:/:/g
29829s/^:*//
29830s/:*$//
29831x
29832s/\(=[	 ]*\).*/\1/
29833G
29834s/\n//
29835s/^[^=]*=[	 ]*$//
29836}'
29837fi
29838
29839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29840fi # test -n "$CONFIG_FILES"
29841
29842# Set up the scripts for CONFIG_HEADERS section.
29843# No need to generate them if there are no CONFIG_HEADERS.
29844# This happens for instance with `./config.status Makefile'.
29845if test -n "$CONFIG_HEADERS"; then
29846cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29847BEGIN {
29848_ACEOF
29849
29850# Transform confdefs.h into an awk script `defines.awk', embedded as
29851# here-document in config.status, that substitutes the proper values into
29852# config.h.in to produce config.h.
29853
29854# Create a delimiter string that does not exist in confdefs.h, to ease
29855# handling of long lines.
29856ac_delim='%!_!# '
29857for ac_last_try in false false :; do
29858  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29859  if test -z "$ac_tt"; then
29860    break
29861  elif $ac_last_try; then
29862    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29863  else
29864    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29865  fi
29866done
29867
29868# For the awk script, D is an array of macro values keyed by name,
29869# likewise P contains macro parameters if any.  Preserve backslash
29870# newline sequences.
29871
29872ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29873sed -n '
29874s/.\{148\}/&'"$ac_delim"'/g
29875t rset
29876:rset
29877s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
29878t def
29879d
29880:def
29881s/\\$//
29882t bsnl
29883s/["\\]/\\&/g
29884s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
29885D["\1"]=" \3"/p
29886s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
29887d
29888:bsnl
29889s/["\\]/\\&/g
29890s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
29891D["\1"]=" \3\\\\\\n"\\/p
29892t cont
29893s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29894t cont
29895d
29896:cont
29897n
29898s/.\{148\}/&'"$ac_delim"'/g
29899t clear
29900:clear
29901s/\\$//
29902t bsnlc
29903s/["\\]/\\&/g; s/^/"/; s/$/"/p
29904d
29905:bsnlc
29906s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29907b cont
29908' <confdefs.h | sed '
29909s/'"$ac_delim"'/"\\\
29910"/g' >>$CONFIG_STATUS || ac_write_fail=1
29911
29912cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29913  for (key in D) D_is_set[key] = 1
29914  FS = ""
29915}
29916/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29917  line = \$ 0
29918  split(line, arg, " ")
29919  if (arg[1] == "#") {
29920    defundef = arg[2]
29921    mac1 = arg[3]
29922  } else {
29923    defundef = substr(arg[1], 2)
29924    mac1 = arg[2]
29925  }
29926  split(mac1, mac2, "(") #)
29927  macro = mac2[1]
29928  prefix = substr(line, 1, index(line, defundef) - 1)
29929  if (D_is_set[macro]) {
29930    # Preserve the white space surrounding the "#".
29931    print prefix "define", macro P[macro] D[macro]
29932    next
29933  } else {
29934    # Replace #undef with comments.  This is necessary, for example,
29935    # in the case of _POSIX_SOURCE, which is predefined and required
29936    # on some systems where configure will not decide to define it.
29937    if (defundef == "undef") {
29938      print "/*", prefix defundef, macro, "*/"
29939      next
29940    }
29941  }
29942}
29943{ print }
29944_ACAWK
29945_ACEOF
29946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29947  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29948fi # test -n "$CONFIG_HEADERS"
29949
29950
29951eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
29952shift
29953for ac_tag
29954do
29955  case $ac_tag in
29956  :[FHLC]) ac_mode=$ac_tag; continue;;
29957  esac
29958  case $ac_mode$ac_tag in
29959  :[FHL]*:*);;
29960  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29961  :[FH]-) ac_tag=-:-;;
29962  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29963  esac
29964  ac_save_IFS=$IFS
29965  IFS=:
29966  set x $ac_tag
29967  IFS=$ac_save_IFS
29968  shift
29969  ac_file=$1
29970  shift
29971
29972  case $ac_mode in
29973  :L) ac_source=$1;;
29974  :[FH])
29975    ac_file_inputs=
29976    for ac_f
29977    do
29978      case $ac_f in
29979      -) ac_f="$ac_tmp/stdin";;
29980      *) # Look for the file first in the build tree, then in the source tree
29981	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
29982	 # because $ac_f cannot contain `:'.
29983	 test -f "$ac_f" ||
29984	   case $ac_f in
29985	   [\\/$]*) false;;
29986	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29987	   esac ||
29988	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29989      esac
29990      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29991      as_fn_append ac_file_inputs " '$ac_f'"
29992    done
29993
29994    # Let's still pretend it is `configure' which instantiates (i.e., don't
29995    # use $as_me), people would be surprised to read:
29996    #    /* config.h.  Generated by config.status.  */
29997    configure_input='Generated from '`
29998	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29999	`' by configure.'
30000    if test x"$ac_file" != x-; then
30001      configure_input="$ac_file.  $configure_input"
30002      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30003$as_echo "$as_me: creating $ac_file" >&6;}
30004    fi
30005    # Neutralize special characters interpreted by sed in replacement strings.
30006    case $configure_input in #(
30007    *\&* | *\|* | *\\* )
30008       ac_sed_conf_input=`$as_echo "$configure_input" |
30009       sed 's/[\\\\&|]/\\\\&/g'`;; #(
30010    *) ac_sed_conf_input=$configure_input;;
30011    esac
30012
30013    case $ac_tag in
30014    *:-:* | *:-) cat >"$ac_tmp/stdin" \
30015      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
30016    esac
30017    ;;
30018  esac
30019
30020  ac_dir=`$as_dirname -- "$ac_file" ||
30021$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30022	 X"$ac_file" : 'X\(//\)[^/]' \| \
30023	 X"$ac_file" : 'X\(//\)$' \| \
30024	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30025$as_echo X"$ac_file" |
30026    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30027	    s//\1/
30028	    q
30029	  }
30030	  /^X\(\/\/\)[^/].*/{
30031	    s//\1/
30032	    q
30033	  }
30034	  /^X\(\/\/\)$/{
30035	    s//\1/
30036	    q
30037	  }
30038	  /^X\(\/\).*/{
30039	    s//\1/
30040	    q
30041	  }
30042	  s/.*/./; q'`
30043  as_dir="$ac_dir"; as_fn_mkdir_p
30044  ac_builddir=.
30045
30046case "$ac_dir" in
30047.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30048*)
30049  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30050  # A ".." for each directory in $ac_dir_suffix.
30051  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30052  case $ac_top_builddir_sub in
30053  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30054  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30055  esac ;;
30056esac
30057ac_abs_top_builddir=$ac_pwd
30058ac_abs_builddir=$ac_pwd$ac_dir_suffix
30059# for backward compatibility:
30060ac_top_builddir=$ac_top_build_prefix
30061
30062case $srcdir in
30063  .)  # We are building in place.
30064    ac_srcdir=.
30065    ac_top_srcdir=$ac_top_builddir_sub
30066    ac_abs_top_srcdir=$ac_pwd ;;
30067  [\\/]* | ?:[\\/]* )  # Absolute name.
30068    ac_srcdir=$srcdir$ac_dir_suffix;
30069    ac_top_srcdir=$srcdir
30070    ac_abs_top_srcdir=$srcdir ;;
30071  *) # Relative name.
30072    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30073    ac_top_srcdir=$ac_top_build_prefix$srcdir
30074    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30075esac
30076ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30077
30078
30079  case $ac_mode in
30080  :F)
30081  #
30082  # CONFIG_FILE
30083  #
30084
30085  case $INSTALL in
30086  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30087  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30088  esac
30089_ACEOF
30090
30091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30092# If the template does not know about datarootdir, expand it.
30093# FIXME: This hack should be removed a few years after 2.60.
30094ac_datarootdir_hack=; ac_datarootdir_seen=
30095ac_sed_dataroot='
30096/datarootdir/ {
30097  p
30098  q
30099}
30100/@datadir@/p
30101/@docdir@/p
30102/@infodir@/p
30103/@localedir@/p
30104/@mandir@/p'
30105case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30106*datarootdir*) ac_datarootdir_seen=yes;;
30107*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30108  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30109$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30110_ACEOF
30111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30112  ac_datarootdir_hack='
30113  s&@datadir@&$datadir&g
30114  s&@docdir@&$docdir&g
30115  s&@infodir@&$infodir&g
30116  s&@localedir@&$localedir&g
30117  s&@mandir@&$mandir&g
30118  s&\\\${datarootdir}&$datarootdir&g' ;;
30119esac
30120_ACEOF
30121
30122# Neutralize VPATH when `$srcdir' = `.'.
30123# Shell code in configure.ac might set extrasub.
30124# FIXME: do we really want to maintain this feature?
30125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30126ac_sed_extra="$ac_vpsub
30127$extrasub
30128_ACEOF
30129cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30130:t
30131/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30132s|@configure_input@|$ac_sed_conf_input|;t t
30133s&@top_builddir@&$ac_top_builddir_sub&;t t
30134s&@top_build_prefix@&$ac_top_build_prefix&;t t
30135s&@srcdir@&$ac_srcdir&;t t
30136s&@abs_srcdir@&$ac_abs_srcdir&;t t
30137s&@top_srcdir@&$ac_top_srcdir&;t t
30138s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30139s&@builddir@&$ac_builddir&;t t
30140s&@abs_builddir@&$ac_abs_builddir&;t t
30141s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30142s&@INSTALL@&$ac_INSTALL&;t t
30143$ac_datarootdir_hack
30144"
30145eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
30146  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30147
30148test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30149  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
30150  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
30151      "$ac_tmp/out"`; test -z "$ac_out"; } &&
30152  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30153which seems to be undefined.  Please make sure it is defined" >&5
30154$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30155which seems to be undefined.  Please make sure it is defined" >&2;}
30156
30157  rm -f "$ac_tmp/stdin"
30158  case $ac_file in
30159  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
30160  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
30161  esac \
30162  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30163 ;;
30164  :H)
30165  #
30166  # CONFIG_HEADER
30167  #
30168  if test x"$ac_file" != x-; then
30169    {
30170      $as_echo "/* $configure_input  */" \
30171      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
30172    } >"$ac_tmp/config.h" \
30173      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30174    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
30175      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30176$as_echo "$as_me: $ac_file is unchanged" >&6;}
30177    else
30178      rm -f "$ac_file"
30179      mv "$ac_tmp/config.h" "$ac_file" \
30180	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
30181    fi
30182  else
30183    $as_echo "/* $configure_input  */" \
30184      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
30185      || as_fn_error $? "could not create -" "$LINENO" 5
30186  fi
30187 ;;
30188
30189  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30190$as_echo "$as_me: executing $ac_file commands" >&6;}
30191 ;;
30192  esac
30193
30194
30195  case $ac_file$ac_mode in
30196    "libtool":C)
30197
30198    # See if we are running on zsh, and set the options which allow our
30199    # commands through without removal of \ escapes.
30200    if test -n "${ZSH_VERSION+set}" ; then
30201      setopt NO_GLOB_SUBST
30202    fi
30203
30204    cfgfile="${ofile}T"
30205    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30206    $RM "$cfgfile"
30207
30208    cat <<_LT_EOF >> "$cfgfile"
30209#! $SHELL
30210
30211# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30212# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30213# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30214# NOTE: Changes made to this file will be lost: look at ltmain.sh.
30215#
30216#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30217#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
30218#                 Foundation, Inc.
30219#   Written by Gordon Matzigkeit, 1996
30220#
30221#   This file is part of GNU Libtool.
30222#
30223# GNU Libtool is free software; you can redistribute it and/or
30224# modify it under the terms of the GNU General Public License as
30225# published by the Free Software Foundation; either version 2 of
30226# the License, or (at your option) any later version.
30227#
30228# As a special exception to the GNU General Public License,
30229# if you distribute this file as part of a program or library that
30230# is built using GNU Libtool, you may include this file under the
30231# same distribution terms that you use for the rest of that program.
30232#
30233# GNU Libtool is distributed in the hope that it will be useful,
30234# but WITHOUT ANY WARRANTY; without even the implied warranty of
30235# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30236# GNU General Public License for more details.
30237#
30238# You should have received a copy of the GNU General Public License
30239# along with GNU Libtool; see the file COPYING.  If not, a copy
30240# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30241# obtained by writing to the Free Software Foundation, Inc.,
30242# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30243
30244
30245# The names of the tagged configurations supported by this script.
30246available_tags=""
30247
30248# ### BEGIN LIBTOOL CONFIG
30249
30250# Assembler program.
30251AS=$lt_AS
30252
30253# DLL creation program.
30254DLLTOOL=$lt_DLLTOOL
30255
30256# Object dumper program.
30257OBJDUMP=$lt_OBJDUMP
30258
30259# Which release of libtool.m4 was used?
30260macro_version=$macro_version
30261macro_revision=$macro_revision
30262
30263# Whether or not to build shared libraries.
30264build_libtool_libs=$enable_shared
30265
30266# Whether or not to build static libraries.
30267build_old_libs=$enable_static
30268
30269# What type of objects to build.
30270pic_mode=$pic_mode
30271
30272# Whether or not to optimize for fast installation.
30273fast_install=$enable_fast_install
30274
30275# Shell to use when invoking shell scripts.
30276SHELL=$lt_SHELL
30277
30278# An echo program that protects backslashes.
30279ECHO=$lt_ECHO
30280
30281# The PATH separator for the build system.
30282PATH_SEPARATOR=$lt_PATH_SEPARATOR
30283
30284# The host system.
30285host_alias=$host_alias
30286host=$host
30287host_os=$host_os
30288
30289# The build system.
30290build_alias=$build_alias
30291build=$build
30292build_os=$build_os
30293
30294# A sed program that does not truncate output.
30295SED=$lt_SED
30296
30297# Sed that helps us avoid accidentally triggering echo(1) options like -n.
30298Xsed="\$SED -e 1s/^X//"
30299
30300# A grep program that handles long lines.
30301GREP=$lt_GREP
30302
30303# An ERE matcher.
30304EGREP=$lt_EGREP
30305
30306# A literal string matcher.
30307FGREP=$lt_FGREP
30308
30309# A BSD- or MS-compatible name lister.
30310NM=$lt_NM
30311
30312# Whether we need soft or hard links.
30313LN_S=$lt_LN_S
30314
30315# What is the maximum length of a command?
30316max_cmd_len=$max_cmd_len
30317
30318# Object file suffix (normally "o").
30319objext=$ac_objext
30320
30321# Executable file suffix (normally "").
30322exeext=$exeext
30323
30324# whether the shell understands "unset".
30325lt_unset=$lt_unset
30326
30327# turn spaces into newlines.
30328SP2NL=$lt_lt_SP2NL
30329
30330# turn newlines into spaces.
30331NL2SP=$lt_lt_NL2SP
30332
30333# convert \$build file names to \$host format.
30334to_host_file_cmd=$lt_cv_to_host_file_cmd
30335
30336# convert \$build files to toolchain format.
30337to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30338
30339# Method to check whether dependent libraries are shared objects.
30340deplibs_check_method=$lt_deplibs_check_method
30341
30342# Command to use when deplibs_check_method = "file_magic".
30343file_magic_cmd=$lt_file_magic_cmd
30344
30345# How to find potential files when deplibs_check_method = "file_magic".
30346file_magic_glob=$lt_file_magic_glob
30347
30348# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
30349want_nocaseglob=$lt_want_nocaseglob
30350
30351# Command to associate shared and link libraries.
30352sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
30353
30354# The archiver.
30355AR=$lt_AR
30356
30357# Flags to create an archive.
30358AR_FLAGS=$lt_AR_FLAGS
30359
30360# How to feed a file listing to the archiver.
30361archiver_list_spec=$lt_archiver_list_spec
30362
30363# A symbol stripping program.
30364STRIP=$lt_STRIP
30365
30366# Commands used to install an old-style archive.
30367RANLIB=$lt_RANLIB
30368old_postinstall_cmds=$lt_old_postinstall_cmds
30369old_postuninstall_cmds=$lt_old_postuninstall_cmds
30370
30371# Whether to use a lock for old archive extraction.
30372lock_old_archive_extraction=$lock_old_archive_extraction
30373
30374# A C compiler.
30375LTCC=$lt_CC
30376
30377# LTCC compiler flags.
30378LTCFLAGS=$lt_CFLAGS
30379
30380# Take the output of nm and produce a listing of raw symbols and C names.
30381global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30382
30383# Transform the output of nm in a proper C declaration.
30384global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30385
30386# Transform the output of nm in a C name address pair.
30387global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30388
30389# Transform the output of nm in a C name address pair when lib prefix is needed.
30390global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30391
30392# Specify filename containing input files for \$NM.
30393nm_file_list_spec=$lt_nm_file_list_spec
30394
30395# The root where to search for dependent libraries,and in which our libraries should be installed.
30396lt_sysroot=$lt_sysroot
30397
30398# The name of the directory that contains temporary libtool files.
30399objdir=$objdir
30400
30401# Used to examine libraries when file_magic_cmd begins with "file".
30402MAGIC_CMD=$MAGIC_CMD
30403
30404# Must we lock files when doing compilation?
30405need_locks=$lt_need_locks
30406
30407# Manifest tool.
30408MANIFEST_TOOL=$lt_MANIFEST_TOOL
30409
30410# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30411DSYMUTIL=$lt_DSYMUTIL
30412
30413# Tool to change global to local symbols on Mac OS X.
30414NMEDIT=$lt_NMEDIT
30415
30416# Tool to manipulate fat objects and archives on Mac OS X.
30417LIPO=$lt_LIPO
30418
30419# ldd/readelf like tool for Mach-O binaries on Mac OS X.
30420OTOOL=$lt_OTOOL
30421
30422# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30423OTOOL64=$lt_OTOOL64
30424
30425# Old archive suffix (normally "a").
30426libext=$libext
30427
30428# Shared library suffix (normally ".so").
30429shrext_cmds=$lt_shrext_cmds
30430
30431# The commands to extract the exported symbol list from a shared archive.
30432extract_expsyms_cmds=$lt_extract_expsyms_cmds
30433
30434# Variables whose values should be saved in libtool wrapper scripts and
30435# restored at link time.
30436variables_saved_for_relink=$lt_variables_saved_for_relink
30437
30438# Do we need the "lib" prefix for modules?
30439need_lib_prefix=$need_lib_prefix
30440
30441# Do we need a version for libraries?
30442need_version=$need_version
30443
30444# Library versioning type.
30445version_type=$version_type
30446
30447# Shared library runtime path variable.
30448runpath_var=$runpath_var
30449
30450# Shared library path variable.
30451shlibpath_var=$shlibpath_var
30452
30453# Is shlibpath searched before the hard-coded library search path?
30454shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30455
30456# Format of library name prefix.
30457libname_spec=$lt_libname_spec
30458
30459# List of archive names.  First name is the real one, the rest are links.
30460# The last name is the one that the linker finds with -lNAME
30461library_names_spec=$lt_library_names_spec
30462
30463# The coded name of the library, if different from the real name.
30464soname_spec=$lt_soname_spec
30465
30466# Permission mode override for installation of shared libraries.
30467install_override_mode=$lt_install_override_mode
30468
30469# Command to use after installation of a shared archive.
30470postinstall_cmds=$lt_postinstall_cmds
30471
30472# Command to use after uninstallation of a shared archive.
30473postuninstall_cmds=$lt_postuninstall_cmds
30474
30475# Commands used to finish a libtool library installation in a directory.
30476finish_cmds=$lt_finish_cmds
30477
30478# As "finish_cmds", except a single script fragment to be evaled but
30479# not shown.
30480finish_eval=$lt_finish_eval
30481
30482# Whether we should hardcode library paths into libraries.
30483hardcode_into_libs=$hardcode_into_libs
30484
30485# Compile-time system search path for libraries.
30486sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30487
30488# Run-time system search path for libraries.
30489sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30490
30491# Whether dlopen is supported.
30492dlopen_support=$enable_dlopen
30493
30494# Whether dlopen of programs is supported.
30495dlopen_self=$enable_dlopen_self
30496
30497# Whether dlopen of statically linked programs is supported.
30498dlopen_self_static=$enable_dlopen_self_static
30499
30500# Commands to strip libraries.
30501old_striplib=$lt_old_striplib
30502striplib=$lt_striplib
30503
30504
30505# The linker used to build libraries.
30506LD=$lt_LD
30507
30508# How to create reloadable object files.
30509reload_flag=$lt_reload_flag
30510reload_cmds=$lt_reload_cmds
30511
30512# Commands used to build an old-style archive.
30513old_archive_cmds=$lt_old_archive_cmds
30514
30515# A language specific compiler.
30516CC=$lt_compiler
30517
30518# Is the compiler the GNU compiler?
30519with_gcc=$GCC
30520
30521# Compiler flag to turn off builtin functions.
30522no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30523
30524# Additional compiler flags for building library objects.
30525pic_flag=$lt_lt_prog_compiler_pic
30526
30527# How to pass a linker flag through the compiler.
30528wl=$lt_lt_prog_compiler_wl
30529
30530# Compiler flag to prevent dynamic linking.
30531link_static_flag=$lt_lt_prog_compiler_static
30532
30533# Does compiler simultaneously support -c and -o options?
30534compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30535
30536# Whether or not to add -lc for building shared libraries.
30537build_libtool_need_lc=$archive_cmds_need_lc
30538
30539# Whether or not to disallow shared libs when runtime libs are static.
30540allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30541
30542# Compiler flag to allow reflexive dlopens.
30543export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30544
30545# Compiler flag to generate shared objects directly from archives.
30546whole_archive_flag_spec=$lt_whole_archive_flag_spec
30547
30548# Whether the compiler copes with passing no objects directly.
30549compiler_needs_object=$lt_compiler_needs_object
30550
30551# Create an old-style archive from a shared archive.
30552old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30553
30554# Create a temporary old-style archive to link instead of a shared archive.
30555old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30556
30557# Commands used to build a shared archive.
30558archive_cmds=$lt_archive_cmds
30559archive_expsym_cmds=$lt_archive_expsym_cmds
30560
30561# Commands used to build a loadable module if different from building
30562# a shared archive.
30563module_cmds=$lt_module_cmds
30564module_expsym_cmds=$lt_module_expsym_cmds
30565
30566# Whether we are building with GNU ld or not.
30567with_gnu_ld=$lt_with_gnu_ld
30568
30569# Flag that allows shared libraries with undefined symbols to be built.
30570allow_undefined_flag=$lt_allow_undefined_flag
30571
30572# Flag that enforces no undefined symbols.
30573no_undefined_flag=$lt_no_undefined_flag
30574
30575# Flag to hardcode \$libdir into a binary during linking.
30576# This must work even if \$libdir does not exist
30577hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30578
30579# Whether we need a single "-rpath" flag with a separated argument.
30580hardcode_libdir_separator=$lt_hardcode_libdir_separator
30581
30582# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30583# DIR into the resulting binary.
30584hardcode_direct=$hardcode_direct
30585
30586# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30587# DIR into the resulting binary and the resulting library dependency is
30588# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30589# library is relocated.
30590hardcode_direct_absolute=$hardcode_direct_absolute
30591
30592# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30593# into the resulting binary.
30594hardcode_minus_L=$hardcode_minus_L
30595
30596# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30597# into the resulting binary.
30598hardcode_shlibpath_var=$hardcode_shlibpath_var
30599
30600# Set to "yes" if building a shared library automatically hardcodes DIR
30601# into the library and all subsequent libraries and executables linked
30602# against it.
30603hardcode_automatic=$hardcode_automatic
30604
30605# Set to yes if linker adds runtime paths of dependent libraries
30606# to runtime path list.
30607inherit_rpath=$inherit_rpath
30608
30609# Whether libtool must link a program against all its dependency libraries.
30610link_all_deplibs=$link_all_deplibs
30611
30612# Set to "yes" if exported symbols are required.
30613always_export_symbols=$always_export_symbols
30614
30615# The commands to list exported symbols.
30616export_symbols_cmds=$lt_export_symbols_cmds
30617
30618# Symbols that should not be listed in the preloaded symbols.
30619exclude_expsyms=$lt_exclude_expsyms
30620
30621# Symbols that must always be exported.
30622include_expsyms=$lt_include_expsyms
30623
30624# Commands necessary for linking programs (against libraries) with templates.
30625prelink_cmds=$lt_prelink_cmds
30626
30627# Commands necessary for finishing linking programs.
30628postlink_cmds=$lt_postlink_cmds
30629
30630# Specify filename containing input files.
30631file_list_spec=$lt_file_list_spec
30632
30633# How to hardcode a shared library path into an executable.
30634hardcode_action=$hardcode_action
30635
30636# ### END LIBTOOL CONFIG
30637
30638_LT_EOF
30639
30640  case $host_os in
30641  aix3*)
30642    cat <<\_LT_EOF >> "$cfgfile"
30643# AIX sometimes has problems with the GCC collect2 program.  For some
30644# reason, if we set the COLLECT_NAMES environment variable, the problems
30645# vanish in a puff of smoke.
30646if test "X${COLLECT_NAMES+set}" != Xset; then
30647  COLLECT_NAMES=
30648  export COLLECT_NAMES
30649fi
30650_LT_EOF
30651    ;;
30652  esac
30653
30654
30655ltmain="$ac_aux_dir/ltmain.sh"
30656
30657
30658  # We use sed instead of cat because bash on DJGPP gets confused if
30659  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
30660  # text mode, it properly converts lines to CR/LF.  This bash problem
30661  # is reportedly fixed, but why not run on old versions too?
30662  sed '$q' "$ltmain" >> "$cfgfile" \
30663     || (rm -f "$cfgfile"; exit 1)
30664
30665  if test x"$xsi_shell" = xyes; then
30666  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
30667func_dirname ()\
30668{\
30669\    case ${1} in\
30670\      */*) func_dirname_result="${1%/*}${2}" ;;\
30671\      *  ) func_dirname_result="${3}" ;;\
30672\    esac\
30673} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
30674  && mv -f "$cfgfile.tmp" "$cfgfile" \
30675    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30676test 0 -eq $? || _lt_function_replace_fail=:
30677
30678
30679  sed -e '/^func_basename ()$/,/^} # func_basename /c\
30680func_basename ()\
30681{\
30682\    func_basename_result="${1##*/}"\
30683} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
30684  && mv -f "$cfgfile.tmp" "$cfgfile" \
30685    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30686test 0 -eq $? || _lt_function_replace_fail=:
30687
30688
30689  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
30690func_dirname_and_basename ()\
30691{\
30692\    case ${1} in\
30693\      */*) func_dirname_result="${1%/*}${2}" ;;\
30694\      *  ) func_dirname_result="${3}" ;;\
30695\    esac\
30696\    func_basename_result="${1##*/}"\
30697} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
30698  && mv -f "$cfgfile.tmp" "$cfgfile" \
30699    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30700test 0 -eq $? || _lt_function_replace_fail=:
30701
30702
30703  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
30704func_stripname ()\
30705{\
30706\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
30707\    # positional parameters, so assign one to ordinary parameter first.\
30708\    func_stripname_result=${3}\
30709\    func_stripname_result=${func_stripname_result#"${1}"}\
30710\    func_stripname_result=${func_stripname_result%"${2}"}\
30711} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
30712  && mv -f "$cfgfile.tmp" "$cfgfile" \
30713    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30714test 0 -eq $? || _lt_function_replace_fail=:
30715
30716
30717  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
30718func_split_long_opt ()\
30719{\
30720\    func_split_long_opt_name=${1%%=*}\
30721\    func_split_long_opt_arg=${1#*=}\
30722} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
30723  && mv -f "$cfgfile.tmp" "$cfgfile" \
30724    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30725test 0 -eq $? || _lt_function_replace_fail=:
30726
30727
30728  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
30729func_split_short_opt ()\
30730{\
30731\    func_split_short_opt_arg=${1#??}\
30732\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
30733} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
30734  && mv -f "$cfgfile.tmp" "$cfgfile" \
30735    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30736test 0 -eq $? || _lt_function_replace_fail=:
30737
30738
30739  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
30740func_lo2o ()\
30741{\
30742\    case ${1} in\
30743\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
30744\      *)    func_lo2o_result=${1} ;;\
30745\    esac\
30746} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
30747  && mv -f "$cfgfile.tmp" "$cfgfile" \
30748    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30749test 0 -eq $? || _lt_function_replace_fail=:
30750
30751
30752  sed -e '/^func_xform ()$/,/^} # func_xform /c\
30753func_xform ()\
30754{\
30755    func_xform_result=${1%.*}.lo\
30756} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
30757  && mv -f "$cfgfile.tmp" "$cfgfile" \
30758    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30759test 0 -eq $? || _lt_function_replace_fail=:
30760
30761
30762  sed -e '/^func_arith ()$/,/^} # func_arith /c\
30763func_arith ()\
30764{\
30765    func_arith_result=$(( $* ))\
30766} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
30767  && mv -f "$cfgfile.tmp" "$cfgfile" \
30768    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30769test 0 -eq $? || _lt_function_replace_fail=:
30770
30771
30772  sed -e '/^func_len ()$/,/^} # func_len /c\
30773func_len ()\
30774{\
30775    func_len_result=${#1}\
30776} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
30777  && mv -f "$cfgfile.tmp" "$cfgfile" \
30778    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30779test 0 -eq $? || _lt_function_replace_fail=:
30780
30781fi
30782
30783if test x"$lt_shell_append" = xyes; then
30784  sed -e '/^func_append ()$/,/^} # func_append /c\
30785func_append ()\
30786{\
30787    eval "${1}+=\\${2}"\
30788} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
30789  && mv -f "$cfgfile.tmp" "$cfgfile" \
30790    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30791test 0 -eq $? || _lt_function_replace_fail=:
30792
30793
30794  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
30795func_append_quoted ()\
30796{\
30797\    func_quote_for_eval "${2}"\
30798\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
30799} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
30800  && mv -f "$cfgfile.tmp" "$cfgfile" \
30801    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30802test 0 -eq $? || _lt_function_replace_fail=:
30803
30804
30805  # Save a `func_append' function call where possible by direct use of '+='
30806  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
30807    && mv -f "$cfgfile.tmp" "$cfgfile" \
30808      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30809  test 0 -eq $? || _lt_function_replace_fail=:
30810else
30811  # Save a `func_append' function call even when '+=' is not available
30812  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
30813    && mv -f "$cfgfile.tmp" "$cfgfile" \
30814      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30815  test 0 -eq $? || _lt_function_replace_fail=:
30816fi
30817
30818if test x"$_lt_function_replace_fail" = x":"; then
30819  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
30820$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
30821fi
30822
30823
30824   mv -f "$cfgfile" "$ofile" ||
30825    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30826  chmod +x "$ofile"
30827
30828 ;;
30829    "default":C)
30830# Commands run at the end of config.status:
30831for i in $APR_SAVE_HEADERS; do
30832  if cmp -s $i $i.save 2>/dev/null; then
30833    mv $i.save $i
30834    { $as_echo "$as_me:${as_lineno-$LINENO}: $i is unchanged" >&5
30835$as_echo "$as_me: $i is unchanged" >&6;}
30836  fi
30837  rm -f $i.save
30838done
30839chmod +x apr-$APR_MAJOR_VERSION-config
30840 ;;
30841
30842  esac
30843done # for ac_tag
30844
30845
30846as_fn_exit 0
30847_ACEOF
30848ac_clean_files=$ac_clean_files_save
30849
30850test $ac_write_fail = 0 ||
30851  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30852
30853
30854# configure is writing to config.log, and then calls config.status.
30855# config.status does its own redirection, appending to config.log.
30856# Unfortunately, on DOS this fails, as config.log is still kept open
30857# by configure, so config.status won't be able to write to it; its
30858# output is simply discarded.  So we exec the FD to /dev/null,
30859# effectively closing config.log, so it can be properly (re)opened and
30860# appended to by config.status.  When coming back to configure, we
30861# need to make the FD available again.
30862if test "$no_create" != yes; then
30863  ac_cs_success=:
30864  ac_config_status_args=
30865  test "$silent" = yes &&
30866    ac_config_status_args="$ac_config_status_args --quiet"
30867  exec 5>/dev/null
30868  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30869  exec 5>>config.log
30870  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30871  # would make configure fail if this is the last instruction.
30872  $ac_cs_success || as_fn_exit 1
30873fi
30874if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30875  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30876$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30877fi
30878
30879