configure revision 251886
11638Srgrimes#! /bin/sh
21638Srgrimes# Guess values for system-dependent variables and create Makefiles.
31638Srgrimes# Generated by GNU Autoconf 2.68.
4107143Sgordon#
5107143Sgordon#
6107143Sgordon# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
71638Srgrimes# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
81638Srgrimes# Foundation, Inc.
91638Srgrimes#
101638Srgrimes#
111638Srgrimes# This configure script is free software; the Free Software Foundation
121638Srgrimes# gives unlimited permission to copy, distribute and modify it.
131638Srgrimes## -------------------- ##
141638Srgrimes## M4sh Initialization. ##
15263142Seadler## -------------------- ##
161638Srgrimes
171638Srgrimes# Be more Bourne compatible
181638SrgrimesDUALCASE=1; export DUALCASE # for MKS sh
191638Srgrimesif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
201638Srgrimes  emulate sh
211638Srgrimes  NULLCMD=:
221638Srgrimes  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
231638Srgrimes  # is contrary to our usage.  Disable this feature.
241638Srgrimes  alias -g '${1+"$@"}'='"$@"'
251638Srgrimes  setopt NO_GLOB_SUBST
261638Srgrimeselse
271638Srgrimes  case `(set -o) 2>/dev/null` in #(
281638Srgrimes  *posix*) :
291638Srgrimes    set -o posix ;; #(
301638Srgrimes  *) :
311638Srgrimes     ;;
3250476Speteresac
331638Srgrimesfi
34351207Savg
351638Srgrimes
3679538Sruas_nl='
371638Srgrimes'
381638Srgrimesexport as_nl
39107383Sru# Printing a long string crashes Solaris 7 /usr/bin/printf.
401638Srgrimesas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4168962Sruas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4233839Sjkhas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4333839Sjkh# Prefer a ksh shell builtin over an external printf program on Solaris,
44107383Sru# but without wasting forks for bash or zsh.
4533839Sjkhif test -z "$BASH_VERSION$ZSH_VERSION" \
461638Srgrimes    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47340966Seugen  as_echo='print -r --'
4833839Sjkh  as_echo_n='print -rn --'
49107143Sgordonelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
501638Srgrimes  as_echo='printf %s\n'
5199969Scharnier  as_echo_n='printf %s'
5299969Scharnierelse
53107143Sgordon  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54107143Sgordon    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55107143Sgordon    as_echo_n='/usr/ucb/echo -n'
56107143Sgordon  else
571638Srgrimes    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58107143Sgordon    as_echo_n_body='eval
59107383Sru      arg=$1;
60107383Sru      case $arg in #(
61107383Sru      *"$as_nl"*)
62107143Sgordon	expr "X$arg" : "X\\(.*\\)$as_nl";
63107143Sgordon	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64107143Sgordon      esac;
65107143Sgordon      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66107383Sru    '
67107383Sru    export as_echo_n_body
68107383Sru    as_echo_n='sh -c $as_echo_n_body as_echo'
69107383Sru  fi
70107143Sgordon  export as_echo_body
71107143Sgordon  as_echo='sh -c $as_echo_body as_echo'
72107383Srufi
73107143Sgordon
74107383Sru# The user is always right.
75107383Sruif test "${PATH_SEPARATOR+set}" != set; then
76107383Sru  PATH_SEPARATOR=:
7799969Scharnier  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7899969Scharnier    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7999969Scharnier      PATH_SEPARATOR=';'
80107143Sgordon  }
8133839Sjkhfi
8281285Sru
8381285Sru
84107143Sgordon# IFS
85107143Sgordon# We need space, tab and new line, in precisely that order.  Quoting is
861638Srgrimes# there to prevent editors from complaining about space-tab.
8763547Sben# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88107383Sru# splitting by setting IFS to empty value.)
8963547SbenIFS=" ""	$as_nl"
9063547Sben
91325052Sse# Find who we are.  Look in the path if we contain no directory separator.
92351207Savgas_myself=
93351207Savgcase $0 in #((
94351207Savg  *[\\/]* ) as_myself=$0 ;;
95351207Savg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96351207Savgfor as_dir in $PATH
97351207Savgdo
98351207Savg  IFS=$as_save_IFS
99107383Sru  test -z "$as_dir" && as_dir=.
100107143Sgordon    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101107143Sgordon  done
102107143SgordonIFS=$as_save_IFS
103107383Sru
104107143Sgordon     ;;
105107383Sruesac
106107143Sgordon# We did not find ourselves, most probably we were run as `sh COMMAND'
107107383Sru# in which case we are not to be found in the path.
108107143Sgordonif test "x$as_myself" = x; then
109107143Sgordon  as_myself=$0
110107143Sgordonfi
111107383Sruif test ! -f "$as_myself"; then
112107383Sru  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113107143Sgordon  exit 1
114107143Sgordonfi
115107143Sgordon
116153534Sdougb# Unset variables that we do not need and which cause bugs (e.g. in
117153534Sdougb# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118153534Sdougb# suppresses any "Segmentation fault" message there.  '((' could
119153534Sdougb# trigger a bug in pdksh 5.2.14.
120153534Sdougbfor as_var in BASH_ENV ENV MAIL MAILPATH
121153534Sdougbdo eval test x\${$as_var+set} = xset \
122153534Sdougb  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123153534Sdougbdone
124153534SdougbPS1='$ '
125153534SdougbPS2='> '
126153534SdougbPS4='+ '
127153534Sdougb
128153534Sdougb# NLS nuisances.
129153534SdougbLC_ALL=C
130153534Sdougbexport LC_ALL
131162404SruLANGUAGE=C
132250968Sjamieexport LANGUAGE
133250968Sjamie
134250968Sjamie# CDPATH.
135153534Sdougb(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136153534Sdougb
137256775Scpercivaif test "x$CONFIG_SHELL" = x; then
138256775Scperciva  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139256775Scperciva  emulate sh
140256775Scperciva  NULLCMD=:
141256775Scperciva  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142256775Scperciva  # is contrary to our usage.  Disable this feature.
143256775Scperciva  alias -g '\${1+\"\$@\"}'='\"\$@\"'
144107143Sgordon  setopt NO_GLOB_SUBST
145107143Sgordonelse
146107143Sgordon  case \`(set -o) 2>/dev/null\` in #(
147107143Sgordon  *posix*) :
148107143Sgordon    set -o posix ;; #(
149107383Sru  *) :
150153534Sdougb     ;;
151107383Sruesac
152107143Sgordonfi
153153534Sdougb"
154107143Sgordon  as_required="as_fn_return () { (exit \$1); }
155107383Sruas_fn_success () { as_fn_return 0; }
156107383Sruas_fn_failure () { as_fn_return 1; }
157107383Sruas_fn_ret_success () { return 0; }
158107143Sgordonas_fn_ret_failure () { return 1; }
159107143Sgordon
160107383Sruexitcode=0
161107143Sgordonas_fn_success || { exitcode=1; echo as_fn_success failed.; }
162107383Sruas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163107143Sgordonas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164153534Sdougbas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165153534Sdougbif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166153534Sdougb
167153534Sdougbelse
168256775Scperciva  exitcode=1; echo positional parameters were not saved.
169256775Scpercivafi
170256775Scpercivatest x\$exitcode = x0 || exit 1"
171256775Scperciva  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172256775Scperciva  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173153534Sdougb  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174153534Sdougb  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175153534Sdougbtest \$(( 1 + 1 )) = 2 || exit 1
176153534Sdougb
177153534Sdougb  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178153534Sdougb    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179153534Sdougb    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180153534Sdougb    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181256775Scperciva    PATH=/empty FPATH=/empty; export PATH FPATH
182256775Scperciva    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183256775Scperciva      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184256775Scperciva  if (eval "$as_required") 2>/dev/null; then :
185256775Scperciva  as_have_required=yes
186256775Scpercivaelse
187256775Scperciva  as_have_required=no
188107143Sgordonfi
189107383Sru  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190107143Sgordon
191107143Sgordonelse
192107143Sgordon  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193107143Sgordonas_found=false
194107143Sgordonfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195107143Sgordondo
196107143Sgordon  IFS=$as_save_IFS
197107143Sgordon  test -z "$as_dir" && as_dir=.
198153534Sdougb  as_found=:
199153534Sdougb  case $as_dir in #(
200107143Sgordon	 /*)
201107143Sgordon	   for as_base in sh bash ksh sh5; do
202107143Sgordon	     # Try only shells that exist, to save several forks.
203107143Sgordon	     as_shell=$as_dir/$as_base
204153534Sdougb	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205153534Sdougb		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206153534Sdougb  CONFIG_SHELL=$as_shell as_have_required=yes
207107143Sgordon		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208107383Sru  break 2
209153534Sdougbfi
210107383Srufi
211107143Sgordon	   done;;
212107143Sgordon       esac
213107383Sru  as_found=false
214107143Sgordondone
215107383Sru$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216107383Sru	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217107383Sru  CONFIG_SHELL=$SHELL as_have_required=yes
218107143Sgordonfi; }
219107143SgordonIFS=$as_save_IFS
220107383Sru
221107143Sgordon
222351207Savg      if test "x$CONFIG_SHELL" != x; then :
223107143Sgordon  # We cannot yet assume a decent shell, so we have to provide a
224107143Sgordon	# neutralization value for shells without unset; and this also
225107383Sru	# works around shells that cannot unset nonexistent variables.
226107143Sgordon	# Preserve -v and -x to the replacement shell.
227107143Sgordon	BASH_ENV=/dev/null
228107383Sru	ENV=/dev/null
229107143Sgordon	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230107143Sgordon	export CONFIG_SHELL
231107383Sru	case $- in # ((((
232107143Sgordon	  *v*x* | *x*v* ) as_opts=-vx ;;
233107143Sgordon	  *v* ) as_opts=-v ;;
234107383Sru	  *x* ) as_opts=-x ;;
235107143Sgordon	  * ) as_opts= ;;
236107143Sgordon	esac
237107383Sru	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238107143Sgordonfi
239107143Sgordon
240153534Sdougb    if test x$as_have_required = xno; then :
241107143Sgordon  $as_echo "$0: This script requires a shell more modern than all"
242153534Sdougb  $as_echo "$0: the shells that I found on your system."
243107143Sgordon  if test x${ZSH_VERSION+set} = xset ; then
244259879Spluknet    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245107383Sru    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246107143Sgordon  else
247107143Sgordon    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248107143Sgordon$0: including any error possibly output before this
249107143Sgordon$0: message. Then install a modern shell, or manually run
250107143Sgordon$0: the script under such a shell if you do have one."
251107143Sgordon  fi
252107143Sgordon  exit 1
253107143Sgordonfi
254107143Sgordonfi
255107143Sgordonfi
256107143SgordonSHELL=${CONFIG_SHELL-/bin/sh}
257107143Sgordonexport SHELL
258107143Sgordon# Unset more variables known to interfere with behavior of common tools.
259107143SgordonCLICOLOR_FORCE= GREP_OPTIONS=
260107143Sgordonunset CLICOLOR_FORCE GREP_OPTIONS
261107143Sgordon
262107143Sgordon## --------------------- ##
263107143Sgordon## M4sh Shell Functions. ##
264107143Sgordon## --------------------- ##
265169668Smtm# as_fn_unset VAR
266169668Smtm# ---------------
267169668Smtm# Portably unset VAR.
268169668Smtmas_fn_unset ()
269235873Swblock{
270107143Sgordon  { eval $1=; unset $1;}
271107143Sgordon}
272107143Sgordonas_unset=as_fn_unset
273107143Sgordon
274107143Sgordon# as_fn_set_status STATUS
275107383Sru# -----------------------
276107143Sgordon# Set $? to STATUS, without forking.
277107383Sruas_fn_set_status ()
278107143Sgordon{
279107383Sru  return $1
280107383Sru} # as_fn_set_status
281107143Sgordon
282107143Sgordon# as_fn_exit STATUS
283107383Sru# -----------------
284107383Sru# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285107383Sruas_fn_exit ()
286107383Sru{
287107383Sru  set +e
288107143Sgordon  as_fn_set_status $1
289107143Sgordon  exit $1
290107143Sgordon} # as_fn_exit
291107143Sgordon
292107143Sgordon# as_fn_mkdir_p
293107143Sgordon# -------------
294107143Sgordon# Create "$as_dir" as a directory, including parents if necessary.
295107143Sgordonas_fn_mkdir_p ()
296107143Sgordon{
297107143Sgordon
298107383Sru  case $as_dir in #(
299107143Sgordon  -*) as_dir=./$as_dir;;
300107143Sgordon  esac
301107143Sgordon  test -d "$as_dir" || eval $as_mkdir_p || {
302107383Sru    as_dirs=
303107143Sgordon    while :; do
304107143Sgordon      case $as_dir in #(
305107143Sgordon      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306107383Sru      *) as_qdir=$as_dir;;
307107143Sgordon      esac
308107383Sru      as_dirs="'$as_qdir' $as_dirs"
309107143Sgordon      as_dir=`$as_dirname -- "$as_dir" ||
310107143Sgordon$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311107143Sgordon	 X"$as_dir" : 'X\(//\)[^/]' \| \
312107383Sru	 X"$as_dir" : 'X\(//\)$' \| \
313107143Sgordon	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314107383Sru$as_echo X"$as_dir" |
315107143Sgordon    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316107383Sru	    s//\1/
317107383Sru	    q
318107143Sgordon	  }
319107143Sgordon	  /^X\(\/\/\)[^/].*/{
320107383Sru	    s//\1/
321107143Sgordon	    q
322298515Slme	  }
323298515Slme	  /^X\(\/\/\)$/{
324298515Slme	    s//\1/
325298515Slme	    q
326107383Sru	  }
327107143Sgordon	  /^X\(\/\).*/{
328107143Sgordon	    s//\1/
329107383Sru	    q
330255809Sdes	  }
331255809Sdes	  s/.*/./; q'`
332255809Sdes      test -d "$as_dir" && break
333107383Sru    done
334107143Sgordon    test -z "$as_dirs" || eval "mkdir $as_dirs"
335107143Sgordon  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336107143Sgordon
337107143Sgordon
338107143Sgordon} # as_fn_mkdir_p
339107143Sgordon# as_fn_append VAR VALUE
340107143Sgordon# ----------------------
341107383Sru# Append the text in VALUE to the end of the definition contained in VAR. Take
342107383Sru# advantage of any shell optimizations that allow amortized linear growth over
343107143Sgordon# repeated appends, instead of the typical quadratic growth present in naive
344107143Sgordon# implementations.
345107143Sgordonif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346107143Sgordon  eval 'as_fn_append ()
347107143Sgordon  {
348107383Sru    eval $1+=\$2
349107383Sru  }'
35063547Sbenelse
35163547Sben  as_fn_append ()
35263547Sben  {
35363547Sben    eval $1=\$$1\$2
35463547Sben  }
35563547Sbenfi # as_fn_append
35663547Sben
35763547Sben# as_fn_arith ARG...
35863547Sben# ------------------
35963547Sben# Perform arithmetic evaluation on the ARGs, and store the result in the
360107383Sru# global $as_val. Take advantage of shells that can avoid forks. The arguments
36163547Sben# must be portable across $(()) and expr.
36263547Sbenif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363107383Sru  eval 'as_fn_arith ()
36463547Sben  {
36563547Sben    as_val=$(( $* ))
366107383Sru  }'
367102182Sschweikhelse
36863547Sben  as_fn_arith ()
369107383Sru  {
37063547Sben    as_val=`expr "$@" || test $? -eq 1`
37163547Sben  }
37263547Sbenfi # as_fn_arith
37363547Sben
37463547Sben
37563547Sben# as_fn_error STATUS ERROR [LINENO LOG_FD]
37663547Sben# ----------------------------------------
37763547Sben# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37863547Sben# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
37963547Sben# script with STATUS, using 1 if that was 0.
380107143Sgordonas_fn_error ()
38163547Sben{
38263547Sben  as_status=$1; test $as_status -eq 0 && as_status=1
38363547Sben  if test "$4"; then
38463547Sben    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
38563547Sben    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
38663547Sben  fi
387107143Sgordon  $as_echo "$as_me: error: $2" >&2
388107383Sru  as_fn_exit $as_status
3891638Srgrimes} # as_fn_error
39068962Sru
3911638Srgrimesif expr a : '\(a\)' >/dev/null 2>&1 &&
392107383Sru   test "X`expr 00001 : '.*\(...\)'`" = X001; then
393107143Sgordon  as_expr=expr
394107383Sruelse
395107143Sgordon  as_expr=false
396107143Sgordonfi
397107143Sgordon
3981638Srgrimesif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3991638Srgrimes  as_basename=basename
4001638Srgrimeselse
401107143Sgordon  as_basename=false
402107143Sgordonfi
403107383Sru
404107383Sruif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405107383Sru  as_dirname=dirname
406107383Sruelse
407107383Sru  as_dirname=false
408107383Srufi
409107383Sru
410107383Sruas_me=`$as_basename -- "$0" ||
411107383Sru$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412107383Sru	 X"$0" : 'X\(//\)$' \| \
413107383Sru	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4141638Srgrimes$as_echo X/"$0" |
41599969Scharnier    sed '/^.*\/\([^/][^/]*\)\/*$/{
416107383Sru	    s//\1/
417107143Sgordon	    q
418107383Sru	  }
419107143Sgordon	  /^X\/\(\/\/\)$/{
420171562Sdelphij	    s//\1/
421171562Sdelphij	    q
422107143Sgordon	  }
423107143Sgordon	  /^X\/\(\/\).*/{
424107143Sgordon	    s//\1/
425107143Sgordon	    q
426107143Sgordon	  }
427107143Sgordon	  s/.*/./; q'`
428107383Sru
42999969Scharnier# Avoid depending upon Character Ranges.
43033839Sjkhas_cr_letters='abcdefghijklmnopqrstuvwxyz'
43199969Scharnieras_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43299969Scharnieras_cr_Letters=$as_cr_letters$as_cr_LETTERS
43399969Scharnieras_cr_digits='0123456789'
43457731Ssheldonhas_cr_alnum=$as_cr_Letters$as_cr_digits
43557731Ssheldonh
43633839Sjkh
437107383Sru  as_lineno_1=$LINENO as_lineno_1a=$LINENO
438107383Sru  as_lineno_2=$LINENO as_lineno_2a=$LINENO
439107383Sru  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440107383Sru  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441107383Sru  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442107383Sru  sed -n '
443107383Sru    p
444107383Sru    /[$]LINENO/=
445107383Sru  ' <$as_myself |
446107383Sru    sed '
447107383Sru      s/[$]LINENO.*/&-/
448107383Sru      t lineno
449107383Sru      b
450107383Sru      :lineno
45133839Sjkh      N
45233839Sjkh      :loop
45333839Sjkh      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
45499969Scharnier      t loop
455107383Sru      s/-\n.*//
456107143Sgordon    ' >$as_me.lineno &&
45740006Sphk  chmod +x "$as_me.lineno" ||
45840006Sphk    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
45940006Sphk
46040006Sphk  # Don't try to exec as it changes $[0], causing all sort of problems
46140006Sphk  # (the dirname of $[0] is not the place where we might find the
46240006Sphk  # original and so on.  Autoconf is especially sensitive to this).
463107143Sgordon  . "./$as_me.lineno"
464107383Sru  # Exit status is that of the last command.
465107143Sgordon  exit
46633839Sjkh}
467107143Sgordon
468107143SgordonECHO_C= ECHO_N= ECHO_T=
469107143Sgordoncase `echo -n x` in #(((((
470107143Sgordon-n*)
4711638Srgrimes  case `echo 'xy\c'` in
472107143Sgordon  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4731638Srgrimes  xy)  ECHO_C='\c';;
474140561Sru  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475235441Sgjb       ECHO_T='	';;
476140561Sru  esac;;
477140561Sru*)
478140561Sru  ECHO_N='-n';;
479140561Sruesac
480140561Sru
481140561Srurm -f conf$$ conf$$.exe conf$$.file
482140561Sruif test -d conf$$.dir; then
483140561Sru  rm -f conf$$.dir/conf$$.file
484140561Sruelse
485140573Sru  rm -f conf$$.dir
486140561Sru  mkdir conf$$.dir 2>/dev/null
487140561Srufi
488140561Sruif (echo >conf$$.file) 2>/dev/null; then
489140573Sru  if ln -s conf$$.file conf$$ 2>/dev/null; then
490140573Sru    as_ln_s='ln -s'
491140573Sru    # ... but there are two gotchas:
492140561Sru    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
49363547Sben    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494107143Sgordon    # In both cases, we have to default to `cp -p'.
495107383Sru    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496107383Sru      as_ln_s='cp -p'
497107383Sru  elif ln conf$$.file conf$$ 2>/dev/null; then
498107143Sgordon    as_ln_s=ln
499107143Sgordon  else
500107143Sgordon    as_ln_s='cp -p'
501107143Sgordon  fi
502107143Sgordonelse
503107143Sgordon  as_ln_s='cp -p'
504107143Sgordonfi
505107383Srurm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506107143Sgordonrmdir conf$$.dir 2>/dev/null
507107143Sgordon
508230116Sdougbif mkdir -p . 2>/dev/null; then
509107143Sgordon  as_mkdir_p='mkdir -p "$as_dir"'
510107143Sgordonelse
511107143Sgordon  test -d ./-p && rmdir ./-p
512107143Sgordon  as_mkdir_p=false
513107143Sgordonfi
514107143Sgordon
515107383Sruif test -x / >/dev/null 2>&1; then
516107383Sru  as_test_x='test -x'
517107383Sruelse
518107143Sgordon  if ls -dL / >/dev/null 2>&1; then
519107143Sgordon    as_ls_L_option=L
520107143Sgordon  else
521107143Sgordon    as_ls_L_option=
522107143Sgordon  fi
523107143Sgordon  as_test_x='
524107143Sgordon    eval sh -c '\''
525107143Sgordon      if test -d "$1"; then
526107383Sru	test -d "$1/.";
527107143Sgordon      else
528107143Sgordon	case $1 in #(
529230116Sdougb	-*)set "./$1";;
530107143Sgordon	esac;
531107143Sgordon	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532107143Sgordon	???[sx]*):;;*)false;;esac;fi
533107143Sgordon    '\'' sh
534107143Sgordon  '
535107143Sgordonfi
536107143Sgordonas_executable_p=$as_test_x
537107143Sgordon
538107143Sgordon# Sed expression to map a string onto a valid CPP name.
539107143Sgordonas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540107143Sgordon
541107143Sgordon# Sed expression to map a string onto a valid variable name.
542107143Sgordonas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543107143Sgordon
54463547SbenSHELL=${CONFIG_SHELL-/bin/sh}
54563547Sben
54663547Sben
54763547Sbentest -n "$DJDIR" || exec 7<&0 </dev/null
54863547Sbenexec 6>&1
5491638Srgrimes
55063547Sben# Name of the host.
55133839Sjkh# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5521638Srgrimes# so uname gets run too.
553340966Seugenac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554276263Sbapt
555131594Sru#
5561638Srgrimes# Initializations.
557325052Sse#
558351207Savgac_default_prefix=/usr/local
559325052Sseac_clean_files=
5601638Srgrimesac_config_libobj_dir=.
5611638SrgrimesLIBOBJS=
5621638Srgrimescross_compiling=no
56399969Scharniersubdirs=
5641638SrgrimesMFLAGS=
565MAKEFLAGS=
566
567# Identity of this package.
568PACKAGE_NAME=
569PACKAGE_TARNAME=
570PACKAGE_VERSION=
571PACKAGE_STRING=
572PACKAGE_BUGREPORT=
573PACKAGE_URL=
574
575ac_unique_file="build/apr_common.m4"
576# Factoring default headers for most tests.
577ac_includes_default="\
578#include <stdio.h>
579#ifdef HAVE_SYS_TYPES_H
580# include <sys/types.h>
581#endif
582#ifdef HAVE_SYS_STAT_H
583# include <sys/stat.h>
584#endif
585#ifdef STDC_HEADERS
586# include <stdlib.h>
587# include <stddef.h>
588#else
589# ifdef HAVE_STDLIB_H
590#  include <stdlib.h>
591# endif
592#endif
593#ifdef HAVE_STRING_H
594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595#  include <memory.h>
596# endif
597# include <string.h>
598#endif
599#ifdef HAVE_STRINGS_H
600# include <strings.h>
601#endif
602#ifdef HAVE_INTTYPES_H
603# include <inttypes.h>
604#endif
605#ifdef HAVE_STDINT_H
606# include <stdint.h>
607#endif
608#ifdef HAVE_UNISTD_H
609# include <unistd.h>
610#endif"
611
612ac_subst_vars='LTLIBOBJS
613LIBOBJS
614INCLUDE_OUTPUTS
615INCLUDE_RULES
616LT_NO_INSTALL
617LIBTOOL_LIBS
618DEFAULT_OSDIR
619OSDIR
620INCLUDES
621LDLIBS
622NOTEST_INCLUDES
623NOTEST_LIBS
624NOTEST_LDFLAGS
625NOTEST_CFLAGS
626NOTEST_CPPFLAGS
627EXTRA_INCLUDES
628EXTRA_LIBS
629EXTRA_LDFLAGS
630EXTRA_CFLAGS
631EXTRA_CPPFLAGS
632apr_has_user
633apr_thread_func
634apr_procattr_user_set_requires_password
635apr_has_xthread_files
636have_unicode_fs
637have_ipv6
638have_sa_storage
639have_sctp
640acceptfilter
641have_corkable_tcp
642apr_tcp_nopush_flag
643file_as_socket
644have_in_addr
645osuuid
646rand
647proclockglobal
648pthreadser
649procpthreadser
650fcntlser
651posixser
652sysvser
653flockser
654hasprocpthreadser
655hasfcntlser
656hasposixser
657hassysvser
658hasflockser
659have_union_semun
660struct_rlimit
661have_proc_invoked
662oc
663aprdso
664have_memchr
665have_strstr
666have_strdup
667have_strcasecmp
668have_stricmp
669have_strncasecmp
670have_strnicmp
671ino_t_value
672have_iovec
673aprlfs
674bigendian
675stdint
676uint64_literal
677int64_literal
678pid_t_fmt
679off_t_fmt
680size_t_fmt
681ssize_t_fmt
682uint64_t_hex_fmt
683uint64_t_fmt
684int64_t_fmt
685socklen_t_value
686ssize_t_value
687size_t_value
688off_t_value
689int64_value
690long_value
691int_value
692short_value
693voidp_size
694winsock2h
695windowsh
696semaphoreh
697pthreadh
698processh
699sys_waith
700signalh
701unistdh
702timeh
703sys_unh
704sys_uioh
705sys_timeh
706sys_typesh
707sys_sockioh
708sys_socketh
709sys_signalh
710sys_sendfileh
711sys_ioctlh
712stringsh
713stringh
714stdlibh
715stdioh
716stdargh
717netinet_tcph
718netinet_sctp_uioh
719netinet_sctph
720netinet_inh
721sys_syslimitsh
722netdbh
723limitsh
724ioh
725fcntlh
726direnth
727errnoh
728crypth
729ctypeh
730conioh
731arpa_ineth
732have_memmove
733mmap
734have_getrlimit
735have_setrlimit
736have_sigaction
737have_inet_network
738o_nonblock_inherited
739tcp_nodelay_inherited
740have_inet_addr
741fork
742apr_inaddr_none
743sendfile
744ALLOCA
745sharedmem
746havewin32shm
747haveos2shm
748havebeosarea
749haveshmget
750havemmapshm
751havemmaptmp
752usewin32shm
753useos2shm
754usebeosarea
755useshmget
756usemmapshm
757usemmaptmp
758havemmapanon
759havemmapzero
760haveshmgetanon
761usemmapanon
762usemmapzero
763useshmgetanon
764have_sigwait
765have_sigsuspend
766threads
767INSTALL_SUBDIRS
768eolstr
769proc_mutex_is_global
770OBJECTS_PLATFORM
771MKDEP
772LT_VERSION
773LT_LDFLAGS
774LTFLAGS
775shlibpath_var
776export_lib_target
777lib_target
778so_ext
779link
780lt_compile
781installbuilddir
782OTOOL64
783OTOOL
784LIPO
785NMEDIT
786DSYMUTIL
787MANIFEST_TOOL
788STRIP
789ac_ct_AR
790NM
791ac_ct_DUMPBIN
792DUMPBIN
793LD
794FGREP
795LIBTOOL
796OBJDUMP
797DLLTOOL
798APR_LIBNAME
799apr_charset_ebcdic
800EGREP
801GREP
802AR
803ASCPP
804AS
805RM
806INSTALL_DATA
807INSTALL_SCRIPT
808INSTALL_PROGRAM
809RANLIB
810LN_S
811AWK
812CPP
813SET_MAKE
814SED
815OBJEXT
816EXEEXT
817ac_ct_CC
818CPPFLAGS
819LDFLAGS
820CFLAGS
821CC
822APR_MAJOR_VERSION
823APR_DOTTED_VERSION
824apr_builders
825top_builddir
826APR_CONFIG_LOCATION
827apr_builddir
828apr_srcdir
829target_os
830target_vendor
831target_cpu
832target
833host_os
834host_vendor
835host_cpu
836host
837build_os
838build_vendor
839build_cpu
840build
841target_alias
842host_alias
843build_alias
844LIBS
845ECHO_T
846ECHO_N
847ECHO_C
848DEFS
849mandir
850localedir
851libdir
852psdir
853pdfdir
854dvidir
855htmldir
856infodir
857docdir
858oldincludedir
859includedir
860localstatedir
861sharedstatedir
862sysconfdir
863datadir
864datarootdir
865libexecdir
866sbindir
867bindir
868program_transform_name
869prefix
870exec_prefix
871PACKAGE_URL
872PACKAGE_BUGREPORT
873PACKAGE_STRING
874PACKAGE_VERSION
875PACKAGE_TARNAME
876PACKAGE_NAME
877PATH_SEPARATOR
878SHELL'
879ac_subst_files=''
880ac_user_opts='
881enable_option_checking
882enable_layout
883enable_experimental_libtool
884enable_shared
885enable_static
886with_pic
887enable_fast_install
888with_gnu_ld
889with_sysroot
890enable_libtool_lock
891with_installbuilddir
892with_libtool
893enable_debug
894enable_maintainer_mode
895enable_profile
896enable_pool_debug
897enable_malloc_debug
898enable_lfs
899enable_nonportable_atomics
900enable_threads
901with_efence
902with_sendfile
903enable_allocator_uses_mmap
904enable_dso
905enable_other_child
906with_egd
907with_devrandom
908enable_ipv6
909'
910      ac_precious_vars='build_alias
911host_alias
912target_alias
913CC
914CFLAGS
915LDFLAGS
916LIBS
917CPPFLAGS
918CPP'
919
920
921# Initialize some variables set by options.
922ac_init_help=
923ac_init_version=false
924ac_unrecognized_opts=
925ac_unrecognized_sep=
926# The variables have the same names as the options, with
927# dashes changed to underlines.
928cache_file=/dev/null
929exec_prefix=NONE
930no_create=
931no_recursion=
932prefix=NONE
933program_prefix=NONE
934program_suffix=NONE
935program_transform_name=s,x,x,
936silent=
937site=
938srcdir=
939verbose=
940x_includes=NONE
941x_libraries=NONE
942
943# Installation directory options.
944# These are left unexpanded so users can "make install exec_prefix=/foo"
945# and all the variables that are supposed to be based on exec_prefix
946# by default will actually change.
947# Use braces instead of parens because sh, perl, etc. also accept them.
948# (The list follows the same order as the GNU Coding Standards.)
949bindir='${exec_prefix}/bin'
950sbindir='${exec_prefix}/sbin'
951libexecdir='${exec_prefix}/libexec'
952datarootdir='${prefix}/share'
953datadir='${datarootdir}'
954sysconfdir='${prefix}/etc'
955sharedstatedir='${prefix}/com'
956localstatedir='${prefix}/var'
957includedir='${prefix}/include'
958oldincludedir='/usr/include'
959docdir='${datarootdir}/doc/${PACKAGE}'
960infodir='${datarootdir}/info'
961htmldir='${docdir}'
962dvidir='${docdir}'
963pdfdir='${docdir}'
964psdir='${docdir}'
965libdir='${exec_prefix}/lib'
966localedir='${datarootdir}/locale'
967mandir='${datarootdir}/man'
968
969ac_prev=
970ac_dashdash=
971for ac_option
972do
973  # If the previous option needs an argument, assign it.
974  if test -n "$ac_prev"; then
975    eval $ac_prev=\$ac_option
976    ac_prev=
977    continue
978  fi
979
980  case $ac_option in
981  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
982  *=)   ac_optarg= ;;
983  *)    ac_optarg=yes ;;
984  esac
985
986  # Accept the important Cygnus configure options, so we can diagnose typos.
987
988  case $ac_dashdash$ac_option in
989  --)
990    ac_dashdash=yes ;;
991
992  -bindir | --bindir | --bindi | --bind | --bin | --bi)
993    ac_prev=bindir ;;
994  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995    bindir=$ac_optarg ;;
996
997  -build | --build | --buil | --bui | --bu)
998    ac_prev=build_alias ;;
999  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000    build_alias=$ac_optarg ;;
1001
1002  -cache-file | --cache-file | --cache-fil | --cache-fi \
1003  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004    ac_prev=cache_file ;;
1005  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007    cache_file=$ac_optarg ;;
1008
1009  --config-cache | -C)
1010    cache_file=config.cache ;;
1011
1012  -datadir | --datadir | --datadi | --datad)
1013    ac_prev=datadir ;;
1014  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015    datadir=$ac_optarg ;;
1016
1017  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018  | --dataroo | --dataro | --datar)
1019    ac_prev=datarootdir ;;
1020  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022    datarootdir=$ac_optarg ;;
1023
1024  -disable-* | --disable-*)
1025    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026    # Reject names that are not valid shell variable names.
1027    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028      as_fn_error $? "invalid feature name: $ac_useropt"
1029    ac_useropt_orig=$ac_useropt
1030    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031    case $ac_user_opts in
1032      *"
1033"enable_$ac_useropt"
1034"*) ;;
1035      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1036	 ac_unrecognized_sep=', ';;
1037    esac
1038    eval enable_$ac_useropt=no ;;
1039
1040  -docdir | --docdir | --docdi | --doc | --do)
1041    ac_prev=docdir ;;
1042  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1043    docdir=$ac_optarg ;;
1044
1045  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046    ac_prev=dvidir ;;
1047  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1048    dvidir=$ac_optarg ;;
1049
1050  -enable-* | --enable-*)
1051    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1052    # Reject names that are not valid shell variable names.
1053    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054      as_fn_error $? "invalid feature name: $ac_useropt"
1055    ac_useropt_orig=$ac_useropt
1056    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057    case $ac_user_opts in
1058      *"
1059"enable_$ac_useropt"
1060"*) ;;
1061      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1062	 ac_unrecognized_sep=', ';;
1063    esac
1064    eval enable_$ac_useropt=\$ac_optarg ;;
1065
1066  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1067  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1068  | --exec | --exe | --ex)
1069    ac_prev=exec_prefix ;;
1070  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1071  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1072  | --exec=* | --exe=* | --ex=*)
1073    exec_prefix=$ac_optarg ;;
1074
1075  -gas | --gas | --ga | --g)
1076    # Obsolete; use --with-gas.
1077    with_gas=yes ;;
1078
1079  -help | --help | --hel | --he | -h)
1080    ac_init_help=long ;;
1081  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1082    ac_init_help=recursive ;;
1083  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1084    ac_init_help=short ;;
1085
1086  -host | --host | --hos | --ho)
1087    ac_prev=host_alias ;;
1088  -host=* | --host=* | --hos=* | --ho=*)
1089    host_alias=$ac_optarg ;;
1090
1091  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1092    ac_prev=htmldir ;;
1093  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1094  | --ht=*)
1095    htmldir=$ac_optarg ;;
1096
1097  -includedir | --includedir | --includedi | --included | --include \
1098  | --includ | --inclu | --incl | --inc)
1099    ac_prev=includedir ;;
1100  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1101  | --includ=* | --inclu=* | --incl=* | --inc=*)
1102    includedir=$ac_optarg ;;
1103
1104  -infodir | --infodir | --infodi | --infod | --info | --inf)
1105    ac_prev=infodir ;;
1106  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1107    infodir=$ac_optarg ;;
1108
1109  -libdir | --libdir | --libdi | --libd)
1110    ac_prev=libdir ;;
1111  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1112    libdir=$ac_optarg ;;
1113
1114  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1115  | --libexe | --libex | --libe)
1116    ac_prev=libexecdir ;;
1117  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1118  | --libexe=* | --libex=* | --libe=*)
1119    libexecdir=$ac_optarg ;;
1120
1121  -localedir | --localedir | --localedi | --localed | --locale)
1122    ac_prev=localedir ;;
1123  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1124    localedir=$ac_optarg ;;
1125
1126  -localstatedir | --localstatedir | --localstatedi | --localstated \
1127  | --localstate | --localstat | --localsta | --localst | --locals)
1128    ac_prev=localstatedir ;;
1129  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1130  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1131    localstatedir=$ac_optarg ;;
1132
1133  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134    ac_prev=mandir ;;
1135  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1136    mandir=$ac_optarg ;;
1137
1138  -nfp | --nfp | --nf)
1139    # Obsolete; use --without-fp.
1140    with_fp=no ;;
1141
1142  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1143  | --no-cr | --no-c | -n)
1144    no_create=yes ;;
1145
1146  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1147  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1148    no_recursion=yes ;;
1149
1150  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1151  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1152  | --oldin | --oldi | --old | --ol | --o)
1153    ac_prev=oldincludedir ;;
1154  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1155  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1156  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1157    oldincludedir=$ac_optarg ;;
1158
1159  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160    ac_prev=prefix ;;
1161  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1162    prefix=$ac_optarg ;;
1163
1164  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1165  | --program-pre | --program-pr | --program-p)
1166    ac_prev=program_prefix ;;
1167  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1168  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1169    program_prefix=$ac_optarg ;;
1170
1171  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1172  | --program-suf | --program-su | --program-s)
1173    ac_prev=program_suffix ;;
1174  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1175  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1176    program_suffix=$ac_optarg ;;
1177
1178  -program-transform-name | --program-transform-name \
1179  | --program-transform-nam | --program-transform-na \
1180  | --program-transform-n | --program-transform- \
1181  | --program-transform | --program-transfor \
1182  | --program-transfo | --program-transf \
1183  | --program-trans | --program-tran \
1184  | --progr-tra | --program-tr | --program-t)
1185    ac_prev=program_transform_name ;;
1186  -program-transform-name=* | --program-transform-name=* \
1187  | --program-transform-nam=* | --program-transform-na=* \
1188  | --program-transform-n=* | --program-transform-=* \
1189  | --program-transform=* | --program-transfor=* \
1190  | --program-transfo=* | --program-transf=* \
1191  | --program-trans=* | --program-tran=* \
1192  | --progr-tra=* | --program-tr=* | --program-t=*)
1193    program_transform_name=$ac_optarg ;;
1194
1195  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196    ac_prev=pdfdir ;;
1197  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1198    pdfdir=$ac_optarg ;;
1199
1200  -psdir | --psdir | --psdi | --psd | --ps)
1201    ac_prev=psdir ;;
1202  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1203    psdir=$ac_optarg ;;
1204
1205  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1206  | -silent | --silent | --silen | --sile | --sil)
1207    silent=yes ;;
1208
1209  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1210    ac_prev=sbindir ;;
1211  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1212  | --sbi=* | --sb=*)
1213    sbindir=$ac_optarg ;;
1214
1215  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1216  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1217  | --sharedst | --shareds | --shared | --share | --shar \
1218  | --sha | --sh)
1219    ac_prev=sharedstatedir ;;
1220  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1221  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1222  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1223  | --sha=* | --sh=*)
1224    sharedstatedir=$ac_optarg ;;
1225
1226  -site | --site | --sit)
1227    ac_prev=site ;;
1228  -site=* | --site=* | --sit=*)
1229    site=$ac_optarg ;;
1230
1231  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232    ac_prev=srcdir ;;
1233  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1234    srcdir=$ac_optarg ;;
1235
1236  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1237  | --syscon | --sysco | --sysc | --sys | --sy)
1238    ac_prev=sysconfdir ;;
1239  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1240  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1241    sysconfdir=$ac_optarg ;;
1242
1243  -target | --target | --targe | --targ | --tar | --ta | --t)
1244    ac_prev=target_alias ;;
1245  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1246    target_alias=$ac_optarg ;;
1247
1248  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1249    verbose=yes ;;
1250
1251  -version | --version | --versio | --versi | --vers | -V)
1252    ac_init_version=: ;;
1253
1254  -with-* | --with-*)
1255    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256    # Reject names that are not valid shell variable names.
1257    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258      as_fn_error $? "invalid package name: $ac_useropt"
1259    ac_useropt_orig=$ac_useropt
1260    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261    case $ac_user_opts in
1262      *"
1263"with_$ac_useropt"
1264"*) ;;
1265      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1266	 ac_unrecognized_sep=', ';;
1267    esac
1268    eval with_$ac_useropt=\$ac_optarg ;;
1269
1270  -without-* | --without-*)
1271    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272    # Reject names that are not valid shell variable names.
1273    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274      as_fn_error $? "invalid package name: $ac_useropt"
1275    ac_useropt_orig=$ac_useropt
1276    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277    case $ac_user_opts in
1278      *"
1279"with_$ac_useropt"
1280"*) ;;
1281      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282	 ac_unrecognized_sep=', ';;
1283    esac
1284    eval with_$ac_useropt=no ;;
1285
1286  --x)
1287    # Obsolete; use --with-x.
1288    with_x=yes ;;
1289
1290  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291  | --x-incl | --x-inc | --x-in | --x-i)
1292    ac_prev=x_includes ;;
1293  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295    x_includes=$ac_optarg ;;
1296
1297  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299    ac_prev=x_libraries ;;
1300  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302    x_libraries=$ac_optarg ;;
1303
1304  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1305Try \`$0 --help' for more information"
1306    ;;
1307
1308  *=*)
1309    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310    # Reject names that are not valid shell variable names.
1311    case $ac_envvar in #(
1312      '' | [0-9]* | *[!_$as_cr_alnum]* )
1313      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1314    esac
1315    eval $ac_envvar=\$ac_optarg
1316    export $ac_envvar ;;
1317
1318  *)
1319    # FIXME: should be removed in autoconf 3.0.
1320    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1324    ;;
1325
1326  esac
1327done
1328
1329if test -n "$ac_prev"; then
1330  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331  as_fn_error $? "missing argument to $ac_option"
1332fi
1333
1334if test -n "$ac_unrecognized_opts"; then
1335  case $enable_option_checking in
1336    no) ;;
1337    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1338    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1339  esac
1340fi
1341
1342# Check all directory arguments for consistency.
1343for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344		datadir sysconfdir sharedstatedir localstatedir includedir \
1345		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346		libdir localedir mandir
1347do
1348  eval ac_val=\$$ac_var
1349  # Remove trailing slashes.
1350  case $ac_val in
1351    */ )
1352      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353      eval $ac_var=\$ac_val;;
1354  esac
1355  # Be sure to have absolute directory names.
1356  case $ac_val in
1357    [\\/$]* | ?:[\\/]* )  continue;;
1358    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359  esac
1360  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1361done
1362
1363# There might be people who depend on the old broken behavior: `$host'
1364# used to hold the argument of --host etc.
1365# FIXME: To remove some day.
1366build=$build_alias
1367host=$host_alias
1368target=$target_alias
1369
1370# FIXME: To remove some day.
1371if test "x$host_alias" != x; then
1372  if test "x$build_alias" = x; then
1373    cross_compiling=maybe
1374    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1375    If a cross compiler is detected then cross compile mode will be used" >&2
1376  elif test "x$build_alias" != "x$host_alias"; then
1377    cross_compiling=yes
1378  fi
1379fi
1380
1381ac_tool_prefix=
1382test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383
1384test "$silent" = yes && exec 6>/dev/null
1385
1386
1387ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388ac_ls_di=`ls -di .` &&
1389ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390  as_fn_error $? "working directory cannot be determined"
1391test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1392  as_fn_error $? "pwd does not report name of working directory"
1393
1394
1395# Find the source files, if location was not specified.
1396if test -z "$srcdir"; then
1397  ac_srcdir_defaulted=yes
1398  # Try the directory containing this script, then the parent directory.
1399  ac_confdir=`$as_dirname -- "$as_myself" ||
1400$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401	 X"$as_myself" : 'X\(//\)[^/]' \| \
1402	 X"$as_myself" : 'X\(//\)$' \| \
1403	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1404$as_echo X"$as_myself" |
1405    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406	    s//\1/
1407	    q
1408	  }
1409	  /^X\(\/\/\)[^/].*/{
1410	    s//\1/
1411	    q
1412	  }
1413	  /^X\(\/\/\)$/{
1414	    s//\1/
1415	    q
1416	  }
1417	  /^X\(\/\).*/{
1418	    s//\1/
1419	    q
1420	  }
1421	  s/.*/./; q'`
1422  srcdir=$ac_confdir
1423  if test ! -r "$srcdir/$ac_unique_file"; then
1424    srcdir=..
1425  fi
1426else
1427  ac_srcdir_defaulted=no
1428fi
1429if test ! -r "$srcdir/$ac_unique_file"; then
1430  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1432fi
1433ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434ac_abs_confdir=`(
1435	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1436	pwd)`
1437# When building in place, set srcdir=.
1438if test "$ac_abs_confdir" = "$ac_pwd"; then
1439  srcdir=.
1440fi
1441# Remove unnecessary trailing slashes from srcdir.
1442# Double slashes in file names in object file debugging info
1443# mess up M-x gdb in Emacs.
1444case $srcdir in
1445*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446esac
1447for ac_var in $ac_precious_vars; do
1448  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449  eval ac_env_${ac_var}_value=\$${ac_var}
1450  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452done
1453
1454#
1455# Report the --help message.
1456#
1457if test "$ac_init_help" = "long"; then
1458  # Omit some internal or obsolete options to make the list less imposing.
1459  # This message is too long to be a string in the A/UX 3.1 sh.
1460  cat <<_ACEOF
1461\`configure' configures this package to adapt to many kinds of systems.
1462
1463Usage: $0 [OPTION]... [VAR=VALUE]...
1464
1465To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466VAR=VALUE.  See below for descriptions of some of the useful variables.
1467
1468Defaults for the options are specified in brackets.
1469
1470Configuration:
1471  -h, --help              display this help and exit
1472      --help=short        display options specific to this package
1473      --help=recursive    display the short help of all the included packages
1474  -V, --version           display version information and exit
1475  -q, --quiet, --silent   do not print \`checking ...' messages
1476      --cache-file=FILE   cache test results in FILE [disabled]
1477  -C, --config-cache      alias for \`--cache-file=config.cache'
1478  -n, --no-create         do not create output files
1479      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1480
1481Installation directories:
1482  --prefix=PREFIX         install architecture-independent files in PREFIX
1483                          [$ac_default_prefix]
1484  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1485                          [PREFIX]
1486
1487By default, \`make install' will install all the files in
1488\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1489an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490for instance \`--prefix=\$HOME'.
1491
1492For better control, use the options below.
1493
1494Fine tuning of the installation directories:
1495  --bindir=DIR            user executables [EPREFIX/bin]
1496  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1497  --libexecdir=DIR        program executables [EPREFIX/libexec]
1498  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1499  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1500  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1501  --libdir=DIR            object code libraries [EPREFIX/lib]
1502  --includedir=DIR        C header files [PREFIX/include]
1503  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1504  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1505  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1506  --infodir=DIR           info documentation [DATAROOTDIR/info]
1507  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1508  --mandir=DIR            man documentation [DATAROOTDIR/man]
1509  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1510  --htmldir=DIR           html documentation [DOCDIR]
1511  --dvidir=DIR            dvi documentation [DOCDIR]
1512  --pdfdir=DIR            pdf documentation [DOCDIR]
1513  --psdir=DIR             ps documentation [DOCDIR]
1514_ACEOF
1515
1516  cat <<\_ACEOF
1517
1518System types:
1519  --build=BUILD     configure for building on BUILD [guessed]
1520  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1521  --target=TARGET   configure for building compilers for TARGET [HOST]
1522_ACEOF
1523fi
1524
1525if test -n "$ac_init_help"; then
1526
1527  cat <<\_ACEOF
1528
1529Optional Features:
1530  --disable-option-checking  ignore unrecognized --enable/--with options
1531  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1532  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1533  --enable-layout=LAYOUT
1534  --enable-experimental-libtool Use experimental custom libtool
1535  --enable-shared[=PKGS]  build shared libraries [default=yes]
1536  --enable-static[=PKGS]  build static libraries [default=yes]
1537  --enable-fast-install[=PKGS]
1538                          optimize for fast installation [default=yes]
1539  --disable-libtool-lock  avoid locking (might break parallel builds)
1540  --enable-debug          Turn on debugging and compile time warnings
1541  --enable-maintainer-mode  Turn on debugging and compile time warnings
1542  --enable-profile        Turn on profiling for the build (GCC)
1543  --enable-pool-debug[=yes|no|verbose|verbose-alloc|lifetime|owner|all]    Turn on pools debugging
1544  --enable-malloc-debug   Switch on malloc_debug for BeOS
1545  --disable-lfs           Disable large file support on 32-bit platforms
1546  --enable-nonportable-atomics  Use optimized atomic code which may produce nonportable binaries
1547  --enable-threads        Enable threading support in APR.
1548  --enable-allocator-uses-mmap    Use mmap in apr_allocator instead of malloc (experimental)
1549  --disable-dso           Disable DSO support
1550  --enable-other-child    Enable reliable child processes
1551  --disable-ipv6          Disable IPv6 support in APR.
1552
1553Optional Packages:
1554  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1555  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1556  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1557                          both]
1558  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1559  --with-sysroot=DIR Search for dependent libraries within DIR
1560                        (or the compiler's sysroot if not specified).
1561  --with-installbuilddir=DIR location to store APR build files (defaults to '${datadir}/build')
1562  --without-libtool       avoid using libtool to link the library
1563  --with-efence[=DIR]     path to Electric Fence installation
1564  --with-sendfile         Override decision to use sendfile
1565  --with-egd[=DIR]        use EGD-compatible socket
1566  --with-devrandom[=DEV]  use /dev/random or compatible [searches by default]
1567
1568Some influential environment variables:
1569  CC          C compiler command
1570  CFLAGS      C compiler flags
1571  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1572              nonstandard directory <lib dir>
1573  LIBS        libraries to pass to the linker, e.g. -l<library>
1574  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1575              you have headers in a nonstandard directory <include dir>
1576  CPP         C preprocessor
1577
1578Use these variables to override the choices made by `configure' or to help
1579it to find libraries and programs with nonstandard names/locations.
1580
1581Report bugs to the package provider.
1582_ACEOF
1583ac_status=$?
1584fi
1585
1586if test "$ac_init_help" = "recursive"; then
1587  # If there are subdirs, report their specific --help.
1588  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1589    test -d "$ac_dir" ||
1590      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1591      continue
1592    ac_builddir=.
1593
1594case "$ac_dir" in
1595.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596*)
1597  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1598  # A ".." for each directory in $ac_dir_suffix.
1599  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1600  case $ac_top_builddir_sub in
1601  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1603  esac ;;
1604esac
1605ac_abs_top_builddir=$ac_pwd
1606ac_abs_builddir=$ac_pwd$ac_dir_suffix
1607# for backward compatibility:
1608ac_top_builddir=$ac_top_build_prefix
1609
1610case $srcdir in
1611  .)  # We are building in place.
1612    ac_srcdir=.
1613    ac_top_srcdir=$ac_top_builddir_sub
1614    ac_abs_top_srcdir=$ac_pwd ;;
1615  [\\/]* | ?:[\\/]* )  # Absolute name.
1616    ac_srcdir=$srcdir$ac_dir_suffix;
1617    ac_top_srcdir=$srcdir
1618    ac_abs_top_srcdir=$srcdir ;;
1619  *) # Relative name.
1620    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1621    ac_top_srcdir=$ac_top_build_prefix$srcdir
1622    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1623esac
1624ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1625
1626    cd "$ac_dir" || { ac_status=$?; continue; }
1627    # Check for guested configure.
1628    if test -f "$ac_srcdir/configure.gnu"; then
1629      echo &&
1630      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1631    elif test -f "$ac_srcdir/configure"; then
1632      echo &&
1633      $SHELL "$ac_srcdir/configure" --help=recursive
1634    else
1635      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1636    fi || ac_status=$?
1637    cd "$ac_pwd" || { ac_status=$?; break; }
1638  done
1639fi
1640
1641test -n "$ac_init_help" && exit $ac_status
1642if $ac_init_version; then
1643  cat <<\_ACEOF
1644configure
1645generated by GNU Autoconf 2.68
1646
1647Copyright (C) 2010 Free Software Foundation, Inc.
1648This configure script is free software; the Free Software Foundation
1649gives unlimited permission to copy, distribute and modify it.
1650_ACEOF
1651  exit
1652fi
1653
1654## ------------------------ ##
1655## Autoconf initialization. ##
1656## ------------------------ ##
1657
1658# ac_fn_c_try_compile LINENO
1659# --------------------------
1660# Try to compile conftest.$ac_ext, and return whether this succeeded.
1661ac_fn_c_try_compile ()
1662{
1663  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664  rm -f conftest.$ac_objext
1665  if { { ac_try="$ac_compile"
1666case "(($ac_try" in
1667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668  *) ac_try_echo=$ac_try;;
1669esac
1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671$as_echo "$ac_try_echo"; } >&5
1672  (eval "$ac_compile") 2>conftest.err
1673  ac_status=$?
1674  if test -s conftest.err; then
1675    grep -v '^ *+' conftest.err >conftest.er1
1676    cat conftest.er1 >&5
1677    mv -f conftest.er1 conftest.err
1678  fi
1679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680  test $ac_status = 0; } && {
1681	 test -z "$ac_c_werror_flag" ||
1682	 test ! -s conftest.err
1683       } && test -s conftest.$ac_objext; then :
1684  ac_retval=0
1685else
1686  $as_echo "$as_me: failed program was:" >&5
1687sed 's/^/| /' conftest.$ac_ext >&5
1688
1689	ac_retval=1
1690fi
1691  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692  as_fn_set_status $ac_retval
1693
1694} # ac_fn_c_try_compile
1695
1696# ac_fn_c_try_cpp LINENO
1697# ----------------------
1698# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1699ac_fn_c_try_cpp ()
1700{
1701  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702  if { { ac_try="$ac_cpp conftest.$ac_ext"
1703case "(($ac_try" in
1704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705  *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1710  ac_status=$?
1711  if test -s conftest.err; then
1712    grep -v '^ *+' conftest.err >conftest.er1
1713    cat conftest.er1 >&5
1714    mv -f conftest.er1 conftest.err
1715  fi
1716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717  test $ac_status = 0; } > conftest.i && {
1718	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1719	 test ! -s conftest.err
1720       }; then :
1721  ac_retval=0
1722else
1723  $as_echo "$as_me: failed program was:" >&5
1724sed 's/^/| /' conftest.$ac_ext >&5
1725
1726    ac_retval=1
1727fi
1728  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729  as_fn_set_status $ac_retval
1730
1731} # ac_fn_c_try_cpp
1732
1733# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1734# -------------------------------------------------------
1735# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1736# the include files in INCLUDES and setting the cache variable VAR
1737# accordingly.
1738ac_fn_c_check_header_mongrel ()
1739{
1740  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741  if eval \${$3+:} false; then :
1742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743$as_echo_n "checking for $2... " >&6; }
1744if eval \${$3+:} false; then :
1745  $as_echo_n "(cached) " >&6
1746fi
1747eval ac_res=\$$3
1748	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749$as_echo "$ac_res" >&6; }
1750else
1751  # Is the header compilable?
1752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1753$as_echo_n "checking $2 usability... " >&6; }
1754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755/* end confdefs.h.  */
1756$4
1757#include <$2>
1758_ACEOF
1759if ac_fn_c_try_compile "$LINENO"; then :
1760  ac_header_compiler=yes
1761else
1762  ac_header_compiler=no
1763fi
1764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1766$as_echo "$ac_header_compiler" >&6; }
1767
1768# Is the header present?
1769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1770$as_echo_n "checking $2 presence... " >&6; }
1771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772/* end confdefs.h.  */
1773#include <$2>
1774_ACEOF
1775if ac_fn_c_try_cpp "$LINENO"; then :
1776  ac_header_preproc=yes
1777else
1778  ac_header_preproc=no
1779fi
1780rm -f conftest.err conftest.i conftest.$ac_ext
1781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1782$as_echo "$ac_header_preproc" >&6; }
1783
1784# So?  What about this header?
1785case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1786  yes:no: )
1787    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1788$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1789    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1790$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1791    ;;
1792  no:yes:* )
1793    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1794$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1795    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1796$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1797    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1798$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1799    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1800$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1801    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1802$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1803    ;;
1804esac
1805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806$as_echo_n "checking for $2... " >&6; }
1807if eval \${$3+:} false; then :
1808  $as_echo_n "(cached) " >&6
1809else
1810  eval "$3=\$ac_header_compiler"
1811fi
1812eval ac_res=\$$3
1813	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814$as_echo "$ac_res" >&6; }
1815fi
1816  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817
1818} # ac_fn_c_check_header_mongrel
1819
1820# ac_fn_c_try_run LINENO
1821# ----------------------
1822# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1823# that executables *can* be run.
1824ac_fn_c_try_run ()
1825{
1826  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827  if { { ac_try="$ac_link"
1828case "(($ac_try" in
1829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830  *) ac_try_echo=$ac_try;;
1831esac
1832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833$as_echo "$ac_try_echo"; } >&5
1834  (eval "$ac_link") 2>&5
1835  ac_status=$?
1836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1838  { { case "(($ac_try" in
1839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840  *) ac_try_echo=$ac_try;;
1841esac
1842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843$as_echo "$ac_try_echo"; } >&5
1844  (eval "$ac_try") 2>&5
1845  ac_status=$?
1846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847  test $ac_status = 0; }; }; then :
1848  ac_retval=0
1849else
1850  $as_echo "$as_me: program exited with status $ac_status" >&5
1851       $as_echo "$as_me: failed program was:" >&5
1852sed 's/^/| /' conftest.$ac_ext >&5
1853
1854       ac_retval=$ac_status
1855fi
1856  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858  as_fn_set_status $ac_retval
1859
1860} # ac_fn_c_try_run
1861
1862# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1863# -------------------------------------------------------
1864# Tests whether HEADER exists and can be compiled using the include files in
1865# INCLUDES, setting the cache variable VAR accordingly.
1866ac_fn_c_check_header_compile ()
1867{
1868  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870$as_echo_n "checking for $2... " >&6; }
1871if eval \${$3+:} false; then :
1872  $as_echo_n "(cached) " >&6
1873else
1874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875/* end confdefs.h.  */
1876$4
1877#include <$2>
1878_ACEOF
1879if ac_fn_c_try_compile "$LINENO"; then :
1880  eval "$3=yes"
1881else
1882  eval "$3=no"
1883fi
1884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1885fi
1886eval ac_res=\$$3
1887	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888$as_echo "$ac_res" >&6; }
1889  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891} # ac_fn_c_check_header_compile
1892
1893# ac_fn_c_try_link LINENO
1894# -----------------------
1895# Try to link conftest.$ac_ext, and return whether this succeeded.
1896ac_fn_c_try_link ()
1897{
1898  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899  rm -f conftest.$ac_objext conftest$ac_exeext
1900  if { { ac_try="$ac_link"
1901case "(($ac_try" in
1902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903  *) ac_try_echo=$ac_try;;
1904esac
1905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906$as_echo "$ac_try_echo"; } >&5
1907  (eval "$ac_link") 2>conftest.err
1908  ac_status=$?
1909  if test -s conftest.err; then
1910    grep -v '^ *+' conftest.err >conftest.er1
1911    cat conftest.er1 >&5
1912    mv -f conftest.er1 conftest.err
1913  fi
1914  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915  test $ac_status = 0; } && {
1916	 test -z "$ac_c_werror_flag" ||
1917	 test ! -s conftest.err
1918       } && test -s conftest$ac_exeext && {
1919	 test "$cross_compiling" = yes ||
1920	 $as_test_x conftest$ac_exeext
1921       }; then :
1922  ac_retval=0
1923else
1924  $as_echo "$as_me: failed program was:" >&5
1925sed 's/^/| /' conftest.$ac_ext >&5
1926
1927	ac_retval=1
1928fi
1929  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931  # interfere with the next link command; also delete a directory that is
1932  # left behind by Apple's compiler.  We do this before executing the actions.
1933  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935  as_fn_set_status $ac_retval
1936
1937} # ac_fn_c_try_link
1938
1939# ac_fn_c_check_func LINENO FUNC VAR
1940# ----------------------------------
1941# Tests whether FUNC exists, setting the cache variable VAR accordingly
1942ac_fn_c_check_func ()
1943{
1944  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946$as_echo_n "checking for $2... " >&6; }
1947if eval \${$3+:} false; then :
1948  $as_echo_n "(cached) " >&6
1949else
1950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951/* end confdefs.h.  */
1952/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1953   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1954#define $2 innocuous_$2
1955
1956/* System header to define __stub macros and hopefully few prototypes,
1957    which can conflict with char $2 (); below.
1958    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1959    <limits.h> exists even on freestanding compilers.  */
1960
1961#ifdef __STDC__
1962# include <limits.h>
1963#else
1964# include <assert.h>
1965#endif
1966
1967#undef $2
1968
1969/* Override any GCC internal prototype to avoid an error.
1970   Use char because int might match the return type of a GCC
1971   builtin and then its argument prototype would still apply.  */
1972#ifdef __cplusplus
1973extern "C"
1974#endif
1975char $2 ();
1976/* The GNU C library defines this for functions which it implements
1977    to always fail with ENOSYS.  Some functions are actually named
1978    something starting with __ and the normal name is an alias.  */
1979#if defined __stub_$2 || defined __stub___$2
1980choke me
1981#endif
1982
1983int
1984main ()
1985{
1986return $2 ();
1987  ;
1988  return 0;
1989}
1990_ACEOF
1991if ac_fn_c_try_link "$LINENO"; then :
1992  eval "$3=yes"
1993else
1994  eval "$3=no"
1995fi
1996rm -f core conftest.err conftest.$ac_objext \
1997    conftest$ac_exeext conftest.$ac_ext
1998fi
1999eval ac_res=\$$3
2000	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001$as_echo "$ac_res" >&6; }
2002  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003
2004} # ac_fn_c_check_func
2005
2006# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2007# -------------------------------------------
2008# Tests whether TYPE exists after having included INCLUDES, setting cache
2009# variable VAR accordingly.
2010ac_fn_c_check_type ()
2011{
2012  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014$as_echo_n "checking for $2... " >&6; }
2015if eval \${$3+:} false; then :
2016  $as_echo_n "(cached) " >&6
2017else
2018  eval "$3=no"
2019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020/* end confdefs.h.  */
2021$4
2022int
2023main ()
2024{
2025if (sizeof ($2))
2026	 return 0;
2027  ;
2028  return 0;
2029}
2030_ACEOF
2031if ac_fn_c_try_compile "$LINENO"; then :
2032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033/* end confdefs.h.  */
2034$4
2035int
2036main ()
2037{
2038if (sizeof (($2)))
2039	    return 0;
2040  ;
2041  return 0;
2042}
2043_ACEOF
2044if ac_fn_c_try_compile "$LINENO"; then :
2045
2046else
2047  eval "$3=yes"
2048fi
2049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050fi
2051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052fi
2053eval ac_res=\$$3
2054	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055$as_echo "$ac_res" >&6; }
2056  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057
2058} # ac_fn_c_check_type
2059
2060# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2061# --------------------------------------------
2062# Tries to find the compile-time value of EXPR in a program that includes
2063# INCLUDES, setting VAR accordingly. Returns whether the value could be
2064# computed
2065ac_fn_c_compute_int ()
2066{
2067  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068  if test "$cross_compiling" = yes; then
2069    # Depending upon the size, compute the lo and hi bounds.
2070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071/* end confdefs.h.  */
2072$4
2073int
2074main ()
2075{
2076static int test_array [1 - 2 * !(($2) >= 0)];
2077test_array [0] = 0
2078
2079  ;
2080  return 0;
2081}
2082_ACEOF
2083if ac_fn_c_try_compile "$LINENO"; then :
2084  ac_lo=0 ac_mid=0
2085  while :; do
2086    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087/* end confdefs.h.  */
2088$4
2089int
2090main ()
2091{
2092static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2093test_array [0] = 0
2094
2095  ;
2096  return 0;
2097}
2098_ACEOF
2099if ac_fn_c_try_compile "$LINENO"; then :
2100  ac_hi=$ac_mid; break
2101else
2102  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2103			if test $ac_lo -le $ac_mid; then
2104			  ac_lo= ac_hi=
2105			  break
2106			fi
2107			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2108fi
2109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110  done
2111else
2112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113/* end confdefs.h.  */
2114$4
2115int
2116main ()
2117{
2118static int test_array [1 - 2 * !(($2) < 0)];
2119test_array [0] = 0
2120
2121  ;
2122  return 0;
2123}
2124_ACEOF
2125if ac_fn_c_try_compile "$LINENO"; then :
2126  ac_hi=-1 ac_mid=-1
2127  while :; do
2128    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129/* end confdefs.h.  */
2130$4
2131int
2132main ()
2133{
2134static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2135test_array [0] = 0
2136
2137  ;
2138  return 0;
2139}
2140_ACEOF
2141if ac_fn_c_try_compile "$LINENO"; then :
2142  ac_lo=$ac_mid; break
2143else
2144  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2145			if test $ac_mid -le $ac_hi; then
2146			  ac_lo= ac_hi=
2147			  break
2148			fi
2149			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2150fi
2151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152  done
2153else
2154  ac_lo= ac_hi=
2155fi
2156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157fi
2158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159# Binary search between lo and hi bounds.
2160while test "x$ac_lo" != "x$ac_hi"; do
2161  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163/* end confdefs.h.  */
2164$4
2165int
2166main ()
2167{
2168static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2169test_array [0] = 0
2170
2171  ;
2172  return 0;
2173}
2174_ACEOF
2175if ac_fn_c_try_compile "$LINENO"; then :
2176  ac_hi=$ac_mid
2177else
2178  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2179fi
2180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181done
2182case $ac_lo in #((
2183?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2184'') ac_retval=1 ;;
2185esac
2186  else
2187    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188/* end confdefs.h.  */
2189$4
2190static long int longval () { return $2; }
2191static unsigned long int ulongval () { return $2; }
2192#include <stdio.h>
2193#include <stdlib.h>
2194int
2195main ()
2196{
2197
2198  FILE *f = fopen ("conftest.val", "w");
2199  if (! f)
2200    return 1;
2201  if (($2) < 0)
2202    {
2203      long int i = longval ();
2204      if (i != ($2))
2205	return 1;
2206      fprintf (f, "%ld", i);
2207    }
2208  else
2209    {
2210      unsigned long int i = ulongval ();
2211      if (i != ($2))
2212	return 1;
2213      fprintf (f, "%lu", i);
2214    }
2215  /* Do not output a trailing newline, as this causes \r\n confusion
2216     on some platforms.  */
2217  return ferror (f) || fclose (f) != 0;
2218
2219  ;
2220  return 0;
2221}
2222_ACEOF
2223if ac_fn_c_try_run "$LINENO"; then :
2224  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2225else
2226  ac_retval=1
2227fi
2228rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2229  conftest.$ac_objext conftest.beam conftest.$ac_ext
2230rm -f conftest.val
2231
2232  fi
2233  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2234  as_fn_set_status $ac_retval
2235
2236} # ac_fn_c_compute_int
2237
2238# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2239# ---------------------------------------------
2240# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2241# accordingly.
2242ac_fn_c_check_decl ()
2243{
2244  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245  as_decl_name=`echo $2|sed 's/ *(.*//'`
2246  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2247  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2248$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2249if eval \${$3+:} false; then :
2250  $as_echo_n "(cached) " >&6
2251else
2252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253/* end confdefs.h.  */
2254$4
2255int
2256main ()
2257{
2258#ifndef $as_decl_name
2259#ifdef __cplusplus
2260  (void) $as_decl_use;
2261#else
2262  (void) $as_decl_name;
2263#endif
2264#endif
2265
2266  ;
2267  return 0;
2268}
2269_ACEOF
2270if ac_fn_c_try_compile "$LINENO"; then :
2271  eval "$3=yes"
2272else
2273  eval "$3=no"
2274fi
2275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276fi
2277eval ac_res=\$$3
2278	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279$as_echo "$ac_res" >&6; }
2280  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2281
2282} # ac_fn_c_check_decl
2283
2284# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2285# ----------------------------------------------------
2286# Tries to find if the field MEMBER exists in type AGGR, after including
2287# INCLUDES, setting cache variable VAR accordingly.
2288ac_fn_c_check_member ()
2289{
2290  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2291  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2292$as_echo_n "checking for $2.$3... " >&6; }
2293if eval \${$4+:} false; then :
2294  $as_echo_n "(cached) " >&6
2295else
2296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297/* end confdefs.h.  */
2298$5
2299int
2300main ()
2301{
2302static $2 ac_aggr;
2303if (ac_aggr.$3)
2304return 0;
2305  ;
2306  return 0;
2307}
2308_ACEOF
2309if ac_fn_c_try_compile "$LINENO"; then :
2310  eval "$4=yes"
2311else
2312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313/* end confdefs.h.  */
2314$5
2315int
2316main ()
2317{
2318static $2 ac_aggr;
2319if (sizeof ac_aggr.$3)
2320return 0;
2321  ;
2322  return 0;
2323}
2324_ACEOF
2325if ac_fn_c_try_compile "$LINENO"; then :
2326  eval "$4=yes"
2327else
2328  eval "$4=no"
2329fi
2330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2331fi
2332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333fi
2334eval ac_res=\$$4
2335	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2336$as_echo "$ac_res" >&6; }
2337  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2338
2339} # ac_fn_c_check_member
2340cat >config.log <<_ACEOF
2341This file contains any messages produced by compilers while
2342running configure, to aid debugging if configure makes a mistake.
2343
2344It was created by $as_me, which was
2345generated by GNU Autoconf 2.68.  Invocation command line was
2346
2347  $ $0 $@
2348
2349_ACEOF
2350exec 5>>config.log
2351{
2352cat <<_ASUNAME
2353## --------- ##
2354## Platform. ##
2355## --------- ##
2356
2357hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2358uname -m = `(uname -m) 2>/dev/null || echo unknown`
2359uname -r = `(uname -r) 2>/dev/null || echo unknown`
2360uname -s = `(uname -s) 2>/dev/null || echo unknown`
2361uname -v = `(uname -v) 2>/dev/null || echo unknown`
2362
2363/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2364/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2365
2366/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2367/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2368/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2369/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2370/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2371/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2372/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2373
2374_ASUNAME
2375
2376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377for as_dir in $PATH
2378do
2379  IFS=$as_save_IFS
2380  test -z "$as_dir" && as_dir=.
2381    $as_echo "PATH: $as_dir"
2382  done
2383IFS=$as_save_IFS
2384
2385} >&5
2386
2387cat >&5 <<_ACEOF
2388
2389
2390## ----------- ##
2391## Core tests. ##
2392## ----------- ##
2393
2394_ACEOF
2395
2396
2397# Keep a trace of the command line.
2398# Strip out --no-create and --no-recursion so they do not pile up.
2399# Strip out --silent because we don't want to record it for future runs.
2400# Also quote any args containing shell meta-characters.
2401# Make two passes to allow for proper duplicate-argument suppression.
2402ac_configure_args=
2403ac_configure_args0=
2404ac_configure_args1=
2405ac_must_keep_next=false
2406for ac_pass in 1 2
2407do
2408  for ac_arg
2409  do
2410    case $ac_arg in
2411    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2412    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2413    | -silent | --silent | --silen | --sile | --sil)
2414      continue ;;
2415    *\'*)
2416      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2417    esac
2418    case $ac_pass in
2419    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2420    2)
2421      as_fn_append ac_configure_args1 " '$ac_arg'"
2422      if test $ac_must_keep_next = true; then
2423	ac_must_keep_next=false # Got value, back to normal.
2424      else
2425	case $ac_arg in
2426	  *=* | --config-cache | -C | -disable-* | --disable-* \
2427	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2428	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2429	  | -with-* | --with-* | -without-* | --without-* | --x)
2430	    case "$ac_configure_args0 " in
2431	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2432	    esac
2433	    ;;
2434	  -* ) ac_must_keep_next=true ;;
2435	esac
2436      fi
2437      as_fn_append ac_configure_args " '$ac_arg'"
2438      ;;
2439    esac
2440  done
2441done
2442{ ac_configure_args0=; unset ac_configure_args0;}
2443{ ac_configure_args1=; unset ac_configure_args1;}
2444
2445# When interrupted or exit'd, cleanup temporary files, and complete
2446# config.log.  We remove comments because anyway the quotes in there
2447# would cause problems or look ugly.
2448# WARNING: Use '\'' to represent an apostrophe within the trap.
2449# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2450trap 'exit_status=$?
2451  # Save into config.log some information that might help in debugging.
2452  {
2453    echo
2454
2455    $as_echo "## ---------------- ##
2456## Cache variables. ##
2457## ---------------- ##"
2458    echo
2459    # The following way of writing the cache mishandles newlines in values,
2460(
2461  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2462    eval ac_val=\$$ac_var
2463    case $ac_val in #(
2464    *${as_nl}*)
2465      case $ac_var in #(
2466      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2467$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2468      esac
2469      case $ac_var in #(
2470      _ | IFS | as_nl) ;; #(
2471      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2472      *) { eval $ac_var=; unset $ac_var;} ;;
2473      esac ;;
2474    esac
2475  done
2476  (set) 2>&1 |
2477    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2478    *${as_nl}ac_space=\ *)
2479      sed -n \
2480	"s/'\''/'\''\\\\'\'''\''/g;
2481	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2482      ;; #(
2483    *)
2484      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2485      ;;
2486    esac |
2487    sort
2488)
2489    echo
2490
2491    $as_echo "## ----------------- ##
2492## Output variables. ##
2493## ----------------- ##"
2494    echo
2495    for ac_var in $ac_subst_vars
2496    do
2497      eval ac_val=\$$ac_var
2498      case $ac_val in
2499      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2500      esac
2501      $as_echo "$ac_var='\''$ac_val'\''"
2502    done | sort
2503    echo
2504
2505    if test -n "$ac_subst_files"; then
2506      $as_echo "## ------------------- ##
2507## File substitutions. ##
2508## ------------------- ##"
2509      echo
2510      for ac_var in $ac_subst_files
2511      do
2512	eval ac_val=\$$ac_var
2513	case $ac_val in
2514	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2515	esac
2516	$as_echo "$ac_var='\''$ac_val'\''"
2517      done | sort
2518      echo
2519    fi
2520
2521    if test -s confdefs.h; then
2522      $as_echo "## ----------- ##
2523## confdefs.h. ##
2524## ----------- ##"
2525      echo
2526      cat confdefs.h
2527      echo
2528    fi
2529    test "$ac_signal" != 0 &&
2530      $as_echo "$as_me: caught signal $ac_signal"
2531    $as_echo "$as_me: exit $exit_status"
2532  } >&5
2533  rm -f core *.core core.conftest.* &&
2534    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2535    exit $exit_status
2536' 0
2537for ac_signal in 1 2 13 15; do
2538  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2539done
2540ac_signal=0
2541
2542# confdefs.h avoids OS command line length limits that DEFS can exceed.
2543rm -f -r conftest* confdefs.h
2544
2545$as_echo "/* confdefs.h */" > confdefs.h
2546
2547# Predefined preprocessor variables.
2548
2549cat >>confdefs.h <<_ACEOF
2550#define PACKAGE_NAME "$PACKAGE_NAME"
2551_ACEOF
2552
2553cat >>confdefs.h <<_ACEOF
2554#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2555_ACEOF
2556
2557cat >>confdefs.h <<_ACEOF
2558#define PACKAGE_VERSION "$PACKAGE_VERSION"
2559_ACEOF
2560
2561cat >>confdefs.h <<_ACEOF
2562#define PACKAGE_STRING "$PACKAGE_STRING"
2563_ACEOF
2564
2565cat >>confdefs.h <<_ACEOF
2566#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2567_ACEOF
2568
2569cat >>confdefs.h <<_ACEOF
2570#define PACKAGE_URL "$PACKAGE_URL"
2571_ACEOF
2572
2573
2574# Let the site file select an alternate cache file if it wants to.
2575# Prefer an explicitly selected file to automatically selected ones.
2576ac_site_file1=NONE
2577ac_site_file2=NONE
2578if test -n "$CONFIG_SITE"; then
2579  # We do not want a PATH search for config.site.
2580  case $CONFIG_SITE in #((
2581    -*)  ac_site_file1=./$CONFIG_SITE;;
2582    */*) ac_site_file1=$CONFIG_SITE;;
2583    *)   ac_site_file1=./$CONFIG_SITE;;
2584  esac
2585elif test "x$prefix" != xNONE; then
2586  ac_site_file1=$prefix/share/config.site
2587  ac_site_file2=$prefix/etc/config.site
2588else
2589  ac_site_file1=$ac_default_prefix/share/config.site
2590  ac_site_file2=$ac_default_prefix/etc/config.site
2591fi
2592for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2593do
2594  test "x$ac_site_file" = xNONE && continue
2595  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2596    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2597$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2598    sed 's/^/| /' "$ac_site_file" >&5
2599    . "$ac_site_file" \
2600      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2602as_fn_error $? "failed to load site script $ac_site_file
2603See \`config.log' for more details" "$LINENO" 5; }
2604  fi
2605done
2606
2607if test -r "$cache_file"; then
2608  # Some versions of bash will fail to source /dev/null (special files
2609  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2610  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2611    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2612$as_echo "$as_me: loading cache $cache_file" >&6;}
2613    case $cache_file in
2614      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2615      *)                      . "./$cache_file";;
2616    esac
2617  fi
2618else
2619  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2620$as_echo "$as_me: creating cache $cache_file" >&6;}
2621  >$cache_file
2622fi
2623
2624# Check that the precious variables saved in the cache have kept the same
2625# value.
2626ac_cache_corrupted=false
2627for ac_var in $ac_precious_vars; do
2628  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2629  eval ac_new_set=\$ac_env_${ac_var}_set
2630  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2631  eval ac_new_val=\$ac_env_${ac_var}_value
2632  case $ac_old_set,$ac_new_set in
2633    set,)
2634      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2635$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2636      ac_cache_corrupted=: ;;
2637    ,set)
2638      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2639$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2640      ac_cache_corrupted=: ;;
2641    ,);;
2642    *)
2643      if test "x$ac_old_val" != "x$ac_new_val"; then
2644	# differences in whitespace do not lead to failure.
2645	ac_old_val_w=`echo x $ac_old_val`
2646	ac_new_val_w=`echo x $ac_new_val`
2647	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2648	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2649$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2650	  ac_cache_corrupted=:
2651	else
2652	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2653$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2654	  eval $ac_var=\$ac_old_val
2655	fi
2656	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2657$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2658	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2659$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2660      fi;;
2661  esac
2662  # Pass precious variables to config.status.
2663  if test "$ac_new_set" = set; then
2664    case $ac_new_val in
2665    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2666    *) ac_arg=$ac_var=$ac_new_val ;;
2667    esac
2668    case " $ac_configure_args " in
2669      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2670      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2671    esac
2672  fi
2673done
2674if $ac_cache_corrupted; then
2675  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2677  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2678$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2679  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2680fi
2681## -------------------- ##
2682## Main body of script. ##
2683## -------------------- ##
2684
2685ac_ext=c
2686ac_cpp='$CPP $CPPFLAGS'
2687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690
2691
2692ac_config_headers="$ac_config_headers include/arch/unix/apr_private.h"
2693
2694ac_aux_dir=
2695for ac_dir in build "$srcdir"/build; do
2696  if test -f "$ac_dir/install-sh"; then
2697    ac_aux_dir=$ac_dir
2698    ac_install_sh="$ac_aux_dir/install-sh -c"
2699    break
2700  elif test -f "$ac_dir/install.sh"; then
2701    ac_aux_dir=$ac_dir
2702    ac_install_sh="$ac_aux_dir/install.sh -c"
2703    break
2704  elif test -f "$ac_dir/shtool"; then
2705    ac_aux_dir=$ac_dir
2706    ac_install_sh="$ac_aux_dir/shtool install -c"
2707    break
2708  fi
2709done
2710if test -z "$ac_aux_dir"; then
2711  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2712fi
2713
2714# These three variables are undocumented and unsupported,
2715# and are intended to be withdrawn in a future Autoconf release.
2716# They can cause serious problems if a builder's source tree is in a directory
2717# whose full name contains unusual characters.
2718ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2719ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2720ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2879#
2880#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2881#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
2882#                 Foundation, Inc.
2883#   Written by Gordon Matzigkeit, 1996
2884#
2885# This file is free software; the Free Software Foundation gives
2886# unlimited permission to copy and/or distribute it, with or without
2887# modifications, as long as this notice is preserved.
2888
2889
2890
2891# serial 57 LT_INIT
2892
2893
2894# LT_PREREQ(VERSION)
2895# ------------------
2896# Complain and exit if this libtool version is less that VERSION.
2897
2898
2899
2900# _LT_CHECK_BUILDDIR
2901# ------------------
2902# Complain if the absolute build directory name contains unusual characters
2903
2904
2905
2906# LT_INIT([OPTIONS])
2907# ------------------
2908# LT_INIT
2909
2910# Old names:
2911# This is what autoupdate's m4 run will expand.  It fires
2912# the warning (with _au_warn_XXX), outputs it into the
2913# updated configure.ac (with AC_DIAGNOSE), and then outputs
2914# the replacement expansion.
2915
2916
2917# This is an auxiliary macro that is also run when
2918# autoupdate runs m4.  It simply calls m4_warning, but
2919# we need a wrapper so that each warning is emitted only
2920# once.  We break the quoting in m4_warning's argument in
2921# order to expand this macro's arguments, not AU_DEFUN's.
2922
2923
2924# Finally, this is the expansion that is picked up by
2925# autoconf.  It tells the user to run autoupdate, and
2926# then outputs the replacement expansion.  We do not care
2927# about autoupdate's warning because that contains
2928# information on what to do *after* running autoupdate.
2929
2930# This is what autoupdate's m4 run will expand.  It fires
2931# the warning (with _au_warn_XXX), outputs it into the
2932# updated configure.ac (with AC_DIAGNOSE), and then outputs
2933# the replacement expansion.
2934
2935
2936# This is an auxiliary macro that is also run when
2937# autoupdate runs m4.  It simply calls m4_warning, but
2938# we need a wrapper so that each warning is emitted only
2939# once.  We break the quoting in m4_warning's argument in
2940# order to expand this macro's arguments, not AU_DEFUN's.
2941
2942
2943# Finally, this is the expansion that is picked up by
2944# autoconf.  It tells the user to run autoupdate, and
2945# then outputs the replacement expansion.  We do not care
2946# about autoupdate's warning because that contains
2947# information on what to do *after* running autoupdate.
2948
2949
2950
2951# _LT_CC_BASENAME(CC)
2952# -------------------
2953# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
2954
2955
2956
2957# _LT_FILEUTILS_DEFAULTS
2958# ----------------------
2959# It is okay to use these file commands and assume they have been set
2960# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2961# _LT_FILEUTILS_DEFAULTS
2962
2963
2964# _LT_SETUP
2965# ---------
2966# _LT_SETUP
2967
2968
2969# _LT_PREPARE_SED_QUOTE_VARS
2970# --------------------------
2971# Define a few sed substitution that help us do robust quoting.
2972
2973
2974# _LT_PROG_LTMAIN
2975# ---------------
2976# Note that this code is called both from `configure', and `config.status'
2977# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
2978# `config.status' has no value for ac_aux_dir unless we are using Automake,
2979# so we pass a copy along to make sure it has a sensible value anyway.
2980# _LT_PROG_LTMAIN
2981
2982
2983## ------------------------------------- ##
2984## Accumulate code for creating libtool. ##
2985## ------------------------------------- ##
2986
2987# So that we can recreate a full libtool script including additional
2988# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2989# in macros and then make a single call at the end using the `libtool'
2990# label.
2991
2992
2993# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2994# ----------------------------------------
2995# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2996
2997
2998# Initialize.
2999
3000
3001
3002# _LT_CONFIG_LIBTOOL([COMMANDS])
3003# ------------------------------
3004# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
3005
3006
3007# Initialize.
3008
3009
3010
3011# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
3012# -----------------------------------------------------
3013
3014
3015
3016# _LT_FORMAT_COMMENT([COMMENT])
3017# -----------------------------
3018# Add leading comment marks to the start of each line, and a trailing
3019# full-stop to the whole comment if one is not present already.
3020
3021
3022
3023
3024## ------------------------ ##
3025## FIXME: Eliminate VARNAME ##
3026## ------------------------ ##
3027
3028
3029# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
3030# -------------------------------------------------------------------
3031# CONFIGNAME is the name given to the value in the libtool script.
3032# VARNAME is the (base) name used in the configure script.
3033# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
3034# VARNAME.  Any other value will be used directly.
3035
3036
3037
3038# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
3039# --------------------------------------------------------
3040
3041
3042
3043# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
3044# ------------------------------------------------
3045
3046
3047
3048# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
3049# ---------------------------------------------------------
3050
3051
3052
3053# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
3054# --------------------------------------------------
3055
3056
3057
3058# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
3059# ---------------------------------------------------
3060
3061
3062
3063# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
3064# ---------------------------------------------------
3065
3066
3067
3068
3069# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
3070# ------------------------------------------------
3071
3072
3073
3074
3075# _LT_CONFIG_STATUS_DECLARE([VARNAME])
3076# ------------------------------------
3077# Quote a variable value, and forward it to `config.status' so that its
3078# declaration there will have the same value as in `configure'.  VARNAME
3079# must have a single quote delimited value for this to work.
3080
3081
3082
3083# _LT_CONFIG_STATUS_DECLARATIONS
3084# ------------------------------
3085# We delimit libtool config variables with single quotes, so when
3086# we write them to config.status, we have to be sure to quote all
3087# embedded single quotes properly.  In configure, this macro expands
3088# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
3089#
3090#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
3091
3092
3093
3094# _LT_LIBTOOL_TAGS
3095# ----------------
3096# Output comment and list of tags supported by the script
3097
3098
3099
3100# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
3101# -----------------------------------
3102# Extract the dictionary values for VARNAME (optionally with TAG) and
3103# expand to a commented shell variable setting:
3104#
3105#    # Some comment about what VAR is for.
3106#    visible_name=$lt_internal_name
3107
3108
3109
3110# _LT_LIBTOOL_CONFIG_VARS
3111# -----------------------
3112# Produce commented declarations of non-tagged libtool config variables
3113# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
3114# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
3115# section) are produced by _LT_LIBTOOL_TAG_VARS.
3116
3117
3118
3119# _LT_LIBTOOL_TAG_VARS(TAG)
3120# -------------------------
3121
3122
3123
3124# _LT_TAGVAR(VARNAME, [TAGNAME])
3125# ------------------------------
3126
3127
3128
3129# _LT_CONFIG_COMMANDS
3130# -------------------
3131# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
3132# variables for single and double quote escaping we saved from calls
3133# to _LT_DECL, we can put quote escaped variables declarations
3134# into `config.status', and then the shell code to quote escape them in
3135# for loops in `config.status'.  Finally, any additional code accumulated
3136# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
3137#_LT_CONFIG_COMMANDS
3138
3139
3140# Initialize.
3141
3142
3143# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
3144# ------------------------------------
3145# Generate a child script FILE with all initialization necessary to
3146# reuse the environment learned by the parent script, and make the
3147# file executable.  If COMMENT is supplied, it is inserted after the
3148# `#!' sequence but before initialization text begins.  After this
3149# macro, additional text can be appended to FILE to form the body of
3150# the child script.  The macro ends with non-zero status if the
3151# file could not be fully written (such as if the disk is full).
3152# _LT_GENERATED_FILE_INIT
3153
3154# LT_OUTPUT
3155# ---------
3156# This macro allows early generation of the libtool script (before
3157# AC_OUTPUT is called), incase it is used in configure for compilation
3158# tests.
3159# LT_OUTPUT
3160
3161
3162# _LT_CONFIG(TAG)
3163# ---------------
3164# If TAG is the built-in tag, create an initial libtool script with a
3165# default configuration from the untagged config vars.  Otherwise add code
3166# to config.status for appending the configuration named by TAG from the
3167# matching tagged config vars.
3168# _LT_CONFIG
3169
3170
3171# LT_SUPPORTED_TAG(TAG)
3172# ---------------------
3173# Trace this macro to discover what tags are supported by the libtool
3174# --tag option, using:
3175#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
3176
3177
3178
3179# C support is built-in for now
3180
3181
3182
3183
3184# LT_LANG(LANG)
3185# -------------
3186# Enable libtool support for the given language if not already enabled.
3187# LT_LANG
3188
3189
3190# _LT_LANG(LANGNAME)
3191# ------------------
3192# _LT_LANG
3193
3194
3195
3196############################################################
3197# NOTE: This macro has been submitted for inclusion into   #
3198#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
3199#  a released version of Autoconf we should remove this    #
3200#  macro and use it instead.                               #
3201############################################################
3202#m4_defun
3203#m4_ifndef
3204
3205
3206# _LT_LANG_DEFAULT_CONFIG
3207# -----------------------
3208# _LT_LANG_DEFAULT_CONFIG
3209
3210# Obsolete macros:
3211# This is what autoupdate's m4 run will expand.  It fires
3212# the warning (with _au_warn_XXX), outputs it into the
3213# updated configure.ac (with AC_DIAGNOSE), and then outputs
3214# the replacement expansion.
3215
3216
3217# This is an auxiliary macro that is also run when
3218# autoupdate runs m4.  It simply calls m4_warning, but
3219# we need a wrapper so that each warning is emitted only
3220# once.  We break the quoting in m4_warning's argument in
3221# order to expand this macro's arguments, not AU_DEFUN's.
3222
3223
3224# Finally, this is the expansion that is picked up by
3225# autoconf.  It tells the user to run autoupdate, and
3226# then outputs the replacement expansion.  We do not care
3227# about autoupdate's warning because that contains
3228# information on what to do *after* running autoupdate.
3229
3230# This is what autoupdate's m4 run will expand.  It fires
3231# the warning (with _au_warn_XXX), outputs it into the
3232# updated configure.ac (with AC_DIAGNOSE), and then outputs
3233# the replacement expansion.
3234
3235
3236# This is an auxiliary macro that is also run when
3237# autoupdate runs m4.  It simply calls m4_warning, but
3238# we need a wrapper so that each warning is emitted only
3239# once.  We break the quoting in m4_warning's argument in
3240# order to expand this macro's arguments, not AU_DEFUN's.
3241
3242
3243# Finally, this is the expansion that is picked up by
3244# autoconf.  It tells the user to run autoupdate, and
3245# then outputs the replacement expansion.  We do not care
3246# about autoupdate's warning because that contains
3247# information on what to do *after* running autoupdate.
3248
3249# This is what autoupdate's m4 run will expand.  It fires
3250# the warning (with _au_warn_XXX), outputs it into the
3251# updated configure.ac (with AC_DIAGNOSE), and then outputs
3252# the replacement expansion.
3253
3254
3255# This is an auxiliary macro that is also run when
3256# autoupdate runs m4.  It simply calls m4_warning, but
3257# we need a wrapper so that each warning is emitted only
3258# once.  We break the quoting in m4_warning's argument in
3259# order to expand this macro's arguments, not AU_DEFUN's.
3260
3261
3262# Finally, this is the expansion that is picked up by
3263# autoconf.  It tells the user to run autoupdate, and
3264# then outputs the replacement expansion.  We do not care
3265# about autoupdate's warning because that contains
3266# information on what to do *after* running autoupdate.
3267
3268# This is what autoupdate's m4 run will expand.  It fires
3269# the warning (with _au_warn_XXX), outputs it into the
3270# updated configure.ac (with AC_DIAGNOSE), and then outputs
3271# the replacement expansion.
3272
3273
3274# This is an auxiliary macro that is also run when
3275# autoupdate runs m4.  It simply calls m4_warning, but
3276# we need a wrapper so that each warning is emitted only
3277# once.  We break the quoting in m4_warning's argument in
3278# order to expand this macro's arguments, not AU_DEFUN's.
3279
3280
3281# Finally, this is the expansion that is picked up by
3282# autoconf.  It tells the user to run autoupdate, and
3283# then outputs the replacement expansion.  We do not care
3284# about autoupdate's warning because that contains
3285# information on what to do *after* running autoupdate.
3286
3287# This is what autoupdate's m4 run will expand.  It fires
3288# the warning (with _au_warn_XXX), outputs it into the
3289# updated configure.ac (with AC_DIAGNOSE), and then outputs
3290# the replacement expansion.
3291
3292
3293# This is an auxiliary macro that is also run when
3294# autoupdate runs m4.  It simply calls m4_warning, but
3295# we need a wrapper so that each warning is emitted only
3296# once.  We break the quoting in m4_warning's argument in
3297# order to expand this macro's arguments, not AU_DEFUN's.
3298
3299
3300# Finally, this is the expansion that is picked up by
3301# autoconf.  It tells the user to run autoupdate, and
3302# then outputs the replacement expansion.  We do not care
3303# about autoupdate's warning because that contains
3304# information on what to do *after* running autoupdate.
3305
3306
3307
3308# _LT_TAG_COMPILER
3309# ----------------
3310# _LT_TAG_COMPILER
3311
3312
3313# _LT_COMPILER_BOILERPLATE
3314# ------------------------
3315# Check for compiler boilerplate output or warnings with
3316# the simple compiler test code.
3317# _LT_COMPILER_BOILERPLATE
3318
3319
3320# _LT_LINKER_BOILERPLATE
3321# ----------------------
3322# Check for linker boilerplate output or warnings with
3323# the simple link test code.
3324# _LT_LINKER_BOILERPLATE
3325
3326# _LT_REQUIRED_DARWIN_CHECKS
3327# -------------------------
3328
3329
3330
3331# _LT_DARWIN_LINKER_FEATURES([TAG])
3332# ---------------------------------
3333# Checks for linker and compiler features on darwin
3334
3335
3336# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
3337# ----------------------------------
3338# Links a minimal program and checks the executable
3339# for the system default hardcoded library path. In most cases,
3340# this is /usr/lib:/lib, but when the MPI compilers are used
3341# the location of the communication and MPI libs are included too.
3342# If we don't find anything, use the default library path according
3343# to the aix ld manual.
3344# Store the results from the different compilers for each TAGNAME.
3345# Allow to override them for all tags through lt_cv_aix_libpath.
3346# _LT_SYS_MODULE_PATH_AIX
3347
3348
3349# _LT_SHELL_INIT(ARG)
3350# -------------------
3351# _LT_SHELL_INIT
3352
3353
3354
3355# _LT_PROG_ECHO_BACKSLASH
3356# -----------------------
3357# Find how we can fake an echo command that does not interpret backslash.
3358# In particular, with Autoconf 2.60 or later we add some code to the start
3359# of the generated configure script which will find a shell with a builtin
3360# printf (which we can use as an echo command).
3361# _LT_PROG_ECHO_BACKSLASH
3362
3363
3364# _LT_WITH_SYSROOT
3365# ----------------
3366
3367
3368# _LT_ENABLE_LOCK
3369# ---------------
3370# _LT_ENABLE_LOCK
3371
3372
3373# _LT_PROG_AR
3374# -----------
3375# _LT_PROG_AR
3376
3377
3378# _LT_CMD_OLD_ARCHIVE
3379# -------------------
3380# _LT_CMD_OLD_ARCHIVE
3381
3382
3383# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3384#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3385# ----------------------------------------------------------------
3386# Check whether the given compiler option works
3387# _LT_COMPILER_OPTION
3388
3389# Old name:
3390# This is what autoupdate's m4 run will expand.  It fires
3391# the warning (with _au_warn_XXX), outputs it into the
3392# updated configure.ac (with AC_DIAGNOSE), and then outputs
3393# the replacement expansion.
3394
3395
3396# This is an auxiliary macro that is also run when
3397# autoupdate runs m4.  It simply calls m4_warning, but
3398# we need a wrapper so that each warning is emitted only
3399# once.  We break the quoting in m4_warning's argument in
3400# order to expand this macro's arguments, not AU_DEFUN's.
3401
3402
3403# Finally, this is the expansion that is picked up by
3404# autoconf.  It tells the user to run autoupdate, and
3405# then outputs the replacement expansion.  We do not care
3406# about autoupdate's warning because that contains
3407# information on what to do *after* running autoupdate.
3408
3409
3410
3411# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3412#                  [ACTION-SUCCESS], [ACTION-FAILURE])
3413# ----------------------------------------------------
3414# Check whether the given linker option works
3415# _LT_LINKER_OPTION
3416
3417# Old name:
3418# This is what autoupdate's m4 run will expand.  It fires
3419# the warning (with _au_warn_XXX), outputs it into the
3420# updated configure.ac (with AC_DIAGNOSE), and then outputs
3421# the replacement expansion.
3422
3423
3424# This is an auxiliary macro that is also run when
3425# autoupdate runs m4.  It simply calls m4_warning, but
3426# we need a wrapper so that each warning is emitted only
3427# once.  We break the quoting in m4_warning's argument in
3428# order to expand this macro's arguments, not AU_DEFUN's.
3429
3430
3431# Finally, this is the expansion that is picked up by
3432# autoconf.  It tells the user to run autoupdate, and
3433# then outputs the replacement expansion.  We do not care
3434# about autoupdate's warning because that contains
3435# information on what to do *after* running autoupdate.
3436
3437
3438
3439# LT_CMD_MAX_LEN
3440#---------------
3441# LT_CMD_MAX_LEN
3442
3443# Old name:
3444# This is what autoupdate's m4 run will expand.  It fires
3445# the warning (with _au_warn_XXX), outputs it into the
3446# updated configure.ac (with AC_DIAGNOSE), and then outputs
3447# the replacement expansion.
3448
3449
3450# This is an auxiliary macro that is also run when
3451# autoupdate runs m4.  It simply calls m4_warning, but
3452# we need a wrapper so that each warning is emitted only
3453# once.  We break the quoting in m4_warning's argument in
3454# order to expand this macro's arguments, not AU_DEFUN's.
3455
3456
3457# Finally, this is the expansion that is picked up by
3458# autoconf.  It tells the user to run autoupdate, and
3459# then outputs the replacement expansion.  We do not care
3460# about autoupdate's warning because that contains
3461# information on what to do *after* running autoupdate.
3462
3463
3464
3465# _LT_HEADER_DLFCN
3466# ----------------
3467# _LT_HEADER_DLFCN
3468
3469
3470# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3471#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3472# ----------------------------------------------------------------
3473# _LT_TRY_DLOPEN_SELF
3474
3475
3476# LT_SYS_DLOPEN_SELF
3477# ------------------
3478# LT_SYS_DLOPEN_SELF
3479
3480# Old name:
3481# This is what autoupdate's m4 run will expand.  It fires
3482# the warning (with _au_warn_XXX), outputs it into the
3483# updated configure.ac (with AC_DIAGNOSE), and then outputs
3484# the replacement expansion.
3485
3486
3487# This is an auxiliary macro that is also run when
3488# autoupdate runs m4.  It simply calls m4_warning, but
3489# we need a wrapper so that each warning is emitted only
3490# once.  We break the quoting in m4_warning's argument in
3491# order to expand this macro's arguments, not AU_DEFUN's.
3492
3493
3494# Finally, this is the expansion that is picked up by
3495# autoconf.  It tells the user to run autoupdate, and
3496# then outputs the replacement expansion.  We do not care
3497# about autoupdate's warning because that contains
3498# information on what to do *after* running autoupdate.
3499
3500
3501
3502# _LT_COMPILER_C_O([TAGNAME])
3503# ---------------------------
3504# Check to see if options -c and -o are simultaneously supported by compiler.
3505# This macro does not hard code the compiler like AC_PROG_CC_C_O.
3506# _LT_COMPILER_C_O
3507
3508
3509# _LT_COMPILER_FILE_LOCKS([TAGNAME])
3510# ----------------------------------
3511# Check to see if we can do hard links to lock some files if needed
3512# _LT_COMPILER_FILE_LOCKS
3513
3514
3515# _LT_CHECK_OBJDIR
3516# ----------------
3517# _LT_CHECK_OBJDIR
3518
3519
3520# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3521# --------------------------------------
3522# Check hardcoding attributes.
3523# _LT_LINKER_HARDCODE_LIBPATH
3524
3525
3526# _LT_CMD_STRIPLIB
3527# ----------------
3528# _LT_CMD_STRIPLIB
3529
3530
3531# _LT_SYS_DYNAMIC_LINKER([TAG])
3532# -----------------------------
3533# PORTME Fill in your ld.so characteristics
3534# _LT_SYS_DYNAMIC_LINKER
3535
3536
3537# _LT_PATH_TOOL_PREFIX(TOOL)
3538# --------------------------
3539# find a file program which can recognize shared library
3540# _LT_PATH_TOOL_PREFIX
3541
3542# Old name:
3543# This is what autoupdate's m4 run will expand.  It fires
3544# the warning (with _au_warn_XXX), outputs it into the
3545# updated configure.ac (with AC_DIAGNOSE), and then outputs
3546# the replacement expansion.
3547
3548
3549# This is an auxiliary macro that is also run when
3550# autoupdate runs m4.  It simply calls m4_warning, but
3551# we need a wrapper so that each warning is emitted only
3552# once.  We break the quoting in m4_warning's argument in
3553# order to expand this macro's arguments, not AU_DEFUN's.
3554
3555
3556# Finally, this is the expansion that is picked up by
3557# autoconf.  It tells the user to run autoupdate, and
3558# then outputs the replacement expansion.  We do not care
3559# about autoupdate's warning because that contains
3560# information on what to do *after* running autoupdate.
3561
3562
3563
3564# _LT_PATH_MAGIC
3565# --------------
3566# find a file program which can recognize a shared library
3567# _LT_PATH_MAGIC
3568
3569
3570# LT_PATH_LD
3571# ----------
3572# find the pathname to the GNU or non-GNU linker
3573# LT_PATH_LD
3574
3575# Old names:
3576# This is what autoupdate's m4 run will expand.  It fires
3577# the warning (with _au_warn_XXX), outputs it into the
3578# updated configure.ac (with AC_DIAGNOSE), and then outputs
3579# the replacement expansion.
3580
3581
3582# This is an auxiliary macro that is also run when
3583# autoupdate runs m4.  It simply calls m4_warning, but
3584# we need a wrapper so that each warning is emitted only
3585# once.  We break the quoting in m4_warning's argument in
3586# order to expand this macro's arguments, not AU_DEFUN's.
3587
3588
3589# Finally, this is the expansion that is picked up by
3590# autoconf.  It tells the user to run autoupdate, and
3591# then outputs the replacement expansion.  We do not care
3592# about autoupdate's warning because that contains
3593# information on what to do *after* running autoupdate.
3594
3595# This is what autoupdate's m4 run will expand.  It fires
3596# the warning (with _au_warn_XXX), outputs it into the
3597# updated configure.ac (with AC_DIAGNOSE), and then outputs
3598# the replacement expansion.
3599
3600
3601# This is an auxiliary macro that is also run when
3602# autoupdate runs m4.  It simply calls m4_warning, but
3603# we need a wrapper so that each warning is emitted only
3604# once.  We break the quoting in m4_warning's argument in
3605# order to expand this macro's arguments, not AU_DEFUN's.
3606
3607
3608# Finally, this is the expansion that is picked up by
3609# autoconf.  It tells the user to run autoupdate, and
3610# then outputs the replacement expansion.  We do not care
3611# about autoupdate's warning because that contains
3612# information on what to do *after* running autoupdate.
3613
3614
3615
3616# _LT_PATH_LD_GNU
3617#- --------------
3618# _LT_PATH_LD_GNU
3619
3620
3621# _LT_CMD_RELOAD
3622# --------------
3623# find reload flag for linker
3624#   -- PORTME Some linkers may need a different reload flag.
3625# _LT_CMD_RELOAD
3626
3627
3628# _LT_CHECK_MAGIC_METHOD
3629# ----------------------
3630# how to check for library dependencies
3631#  -- PORTME fill in with the dynamic library characteristics
3632# _LT_CHECK_MAGIC_METHOD
3633
3634
3635# LT_PATH_NM
3636# ----------
3637# find the pathname to a BSD- or MS-compatible name lister
3638# LT_PATH_NM
3639
3640# Old names:
3641# This is what autoupdate's m4 run will expand.  It fires
3642# the warning (with _au_warn_XXX), outputs it into the
3643# updated configure.ac (with AC_DIAGNOSE), and then outputs
3644# the replacement expansion.
3645
3646
3647# This is an auxiliary macro that is also run when
3648# autoupdate runs m4.  It simply calls m4_warning, but
3649# we need a wrapper so that each warning is emitted only
3650# once.  We break the quoting in m4_warning's argument in
3651# order to expand this macro's arguments, not AU_DEFUN's.
3652
3653
3654# Finally, this is the expansion that is picked up by
3655# autoconf.  It tells the user to run autoupdate, and
3656# then outputs the replacement expansion.  We do not care
3657# about autoupdate's warning because that contains
3658# information on what to do *after* running autoupdate.
3659
3660# This is what autoupdate's m4 run will expand.  It fires
3661# the warning (with _au_warn_XXX), outputs it into the
3662# updated configure.ac (with AC_DIAGNOSE), and then outputs
3663# the replacement expansion.
3664
3665
3666# This is an auxiliary macro that is also run when
3667# autoupdate runs m4.  It simply calls m4_warning, but
3668# we need a wrapper so that each warning is emitted only
3669# once.  We break the quoting in m4_warning's argument in
3670# order to expand this macro's arguments, not AU_DEFUN's.
3671
3672
3673# Finally, this is the expansion that is picked up by
3674# autoconf.  It tells the user to run autoupdate, and
3675# then outputs the replacement expansion.  We do not care
3676# about autoupdate's warning because that contains
3677# information on what to do *after* running autoupdate.
3678
3679
3680# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3681# --------------------------------
3682# how to determine the name of the shared library
3683# associated with a specific link library.
3684#  -- PORTME fill in with the dynamic library characteristics
3685# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3686
3687
3688# _LT_PATH_MANIFEST_TOOL
3689# ----------------------
3690# locate the manifest tool
3691# _LT_PATH_MANIFEST_TOOL
3692
3693
3694# LT_LIB_M
3695# --------
3696# check for math library
3697# LT_LIB_M
3698
3699# Old name:
3700# This is what autoupdate's m4 run will expand.  It fires
3701# the warning (with _au_warn_XXX), outputs it into the
3702# updated configure.ac (with AC_DIAGNOSE), and then outputs
3703# the replacement expansion.
3704
3705
3706# This is an auxiliary macro that is also run when
3707# autoupdate runs m4.  It simply calls m4_warning, but
3708# we need a wrapper so that each warning is emitted only
3709# once.  We break the quoting in m4_warning's argument in
3710# order to expand this macro's arguments, not AU_DEFUN's.
3711
3712
3713# Finally, this is the expansion that is picked up by
3714# autoconf.  It tells the user to run autoupdate, and
3715# then outputs the replacement expansion.  We do not care
3716# about autoupdate's warning because that contains
3717# information on what to do *after* running autoupdate.
3718
3719
3720
3721# _LT_COMPILER_NO_RTTI([TAGNAME])
3722# -------------------------------
3723# _LT_COMPILER_NO_RTTI
3724
3725
3726# _LT_CMD_GLOBAL_SYMBOLS
3727# ----------------------
3728 # _LT_CMD_GLOBAL_SYMBOLS
3729
3730
3731# _LT_COMPILER_PIC([TAGNAME])
3732# ---------------------------
3733# _LT_COMPILER_PIC
3734
3735
3736# _LT_LINKER_SHLIBS([TAGNAME])
3737# ----------------------------
3738# See if the linker supports building shared libraries.
3739# _LT_LINKER_SHLIBS
3740
3741
3742# _LT_LANG_C_CONFIG([TAG])
3743# ------------------------
3744# Ensure that the configuration variables for a C compiler are suitably
3745# defined.  These variables are subsequently used by _LT_CONFIG to write
3746# the compiler configuration to `libtool'.
3747# _LT_LANG_C_CONFIG
3748
3749
3750# _LT_LANG_CXX_CONFIG([TAG])
3751# --------------------------
3752# Ensure that the configuration variables for a C++ compiler are suitably
3753# defined.  These variables are subsequently used by _LT_CONFIG to write
3754# the compiler configuration to `libtool'.
3755# _LT_LANG_CXX_CONFIG
3756
3757
3758# _LT_FUNC_STRIPNAME_CNF
3759# ----------------------
3760# func_stripname_cnf prefix suffix name
3761# strip PREFIX and SUFFIX off of NAME.
3762# PREFIX and SUFFIX must not contain globbing or regex special
3763# characters, hashes, percent signs, but SUFFIX may contain a leading
3764# dot (in which case that matches only a dot).
3765#
3766# This function is identical to the (non-XSI) version of func_stripname,
3767# except this one can be used by m4 code that may be executed by configure,
3768# rather than the libtool script.
3769# _LT_FUNC_STRIPNAME_CNF
3770
3771# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3772# ---------------------------------
3773# Figure out "hidden" library dependencies from verbose
3774# compiler output when linking a shared library.
3775# Parse the compiler output and extract the necessary
3776# objects, libraries and library flags.
3777# _LT_SYS_HIDDEN_LIBDEPS
3778
3779
3780# _LT_LANG_F77_CONFIG([TAG])
3781# --------------------------
3782# Ensure that the configuration variables for a Fortran 77 compiler are
3783# suitably defined.  These variables are subsequently used by _LT_CONFIG
3784# to write the compiler configuration to `libtool'.
3785# _LT_LANG_F77_CONFIG
3786
3787
3788# _LT_LANG_FC_CONFIG([TAG])
3789# -------------------------
3790# Ensure that the configuration variables for a Fortran compiler are
3791# suitably defined.  These variables are subsequently used by _LT_CONFIG
3792# to write the compiler configuration to `libtool'.
3793# _LT_LANG_FC_CONFIG
3794
3795
3796# _LT_LANG_GCJ_CONFIG([TAG])
3797# --------------------------
3798# Ensure that the configuration variables for the GNU Java Compiler compiler
3799# are suitably defined.  These variables are subsequently used by _LT_CONFIG
3800# to write the compiler configuration to `libtool'.
3801# _LT_LANG_GCJ_CONFIG
3802
3803
3804# _LT_LANG_GO_CONFIG([TAG])
3805# --------------------------
3806# Ensure that the configuration variables for the GNU Go compiler
3807# are suitably defined.  These variables are subsequently used by _LT_CONFIG
3808# to write the compiler configuration to `libtool'.
3809# _LT_LANG_GO_CONFIG
3810
3811
3812# _LT_LANG_RC_CONFIG([TAG])
3813# -------------------------
3814# Ensure that the configuration variables for the Windows resource compiler
3815# are suitably defined.  These variables are subsequently used by _LT_CONFIG
3816# to write the compiler configuration to `libtool'.
3817# _LT_LANG_RC_CONFIG
3818
3819
3820# LT_PROG_GCJ
3821# -----------
3822
3823
3824# Old name:
3825# This is what autoupdate's m4 run will expand.  It fires
3826# the warning (with _au_warn_XXX), outputs it into the
3827# updated configure.ac (with AC_DIAGNOSE), and then outputs
3828# the replacement expansion.
3829
3830
3831# This is an auxiliary macro that is also run when
3832# autoupdate runs m4.  It simply calls m4_warning, but
3833# we need a wrapper so that each warning is emitted only
3834# once.  We break the quoting in m4_warning's argument in
3835# order to expand this macro's arguments, not AU_DEFUN's.
3836
3837
3838# Finally, this is the expansion that is picked up by
3839# autoconf.  It tells the user to run autoupdate, and
3840# then outputs the replacement expansion.  We do not care
3841# about autoupdate's warning because that contains
3842# information on what to do *after* running autoupdate.
3843
3844
3845
3846# LT_PROG_GO
3847# ----------
3848
3849
3850
3851# LT_PROG_RC
3852# ----------
3853
3854
3855# Old name:
3856# This is what autoupdate's m4 run will expand.  It fires
3857# the warning (with _au_warn_XXX), outputs it into the
3858# updated configure.ac (with AC_DIAGNOSE), and then outputs
3859# the replacement expansion.
3860
3861
3862# This is an auxiliary macro that is also run when
3863# autoupdate runs m4.  It simply calls m4_warning, but
3864# we need a wrapper so that each warning is emitted only
3865# once.  We break the quoting in m4_warning's argument in
3866# order to expand this macro's arguments, not AU_DEFUN's.
3867
3868
3869# Finally, this is the expansion that is picked up by
3870# autoconf.  It tells the user to run autoupdate, and
3871# then outputs the replacement expansion.  We do not care
3872# about autoupdate's warning because that contains
3873# information on what to do *after* running autoupdate.
3874
3875
3876
3877# _LT_DECL_EGREP
3878# --------------
3879# If we don't have a new enough Autoconf to choose the best grep
3880# available, choose the one first in the user's PATH.
3881
3882
3883
3884# _LT_DECL_OBJDUMP
3885# --------------
3886# If we don't have a new enough Autoconf to choose the best objdump
3887# available, choose the one first in the user's PATH.
3888
3889
3890# _LT_DECL_DLLTOOL
3891# ----------------
3892# Ensure DLLTOOL variable is set.
3893
3894
3895# _LT_DECL_SED
3896# ------------
3897# Check for a fully-functional sed program, that truncates
3898# as few characters as possible.  Prefer GNU sed if found.
3899# _LT_DECL_SED
3900
3901#m4_ifndef
3902
3903# Old name:
3904# This is what autoupdate's m4 run will expand.  It fires
3905# the warning (with _au_warn_XXX), outputs it into the
3906# updated configure.ac (with AC_DIAGNOSE), and then outputs
3907# the replacement expansion.
3908
3909
3910# This is an auxiliary macro that is also run when
3911# autoupdate runs m4.  It simply calls m4_warning, but
3912# we need a wrapper so that each warning is emitted only
3913# once.  We break the quoting in m4_warning's argument in
3914# order to expand this macro's arguments, not AU_DEFUN's.
3915
3916
3917# Finally, this is the expansion that is picked up by
3918# autoconf.  It tells the user to run autoupdate, and
3919# then outputs the replacement expansion.  We do not care
3920# about autoupdate's warning because that contains
3921# information on what to do *after* running autoupdate.
3922
3923
3924
3925# _LT_CHECK_SHELL_FEATURES
3926# ------------------------
3927# Find out whether the shell is Bourne or XSI compatible,
3928# or has some other useful features.
3929# _LT_CHECK_SHELL_FEATURES
3930
3931
3932# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
3933# ------------------------------------------------------
3934# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
3935# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
3936
3937
3938
3939# _LT_PROG_REPLACE_SHELLFNS
3940# -------------------------
3941# Replace existing portable implementations of several shell functions with
3942# equivalent extended shell implementations where those features are available..
3943
3944
3945# _LT_PATH_CONVERSION_FUNCTIONS
3946# -----------------------------
3947# Determine which file name conversion functions should be used by
3948# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
3949# for certain cross-compile configurations and native mingw.
3950# _LT_PATH_CONVERSION_FUNCTIONS
3951
3952# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
3953#
3954# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3955# Written by Gary V. Vaughan, 2004
3956#
3957# This file is free software; the Free Software Foundation gives
3958# unlimited permission to copy and/or distribute it, with or without
3959# modifications, as long as this notice is preserved.
3960
3961# serial 6 ltsugar.m4
3962
3963# This is to help aclocal find these macros, as it can't see m4_define.
3964
3965
3966
3967# lt_join(SEP, ARG1, [ARG2...])
3968# -----------------------------
3969# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3970# associated separator.
3971# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3972# versions in m4sugar had bugs.
3973
3974
3975
3976
3977# lt_car(LIST)
3978# lt_cdr(LIST)
3979# ------------
3980# Manipulate m4 lists.
3981# These macros are necessary as long as will still need to support
3982# Autoconf-2.59 which quotes differently.
3983
3984
3985
3986
3987
3988# lt_append(MACRO-NAME, STRING, [SEPARATOR])
3989# ------------------------------------------
3990# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
3991# Note that neither SEPARATOR nor STRING are expanded; they are appended
3992# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
3993# No SEPARATOR is output if MACRO-NAME was previously undefined (different
3994# than defined and empty).
3995#
3996# This macro is needed until we can rely on Autoconf 2.62, since earlier
3997# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
3998
3999
4000
4001
4002# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
4003# ----------------------------------------------------------
4004# Produce a SEP delimited list of all paired combinations of elements of
4005# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
4006# has the form PREFIXmINFIXSUFFIXn.
4007# Needed until we can rely on m4_combine added in Autoconf 2.62.
4008
4009
4010
4011# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
4012# -----------------------------------------------------------------------
4013# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
4014# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
4015
4016
4017
4018# lt_dict_add(DICT, KEY, VALUE)
4019# -----------------------------
4020
4021
4022
4023# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
4024# --------------------------------------------
4025
4026
4027
4028# lt_dict_fetch(DICT, KEY, [SUBKEY])
4029# ----------------------------------
4030
4031
4032
4033# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
4034# -----------------------------------------------------------------
4035
4036
4037
4038# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
4039# --------------------------------------------------------------
4040
4041
4042
4043# Helper functions for option handling.                    -*- Autoconf -*-
4044#
4045#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
4046#   Inc.
4047#   Written by Gary V. Vaughan, 2004
4048#
4049# This file is free software; the Free Software Foundation gives
4050# unlimited permission to copy and/or distribute it, with or without
4051# modifications, as long as this notice is preserved.
4052
4053# serial 7 ltoptions.m4
4054
4055# This is to help aclocal find these macros, as it can't see m4_define.
4056
4057
4058
4059# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
4060# ------------------------------------------
4061
4062
4063
4064# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
4065# ---------------------------------------
4066# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
4067# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
4068# saved as a flag.
4069
4070
4071
4072# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
4073# ------------------------------------------------------------
4074# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
4075
4076
4077
4078# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
4079# -------------------------------------------------------
4080# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
4081# are set.
4082
4083
4084
4085# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
4086# ----------------------------------------
4087# OPTION-LIST is a space-separated list of Libtool options associated
4088# with MACRO-NAME.  If any OPTION has a matching handler declared with
4089# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
4090# the unknown option and exit.
4091# _LT_SET_OPTIONS
4092
4093
4094## --------------------------------- ##
4095## Macros to handle LT_INIT options. ##
4096## --------------------------------- ##
4097
4098# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
4099# -----------------------------------------
4100
4101
4102
4103# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
4104# -----------------------------------------------
4105# LT_OPTION_DEFINE
4106
4107
4108# dlopen
4109# ------
4110
4111
4112# This is what autoupdate's m4 run will expand.  It fires
4113# the warning (with _au_warn_XXX), outputs it into the
4114# updated configure.ac (with AC_DIAGNOSE), and then outputs
4115# the replacement expansion.
4116
4117
4118# This is an auxiliary macro that is also run when
4119# autoupdate runs m4.  It simply calls m4_warning, but
4120# we need a wrapper so that each warning is emitted only
4121# once.  We break the quoting in m4_warning's argument in
4122# order to expand this macro's arguments, not AU_DEFUN's.
4123
4124
4125# Finally, this is the expansion that is picked up by
4126# autoconf.  It tells the user to run autoupdate, and
4127# then outputs the replacement expansion.  We do not care
4128# about autoupdate's warning because that contains
4129# information on what to do *after* running autoupdate.
4130
4131
4132
4133
4134# win32-dll
4135# ---------
4136# Declare package support for building win32 dll's.
4137# win32-dll
4138
4139# This is what autoupdate's m4 run will expand.  It fires
4140# the warning (with _au_warn_XXX), outputs it into the
4141# updated configure.ac (with AC_DIAGNOSE), and then outputs
4142# the replacement expansion.
4143
4144
4145# This is an auxiliary macro that is also run when
4146# autoupdate runs m4.  It simply calls m4_warning, but
4147# we need a wrapper so that each warning is emitted only
4148# once.  We break the quoting in m4_warning's argument in
4149# order to expand this macro's arguments, not AU_DEFUN's.
4150
4151
4152# Finally, this is the expansion that is picked up by
4153# autoconf.  It tells the user to run autoupdate, and
4154# then outputs the replacement expansion.  We do not care
4155# about autoupdate's warning because that contains
4156# information on what to do *after* running autoupdate.
4157
4158
4159
4160
4161# _LT_ENABLE_SHARED([DEFAULT])
4162# ----------------------------
4163# implement the --enable-shared flag, and supports the `shared' and
4164# `disable-shared' LT_INIT options.
4165# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
4166# _LT_ENABLE_SHARED
4167
4168
4169
4170
4171# Old names:
4172
4173
4174
4175
4176# This is what autoupdate's m4 run will expand.  It fires
4177# the warning (with _au_warn_XXX), outputs it into the
4178# updated configure.ac (with AC_DIAGNOSE), and then outputs
4179# the replacement expansion.
4180
4181
4182# This is an auxiliary macro that is also run when
4183# autoupdate runs m4.  It simply calls m4_warning, but
4184# we need a wrapper so that each warning is emitted only
4185# once.  We break the quoting in m4_warning's argument in
4186# order to expand this macro's arguments, not AU_DEFUN's.
4187
4188
4189# Finally, this is the expansion that is picked up by
4190# autoconf.  It tells the user to run autoupdate, and
4191# then outputs the replacement expansion.  We do not care
4192# about autoupdate's warning because that contains
4193# information on what to do *after* running autoupdate.
4194
4195# This is what autoupdate's m4 run will expand.  It fires
4196# the warning (with _au_warn_XXX), outputs it into the
4197# updated configure.ac (with AC_DIAGNOSE), and then outputs
4198# the replacement expansion.
4199
4200
4201# This is an auxiliary macro that is also run when
4202# autoupdate runs m4.  It simply calls m4_warning, but
4203# we need a wrapper so that each warning is emitted only
4204# once.  We break the quoting in m4_warning's argument in
4205# order to expand this macro's arguments, not AU_DEFUN's.
4206
4207
4208# Finally, this is the expansion that is picked up by
4209# autoconf.  It tells the user to run autoupdate, and
4210# then outputs the replacement expansion.  We do not care
4211# about autoupdate's warning because that contains
4212# information on what to do *after* running autoupdate.
4213
4214
4215
4216
4217
4218# _LT_ENABLE_STATIC([DEFAULT])
4219# ----------------------------
4220# implement the --enable-static flag, and support the `static' and
4221# `disable-static' LT_INIT options.
4222# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
4223# _LT_ENABLE_STATIC
4224
4225
4226
4227
4228# Old names:
4229
4230
4231
4232
4233# This is what autoupdate's m4 run will expand.  It fires
4234# the warning (with _au_warn_XXX), outputs it into the
4235# updated configure.ac (with AC_DIAGNOSE), and then outputs
4236# the replacement expansion.
4237
4238
4239# This is an auxiliary macro that is also run when
4240# autoupdate runs m4.  It simply calls m4_warning, but
4241# we need a wrapper so that each warning is emitted only
4242# once.  We break the quoting in m4_warning's argument in
4243# order to expand this macro's arguments, not AU_DEFUN's.
4244
4245
4246# Finally, this is the expansion that is picked up by
4247# autoconf.  It tells the user to run autoupdate, and
4248# then outputs the replacement expansion.  We do not care
4249# about autoupdate's warning because that contains
4250# information on what to do *after* running autoupdate.
4251
4252# This is what autoupdate's m4 run will expand.  It fires
4253# the warning (with _au_warn_XXX), outputs it into the
4254# updated configure.ac (with AC_DIAGNOSE), and then outputs
4255# the replacement expansion.
4256
4257
4258# This is an auxiliary macro that is also run when
4259# autoupdate runs m4.  It simply calls m4_warning, but
4260# we need a wrapper so that each warning is emitted only
4261# once.  We break the quoting in m4_warning's argument in
4262# order to expand this macro's arguments, not AU_DEFUN's.
4263
4264
4265# Finally, this is the expansion that is picked up by
4266# autoconf.  It tells the user to run autoupdate, and
4267# then outputs the replacement expansion.  We do not care
4268# about autoupdate's warning because that contains
4269# information on what to do *after* running autoupdate.
4270
4271
4272
4273
4274
4275# _LT_ENABLE_FAST_INSTALL([DEFAULT])
4276# ----------------------------------
4277# implement the --enable-fast-install flag, and support the `fast-install'
4278# and `disable-fast-install' LT_INIT options.
4279# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
4280# _LT_ENABLE_FAST_INSTALL
4281
4282
4283
4284
4285# Old names:
4286# This is what autoupdate's m4 run will expand.  It fires
4287# the warning (with _au_warn_XXX), outputs it into the
4288# updated configure.ac (with AC_DIAGNOSE), and then outputs
4289# the replacement expansion.
4290
4291
4292# This is an auxiliary macro that is also run when
4293# autoupdate runs m4.  It simply calls m4_warning, but
4294# we need a wrapper so that each warning is emitted only
4295# once.  We break the quoting in m4_warning's argument in
4296# order to expand this macro's arguments, not AU_DEFUN's.
4297
4298
4299# Finally, this is the expansion that is picked up by
4300# autoconf.  It tells the user to run autoupdate, and
4301# then outputs the replacement expansion.  We do not care
4302# about autoupdate's warning because that contains
4303# information on what to do *after* running autoupdate.
4304
4305
4306# This is what autoupdate's m4 run will expand.  It fires
4307# the warning (with _au_warn_XXX), outputs it into the
4308# updated configure.ac (with AC_DIAGNOSE), and then outputs
4309# the replacement expansion.
4310
4311
4312# This is an auxiliary macro that is also run when
4313# autoupdate runs m4.  It simply calls m4_warning, but
4314# we need a wrapper so that each warning is emitted only
4315# once.  We break the quoting in m4_warning's argument in
4316# order to expand this macro's arguments, not AU_DEFUN's.
4317
4318
4319# Finally, this is the expansion that is picked up by
4320# autoconf.  It tells the user to run autoupdate, and
4321# then outputs the replacement expansion.  We do not care
4322# about autoupdate's warning because that contains
4323# information on what to do *after* running autoupdate.
4324
4325
4326
4327
4328# _LT_WITH_PIC([MODE])
4329# --------------------
4330# implement the --with-pic flag, and support the `pic-only' and `no-pic'
4331# LT_INIT options.
4332# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
4333# _LT_WITH_PIC
4334
4335
4336
4337
4338# Old name:
4339# This is what autoupdate's m4 run will expand.  It fires
4340# the warning (with _au_warn_XXX), outputs it into the
4341# updated configure.ac (with AC_DIAGNOSE), and then outputs
4342# the replacement expansion.
4343
4344
4345# This is an auxiliary macro that is also run when
4346# autoupdate runs m4.  It simply calls m4_warning, but
4347# we need a wrapper so that each warning is emitted only
4348# once.  We break the quoting in m4_warning's argument in
4349# order to expand this macro's arguments, not AU_DEFUN's.
4350
4351
4352# Finally, this is the expansion that is picked up by
4353# autoconf.  It tells the user to run autoupdate, and
4354# then outputs the replacement expansion.  We do not care
4355# about autoupdate's warning because that contains
4356# information on what to do *after* running autoupdate.
4357
4358
4359
4360## ----------------- ##
4361## LTDL_INIT Options ##
4362## ----------------- ##
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373# ltversion.m4 -- version numbers			-*- Autoconf -*-
4374#
4375#   Copyright (C) 2004 Free Software Foundation, Inc.
4376#   Written by Scott James Remnant, 2004
4377#
4378# This file is free software; the Free Software Foundation gives
4379# unlimited permission to copy and/or distribute it, with or without
4380# modifications, as long as this notice is preserved.
4381
4382# @configure_input@
4383
4384# serial 3337 ltversion.m4
4385# This file is part of GNU Libtool
4386
4387
4388
4389
4390
4391
4392# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
4393#
4394#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
4395#   Written by Scott James Remnant, 2004.
4396#
4397# This file is free software; the Free Software Foundation gives
4398# unlimited permission to copy and/or distribute it, with or without
4399# modifications, as long as this notice is preserved.
4400
4401# serial 5 lt~obsolete.m4
4402
4403# These exist entirely to fool aclocal when bootstrapping libtool.
4404#
4405# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
4406# which have later been changed to m4_define as they aren't part of the
4407# exported API, or moved to Autoconf or Automake where they belong.
4408#
4409# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
4410# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
4411# using a macro with the same name in our local m4/libtool.m4 it'll
4412# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
4413# and doesn't know about Autoconf macros at all.)
4414#
4415# So we provide this file, which has a silly filename so it's always
4416# included after everything else.  This provides aclocal with the
4417# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
4418# because those macros already exist, or will be overwritten later.
4419# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
4420#
4421# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
4422# Yes, that means every name once taken will need to remain here until
4423# we give up compatibility with versions before 1.7, at which point
4424# we need to keep only those names which we still refer to.
4425
4426# This is to help aclocal find these macros, as it can't see m4_define.
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497  apr_ste_save_CPPFLAGS="$CPPFLAGS"
4498
4499
4500  apr_ste_save_CFLAGS="$CFLAGS"
4501
4502
4503  apr_ste_save_LDFLAGS="$LDFLAGS"
4504
4505
4506  apr_ste_save_LIBS="$LIBS"
4507
4508
4509  apr_ste_save_INCLUDES="$INCLUDES"
4510
4511
4512
4513  rm -f config.nice
4514  cat >config.nice<<EOF
4515#! /bin/sh
4516#
4517# Created by configure
4518
4519EOF
4520  if test -n "$CC"; then
4521    echo "CC=\"$CC\"; export CC" >> config.nice
4522  fi
4523  if test -n "$CFLAGS"; then
4524    echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
4525  fi
4526  if test -n "$CPPFLAGS"; then
4527    echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
4528  fi
4529  if test -n "$LDFLAGS"; then
4530    echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
4531  fi
4532  if test -n "$LTFLAGS"; then
4533    echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
4534  fi
4535  if test -n "$LIBS"; then
4536    echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
4537  fi
4538  if test -n "$INCLUDES"; then
4539    echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
4540  fi
4541  if test -n "$NOTEST_CFLAGS"; then
4542    echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
4543  fi
4544  if test -n "$NOTEST_CPPFLAGS"; then
4545    echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
4546  fi
4547  if test -n "$NOTEST_LDFLAGS"; then
4548    echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
4549  fi
4550  if test -n "$NOTEST_LIBS"; then
4551    echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
4552  fi
4553
4554  # Retrieve command-line arguments.
4555  eval "set x $0 $ac_configure_args"
4556  shift
4557
4558  for arg
4559  do
4560
4561ap_last=
4562ap_cur="$arg"
4563while test "x${ap_cur}" != "x${ap_last}";
4564do
4565  ap_last="${ap_cur}"
4566  ap_cur=`eval "echo ${ap_cur}"`
4567done
4568arg="${ap_cur}"
4569
4570    echo "\"$arg\" \\" >> config.nice
4571  done
4572  echo '"$@"' >> config.nice
4573  chmod +x config.nice
4574
4575
4576# Make sure we can run config.sub.
4577$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4578  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4579
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4581$as_echo_n "checking build system type... " >&6; }
4582if ${ac_cv_build+:} false; then :
4583  $as_echo_n "(cached) " >&6
4584else
4585  ac_build_alias=$build_alias
4586test "x$ac_build_alias" = x &&
4587  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4588test "x$ac_build_alias" = x &&
4589  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4590ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4591  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4592
4593fi
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4595$as_echo "$ac_cv_build" >&6; }
4596case $ac_cv_build in
4597*-*-*) ;;
4598*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4599esac
4600build=$ac_cv_build
4601ac_save_IFS=$IFS; IFS='-'
4602set x $ac_cv_build
4603shift
4604build_cpu=$1
4605build_vendor=$2
4606shift; shift
4607# Remember, the first character of IFS is used to create $*,
4608# except with old shells:
4609build_os=$*
4610IFS=$ac_save_IFS
4611case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4612
4613
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4615$as_echo_n "checking host system type... " >&6; }
4616if ${ac_cv_host+:} false; then :
4617  $as_echo_n "(cached) " >&6
4618else
4619  if test "x$host_alias" = x; then
4620  ac_cv_host=$ac_cv_build
4621else
4622  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4623    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4624fi
4625
4626fi
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4628$as_echo "$ac_cv_host" >&6; }
4629case $ac_cv_host in
4630*-*-*) ;;
4631*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4632esac
4633host=$ac_cv_host
4634ac_save_IFS=$IFS; IFS='-'
4635set x $ac_cv_host
4636shift
4637host_cpu=$1
4638host_vendor=$2
4639shift; shift
4640# Remember, the first character of IFS is used to create $*,
4641# except with old shells:
4642host_os=$*
4643IFS=$ac_save_IFS
4644case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4645
4646
4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4648$as_echo_n "checking target system type... " >&6; }
4649if ${ac_cv_target+:} false; then :
4650  $as_echo_n "(cached) " >&6
4651else
4652  if test "x$target_alias" = x; then
4653  ac_cv_target=$ac_cv_host
4654else
4655  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4656    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4657fi
4658
4659fi
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4661$as_echo "$ac_cv_target" >&6; }
4662case $ac_cv_target in
4663*-*-*) ;;
4664*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4665esac
4666target=$ac_cv_target
4667ac_save_IFS=$IFS; IFS='-'
4668set x $ac_cv_target
4669shift
4670target_cpu=$1
4671target_vendor=$2
4672shift; shift
4673# Remember, the first character of IFS is used to create $*,
4674# except with old shells:
4675target_os=$*
4676IFS=$ac_save_IFS
4677case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4678
4679
4680# The aliases save the names the user supplied, while $host etc.
4681# will get canonicalized.
4682test -n "$target_alias" &&
4683  test "$program_prefix$program_suffix$program_transform_name" = \
4684    NONENONEs,x,x, &&
4685  program_prefix=${target_alias}-
4686
4687echo "Configuring APR library"
4688echo "Platform: $host"
4689
4690
4691
4692# Absolute source/build directory
4693apr_srcdir=`(cd $srcdir && pwd)`
4694apr_builddir=`pwd`
4695
4696
4697
4698if test "$apr_builddir" != "$apr_srcdir"; then
4699  USE_VPATH=1
4700  APR_CONFIG_LOCATION=build
4701else
4702  APR_CONFIG_LOCATION=source
4703fi
4704
4705
4706
4707# Libtool might need this symbol -- it must point to the location of
4708# the generated libtool script (not necessarily the "top" build dir).
4709#
4710top_builddir="$apr_builddir"
4711
4712
4713# Directory containing apr build macros, helpers, and make rules
4714# NOTE: make rules (apr_rules.mk) will be in the builddir for vpath
4715#
4716apr_buildout=$apr_builddir/build
4717apr_builders=$apr_srcdir/build
4718
4719
4720MKDIR=$apr_builders/mkdir.sh
4721
4722
4723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkdir -p" >&5
4724$as_echo_n "checking for working mkdir -p... " >&6; }
4725if ${ac_cv_mkdir_p+:} false; then :
4726  $as_echo_n "(cached) " >&6
4727else
4728
4729    test -d conftestdir && rm -rf conftestdir
4730    mkdir -p conftestdir/somedir >/dev/null 2>&1
4731    if test -d conftestdir/somedir; then
4732      ac_cv_mkdir_p=yes
4733    else
4734      ac_cv_mkdir_p=no
4735    fi
4736    rm -rf conftestdir
4737
4738fi
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p" >&5
4740$as_echo "$ac_cv_mkdir_p" >&6; }
4741  if test "$ac_cv_mkdir_p" = "yes"; then
4742      mkdir_p="mkdir -p"
4743  else
4744      mkdir_p="$apr_builders/mkdir.sh"
4745  fi
4746
4747
4748# get our version information
4749get_version="$apr_builders/get-version.sh"
4750version_hdr="$apr_srcdir/include/apr_version.h"
4751APR_MAJOR_VERSION="`$get_version major $version_hdr APR`"
4752APR_DOTTED_VERSION="`$get_version all $version_hdr APR`"
4753
4754
4755
4756
4757echo "APR Version: ${APR_DOTTED_VERSION}"
4758
4759
4760# Check whether --enable-layout was given.
4761if test "${enable_layout+set}" = set; then :
4762  enableval=$enable_layout;
4763  LAYOUT=$enableval
4764
4765fi
4766
4767
4768if test -z "$LAYOUT"; then
4769  LAYOUT="apr"
4770fi
4771
4772  if test ! -f $srcdir/config.layout; then
4773    echo "** Error: Layout file $srcdir/config.layout not found"
4774    echo "** Error: Cannot use undefined layout '$LAYOUT'"
4775    exit 1
4776  fi
4777  # Catch layout names including a slash which will otherwise
4778  # confuse the heck out of the sed script.
4779  case $LAYOUT in
4780  */*)
4781    echo "** Error: $LAYOUT is not a valid layout name"
4782    exit 1 ;;
4783  esac
4784  pldconf=./config.pld
4785
4786  sed -e "1s/[ 	]*<[lL]ayout[ 	]*$LAYOUT[ 	]*>[ 	]*//;1t" \
4787      -e "1,/[ 	]*<[lL]ayout[ 	]*$LAYOUT[ 	]*>[ 	]*/d" \
4788      -e '/[ 	]*<\/Layout>[ 	]*/,$d' \
4789      -e "s/^[ 	]*//g" \
4790      -e "s/:[ 	]*/=\'/g" \
4791      -e "s/[ 	]*$/'/g" \
4792      $srcdir/config.layout > $pldconf
4793  layout_name=$LAYOUT
4794  if test ! -s $pldconf; then
4795    echo "** Error: unable to find layout $layout_name"
4796    exit 1
4797  fi
4798  . $pldconf
4799  rm $pldconf
4800  for var in prefix exec_prefix bindir sbindir libexecdir mandir \
4801             sysconfdir datadir includedir localstatedir runtimedir \
4802             logfiledir libdir installbuilddir libsuffix ; do
4803    eval "val=\"\$$var\""
4804    case $val in
4805      *+)
4806        val=`echo $val | sed -e 's;\+$;;'`
4807        eval "$var=\"\$val\""
4808        autosuffix=yes
4809        ;;
4810      *)
4811        autosuffix=no
4812        ;;
4813    esac
4814    val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
4815    val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
4816    if test "$autosuffix" = "yes"; then
4817      if echo $val | grep apache >/dev/null; then
4818        addtarget=no
4819      else
4820        addtarget=yes
4821      fi
4822      if test "$addtarget" = "yes"; then
4823        val="$val/apache2"
4824      fi
4825    fi
4826    eval "$var='$val'"
4827  done
4828
4829
4830
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5
4832$as_echo_n "checking for chosen layout... " >&6; }
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $layout_name" >&5
4834$as_echo "$layout_name" >&6; }
4835
4836
4837ac_prev=
4838# Retrieve the command-line arguments.  The eval is needed because
4839# the arguments are quoted to preserve accuracy.
4840eval "set x $ac_configure_args"
4841shift
4842for ac_option
4843do
4844  # If the previous option needs an argument, assign it.
4845  if test -n "$ac_prev"; then
4846    eval "$ac_prev=\$ac_option"
4847    ac_prev=
4848    continue
4849  fi
4850
4851  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
4852
4853  case $ac_option in
4854
4855  -bindir | --bindir | --bindi | --bind | --bin | --bi)
4856    ac_prev=bindir ;;
4857  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
4858    bindir="$ac_optarg" ;;
4859
4860  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
4861    ac_prev=datadir ;;
4862  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
4863  | --da=*)
4864    datadir="$ac_optarg" ;;
4865
4866  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
4867  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
4868  | --exec | --exe | --ex)
4869    ac_prev=exec_prefix ;;
4870  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
4871  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
4872  | --exec=* | --exe=* | --ex=*)
4873    exec_prefix="$ac_optarg" ;;
4874
4875  -includedir | --includedir | --includedi | --included | --include \
4876  | --includ | --inclu | --incl | --inc)
4877    ac_prev=includedir ;;
4878  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
4879  | --includ=* | --inclu=* | --incl=* | --inc=*)
4880    includedir="$ac_optarg" ;;
4881
4882  -infodir | --infodir | --infodi | --infod | --info | --inf)
4883    ac_prev=infodir ;;
4884  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
4885    infodir="$ac_optarg" ;;
4886
4887  -libdir | --libdir | --libdi | --libd)
4888    ac_prev=libdir ;;
4889  -libdir=* | --libdir=* | --libdi=* | --libd=*)
4890    libdir="$ac_optarg" ;;
4891
4892  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
4893  | --libexe | --libex | --libe)
4894    ac_prev=libexecdir ;;
4895  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
4896  | --libexe=* | --libex=* | --libe=*)
4897    libexecdir="$ac_optarg" ;;
4898
4899  -localstatedir | --localstatedir | --localstatedi | --localstated \
4900  | --localstate | --localstat | --localsta | --localst \
4901  | --locals | --local | --loca | --loc | --lo)
4902    ac_prev=localstatedir ;;
4903  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
4904  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
4905  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
4906    localstatedir="$ac_optarg" ;;
4907
4908  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
4909    ac_prev=mandir ;;
4910  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
4911    mandir="$ac_optarg" ;;
4912
4913  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4914    ac_prev=prefix ;;
4915  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4916    prefix="$ac_optarg" ;;
4917
4918  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
4919    ac_prev=sbindir ;;
4920  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
4921  | --sbi=* | --sb=*)
4922    sbindir="$ac_optarg" ;;
4923
4924  -sharedstatedir | --sharedstatedir | --sharedstatedi \
4925  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
4926  | --sharedst | --shareds | --shared | --share | --shar \
4927  | --sha | --sh)
4928    ac_prev=sharedstatedir ;;
4929  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
4930  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
4931  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
4932  | --sha=* | --sh=*)
4933    sharedstatedir="$ac_optarg" ;;
4934
4935  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
4936  | --syscon | --sysco | --sysc | --sys | --sy)
4937    ac_prev=sysconfdir ;;
4938  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
4939  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
4940    sysconfdir="$ac_optarg" ;;
4941
4942  esac
4943done
4944
4945# Be sure to have absolute paths.
4946for ac_var in exec_prefix prefix
4947do
4948  eval ac_val=$`echo $ac_var`
4949  case $ac_val in
4950    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
4951    *)  as_fn_error $? "expected an absolute path for --$ac_var: $ac_val" "$LINENO" 5;;
4952  esac
4953done
4954
4955
4956
4957
4958case "$host" in
4959  *-apple-aux3*)
4960
4961  if test -z "$CC"; then
4962    test "x$silent" != "xyes" && echo "  setting CC to \"gcc\""
4963    CC="gcc"
4964  fi
4965
4966      ;;
4967  bs2000*-siemens-sysv*)
4968
4969  if test -z "$CC"; then
4970    test "x$silent" != "xyes" && echo "  setting CC to \"c89 -XLLML -XLLMK -XL -Kno_integer_overflow\""
4971    CC="c89 -XLLML -XLLMK -XL -Kno_integer_overflow"
4972  fi
4973
4974      ;;
4975  *convex-v11*)
4976
4977  if test -z "$CC"; then
4978    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
4979    CC="cc"
4980  fi
4981
4982      ;;
4983  *-ibm-os390)
4984
4985  if test -z "$CC"; then
4986    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
4987    CC="cc"
4988  fi
4989
4990      ;;
4991  *-ibm-as400)
4992
4993  if test -z "$CC"; then
4994    test "x$silent" != "xyes" && echo "  setting CC to \"icc\""
4995    CC="icc"
4996  fi
4997
4998      ;;
4999  *-isc4*)
5000
5001  if test -z "$CC"; then
5002    test "x$silent" != "xyes" && echo "  setting CC to \"gcc\""
5003    CC="gcc"
5004  fi
5005
5006      ;;
5007  m88k-*-CX/SX|CYBER)
5008
5009  if test -z "$CC"; then
5010    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
5011    CC="cc"
5012  fi
5013
5014      ;;
5015  *-next-openstep*)
5016
5017  if test -z "$CC"; then
5018    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
5019    CC="cc"
5020  fi
5021
5022      ;;
5023  *-qnx32)
5024
5025  if test -z "$CC"; then
5026    test "x$silent" != "xyes" && echo "  setting CC to \"cc -F\""
5027    CC="cc -F"
5028  fi
5029
5030      ;;
5031  *-tandem-oss)
5032
5033  if test -z "$CC"; then
5034    test "x$silent" != "xyes" && echo "  setting CC to \"c89\""
5035    CC="c89"
5036  fi
5037
5038      ;;
5039  TPF)
5040
5041  if test -z "$CC"; then
5042    test "x$silent" != "xyes" && echo "  setting CC to \"c89\""
5043    CC="c89"
5044  fi
5045
5046      ;;
5047esac
5048
5049
5050ac_ext=c
5051ac_cpp='$CPP $CPPFLAGS'
5052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5054ac_compiler_gnu=$ac_cv_c_compiler_gnu
5055if test -n "$ac_tool_prefix"; then
5056  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5057set dummy ${ac_tool_prefix}gcc; ac_word=$2
5058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059$as_echo_n "checking for $ac_word... " >&6; }
5060if ${ac_cv_prog_CC+:} false; then :
5061  $as_echo_n "(cached) " >&6
5062else
5063  if test -n "$CC"; then
5064  ac_cv_prog_CC="$CC" # Let the user override the test.
5065else
5066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067for as_dir in $PATH
5068do
5069  IFS=$as_save_IFS
5070  test -z "$as_dir" && as_dir=.
5071    for ac_exec_ext in '' $ac_executable_extensions; do
5072  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5073    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5075    break 2
5076  fi
5077done
5078  done
5079IFS=$as_save_IFS
5080
5081fi
5082fi
5083CC=$ac_cv_prog_CC
5084if test -n "$CC"; then
5085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5086$as_echo "$CC" >&6; }
5087else
5088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089$as_echo "no" >&6; }
5090fi
5091
5092
5093fi
5094if test -z "$ac_cv_prog_CC"; then
5095  ac_ct_CC=$CC
5096  # Extract the first word of "gcc", so it can be a program name with args.
5097set dummy gcc; ac_word=$2
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099$as_echo_n "checking for $ac_word... " >&6; }
5100if ${ac_cv_prog_ac_ct_CC+:} false; then :
5101  $as_echo_n "(cached) " >&6
5102else
5103  if test -n "$ac_ct_CC"; then
5104  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5105else
5106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107for as_dir in $PATH
5108do
5109  IFS=$as_save_IFS
5110  test -z "$as_dir" && as_dir=.
5111    for ac_exec_ext in '' $ac_executable_extensions; do
5112  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113    ac_cv_prog_ac_ct_CC="gcc"
5114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115    break 2
5116  fi
5117done
5118  done
5119IFS=$as_save_IFS
5120
5121fi
5122fi
5123ac_ct_CC=$ac_cv_prog_ac_ct_CC
5124if test -n "$ac_ct_CC"; then
5125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5126$as_echo "$ac_ct_CC" >&6; }
5127else
5128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129$as_echo "no" >&6; }
5130fi
5131
5132  if test "x$ac_ct_CC" = x; then
5133    CC=""
5134  else
5135    case $cross_compiling:$ac_tool_warned in
5136yes:)
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5139ac_tool_warned=yes ;;
5140esac
5141    CC=$ac_ct_CC
5142  fi
5143else
5144  CC="$ac_cv_prog_CC"
5145fi
5146
5147if test -z "$CC"; then
5148          if test -n "$ac_tool_prefix"; then
5149    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5150set dummy ${ac_tool_prefix}cc; ac_word=$2
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152$as_echo_n "checking for $ac_word... " >&6; }
5153if ${ac_cv_prog_CC+:} false; then :
5154  $as_echo_n "(cached) " >&6
5155else
5156  if test -n "$CC"; then
5157  ac_cv_prog_CC="$CC" # Let the user override the test.
5158else
5159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160for as_dir in $PATH
5161do
5162  IFS=$as_save_IFS
5163  test -z "$as_dir" && as_dir=.
5164    for ac_exec_ext in '' $ac_executable_extensions; do
5165  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166    ac_cv_prog_CC="${ac_tool_prefix}cc"
5167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168    break 2
5169  fi
5170done
5171  done
5172IFS=$as_save_IFS
5173
5174fi
5175fi
5176CC=$ac_cv_prog_CC
5177if test -n "$CC"; then
5178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5179$as_echo "$CC" >&6; }
5180else
5181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182$as_echo "no" >&6; }
5183fi
5184
5185
5186  fi
5187fi
5188if test -z "$CC"; then
5189  # Extract the first word of "cc", so it can be a program name with args.
5190set dummy cc; ac_word=$2
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192$as_echo_n "checking for $ac_word... " >&6; }
5193if ${ac_cv_prog_CC+:} false; then :
5194  $as_echo_n "(cached) " >&6
5195else
5196  if test -n "$CC"; then
5197  ac_cv_prog_CC="$CC" # Let the user override the test.
5198else
5199  ac_prog_rejected=no
5200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201for as_dir in $PATH
5202do
5203  IFS=$as_save_IFS
5204  test -z "$as_dir" && as_dir=.
5205    for ac_exec_ext in '' $ac_executable_extensions; do
5206  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5207    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5208       ac_prog_rejected=yes
5209       continue
5210     fi
5211    ac_cv_prog_CC="cc"
5212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213    break 2
5214  fi
5215done
5216  done
5217IFS=$as_save_IFS
5218
5219if test $ac_prog_rejected = yes; then
5220  # We found a bogon in the path, so make sure we never use it.
5221  set dummy $ac_cv_prog_CC
5222  shift
5223  if test $# != 0; then
5224    # We chose a different compiler from the bogus one.
5225    # However, it has the same basename, so the bogon will be chosen
5226    # first if we set CC to just the basename; use the full file name.
5227    shift
5228    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5229  fi
5230fi
5231fi
5232fi
5233CC=$ac_cv_prog_CC
5234if test -n "$CC"; then
5235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5236$as_echo "$CC" >&6; }
5237else
5238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239$as_echo "no" >&6; }
5240fi
5241
5242
5243fi
5244if test -z "$CC"; then
5245  if test -n "$ac_tool_prefix"; then
5246  for ac_prog in cl.exe
5247  do
5248    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5249set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251$as_echo_n "checking for $ac_word... " >&6; }
5252if ${ac_cv_prog_CC+:} false; then :
5253  $as_echo_n "(cached) " >&6
5254else
5255  if test -n "$CC"; then
5256  ac_cv_prog_CC="$CC" # Let the user override the test.
5257else
5258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259for as_dir in $PATH
5260do
5261  IFS=$as_save_IFS
5262  test -z "$as_dir" && as_dir=.
5263    for ac_exec_ext in '' $ac_executable_extensions; do
5264  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267    break 2
5268  fi
5269done
5270  done
5271IFS=$as_save_IFS
5272
5273fi
5274fi
5275CC=$ac_cv_prog_CC
5276if test -n "$CC"; then
5277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5278$as_echo "$CC" >&6; }
5279else
5280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281$as_echo "no" >&6; }
5282fi
5283
5284
5285    test -n "$CC" && break
5286  done
5287fi
5288if test -z "$CC"; then
5289  ac_ct_CC=$CC
5290  for ac_prog in cl.exe
5291do
5292  # Extract the first word of "$ac_prog", so it can be a program name with args.
5293set dummy $ac_prog; ac_word=$2
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295$as_echo_n "checking for $ac_word... " >&6; }
5296if ${ac_cv_prog_ac_ct_CC+:} false; then :
5297  $as_echo_n "(cached) " >&6
5298else
5299  if test -n "$ac_ct_CC"; then
5300  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5301else
5302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303for as_dir in $PATH
5304do
5305  IFS=$as_save_IFS
5306  test -z "$as_dir" && as_dir=.
5307    for ac_exec_ext in '' $ac_executable_extensions; do
5308  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5309    ac_cv_prog_ac_ct_CC="$ac_prog"
5310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311    break 2
5312  fi
5313done
5314  done
5315IFS=$as_save_IFS
5316
5317fi
5318fi
5319ac_ct_CC=$ac_cv_prog_ac_ct_CC
5320if test -n "$ac_ct_CC"; then
5321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5322$as_echo "$ac_ct_CC" >&6; }
5323else
5324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325$as_echo "no" >&6; }
5326fi
5327
5328
5329  test -n "$ac_ct_CC" && break
5330done
5331
5332  if test "x$ac_ct_CC" = x; then
5333    CC=""
5334  else
5335    case $cross_compiling:$ac_tool_warned in
5336yes:)
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5339ac_tool_warned=yes ;;
5340esac
5341    CC=$ac_ct_CC
5342  fi
5343fi
5344
5345fi
5346
5347
5348test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5350as_fn_error $? "no acceptable C compiler found in \$PATH
5351See \`config.log' for more details" "$LINENO" 5; }
5352
5353# Provide some information about the compiler.
5354$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5355set X $ac_compile
5356ac_compiler=$2
5357for ac_option in --version -v -V -qversion; do
5358  { { ac_try="$ac_compiler $ac_option >&5"
5359case "(($ac_try" in
5360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361  *) ac_try_echo=$ac_try;;
5362esac
5363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5364$as_echo "$ac_try_echo"; } >&5
5365  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5366  ac_status=$?
5367  if test -s conftest.err; then
5368    sed '10a\
5369... rest of stderr output deleted ...
5370         10q' conftest.err >conftest.er1
5371    cat conftest.er1 >&5
5372  fi
5373  rm -f conftest.er1 conftest.err
5374  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5375  test $ac_status = 0; }
5376done
5377
5378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379/* end confdefs.h.  */
5380
5381int
5382main ()
5383{
5384
5385  ;
5386  return 0;
5387}
5388_ACEOF
5389ac_clean_files_save=$ac_clean_files
5390ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5391# Try to create an executable without -o first, disregard a.out.
5392# It will help us diagnose broken compilers, and finding out an intuition
5393# of exeext.
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5395$as_echo_n "checking whether the C compiler works... " >&6; }
5396ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5397
5398# The possible output files:
5399ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5400
5401ac_rmfiles=
5402for ac_file in $ac_files
5403do
5404  case $ac_file in
5405    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5406    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5407  esac
5408done
5409rm -f $ac_rmfiles
5410
5411if { { ac_try="$ac_link_default"
5412case "(($ac_try" in
5413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414  *) ac_try_echo=$ac_try;;
5415esac
5416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5417$as_echo "$ac_try_echo"; } >&5
5418  (eval "$ac_link_default") 2>&5
5419  ac_status=$?
5420  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5421  test $ac_status = 0; }; then :
5422  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5423# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5424# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5425# so that the user can short-circuit this test for compilers unknown to
5426# Autoconf.
5427for ac_file in $ac_files ''
5428do
5429  test -f "$ac_file" || continue
5430  case $ac_file in
5431    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5432	;;
5433    [ab].out )
5434	# We found the default executable, but exeext='' is most
5435	# certainly right.
5436	break;;
5437    *.* )
5438	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5439	then :; else
5440	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5441	fi
5442	# We set ac_cv_exeext here because the later test for it is not
5443	# safe: cross compilers may not add the suffix if given an `-o'
5444	# argument, so we may need to know it at that point already.
5445	# Even if this section looks crufty: it has the advantage of
5446	# actually working.
5447	break;;
5448    * )
5449	break;;
5450  esac
5451done
5452test "$ac_cv_exeext" = no && ac_cv_exeext=
5453
5454else
5455  ac_file=''
5456fi
5457if test -z "$ac_file"; then :
5458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459$as_echo "no" >&6; }
5460$as_echo "$as_me: failed program was:" >&5
5461sed 's/^/| /' conftest.$ac_ext >&5
5462
5463{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5465as_fn_error 77 "C compiler cannot create executables
5466See \`config.log' for more details" "$LINENO" 5; }
5467else
5468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5469$as_echo "yes" >&6; }
5470fi
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5472$as_echo_n "checking for C compiler default output file name... " >&6; }
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5474$as_echo "$ac_file" >&6; }
5475ac_exeext=$ac_cv_exeext
5476
5477rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5478ac_clean_files=$ac_clean_files_save
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5480$as_echo_n "checking for suffix of executables... " >&6; }
5481if { { ac_try="$ac_link"
5482case "(($ac_try" in
5483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484  *) ac_try_echo=$ac_try;;
5485esac
5486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5487$as_echo "$ac_try_echo"; } >&5
5488  (eval "$ac_link") 2>&5
5489  ac_status=$?
5490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5491  test $ac_status = 0; }; then :
5492  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5493# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5494# work properly (i.e., refer to `conftest.exe'), while it won't with
5495# `rm'.
5496for ac_file in conftest.exe conftest conftest.*; do
5497  test -f "$ac_file" || continue
5498  case $ac_file in
5499    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5500    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5501	  break;;
5502    * ) break;;
5503  esac
5504done
5505else
5506  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5508as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5509See \`config.log' for more details" "$LINENO" 5; }
5510fi
5511rm -f conftest conftest$ac_cv_exeext
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5513$as_echo "$ac_cv_exeext" >&6; }
5514
5515rm -f conftest.$ac_ext
5516EXEEXT=$ac_cv_exeext
5517ac_exeext=$EXEEXT
5518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519/* end confdefs.h.  */
5520#include <stdio.h>
5521int
5522main ()
5523{
5524FILE *f = fopen ("conftest.out", "w");
5525 return ferror (f) || fclose (f) != 0;
5526
5527  ;
5528  return 0;
5529}
5530_ACEOF
5531ac_clean_files="$ac_clean_files conftest.out"
5532# Check that the compiler produces executables we can run.  If not, either
5533# the compiler is broken, or we cross compile.
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5535$as_echo_n "checking whether we are cross compiling... " >&6; }
5536if test "$cross_compiling" != yes; then
5537  { { ac_try="$ac_link"
5538case "(($ac_try" in
5539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5540  *) ac_try_echo=$ac_try;;
5541esac
5542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5543$as_echo "$ac_try_echo"; } >&5
5544  (eval "$ac_link") 2>&5
5545  ac_status=$?
5546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5547  test $ac_status = 0; }
5548  if { ac_try='./conftest$ac_cv_exeext'
5549  { { case "(($ac_try" in
5550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551  *) ac_try_echo=$ac_try;;
5552esac
5553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5554$as_echo "$ac_try_echo"; } >&5
5555  (eval "$ac_try") 2>&5
5556  ac_status=$?
5557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5558  test $ac_status = 0; }; }; then
5559    cross_compiling=no
5560  else
5561    if test "$cross_compiling" = maybe; then
5562	cross_compiling=yes
5563    else
5564	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5566as_fn_error $? "cannot run C compiled programs.
5567If you meant to cross compile, use \`--host'.
5568See \`config.log' for more details" "$LINENO" 5; }
5569    fi
5570  fi
5571fi
5572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5573$as_echo "$cross_compiling" >&6; }
5574
5575rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5576ac_clean_files=$ac_clean_files_save
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5578$as_echo_n "checking for suffix of object files... " >&6; }
5579if ${ac_cv_objext+:} false; then :
5580  $as_echo_n "(cached) " >&6
5581else
5582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583/* end confdefs.h.  */
5584
5585int
5586main ()
5587{
5588
5589  ;
5590  return 0;
5591}
5592_ACEOF
5593rm -f conftest.o conftest.obj
5594if { { ac_try="$ac_compile"
5595case "(($ac_try" in
5596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597  *) ac_try_echo=$ac_try;;
5598esac
5599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5600$as_echo "$ac_try_echo"; } >&5
5601  (eval "$ac_compile") 2>&5
5602  ac_status=$?
5603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5604  test $ac_status = 0; }; then :
5605  for ac_file in conftest.o conftest.obj conftest.*; do
5606  test -f "$ac_file" || continue;
5607  case $ac_file in
5608    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5609    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5610       break;;
5611  esac
5612done
5613else
5614  $as_echo "$as_me: failed program was:" >&5
5615sed 's/^/| /' conftest.$ac_ext >&5
5616
5617{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5618$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5619as_fn_error $? "cannot compute suffix of object files: cannot compile
5620See \`config.log' for more details" "$LINENO" 5; }
5621fi
5622rm -f conftest.$ac_cv_objext conftest.$ac_ext
5623fi
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5625$as_echo "$ac_cv_objext" >&6; }
5626OBJEXT=$ac_cv_objext
5627ac_objext=$OBJEXT
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5629$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5630if ${ac_cv_c_compiler_gnu+:} false; then :
5631  $as_echo_n "(cached) " >&6
5632else
5633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634/* end confdefs.h.  */
5635
5636int
5637main ()
5638{
5639#ifndef __GNUC__
5640       choke me
5641#endif
5642
5643  ;
5644  return 0;
5645}
5646_ACEOF
5647if ac_fn_c_try_compile "$LINENO"; then :
5648  ac_compiler_gnu=yes
5649else
5650  ac_compiler_gnu=no
5651fi
5652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653ac_cv_c_compiler_gnu=$ac_compiler_gnu
5654
5655fi
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5657$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5658if test $ac_compiler_gnu = yes; then
5659  GCC=yes
5660else
5661  GCC=
5662fi
5663ac_test_CFLAGS=${CFLAGS+set}
5664ac_save_CFLAGS=$CFLAGS
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5666$as_echo_n "checking whether $CC accepts -g... " >&6; }
5667if ${ac_cv_prog_cc_g+:} false; then :
5668  $as_echo_n "(cached) " >&6
5669else
5670  ac_save_c_werror_flag=$ac_c_werror_flag
5671   ac_c_werror_flag=yes
5672   ac_cv_prog_cc_g=no
5673   CFLAGS="-g"
5674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675/* end confdefs.h.  */
5676
5677int
5678main ()
5679{
5680
5681  ;
5682  return 0;
5683}
5684_ACEOF
5685if ac_fn_c_try_compile "$LINENO"; then :
5686  ac_cv_prog_cc_g=yes
5687else
5688  CFLAGS=""
5689      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690/* end confdefs.h.  */
5691
5692int
5693main ()
5694{
5695
5696  ;
5697  return 0;
5698}
5699_ACEOF
5700if ac_fn_c_try_compile "$LINENO"; then :
5701
5702else
5703  ac_c_werror_flag=$ac_save_c_werror_flag
5704	 CFLAGS="-g"
5705	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706/* end confdefs.h.  */
5707
5708int
5709main ()
5710{
5711
5712  ;
5713  return 0;
5714}
5715_ACEOF
5716if ac_fn_c_try_compile "$LINENO"; then :
5717  ac_cv_prog_cc_g=yes
5718fi
5719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720fi
5721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722fi
5723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724   ac_c_werror_flag=$ac_save_c_werror_flag
5725fi
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5727$as_echo "$ac_cv_prog_cc_g" >&6; }
5728if test "$ac_test_CFLAGS" = set; then
5729  CFLAGS=$ac_save_CFLAGS
5730elif test $ac_cv_prog_cc_g = yes; then
5731  if test "$GCC" = yes; then
5732    CFLAGS="-g -O2"
5733  else
5734    CFLAGS="-g"
5735  fi
5736else
5737  if test "$GCC" = yes; then
5738    CFLAGS="-O2"
5739  else
5740    CFLAGS=
5741  fi
5742fi
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5744$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5745if ${ac_cv_prog_cc_c89+:} false; then :
5746  $as_echo_n "(cached) " >&6
5747else
5748  ac_cv_prog_cc_c89=no
5749ac_save_CC=$CC
5750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751/* end confdefs.h.  */
5752#include <stdarg.h>
5753#include <stdio.h>
5754#include <sys/types.h>
5755#include <sys/stat.h>
5756/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5757struct buf { int x; };
5758FILE * (*rcsopen) (struct buf *, struct stat *, int);
5759static char *e (p, i)
5760     char **p;
5761     int i;
5762{
5763  return p[i];
5764}
5765static char *f (char * (*g) (char **, int), char **p, ...)
5766{
5767  char *s;
5768  va_list v;
5769  va_start (v,p);
5770  s = g (p, va_arg (v,int));
5771  va_end (v);
5772  return s;
5773}
5774
5775/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5776   function prototypes and stuff, but not '\xHH' hex character constants.
5777   These don't provoke an error unfortunately, instead are silently treated
5778   as 'x'.  The following induces an error, until -std is added to get
5779   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5780   array size at least.  It's necessary to write '\x00'==0 to get something
5781   that's true only with -std.  */
5782int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5783
5784/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5785   inside strings and character constants.  */
5786#define FOO(x) 'x'
5787int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5788
5789int test (int i, double x);
5790struct s1 {int (*f) (int a);};
5791struct s2 {int (*f) (double a);};
5792int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5793int argc;
5794char **argv;
5795int
5796main ()
5797{
5798return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5799  ;
5800  return 0;
5801}
5802_ACEOF
5803for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5804	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5805do
5806  CC="$ac_save_CC $ac_arg"
5807  if ac_fn_c_try_compile "$LINENO"; then :
5808  ac_cv_prog_cc_c89=$ac_arg
5809fi
5810rm -f core conftest.err conftest.$ac_objext
5811  test "x$ac_cv_prog_cc_c89" != "xno" && break
5812done
5813rm -f conftest.$ac_ext
5814CC=$ac_save_CC
5815
5816fi
5817# AC_CACHE_VAL
5818case "x$ac_cv_prog_cc_c89" in
5819  x)
5820    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5821$as_echo "none needed" >&6; } ;;
5822  xno)
5823    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5824$as_echo "unsupported" >&6; } ;;
5825  *)
5826    CC="$CC $ac_cv_prog_cc_c89"
5827    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5828$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5829esac
5830if test "x$ac_cv_prog_cc_c89" != xno; then :
5831
5832fi
5833
5834ac_ext=c
5835ac_cpp='$CPP $CPPFLAGS'
5836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5838ac_compiler_gnu=$ac_cv_c_compiler_gnu
5839
5840
5841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5842$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5843if ${ac_cv_path_SED+:} false; then :
5844  $as_echo_n "(cached) " >&6
5845else
5846            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5847     for ac_i in 1 2 3 4 5 6 7; do
5848       ac_script="$ac_script$as_nl$ac_script"
5849     done
5850     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5851     { ac_script=; unset ac_script;}
5852     if test -z "$SED"; then
5853  ac_path_SED_found=false
5854  # Loop through the user's path and test for each of PROGNAME-LIST
5855  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856for as_dir in $PATH
5857do
5858  IFS=$as_save_IFS
5859  test -z "$as_dir" && as_dir=.
5860    for ac_prog in sed gsed; do
5861    for ac_exec_ext in '' $ac_executable_extensions; do
5862      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5863      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5864# Check for GNU ac_path_SED and select it if it is found.
5865  # Check for GNU $ac_path_SED
5866case `"$ac_path_SED" --version 2>&1` in
5867*GNU*)
5868  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5869*)
5870  ac_count=0
5871  $as_echo_n 0123456789 >"conftest.in"
5872  while :
5873  do
5874    cat "conftest.in" "conftest.in" >"conftest.tmp"
5875    mv "conftest.tmp" "conftest.in"
5876    cp "conftest.in" "conftest.nl"
5877    $as_echo '' >> "conftest.nl"
5878    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5879    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5880    as_fn_arith $ac_count + 1 && ac_count=$as_val
5881    if test $ac_count -gt ${ac_path_SED_max-0}; then
5882      # Best one so far, save it but keep looking for a better one
5883      ac_cv_path_SED="$ac_path_SED"
5884      ac_path_SED_max=$ac_count
5885    fi
5886    # 10*(2^10) chars as input seems more than enough
5887    test $ac_count -gt 10 && break
5888  done
5889  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5890esac
5891
5892      $ac_path_SED_found && break 3
5893    done
5894  done
5895  done
5896IFS=$as_save_IFS
5897  if test -z "$ac_cv_path_SED"; then
5898    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5899  fi
5900else
5901  ac_cv_path_SED=$SED
5902fi
5903
5904fi
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5906$as_echo "$ac_cv_path_SED" >&6; }
5907 SED="$ac_cv_path_SED"
5908  rm -f conftest.sed
5909
5910
5911
5912if test "x$apr_preload_done" != "xyes" ; then
5913
5914  apr_preload_done="yes"
5915
5916  echo "Applying APR hints file rules for $host"
5917
5918  case "$host" in
5919    *mint)
5920
5921  if test "x$CPPFLAGS" = "x"; then
5922    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DMINT\""
5923    CPPFLAGS="-DMINT"
5924  else
5925    apr_addto_bugger="-DMINT"
5926    for i in $apr_addto_bugger; do
5927      apr_addto_duplicate="0"
5928      for j in $CPPFLAGS; do
5929        if test "x$i" = "x$j"; then
5930          apr_addto_duplicate="1"
5931          break
5932        fi
5933      done
5934      if test $apr_addto_duplicate = "0"; then
5935        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5936        CPPFLAGS="$CPPFLAGS $i"
5937      fi
5938    done
5939  fi
5940
5941
5942  if test "x$LIBS" = "x"; then
5943    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lportlib\""
5944    LIBS="-lportlib"
5945  else
5946    apr_addto_bugger="-lportlib"
5947    for i in $apr_addto_bugger; do
5948      apr_addto_duplicate="0"
5949      for j in $LIBS; do
5950        if test "x$i" = "x$j"; then
5951          apr_addto_duplicate="1"
5952          break
5953        fi
5954      done
5955      if test $apr_addto_duplicate = "0"; then
5956        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
5957        LIBS="$LIBS $i"
5958      fi
5959    done
5960  fi
5961
5962	;;
5963    *MPE/iX*)
5964
5965  if test "x$CPPFLAGS" = "x"; then
5966    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE\""
5967    CPPFLAGS="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
5968  else
5969    apr_addto_bugger="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
5970    for i in $apr_addto_bugger; do
5971      apr_addto_duplicate="0"
5972      for j in $CPPFLAGS; do
5973        if test "x$i" = "x$j"; then
5974          apr_addto_duplicate="1"
5975          break
5976        fi
5977      done
5978      if test $apr_addto_duplicate = "0"; then
5979        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5980        CPPFLAGS="$CPPFLAGS $i"
5981      fi
5982    done
5983  fi
5984
5985
5986  if test "x$LIBS" = "x"; then
5987    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lsvipc -lcurses\""
5988    LIBS="-lsvipc -lcurses"
5989  else
5990    apr_addto_bugger="-lsvipc -lcurses"
5991    for i in $apr_addto_bugger; do
5992      apr_addto_duplicate="0"
5993      for j in $LIBS; do
5994        if test "x$i" = "x$j"; then
5995          apr_addto_duplicate="1"
5996          break
5997        fi
5998      done
5999      if test $apr_addto_duplicate = "0"; then
6000        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6001        LIBS="$LIBS $i"
6002      fi
6003    done
6004  fi
6005
6006
6007  if test "x$LDFLAGS" = "x"; then
6008    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\"\""
6009    LDFLAGS="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
6010  else
6011    apr_addto_bugger="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
6012    for i in $apr_addto_bugger; do
6013      apr_addto_duplicate="0"
6014      for j in $LDFLAGS; do
6015        if test "x$i" = "x$j"; then
6016          apr_addto_duplicate="1"
6017          break
6018        fi
6019      done
6020      if test $apr_addto_duplicate = "0"; then
6021        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
6022        LDFLAGS="$LDFLAGS $i"
6023      fi
6024    done
6025  fi
6026
6027	;;
6028    *-apple-aux3*)
6029
6030  if test "x$CPPFLAGS" = "x"; then
6031    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAUX3 -D_POSIX_SOURCE\""
6032    CPPFLAGS="-DAUX3 -D_POSIX_SOURCE"
6033  else
6034    apr_addto_bugger="-DAUX3 -D_POSIX_SOURCE"
6035    for i in $apr_addto_bugger; do
6036      apr_addto_duplicate="0"
6037      for j in $CPPFLAGS; do
6038        if test "x$i" = "x$j"; then
6039          apr_addto_duplicate="1"
6040          break
6041        fi
6042      done
6043      if test $apr_addto_duplicate = "0"; then
6044        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6045        CPPFLAGS="$CPPFLAGS $i"
6046      fi
6047    done
6048  fi
6049
6050
6051  if test "x$LIBS" = "x"; then
6052    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lposix -lbsd\""
6053    LIBS="-lposix -lbsd"
6054  else
6055    apr_addto_bugger="-lposix -lbsd"
6056    for i in $apr_addto_bugger; do
6057      apr_addto_duplicate="0"
6058      for j in $LIBS; do
6059        if test "x$i" = "x$j"; then
6060          apr_addto_duplicate="1"
6061          break
6062        fi
6063      done
6064      if test $apr_addto_duplicate = "0"; then
6065        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6066        LIBS="$LIBS $i"
6067      fi
6068    done
6069  fi
6070
6071
6072  if test "x$LDFLAGS" = "x"; then
6073    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-s\""
6074    LDFLAGS="-s"
6075  else
6076    apr_addto_bugger="-s"
6077    for i in $apr_addto_bugger; do
6078      apr_addto_duplicate="0"
6079      for j in $LDFLAGS; do
6080        if test "x$i" = "x$j"; then
6081          apr_addto_duplicate="1"
6082          break
6083        fi
6084      done
6085      if test $apr_addto_duplicate = "0"; then
6086        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
6087        LDFLAGS="$LDFLAGS $i"
6088      fi
6089    done
6090  fi
6091
6092
6093  test "x$silent" != "xyes" && echo "  forcing SHELL to \"/bin/ksh\""
6094  SHELL="/bin/ksh"
6095
6096	;;
6097    *-ibm-aix*)
6098
6099  if test "x$CPPFLAGS" = "x"; then
6100    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-U__STR__ -D_THREAD_SAFE\""
6101    CPPFLAGS="-U__STR__ -D_THREAD_SAFE"
6102  else
6103    apr_addto_bugger="-U__STR__ -D_THREAD_SAFE"
6104    for i in $apr_addto_bugger; do
6105      apr_addto_duplicate="0"
6106      for j in $CPPFLAGS; do
6107        if test "x$i" = "x$j"; then
6108          apr_addto_duplicate="1"
6109          break
6110        fi
6111      done
6112      if test $apr_addto_duplicate = "0"; then
6113        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6114        CPPFLAGS="$CPPFLAGS $i"
6115      fi
6116    done
6117  fi
6118
6119                case $host in
6120            *-ibm-aix4.3)
6121
6122  if test "x$CPPFLAGS" = "x"; then
6123    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_USE_IRS\""
6124    CPPFLAGS="-D_USE_IRS"
6125  else
6126    apr_addto_bugger="-D_USE_IRS"
6127    for i in $apr_addto_bugger; do
6128      apr_addto_duplicate="0"
6129      for j in $CPPFLAGS; do
6130        if test "x$i" = "x$j"; then
6131          apr_addto_duplicate="1"
6132          break
6133        fi
6134      done
6135      if test $apr_addto_duplicate = "0"; then
6136        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6137        CPPFLAGS="$CPPFLAGS $i"
6138      fi
6139    done
6140  fi
6141
6142	        ;;
6143            *-ibm-aix5*)
6144
6145  if test "x$CPPFLAGS" = "x"; then
6146    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_USE_IRS\""
6147    CPPFLAGS="-D_USE_IRS"
6148  else
6149    apr_addto_bugger="-D_USE_IRS"
6150    for i in $apr_addto_bugger; do
6151      apr_addto_duplicate="0"
6152      for j in $CPPFLAGS; do
6153        if test "x$i" = "x$j"; then
6154          apr_addto_duplicate="1"
6155          break
6156        fi
6157      done
6158      if test $apr_addto_duplicate = "0"; then
6159        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6160        CPPFLAGS="$CPPFLAGS $i"
6161      fi
6162    done
6163  fi
6164
6165	        ;;
6166            *-ibm-aix4.3.*)
6167
6168  if test "x$CPPFLAGS" = "x"; then
6169    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_USE_IRS\""
6170    CPPFLAGS="-D_USE_IRS"
6171  else
6172    apr_addto_bugger="-D_USE_IRS"
6173    for i in $apr_addto_bugger; do
6174      apr_addto_duplicate="0"
6175      for j in $CPPFLAGS; do
6176        if test "x$i" = "x$j"; then
6177          apr_addto_duplicate="1"
6178          break
6179        fi
6180      done
6181      if test $apr_addto_duplicate = "0"; then
6182        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6183        CPPFLAGS="$CPPFLAGS $i"
6184      fi
6185    done
6186  fi
6187
6188                ;;
6189        esac
6190                if $CC 2>&1 | grep 'xlc' > /dev/null; then
6191
6192  if test -z "$AIX_XLC"; then
6193    test "x$silent" != "xyes" && echo "  setting AIX_XLC to \"yes\""
6194    AIX_XLC="yes"
6195  fi
6196
6197
6198  if test "x$CFLAGS" = "x"; then
6199    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-qHALT=E\""
6200    CFLAGS="-qHALT=E"
6201  else
6202    apr_addto_bugger="-qHALT=E"
6203    for i in $apr_addto_bugger; do
6204      apr_addto_duplicate="0"
6205      for j in $CFLAGS; do
6206        if test "x$i" = "x$j"; then
6207          apr_addto_duplicate="1"
6208          break
6209        fi
6210      done
6211      if test $apr_addto_duplicate = "0"; then
6212        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
6213        CFLAGS="$CFLAGS $i"
6214      fi
6215    done
6216  fi
6217
6218        fi
6219
6220  if test -z "$apr_sysvsem_is_global"; then
6221    test "x$silent" != "xyes" && echo "  setting apr_sysvsem_is_global to \"yes\""
6222    apr_sysvsem_is_global="yes"
6223  fi
6224
6225
6226  if test -z "$apr_lock_method"; then
6227    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
6228    apr_lock_method="USE_SYSVSEM_SERIALIZE"
6229  fi
6230
6231        case $host in
6232            *-ibm-aix3* | *-ibm-aix4.1.*)
6233                ;;
6234            *)
6235
6236  if test "x$LDFLAGS" = "x"; then
6237    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Wl,-brtl\""
6238    LDFLAGS="-Wl,-brtl"
6239  else
6240    apr_addto_bugger="-Wl,-brtl"
6241    for i in $apr_addto_bugger; do
6242      apr_addto_duplicate="0"
6243      for j in $LDFLAGS; do
6244        if test "x$i" = "x$j"; then
6245          apr_addto_duplicate="1"
6246          break
6247        fi
6248      done
6249      if test $apr_addto_duplicate = "0"; then
6250        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
6251        LDFLAGS="$LDFLAGS $i"
6252      fi
6253    done
6254  fi
6255
6256                ;;
6257	esac
6258        ;;
6259    *-apollo-*)
6260
6261  if test "x$CPPFLAGS" = "x"; then
6262    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAPOLLO\""
6263    CPPFLAGS="-DAPOLLO"
6264  else
6265    apr_addto_bugger="-DAPOLLO"
6266    for i in $apr_addto_bugger; do
6267      apr_addto_duplicate="0"
6268      for j in $CPPFLAGS; do
6269        if test "x$i" = "x$j"; then
6270          apr_addto_duplicate="1"
6271          break
6272        fi
6273      done
6274      if test $apr_addto_duplicate = "0"; then
6275        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6276        CPPFLAGS="$CPPFLAGS $i"
6277      fi
6278    done
6279  fi
6280
6281	;;
6282    *-dg-dgux*)
6283
6284  if test "x$CPPFLAGS" = "x"; then
6285    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DDGUX\""
6286    CPPFLAGS="-DDGUX"
6287  else
6288    apr_addto_bugger="-DDGUX"
6289    for i in $apr_addto_bugger; do
6290      apr_addto_duplicate="0"
6291      for j in $CPPFLAGS; do
6292        if test "x$i" = "x$j"; then
6293          apr_addto_duplicate="1"
6294          break
6295        fi
6296      done
6297      if test $apr_addto_duplicate = "0"; then
6298        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6299        CPPFLAGS="$CPPFLAGS $i"
6300      fi
6301    done
6302  fi
6303
6304	;;
6305    *-os2*)
6306
6307  test "x$silent" != "xyes" && echo "  forcing SHELL to \"sh\""
6308  SHELL="sh"
6309
6310
6311  if test -z "$apr_gethostbyname_is_thread_safe"; then
6312    test "x$silent" != "xyes" && echo "  setting apr_gethostbyname_is_thread_safe to \"yes\""
6313    apr_gethostbyname_is_thread_safe="yes"
6314  fi
6315
6316
6317  if test -z "$apr_gethostbyaddr_is_thread_safe"; then
6318    test "x$silent" != "xyes" && echo "  setting apr_gethostbyaddr_is_thread_safe to \"yes\""
6319    apr_gethostbyaddr_is_thread_safe="yes"
6320  fi
6321
6322
6323  if test -z "$apr_getservbyname_is_thread_safe"; then
6324    test "x$silent" != "xyes" && echo "  setting apr_getservbyname_is_thread_safe to \"yes\""
6325    apr_getservbyname_is_thread_safe="yes"
6326  fi
6327
6328	;;
6329    *-hi-hiux)
6330
6331  if test "x$CPPFLAGS" = "x"; then
6332    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DHIUX\""
6333    CPPFLAGS="-DHIUX"
6334  else
6335    apr_addto_bugger="-DHIUX"
6336    for i in $apr_addto_bugger; do
6337      apr_addto_duplicate="0"
6338      for j in $CPPFLAGS; do
6339        if test "x$i" = "x$j"; then
6340          apr_addto_duplicate="1"
6341          break
6342        fi
6343      done
6344      if test $apr_addto_duplicate = "0"; then
6345        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6346        CPPFLAGS="$CPPFLAGS $i"
6347      fi
6348    done
6349  fi
6350
6351	;;
6352    *-hp-hpux11.*)
6353
6354  if test "x$CPPFLAGS" = "x"; then
6355    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE\""
6356    CPPFLAGS="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE"
6357  else
6358    apr_addto_bugger="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE"
6359    for i in $apr_addto_bugger; do
6360      apr_addto_duplicate="0"
6361      for j in $CPPFLAGS; do
6362        if test "x$i" = "x$j"; then
6363          apr_addto_duplicate="1"
6364          break
6365        fi
6366      done
6367      if test $apr_addto_duplicate = "0"; then
6368        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6369        CPPFLAGS="$CPPFLAGS $i"
6370      fi
6371    done
6372  fi
6373
6374	;;
6375    *-hp-hpux10.*)
6376 	case $host in
6377 	  *-hp-hpux10.01)
6378
6379  if test "x$CPPFLAGS" = "x"; then
6380    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSELECT_NEEDS_CAST\""
6381    CPPFLAGS="-DSELECT_NEEDS_CAST"
6382  else
6383    apr_addto_bugger="-DSELECT_NEEDS_CAST"
6384    for i in $apr_addto_bugger; do
6385      apr_addto_duplicate="0"
6386      for j in $CPPFLAGS; do
6387        if test "x$i" = "x$j"; then
6388          apr_addto_duplicate="1"
6389          break
6390        fi
6391      done
6392      if test $apr_addto_duplicate = "0"; then
6393        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6394        CPPFLAGS="$CPPFLAGS $i"
6395      fi
6396    done
6397  fi
6398
6399	       ;;
6400 	esac
6401
6402  if test "x$CPPFLAGS" = "x"; then
6403    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_REENTRANT\""
6404    CPPFLAGS="-D_REENTRANT"
6405  else
6406    apr_addto_bugger="-D_REENTRANT"
6407    for i in $apr_addto_bugger; do
6408      apr_addto_duplicate="0"
6409      for j in $CPPFLAGS; do
6410        if test "x$i" = "x$j"; then
6411          apr_addto_duplicate="1"
6412          break
6413        fi
6414      done
6415      if test $apr_addto_duplicate = "0"; then
6416        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6417        CPPFLAGS="$CPPFLAGS $i"
6418      fi
6419    done
6420  fi
6421
6422	;;
6423    *-hp-hpux*)
6424
6425  if test "x$CPPFLAGS" = "x"; then
6426    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DHPUX -D_REENTRANT\""
6427    CPPFLAGS="-DHPUX -D_REENTRANT"
6428  else
6429    apr_addto_bugger="-DHPUX -D_REENTRANT"
6430    for i in $apr_addto_bugger; do
6431      apr_addto_duplicate="0"
6432      for j in $CPPFLAGS; do
6433        if test "x$i" = "x$j"; then
6434          apr_addto_duplicate="1"
6435          break
6436        fi
6437      done
6438      if test $apr_addto_duplicate = "0"; then
6439        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6440        CPPFLAGS="$CPPFLAGS $i"
6441      fi
6442    done
6443  fi
6444
6445	;;
6446    *-linux*)
6447        case `uname -r` in
6448	    2.* )
6449  if test "x$CPPFLAGS" = "x"; then
6450    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DLINUX=2\""
6451    CPPFLAGS="-DLINUX=2"
6452  else
6453    apr_addto_bugger="-DLINUX=2"
6454    for i in $apr_addto_bugger; do
6455      apr_addto_duplicate="0"
6456      for j in $CPPFLAGS; do
6457        if test "x$i" = "x$j"; then
6458          apr_addto_duplicate="1"
6459          break
6460        fi
6461      done
6462      if test $apr_addto_duplicate = "0"; then
6463        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6464        CPPFLAGS="$CPPFLAGS $i"
6465      fi
6466    done
6467  fi
6468
6469	           ;;
6470	    1.* )
6471  if test "x$CPPFLAGS" = "x"; then
6472    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DLINUX=1\""
6473    CPPFLAGS="-DLINUX=1"
6474  else
6475    apr_addto_bugger="-DLINUX=1"
6476    for i in $apr_addto_bugger; do
6477      apr_addto_duplicate="0"
6478      for j in $CPPFLAGS; do
6479        if test "x$i" = "x$j"; then
6480          apr_addto_duplicate="1"
6481          break
6482        fi
6483      done
6484      if test $apr_addto_duplicate = "0"; then
6485        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6486        CPPFLAGS="$CPPFLAGS $i"
6487      fi
6488    done
6489  fi
6490
6491	           ;;
6492	    * )
6493	           ;;
6494        esac
6495
6496  if test "x$CPPFLAGS" = "x"; then
6497    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE\""
6498    CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE"
6499  else
6500    apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE"
6501    for i in $apr_addto_bugger; do
6502      apr_addto_duplicate="0"
6503      for j in $CPPFLAGS; do
6504        if test "x$i" = "x$j"; then
6505          apr_addto_duplicate="1"
6506          break
6507        fi
6508      done
6509      if test $apr_addto_duplicate = "0"; then
6510        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6511        CPPFLAGS="$CPPFLAGS $i"
6512      fi
6513    done
6514  fi
6515
6516	;;
6517    *-GNU*)
6518
6519  if test "x$CPPFLAGS" = "x"; then
6520    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DHURD -D_GNU_SOURCE\""
6521    CPPFLAGS="-DHURD -D_GNU_SOURCE"
6522  else
6523    apr_addto_bugger="-DHURD -D_GNU_SOURCE"
6524    for i in $apr_addto_bugger; do
6525      apr_addto_duplicate="0"
6526      for j in $CPPFLAGS; do
6527        if test "x$i" = "x$j"; then
6528          apr_addto_duplicate="1"
6529          break
6530        fi
6531      done
6532      if test $apr_addto_duplicate = "0"; then
6533        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6534        CPPFLAGS="$CPPFLAGS $i"
6535      fi
6536    done
6537  fi
6538
6539	;;
6540    *-lynx-lynxos)
6541
6542  if test "x$CPPFLAGS" = "x"; then
6543    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D__NO_INCLUDE_WARN__ -DLYNXOS\""
6544    CPPFLAGS="-D__NO_INCLUDE_WARN__ -DLYNXOS"
6545  else
6546    apr_addto_bugger="-D__NO_INCLUDE_WARN__ -DLYNXOS"
6547    for i in $apr_addto_bugger; do
6548      apr_addto_duplicate="0"
6549      for j in $CPPFLAGS; do
6550        if test "x$i" = "x$j"; then
6551          apr_addto_duplicate="1"
6552          break
6553        fi
6554      done
6555      if test $apr_addto_duplicate = "0"; then
6556        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6557        CPPFLAGS="$CPPFLAGS $i"
6558      fi
6559    done
6560  fi
6561
6562
6563  if test "x$LIBS" = "x"; then
6564    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbsd\""
6565    LIBS="-lbsd"
6566  else
6567    apr_addto_bugger="-lbsd"
6568    for i in $apr_addto_bugger; do
6569      apr_addto_duplicate="0"
6570      for j in $LIBS; do
6571        if test "x$i" = "x$j"; then
6572          apr_addto_duplicate="1"
6573          break
6574        fi
6575      done
6576      if test $apr_addto_duplicate = "0"; then
6577        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6578        LIBS="$LIBS $i"
6579      fi
6580    done
6581  fi
6582
6583	;;
6584    *486-*-bsdi*)
6585
6586  if test "x$CFLAGS" = "x"; then
6587    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-m486\""
6588    CFLAGS="-m486"
6589  else
6590    apr_addto_bugger="-m486"
6591    for i in $apr_addto_bugger; do
6592      apr_addto_duplicate="0"
6593      for j in $CFLAGS; do
6594        if test "x$i" = "x$j"; then
6595          apr_addto_duplicate="1"
6596          break
6597        fi
6598      done
6599      if test $apr_addto_duplicate = "0"; then
6600        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
6601        CFLAGS="$CFLAGS $i"
6602      fi
6603    done
6604  fi
6605
6606	;;
6607    *-*-bsdi*)
6608        case $host in
6609            *bsdi4.1)
6610
6611  if test "x$CFLAGS" = "x"; then
6612    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-D_REENTRANT\""
6613    CFLAGS="-D_REENTRANT"
6614  else
6615    apr_addto_bugger="-D_REENTRANT"
6616    for i in $apr_addto_bugger; do
6617      apr_addto_duplicate="0"
6618      for j in $CFLAGS; do
6619        if test "x$i" = "x$j"; then
6620          apr_addto_duplicate="1"
6621          break
6622        fi
6623      done
6624      if test $apr_addto_duplicate = "0"; then
6625        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
6626        CFLAGS="$CFLAGS $i"
6627      fi
6628    done
6629  fi
6630
6631                ;;
6632        esac
6633        ;;
6634    *-openbsd*)
6635
6636  if test "x$CPPFLAGS" = "x"; then
6637    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_POSIX_THREADS\""
6638    CPPFLAGS="-D_POSIX_THREADS"
6639  else
6640    apr_addto_bugger="-D_POSIX_THREADS"
6641    for i in $apr_addto_bugger; do
6642      apr_addto_duplicate="0"
6643      for j in $CPPFLAGS; do
6644        if test "x$i" = "x$j"; then
6645          apr_addto_duplicate="1"
6646          break
6647        fi
6648      done
6649      if test $apr_addto_duplicate = "0"; then
6650        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6651        CPPFLAGS="$CPPFLAGS $i"
6652      fi
6653    done
6654  fi
6655
6656        # binding to an ephemeral port fails on OpenBSD so override
6657        # the test for O_NONBLOCK inheritance across accept().
6658
6659  if test -z "$ac_cv_o_nonblock_inherited"; then
6660    test "x$silent" != "xyes" && echo "  setting ac_cv_o_nonblock_inherited to \"yes\""
6661    ac_cv_o_nonblock_inherited="yes"
6662  fi
6663
6664	;;
6665    *-netbsd*)
6666
6667  if test "x$CPPFLAGS" = "x"; then
6668    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNETBSD\""
6669    CPPFLAGS="-DNETBSD"
6670  else
6671    apr_addto_bugger="-DNETBSD"
6672    for i in $apr_addto_bugger; do
6673      apr_addto_duplicate="0"
6674      for j in $CPPFLAGS; do
6675        if test "x$i" = "x$j"; then
6676          apr_addto_duplicate="1"
6677          break
6678        fi
6679      done
6680      if test $apr_addto_duplicate = "0"; then
6681        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6682        CPPFLAGS="$CPPFLAGS $i"
6683      fi
6684    done
6685  fi
6686
6687        # fcntl() lies about O_NONBLOCK on an accept()ed socket (PR kern/26950)
6688
6689  if test -z "$ac_cv_o_nonblock_inherited"; then
6690    test "x$silent" != "xyes" && echo "  setting ac_cv_o_nonblock_inherited to \"yes\""
6691    ac_cv_o_nonblock_inherited="yes"
6692  fi
6693
6694	;;
6695    *-freebsd*)
6696
6697  if test -z "$apr_lock_method"; then
6698    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_FLOCK_SERIALIZE\""
6699    apr_lock_method="USE_FLOCK_SERIALIZE"
6700  fi
6701
6702        if test -x /sbin/sysctl; then
6703            os_version=`/sbin/sysctl -n kern.osreldate`
6704        else
6705            os_version=000000
6706        fi
6707        # 502102 is when libc_r switched to libpthread (aka libkse).
6708        if test $os_version -ge "502102"; then
6709          apr_cv_pthreads_cflags="none"
6710          apr_cv_pthreads_lib="-lpthread"
6711        else
6712
6713  if test "x$CPPFLAGS" = "x"; then
6714    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_THREAD_SAFE -D_REENTRANT\""
6715    CPPFLAGS="-D_THREAD_SAFE -D_REENTRANT"
6716  else
6717    apr_addto_bugger="-D_THREAD_SAFE -D_REENTRANT"
6718    for i in $apr_addto_bugger; do
6719      apr_addto_duplicate="0"
6720      for j in $CPPFLAGS; do
6721        if test "x$i" = "x$j"; then
6722          apr_addto_duplicate="1"
6723          break
6724        fi
6725      done
6726      if test $apr_addto_duplicate = "0"; then
6727        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6728        CPPFLAGS="$CPPFLAGS $i"
6729      fi
6730    done
6731  fi
6732
6733
6734  if test -z "$enable_threads"; then
6735    test "x$silent" != "xyes" && echo "  setting enable_threads to \"no\""
6736    enable_threads="no"
6737  fi
6738
6739        fi
6740        # prevent use of KQueue before FreeBSD 4.8
6741        if test $os_version -lt "480000"; then
6742
6743  if test -z "$ac_cv_func_kqueue"; then
6744    test "x$silent" != "xyes" && echo "  setting ac_cv_func_kqueue to \"no\""
6745    ac_cv_func_kqueue="no"
6746  fi
6747
6748        fi
6749	;;
6750    *-k*bsd*-gnu)
6751
6752  if test "x$CPPFLAGS" = "x"; then
6753    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE\""
6754    CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE"
6755  else
6756    apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE"
6757    for i in $apr_addto_bugger; do
6758      apr_addto_duplicate="0"
6759      for j in $CPPFLAGS; do
6760        if test "x$i" = "x$j"; then
6761          apr_addto_duplicate="1"
6762          break
6763        fi
6764      done
6765      if test $apr_addto_duplicate = "0"; then
6766        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6767        CPPFLAGS="$CPPFLAGS $i"
6768      fi
6769    done
6770  fi
6771
6772        ;;
6773    *-next-nextstep*)
6774
6775  if test -z "$CFLAGS"; then
6776    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
6777    CFLAGS="-O"
6778  fi
6779
6780
6781  if test "x$CPPFLAGS" = "x"; then
6782    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNEXT\""
6783    CPPFLAGS="-DNEXT"
6784  else
6785    apr_addto_bugger="-DNEXT"
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    *-next-openstep*)
6803
6804  if test -z "$CFLAGS"; then
6805    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
6806    CFLAGS="-O"
6807  fi
6808
6809
6810  if test "x$CPPFLAGS" = "x"; then
6811    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNEXT\""
6812    CPPFLAGS="-DNEXT"
6813  else
6814    apr_addto_bugger="-DNEXT"
6815    for i in $apr_addto_bugger; do
6816      apr_addto_duplicate="0"
6817      for j in $CPPFLAGS; do
6818        if test "x$i" = "x$j"; then
6819          apr_addto_duplicate="1"
6820          break
6821        fi
6822      done
6823      if test $apr_addto_duplicate = "0"; then
6824        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6825        CPPFLAGS="$CPPFLAGS $i"
6826      fi
6827    done
6828  fi
6829
6830	;;
6831    *-apple-rhapsody*)
6832
6833  if test "x$CPPFLAGS" = "x"; then
6834    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DRHAPSODY\""
6835    CPPFLAGS="-DRHAPSODY"
6836  else
6837    apr_addto_bugger="-DRHAPSODY"
6838    for i in $apr_addto_bugger; do
6839      apr_addto_duplicate="0"
6840      for j in $CPPFLAGS; do
6841        if test "x$i" = "x$j"; then
6842          apr_addto_duplicate="1"
6843          break
6844        fi
6845      done
6846      if test $apr_addto_duplicate = "0"; then
6847        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6848        CPPFLAGS="$CPPFLAGS $i"
6849      fi
6850    done
6851  fi
6852
6853	;;
6854    *-apple-darwin*)
6855
6856  if test "x$CPPFLAGS" = "x"; then
6857    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp\""
6858    CPPFLAGS="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp"
6859  else
6860    apr_addto_bugger="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp"
6861    for i in $apr_addto_bugger; do
6862      apr_addto_duplicate="0"
6863      for j in $CPPFLAGS; do
6864        if test "x$i" = "x$j"; then
6865          apr_addto_duplicate="1"
6866          break
6867        fi
6868      done
6869      if test $apr_addto_duplicate = "0"; then
6870        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6871        CPPFLAGS="$CPPFLAGS $i"
6872      fi
6873    done
6874  fi
6875
6876
6877  if test -z "$apr_posixsem_is_global"; then
6878    test "x$silent" != "xyes" && echo "  setting apr_posixsem_is_global to \"yes\""
6879    apr_posixsem_is_global="yes"
6880  fi
6881
6882        case $host in
6883            *-apple-darwin[1-9].*)
6884                # APR's use of kqueue has triggered kernel panics for some
6885                # 10.5.x (Darwin 9.x) users when running the entire test suite.
6886                # In 10.4.x, use of kqueue would cause the socket tests to hang.
6887                # 10.6+ (Darwin 10.x is supposed to fix the KQueue issues
6888
6889  if test -z "$ac_cv_func_kqueue"; then
6890    test "x$silent" != "xyes" && echo "  setting ac_cv_func_kqueue to \"no\""
6891    ac_cv_func_kqueue="no"
6892  fi
6893
6894
6895  if test -z "$ac_cv_func_poll"; then
6896    test "x$silent" != "xyes" && echo "  setting ac_cv_func_poll to \"no\""
6897    ac_cv_func_poll="no"
6898  fi
6899 # See issue 34332
6900            ;;
6901            *-apple-darwin1[01].*)
6902
6903  if test "x$CPPFLAGS" = "x"; then
6904    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DDARWIN_10\""
6905    CPPFLAGS="-DDARWIN_10"
6906  else
6907    apr_addto_bugger="-DDARWIN_10"
6908    for i in $apr_addto_bugger; do
6909      apr_addto_duplicate="0"
6910      for j in $CPPFLAGS; do
6911        if test "x$i" = "x$j"; then
6912          apr_addto_duplicate="1"
6913          break
6914        fi
6915      done
6916      if test $apr_addto_duplicate = "0"; then
6917        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6918        CPPFLAGS="$CPPFLAGS $i"
6919      fi
6920    done
6921  fi
6922
6923            ;;
6924        esac
6925	;;
6926    *-dec-osf*)
6927
6928  if test "x$CPPFLAGS" = "x"; then
6929    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DOSF1\""
6930    CPPFLAGS="-DOSF1"
6931  else
6932    apr_addto_bugger="-DOSF1"
6933    for i in $apr_addto_bugger; do
6934      apr_addto_duplicate="0"
6935      for j in $CPPFLAGS; do
6936        if test "x$i" = "x$j"; then
6937          apr_addto_duplicate="1"
6938          break
6939        fi
6940      done
6941      if test $apr_addto_duplicate = "0"; then
6942        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6943        CPPFLAGS="$CPPFLAGS $i"
6944      fi
6945    done
6946  fi
6947
6948        # process-shared mutexes don't seem to work in Tru64 5.0
6949
6950  if test -z "$apr_cv_process_shared_works"; then
6951    test "x$silent" != "xyes" && echo "  setting apr_cv_process_shared_works to \"no\""
6952    apr_cv_process_shared_works="no"
6953  fi
6954
6955	;;
6956    *-nto-qnx*)
6957	;;
6958    *-qnx)
6959
6960  if test "x$CPPFLAGS" = "x"; then
6961    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DQNX\""
6962    CPPFLAGS="-DQNX"
6963  else
6964    apr_addto_bugger="-DQNX"
6965    for i in $apr_addto_bugger; do
6966      apr_addto_duplicate="0"
6967      for j in $CPPFLAGS; do
6968        if test "x$i" = "x$j"; then
6969          apr_addto_duplicate="1"
6970          break
6971        fi
6972      done
6973      if test $apr_addto_duplicate = "0"; then
6974        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6975        CPPFLAGS="$CPPFLAGS $i"
6976      fi
6977    done
6978  fi
6979
6980
6981  if test "x$LIBS" = "x"; then
6982    test "x$silent" != "xyes" && echo "  setting LIBS to \"-N128k -lunix\""
6983    LIBS="-N128k -lunix"
6984  else
6985    apr_addto_bugger="-N128k -lunix"
6986    for i in $apr_addto_bugger; do
6987      apr_addto_duplicate="0"
6988      for j in $LIBS; do
6989        if test "x$i" = "x$j"; then
6990          apr_addto_duplicate="1"
6991          break
6992        fi
6993      done
6994      if test $apr_addto_duplicate = "0"; then
6995        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6996        LIBS="$LIBS $i"
6997      fi
6998    done
6999  fi
7000
7001	;;
7002    *-qnx32)
7003
7004  if test "x$CPPFLAGS" = "x"; then
7005    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DQNX\""
7006    CPPFLAGS="-DQNX"
7007  else
7008    apr_addto_bugger="-DQNX"
7009    for i in $apr_addto_bugger; do
7010      apr_addto_duplicate="0"
7011      for j in $CPPFLAGS; do
7012        if test "x$i" = "x$j"; then
7013          apr_addto_duplicate="1"
7014          break
7015        fi
7016      done
7017      if test $apr_addto_duplicate = "0"; then
7018        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7019        CPPFLAGS="$CPPFLAGS $i"
7020      fi
7021    done
7022  fi
7023
7024
7025  if test "x$CFLAGS" = "x"; then
7026    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-mf -3\""
7027    CFLAGS="-mf -3"
7028  else
7029    apr_addto_bugger="-mf -3"
7030    for i in $apr_addto_bugger; do
7031      apr_addto_duplicate="0"
7032      for j in $CFLAGS; do
7033        if test "x$i" = "x$j"; then
7034          apr_addto_duplicate="1"
7035          break
7036        fi
7037      done
7038      if test $apr_addto_duplicate = "0"; then
7039        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
7040        CFLAGS="$CFLAGS $i"
7041      fi
7042    done
7043  fi
7044
7045
7046  if test "x$LIBS" = "x"; then
7047    test "x$silent" != "xyes" && echo "  setting LIBS to \"-N128k -lunix\""
7048    LIBS="-N128k -lunix"
7049  else
7050    apr_addto_bugger="-N128k -lunix"
7051    for i in $apr_addto_bugger; do
7052      apr_addto_duplicate="0"
7053      for j in $LIBS; do
7054        if test "x$i" = "x$j"; then
7055          apr_addto_duplicate="1"
7056          break
7057        fi
7058      done
7059      if test $apr_addto_duplicate = "0"; then
7060        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7061        LIBS="$LIBS $i"
7062      fi
7063    done
7064  fi
7065
7066	;;
7067    *-isc4*)
7068
7069  if test "x$CPPFLAGS" = "x"; then
7070    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-posix -DISC\""
7071    CPPFLAGS="-posix -DISC"
7072  else
7073    apr_addto_bugger="-posix -DISC"
7074    for i in $apr_addto_bugger; do
7075      apr_addto_duplicate="0"
7076      for j in $CPPFLAGS; do
7077        if test "x$i" = "x$j"; then
7078          apr_addto_duplicate="1"
7079          break
7080        fi
7081      done
7082      if test $apr_addto_duplicate = "0"; then
7083        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7084        CPPFLAGS="$CPPFLAGS $i"
7085      fi
7086    done
7087  fi
7088
7089
7090  if test "x$LDFLAGS" = "x"; then
7091    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-posix\""
7092    LDFLAGS="-posix"
7093  else
7094    apr_addto_bugger="-posix"
7095    for i in $apr_addto_bugger; do
7096      apr_addto_duplicate="0"
7097      for j in $LDFLAGS; do
7098        if test "x$i" = "x$j"; then
7099          apr_addto_duplicate="1"
7100          break
7101        fi
7102      done
7103      if test $apr_addto_duplicate = "0"; then
7104        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
7105        LDFLAGS="$LDFLAGS $i"
7106      fi
7107    done
7108  fi
7109
7110
7111  if test "x$LIBS" = "x"; then
7112    test "x$silent" != "xyes" && echo "  setting LIBS to \"-linet\""
7113    LIBS="-linet"
7114  else
7115    apr_addto_bugger="-linet"
7116    for i in $apr_addto_bugger; do
7117      apr_addto_duplicate="0"
7118      for j in $LIBS; do
7119        if test "x$i" = "x$j"; then
7120          apr_addto_duplicate="1"
7121          break
7122        fi
7123      done
7124      if test $apr_addto_duplicate = "0"; then
7125        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7126        LIBS="$LIBS $i"
7127      fi
7128    done
7129  fi
7130
7131	;;
7132    *-sco3.2v[234]*)
7133
7134  if test "x$CPPFLAGS" = "x"; then
7135    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
7136    CPPFLAGS="-DSCO -D_REENTRANT"
7137  else
7138    apr_addto_bugger="-DSCO -D_REENTRANT"
7139    for i in $apr_addto_bugger; do
7140      apr_addto_duplicate="0"
7141      for j in $CPPFLAGS; do
7142        if test "x$i" = "x$j"; then
7143          apr_addto_duplicate="1"
7144          break
7145        fi
7146      done
7147      if test $apr_addto_duplicate = "0"; then
7148        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7149        CPPFLAGS="$CPPFLAGS $i"
7150      fi
7151    done
7152  fi
7153
7154	if test "$GCC" = "no"; then
7155
7156  if test "x$CFLAGS" = "x"; then
7157    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Oacgiltz\""
7158    CFLAGS="-Oacgiltz"
7159  else
7160    apr_addto_bugger="-Oacgiltz"
7161    for i in $apr_addto_bugger; do
7162      apr_addto_duplicate="0"
7163      for j in $CFLAGS; do
7164        if test "x$i" = "x$j"; then
7165          apr_addto_duplicate="1"
7166          break
7167        fi
7168      done
7169      if test $apr_addto_duplicate = "0"; then
7170        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
7171        CFLAGS="$CFLAGS $i"
7172      fi
7173    done
7174  fi
7175
7176	fi
7177
7178  if test "x$LIBS" = "x"; then
7179    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lPW -lmalloc\""
7180    LIBS="-lPW -lmalloc"
7181  else
7182    apr_addto_bugger="-lPW -lmalloc"
7183    for i in $apr_addto_bugger; do
7184      apr_addto_duplicate="0"
7185      for j in $LIBS; do
7186        if test "x$i" = "x$j"; then
7187          apr_addto_duplicate="1"
7188          break
7189        fi
7190      done
7191      if test $apr_addto_duplicate = "0"; then
7192        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7193        LIBS="$LIBS $i"
7194      fi
7195    done
7196  fi
7197
7198	;;
7199    *-sco3.2v5*)
7200
7201  if test "x$CPPFLAGS" = "x"; then
7202    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSCO5 -D_REENTRANT\""
7203    CPPFLAGS="-DSCO5 -D_REENTRANT"
7204  else
7205    apr_addto_bugger="-DSCO5 -D_REENTRANT"
7206    for i in $apr_addto_bugger; do
7207      apr_addto_duplicate="0"
7208      for j in $CPPFLAGS; do
7209        if test "x$i" = "x$j"; then
7210          apr_addto_duplicate="1"
7211          break
7212        fi
7213      done
7214      if test $apr_addto_duplicate = "0"; then
7215        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7216        CPPFLAGS="$CPPFLAGS $i"
7217      fi
7218    done
7219  fi
7220
7221	;;
7222    *-sco_sv*|*-SCO_SV*)
7223
7224  if test "x$CPPFLAGS" = "x"; then
7225    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
7226    CPPFLAGS="-DSCO -D_REENTRANT"
7227  else
7228    apr_addto_bugger="-DSCO -D_REENTRANT"
7229    for i in $apr_addto_bugger; do
7230      apr_addto_duplicate="0"
7231      for j in $CPPFLAGS; do
7232        if test "x$i" = "x$j"; then
7233          apr_addto_duplicate="1"
7234          break
7235        fi
7236      done
7237      if test $apr_addto_duplicate = "0"; then
7238        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7239        CPPFLAGS="$CPPFLAGS $i"
7240      fi
7241    done
7242  fi
7243
7244
7245  if test "x$LIBS" = "x"; then
7246    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lPW -lmalloc\""
7247    LIBS="-lPW -lmalloc"
7248  else
7249    apr_addto_bugger="-lPW -lmalloc"
7250    for i in $apr_addto_bugger; do
7251      apr_addto_duplicate="0"
7252      for j in $LIBS; do
7253        if test "x$i" = "x$j"; then
7254          apr_addto_duplicate="1"
7255          break
7256        fi
7257      done
7258      if test $apr_addto_duplicate = "0"; then
7259        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7260        LIBS="$LIBS $i"
7261      fi
7262    done
7263  fi
7264
7265	;;
7266    *-solaris2*)
7267    	PLATOSVERS=`echo $host | sed 's/^.*solaris2.//'`
7268
7269  if test "x$CPPFLAGS" = "x"; then
7270    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT\""
7271    CPPFLAGS="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
7272  else
7273    apr_addto_bugger="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
7274    for i in $apr_addto_bugger; do
7275      apr_addto_duplicate="0"
7276      for j in $CPPFLAGS; do
7277        if test "x$i" = "x$j"; then
7278          apr_addto_duplicate="1"
7279          break
7280        fi
7281      done
7282      if test $apr_addto_duplicate = "0"; then
7283        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7284        CPPFLAGS="$CPPFLAGS $i"
7285      fi
7286    done
7287  fi
7288
7289        if test $PLATOSVERS -ge 10; then
7290
7291  if test -z "$apr_lock_method"; then
7292    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_PROC_PTHREAD_SERIALIZE\""
7293    apr_lock_method="USE_PROC_PTHREAD_SERIALIZE"
7294  fi
7295
7296        else
7297
7298  if test -z "$apr_lock_method"; then
7299    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_FCNTL_SERIALIZE\""
7300    apr_lock_method="USE_FCNTL_SERIALIZE"
7301  fi
7302
7303        fi
7304        # readdir64_r error handling seems broken on Solaris (at least
7305        # up till 2.8) -- it will return -1 at end-of-directory.
7306
7307  if test -z "$ac_cv_func_readdir64_r"; then
7308    test "x$silent" != "xyes" && echo "  setting ac_cv_func_readdir64_r to \"no\""
7309    ac_cv_func_readdir64_r="no"
7310  fi
7311
7312	;;
7313    *-sunos4*)
7314
7315  if test "x$CPPFLAGS" = "x"; then
7316    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSUNOS4\""
7317    CPPFLAGS="-DSUNOS4"
7318  else
7319    apr_addto_bugger="-DSUNOS4"
7320    for i in $apr_addto_bugger; do
7321      apr_addto_duplicate="0"
7322      for j in $CPPFLAGS; do
7323        if test "x$i" = "x$j"; then
7324          apr_addto_duplicate="1"
7325          break
7326        fi
7327      done
7328      if test $apr_addto_duplicate = "0"; then
7329        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7330        CPPFLAGS="$CPPFLAGS $i"
7331      fi
7332    done
7333  fi
7334
7335	;;
7336    *-unixware1)
7337
7338  if test "x$CPPFLAGS" = "x"; then
7339    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=100\""
7340    CPPFLAGS="-DUW=100"
7341  else
7342    apr_addto_bugger="-DUW=100"
7343    for i in $apr_addto_bugger; do
7344      apr_addto_duplicate="0"
7345      for j in $CPPFLAGS; do
7346        if test "x$i" = "x$j"; then
7347          apr_addto_duplicate="1"
7348          break
7349        fi
7350      done
7351      if test $apr_addto_duplicate = "0"; then
7352        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7353        CPPFLAGS="$CPPFLAGS $i"
7354      fi
7355    done
7356  fi
7357
7358	;;
7359    *-unixware2)
7360
7361  if test "x$CPPFLAGS" = "x"; then
7362    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=200\""
7363    CPPFLAGS="-DUW=200"
7364  else
7365    apr_addto_bugger="-DUW=200"
7366    for i in $apr_addto_bugger; do
7367      apr_addto_duplicate="0"
7368      for j in $CPPFLAGS; do
7369        if test "x$i" = "x$j"; then
7370          apr_addto_duplicate="1"
7371          break
7372        fi
7373      done
7374      if test $apr_addto_duplicate = "0"; then
7375        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7376        CPPFLAGS="$CPPFLAGS $i"
7377      fi
7378    done
7379  fi
7380
7381
7382  if test "x$LIBS" = "x"; then
7383    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
7384    LIBS="-lgen"
7385  else
7386    apr_addto_bugger="-lgen"
7387    for i in $apr_addto_bugger; do
7388      apr_addto_duplicate="0"
7389      for j in $LIBS; do
7390        if test "x$i" = "x$j"; then
7391          apr_addto_duplicate="1"
7392          break
7393        fi
7394      done
7395      if test $apr_addto_duplicate = "0"; then
7396        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7397        LIBS="$LIBS $i"
7398      fi
7399    done
7400  fi
7401
7402	;;
7403    *-unixware211)
7404
7405  if test "x$CPPFLAGS" = "x"; then
7406    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=211\""
7407    CPPFLAGS="-DUW=211"
7408  else
7409    apr_addto_bugger="-DUW=211"
7410    for i in $apr_addto_bugger; do
7411      apr_addto_duplicate="0"
7412      for j in $CPPFLAGS; do
7413        if test "x$i" = "x$j"; then
7414          apr_addto_duplicate="1"
7415          break
7416        fi
7417      done
7418      if test $apr_addto_duplicate = "0"; then
7419        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7420        CPPFLAGS="$CPPFLAGS $i"
7421      fi
7422    done
7423  fi
7424
7425
7426  if test "x$LIBS" = "x"; then
7427    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
7428    LIBS="-lgen"
7429  else
7430    apr_addto_bugger="-lgen"
7431    for i in $apr_addto_bugger; do
7432      apr_addto_duplicate="0"
7433      for j in $LIBS; do
7434        if test "x$i" = "x$j"; then
7435          apr_addto_duplicate="1"
7436          break
7437        fi
7438      done
7439      if test $apr_addto_duplicate = "0"; then
7440        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7441        LIBS="$LIBS $i"
7442      fi
7443    done
7444  fi
7445
7446	;;
7447    *-unixware212)
7448
7449  if test "x$CPPFLAGS" = "x"; then
7450    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=212\""
7451    CPPFLAGS="-DUW=212"
7452  else
7453    apr_addto_bugger="-DUW=212"
7454    for i in $apr_addto_bugger; do
7455      apr_addto_duplicate="0"
7456      for j in $CPPFLAGS; do
7457        if test "x$i" = "x$j"; then
7458          apr_addto_duplicate="1"
7459          break
7460        fi
7461      done
7462      if test $apr_addto_duplicate = "0"; then
7463        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7464        CPPFLAGS="$CPPFLAGS $i"
7465      fi
7466    done
7467  fi
7468
7469
7470  if test "x$LIBS" = "x"; then
7471    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
7472    LIBS="-lgen"
7473  else
7474    apr_addto_bugger="-lgen"
7475    for i in $apr_addto_bugger; do
7476      apr_addto_duplicate="0"
7477      for j in $LIBS; do
7478        if test "x$i" = "x$j"; then
7479          apr_addto_duplicate="1"
7480          break
7481        fi
7482      done
7483      if test $apr_addto_duplicate = "0"; then
7484        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7485        LIBS="$LIBS $i"
7486      fi
7487    done
7488  fi
7489
7490	;;
7491    *-unixware7)
7492
7493  if test "x$CPPFLAGS" = "x"; then
7494    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=700\""
7495    CPPFLAGS="-DUW=700"
7496  else
7497    apr_addto_bugger="-DUW=700"
7498    for i in $apr_addto_bugger; do
7499      apr_addto_duplicate="0"
7500      for j in $CPPFLAGS; do
7501        if test "x$i" = "x$j"; then
7502          apr_addto_duplicate="1"
7503          break
7504        fi
7505      done
7506      if test $apr_addto_duplicate = "0"; then
7507        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7508        CPPFLAGS="$CPPFLAGS $i"
7509      fi
7510    done
7511  fi
7512
7513
7514  if test "x$LIBS" = "x"; then
7515    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
7516    LIBS="-lgen"
7517  else
7518    apr_addto_bugger="-lgen"
7519    for i in $apr_addto_bugger; do
7520      apr_addto_duplicate="0"
7521      for j in $LIBS; do
7522        if test "x$i" = "x$j"; then
7523          apr_addto_duplicate="1"
7524          break
7525        fi
7526      done
7527      if test $apr_addto_duplicate = "0"; then
7528        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7529        LIBS="$LIBS $i"
7530      fi
7531    done
7532  fi
7533
7534	;;
7535    maxion-*-sysv4*)
7536
7537  if test "x$CPPFLAGS" = "x"; then
7538    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
7539    CPPFLAGS="-DSVR4"
7540  else
7541    apr_addto_bugger="-DSVR4"
7542    for i in $apr_addto_bugger; do
7543      apr_addto_duplicate="0"
7544      for j in $CPPFLAGS; do
7545        if test "x$i" = "x$j"; then
7546          apr_addto_duplicate="1"
7547          break
7548        fi
7549      done
7550      if test $apr_addto_duplicate = "0"; then
7551        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7552        CPPFLAGS="$CPPFLAGS $i"
7553      fi
7554    done
7555  fi
7556
7557
7558  if test "x$LIBS" = "x"; then
7559    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc -lgen\""
7560    LIBS="-lc -lgen"
7561  else
7562    apr_addto_bugger="-lc -lgen"
7563    for i in $apr_addto_bugger; do
7564      apr_addto_duplicate="0"
7565      for j in $LIBS; do
7566        if test "x$i" = "x$j"; then
7567          apr_addto_duplicate="1"
7568          break
7569        fi
7570      done
7571      if test $apr_addto_duplicate = "0"; then
7572        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7573        LIBS="$LIBS $i"
7574      fi
7575    done
7576  fi
7577
7578	;;
7579    *-*-powermax*)
7580
7581  if test "x$CPPFLAGS" = "x"; then
7582    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
7583    CPPFLAGS="-DSVR4"
7584  else
7585    apr_addto_bugger="-DSVR4"
7586    for i in $apr_addto_bugger; do
7587      apr_addto_duplicate="0"
7588      for j in $CPPFLAGS; do
7589        if test "x$i" = "x$j"; then
7590          apr_addto_duplicate="1"
7591          break
7592        fi
7593      done
7594      if test $apr_addto_duplicate = "0"; then
7595        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7596        CPPFLAGS="$CPPFLAGS $i"
7597      fi
7598    done
7599  fi
7600
7601
7602  if test "x$LIBS" = "x"; then
7603    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
7604    LIBS="-lgen"
7605  else
7606    apr_addto_bugger="-lgen"
7607    for i in $apr_addto_bugger; do
7608      apr_addto_duplicate="0"
7609      for j in $LIBS; 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 LIBS"
7617        LIBS="$LIBS $i"
7618      fi
7619    done
7620  fi
7621
7622	;;
7623    TPF)
7624
7625  if test "x$CPPFLAGS" = "x"; then
7626    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DTPF -D_POSIX_SOURCE\""
7627    CPPFLAGS="-DTPF -D_POSIX_SOURCE"
7628  else
7629    apr_addto_bugger="-DTPF -D_POSIX_SOURCE"
7630    for i in $apr_addto_bugger; do
7631      apr_addto_duplicate="0"
7632      for j in $CPPFLAGS; do
7633        if test "x$i" = "x$j"; then
7634          apr_addto_duplicate="1"
7635          break
7636        fi
7637      done
7638      if test $apr_addto_duplicate = "0"; then
7639        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7640        CPPFLAGS="$CPPFLAGS $i"
7641      fi
7642    done
7643  fi
7644
7645       ;;
7646    bs2000*-siemens-sysv*)
7647
7648  if test -z "$CFLAGS"; then
7649    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
7650    CFLAGS="-O"
7651  fi
7652
7653
7654  if test "x$CPPFLAGS" = "x"; then
7655    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -D_KMEMUSER\""
7656    CPPFLAGS="-DSVR4 -D_XPG_IV -D_KMEMUSER"
7657  else
7658    apr_addto_bugger="-DSVR4 -D_XPG_IV -D_KMEMUSER"
7659    for i in $apr_addto_bugger; do
7660      apr_addto_duplicate="0"
7661      for j in $CPPFLAGS; do
7662        if test "x$i" = "x$j"; then
7663          apr_addto_duplicate="1"
7664          break
7665        fi
7666      done
7667      if test $apr_addto_duplicate = "0"; then
7668        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7669        CPPFLAGS="$CPPFLAGS $i"
7670      fi
7671    done
7672  fi
7673
7674
7675  if test "x$LIBS" = "x"; then
7676    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lsocket\""
7677    LIBS="-lsocket"
7678  else
7679    apr_addto_bugger="-lsocket"
7680    for i in $apr_addto_bugger; do
7681      apr_addto_duplicate="0"
7682      for j in $LIBS; do
7683        if test "x$i" = "x$j"; then
7684          apr_addto_duplicate="1"
7685          break
7686        fi
7687      done
7688      if test $apr_addto_duplicate = "0"; then
7689        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7690        LIBS="$LIBS $i"
7691      fi
7692    done
7693  fi
7694
7695
7696  if test -z "$enable_threads"; then
7697    test "x$silent" != "xyes" && echo "  setting enable_threads to \"no\""
7698    enable_threads="no"
7699  fi
7700
7701	;;
7702    *-siemens-sysv4*)
7703
7704  if test "x$CPPFLAGS" = "x"; then
7705    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT\""
7706    CPPFLAGS="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
7707  else
7708    apr_addto_bugger="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
7709    for i in $apr_addto_bugger; do
7710      apr_addto_duplicate="0"
7711      for j in $CPPFLAGS; do
7712        if test "x$i" = "x$j"; then
7713          apr_addto_duplicate="1"
7714          break
7715        fi
7716      done
7717      if test $apr_addto_duplicate = "0"; then
7718        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7719        CPPFLAGS="$CPPFLAGS $i"
7720      fi
7721    done
7722  fi
7723
7724
7725  if test "x$LIBS" = "x"; then
7726    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
7727    LIBS="-lc"
7728  else
7729    apr_addto_bugger="-lc"
7730    for i in $apr_addto_bugger; do
7731      apr_addto_duplicate="0"
7732      for j in $LIBS; do
7733        if test "x$i" = "x$j"; then
7734          apr_addto_duplicate="1"
7735          break
7736        fi
7737      done
7738      if test $apr_addto_duplicate = "0"; then
7739        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7740        LIBS="$LIBS $i"
7741      fi
7742    done
7743  fi
7744
7745	;;
7746    pyramid-pyramid-svr4)
7747
7748  if test "x$CPPFLAGS" = "x"; then
7749    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -DNO_LONG_DOUBLE\""
7750    CPPFLAGS="-DSVR4 -DNO_LONG_DOUBLE"
7751  else
7752    apr_addto_bugger="-DSVR4 -DNO_LONG_DOUBLE"
7753    for i in $apr_addto_bugger; do
7754      apr_addto_duplicate="0"
7755      for j in $CPPFLAGS; do
7756        if test "x$i" = "x$j"; then
7757          apr_addto_duplicate="1"
7758          break
7759        fi
7760      done
7761      if test $apr_addto_duplicate = "0"; then
7762        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7763        CPPFLAGS="$CPPFLAGS $i"
7764      fi
7765    done
7766  fi
7767
7768
7769  if test "x$LIBS" = "x"; then
7770    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
7771    LIBS="-lc"
7772  else
7773    apr_addto_bugger="-lc"
7774    for i in $apr_addto_bugger; do
7775      apr_addto_duplicate="0"
7776      for j in $LIBS; do
7777        if test "x$i" = "x$j"; then
7778          apr_addto_duplicate="1"
7779          break
7780        fi
7781      done
7782      if test $apr_addto_duplicate = "0"; then
7783        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7784        LIBS="$LIBS $i"
7785      fi
7786    done
7787  fi
7788
7789	;;
7790    DS/90\ 7000-*-sysv4*)
7791
7792  if test "x$CPPFLAGS" = "x"; then
7793    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUXPDS\""
7794    CPPFLAGS="-DUXPDS"
7795  else
7796    apr_addto_bugger="-DUXPDS"
7797    for i in $apr_addto_bugger; do
7798      apr_addto_duplicate="0"
7799      for j in $CPPFLAGS; do
7800        if test "x$i" = "x$j"; then
7801          apr_addto_duplicate="1"
7802          break
7803        fi
7804      done
7805      if test $apr_addto_duplicate = "0"; then
7806        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7807        CPPFLAGS="$CPPFLAGS $i"
7808      fi
7809    done
7810  fi
7811
7812	;;
7813    *-tandem-sysv4*)
7814
7815  if test "x$CPPFLAGS" = "x"; then
7816    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
7817    CPPFLAGS="-DSVR4"
7818  else
7819    apr_addto_bugger="-DSVR4"
7820    for i in $apr_addto_bugger; do
7821      apr_addto_duplicate="0"
7822      for j in $CPPFLAGS; do
7823        if test "x$i" = "x$j"; then
7824          apr_addto_duplicate="1"
7825          break
7826        fi
7827      done
7828      if test $apr_addto_duplicate = "0"; then
7829        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7830        CPPFLAGS="$CPPFLAGS $i"
7831      fi
7832    done
7833  fi
7834
7835	;;
7836    *-ncr-sysv4)
7837
7838  if test "x$CPPFLAGS" = "x"; then
7839    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
7840    CPPFLAGS="-DSVR4 -DMPRAS"
7841  else
7842    apr_addto_bugger="-DSVR4 -DMPRAS"
7843    for i in $apr_addto_bugger; do
7844      apr_addto_duplicate="0"
7845      for j in $CPPFLAGS; do
7846        if test "x$i" = "x$j"; then
7847          apr_addto_duplicate="1"
7848          break
7849        fi
7850      done
7851      if test $apr_addto_duplicate = "0"; then
7852        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7853        CPPFLAGS="$CPPFLAGS $i"
7854      fi
7855    done
7856  fi
7857
7858
7859  if test "x$LIBS" = "x"; then
7860    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc -L/usr/ucblib -lucb\""
7861    LIBS="-lc -L/usr/ucblib -lucb"
7862  else
7863    apr_addto_bugger="-lc -L/usr/ucblib -lucb"
7864    for i in $apr_addto_bugger; do
7865      apr_addto_duplicate="0"
7866      for j in $LIBS; do
7867        if test "x$i" = "x$j"; then
7868          apr_addto_duplicate="1"
7869          break
7870        fi
7871      done
7872      if test $apr_addto_duplicate = "0"; then
7873        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7874        LIBS="$LIBS $i"
7875      fi
7876    done
7877  fi
7878
7879	;;
7880    *-sysv4*)
7881
7882  if test "x$CPPFLAGS" = "x"; then
7883    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
7884    CPPFLAGS="-DSVR4"
7885  else
7886    apr_addto_bugger="-DSVR4"
7887    for i in $apr_addto_bugger; do
7888      apr_addto_duplicate="0"
7889      for j in $CPPFLAGS; do
7890        if test "x$i" = "x$j"; then
7891          apr_addto_duplicate="1"
7892          break
7893        fi
7894      done
7895      if test $apr_addto_duplicate = "0"; then
7896        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7897        CPPFLAGS="$CPPFLAGS $i"
7898      fi
7899    done
7900  fi
7901
7902
7903  if test "x$LIBS" = "x"; then
7904    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
7905    LIBS="-lc"
7906  else
7907    apr_addto_bugger="-lc"
7908    for i in $apr_addto_bugger; do
7909      apr_addto_duplicate="0"
7910      for j in $LIBS; do
7911        if test "x$i" = "x$j"; then
7912          apr_addto_duplicate="1"
7913          break
7914        fi
7915      done
7916      if test $apr_addto_duplicate = "0"; then
7917        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7918        LIBS="$LIBS $i"
7919      fi
7920    done
7921  fi
7922
7923	;;
7924    88k-encore-sysv4)
7925
7926  if test "x$CPPFLAGS" = "x"; then
7927    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -DENCORE\""
7928    CPPFLAGS="-DSVR4 -DENCORE"
7929  else
7930    apr_addto_bugger="-DSVR4 -DENCORE"
7931    for i in $apr_addto_bugger; do
7932      apr_addto_duplicate="0"
7933      for j in $CPPFLAGS; do
7934        if test "x$i" = "x$j"; then
7935          apr_addto_duplicate="1"
7936          break
7937        fi
7938      done
7939      if test $apr_addto_duplicate = "0"; then
7940        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7941        CPPFLAGS="$CPPFLAGS $i"
7942      fi
7943    done
7944  fi
7945
7946
7947  if test "x$LIBS" = "x"; then
7948    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lPW\""
7949    LIBS="-lPW"
7950  else
7951    apr_addto_bugger="-lPW"
7952    for i in $apr_addto_bugger; do
7953      apr_addto_duplicate="0"
7954      for j in $LIBS; do
7955        if test "x$i" = "x$j"; then
7956          apr_addto_duplicate="1"
7957          break
7958        fi
7959      done
7960      if test $apr_addto_duplicate = "0"; then
7961        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7962        LIBS="$LIBS $i"
7963      fi
7964    done
7965  fi
7966
7967	;;
7968    *-uts*)
7969	PLATOSVERS=`echo $host | sed 's/^.*,//'`
7970	case $PLATOSVERS in
7971	    2*)
7972  if test "x$CPPFLAGS" = "x"; then
7973    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUTS21\""
7974    CPPFLAGS="-DUTS21"
7975  else
7976    apr_addto_bugger="-DUTS21"
7977    for i in $apr_addto_bugger; do
7978      apr_addto_duplicate="0"
7979      for j in $CPPFLAGS; do
7980        if test "x$i" = "x$j"; then
7981          apr_addto_duplicate="1"
7982          break
7983        fi
7984      done
7985      if test $apr_addto_duplicate = "0"; then
7986        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7987        CPPFLAGS="$CPPFLAGS $i"
7988      fi
7989    done
7990  fi
7991
7992
7993  if test "x$CFLAGS" = "x"; then
7994    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Xa -eft\""
7995    CFLAGS="-Xa -eft"
7996  else
7997    apr_addto_bugger="-Xa -eft"
7998    for i in $apr_addto_bugger; do
7999      apr_addto_duplicate="0"
8000      for j in $CFLAGS; do
8001        if test "x$i" = "x$j"; then
8002          apr_addto_duplicate="1"
8003          break
8004        fi
8005      done
8006      if test $apr_addto_duplicate = "0"; then
8007        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8008        CFLAGS="$CFLAGS $i"
8009      fi
8010    done
8011  fi
8012
8013
8014  if test "x$LIBS" = "x"; then
8015    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbsd -la\""
8016    LIBS="-lbsd -la"
8017  else
8018    apr_addto_bugger="-lbsd -la"
8019    for i in $apr_addto_bugger; do
8020      apr_addto_duplicate="0"
8021      for j in $LIBS; do
8022        if test "x$i" = "x$j"; then
8023          apr_addto_duplicate="1"
8024          break
8025        fi
8026      done
8027      if test $apr_addto_duplicate = "0"; then
8028        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8029        LIBS="$LIBS $i"
8030      fi
8031    done
8032  fi
8033
8034	        ;;
8035	    *)
8036  if test "x$CPPFLAGS" = "x"; then
8037    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
8038    CPPFLAGS="-DSVR4"
8039  else
8040    apr_addto_bugger="-DSVR4"
8041    for i in $apr_addto_bugger; do
8042      apr_addto_duplicate="0"
8043      for j in $CPPFLAGS; do
8044        if test "x$i" = "x$j"; then
8045          apr_addto_duplicate="1"
8046          break
8047        fi
8048      done
8049      if test $apr_addto_duplicate = "0"; then
8050        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8051        CPPFLAGS="$CPPFLAGS $i"
8052      fi
8053    done
8054  fi
8055
8056
8057  if test "x$CFLAGS" = "x"; then
8058    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Xa\""
8059    CFLAGS="-Xa"
8060  else
8061    apr_addto_bugger="-Xa"
8062    for i in $apr_addto_bugger; do
8063      apr_addto_duplicate="0"
8064      for j in $CFLAGS; 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 CFLAGS"
8072        CFLAGS="$CFLAGS $i"
8073      fi
8074    done
8075  fi
8076
8077	        ;;
8078	esac
8079	;;
8080    *-ultrix)
8081
8082  if test "x$CPPFLAGS" = "x"; then
8083    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DULTRIX\""
8084    CPPFLAGS="-DULTRIX"
8085  else
8086    apr_addto_bugger="-DULTRIX"
8087    for i in $apr_addto_bugger; do
8088      apr_addto_duplicate="0"
8089      for j in $CPPFLAGS; do
8090        if test "x$i" = "x$j"; then
8091          apr_addto_duplicate="1"
8092          break
8093        fi
8094      done
8095      if test $apr_addto_duplicate = "0"; then
8096        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8097        CPPFLAGS="$CPPFLAGS $i"
8098      fi
8099    done
8100  fi
8101
8102
8103  test "x$silent" != "xyes" && echo "  forcing SHELL to \"/bin/sh5\""
8104  SHELL="/bin/sh5"
8105
8106	;;
8107    *powerpc-tenon-machten*)
8108
8109  if test "x$LDFLAGS" = "x"; then
8110    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Xlstack=0x14000 -Xldelcsect\""
8111    LDFLAGS="-Xlstack=0x14000 -Xldelcsect"
8112  else
8113    apr_addto_bugger="-Xlstack=0x14000 -Xldelcsect"
8114    for i in $apr_addto_bugger; do
8115      apr_addto_duplicate="0"
8116      for j in $LDFLAGS; do
8117        if test "x$i" = "x$j"; then
8118          apr_addto_duplicate="1"
8119          break
8120        fi
8121      done
8122      if test $apr_addto_duplicate = "0"; then
8123        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
8124        LDFLAGS="$LDFLAGS $i"
8125      fi
8126    done
8127  fi
8128
8129	;;
8130    *-machten*)
8131
8132  if test "x$LDFLAGS" = "x"; then
8133    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-stack 0x14000\""
8134    LDFLAGS="-stack 0x14000"
8135  else
8136    apr_addto_bugger="-stack 0x14000"
8137    for i in $apr_addto_bugger; do
8138      apr_addto_duplicate="0"
8139      for j in $LDFLAGS; do
8140        if test "x$i" = "x$j"; then
8141          apr_addto_duplicate="1"
8142          break
8143        fi
8144      done
8145      if test $apr_addto_duplicate = "0"; then
8146        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
8147        LDFLAGS="$LDFLAGS $i"
8148      fi
8149    done
8150  fi
8151
8152	;;
8153    *convex-v11*)
8154
8155  if test "x$CPPFLAGS" = "x"; then
8156    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DCONVEXOS11\""
8157    CPPFLAGS="-DCONVEXOS11"
8158  else
8159    apr_addto_bugger="-DCONVEXOS11"
8160    for i in $apr_addto_bugger; do
8161      apr_addto_duplicate="0"
8162      for j in $CPPFLAGS; do
8163        if test "x$i" = "x$j"; then
8164          apr_addto_duplicate="1"
8165          break
8166        fi
8167      done
8168      if test $apr_addto_duplicate = "0"; then
8169        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8170        CPPFLAGS="$CPPFLAGS $i"
8171      fi
8172    done
8173  fi
8174
8175
8176  if test -z "$CFLAGS"; then
8177    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O1\""
8178    CFLAGS="-O1"
8179  fi
8180
8181
8182  if test "x$CFLAGS" = "x"; then
8183    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-ext\""
8184    CFLAGS="-ext"
8185  else
8186    apr_addto_bugger="-ext"
8187    for i in $apr_addto_bugger; do
8188      apr_addto_duplicate="0"
8189      for j in $CFLAGS; do
8190        if test "x$i" = "x$j"; then
8191          apr_addto_duplicate="1"
8192          break
8193        fi
8194      done
8195      if test $apr_addto_duplicate = "0"; then
8196        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8197        CFLAGS="$CFLAGS $i"
8198      fi
8199    done
8200  fi
8201
8202	;;
8203    i860-intel-osf1)
8204
8205  if test "x$CPPFLAGS" = "x"; then
8206    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DPARAGON\""
8207    CPPFLAGS="-DPARAGON"
8208  else
8209    apr_addto_bugger="-DPARAGON"
8210    for i in $apr_addto_bugger; do
8211      apr_addto_duplicate="0"
8212      for j in $CPPFLAGS; do
8213        if test "x$i" = "x$j"; then
8214          apr_addto_duplicate="1"
8215          break
8216        fi
8217      done
8218      if test $apr_addto_duplicate = "0"; then
8219        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8220        CPPFLAGS="$CPPFLAGS $i"
8221      fi
8222    done
8223  fi
8224
8225	;;
8226    *-sequent-ptx2.*.*)
8227
8228  if test "x$CPPFLAGS" = "x"; then
8229    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=20\""
8230    CPPFLAGS="-DSEQUENT=20"
8231  else
8232    apr_addto_bugger="-DSEQUENT=20"
8233    for i in $apr_addto_bugger; do
8234      apr_addto_duplicate="0"
8235      for j in $CPPFLAGS; do
8236        if test "x$i" = "x$j"; then
8237          apr_addto_duplicate="1"
8238          break
8239        fi
8240      done
8241      if test $apr_addto_duplicate = "0"; then
8242        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8243        CPPFLAGS="$CPPFLAGS $i"
8244      fi
8245    done
8246  fi
8247
8248
8249  if test "x$CFLAGS" = "x"; then
8250    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
8251    CFLAGS="-Wc,-pw"
8252  else
8253    apr_addto_bugger="-Wc,-pw"
8254    for i in $apr_addto_bugger; do
8255      apr_addto_duplicate="0"
8256      for j in $CFLAGS; do
8257        if test "x$i" = "x$j"; then
8258          apr_addto_duplicate="1"
8259          break
8260        fi
8261      done
8262      if test $apr_addto_duplicate = "0"; then
8263        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8264        CFLAGS="$CFLAGS $i"
8265      fi
8266    done
8267  fi
8268
8269
8270  if test "x$LIBS" = "x"; then
8271    test "x$silent" != "xyes" && echo "  setting LIBS to \"-linet -lc -lseq\""
8272    LIBS="-linet -lc -lseq"
8273  else
8274    apr_addto_bugger="-linet -lc -lseq"
8275    for i in $apr_addto_bugger; do
8276      apr_addto_duplicate="0"
8277      for j in $LIBS; do
8278        if test "x$i" = "x$j"; then
8279          apr_addto_duplicate="1"
8280          break
8281        fi
8282      done
8283      if test $apr_addto_duplicate = "0"; then
8284        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8285        LIBS="$LIBS $i"
8286      fi
8287    done
8288  fi
8289
8290	;;
8291    *-sequent-ptx4.0.*)
8292
8293  if test "x$CPPFLAGS" = "x"; then
8294    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=40\""
8295    CPPFLAGS="-DSEQUENT=40"
8296  else
8297    apr_addto_bugger="-DSEQUENT=40"
8298    for i in $apr_addto_bugger; do
8299      apr_addto_duplicate="0"
8300      for j in $CPPFLAGS; do
8301        if test "x$i" = "x$j"; then
8302          apr_addto_duplicate="1"
8303          break
8304        fi
8305      done
8306      if test $apr_addto_duplicate = "0"; then
8307        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8308        CPPFLAGS="$CPPFLAGS $i"
8309      fi
8310    done
8311  fi
8312
8313
8314  if test "x$CFLAGS" = "x"; then
8315    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
8316    CFLAGS="-Wc,-pw"
8317  else
8318    apr_addto_bugger="-Wc,-pw"
8319    for i in $apr_addto_bugger; do
8320      apr_addto_duplicate="0"
8321      for j in $CFLAGS; do
8322        if test "x$i" = "x$j"; then
8323          apr_addto_duplicate="1"
8324          break
8325        fi
8326      done
8327      if test $apr_addto_duplicate = "0"; then
8328        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8329        CFLAGS="$CFLAGS $i"
8330      fi
8331    done
8332  fi
8333
8334
8335  if test "x$LIBS" = "x"; then
8336    test "x$silent" != "xyes" && echo "  setting LIBS to \"-linet -lc\""
8337    LIBS="-linet -lc"
8338  else
8339    apr_addto_bugger="-linet -lc"
8340    for i in $apr_addto_bugger; do
8341      apr_addto_duplicate="0"
8342      for j in $LIBS; do
8343        if test "x$i" = "x$j"; then
8344          apr_addto_duplicate="1"
8345          break
8346        fi
8347      done
8348      if test $apr_addto_duplicate = "0"; then
8349        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8350        LIBS="$LIBS $i"
8351      fi
8352    done
8353  fi
8354
8355	;;
8356    *-sequent-ptx4.[123].*)
8357
8358  if test "x$CPPFLAGS" = "x"; then
8359    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=41\""
8360    CPPFLAGS="-DSEQUENT=41"
8361  else
8362    apr_addto_bugger="-DSEQUENT=41"
8363    for i in $apr_addto_bugger; do
8364      apr_addto_duplicate="0"
8365      for j in $CPPFLAGS; do
8366        if test "x$i" = "x$j"; then
8367          apr_addto_duplicate="1"
8368          break
8369        fi
8370      done
8371      if test $apr_addto_duplicate = "0"; then
8372        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8373        CPPFLAGS="$CPPFLAGS $i"
8374      fi
8375    done
8376  fi
8377
8378
8379  if test "x$CFLAGS" = "x"; then
8380    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
8381    CFLAGS="-Wc,-pw"
8382  else
8383    apr_addto_bugger="-Wc,-pw"
8384    for i in $apr_addto_bugger; do
8385      apr_addto_duplicate="0"
8386      for j in $CFLAGS; do
8387        if test "x$i" = "x$j"; then
8388          apr_addto_duplicate="1"
8389          break
8390        fi
8391      done
8392      if test $apr_addto_duplicate = "0"; then
8393        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8394        CFLAGS="$CFLAGS $i"
8395      fi
8396    done
8397  fi
8398
8399
8400  if test "x$LIBS" = "x"; then
8401    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
8402    LIBS="-lc"
8403  else
8404    apr_addto_bugger="-lc"
8405    for i in $apr_addto_bugger; do
8406      apr_addto_duplicate="0"
8407      for j in $LIBS; do
8408        if test "x$i" = "x$j"; then
8409          apr_addto_duplicate="1"
8410          break
8411        fi
8412      done
8413      if test $apr_addto_duplicate = "0"; then
8414        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8415        LIBS="$LIBS $i"
8416      fi
8417    done
8418  fi
8419
8420	;;
8421    *-sequent-ptx4.4.*)
8422
8423  if test "x$CPPFLAGS" = "x"; then
8424    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=44\""
8425    CPPFLAGS="-DSEQUENT=44"
8426  else
8427    apr_addto_bugger="-DSEQUENT=44"
8428    for i in $apr_addto_bugger; do
8429      apr_addto_duplicate="0"
8430      for j in $CPPFLAGS; do
8431        if test "x$i" = "x$j"; then
8432          apr_addto_duplicate="1"
8433          break
8434        fi
8435      done
8436      if test $apr_addto_duplicate = "0"; then
8437        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8438        CPPFLAGS="$CPPFLAGS $i"
8439      fi
8440    done
8441  fi
8442
8443
8444  if test "x$CFLAGS" = "x"; then
8445    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
8446    CFLAGS="-Wc,-pw"
8447  else
8448    apr_addto_bugger="-Wc,-pw"
8449    for i in $apr_addto_bugger; do
8450      apr_addto_duplicate="0"
8451      for j in $CFLAGS; do
8452        if test "x$i" = "x$j"; then
8453          apr_addto_duplicate="1"
8454          break
8455        fi
8456      done
8457      if test $apr_addto_duplicate = "0"; then
8458        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8459        CFLAGS="$CFLAGS $i"
8460      fi
8461    done
8462  fi
8463
8464
8465  if test "x$LIBS" = "x"; then
8466    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
8467    LIBS="-lc"
8468  else
8469    apr_addto_bugger="-lc"
8470    for i in $apr_addto_bugger; do
8471      apr_addto_duplicate="0"
8472      for j in $LIBS; do
8473        if test "x$i" = "x$j"; then
8474          apr_addto_duplicate="1"
8475          break
8476        fi
8477      done
8478      if test $apr_addto_duplicate = "0"; then
8479        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8480        LIBS="$LIBS $i"
8481      fi
8482    done
8483  fi
8484
8485	;;
8486    *-sequent-ptx4.5.*)
8487
8488  if test "x$CPPFLAGS" = "x"; then
8489    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=45\""
8490    CPPFLAGS="-DSEQUENT=45"
8491  else
8492    apr_addto_bugger="-DSEQUENT=45"
8493    for i in $apr_addto_bugger; do
8494      apr_addto_duplicate="0"
8495      for j in $CPPFLAGS; do
8496        if test "x$i" = "x$j"; then
8497          apr_addto_duplicate="1"
8498          break
8499        fi
8500      done
8501      if test $apr_addto_duplicate = "0"; then
8502        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8503        CPPFLAGS="$CPPFLAGS $i"
8504      fi
8505    done
8506  fi
8507
8508
8509  if test "x$CFLAGS" = "x"; then
8510    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
8511    CFLAGS="-Wc,-pw"
8512  else
8513    apr_addto_bugger="-Wc,-pw"
8514    for i in $apr_addto_bugger; do
8515      apr_addto_duplicate="0"
8516      for j in $CFLAGS; do
8517        if test "x$i" = "x$j"; then
8518          apr_addto_duplicate="1"
8519          break
8520        fi
8521      done
8522      if test $apr_addto_duplicate = "0"; then
8523        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8524        CFLAGS="$CFLAGS $i"
8525      fi
8526    done
8527  fi
8528
8529
8530  if test "x$LIBS" = "x"; then
8531    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
8532    LIBS="-lc"
8533  else
8534    apr_addto_bugger="-lc"
8535    for i in $apr_addto_bugger; do
8536      apr_addto_duplicate="0"
8537      for j in $LIBS; do
8538        if test "x$i" = "x$j"; then
8539          apr_addto_duplicate="1"
8540          break
8541        fi
8542      done
8543      if test $apr_addto_duplicate = "0"; then
8544        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8545        LIBS="$LIBS $i"
8546      fi
8547    done
8548  fi
8549
8550	;;
8551    *-sequent-ptx5.0.*)
8552
8553  if test "x$CPPFLAGS" = "x"; then
8554    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=50\""
8555    CPPFLAGS="-DSEQUENT=50"
8556  else
8557    apr_addto_bugger="-DSEQUENT=50"
8558    for i in $apr_addto_bugger; do
8559      apr_addto_duplicate="0"
8560      for j in $CPPFLAGS; do
8561        if test "x$i" = "x$j"; then
8562          apr_addto_duplicate="1"
8563          break
8564        fi
8565      done
8566      if test $apr_addto_duplicate = "0"; then
8567        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8568        CPPFLAGS="$CPPFLAGS $i"
8569      fi
8570    done
8571  fi
8572
8573
8574  if test "x$CFLAGS" = "x"; then
8575    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
8576    CFLAGS="-Wc,-pw"
8577  else
8578    apr_addto_bugger="-Wc,-pw"
8579    for i in $apr_addto_bugger; do
8580      apr_addto_duplicate="0"
8581      for j in $CFLAGS; do
8582        if test "x$i" = "x$j"; then
8583          apr_addto_duplicate="1"
8584          break
8585        fi
8586      done
8587      if test $apr_addto_duplicate = "0"; then
8588        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8589        CFLAGS="$CFLAGS $i"
8590      fi
8591    done
8592  fi
8593
8594
8595  if test "x$LIBS" = "x"; then
8596    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
8597    LIBS="-lc"
8598  else
8599    apr_addto_bugger="-lc"
8600    for i in $apr_addto_bugger; do
8601      apr_addto_duplicate="0"
8602      for j in $LIBS; do
8603        if test "x$i" = "x$j"; then
8604          apr_addto_duplicate="1"
8605          break
8606        fi
8607      done
8608      if test $apr_addto_duplicate = "0"; then
8609        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8610        LIBS="$LIBS $i"
8611      fi
8612    done
8613  fi
8614
8615	;;
8616    *NEWS-OS*)
8617
8618  if test "x$CPPFLAGS" = "x"; then
8619    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNEWSOS\""
8620    CPPFLAGS="-DNEWSOS"
8621  else
8622    apr_addto_bugger="-DNEWSOS"
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    *-riscix)
8640
8641  if test "x$CPPFLAGS" = "x"; then
8642    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DRISCIX\""
8643    CPPFLAGS="-DRISCIX"
8644  else
8645    apr_addto_bugger="-DRISCIX"
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
8662  if test -z "$CFLAGS"; then
8663    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
8664    CFLAGS="-O"
8665  fi
8666
8667	;;
8668    *-irix*)
8669
8670  if test "x$CPPFLAGS" = "x"; then
8671    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_POSIX_THREAD_SAFE_FUNCTIONS\""
8672    CPPFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
8673  else
8674    apr_addto_bugger="-D_POSIX_THREAD_SAFE_FUNCTIONS"
8675    for i in $apr_addto_bugger; do
8676      apr_addto_duplicate="0"
8677      for j in $CPPFLAGS; do
8678        if test "x$i" = "x$j"; then
8679          apr_addto_duplicate="1"
8680          break
8681        fi
8682      done
8683      if test $apr_addto_duplicate = "0"; then
8684        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8685        CPPFLAGS="$CPPFLAGS $i"
8686      fi
8687    done
8688  fi
8689
8690	;;
8691    *beos*)
8692
8693  if test "x$CPPFLAGS" = "x"; then
8694    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DBEOS\""
8695    CPPFLAGS="-DBEOS"
8696  else
8697    apr_addto_bugger="-DBEOS"
8698    for i in $apr_addto_bugger; do
8699      apr_addto_duplicate="0"
8700      for j in $CPPFLAGS; do
8701        if test "x$i" = "x$j"; then
8702          apr_addto_duplicate="1"
8703          break
8704        fi
8705      done
8706      if test $apr_addto_duplicate = "0"; then
8707        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8708        CPPFLAGS="$CPPFLAGS $i"
8709      fi
8710    done
8711  fi
8712
8713        PLATOSVERS=`uname -r`
8714
8715  if test -z "$apr_process_lock_is_global"; then
8716    test "x$silent" != "xyes" && echo "  setting apr_process_lock_is_global to \"yes\""
8717    apr_process_lock_is_global="yes"
8718  fi
8719
8720        case $PLATOSVERS in
8721            5.0.4)
8722
8723  if test "x$LDFLAGS" = "x"; then
8724    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L/boot/beos/system/lib\""
8725    LDFLAGS="-L/boot/beos/system/lib"
8726  else
8727    apr_addto_bugger="-L/boot/beos/system/lib"
8728    for i in $apr_addto_bugger; do
8729      apr_addto_duplicate="0"
8730      for j in $LDFLAGS; do
8731        if test "x$i" = "x$j"; then
8732          apr_addto_duplicate="1"
8733          break
8734        fi
8735      done
8736      if test $apr_addto_duplicate = "0"; then
8737        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
8738        LDFLAGS="$LDFLAGS $i"
8739      fi
8740    done
8741  fi
8742
8743
8744  if test "x$LIBS" = "x"; then
8745    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbind -lsocket\""
8746    LIBS="-lbind -lsocket"
8747  else
8748    apr_addto_bugger="-lbind -lsocket"
8749    for i in $apr_addto_bugger; do
8750      apr_addto_duplicate="0"
8751      for j in $LIBS; do
8752        if test "x$i" = "x$j"; then
8753          apr_addto_duplicate="1"
8754          break
8755        fi
8756      done
8757      if test $apr_addto_duplicate = "0"; then
8758        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8759        LIBS="$LIBS $i"
8760      fi
8761    done
8762  fi
8763
8764
8765  if test "x$CPPFLAGS" = "x"; then
8766    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DBONE7\""
8767    CPPFLAGS="-DBONE7"
8768  else
8769    apr_addto_bugger="-DBONE7"
8770    for i in $apr_addto_bugger; do
8771      apr_addto_duplicate="0"
8772      for j in $CPPFLAGS; do
8773        if test "x$i" = "x$j"; then
8774          apr_addto_duplicate="1"
8775          break
8776        fi
8777      done
8778      if test $apr_addto_duplicate = "0"; then
8779        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8780        CPPFLAGS="$CPPFLAGS $i"
8781      fi
8782    done
8783  fi
8784
8785                ;;
8786            5.1)
8787
8788  if test "x$LDFLAGS" = "x"; then
8789    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L/boot/beos/system/lib\""
8790    LDFLAGS="-L/boot/beos/system/lib"
8791  else
8792    apr_addto_bugger="-L/boot/beos/system/lib"
8793    for i in $apr_addto_bugger; do
8794      apr_addto_duplicate="0"
8795      for j in $LDFLAGS; do
8796        if test "x$i" = "x$j"; then
8797          apr_addto_duplicate="1"
8798          break
8799        fi
8800      done
8801      if test $apr_addto_duplicate = "0"; then
8802        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
8803        LDFLAGS="$LDFLAGS $i"
8804      fi
8805    done
8806  fi
8807
8808
8809  if test "x$LIBS" = "x"; then
8810    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbind -lsocket\""
8811    LIBS="-lbind -lsocket"
8812  else
8813    apr_addto_bugger="-lbind -lsocket"
8814    for i in $apr_addto_bugger; do
8815      apr_addto_duplicate="0"
8816      for j in $LIBS; do
8817        if test "x$i" = "x$j"; then
8818          apr_addto_duplicate="1"
8819          break
8820        fi
8821      done
8822      if test $apr_addto_duplicate = "0"; then
8823        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8824        LIBS="$LIBS $i"
8825      fi
8826    done
8827  fi
8828
8829                ;;
8830	esac
8831
8832  if test "x$CPPFLAGS" = "x"; then
8833    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSIGPROCMASK_SETS_THREAD_MASK\""
8834    CPPFLAGS="-DSIGPROCMASK_SETS_THREAD_MASK"
8835  else
8836    apr_addto_bugger="-DSIGPROCMASK_SETS_THREAD_MASK"
8837    for i in $apr_addto_bugger; do
8838      apr_addto_duplicate="0"
8839      for j in $CPPFLAGS; do
8840        if test "x$i" = "x$j"; then
8841          apr_addto_duplicate="1"
8842          break
8843        fi
8844      done
8845      if test $apr_addto_duplicate = "0"; then
8846        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8847        CPPFLAGS="$CPPFLAGS $i"
8848      fi
8849    done
8850  fi
8851
8852        ;;
8853    4850-*.*)
8854
8855  if test "x$CPPFLAGS" = "x"; then
8856    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
8857    CPPFLAGS="-DSVR4 -DMPRAS"
8858  else
8859    apr_addto_bugger="-DSVR4 -DMPRAS"
8860    for i in $apr_addto_bugger; do
8861      apr_addto_duplicate="0"
8862      for j in $CPPFLAGS; do
8863        if test "x$i" = "x$j"; then
8864          apr_addto_duplicate="1"
8865          break
8866        fi
8867      done
8868      if test $apr_addto_duplicate = "0"; then
8869        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8870        CPPFLAGS="$CPPFLAGS $i"
8871      fi
8872    done
8873  fi
8874
8875
8876  if test "x$LIBS" = "x"; then
8877    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc -L/usr/ucblib -lucb\""
8878    LIBS="-lc -L/usr/ucblib -lucb"
8879  else
8880    apr_addto_bugger="-lc -L/usr/ucblib -lucb"
8881    for i in $apr_addto_bugger; do
8882      apr_addto_duplicate="0"
8883      for j in $LIBS; do
8884        if test "x$i" = "x$j"; then
8885          apr_addto_duplicate="1"
8886          break
8887        fi
8888      done
8889      if test $apr_addto_duplicate = "0"; then
8890        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8891        LIBS="$LIBS $i"
8892      fi
8893    done
8894  fi
8895
8896	;;
8897    drs6000*)
8898
8899  if test "x$CPPFLAGS" = "x"; then
8900    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
8901    CPPFLAGS="-DSVR4"
8902  else
8903    apr_addto_bugger="-DSVR4"
8904    for i in $apr_addto_bugger; do
8905      apr_addto_duplicate="0"
8906      for j in $CPPFLAGS; do
8907        if test "x$i" = "x$j"; then
8908          apr_addto_duplicate="1"
8909          break
8910        fi
8911      done
8912      if test $apr_addto_duplicate = "0"; then
8913        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8914        CPPFLAGS="$CPPFLAGS $i"
8915      fi
8916    done
8917  fi
8918
8919
8920  if test "x$LIBS" = "x"; then
8921    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc -L/usr/ucblib -lucb\""
8922    LIBS="-lc -L/usr/ucblib -lucb"
8923  else
8924    apr_addto_bugger="-lc -L/usr/ucblib -lucb"
8925    for i in $apr_addto_bugger; do
8926      apr_addto_duplicate="0"
8927      for j in $LIBS; do
8928        if test "x$i" = "x$j"; then
8929          apr_addto_duplicate="1"
8930          break
8931        fi
8932      done
8933      if test $apr_addto_duplicate = "0"; then
8934        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8935        LIBS="$LIBS $i"
8936      fi
8937    done
8938  fi
8939
8940	;;
8941    m88k-*-CX/SX|CYBER)
8942
8943  if test "x$CPPFLAGS" = "x"; then
8944    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_CX_SX\""
8945    CPPFLAGS="-D_CX_SX"
8946  else
8947    apr_addto_bugger="-D_CX_SX"
8948    for i in $apr_addto_bugger; do
8949      apr_addto_duplicate="0"
8950      for j in $CPPFLAGS; do
8951        if test "x$i" = "x$j"; then
8952          apr_addto_duplicate="1"
8953          break
8954        fi
8955      done
8956      if test $apr_addto_duplicate = "0"; then
8957        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8958        CPPFLAGS="$CPPFLAGS $i"
8959      fi
8960    done
8961  fi
8962
8963
8964  if test "x$CFLAGS" = "x"; then
8965    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Xa\""
8966    CFLAGS="-Xa"
8967  else
8968    apr_addto_bugger="-Xa"
8969    for i in $apr_addto_bugger; do
8970      apr_addto_duplicate="0"
8971      for j in $CFLAGS; do
8972        if test "x$i" = "x$j"; then
8973          apr_addto_duplicate="1"
8974          break
8975        fi
8976      done
8977      if test $apr_addto_duplicate = "0"; then
8978        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8979        CFLAGS="$CFLAGS $i"
8980      fi
8981    done
8982  fi
8983
8984	;;
8985    *-tandem-oss)
8986
8987  if test "x$CPPFLAGS" = "x"; then
8988    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1\""
8989    CPPFLAGS="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
8990  else
8991    apr_addto_bugger="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
8992    for i in $apr_addto_bugger; do
8993      apr_addto_duplicate="0"
8994      for j in $CPPFLAGS; do
8995        if test "x$i" = "x$j"; then
8996          apr_addto_duplicate="1"
8997          break
8998        fi
8999      done
9000      if test $apr_addto_duplicate = "0"; then
9001        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
9002        CPPFLAGS="$CPPFLAGS $i"
9003      fi
9004    done
9005  fi
9006
9007	;;
9008    *-ibm-os390)
9009
9010  if test -z "$apr_lock_method"; then
9011    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
9012    apr_lock_method="USE_SYSVSEM_SERIALIZE"
9013  fi
9014
9015
9016  if test -z "$apr_sysvsem_is_global"; then
9017    test "x$silent" != "xyes" && echo "  setting apr_sysvsem_is_global to \"yes\""
9018    apr_sysvsem_is_global="yes"
9019  fi
9020
9021
9022  if test -z "$apr_gethostbyname_is_thread_safe"; then
9023    test "x$silent" != "xyes" && echo "  setting apr_gethostbyname_is_thread_safe to \"yes\""
9024    apr_gethostbyname_is_thread_safe="yes"
9025  fi
9026
9027
9028  if test -z "$apr_gethostbyaddr_is_thread_safe"; then
9029    test "x$silent" != "xyes" && echo "  setting apr_gethostbyaddr_is_thread_safe to \"yes\""
9030    apr_gethostbyaddr_is_thread_safe="yes"
9031  fi
9032
9033
9034  if test -z "$apr_getservbyname_is_thread_safe"; then
9035    test "x$silent" != "xyes" && echo "  setting apr_getservbyname_is_thread_safe to \"yes\""
9036    apr_getservbyname_is_thread_safe="yes"
9037  fi
9038
9039
9040$as_echo "#define HAVE_ZOS_PTHREADS 1" >>confdefs.h
9041
9042
9043  if test "x$CPPFLAGS" = "x"; then
9044    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1\""
9045    CPPFLAGS="-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
9046  else
9047    apr_addto_bugger="-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
9048    for i in $apr_addto_bugger; do
9049      apr_addto_duplicate="0"
9050      for j in $CPPFLAGS; do
9051        if test "x$i" = "x$j"; then
9052          apr_addto_duplicate="1"
9053          break
9054        fi
9055      done
9056      if test $apr_addto_duplicate = "0"; then
9057        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
9058        CPPFLAGS="$CPPFLAGS $i"
9059      fi
9060    done
9061  fi
9062
9063        ;;
9064    *-ibm-as400)
9065
9066  if test -z "$apr_lock_method"; then
9067    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
9068    apr_lock_method="USE_SYSVSEM_SERIALIZE"
9069  fi
9070
9071
9072  if test -z "$apr_process_lock_is_global"; then
9073    test "x$silent" != "xyes" && echo "  setting apr_process_lock_is_global to \"yes\""
9074    apr_process_lock_is_global="yes"
9075  fi
9076
9077
9078  if test -z "$apr_gethostbyname_is_thread_safe"; then
9079    test "x$silent" != "xyes" && echo "  setting apr_gethostbyname_is_thread_safe to \"yes\""
9080    apr_gethostbyname_is_thread_safe="yes"
9081  fi
9082
9083
9084  if test -z "$apr_gethostbyaddr_is_thread_safe"; then
9085    test "x$silent" != "xyes" && echo "  setting apr_gethostbyaddr_is_thread_safe to \"yes\""
9086    apr_gethostbyaddr_is_thread_safe="yes"
9087  fi
9088
9089
9090  if test -z "$apr_getservbyname_is_thread_safe"; then
9091    test "x$silent" != "xyes" && echo "  setting apr_getservbyname_is_thread_safe to \"yes\""
9092    apr_getservbyname_is_thread_safe="yes"
9093  fi
9094
9095        ;;
9096    *cygwin*)
9097
9098  if test "x$CPPFLAGS" = "x"; then
9099    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DCYGWIN\""
9100    CPPFLAGS="-DCYGWIN"
9101  else
9102    apr_addto_bugger="-DCYGWIN"
9103    for i in $apr_addto_bugger; do
9104      apr_addto_duplicate="0"
9105      for j in $CPPFLAGS; do
9106        if test "x$i" = "x$j"; then
9107          apr_addto_duplicate="1"
9108          break
9109        fi
9110      done
9111      if test $apr_addto_duplicate = "0"; then
9112        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
9113        CPPFLAGS="$CPPFLAGS $i"
9114      fi
9115    done
9116  fi
9117
9118	;;
9119    *mingw*)
9120
9121  if test "x$CPPFLAGS" = "x"; then
9122    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DWIN32 -D__MSVCRT__\""
9123    CPPFLAGS="-DWIN32 -D__MSVCRT__"
9124  else
9125    apr_addto_bugger="-DWIN32 -D__MSVCRT__"
9126    for i in $apr_addto_bugger; do
9127      apr_addto_duplicate="0"
9128      for j in $CPPFLAGS; do
9129        if test "x$i" = "x$j"; then
9130          apr_addto_duplicate="1"
9131          break
9132        fi
9133      done
9134      if test $apr_addto_duplicate = "0"; then
9135        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
9136        CPPFLAGS="$CPPFLAGS $i"
9137      fi
9138    done
9139  fi
9140
9141
9142  if test "x$LDFLAGS" = "x"; then
9143    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Wl,--enable-auto-import,--subsystem,console\""
9144    LDFLAGS="-Wl,--enable-auto-import,--subsystem,console"
9145  else
9146    apr_addto_bugger="-Wl,--enable-auto-import,--subsystem,console"
9147    for i in $apr_addto_bugger; do
9148      apr_addto_duplicate="0"
9149      for j in $LDFLAGS; do
9150        if test "x$i" = "x$j"; then
9151          apr_addto_duplicate="1"
9152          break
9153        fi
9154      done
9155      if test $apr_addto_duplicate = "0"; then
9156        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
9157        LDFLAGS="$LDFLAGS $i"
9158      fi
9159    done
9160  fi
9161
9162
9163  if test -z "$have_unicode_fs"; then
9164    test "x$silent" != "xyes" && echo "  setting have_unicode_fs to \"1\""
9165    have_unicode_fs="1"
9166  fi
9167
9168
9169  if test -z "$have_proc_invoked"; then
9170    test "x$silent" != "xyes" && echo "  setting have_proc_invoked to \"1\""
9171    have_proc_invoked="1"
9172  fi
9173
9174
9175  if test -z "$apr_lock_method"; then
9176    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"win32\""
9177    apr_lock_method="win32"
9178  fi
9179
9180
9181  if test -z "$apr_process_lock_is_global"; then
9182    test "x$silent" != "xyes" && echo "  setting apr_process_lock_is_global to \"yes\""
9183    apr_process_lock_is_global="yes"
9184  fi
9185
9186
9187  if test -z "$apr_cv_use_lfs64"; then
9188    test "x$silent" != "xyes" && echo "  setting apr_cv_use_lfs64 to \"yes\""
9189    apr_cv_use_lfs64="yes"
9190  fi
9191
9192
9193  if test -z "$apr_cv_osuuid"; then
9194    test "x$silent" != "xyes" && echo "  setting apr_cv_osuuid to \"yes\""
9195    apr_cv_osuuid="yes"
9196  fi
9197
9198
9199  if test -z "$apr_cv_tcp_nodelay_with_cork"; then
9200    test "x$silent" != "xyes" && echo "  setting apr_cv_tcp_nodelay_with_cork to \"no\""
9201    apr_cv_tcp_nodelay_with_cork="no"
9202  fi
9203
9204
9205  if test -z "$apr_thread_func"; then
9206    test "x$silent" != "xyes" && echo "  setting apr_thread_func to \"__stdcall\""
9207    apr_thread_func="__stdcall"
9208  fi
9209
9210
9211  if test -z "$ac_cv_o_nonblock_inherited"; then
9212    test "x$silent" != "xyes" && echo "  setting ac_cv_o_nonblock_inherited to \"yes\""
9213    ac_cv_o_nonblock_inherited="yes"
9214  fi
9215
9216
9217  if test -z "$ac_cv_tcp_nodelay_inherited"; then
9218    test "x$silent" != "xyes" && echo "  setting ac_cv_tcp_nodelay_inherited to \"yes\""
9219    ac_cv_tcp_nodelay_inherited="yes"
9220  fi
9221
9222
9223  if test -z "$ac_cv_file__dev_zero"; then
9224    test "x$silent" != "xyes" && echo "  setting ac_cv_file__dev_zero to \"no\""
9225    ac_cv_file__dev_zero="no"
9226  fi
9227
9228
9229  if test -z "$ac_cv_func_setpgrp_void"; then
9230    test "x$silent" != "xyes" && echo "  setting ac_cv_func_setpgrp_void to \"no\""
9231    ac_cv_func_setpgrp_void="no"
9232  fi
9233
9234
9235  if test -z "$ac_cv_func_mmap"; then
9236    test "x$silent" != "xyes" && echo "  setting ac_cv_func_mmap to \"yes\""
9237    ac_cv_func_mmap="yes"
9238  fi
9239
9240
9241  if test -z "$ac_cv_define_sockaddr_in6"; then
9242    test "x$silent" != "xyes" && echo "  setting ac_cv_define_sockaddr_in6 to \"yes\""
9243    ac_cv_define_sockaddr_in6="yes"
9244  fi
9245
9246
9247  if test -z "$ac_cv_working_getaddrinfo"; then
9248    test "x$silent" != "xyes" && echo "  setting ac_cv_working_getaddrinfo to \"yes\""
9249    ac_cv_working_getaddrinfo="yes"
9250  fi
9251
9252
9253  if test -z "$ac_cv_working_getnameinfo"; then
9254    test "x$silent" != "xyes" && echo "  setting ac_cv_working_getnameinfo to \"yes\""
9255    ac_cv_working_getnameinfo="yes"
9256  fi
9257
9258
9259  if test -z "$ac_cv_func_gai_strerror"; then
9260    test "x$silent" != "xyes" && echo "  setting ac_cv_func_gai_strerror to \"yes\""
9261    ac_cv_func_gai_strerror="yes"
9262  fi
9263
9264        case $host in
9265            *mingw32*)
9266
9267  if test -z "$apr_has_xthread_files"; then
9268    test "x$silent" != "xyes" && echo "  setting apr_has_xthread_files to \"1\""
9269    apr_has_xthread_files="1"
9270  fi
9271
9272
9273  if test -z "$apr_has_user"; then
9274    test "x$silent" != "xyes" && echo "  setting apr_has_user to \"1\""
9275    apr_has_user="1"
9276  fi
9277
9278
9279  if test -z "$apr_procattr_user_set_requires_password"; then
9280    test "x$silent" != "xyes" && echo "  setting apr_procattr_user_set_requires_password to \"1\""
9281    apr_procattr_user_set_requires_password="1"
9282  fi
9283
9284
9285  if test -z "$ac_cv_func_sendfile"; then
9286    test "x$silent" != "xyes" && echo "  setting ac_cv_func_sendfile to \"yes\""
9287    ac_cv_func_sendfile="yes"
9288  fi
9289
9290                ;;
9291            *mingwce)
9292
9293  if test -z "$apr_has_xthread_files"; then
9294    test "x$silent" != "xyes" && echo "  setting apr_has_xthread_files to \"0\""
9295    apr_has_xthread_files="0"
9296  fi
9297
9298
9299  if test -z "$apr_has_user"; then
9300    test "x$silent" != "xyes" && echo "  setting apr_has_user to \"0\""
9301    apr_has_user="0"
9302  fi
9303
9304
9305  if test -z "$apr_procattr_user_set_requires_password"; then
9306    test "x$silent" != "xyes" && echo "  setting apr_procattr_user_set_requires_password to \"0\""
9307    apr_procattr_user_set_requires_password="0"
9308  fi
9309
9310
9311  if test -z "$ac_cv_func_sendfile"; then
9312    test "x$silent" != "xyes" && echo "  setting ac_cv_func_sendfile to \"no\""
9313    ac_cv_func_sendfile="no"
9314  fi
9315
9316                ;;
9317        esac
9318        ;;
9319  esac
9320
9321fi
9322
9323
9324DEFAULT_OSDIR="unix"
9325echo "(Default will be ${DEFAULT_OSDIR})"
9326
9327apr_modules="file_io network_io threadproc misc locks time mmap shmem user memory atomic poll support random"
9328
9329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9330$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9331set x ${MAKE-make}
9332ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9333if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9334  $as_echo_n "(cached) " >&6
9335else
9336  cat >conftest.make <<\_ACEOF
9337SHELL = /bin/sh
9338all:
9339	@echo '@@@%%%=$(MAKE)=@@@%%%'
9340_ACEOF
9341# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9342case `${MAKE-make} -f conftest.make 2>/dev/null` in
9343  *@@@%%%=?*=@@@%%%*)
9344    eval ac_cv_prog_make_${ac_make}_set=yes;;
9345  *)
9346    eval ac_cv_prog_make_${ac_make}_set=no;;
9347esac
9348rm -f conftest.make
9349fi
9350if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9352$as_echo "yes" >&6; }
9353  SET_MAKE=
9354else
9355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9356$as_echo "no" >&6; }
9357  SET_MAKE="MAKE=${MAKE-make}"
9358fi
9359
9360ac_ext=c
9361ac_cpp='$CPP $CPPFLAGS'
9362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9364ac_compiler_gnu=$ac_cv_c_compiler_gnu
9365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9366$as_echo_n "checking how to run the C preprocessor... " >&6; }
9367# On Suns, sometimes $CPP names a directory.
9368if test -n "$CPP" && test -d "$CPP"; then
9369  CPP=
9370fi
9371if test -z "$CPP"; then
9372  if ${ac_cv_prog_CPP+:} false; then :
9373  $as_echo_n "(cached) " >&6
9374else
9375      # Double quotes because CPP needs to be expanded
9376    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9377    do
9378      ac_preproc_ok=false
9379for ac_c_preproc_warn_flag in '' yes
9380do
9381  # Use a header file that comes with gcc, so configuring glibc
9382  # with a fresh cross-compiler works.
9383  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9384  # <limits.h> exists even on freestanding compilers.
9385  # On the NeXT, cc -E runs the code through the compiler's parser,
9386  # not just through cpp. "Syntax error" is here to catch this case.
9387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388/* end confdefs.h.  */
9389#ifdef __STDC__
9390# include <limits.h>
9391#else
9392# include <assert.h>
9393#endif
9394		     Syntax error
9395_ACEOF
9396if ac_fn_c_try_cpp "$LINENO"; then :
9397
9398else
9399  # Broken: fails on valid input.
9400continue
9401fi
9402rm -f conftest.err conftest.i conftest.$ac_ext
9403
9404  # OK, works on sane cases.  Now check whether nonexistent headers
9405  # can be detected and how.
9406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9407/* end confdefs.h.  */
9408#include <ac_nonexistent.h>
9409_ACEOF
9410if ac_fn_c_try_cpp "$LINENO"; then :
9411  # Broken: success on invalid input.
9412continue
9413else
9414  # Passes both tests.
9415ac_preproc_ok=:
9416break
9417fi
9418rm -f conftest.err conftest.i conftest.$ac_ext
9419
9420done
9421# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9422rm -f conftest.i conftest.err conftest.$ac_ext
9423if $ac_preproc_ok; then :
9424  break
9425fi
9426
9427    done
9428    ac_cv_prog_CPP=$CPP
9429
9430fi
9431  CPP=$ac_cv_prog_CPP
9432else
9433  ac_cv_prog_CPP=$CPP
9434fi
9435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9436$as_echo "$CPP" >&6; }
9437ac_preproc_ok=false
9438for ac_c_preproc_warn_flag in '' yes
9439do
9440  # Use a header file that comes with gcc, so configuring glibc
9441  # with a fresh cross-compiler works.
9442  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9443  # <limits.h> exists even on freestanding compilers.
9444  # On the NeXT, cc -E runs the code through the compiler's parser,
9445  # not just through cpp. "Syntax error" is here to catch this case.
9446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9447/* end confdefs.h.  */
9448#ifdef __STDC__
9449# include <limits.h>
9450#else
9451# include <assert.h>
9452#endif
9453		     Syntax error
9454_ACEOF
9455if ac_fn_c_try_cpp "$LINENO"; then :
9456
9457else
9458  # Broken: fails on valid input.
9459continue
9460fi
9461rm -f conftest.err conftest.i conftest.$ac_ext
9462
9463  # OK, works on sane cases.  Now check whether nonexistent headers
9464  # can be detected and how.
9465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9466/* end confdefs.h.  */
9467#include <ac_nonexistent.h>
9468_ACEOF
9469if ac_fn_c_try_cpp "$LINENO"; then :
9470  # Broken: success on invalid input.
9471continue
9472else
9473  # Passes both tests.
9474ac_preproc_ok=:
9475break
9476fi
9477rm -f conftest.err conftest.i conftest.$ac_ext
9478
9479done
9480# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9481rm -f conftest.i conftest.err conftest.$ac_ext
9482if $ac_preproc_ok; then :
9483
9484else
9485  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9487as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9488See \`config.log' for more details" "$LINENO" 5; }
9489fi
9490
9491ac_ext=c
9492ac_cpp='$CPP $CPPFLAGS'
9493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9495ac_compiler_gnu=$ac_cv_c_compiler_gnu
9496
9497for ac_prog in gawk mawk nawk awk
9498do
9499  # Extract the first word of "$ac_prog", so it can be a program name with args.
9500set dummy $ac_prog; ac_word=$2
9501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9502$as_echo_n "checking for $ac_word... " >&6; }
9503if ${ac_cv_prog_AWK+:} false; then :
9504  $as_echo_n "(cached) " >&6
9505else
9506  if test -n "$AWK"; then
9507  ac_cv_prog_AWK="$AWK" # Let the user override the test.
9508else
9509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9510for as_dir in $PATH
9511do
9512  IFS=$as_save_IFS
9513  test -z "$as_dir" && as_dir=.
9514    for ac_exec_ext in '' $ac_executable_extensions; do
9515  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9516    ac_cv_prog_AWK="$ac_prog"
9517    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9518    break 2
9519  fi
9520done
9521  done
9522IFS=$as_save_IFS
9523
9524fi
9525fi
9526AWK=$ac_cv_prog_AWK
9527if test -n "$AWK"; then
9528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9529$as_echo "$AWK" >&6; }
9530else
9531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9532$as_echo "no" >&6; }
9533fi
9534
9535
9536  test -n "$AWK" && break
9537done
9538
9539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9540$as_echo_n "checking whether ln -s works... " >&6; }
9541LN_S=$as_ln_s
9542if test "$LN_S" = "ln -s"; then
9543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9544$as_echo "yes" >&6; }
9545else
9546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9547$as_echo "no, using $LN_S" >&6; }
9548fi
9549
9550if test -n "$ac_tool_prefix"; then
9551  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9552set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9554$as_echo_n "checking for $ac_word... " >&6; }
9555if ${ac_cv_prog_RANLIB+:} false; then :
9556  $as_echo_n "(cached) " >&6
9557else
9558  if test -n "$RANLIB"; then
9559  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9560else
9561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9562for as_dir in $PATH
9563do
9564  IFS=$as_save_IFS
9565  test -z "$as_dir" && as_dir=.
9566    for ac_exec_ext in '' $ac_executable_extensions; do
9567  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9568    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9570    break 2
9571  fi
9572done
9573  done
9574IFS=$as_save_IFS
9575
9576fi
9577fi
9578RANLIB=$ac_cv_prog_RANLIB
9579if test -n "$RANLIB"; then
9580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9581$as_echo "$RANLIB" >&6; }
9582else
9583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9584$as_echo "no" >&6; }
9585fi
9586
9587
9588fi
9589if test -z "$ac_cv_prog_RANLIB"; then
9590  ac_ct_RANLIB=$RANLIB
9591  # Extract the first word of "ranlib", so it can be a program name with args.
9592set dummy ranlib; ac_word=$2
9593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9594$as_echo_n "checking for $ac_word... " >&6; }
9595if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9596  $as_echo_n "(cached) " >&6
9597else
9598  if test -n "$ac_ct_RANLIB"; then
9599  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9600else
9601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9602for as_dir in $PATH
9603do
9604  IFS=$as_save_IFS
9605  test -z "$as_dir" && as_dir=.
9606    for ac_exec_ext in '' $ac_executable_extensions; do
9607  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9608    ac_cv_prog_ac_ct_RANLIB="ranlib"
9609    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9610    break 2
9611  fi
9612done
9613  done
9614IFS=$as_save_IFS
9615
9616fi
9617fi
9618ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9619if test -n "$ac_ct_RANLIB"; then
9620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9621$as_echo "$ac_ct_RANLIB" >&6; }
9622else
9623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9624$as_echo "no" >&6; }
9625fi
9626
9627  if test "x$ac_ct_RANLIB" = x; then
9628    RANLIB=":"
9629  else
9630    case $cross_compiling:$ac_tool_warned in
9631yes:)
9632{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9633$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9634ac_tool_warned=yes ;;
9635esac
9636    RANLIB=$ac_ct_RANLIB
9637  fi
9638else
9639  RANLIB="$ac_cv_prog_RANLIB"
9640fi
9641
9642# Find a good install program.  We prefer a C program (faster),
9643# so one script is as good as another.  But avoid the broken or
9644# incompatible versions:
9645# SysV /etc/install, /usr/sbin/install
9646# SunOS /usr/etc/install
9647# IRIX /sbin/install
9648# AIX /bin/install
9649# AmigaOS /C/install, which installs bootblocks on floppy discs
9650# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9651# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9652# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9653# OS/2's system install, which has a completely different semantic
9654# ./install, which can be erroneously created by make from ./install.sh.
9655# Reject install programs that cannot install multiple files.
9656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9657$as_echo_n "checking for a BSD-compatible install... " >&6; }
9658if test -z "$INSTALL"; then
9659if ${ac_cv_path_install+:} false; then :
9660  $as_echo_n "(cached) " >&6
9661else
9662  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663for as_dir in $PATH
9664do
9665  IFS=$as_save_IFS
9666  test -z "$as_dir" && as_dir=.
9667    # Account for people who put trailing slashes in PATH elements.
9668case $as_dir/ in #((
9669  ./ | .// | /[cC]/* | \
9670  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9671  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9672  /usr/ucb/* ) ;;
9673  *)
9674    # OSF1 and SCO ODT 3.0 have their own names for install.
9675    # Don't use installbsd from OSF since it installs stuff as root
9676    # by default.
9677    for ac_prog in ginstall scoinst install; do
9678      for ac_exec_ext in '' $ac_executable_extensions; do
9679	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9680	  if test $ac_prog = install &&
9681	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9682	    # AIX install.  It has an incompatible calling convention.
9683	    :
9684	  elif test $ac_prog = install &&
9685	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9686	    # program-specific install script used by HP pwplus--don't use.
9687	    :
9688	  else
9689	    rm -rf conftest.one conftest.two conftest.dir
9690	    echo one > conftest.one
9691	    echo two > conftest.two
9692	    mkdir conftest.dir
9693	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9694	      test -s conftest.one && test -s conftest.two &&
9695	      test -s conftest.dir/conftest.one &&
9696	      test -s conftest.dir/conftest.two
9697	    then
9698	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9699	      break 3
9700	    fi
9701	  fi
9702	fi
9703      done
9704    done
9705    ;;
9706esac
9707
9708  done
9709IFS=$as_save_IFS
9710
9711rm -rf conftest.one conftest.two conftest.dir
9712
9713fi
9714  if test "${ac_cv_path_install+set}" = set; then
9715    INSTALL=$ac_cv_path_install
9716  else
9717    # As a last resort, use the slow shell script.  Don't cache a
9718    # value for INSTALL within a source directory, because that will
9719    # break other packages using the cache if that directory is
9720    # removed, or if the value is a relative name.
9721    INSTALL=$ac_install_sh
9722  fi
9723fi
9724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9725$as_echo "$INSTALL" >&6; }
9726
9727# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9728# It thinks the first close brace ends the variable substitution.
9729test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9730
9731test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9732
9733test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9734
9735# Extract the first word of "rm", so it can be a program name with args.
9736set dummy rm; ac_word=$2
9737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9738$as_echo_n "checking for $ac_word... " >&6; }
9739if ${ac_cv_prog_RM+:} false; then :
9740  $as_echo_n "(cached) " >&6
9741else
9742  if test -n "$RM"; then
9743  ac_cv_prog_RM="$RM" # Let the user override the test.
9744else
9745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9746for as_dir in $PATH
9747do
9748  IFS=$as_save_IFS
9749  test -z "$as_dir" && as_dir=.
9750    for ac_exec_ext in '' $ac_executable_extensions; do
9751  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9752    ac_cv_prog_RM="rm"
9753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9754    break 2
9755  fi
9756done
9757  done
9758IFS=$as_save_IFS
9759
9760fi
9761fi
9762RM=$ac_cv_prog_RM
9763if test -n "$RM"; then
9764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9765$as_echo "$RM" >&6; }
9766else
9767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768$as_echo "no" >&6; }
9769fi
9770
9771
9772# Extract the first word of "as", so it can be a program name with args.
9773set dummy as; ac_word=$2
9774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9775$as_echo_n "checking for $ac_word... " >&6; }
9776if ${ac_cv_prog_AS+:} false; then :
9777  $as_echo_n "(cached) " >&6
9778else
9779  if test -n "$AS"; then
9780  ac_cv_prog_AS="$AS" # Let the user override the test.
9781else
9782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9783for as_dir in $PATH
9784do
9785  IFS=$as_save_IFS
9786  test -z "$as_dir" && as_dir=.
9787    for ac_exec_ext in '' $ac_executable_extensions; do
9788  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9789    ac_cv_prog_AS="as"
9790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9791    break 2
9792  fi
9793done
9794  done
9795IFS=$as_save_IFS
9796
9797fi
9798fi
9799AS=$ac_cv_prog_AS
9800if test -n "$AS"; then
9801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9802$as_echo "$AS" >&6; }
9803else
9804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9805$as_echo "no" >&6; }
9806fi
9807
9808
9809# Extract the first word of "cpp", so it can be a program name with args.
9810set dummy cpp; ac_word=$2
9811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9812$as_echo_n "checking for $ac_word... " >&6; }
9813if ${ac_cv_prog_ASCPP+:} false; then :
9814  $as_echo_n "(cached) " >&6
9815else
9816  if test -n "$ASCPP"; then
9817  ac_cv_prog_ASCPP="$ASCPP" # Let the user override the test.
9818else
9819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9820for as_dir in $PATH
9821do
9822  IFS=$as_save_IFS
9823  test -z "$as_dir" && as_dir=.
9824    for ac_exec_ext in '' $ac_executable_extensions; do
9825  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9826    ac_cv_prog_ASCPP="cpp"
9827    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9828    break 2
9829  fi
9830done
9831  done
9832IFS=$as_save_IFS
9833
9834fi
9835fi
9836ASCPP=$ac_cv_prog_ASCPP
9837if test -n "$ASCPP"; then
9838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCPP" >&5
9839$as_echo "$ASCPP" >&6; }
9840else
9841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9842$as_echo "no" >&6; }
9843fi
9844
9845
9846if test -n "$ac_tool_prefix"; then
9847  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9848set dummy ${ac_tool_prefix}ar; ac_word=$2
9849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9850$as_echo_n "checking for $ac_word... " >&6; }
9851if ${ac_cv_prog_AR+:} false; then :
9852  $as_echo_n "(cached) " >&6
9853else
9854  if test -n "$AR"; then
9855  ac_cv_prog_AR="$AR" # Let the user override the test.
9856else
9857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9858for as_dir in $PATH
9859do
9860  IFS=$as_save_IFS
9861  test -z "$as_dir" && as_dir=.
9862    for ac_exec_ext in '' $ac_executable_extensions; do
9863  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9864    ac_cv_prog_AR="${ac_tool_prefix}ar"
9865    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9866    break 2
9867  fi
9868done
9869  done
9870IFS=$as_save_IFS
9871
9872fi
9873fi
9874AR=$ac_cv_prog_AR
9875if test -n "$AR"; then
9876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9877$as_echo "$AR" >&6; }
9878else
9879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9880$as_echo "no" >&6; }
9881fi
9882
9883
9884fi
9885if test -z "$ac_cv_prog_AR"; then
9886  ac_ct_AR=$AR
9887  # Extract the first word of "ar", so it can be a program name with args.
9888set dummy ar; ac_word=$2
9889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9890$as_echo_n "checking for $ac_word... " >&6; }
9891if ${ac_cv_prog_ac_ct_AR+:} false; then :
9892  $as_echo_n "(cached) " >&6
9893else
9894  if test -n "$ac_ct_AR"; then
9895  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9896else
9897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9898for as_dir in $PATH
9899do
9900  IFS=$as_save_IFS
9901  test -z "$as_dir" && as_dir=.
9902    for ac_exec_ext in '' $ac_executable_extensions; do
9903  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9904    ac_cv_prog_ac_ct_AR="ar"
9905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9906    break 2
9907  fi
9908done
9909  done
9910IFS=$as_save_IFS
9911
9912fi
9913fi
9914ac_ct_AR=$ac_cv_prog_ac_ct_AR
9915if test -n "$ac_ct_AR"; then
9916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9917$as_echo "$ac_ct_AR" >&6; }
9918else
9919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9920$as_echo "no" >&6; }
9921fi
9922
9923  if test "x$ac_ct_AR" = x; then
9924    AR="ar"
9925  else
9926    case $cross_compiling:$ac_tool_warned in
9927yes:)
9928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9930ac_tool_warned=yes ;;
9931esac
9932    AR=$ac_ct_AR
9933  fi
9934else
9935  AR="$ac_cv_prog_AR"
9936fi
9937
9938
9939
9940
9941
9942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
9943$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
9944if ${ac_cv_path_GREP+:} false; then :
9945  $as_echo_n "(cached) " >&6
9946else
9947  if test -z "$GREP"; then
9948  ac_path_GREP_found=false
9949  # Loop through the user's path and test for each of PROGNAME-LIST
9950  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9952do
9953  IFS=$as_save_IFS
9954  test -z "$as_dir" && as_dir=.
9955    for ac_prog in grep ggrep; do
9956    for ac_exec_ext in '' $ac_executable_extensions; do
9957      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
9958      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
9959# Check for GNU ac_path_GREP and select it if it is found.
9960  # Check for GNU $ac_path_GREP
9961case `"$ac_path_GREP" --version 2>&1` in
9962*GNU*)
9963  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
9964*)
9965  ac_count=0
9966  $as_echo_n 0123456789 >"conftest.in"
9967  while :
9968  do
9969    cat "conftest.in" "conftest.in" >"conftest.tmp"
9970    mv "conftest.tmp" "conftest.in"
9971    cp "conftest.in" "conftest.nl"
9972    $as_echo 'GREP' >> "conftest.nl"
9973    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9974    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9975    as_fn_arith $ac_count + 1 && ac_count=$as_val
9976    if test $ac_count -gt ${ac_path_GREP_max-0}; then
9977      # Best one so far, save it but keep looking for a better one
9978      ac_cv_path_GREP="$ac_path_GREP"
9979      ac_path_GREP_max=$ac_count
9980    fi
9981    # 10*(2^10) chars as input seems more than enough
9982    test $ac_count -gt 10 && break
9983  done
9984  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9985esac
9986
9987      $ac_path_GREP_found && break 3
9988    done
9989  done
9990  done
9991IFS=$as_save_IFS
9992  if test -z "$ac_cv_path_GREP"; then
9993    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9994  fi
9995else
9996  ac_cv_path_GREP=$GREP
9997fi
9998
9999fi
10000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
10001$as_echo "$ac_cv_path_GREP" >&6; }
10002 GREP="$ac_cv_path_GREP"
10003
10004
10005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
10006$as_echo_n "checking for egrep... " >&6; }
10007if ${ac_cv_path_EGREP+:} false; then :
10008  $as_echo_n "(cached) " >&6
10009else
10010  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10011   then ac_cv_path_EGREP="$GREP -E"
10012   else
10013     if test -z "$EGREP"; then
10014  ac_path_EGREP_found=false
10015  # Loop through the user's path and test for each of PROGNAME-LIST
10016  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10017for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10018do
10019  IFS=$as_save_IFS
10020  test -z "$as_dir" && as_dir=.
10021    for ac_prog in egrep; do
10022    for ac_exec_ext in '' $ac_executable_extensions; do
10023      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10024      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
10025# Check for GNU ac_path_EGREP and select it if it is found.
10026  # Check for GNU $ac_path_EGREP
10027case `"$ac_path_EGREP" --version 2>&1` in
10028*GNU*)
10029  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10030*)
10031  ac_count=0
10032  $as_echo_n 0123456789 >"conftest.in"
10033  while :
10034  do
10035    cat "conftest.in" "conftest.in" >"conftest.tmp"
10036    mv "conftest.tmp" "conftest.in"
10037    cp "conftest.in" "conftest.nl"
10038    $as_echo 'EGREP' >> "conftest.nl"
10039    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10040    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10041    as_fn_arith $ac_count + 1 && ac_count=$as_val
10042    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10043      # Best one so far, save it but keep looking for a better one
10044      ac_cv_path_EGREP="$ac_path_EGREP"
10045      ac_path_EGREP_max=$ac_count
10046    fi
10047    # 10*(2^10) chars as input seems more than enough
10048    test $ac_count -gt 10 && break
10049  done
10050  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10051esac
10052
10053      $ac_path_EGREP_found && break 3
10054    done
10055  done
10056  done
10057IFS=$as_save_IFS
10058  if test -z "$ac_cv_path_EGREP"; then
10059    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10060  fi
10061else
10062  ac_cv_path_EGREP=$EGREP
10063fi
10064
10065   fi
10066fi
10067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
10068$as_echo "$ac_cv_path_EGREP" >&6; }
10069 EGREP="$ac_cv_path_EGREP"
10070
10071
10072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10073$as_echo_n "checking for ANSI C header files... " >&6; }
10074if ${ac_cv_header_stdc+:} false; then :
10075  $as_echo_n "(cached) " >&6
10076else
10077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10078/* end confdefs.h.  */
10079#include <stdlib.h>
10080#include <stdarg.h>
10081#include <string.h>
10082#include <float.h>
10083
10084int
10085main ()
10086{
10087
10088  ;
10089  return 0;
10090}
10091_ACEOF
10092if ac_fn_c_try_compile "$LINENO"; then :
10093  ac_cv_header_stdc=yes
10094else
10095  ac_cv_header_stdc=no
10096fi
10097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10098
10099if test $ac_cv_header_stdc = yes; then
10100  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10102/* end confdefs.h.  */
10103#include <string.h>
10104
10105_ACEOF
10106if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10107  $EGREP "memchr" >/dev/null 2>&1; then :
10108
10109else
10110  ac_cv_header_stdc=no
10111fi
10112rm -f conftest*
10113
10114fi
10115
10116if test $ac_cv_header_stdc = yes; then
10117  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119/* end confdefs.h.  */
10120#include <stdlib.h>
10121
10122_ACEOF
10123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10124  $EGREP "free" >/dev/null 2>&1; then :
10125
10126else
10127  ac_cv_header_stdc=no
10128fi
10129rm -f conftest*
10130
10131fi
10132
10133if test $ac_cv_header_stdc = yes; then
10134  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10135  if test "$cross_compiling" = yes; then :
10136  :
10137else
10138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10139/* end confdefs.h.  */
10140#include <ctype.h>
10141#include <stdlib.h>
10142#if ((' ' & 0x0FF) == 0x020)
10143# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10144# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10145#else
10146# define ISLOWER(c) \
10147		   (('a' <= (c) && (c) <= 'i') \
10148		     || ('j' <= (c) && (c) <= 'r') \
10149		     || ('s' <= (c) && (c) <= 'z'))
10150# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10151#endif
10152
10153#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10154int
10155main ()
10156{
10157  int i;
10158  for (i = 0; i < 256; i++)
10159    if (XOR (islower (i), ISLOWER (i))
10160	|| toupper (i) != TOUPPER (i))
10161      return 2;
10162  return 0;
10163}
10164_ACEOF
10165if ac_fn_c_try_run "$LINENO"; then :
10166
10167else
10168  ac_cv_header_stdc=no
10169fi
10170rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10171  conftest.$ac_objext conftest.beam conftest.$ac_ext
10172fi
10173
10174fi
10175fi
10176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10177$as_echo "$ac_cv_header_stdc" >&6; }
10178if test $ac_cv_header_stdc = yes; then
10179
10180$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10181
10182fi
10183
10184# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10185for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10186		  inttypes.h stdint.h unistd.h
10187do :
10188  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10189ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10190"
10191if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10192  cat >>confdefs.h <<_ACEOF
10193#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10194_ACEOF
10195
10196fi
10197
10198done
10199
10200
10201
10202  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
10203if test "x$ac_cv_header_minix_config_h" = xyes; then :
10204  MINIX=yes
10205else
10206  MINIX=
10207fi
10208
10209
10210  if test "$MINIX" = yes; then
10211
10212$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
10213
10214
10215$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
10216
10217
10218$as_echo "#define _MINIX 1" >>confdefs.h
10219
10220  fi
10221
10222
10223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
10224$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
10225if ${ac_cv_safe_to_define___extensions__+:} false; then :
10226  $as_echo_n "(cached) " >&6
10227else
10228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10229/* end confdefs.h.  */
10230
10231#	  define __EXTENSIONS__ 1
10232	  $ac_includes_default
10233int
10234main ()
10235{
10236
10237  ;
10238  return 0;
10239}
10240_ACEOF
10241if ac_fn_c_try_compile "$LINENO"; then :
10242  ac_cv_safe_to_define___extensions__=yes
10243else
10244  ac_cv_safe_to_define___extensions__=no
10245fi
10246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10247fi
10248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
10249$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
10250  test $ac_cv_safe_to_define___extensions__ = yes &&
10251    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
10252
10253  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
10254
10255  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
10256
10257  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
10258
10259  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
10260
10261
10262
10263
10264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
10265$as_echo_n "checking for library containing strerror... " >&6; }
10266if ${ac_cv_search_strerror+:} false; then :
10267  $as_echo_n "(cached) " >&6
10268else
10269  ac_func_search_save_LIBS=$LIBS
10270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10271/* end confdefs.h.  */
10272
10273/* Override any GCC internal prototype to avoid an error.
10274   Use char because int might match the return type of a GCC
10275   builtin and then its argument prototype would still apply.  */
10276#ifdef __cplusplus
10277extern "C"
10278#endif
10279char strerror ();
10280int
10281main ()
10282{
10283return strerror ();
10284  ;
10285  return 0;
10286}
10287_ACEOF
10288for ac_lib in '' cposix; do
10289  if test -z "$ac_lib"; then
10290    ac_res="none required"
10291  else
10292    ac_res=-l$ac_lib
10293    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10294  fi
10295  if ac_fn_c_try_link "$LINENO"; then :
10296  ac_cv_search_strerror=$ac_res
10297fi
10298rm -f core conftest.err conftest.$ac_objext \
10299    conftest$ac_exeext
10300  if ${ac_cv_search_strerror+:} false; then :
10301  break
10302fi
10303done
10304if ${ac_cv_search_strerror+:} false; then :
10305
10306else
10307  ac_cv_search_strerror=no
10308fi
10309rm conftest.$ac_ext
10310LIBS=$ac_func_search_save_LIBS
10311fi
10312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
10313$as_echo "$ac_cv_search_strerror" >&6; }
10314ac_res=$ac_cv_search_strerror
10315if test "$ac_res" != no; then :
10316  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10317
10318fi
10319
10320
10321  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses EBCDIC" >&5
10322$as_echo_n "checking whether system uses EBCDIC... " >&6; }
10323if ${ac_cv_ebcdic+:} false; then :
10324  $as_echo_n "(cached) " >&6
10325else
10326
10327  if test "$cross_compiling" = yes; then :
10328
10329  ac_cv_ebcdic="no"
10330
10331else
10332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10333/* end confdefs.h.  */
10334
10335int main(void) {
10336  return (unsigned char)'A' != (unsigned char)0xC1;
10337}
10338
10339_ACEOF
10340if ac_fn_c_try_run "$LINENO"; then :
10341
10342  ac_cv_ebcdic="yes"
10343
10344else
10345
10346  ac_cv_ebcdic="no"
10347
10348fi
10349rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10350  conftest.$ac_objext conftest.beam conftest.$ac_ext
10351fi
10352
10353fi
10354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ebcdic" >&5
10355$as_echo "$ac_cv_ebcdic" >&6; }
10356  if test "$ac_cv_ebcdic" = "yes"; then
10357    apr_charset_ebcdic=1
10358  else
10359    apr_charset_ebcdic=0
10360  fi
10361
10362
10363
10364APR_LIBNAME="apr${libsuffix}"
10365
10366
10367echo "performing libtool configuration..."
10368
10369# Check whether --enable-experimental-libtool was given.
10370if test "${enable_experimental_libtool+set}" = set; then :
10371  enableval=$enable_experimental_libtool; experimental_libtool=$enableval
10372else
10373  experimental_libtool=no
10374fi
10375
10376
10377if test "x$Xsed" = "x"; then
10378  Xsed="$SED -e 1s/^X//"
10379fi
10380
10381case $host in
10382*-os2*)
10383    # Use a custom-made libtool replacement
10384    echo "using aplibtool"
10385    LIBTOOL="$srcdir/build/aplibtool"
10386    gcc $CFLAGS $CPPFLAGS -o $LIBTOOL.exe $LIBTOOL.c
10387    ;;
10388*)
10389    if test "x$LTFLAGS" = "x"; then
10390        LTFLAGS='--silent'
10391    fi
10392    if test "$experimental_libtool" = "yes"; then
10393        # Use a custom-made libtool replacement
10394        echo "using jlibtool"
10395        LIBTOOL="$apr_builddir/libtool"
10396        LIBTOOL_SRC="$apr_srcdir/build/jlibtool.c"
10397        $CC $CFLAGS $CPPFLAGS -o $LIBTOOL $LIBTOOL_SRC
10398        eval `$apr_builddir/libtool --config | grep "^shlibpath_var=[A-Z_]*$"`
10399        if test "x$shlibpath_var" = "x"; then
10400            shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
10401        fi
10402    else
10403        enable_win32_dll=yes
10404
10405case $host in
10406*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10407  if test -n "$ac_tool_prefix"; then
10408  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10409set dummy ${ac_tool_prefix}as; ac_word=$2
10410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10411$as_echo_n "checking for $ac_word... " >&6; }
10412if ${ac_cv_prog_AS+:} false; then :
10413  $as_echo_n "(cached) " >&6
10414else
10415  if test -n "$AS"; then
10416  ac_cv_prog_AS="$AS" # Let the user override the test.
10417else
10418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10419for as_dir in $PATH
10420do
10421  IFS=$as_save_IFS
10422  test -z "$as_dir" && as_dir=.
10423    for ac_exec_ext in '' $ac_executable_extensions; do
10424  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10425    ac_cv_prog_AS="${ac_tool_prefix}as"
10426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10427    break 2
10428  fi
10429done
10430  done
10431IFS=$as_save_IFS
10432
10433fi
10434fi
10435AS=$ac_cv_prog_AS
10436if test -n "$AS"; then
10437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10438$as_echo "$AS" >&6; }
10439else
10440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10441$as_echo "no" >&6; }
10442fi
10443
10444
10445fi
10446if test -z "$ac_cv_prog_AS"; then
10447  ac_ct_AS=$AS
10448  # Extract the first word of "as", so it can be a program name with args.
10449set dummy as; ac_word=$2
10450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10451$as_echo_n "checking for $ac_word... " >&6; }
10452if ${ac_cv_prog_ac_ct_AS+:} false; then :
10453  $as_echo_n "(cached) " >&6
10454else
10455  if test -n "$ac_ct_AS"; then
10456  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10457else
10458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10459for as_dir in $PATH
10460do
10461  IFS=$as_save_IFS
10462  test -z "$as_dir" && as_dir=.
10463    for ac_exec_ext in '' $ac_executable_extensions; do
10464  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10465    ac_cv_prog_ac_ct_AS="as"
10466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10467    break 2
10468  fi
10469done
10470  done
10471IFS=$as_save_IFS
10472
10473fi
10474fi
10475ac_ct_AS=$ac_cv_prog_ac_ct_AS
10476if test -n "$ac_ct_AS"; then
10477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10478$as_echo "$ac_ct_AS" >&6; }
10479else
10480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10481$as_echo "no" >&6; }
10482fi
10483
10484  if test "x$ac_ct_AS" = x; then
10485    AS="false"
10486  else
10487    case $cross_compiling:$ac_tool_warned in
10488yes:)
10489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10491ac_tool_warned=yes ;;
10492esac
10493    AS=$ac_ct_AS
10494  fi
10495else
10496  AS="$ac_cv_prog_AS"
10497fi
10498
10499  if test -n "$ac_tool_prefix"; then
10500  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10501set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10503$as_echo_n "checking for $ac_word... " >&6; }
10504if ${ac_cv_prog_DLLTOOL+:} false; then :
10505  $as_echo_n "(cached) " >&6
10506else
10507  if test -n "$DLLTOOL"; then
10508  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10509else
10510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10511for as_dir in $PATH
10512do
10513  IFS=$as_save_IFS
10514  test -z "$as_dir" && as_dir=.
10515    for ac_exec_ext in '' $ac_executable_extensions; do
10516  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10517    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10518    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10519    break 2
10520  fi
10521done
10522  done
10523IFS=$as_save_IFS
10524
10525fi
10526fi
10527DLLTOOL=$ac_cv_prog_DLLTOOL
10528if test -n "$DLLTOOL"; then
10529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10530$as_echo "$DLLTOOL" >&6; }
10531else
10532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10533$as_echo "no" >&6; }
10534fi
10535
10536
10537fi
10538if test -z "$ac_cv_prog_DLLTOOL"; then
10539  ac_ct_DLLTOOL=$DLLTOOL
10540  # Extract the first word of "dlltool", so it can be a program name with args.
10541set dummy dlltool; ac_word=$2
10542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10543$as_echo_n "checking for $ac_word... " >&6; }
10544if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10545  $as_echo_n "(cached) " >&6
10546else
10547  if test -n "$ac_ct_DLLTOOL"; then
10548  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10549else
10550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10551for as_dir in $PATH
10552do
10553  IFS=$as_save_IFS
10554  test -z "$as_dir" && as_dir=.
10555    for ac_exec_ext in '' $ac_executable_extensions; do
10556  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10557    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10558    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10559    break 2
10560  fi
10561done
10562  done
10563IFS=$as_save_IFS
10564
10565fi
10566fi
10567ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10568if test -n "$ac_ct_DLLTOOL"; then
10569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10570$as_echo "$ac_ct_DLLTOOL" >&6; }
10571else
10572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10573$as_echo "no" >&6; }
10574fi
10575
10576  if test "x$ac_ct_DLLTOOL" = x; then
10577    DLLTOOL="false"
10578  else
10579    case $cross_compiling:$ac_tool_warned in
10580yes:)
10581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10583ac_tool_warned=yes ;;
10584esac
10585    DLLTOOL=$ac_ct_DLLTOOL
10586  fi
10587else
10588  DLLTOOL="$ac_cv_prog_DLLTOOL"
10589fi
10590
10591  if test -n "$ac_tool_prefix"; then
10592  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10593set dummy ${ac_tool_prefix}objdump; ac_word=$2
10594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10595$as_echo_n "checking for $ac_word... " >&6; }
10596if ${ac_cv_prog_OBJDUMP+:} false; then :
10597  $as_echo_n "(cached) " >&6
10598else
10599  if test -n "$OBJDUMP"; then
10600  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10601else
10602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10603for as_dir in $PATH
10604do
10605  IFS=$as_save_IFS
10606  test -z "$as_dir" && as_dir=.
10607    for ac_exec_ext in '' $ac_executable_extensions; do
10608  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10609    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10610    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10611    break 2
10612  fi
10613done
10614  done
10615IFS=$as_save_IFS
10616
10617fi
10618fi
10619OBJDUMP=$ac_cv_prog_OBJDUMP
10620if test -n "$OBJDUMP"; then
10621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10622$as_echo "$OBJDUMP" >&6; }
10623else
10624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10625$as_echo "no" >&6; }
10626fi
10627
10628
10629fi
10630if test -z "$ac_cv_prog_OBJDUMP"; then
10631  ac_ct_OBJDUMP=$OBJDUMP
10632  # Extract the first word of "objdump", so it can be a program name with args.
10633set dummy objdump; ac_word=$2
10634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10635$as_echo_n "checking for $ac_word... " >&6; }
10636if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10637  $as_echo_n "(cached) " >&6
10638else
10639  if test -n "$ac_ct_OBJDUMP"; then
10640  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10641else
10642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10643for as_dir in $PATH
10644do
10645  IFS=$as_save_IFS
10646  test -z "$as_dir" && as_dir=.
10647    for ac_exec_ext in '' $ac_executable_extensions; do
10648  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10649    ac_cv_prog_ac_ct_OBJDUMP="objdump"
10650    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10651    break 2
10652  fi
10653done
10654  done
10655IFS=$as_save_IFS
10656
10657fi
10658fi
10659ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10660if test -n "$ac_ct_OBJDUMP"; then
10661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10662$as_echo "$ac_ct_OBJDUMP" >&6; }
10663else
10664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10665$as_echo "no" >&6; }
10666fi
10667
10668  if test "x$ac_ct_OBJDUMP" = x; then
10669    OBJDUMP="false"
10670  else
10671    case $cross_compiling:$ac_tool_warned in
10672yes:)
10673{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10675ac_tool_warned=yes ;;
10676esac
10677    OBJDUMP=$ac_ct_OBJDUMP
10678  fi
10679else
10680  OBJDUMP="$ac_cv_prog_OBJDUMP"
10681fi
10682
10683  ;;
10684esac
10685
10686test -z "$AS" && AS=as
10687
10688
10689
10690
10691
10692test -z "$DLLTOOL" && DLLTOOL=dlltool
10693
10694
10695
10696
10697
10698test -z "$OBJDUMP" && OBJDUMP=objdump
10699
10700
10701
10702
10703
10704
10705
10706case `pwd` in
10707  *\ * | *\	*)
10708    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10709$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10710esac
10711
10712
10713
10714macro_version='2.4.2'
10715macro_revision='1.3337'
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729ltmain="$ac_aux_dir/ltmain.sh"
10730
10731# Backslashify metacharacters that are still active within
10732# double-quoted strings.
10733sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10734
10735# Same as above, but do not quote variable references.
10736double_quote_subst='s/\(["`\\]\)/\\\1/g'
10737
10738# Sed substitution to delay expansion of an escaped shell variable in a
10739# double_quote_subst'ed string.
10740delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10741
10742# Sed substitution to delay expansion of an escaped single quote.
10743delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10744
10745# Sed substitution to avoid accidental globbing in evaled expressions
10746no_glob_subst='s/\*/\\\*/g'
10747
10748ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10749ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10750ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10751
10752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10753$as_echo_n "checking how to print strings... " >&6; }
10754# Test print first, because it will be a builtin if present.
10755if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10756   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10757  ECHO='print -r --'
10758elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10759  ECHO='printf %s\n'
10760else
10761  # Use this function as a fallback that always works.
10762  func_fallback_echo ()
10763  {
10764    eval 'cat <<_LTECHO_EOF
10765$1
10766_LTECHO_EOF'
10767  }
10768  ECHO='func_fallback_echo'
10769fi
10770
10771# func_echo_all arg...
10772# Invoke $ECHO with all args, space-separated.
10773func_echo_all ()
10774{
10775    $ECHO ""
10776}
10777
10778case "$ECHO" in
10779  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10780$as_echo "printf" >&6; } ;;
10781  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10782$as_echo "print -r" >&6; } ;;
10783  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10784$as_echo "cat" >&6; } ;;
10785esac
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10801$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10802if ${ac_cv_path_SED+:} false; then :
10803  $as_echo_n "(cached) " >&6
10804else
10805            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10806     for ac_i in 1 2 3 4 5 6 7; do
10807       ac_script="$ac_script$as_nl$ac_script"
10808     done
10809     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10810     { ac_script=; unset ac_script;}
10811     if test -z "$SED"; then
10812  ac_path_SED_found=false
10813  # Loop through the user's path and test for each of PROGNAME-LIST
10814  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10815for as_dir in $PATH
10816do
10817  IFS=$as_save_IFS
10818  test -z "$as_dir" && as_dir=.
10819    for ac_prog in sed gsed; do
10820    for ac_exec_ext in '' $ac_executable_extensions; do
10821      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10822      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10823# Check for GNU ac_path_SED and select it if it is found.
10824  # Check for GNU $ac_path_SED
10825case `"$ac_path_SED" --version 2>&1` in
10826*GNU*)
10827  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10828*)
10829  ac_count=0
10830  $as_echo_n 0123456789 >"conftest.in"
10831  while :
10832  do
10833    cat "conftest.in" "conftest.in" >"conftest.tmp"
10834    mv "conftest.tmp" "conftest.in"
10835    cp "conftest.in" "conftest.nl"
10836    $as_echo '' >> "conftest.nl"
10837    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10838    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10839    as_fn_arith $ac_count + 1 && ac_count=$as_val
10840    if test $ac_count -gt ${ac_path_SED_max-0}; then
10841      # Best one so far, save it but keep looking for a better one
10842      ac_cv_path_SED="$ac_path_SED"
10843      ac_path_SED_max=$ac_count
10844    fi
10845    # 10*(2^10) chars as input seems more than enough
10846    test $ac_count -gt 10 && break
10847  done
10848  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10849esac
10850
10851      $ac_path_SED_found && break 3
10852    done
10853  done
10854  done
10855IFS=$as_save_IFS
10856  if test -z "$ac_cv_path_SED"; then
10857    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10858  fi
10859else
10860  ac_cv_path_SED=$SED
10861fi
10862
10863fi
10864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10865$as_echo "$ac_cv_path_SED" >&6; }
10866 SED="$ac_cv_path_SED"
10867  rm -f conftest.sed
10868
10869test -z "$SED" && SED=sed
10870Xsed="$SED -e 1s/^X//"
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10883$as_echo_n "checking for fgrep... " >&6; }
10884if ${ac_cv_path_FGREP+:} false; then :
10885  $as_echo_n "(cached) " >&6
10886else
10887  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10888   then ac_cv_path_FGREP="$GREP -F"
10889   else
10890     if test -z "$FGREP"; then
10891  ac_path_FGREP_found=false
10892  # Loop through the user's path and test for each of PROGNAME-LIST
10893  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10894for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10895do
10896  IFS=$as_save_IFS
10897  test -z "$as_dir" && as_dir=.
10898    for ac_prog in fgrep; do
10899    for ac_exec_ext in '' $ac_executable_extensions; do
10900      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10901      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10902# Check for GNU ac_path_FGREP and select it if it is found.
10903  # Check for GNU $ac_path_FGREP
10904case `"$ac_path_FGREP" --version 2>&1` in
10905*GNU*)
10906  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10907*)
10908  ac_count=0
10909  $as_echo_n 0123456789 >"conftest.in"
10910  while :
10911  do
10912    cat "conftest.in" "conftest.in" >"conftest.tmp"
10913    mv "conftest.tmp" "conftest.in"
10914    cp "conftest.in" "conftest.nl"
10915    $as_echo 'FGREP' >> "conftest.nl"
10916    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10917    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10918    as_fn_arith $ac_count + 1 && ac_count=$as_val
10919    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10920      # Best one so far, save it but keep looking for a better one
10921      ac_cv_path_FGREP="$ac_path_FGREP"
10922      ac_path_FGREP_max=$ac_count
10923    fi
10924    # 10*(2^10) chars as input seems more than enough
10925    test $ac_count -gt 10 && break
10926  done
10927  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10928esac
10929
10930      $ac_path_FGREP_found && break 3
10931    done
10932  done
10933  done
10934IFS=$as_save_IFS
10935  if test -z "$ac_cv_path_FGREP"; then
10936    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10937  fi
10938else
10939  ac_cv_path_FGREP=$FGREP
10940fi
10941
10942   fi
10943fi
10944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10945$as_echo "$ac_cv_path_FGREP" >&6; }
10946 FGREP="$ac_cv_path_FGREP"
10947
10948
10949test -z "$GREP" && GREP=grep
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969# Check whether --with-gnu-ld was given.
10970if test "${with_gnu_ld+set}" = set; then :
10971  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10972else
10973  with_gnu_ld=no
10974fi
10975
10976ac_prog=ld
10977if test "$GCC" = yes; then
10978  # Check if gcc -print-prog-name=ld gives a path.
10979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10980$as_echo_n "checking for ld used by $CC... " >&6; }
10981  case $host in
10982  *-*-mingw*)
10983    # gcc leaves a trailing carriage return which upsets mingw
10984    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10985  *)
10986    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10987  esac
10988  case $ac_prog in
10989    # Accept absolute paths.
10990    [\\/]* | ?:[\\/]*)
10991      re_direlt='/[^/][^/]*/\.\./'
10992      # Canonicalize the pathname of ld
10993      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10994      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10995	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10996      done
10997      test -z "$LD" && LD="$ac_prog"
10998      ;;
10999  "")
11000    # If it fails, then pretend we aren't using GCC.
11001    ac_prog=ld
11002    ;;
11003  *)
11004    # If it is relative, then search for the first ld in PATH.
11005    with_gnu_ld=unknown
11006    ;;
11007  esac
11008elif test "$with_gnu_ld" = yes; then
11009  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11010$as_echo_n "checking for GNU ld... " >&6; }
11011else
11012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11013$as_echo_n "checking for non-GNU ld... " >&6; }
11014fi
11015if ${lt_cv_path_LD+:} false; then :
11016  $as_echo_n "(cached) " >&6
11017else
11018  if test -z "$LD"; then
11019  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11020  for ac_dir in $PATH; do
11021    IFS="$lt_save_ifs"
11022    test -z "$ac_dir" && ac_dir=.
11023    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11024      lt_cv_path_LD="$ac_dir/$ac_prog"
11025      # Check to see if the program is GNU ld.  I'd rather use --version,
11026      # but apparently some variants of GNU ld only accept -v.
11027      # Break only if it was the GNU/non-GNU ld that we prefer.
11028      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11029      *GNU* | *'with BFD'*)
11030	test "$with_gnu_ld" != no && break
11031	;;
11032      *)
11033	test "$with_gnu_ld" != yes && break
11034	;;
11035      esac
11036    fi
11037  done
11038  IFS="$lt_save_ifs"
11039else
11040  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11041fi
11042fi
11043
11044LD="$lt_cv_path_LD"
11045if test -n "$LD"; then
11046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11047$as_echo "$LD" >&6; }
11048else
11049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11050$as_echo "no" >&6; }
11051fi
11052test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11054$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11055if ${lt_cv_prog_gnu_ld+:} false; then :
11056  $as_echo_n "(cached) " >&6
11057else
11058  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11059case `$LD -v 2>&1 </dev/null` in
11060*GNU* | *'with BFD'*)
11061  lt_cv_prog_gnu_ld=yes
11062  ;;
11063*)
11064  lt_cv_prog_gnu_ld=no
11065  ;;
11066esac
11067fi
11068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11069$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11070with_gnu_ld=$lt_cv_prog_gnu_ld
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11081$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11082if ${lt_cv_path_NM+:} false; then :
11083  $as_echo_n "(cached) " >&6
11084else
11085  if test -n "$NM"; then
11086  # Let the user override the test.
11087  lt_cv_path_NM="$NM"
11088else
11089  lt_nm_to_check="${ac_tool_prefix}nm"
11090  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11091    lt_nm_to_check="$lt_nm_to_check nm"
11092  fi
11093  for lt_tmp_nm in $lt_nm_to_check; do
11094    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11095    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11096      IFS="$lt_save_ifs"
11097      test -z "$ac_dir" && ac_dir=.
11098      tmp_nm="$ac_dir/$lt_tmp_nm"
11099      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11100	# Check to see if the nm accepts a BSD-compat flag.
11101	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11102	#   nm: unknown option "B" ignored
11103	# Tru64's nm complains that /dev/null is an invalid object file
11104	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11105	*/dev/null* | *'Invalid file or object type'*)
11106	  lt_cv_path_NM="$tmp_nm -B"
11107	  break
11108	  ;;
11109	*)
11110	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11111	  */dev/null*)
11112	    lt_cv_path_NM="$tmp_nm -p"
11113	    break
11114	    ;;
11115	  *)
11116	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11117	    continue # so that we can try to find one that supports BSD flags
11118	    ;;
11119	  esac
11120	  ;;
11121	esac
11122      fi
11123    done
11124    IFS="$lt_save_ifs"
11125  done
11126  : ${lt_cv_path_NM=no}
11127fi
11128fi
11129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11130$as_echo "$lt_cv_path_NM" >&6; }
11131if test "$lt_cv_path_NM" != "no"; then
11132  NM="$lt_cv_path_NM"
11133else
11134  # Didn't find any BSD compatible name lister, look for dumpbin.
11135  if test -n "$DUMPBIN"; then :
11136    # Let the user override the test.
11137  else
11138    if test -n "$ac_tool_prefix"; then
11139  for ac_prog in dumpbin "link -dump"
11140  do
11141    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11142set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11144$as_echo_n "checking for $ac_word... " >&6; }
11145if ${ac_cv_prog_DUMPBIN+:} false; then :
11146  $as_echo_n "(cached) " >&6
11147else
11148  if test -n "$DUMPBIN"; then
11149  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11150else
11151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11152for as_dir in $PATH
11153do
11154  IFS=$as_save_IFS
11155  test -z "$as_dir" && as_dir=.
11156    for ac_exec_ext in '' $ac_executable_extensions; do
11157  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11158    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11160    break 2
11161  fi
11162done
11163  done
11164IFS=$as_save_IFS
11165
11166fi
11167fi
11168DUMPBIN=$ac_cv_prog_DUMPBIN
11169if test -n "$DUMPBIN"; then
11170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11171$as_echo "$DUMPBIN" >&6; }
11172else
11173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11174$as_echo "no" >&6; }
11175fi
11176
11177
11178    test -n "$DUMPBIN" && break
11179  done
11180fi
11181if test -z "$DUMPBIN"; then
11182  ac_ct_DUMPBIN=$DUMPBIN
11183  for ac_prog in dumpbin "link -dump"
11184do
11185  # Extract the first word of "$ac_prog", so it can be a program name with args.
11186set dummy $ac_prog; ac_word=$2
11187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11188$as_echo_n "checking for $ac_word... " >&6; }
11189if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11190  $as_echo_n "(cached) " >&6
11191else
11192  if test -n "$ac_ct_DUMPBIN"; then
11193  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11194else
11195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11196for as_dir in $PATH
11197do
11198  IFS=$as_save_IFS
11199  test -z "$as_dir" && as_dir=.
11200    for ac_exec_ext in '' $ac_executable_extensions; do
11201  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11202    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11203    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11204    break 2
11205  fi
11206done
11207  done
11208IFS=$as_save_IFS
11209
11210fi
11211fi
11212ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11213if test -n "$ac_ct_DUMPBIN"; then
11214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11215$as_echo "$ac_ct_DUMPBIN" >&6; }
11216else
11217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11218$as_echo "no" >&6; }
11219fi
11220
11221
11222  test -n "$ac_ct_DUMPBIN" && break
11223done
11224
11225  if test "x$ac_ct_DUMPBIN" = x; then
11226    DUMPBIN=":"
11227  else
11228    case $cross_compiling:$ac_tool_warned in
11229yes:)
11230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11232ac_tool_warned=yes ;;
11233esac
11234    DUMPBIN=$ac_ct_DUMPBIN
11235  fi
11236fi
11237
11238    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11239    *COFF*)
11240      DUMPBIN="$DUMPBIN -symbols"
11241      ;;
11242    *)
11243      DUMPBIN=:
11244      ;;
11245    esac
11246  fi
11247
11248  if test "$DUMPBIN" != ":"; then
11249    NM="$DUMPBIN"
11250  fi
11251fi
11252test -z "$NM" && NM=nm
11253
11254
11255
11256
11257
11258
11259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11260$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11261if ${lt_cv_nm_interface+:} false; then :
11262  $as_echo_n "(cached) " >&6
11263else
11264  lt_cv_nm_interface="BSD nm"
11265  echo "int some_variable = 0;" > conftest.$ac_ext
11266  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11267  (eval "$ac_compile" 2>conftest.err)
11268  cat conftest.err >&5
11269  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11270  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11271  cat conftest.err >&5
11272  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11273  cat conftest.out >&5
11274  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11275    lt_cv_nm_interface="MS dumpbin"
11276  fi
11277  rm -f conftest*
11278fi
11279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11280$as_echo "$lt_cv_nm_interface" >&6; }
11281
11282# find the maximum length of command line arguments
11283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11284$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11285if ${lt_cv_sys_max_cmd_len+:} false; then :
11286  $as_echo_n "(cached) " >&6
11287else
11288    i=0
11289  teststring="ABCD"
11290
11291  case $build_os in
11292  msdosdjgpp*)
11293    # On DJGPP, this test can blow up pretty badly due to problems in libc
11294    # (any single argument exceeding 2000 bytes causes a buffer overrun
11295    # during glob expansion).  Even if it were fixed, the result of this
11296    # check would be larger than it should be.
11297    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11298    ;;
11299
11300  gnu*)
11301    # Under GNU Hurd, this test is not required because there is
11302    # no limit to the length of command line arguments.
11303    # Libtool will interpret -1 as no limit whatsoever
11304    lt_cv_sys_max_cmd_len=-1;
11305    ;;
11306
11307  cygwin* | mingw* | cegcc*)
11308    # On Win9x/ME, this test blows up -- it succeeds, but takes
11309    # about 5 minutes as the teststring grows exponentially.
11310    # Worse, since 9x/ME are not pre-emptively multitasking,
11311    # you end up with a "frozen" computer, even though with patience
11312    # the test eventually succeeds (with a max line length of 256k).
11313    # Instead, let's just punt: use the minimum linelength reported by
11314    # all of the supported platforms: 8192 (on NT/2K/XP).
11315    lt_cv_sys_max_cmd_len=8192;
11316    ;;
11317
11318  mint*)
11319    # On MiNT this can take a long time and run out of memory.
11320    lt_cv_sys_max_cmd_len=8192;
11321    ;;
11322
11323  amigaos*)
11324    # On AmigaOS with pdksh, this test takes hours, literally.
11325    # So we just punt and use a minimum line length of 8192.
11326    lt_cv_sys_max_cmd_len=8192;
11327    ;;
11328
11329  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11330    # This has been around since 386BSD, at least.  Likely further.
11331    if test -x /sbin/sysctl; then
11332      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11333    elif test -x /usr/sbin/sysctl; then
11334      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11335    else
11336      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11337    fi
11338    # And add a safety zone
11339    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11340    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11341    ;;
11342
11343  interix*)
11344    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11345    lt_cv_sys_max_cmd_len=196608
11346    ;;
11347
11348  os2*)
11349    # The test takes a long time on OS/2.
11350    lt_cv_sys_max_cmd_len=8192
11351    ;;
11352
11353  osf*)
11354    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11355    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11356    # nice to cause kernel panics so lets avoid the loop below.
11357    # First set a reasonable default.
11358    lt_cv_sys_max_cmd_len=16384
11359    #
11360    if test -x /sbin/sysconfig; then
11361      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11362        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11363      esac
11364    fi
11365    ;;
11366  sco3.2v5*)
11367    lt_cv_sys_max_cmd_len=102400
11368    ;;
11369  sysv5* | sco5v6* | sysv4.2uw2*)
11370    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11371    if test -n "$kargmax"; then
11372      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11373    else
11374      lt_cv_sys_max_cmd_len=32768
11375    fi
11376    ;;
11377  *)
11378    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11379    if test -n "$lt_cv_sys_max_cmd_len"; then
11380      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11381      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11382    else
11383      # Make teststring a little bigger before we do anything with it.
11384      # a 1K string should be a reasonable start.
11385      for i in 1 2 3 4 5 6 7 8 ; do
11386        teststring=$teststring$teststring
11387      done
11388      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11389      # If test is not a shell built-in, we'll probably end up computing a
11390      # maximum length that is only half of the actual maximum length, but
11391      # we can't tell.
11392      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11393	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11394	      test $i != 17 # 1/2 MB should be enough
11395      do
11396        i=`expr $i + 1`
11397        teststring=$teststring$teststring
11398      done
11399      # Only check the string length outside the loop.
11400      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11401      teststring=
11402      # Add a significant safety factor because C++ compilers can tack on
11403      # massive amounts of additional arguments before passing them to the
11404      # linker.  It appears as though 1/2 is a usable value.
11405      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11406    fi
11407    ;;
11408  esac
11409
11410fi
11411
11412if test -n $lt_cv_sys_max_cmd_len ; then
11413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11414$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11415else
11416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11417$as_echo "none" >&6; }
11418fi
11419max_cmd_len=$lt_cv_sys_max_cmd_len
11420
11421
11422
11423
11424
11425
11426: ${CP="cp -f"}
11427: ${MV="mv -f"}
11428: ${RM="rm -f"}
11429
11430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11431$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11432# Try some XSI features
11433xsi_shell=no
11434( _lt_dummy="a/b/c"
11435  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11436      = c,a/b,b/c, \
11437    && eval 'test $(( 1 + 1 )) -eq 2 \
11438    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11439  && xsi_shell=yes
11440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11441$as_echo "$xsi_shell" >&6; }
11442
11443
11444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11445$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11446lt_shell_append=no
11447( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11448    >/dev/null 2>&1 \
11449  && lt_shell_append=yes
11450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11451$as_echo "$lt_shell_append" >&6; }
11452
11453
11454if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11455  lt_unset=unset
11456else
11457  lt_unset=false
11458fi
11459
11460
11461
11462
11463
11464# test EBCDIC or ASCII
11465case `echo X|tr X '\101'` in
11466 A) # ASCII based system
11467    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11468  lt_SP2NL='tr \040 \012'
11469  lt_NL2SP='tr \015\012 \040\040'
11470  ;;
11471 *) # EBCDIC based system
11472  lt_SP2NL='tr \100 \n'
11473  lt_NL2SP='tr \r\n \100\100'
11474  ;;
11475esac
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11486$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11487if ${lt_cv_to_host_file_cmd+:} false; then :
11488  $as_echo_n "(cached) " >&6
11489else
11490  case $host in
11491  *-*-mingw* )
11492    case $build in
11493      *-*-mingw* ) # actually msys
11494        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11495        ;;
11496      *-*-cygwin* )
11497        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11498        ;;
11499      * ) # otherwise, assume *nix
11500        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11501        ;;
11502    esac
11503    ;;
11504  *-*-cygwin* )
11505    case $build in
11506      *-*-mingw* ) # actually msys
11507        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11508        ;;
11509      *-*-cygwin* )
11510        lt_cv_to_host_file_cmd=func_convert_file_noop
11511        ;;
11512      * ) # otherwise, assume *nix
11513        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11514        ;;
11515    esac
11516    ;;
11517  * ) # unhandled hosts (and "normal" native builds)
11518    lt_cv_to_host_file_cmd=func_convert_file_noop
11519    ;;
11520esac
11521
11522fi
11523
11524to_host_file_cmd=$lt_cv_to_host_file_cmd
11525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11526$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11527
11528
11529
11530
11531
11532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11533$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11534if ${lt_cv_to_tool_file_cmd+:} false; then :
11535  $as_echo_n "(cached) " >&6
11536else
11537  #assume ordinary cross tools, or native build.
11538lt_cv_to_tool_file_cmd=func_convert_file_noop
11539case $host in
11540  *-*-mingw* )
11541    case $build in
11542      *-*-mingw* ) # actually msys
11543        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11544        ;;
11545    esac
11546    ;;
11547esac
11548
11549fi
11550
11551to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11553$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11554
11555
11556
11557
11558
11559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11560$as_echo_n "checking for $LD option to reload object files... " >&6; }
11561if ${lt_cv_ld_reload_flag+:} false; then :
11562  $as_echo_n "(cached) " >&6
11563else
11564  lt_cv_ld_reload_flag='-r'
11565fi
11566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11567$as_echo "$lt_cv_ld_reload_flag" >&6; }
11568reload_flag=$lt_cv_ld_reload_flag
11569case $reload_flag in
11570"" | " "*) ;;
11571*) reload_flag=" $reload_flag" ;;
11572esac
11573reload_cmds='$LD$reload_flag -o $output$reload_objs'
11574case $host_os in
11575  cygwin* | mingw* | pw32* | cegcc*)
11576    if test "$GCC" != yes; then
11577      reload_cmds=false
11578    fi
11579    ;;
11580  darwin*)
11581    if test "$GCC" = yes; then
11582      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11583    else
11584      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11585    fi
11586    ;;
11587esac
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597if test -n "$ac_tool_prefix"; then
11598  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11599set dummy ${ac_tool_prefix}objdump; ac_word=$2
11600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601$as_echo_n "checking for $ac_word... " >&6; }
11602if ${ac_cv_prog_OBJDUMP+:} false; then :
11603  $as_echo_n "(cached) " >&6
11604else
11605  if test -n "$OBJDUMP"; then
11606  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11607else
11608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609for as_dir in $PATH
11610do
11611  IFS=$as_save_IFS
11612  test -z "$as_dir" && as_dir=.
11613    for ac_exec_ext in '' $ac_executable_extensions; do
11614  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11615    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11617    break 2
11618  fi
11619done
11620  done
11621IFS=$as_save_IFS
11622
11623fi
11624fi
11625OBJDUMP=$ac_cv_prog_OBJDUMP
11626if test -n "$OBJDUMP"; then
11627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11628$as_echo "$OBJDUMP" >&6; }
11629else
11630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631$as_echo "no" >&6; }
11632fi
11633
11634
11635fi
11636if test -z "$ac_cv_prog_OBJDUMP"; then
11637  ac_ct_OBJDUMP=$OBJDUMP
11638  # Extract the first word of "objdump", so it can be a program name with args.
11639set dummy objdump; ac_word=$2
11640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11641$as_echo_n "checking for $ac_word... " >&6; }
11642if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11643  $as_echo_n "(cached) " >&6
11644else
11645  if test -n "$ac_ct_OBJDUMP"; then
11646  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11647else
11648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11649for as_dir in $PATH
11650do
11651  IFS=$as_save_IFS
11652  test -z "$as_dir" && as_dir=.
11653    for ac_exec_ext in '' $ac_executable_extensions; do
11654  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11655    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11656    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11657    break 2
11658  fi
11659done
11660  done
11661IFS=$as_save_IFS
11662
11663fi
11664fi
11665ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11666if test -n "$ac_ct_OBJDUMP"; then
11667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11668$as_echo "$ac_ct_OBJDUMP" >&6; }
11669else
11670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11671$as_echo "no" >&6; }
11672fi
11673
11674  if test "x$ac_ct_OBJDUMP" = x; then
11675    OBJDUMP="false"
11676  else
11677    case $cross_compiling:$ac_tool_warned in
11678yes:)
11679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11681ac_tool_warned=yes ;;
11682esac
11683    OBJDUMP=$ac_ct_OBJDUMP
11684  fi
11685else
11686  OBJDUMP="$ac_cv_prog_OBJDUMP"
11687fi
11688
11689test -z "$OBJDUMP" && OBJDUMP=objdump
11690
11691
11692
11693
11694
11695
11696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11697$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11698if ${lt_cv_deplibs_check_method+:} false; then :
11699  $as_echo_n "(cached) " >&6
11700else
11701  lt_cv_file_magic_cmd='$MAGIC_CMD'
11702lt_cv_file_magic_test_file=
11703lt_cv_deplibs_check_method='unknown'
11704# Need to set the preceding variable on all platforms that support
11705# interlibrary dependencies.
11706# 'none' -- dependencies not supported.
11707# `unknown' -- same as none, but documents that we really don't know.
11708# 'pass_all' -- all dependencies passed with no checks.
11709# 'test_compile' -- check by making test program.
11710# 'file_magic [[regex]]' -- check by looking for files in library path
11711# which responds to the $file_magic_cmd with a given extended regex.
11712# If you have `file' or equivalent on your system and you're not sure
11713# whether `pass_all' will *always* work, you probably want this one.
11714
11715case $host_os in
11716aix[4-9]*)
11717  lt_cv_deplibs_check_method=pass_all
11718  ;;
11719
11720beos*)
11721  lt_cv_deplibs_check_method=pass_all
11722  ;;
11723
11724bsdi[45]*)
11725  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11726  lt_cv_file_magic_cmd='/usr/bin/file -L'
11727  lt_cv_file_magic_test_file=/shlib/libc.so
11728  ;;
11729
11730cygwin*)
11731  # func_win32_libid is a shell function defined in ltmain.sh
11732  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11733  lt_cv_file_magic_cmd='func_win32_libid'
11734  ;;
11735
11736mingw* | pw32*)
11737  # Base MSYS/MinGW do not provide the 'file' command needed by
11738  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11739  # unless we find 'file', for example because we are cross-compiling.
11740  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11741  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11742    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11743    lt_cv_file_magic_cmd='func_win32_libid'
11744  else
11745    # Keep this pattern in sync with the one in func_win32_libid.
11746    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11747    lt_cv_file_magic_cmd='$OBJDUMP -f'
11748  fi
11749  ;;
11750
11751cegcc*)
11752  # use the weaker test based on 'objdump'. See mingw*.
11753  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11754  lt_cv_file_magic_cmd='$OBJDUMP -f'
11755  ;;
11756
11757darwin* | rhapsody*)
11758  lt_cv_deplibs_check_method=pass_all
11759  ;;
11760
11761freebsd* | dragonfly*)
11762  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11763    case $host_cpu in
11764    i*86 )
11765      # Not sure whether the presence of OpenBSD here was a mistake.
11766      # Let's accept both of them until this is cleared up.
11767      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11768      lt_cv_file_magic_cmd=/usr/bin/file
11769      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11770      ;;
11771    esac
11772  else
11773    lt_cv_deplibs_check_method=pass_all
11774  fi
11775  ;;
11776
11777gnu*)
11778  lt_cv_deplibs_check_method=pass_all
11779  ;;
11780
11781haiku*)
11782  lt_cv_deplibs_check_method=pass_all
11783  ;;
11784
11785hpux10.20* | hpux11*)
11786  lt_cv_file_magic_cmd=/usr/bin/file
11787  case $host_cpu in
11788  ia64*)
11789    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11790    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11791    ;;
11792  hppa*64*)
11793    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]'
11794    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11795    ;;
11796  *)
11797    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11798    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11799    ;;
11800  esac
11801  ;;
11802
11803interix[3-9]*)
11804  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11805  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11806  ;;
11807
11808irix5* | irix6* | nonstopux*)
11809  case $LD in
11810  *-32|*"-32 ") libmagic=32-bit;;
11811  *-n32|*"-n32 ") libmagic=N32;;
11812  *-64|*"-64 ") libmagic=64-bit;;
11813  *) libmagic=never-match;;
11814  esac
11815  lt_cv_deplibs_check_method=pass_all
11816  ;;
11817
11818# This must be glibc/ELF.
11819linux* | k*bsd*-gnu | kopensolaris*-gnu)
11820  lt_cv_deplibs_check_method=pass_all
11821  ;;
11822
11823netbsd*)
11824  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11825    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11826  else
11827    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11828  fi
11829  ;;
11830
11831newos6*)
11832  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11833  lt_cv_file_magic_cmd=/usr/bin/file
11834  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11835  ;;
11836
11837*nto* | *qnx*)
11838  lt_cv_deplibs_check_method=pass_all
11839  ;;
11840
11841openbsd*)
11842  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11843    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11844  else
11845    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11846  fi
11847  ;;
11848
11849osf3* | osf4* | osf5*)
11850  lt_cv_deplibs_check_method=pass_all
11851  ;;
11852
11853rdos*)
11854  lt_cv_deplibs_check_method=pass_all
11855  ;;
11856
11857solaris*)
11858  lt_cv_deplibs_check_method=pass_all
11859  ;;
11860
11861sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11862  lt_cv_deplibs_check_method=pass_all
11863  ;;
11864
11865sysv4 | sysv4.3*)
11866  case $host_vendor in
11867  motorola)
11868    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]'
11869    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11870    ;;
11871  ncr)
11872    lt_cv_deplibs_check_method=pass_all
11873    ;;
11874  sequent)
11875    lt_cv_file_magic_cmd='/bin/file'
11876    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11877    ;;
11878  sni)
11879    lt_cv_file_magic_cmd='/bin/file'
11880    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11881    lt_cv_file_magic_test_file=/lib/libc.so
11882    ;;
11883  siemens)
11884    lt_cv_deplibs_check_method=pass_all
11885    ;;
11886  pc)
11887    lt_cv_deplibs_check_method=pass_all
11888    ;;
11889  esac
11890  ;;
11891
11892tpf*)
11893  lt_cv_deplibs_check_method=pass_all
11894  ;;
11895esac
11896
11897fi
11898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11899$as_echo "$lt_cv_deplibs_check_method" >&6; }
11900
11901file_magic_glob=
11902want_nocaseglob=no
11903if test "$build" = "$host"; then
11904  case $host_os in
11905  mingw* | pw32*)
11906    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11907      want_nocaseglob=yes
11908    else
11909      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11910    fi
11911    ;;
11912  esac
11913fi
11914
11915file_magic_cmd=$lt_cv_file_magic_cmd
11916deplibs_check_method=$lt_cv_deplibs_check_method
11917test -z "$deplibs_check_method" && deplibs_check_method=unknown
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940if test -n "$ac_tool_prefix"; then
11941  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11942set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11944$as_echo_n "checking for $ac_word... " >&6; }
11945if ${ac_cv_prog_DLLTOOL+:} false; then :
11946  $as_echo_n "(cached) " >&6
11947else
11948  if test -n "$DLLTOOL"; then
11949  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11950else
11951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952for as_dir in $PATH
11953do
11954  IFS=$as_save_IFS
11955  test -z "$as_dir" && as_dir=.
11956    for ac_exec_ext in '' $ac_executable_extensions; do
11957  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11958    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11959    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11960    break 2
11961  fi
11962done
11963  done
11964IFS=$as_save_IFS
11965
11966fi
11967fi
11968DLLTOOL=$ac_cv_prog_DLLTOOL
11969if test -n "$DLLTOOL"; then
11970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11971$as_echo "$DLLTOOL" >&6; }
11972else
11973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974$as_echo "no" >&6; }
11975fi
11976
11977
11978fi
11979if test -z "$ac_cv_prog_DLLTOOL"; then
11980  ac_ct_DLLTOOL=$DLLTOOL
11981  # Extract the first word of "dlltool", so it can be a program name with args.
11982set dummy dlltool; ac_word=$2
11983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11984$as_echo_n "checking for $ac_word... " >&6; }
11985if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11986  $as_echo_n "(cached) " >&6
11987else
11988  if test -n "$ac_ct_DLLTOOL"; then
11989  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11990else
11991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11992for as_dir in $PATH
11993do
11994  IFS=$as_save_IFS
11995  test -z "$as_dir" && as_dir=.
11996    for ac_exec_ext in '' $ac_executable_extensions; do
11997  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11998    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12000    break 2
12001  fi
12002done
12003  done
12004IFS=$as_save_IFS
12005
12006fi
12007fi
12008ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12009if test -n "$ac_ct_DLLTOOL"; then
12010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12011$as_echo "$ac_ct_DLLTOOL" >&6; }
12012else
12013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014$as_echo "no" >&6; }
12015fi
12016
12017  if test "x$ac_ct_DLLTOOL" = x; then
12018    DLLTOOL="false"
12019  else
12020    case $cross_compiling:$ac_tool_warned in
12021yes:)
12022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12024ac_tool_warned=yes ;;
12025esac
12026    DLLTOOL=$ac_ct_DLLTOOL
12027  fi
12028else
12029  DLLTOOL="$ac_cv_prog_DLLTOOL"
12030fi
12031
12032test -z "$DLLTOOL" && DLLTOOL=dlltool
12033
12034
12035
12036
12037
12038
12039
12040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12041$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12042if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12043  $as_echo_n "(cached) " >&6
12044else
12045  lt_cv_sharedlib_from_linklib_cmd='unknown'
12046
12047case $host_os in
12048cygwin* | mingw* | pw32* | cegcc*)
12049  # two different shell functions defined in ltmain.sh
12050  # decide which to use based on capabilities of $DLLTOOL
12051  case `$DLLTOOL --help 2>&1` in
12052  *--identify-strict*)
12053    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12054    ;;
12055  *)
12056    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12057    ;;
12058  esac
12059  ;;
12060*)
12061  # fallback: assume linklib IS sharedlib
12062  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12063  ;;
12064esac
12065
12066fi
12067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12068$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12069sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12070test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12071
12072
12073
12074
12075
12076
12077
12078if test -n "$ac_tool_prefix"; then
12079  for ac_prog in ar
12080  do
12081    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12082set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084$as_echo_n "checking for $ac_word... " >&6; }
12085if ${ac_cv_prog_AR+:} false; then :
12086  $as_echo_n "(cached) " >&6
12087else
12088  if test -n "$AR"; then
12089  ac_cv_prog_AR="$AR" # Let the user override the test.
12090else
12091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092for as_dir in $PATH
12093do
12094  IFS=$as_save_IFS
12095  test -z "$as_dir" && as_dir=.
12096    for ac_exec_ext in '' $ac_executable_extensions; do
12097  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12098    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12100    break 2
12101  fi
12102done
12103  done
12104IFS=$as_save_IFS
12105
12106fi
12107fi
12108AR=$ac_cv_prog_AR
12109if test -n "$AR"; then
12110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12111$as_echo "$AR" >&6; }
12112else
12113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114$as_echo "no" >&6; }
12115fi
12116
12117
12118    test -n "$AR" && break
12119  done
12120fi
12121if test -z "$AR"; then
12122  ac_ct_AR=$AR
12123  for ac_prog in ar
12124do
12125  # Extract the first word of "$ac_prog", so it can be a program name with args.
12126set dummy $ac_prog; ac_word=$2
12127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12128$as_echo_n "checking for $ac_word... " >&6; }
12129if ${ac_cv_prog_ac_ct_AR+:} false; then :
12130  $as_echo_n "(cached) " >&6
12131else
12132  if test -n "$ac_ct_AR"; then
12133  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12134else
12135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12136for as_dir in $PATH
12137do
12138  IFS=$as_save_IFS
12139  test -z "$as_dir" && as_dir=.
12140    for ac_exec_ext in '' $ac_executable_extensions; do
12141  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12142    ac_cv_prog_ac_ct_AR="$ac_prog"
12143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12144    break 2
12145  fi
12146done
12147  done
12148IFS=$as_save_IFS
12149
12150fi
12151fi
12152ac_ct_AR=$ac_cv_prog_ac_ct_AR
12153if test -n "$ac_ct_AR"; then
12154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12155$as_echo "$ac_ct_AR" >&6; }
12156else
12157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158$as_echo "no" >&6; }
12159fi
12160
12161
12162  test -n "$ac_ct_AR" && break
12163done
12164
12165  if test "x$ac_ct_AR" = x; then
12166    AR="false"
12167  else
12168    case $cross_compiling:$ac_tool_warned in
12169yes:)
12170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12172ac_tool_warned=yes ;;
12173esac
12174    AR=$ac_ct_AR
12175  fi
12176fi
12177
12178: ${AR=ar}
12179: ${AR_FLAGS=cru}
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12192$as_echo_n "checking for archiver @FILE support... " >&6; }
12193if ${lt_cv_ar_at_file+:} false; then :
12194  $as_echo_n "(cached) " >&6
12195else
12196  lt_cv_ar_at_file=no
12197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12198/* end confdefs.h.  */
12199
12200int
12201main ()
12202{
12203
12204  ;
12205  return 0;
12206}
12207_ACEOF
12208if ac_fn_c_try_compile "$LINENO"; then :
12209  echo conftest.$ac_objext > conftest.lst
12210      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12211      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12212  (eval $lt_ar_try) 2>&5
12213  ac_status=$?
12214  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12215  test $ac_status = 0; }
12216      if test "$ac_status" -eq 0; then
12217	# Ensure the archiver fails upon bogus file names.
12218	rm -f conftest.$ac_objext libconftest.a
12219	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12220  (eval $lt_ar_try) 2>&5
12221  ac_status=$?
12222  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12223  test $ac_status = 0; }
12224	if test "$ac_status" -ne 0; then
12225          lt_cv_ar_at_file=@
12226        fi
12227      fi
12228      rm -f conftest.* libconftest.a
12229
12230fi
12231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12232
12233fi
12234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12235$as_echo "$lt_cv_ar_at_file" >&6; }
12236
12237if test "x$lt_cv_ar_at_file" = xno; then
12238  archiver_list_spec=
12239else
12240  archiver_list_spec=$lt_cv_ar_at_file
12241fi
12242
12243
12244
12245
12246
12247
12248
12249if test -n "$ac_tool_prefix"; then
12250  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12251set dummy ${ac_tool_prefix}strip; ac_word=$2
12252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12253$as_echo_n "checking for $ac_word... " >&6; }
12254if ${ac_cv_prog_STRIP+:} false; then :
12255  $as_echo_n "(cached) " >&6
12256else
12257  if test -n "$STRIP"; then
12258  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12259else
12260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12261for as_dir in $PATH
12262do
12263  IFS=$as_save_IFS
12264  test -z "$as_dir" && as_dir=.
12265    for ac_exec_ext in '' $ac_executable_extensions; do
12266  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12267    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12269    break 2
12270  fi
12271done
12272  done
12273IFS=$as_save_IFS
12274
12275fi
12276fi
12277STRIP=$ac_cv_prog_STRIP
12278if test -n "$STRIP"; then
12279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12280$as_echo "$STRIP" >&6; }
12281else
12282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12283$as_echo "no" >&6; }
12284fi
12285
12286
12287fi
12288if test -z "$ac_cv_prog_STRIP"; then
12289  ac_ct_STRIP=$STRIP
12290  # Extract the first word of "strip", so it can be a program name with args.
12291set dummy strip; ac_word=$2
12292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12293$as_echo_n "checking for $ac_word... " >&6; }
12294if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12295  $as_echo_n "(cached) " >&6
12296else
12297  if test -n "$ac_ct_STRIP"; then
12298  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12299else
12300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12301for as_dir in $PATH
12302do
12303  IFS=$as_save_IFS
12304  test -z "$as_dir" && as_dir=.
12305    for ac_exec_ext in '' $ac_executable_extensions; do
12306  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12307    ac_cv_prog_ac_ct_STRIP="strip"
12308    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12309    break 2
12310  fi
12311done
12312  done
12313IFS=$as_save_IFS
12314
12315fi
12316fi
12317ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12318if test -n "$ac_ct_STRIP"; then
12319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12320$as_echo "$ac_ct_STRIP" >&6; }
12321else
12322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12323$as_echo "no" >&6; }
12324fi
12325
12326  if test "x$ac_ct_STRIP" = x; then
12327    STRIP=":"
12328  else
12329    case $cross_compiling:$ac_tool_warned in
12330yes:)
12331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12333ac_tool_warned=yes ;;
12334esac
12335    STRIP=$ac_ct_STRIP
12336  fi
12337else
12338  STRIP="$ac_cv_prog_STRIP"
12339fi
12340
12341test -z "$STRIP" && STRIP=:
12342
12343
12344
12345
12346
12347
12348if test -n "$ac_tool_prefix"; then
12349  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12350set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12352$as_echo_n "checking for $ac_word... " >&6; }
12353if ${ac_cv_prog_RANLIB+:} false; then :
12354  $as_echo_n "(cached) " >&6
12355else
12356  if test -n "$RANLIB"; then
12357  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12358else
12359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12360for as_dir in $PATH
12361do
12362  IFS=$as_save_IFS
12363  test -z "$as_dir" && as_dir=.
12364    for ac_exec_ext in '' $ac_executable_extensions; do
12365  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12366    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12368    break 2
12369  fi
12370done
12371  done
12372IFS=$as_save_IFS
12373
12374fi
12375fi
12376RANLIB=$ac_cv_prog_RANLIB
12377if test -n "$RANLIB"; then
12378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12379$as_echo "$RANLIB" >&6; }
12380else
12381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382$as_echo "no" >&6; }
12383fi
12384
12385
12386fi
12387if test -z "$ac_cv_prog_RANLIB"; then
12388  ac_ct_RANLIB=$RANLIB
12389  # Extract the first word of "ranlib", so it can be a program name with args.
12390set dummy ranlib; ac_word=$2
12391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392$as_echo_n "checking for $ac_word... " >&6; }
12393if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12394  $as_echo_n "(cached) " >&6
12395else
12396  if test -n "$ac_ct_RANLIB"; then
12397  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12398else
12399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400for as_dir in $PATH
12401do
12402  IFS=$as_save_IFS
12403  test -z "$as_dir" && as_dir=.
12404    for ac_exec_ext in '' $ac_executable_extensions; do
12405  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12406    ac_cv_prog_ac_ct_RANLIB="ranlib"
12407    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12408    break 2
12409  fi
12410done
12411  done
12412IFS=$as_save_IFS
12413
12414fi
12415fi
12416ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12417if test -n "$ac_ct_RANLIB"; then
12418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12419$as_echo "$ac_ct_RANLIB" >&6; }
12420else
12421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422$as_echo "no" >&6; }
12423fi
12424
12425  if test "x$ac_ct_RANLIB" = x; then
12426    RANLIB=":"
12427  else
12428    case $cross_compiling:$ac_tool_warned in
12429yes:)
12430{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12431$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12432ac_tool_warned=yes ;;
12433esac
12434    RANLIB=$ac_ct_RANLIB
12435  fi
12436else
12437  RANLIB="$ac_cv_prog_RANLIB"
12438fi
12439
12440test -z "$RANLIB" && RANLIB=:
12441
12442
12443
12444
12445
12446
12447# Determine commands to create old-style static archives.
12448old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12449old_postinstall_cmds='chmod 644 $oldlib'
12450old_postuninstall_cmds=
12451
12452if test -n "$RANLIB"; then
12453  case $host_os in
12454  openbsd*)
12455    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12456    ;;
12457  *)
12458    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12459    ;;
12460  esac
12461  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12462fi
12463
12464case $host_os in
12465  darwin*)
12466    lock_old_archive_extraction=yes ;;
12467  *)
12468    lock_old_archive_extraction=no ;;
12469esac
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509# If no C compiler was specified, use CC.
12510LTCC=${LTCC-"$CC"}
12511
12512# If no C compiler flags were specified, use CFLAGS.
12513LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12514
12515# Allow CC to be a program name with arguments.
12516compiler=$CC
12517
12518
12519# Check for command to grab the raw symbol name followed by C symbol from nm.
12520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12521$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12522if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12523  $as_echo_n "(cached) " >&6
12524else
12525
12526# These are sane defaults that work on at least a few old systems.
12527# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12528
12529# Character class describing NM global symbol codes.
12530symcode='[BCDEGRST]'
12531
12532# Regexp to match symbols that can be accessed directly from C.
12533sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12534
12535# Define system-specific variables.
12536case $host_os in
12537aix*)
12538  symcode='[BCDT]'
12539  ;;
12540cygwin* | mingw* | pw32* | cegcc*)
12541  symcode='[ABCDGISTW]'
12542  ;;
12543hpux*)
12544  if test "$host_cpu" = ia64; then
12545    symcode='[ABCDEGRST]'
12546  fi
12547  ;;
12548irix* | nonstopux*)
12549  symcode='[BCDEGRST]'
12550  ;;
12551osf*)
12552  symcode='[BCDEGQRST]'
12553  ;;
12554solaris*)
12555  symcode='[BDRT]'
12556  ;;
12557sco3.2v5*)
12558  symcode='[DT]'
12559  ;;
12560sysv4.2uw2*)
12561  symcode='[DT]'
12562  ;;
12563sysv5* | sco5v6* | unixware* | OpenUNIX*)
12564  symcode='[ABDT]'
12565  ;;
12566sysv4)
12567  symcode='[DFNSTU]'
12568  ;;
12569esac
12570
12571# If we're using GNU nm, then use its standard symbol codes.
12572case `$NM -V 2>&1` in
12573*GNU* | *'with BFD'*)
12574  symcode='[ABCDGIRSTW]' ;;
12575esac
12576
12577# Transform an extracted symbol line into a proper C declaration.
12578# Some systems (esp. on ia64) link data and code symbols differently,
12579# so use this general approach.
12580lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12581
12582# Transform an extracted symbol line into symbol name and symbol address
12583lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12584lt_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'"
12585
12586# Handle CRLF in mingw tool chain
12587opt_cr=
12588case $build_os in
12589mingw*)
12590  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12591  ;;
12592esac
12593
12594# Try without a prefix underscore, then with it.
12595for ac_symprfx in "" "_"; do
12596
12597  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12598  symxfrm="\\1 $ac_symprfx\\2 \\2"
12599
12600  # Write the raw and C identifiers.
12601  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12602    # Fake it for dumpbin and say T for any non-static function
12603    # and D for any global variable.
12604    # Also find C++ and __fastcall symbols from MSVC++,
12605    # which start with @ or ?.
12606    lt_cv_sys_global_symbol_pipe="$AWK '"\
12607"     {last_section=section; section=\$ 3};"\
12608"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12609"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12610"     \$ 0!~/External *\|/{next};"\
12611"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12612"     {if(hide[section]) next};"\
12613"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12614"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12615"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12616"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12617"     ' prfx=^$ac_symprfx"
12618  else
12619    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12620  fi
12621  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12622
12623  # Check to see that the pipe works correctly.
12624  pipe_works=no
12625
12626  rm -f conftest*
12627  cat > conftest.$ac_ext <<_LT_EOF
12628#ifdef __cplusplus
12629extern "C" {
12630#endif
12631char nm_test_var;
12632void nm_test_func(void);
12633void nm_test_func(void){}
12634#ifdef __cplusplus
12635}
12636#endif
12637int main(){nm_test_var='a';nm_test_func();return(0);}
12638_LT_EOF
12639
12640  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12641  (eval $ac_compile) 2>&5
12642  ac_status=$?
12643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12644  test $ac_status = 0; }; then
12645    # Now try to grab the symbols.
12646    nlist=conftest.nm
12647    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12648  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12649  ac_status=$?
12650  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12651  test $ac_status = 0; } && test -s "$nlist"; then
12652      # Try sorting and uniquifying the output.
12653      if sort "$nlist" | uniq > "$nlist"T; then
12654	mv -f "$nlist"T "$nlist"
12655      else
12656	rm -f "$nlist"T
12657      fi
12658
12659      # Make sure that we snagged all the symbols we need.
12660      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12661	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12662	  cat <<_LT_EOF > conftest.$ac_ext
12663/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12664#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12665/* DATA imports from DLLs on WIN32 con't be const, because runtime
12666   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12667# define LT_DLSYM_CONST
12668#elif defined(__osf__)
12669/* This system does not cope well with relocations in const data.  */
12670# define LT_DLSYM_CONST
12671#else
12672# define LT_DLSYM_CONST const
12673#endif
12674
12675#ifdef __cplusplus
12676extern "C" {
12677#endif
12678
12679_LT_EOF
12680	  # Now generate the symbol file.
12681	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12682
12683	  cat <<_LT_EOF >> conftest.$ac_ext
12684
12685/* The mapping between symbol names and symbols.  */
12686LT_DLSYM_CONST struct {
12687  const char *name;
12688  void       *address;
12689}
12690lt__PROGRAM__LTX_preloaded_symbols[] =
12691{
12692  { "@PROGRAM@", (void *) 0 },
12693_LT_EOF
12694	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12695	  cat <<\_LT_EOF >> conftest.$ac_ext
12696  {0, (void *) 0}
12697};
12698
12699/* This works around a problem in FreeBSD linker */
12700#ifdef FREEBSD_WORKAROUND
12701static const void *lt_preloaded_setup() {
12702  return lt__PROGRAM__LTX_preloaded_symbols;
12703}
12704#endif
12705
12706#ifdef __cplusplus
12707}
12708#endif
12709_LT_EOF
12710	  # Now try linking the two files.
12711	  mv conftest.$ac_objext conftstm.$ac_objext
12712	  lt_globsym_save_LIBS=$LIBS
12713	  lt_globsym_save_CFLAGS=$CFLAGS
12714	  LIBS="conftstm.$ac_objext"
12715	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12716	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12717  (eval $ac_link) 2>&5
12718  ac_status=$?
12719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12720  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12721	    pipe_works=yes
12722	  fi
12723	  LIBS=$lt_globsym_save_LIBS
12724	  CFLAGS=$lt_globsym_save_CFLAGS
12725	else
12726	  echo "cannot find nm_test_func in $nlist" >&5
12727	fi
12728      else
12729	echo "cannot find nm_test_var in $nlist" >&5
12730      fi
12731    else
12732      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12733    fi
12734  else
12735    echo "$progname: failed program was:" >&5
12736    cat conftest.$ac_ext >&5
12737  fi
12738  rm -rf conftest* conftst*
12739
12740  # Do not use the global_symbol_pipe unless it works.
12741  if test "$pipe_works" = yes; then
12742    break
12743  else
12744    lt_cv_sys_global_symbol_pipe=
12745  fi
12746done
12747
12748fi
12749
12750if test -z "$lt_cv_sys_global_symbol_pipe"; then
12751  lt_cv_sys_global_symbol_to_cdecl=
12752fi
12753if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12755$as_echo "failed" >&6; }
12756else
12757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12758$as_echo "ok" >&6; }
12759fi
12760
12761# Response file support.
12762if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12763  nm_file_list_spec='@'
12764elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12765  nm_file_list_spec='@'
12766fi
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12795$as_echo_n "checking for sysroot... " >&6; }
12796
12797# Check whether --with-sysroot was given.
12798if test "${with_sysroot+set}" = set; then :
12799  withval=$with_sysroot;
12800else
12801  with_sysroot=no
12802fi
12803
12804
12805lt_sysroot=
12806case ${with_sysroot} in #(
12807 yes)
12808   if test "$GCC" = yes; then
12809     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12810   fi
12811   ;; #(
12812 /*)
12813   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12814   ;; #(
12815 no|'')
12816   ;; #(
12817 *)
12818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12819$as_echo "${with_sysroot}" >&6; }
12820   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12821   ;;
12822esac
12823
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12825$as_echo "${lt_sysroot:-no}" >&6; }
12826
12827
12828
12829
12830
12831# Check whether --enable-libtool-lock was given.
12832if test "${enable_libtool_lock+set}" = set; then :
12833  enableval=$enable_libtool_lock;
12834fi
12835
12836test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12837
12838# Some flags need to be propagated to the compiler or linker for good
12839# libtool support.
12840case $host in
12841ia64-*-hpux*)
12842  # Find out which ABI we are using.
12843  echo 'int i;' > conftest.$ac_ext
12844  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12845  (eval $ac_compile) 2>&5
12846  ac_status=$?
12847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12848  test $ac_status = 0; }; then
12849    case `/usr/bin/file conftest.$ac_objext` in
12850      *ELF-32*)
12851	HPUX_IA64_MODE="32"
12852	;;
12853      *ELF-64*)
12854	HPUX_IA64_MODE="64"
12855	;;
12856    esac
12857  fi
12858  rm -rf conftest*
12859  ;;
12860*-*-irix6*)
12861  # Find out which ABI we are using.
12862  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12863  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12864  (eval $ac_compile) 2>&5
12865  ac_status=$?
12866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12867  test $ac_status = 0; }; then
12868    if test "$lt_cv_prog_gnu_ld" = yes; then
12869      case `/usr/bin/file conftest.$ac_objext` in
12870	*32-bit*)
12871	  LD="${LD-ld} -melf32bsmip"
12872	  ;;
12873	*N32*)
12874	  LD="${LD-ld} -melf32bmipn32"
12875	  ;;
12876	*64-bit*)
12877	  LD="${LD-ld} -melf64bmip"
12878	;;
12879      esac
12880    else
12881      case `/usr/bin/file conftest.$ac_objext` in
12882	*32-bit*)
12883	  LD="${LD-ld} -32"
12884	  ;;
12885	*N32*)
12886	  LD="${LD-ld} -n32"
12887	  ;;
12888	*64-bit*)
12889	  LD="${LD-ld} -64"
12890	  ;;
12891      esac
12892    fi
12893  fi
12894  rm -rf conftest*
12895  ;;
12896
12897x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12898s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12899  # Find out which ABI we are using.
12900  echo 'int i;' > conftest.$ac_ext
12901  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12902  (eval $ac_compile) 2>&5
12903  ac_status=$?
12904  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12905  test $ac_status = 0; }; then
12906    case `/usr/bin/file conftest.o` in
12907      *32-bit*)
12908	case $host in
12909	  x86_64-*kfreebsd*-gnu)
12910	    LD="${LD-ld} -m elf_i386_fbsd"
12911	    ;;
12912	  x86_64-*linux*)
12913	    LD="${LD-ld} -m elf_i386"
12914	    ;;
12915	  ppc64-*linux*|powerpc64-*linux*)
12916	    LD="${LD-ld} -m elf32ppclinux"
12917	    ;;
12918	  s390x-*linux*)
12919	    LD="${LD-ld} -m elf_s390"
12920	    ;;
12921	  sparc64-*linux*)
12922	    LD="${LD-ld} -m elf32_sparc"
12923	    ;;
12924	esac
12925	;;
12926      *64-bit*)
12927	case $host in
12928	  x86_64-*kfreebsd*-gnu)
12929	    LD="${LD-ld} -m elf_x86_64_fbsd"
12930	    ;;
12931	  x86_64-*linux*)
12932	    LD="${LD-ld} -m elf_x86_64"
12933	    ;;
12934	  ppc*-*linux*|powerpc*-*linux*)
12935	    LD="${LD-ld} -m elf64ppc"
12936	    ;;
12937	  s390*-*linux*|s390*-*tpf*)
12938	    LD="${LD-ld} -m elf64_s390"
12939	    ;;
12940	  sparc*-*linux*)
12941	    LD="${LD-ld} -m elf64_sparc"
12942	    ;;
12943	esac
12944	;;
12945    esac
12946  fi
12947  rm -rf conftest*
12948  ;;
12949
12950*-*-sco3.2v5*)
12951  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12952  SAVE_CFLAGS="$CFLAGS"
12953  CFLAGS="$CFLAGS -belf"
12954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12955$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12956if ${lt_cv_cc_needs_belf+:} false; then :
12957  $as_echo_n "(cached) " >&6
12958else
12959  ac_ext=c
12960ac_cpp='$CPP $CPPFLAGS'
12961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12963ac_compiler_gnu=$ac_cv_c_compiler_gnu
12964
12965     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12966/* end confdefs.h.  */
12967
12968int
12969main ()
12970{
12971
12972  ;
12973  return 0;
12974}
12975_ACEOF
12976if ac_fn_c_try_link "$LINENO"; then :
12977  lt_cv_cc_needs_belf=yes
12978else
12979  lt_cv_cc_needs_belf=no
12980fi
12981rm -f core conftest.err conftest.$ac_objext \
12982    conftest$ac_exeext conftest.$ac_ext
12983     ac_ext=c
12984ac_cpp='$CPP $CPPFLAGS'
12985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12987ac_compiler_gnu=$ac_cv_c_compiler_gnu
12988
12989fi
12990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12991$as_echo "$lt_cv_cc_needs_belf" >&6; }
12992  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12993    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12994    CFLAGS="$SAVE_CFLAGS"
12995  fi
12996  ;;
12997*-*solaris*)
12998  # Find out which ABI we are using.
12999  echo 'int i;' > conftest.$ac_ext
13000  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13001  (eval $ac_compile) 2>&5
13002  ac_status=$?
13003  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13004  test $ac_status = 0; }; then
13005    case `/usr/bin/file conftest.o` in
13006    *64-bit*)
13007      case $lt_cv_prog_gnu_ld in
13008      yes*)
13009        case $host in
13010        i?86-*-solaris*)
13011          LD="${LD-ld} -m elf_x86_64"
13012          ;;
13013        sparc*-*-solaris*)
13014          LD="${LD-ld} -m elf64_sparc"
13015          ;;
13016        esac
13017        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13018        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13019          LD="${LD-ld}_sol2"
13020        fi
13021        ;;
13022      *)
13023	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13024	  LD="${LD-ld} -64"
13025	fi
13026	;;
13027      esac
13028      ;;
13029    esac
13030  fi
13031  rm -rf conftest*
13032  ;;
13033esac
13034
13035need_locks="$enable_libtool_lock"
13036
13037if test -n "$ac_tool_prefix"; then
13038  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13039set dummy ${ac_tool_prefix}mt; ac_word=$2
13040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13041$as_echo_n "checking for $ac_word... " >&6; }
13042if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13043  $as_echo_n "(cached) " >&6
13044else
13045  if test -n "$MANIFEST_TOOL"; then
13046  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13047else
13048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13049for as_dir in $PATH
13050do
13051  IFS=$as_save_IFS
13052  test -z "$as_dir" && as_dir=.
13053    for ac_exec_ext in '' $ac_executable_extensions; do
13054  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13055    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13056    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13057    break 2
13058  fi
13059done
13060  done
13061IFS=$as_save_IFS
13062
13063fi
13064fi
13065MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13066if test -n "$MANIFEST_TOOL"; then
13067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13068$as_echo "$MANIFEST_TOOL" >&6; }
13069else
13070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13071$as_echo "no" >&6; }
13072fi
13073
13074
13075fi
13076if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13077  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13078  # Extract the first word of "mt", so it can be a program name with args.
13079set dummy mt; ac_word=$2
13080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13081$as_echo_n "checking for $ac_word... " >&6; }
13082if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13083  $as_echo_n "(cached) " >&6
13084else
13085  if test -n "$ac_ct_MANIFEST_TOOL"; then
13086  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13087else
13088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13089for as_dir in $PATH
13090do
13091  IFS=$as_save_IFS
13092  test -z "$as_dir" && as_dir=.
13093    for ac_exec_ext in '' $ac_executable_extensions; do
13094  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13095    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13097    break 2
13098  fi
13099done
13100  done
13101IFS=$as_save_IFS
13102
13103fi
13104fi
13105ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13106if test -n "$ac_ct_MANIFEST_TOOL"; then
13107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13108$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13109else
13110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111$as_echo "no" >&6; }
13112fi
13113
13114  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13115    MANIFEST_TOOL=":"
13116  else
13117    case $cross_compiling:$ac_tool_warned in
13118yes:)
13119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13121ac_tool_warned=yes ;;
13122esac
13123    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13124  fi
13125else
13126  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13127fi
13128
13129test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13131$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13132if ${lt_cv_path_mainfest_tool+:} false; then :
13133  $as_echo_n "(cached) " >&6
13134else
13135  lt_cv_path_mainfest_tool=no
13136  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13137  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13138  cat conftest.err >&5
13139  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13140    lt_cv_path_mainfest_tool=yes
13141  fi
13142  rm -f conftest*
13143fi
13144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13145$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13146if test "x$lt_cv_path_mainfest_tool" != xyes; then
13147  MANIFEST_TOOL=:
13148fi
13149
13150
13151
13152
13153
13154
13155  case $host_os in
13156    rhapsody* | darwin*)
13157    if test -n "$ac_tool_prefix"; then
13158  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13159set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13161$as_echo_n "checking for $ac_word... " >&6; }
13162if ${ac_cv_prog_DSYMUTIL+:} false; then :
13163  $as_echo_n "(cached) " >&6
13164else
13165  if test -n "$DSYMUTIL"; then
13166  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13167else
13168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169for as_dir in $PATH
13170do
13171  IFS=$as_save_IFS
13172  test -z "$as_dir" && as_dir=.
13173    for ac_exec_ext in '' $ac_executable_extensions; do
13174  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13175    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13176    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13177    break 2
13178  fi
13179done
13180  done
13181IFS=$as_save_IFS
13182
13183fi
13184fi
13185DSYMUTIL=$ac_cv_prog_DSYMUTIL
13186if test -n "$DSYMUTIL"; then
13187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13188$as_echo "$DSYMUTIL" >&6; }
13189else
13190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191$as_echo "no" >&6; }
13192fi
13193
13194
13195fi
13196if test -z "$ac_cv_prog_DSYMUTIL"; then
13197  ac_ct_DSYMUTIL=$DSYMUTIL
13198  # Extract the first word of "dsymutil", so it can be a program name with args.
13199set dummy dsymutil; ac_word=$2
13200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13201$as_echo_n "checking for $ac_word... " >&6; }
13202if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13203  $as_echo_n "(cached) " >&6
13204else
13205  if test -n "$ac_ct_DSYMUTIL"; then
13206  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13207else
13208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209for as_dir in $PATH
13210do
13211  IFS=$as_save_IFS
13212  test -z "$as_dir" && as_dir=.
13213    for ac_exec_ext in '' $ac_executable_extensions; do
13214  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13215    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13217    break 2
13218  fi
13219done
13220  done
13221IFS=$as_save_IFS
13222
13223fi
13224fi
13225ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13226if test -n "$ac_ct_DSYMUTIL"; then
13227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13228$as_echo "$ac_ct_DSYMUTIL" >&6; }
13229else
13230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231$as_echo "no" >&6; }
13232fi
13233
13234  if test "x$ac_ct_DSYMUTIL" = x; then
13235    DSYMUTIL=":"
13236  else
13237    case $cross_compiling:$ac_tool_warned in
13238yes:)
13239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13241ac_tool_warned=yes ;;
13242esac
13243    DSYMUTIL=$ac_ct_DSYMUTIL
13244  fi
13245else
13246  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13247fi
13248
13249    if test -n "$ac_tool_prefix"; then
13250  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13251set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13253$as_echo_n "checking for $ac_word... " >&6; }
13254if ${ac_cv_prog_NMEDIT+:} false; then :
13255  $as_echo_n "(cached) " >&6
13256else
13257  if test -n "$NMEDIT"; then
13258  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13259else
13260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13261for as_dir in $PATH
13262do
13263  IFS=$as_save_IFS
13264  test -z "$as_dir" && as_dir=.
13265    for ac_exec_ext in '' $ac_executable_extensions; do
13266  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13267    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13269    break 2
13270  fi
13271done
13272  done
13273IFS=$as_save_IFS
13274
13275fi
13276fi
13277NMEDIT=$ac_cv_prog_NMEDIT
13278if test -n "$NMEDIT"; then
13279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13280$as_echo "$NMEDIT" >&6; }
13281else
13282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283$as_echo "no" >&6; }
13284fi
13285
13286
13287fi
13288if test -z "$ac_cv_prog_NMEDIT"; then
13289  ac_ct_NMEDIT=$NMEDIT
13290  # Extract the first word of "nmedit", so it can be a program name with args.
13291set dummy nmedit; ac_word=$2
13292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13293$as_echo_n "checking for $ac_word... " >&6; }
13294if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13295  $as_echo_n "(cached) " >&6
13296else
13297  if test -n "$ac_ct_NMEDIT"; then
13298  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13299else
13300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13301for as_dir in $PATH
13302do
13303  IFS=$as_save_IFS
13304  test -z "$as_dir" && as_dir=.
13305    for ac_exec_ext in '' $ac_executable_extensions; do
13306  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13307    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13308    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13309    break 2
13310  fi
13311done
13312  done
13313IFS=$as_save_IFS
13314
13315fi
13316fi
13317ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13318if test -n "$ac_ct_NMEDIT"; then
13319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13320$as_echo "$ac_ct_NMEDIT" >&6; }
13321else
13322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13323$as_echo "no" >&6; }
13324fi
13325
13326  if test "x$ac_ct_NMEDIT" = x; then
13327    NMEDIT=":"
13328  else
13329    case $cross_compiling:$ac_tool_warned in
13330yes:)
13331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13333ac_tool_warned=yes ;;
13334esac
13335    NMEDIT=$ac_ct_NMEDIT
13336  fi
13337else
13338  NMEDIT="$ac_cv_prog_NMEDIT"
13339fi
13340
13341    if test -n "$ac_tool_prefix"; then
13342  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13343set dummy ${ac_tool_prefix}lipo; ac_word=$2
13344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13345$as_echo_n "checking for $ac_word... " >&6; }
13346if ${ac_cv_prog_LIPO+:} false; then :
13347  $as_echo_n "(cached) " >&6
13348else
13349  if test -n "$LIPO"; then
13350  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13351else
13352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13353for as_dir in $PATH
13354do
13355  IFS=$as_save_IFS
13356  test -z "$as_dir" && as_dir=.
13357    for ac_exec_ext in '' $ac_executable_extensions; do
13358  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13359    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13361    break 2
13362  fi
13363done
13364  done
13365IFS=$as_save_IFS
13366
13367fi
13368fi
13369LIPO=$ac_cv_prog_LIPO
13370if test -n "$LIPO"; then
13371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13372$as_echo "$LIPO" >&6; }
13373else
13374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13375$as_echo "no" >&6; }
13376fi
13377
13378
13379fi
13380if test -z "$ac_cv_prog_LIPO"; then
13381  ac_ct_LIPO=$LIPO
13382  # Extract the first word of "lipo", so it can be a program name with args.
13383set dummy lipo; ac_word=$2
13384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13385$as_echo_n "checking for $ac_word... " >&6; }
13386if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13387  $as_echo_n "(cached) " >&6
13388else
13389  if test -n "$ac_ct_LIPO"; then
13390  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13391else
13392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13393for as_dir in $PATH
13394do
13395  IFS=$as_save_IFS
13396  test -z "$as_dir" && as_dir=.
13397    for ac_exec_ext in '' $ac_executable_extensions; do
13398  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13399    ac_cv_prog_ac_ct_LIPO="lipo"
13400    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13401    break 2
13402  fi
13403done
13404  done
13405IFS=$as_save_IFS
13406
13407fi
13408fi
13409ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13410if test -n "$ac_ct_LIPO"; then
13411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13412$as_echo "$ac_ct_LIPO" >&6; }
13413else
13414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13415$as_echo "no" >&6; }
13416fi
13417
13418  if test "x$ac_ct_LIPO" = x; then
13419    LIPO=":"
13420  else
13421    case $cross_compiling:$ac_tool_warned in
13422yes:)
13423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13425ac_tool_warned=yes ;;
13426esac
13427    LIPO=$ac_ct_LIPO
13428  fi
13429else
13430  LIPO="$ac_cv_prog_LIPO"
13431fi
13432
13433    if test -n "$ac_tool_prefix"; then
13434  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13435set dummy ${ac_tool_prefix}otool; ac_word=$2
13436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13437$as_echo_n "checking for $ac_word... " >&6; }
13438if ${ac_cv_prog_OTOOL+:} false; then :
13439  $as_echo_n "(cached) " >&6
13440else
13441  if test -n "$OTOOL"; then
13442  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13443else
13444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13445for as_dir in $PATH
13446do
13447  IFS=$as_save_IFS
13448  test -z "$as_dir" && as_dir=.
13449    for ac_exec_ext in '' $ac_executable_extensions; do
13450  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13451    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13453    break 2
13454  fi
13455done
13456  done
13457IFS=$as_save_IFS
13458
13459fi
13460fi
13461OTOOL=$ac_cv_prog_OTOOL
13462if test -n "$OTOOL"; then
13463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13464$as_echo "$OTOOL" >&6; }
13465else
13466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13467$as_echo "no" >&6; }
13468fi
13469
13470
13471fi
13472if test -z "$ac_cv_prog_OTOOL"; then
13473  ac_ct_OTOOL=$OTOOL
13474  # Extract the first word of "otool", so it can be a program name with args.
13475set dummy otool; ac_word=$2
13476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13477$as_echo_n "checking for $ac_word... " >&6; }
13478if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13479  $as_echo_n "(cached) " >&6
13480else
13481  if test -n "$ac_ct_OTOOL"; then
13482  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13483else
13484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13485for as_dir in $PATH
13486do
13487  IFS=$as_save_IFS
13488  test -z "$as_dir" && as_dir=.
13489    for ac_exec_ext in '' $ac_executable_extensions; do
13490  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13491    ac_cv_prog_ac_ct_OTOOL="otool"
13492    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13493    break 2
13494  fi
13495done
13496  done
13497IFS=$as_save_IFS
13498
13499fi
13500fi
13501ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13502if test -n "$ac_ct_OTOOL"; then
13503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13504$as_echo "$ac_ct_OTOOL" >&6; }
13505else
13506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13507$as_echo "no" >&6; }
13508fi
13509
13510  if test "x$ac_ct_OTOOL" = x; then
13511    OTOOL=":"
13512  else
13513    case $cross_compiling:$ac_tool_warned in
13514yes:)
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13517ac_tool_warned=yes ;;
13518esac
13519    OTOOL=$ac_ct_OTOOL
13520  fi
13521else
13522  OTOOL="$ac_cv_prog_OTOOL"
13523fi
13524
13525    if test -n "$ac_tool_prefix"; then
13526  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13527set dummy ${ac_tool_prefix}otool64; ac_word=$2
13528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13529$as_echo_n "checking for $ac_word... " >&6; }
13530if ${ac_cv_prog_OTOOL64+:} false; then :
13531  $as_echo_n "(cached) " >&6
13532else
13533  if test -n "$OTOOL64"; then
13534  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13535else
13536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13537for as_dir in $PATH
13538do
13539  IFS=$as_save_IFS
13540  test -z "$as_dir" && as_dir=.
13541    for ac_exec_ext in '' $ac_executable_extensions; do
13542  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13543    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13545    break 2
13546  fi
13547done
13548  done
13549IFS=$as_save_IFS
13550
13551fi
13552fi
13553OTOOL64=$ac_cv_prog_OTOOL64
13554if test -n "$OTOOL64"; then
13555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13556$as_echo "$OTOOL64" >&6; }
13557else
13558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13559$as_echo "no" >&6; }
13560fi
13561
13562
13563fi
13564if test -z "$ac_cv_prog_OTOOL64"; then
13565  ac_ct_OTOOL64=$OTOOL64
13566  # Extract the first word of "otool64", so it can be a program name with args.
13567set dummy otool64; ac_word=$2
13568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13569$as_echo_n "checking for $ac_word... " >&6; }
13570if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13571  $as_echo_n "(cached) " >&6
13572else
13573  if test -n "$ac_ct_OTOOL64"; then
13574  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13575else
13576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13577for as_dir in $PATH
13578do
13579  IFS=$as_save_IFS
13580  test -z "$as_dir" && as_dir=.
13581    for ac_exec_ext in '' $ac_executable_extensions; do
13582  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13583    ac_cv_prog_ac_ct_OTOOL64="otool64"
13584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13585    break 2
13586  fi
13587done
13588  done
13589IFS=$as_save_IFS
13590
13591fi
13592fi
13593ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13594if test -n "$ac_ct_OTOOL64"; then
13595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13596$as_echo "$ac_ct_OTOOL64" >&6; }
13597else
13598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13599$as_echo "no" >&6; }
13600fi
13601
13602  if test "x$ac_ct_OTOOL64" = x; then
13603    OTOOL64=":"
13604  else
13605    case $cross_compiling:$ac_tool_warned in
13606yes:)
13607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13609ac_tool_warned=yes ;;
13610esac
13611    OTOOL64=$ac_ct_OTOOL64
13612  fi
13613else
13614  OTOOL64="$ac_cv_prog_OTOOL64"
13615fi
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13644$as_echo_n "checking for -single_module linker flag... " >&6; }
13645if ${lt_cv_apple_cc_single_mod+:} false; then :
13646  $as_echo_n "(cached) " >&6
13647else
13648  lt_cv_apple_cc_single_mod=no
13649      if test -z "${LT_MULTI_MODULE}"; then
13650	# By default we will add the -single_module flag. You can override
13651	# by either setting the environment variable LT_MULTI_MODULE
13652	# non-empty at configure time, or by adding -multi_module to the
13653	# link flags.
13654	rm -rf libconftest.dylib*
13655	echo "int foo(void){return 1;}" > conftest.c
13656	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13657-dynamiclib -Wl,-single_module conftest.c" >&5
13658	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13659	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13660        _lt_result=$?
13661	# If there is a non-empty error log, and "single_module"
13662	# appears in it, assume the flag caused a linker warning
13663        if test -s conftest.err && $GREP single_module conftest.err; then
13664	  cat conftest.err >&5
13665	# Otherwise, if the output was created with a 0 exit code from
13666	# the compiler, it worked.
13667	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13668	  lt_cv_apple_cc_single_mod=yes
13669	else
13670	  cat conftest.err >&5
13671	fi
13672	rm -rf libconftest.dylib*
13673	rm -f conftest.*
13674      fi
13675fi
13676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13677$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13678
13679    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13680$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13681if ${lt_cv_ld_exported_symbols_list+:} false; then :
13682  $as_echo_n "(cached) " >&6
13683else
13684  lt_cv_ld_exported_symbols_list=no
13685      save_LDFLAGS=$LDFLAGS
13686      echo "_main" > conftest.sym
13687      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13688      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689/* end confdefs.h.  */
13690
13691int
13692main ()
13693{
13694
13695  ;
13696  return 0;
13697}
13698_ACEOF
13699if ac_fn_c_try_link "$LINENO"; then :
13700  lt_cv_ld_exported_symbols_list=yes
13701else
13702  lt_cv_ld_exported_symbols_list=no
13703fi
13704rm -f core conftest.err conftest.$ac_objext \
13705    conftest$ac_exeext conftest.$ac_ext
13706	LDFLAGS="$save_LDFLAGS"
13707
13708fi
13709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13710$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13711
13712    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13713$as_echo_n "checking for -force_load linker flag... " >&6; }
13714if ${lt_cv_ld_force_load+:} false; then :
13715  $as_echo_n "(cached) " >&6
13716else
13717  lt_cv_ld_force_load=no
13718      cat > conftest.c << _LT_EOF
13719int forced_loaded() { return 2;}
13720_LT_EOF
13721      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13722      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13723      echo "$AR cru libconftest.a conftest.o" >&5
13724      $AR cru libconftest.a conftest.o 2>&5
13725      echo "$RANLIB libconftest.a" >&5
13726      $RANLIB libconftest.a 2>&5
13727      cat > conftest.c << _LT_EOF
13728int main() { return 0;}
13729_LT_EOF
13730      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13731      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13732      _lt_result=$?
13733      if test -s conftest.err && $GREP force_load conftest.err; then
13734	cat conftest.err >&5
13735      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13736	lt_cv_ld_force_load=yes
13737      else
13738	cat conftest.err >&5
13739      fi
13740        rm -f conftest.err libconftest.a conftest conftest.c
13741        rm -rf conftest.dSYM
13742
13743fi
13744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13745$as_echo "$lt_cv_ld_force_load" >&6; }
13746    case $host_os in
13747    rhapsody* | darwin1.[012])
13748      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13749    darwin1.*)
13750      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13751    darwin*) # darwin 5.x on
13752      # if running on 10.5 or later, the deployment target defaults
13753      # to the OS version, if on x86, and 10.4, the deployment
13754      # target defaults to 10.4. Don't you love it?
13755      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13756	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13757	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13758	10.[012]*)
13759	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13760	10.*)
13761	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13762      esac
13763    ;;
13764  esac
13765    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13766      _lt_dar_single_mod='$single_module'
13767    fi
13768    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13769      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13770    else
13771      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13772    fi
13773    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13774      _lt_dsymutil='~$DSYMUTIL $lib || :'
13775    else
13776      _lt_dsymutil=
13777    fi
13778    ;;
13779  esac
13780
13781for ac_header in dlfcn.h
13782do :
13783  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13784"
13785if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13786  cat >>confdefs.h <<_ACEOF
13787#define HAVE_DLFCN_H 1
13788_ACEOF
13789
13790fi
13791
13792done
13793
13794
13795
13796
13797
13798# Set options
13799
13800
13801
13802        enable_dlopen=no
13803
13804
13805
13806            # Check whether --enable-shared was given.
13807if test "${enable_shared+set}" = set; then :
13808  enableval=$enable_shared; p=${PACKAGE-default}
13809    case $enableval in
13810    yes) enable_shared=yes ;;
13811    no) enable_shared=no ;;
13812    *)
13813      enable_shared=no
13814      # Look at the argument we got.  We use all the common list separators.
13815      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13816      for pkg in $enableval; do
13817	IFS="$lt_save_ifs"
13818	if test "X$pkg" = "X$p"; then
13819	  enable_shared=yes
13820	fi
13821      done
13822      IFS="$lt_save_ifs"
13823      ;;
13824    esac
13825else
13826  enable_shared=yes
13827fi
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837  # Check whether --enable-static was given.
13838if test "${enable_static+set}" = set; then :
13839  enableval=$enable_static; p=${PACKAGE-default}
13840    case $enableval in
13841    yes) enable_static=yes ;;
13842    no) enable_static=no ;;
13843    *)
13844     enable_static=no
13845      # Look at the argument we got.  We use all the common list separators.
13846      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13847      for pkg in $enableval; do
13848	IFS="$lt_save_ifs"
13849	if test "X$pkg" = "X$p"; then
13850	  enable_static=yes
13851	fi
13852      done
13853      IFS="$lt_save_ifs"
13854      ;;
13855    esac
13856else
13857  enable_static=yes
13858fi
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869# Check whether --with-pic was given.
13870if test "${with_pic+set}" = set; then :
13871  withval=$with_pic; lt_p=${PACKAGE-default}
13872    case $withval in
13873    yes|no) pic_mode=$withval ;;
13874    *)
13875      pic_mode=default
13876      # Look at the argument we got.  We use all the common list separators.
13877      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13878      for lt_pkg in $withval; do
13879	IFS="$lt_save_ifs"
13880	if test "X$lt_pkg" = "X$lt_p"; then
13881	  pic_mode=yes
13882	fi
13883      done
13884      IFS="$lt_save_ifs"
13885      ;;
13886    esac
13887else
13888  pic_mode=default
13889fi
13890
13891
13892test -z "$pic_mode" && pic_mode=default
13893
13894
13895
13896
13897
13898
13899
13900  # Check whether --enable-fast-install was given.
13901if test "${enable_fast_install+set}" = set; then :
13902  enableval=$enable_fast_install; p=${PACKAGE-default}
13903    case $enableval in
13904    yes) enable_fast_install=yes ;;
13905    no) enable_fast_install=no ;;
13906    *)
13907      enable_fast_install=no
13908      # Look at the argument we got.  We use all the common list separators.
13909      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13910      for pkg in $enableval; do
13911	IFS="$lt_save_ifs"
13912	if test "X$pkg" = "X$p"; then
13913	  enable_fast_install=yes
13914	fi
13915      done
13916      IFS="$lt_save_ifs"
13917      ;;
13918    esac
13919else
13920  enable_fast_install=yes
13921fi
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933# This can be used to rebuild libtool when needed
13934LIBTOOL_DEPS="$ltmain"
13935
13936# Always use our own libtool.
13937LIBTOOL='$(SHELL) $(apr_builddir)/libtool'
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968test -z "$LN_S" && LN_S="ln -s"
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983if test -n "${ZSH_VERSION+set}" ; then
13984   setopt NO_GLOB_SUBST
13985fi
13986
13987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13988$as_echo_n "checking for objdir... " >&6; }
13989if ${lt_cv_objdir+:} false; then :
13990  $as_echo_n "(cached) " >&6
13991else
13992  rm -f .libs 2>/dev/null
13993mkdir .libs 2>/dev/null
13994if test -d .libs; then
13995  lt_cv_objdir=.libs
13996else
13997  # MS-DOS does not allow filenames that begin with a dot.
13998  lt_cv_objdir=_libs
13999fi
14000rmdir .libs 2>/dev/null
14001fi
14002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14003$as_echo "$lt_cv_objdir" >&6; }
14004objdir=$lt_cv_objdir
14005
14006
14007
14008
14009
14010cat >>confdefs.h <<_ACEOF
14011#define LT_OBJDIR "$lt_cv_objdir/"
14012_ACEOF
14013
14014
14015
14016
14017case $host_os in
14018aix3*)
14019  # AIX sometimes has problems with the GCC collect2 program.  For some
14020  # reason, if we set the COLLECT_NAMES environment variable, the problems
14021  # vanish in a puff of smoke.
14022  if test "X${COLLECT_NAMES+set}" != Xset; then
14023    COLLECT_NAMES=
14024    export COLLECT_NAMES
14025  fi
14026  ;;
14027esac
14028
14029# Global variables:
14030ofile=libtool
14031can_build_shared=yes
14032
14033# All known linkers require a `.a' archive for static linking (except MSVC,
14034# which needs '.lib').
14035libext=a
14036
14037with_gnu_ld="$lt_cv_prog_gnu_ld"
14038
14039old_CC="$CC"
14040old_CFLAGS="$CFLAGS"
14041
14042# Set sane defaults for various variables
14043test -z "$CC" && CC=cc
14044test -z "$LTCC" && LTCC=$CC
14045test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14046test -z "$LD" && LD=ld
14047test -z "$ac_objext" && ac_objext=o
14048
14049for cc_temp in $compiler""; do
14050  case $cc_temp in
14051    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14052    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14053    \-*) ;;
14054    *) break;;
14055  esac
14056done
14057cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14058
14059
14060# Only perform the check for file, if the check method requires it
14061test -z "$MAGIC_CMD" && MAGIC_CMD=file
14062case $deplibs_check_method in
14063file_magic*)
14064  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14065    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14066$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14067if ${lt_cv_path_MAGIC_CMD+:} false; then :
14068  $as_echo_n "(cached) " >&6
14069else
14070  case $MAGIC_CMD in
14071[\\/*] |  ?:[\\/]*)
14072  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14073  ;;
14074*)
14075  lt_save_MAGIC_CMD="$MAGIC_CMD"
14076  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14077  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14078  for ac_dir in $ac_dummy; do
14079    IFS="$lt_save_ifs"
14080    test -z "$ac_dir" && ac_dir=.
14081    if test -f $ac_dir/${ac_tool_prefix}file; then
14082      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14083      if test -n "$file_magic_test_file"; then
14084	case $deplibs_check_method in
14085	"file_magic "*)
14086	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14087	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14088	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14089	    $EGREP "$file_magic_regex" > /dev/null; then
14090	    :
14091	  else
14092	    cat <<_LT_EOF 1>&2
14093
14094*** Warning: the command libtool uses to detect shared libraries,
14095*** $file_magic_cmd, produces output that libtool cannot recognize.
14096*** The result is that libtool may fail to recognize shared libraries
14097*** as such.  This will affect the creation of libtool libraries that
14098*** depend on shared libraries, but programs linked with such libtool
14099*** libraries will work regardless of this problem.  Nevertheless, you
14100*** may want to report the problem to your system manager and/or to
14101*** bug-libtool@gnu.org
14102
14103_LT_EOF
14104	  fi ;;
14105	esac
14106      fi
14107      break
14108    fi
14109  done
14110  IFS="$lt_save_ifs"
14111  MAGIC_CMD="$lt_save_MAGIC_CMD"
14112  ;;
14113esac
14114fi
14115
14116MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14117if test -n "$MAGIC_CMD"; then
14118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14119$as_echo "$MAGIC_CMD" >&6; }
14120else
14121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14122$as_echo "no" >&6; }
14123fi
14124
14125
14126
14127
14128
14129if test -z "$lt_cv_path_MAGIC_CMD"; then
14130  if test -n "$ac_tool_prefix"; then
14131    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14132$as_echo_n "checking for file... " >&6; }
14133if ${lt_cv_path_MAGIC_CMD+:} false; then :
14134  $as_echo_n "(cached) " >&6
14135else
14136  case $MAGIC_CMD in
14137[\\/*] |  ?:[\\/]*)
14138  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14139  ;;
14140*)
14141  lt_save_MAGIC_CMD="$MAGIC_CMD"
14142  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14143  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14144  for ac_dir in $ac_dummy; do
14145    IFS="$lt_save_ifs"
14146    test -z "$ac_dir" && ac_dir=.
14147    if test -f $ac_dir/file; then
14148      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14149      if test -n "$file_magic_test_file"; then
14150	case $deplibs_check_method in
14151	"file_magic "*)
14152	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14153	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14154	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14155	    $EGREP "$file_magic_regex" > /dev/null; then
14156	    :
14157	  else
14158	    cat <<_LT_EOF 1>&2
14159
14160*** Warning: the command libtool uses to detect shared libraries,
14161*** $file_magic_cmd, produces output that libtool cannot recognize.
14162*** The result is that libtool may fail to recognize shared libraries
14163*** as such.  This will affect the creation of libtool libraries that
14164*** depend on shared libraries, but programs linked with such libtool
14165*** libraries will work regardless of this problem.  Nevertheless, you
14166*** may want to report the problem to your system manager and/or to
14167*** bug-libtool@gnu.org
14168
14169_LT_EOF
14170	  fi ;;
14171	esac
14172      fi
14173      break
14174    fi
14175  done
14176  IFS="$lt_save_ifs"
14177  MAGIC_CMD="$lt_save_MAGIC_CMD"
14178  ;;
14179esac
14180fi
14181
14182MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14183if test -n "$MAGIC_CMD"; then
14184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14185$as_echo "$MAGIC_CMD" >&6; }
14186else
14187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14188$as_echo "no" >&6; }
14189fi
14190
14191
14192  else
14193    MAGIC_CMD=:
14194  fi
14195fi
14196
14197  fi
14198  ;;
14199esac
14200
14201# Use C for the default configuration in the libtool script
14202
14203lt_save_CC="$CC"
14204ac_ext=c
14205ac_cpp='$CPP $CPPFLAGS'
14206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14208ac_compiler_gnu=$ac_cv_c_compiler_gnu
14209
14210
14211# Source file extension for C test sources.
14212ac_ext=c
14213
14214# Object file extension for compiled C test sources.
14215objext=o
14216objext=$objext
14217
14218# Code to be used in simple compile tests
14219lt_simple_compile_test_code="int some_variable = 0;"
14220
14221# Code to be used in simple link tests
14222lt_simple_link_test_code='int main(){return(0);}'
14223
14224
14225
14226
14227
14228
14229
14230# If no C compiler was specified, use CC.
14231LTCC=${LTCC-"$CC"}
14232
14233# If no C compiler flags were specified, use CFLAGS.
14234LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14235
14236# Allow CC to be a program name with arguments.
14237compiler=$CC
14238
14239# Save the default compiler, since it gets overwritten when the other
14240# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14241compiler_DEFAULT=$CC
14242
14243# save warnings/boilerplate of simple test code
14244ac_outfile=conftest.$ac_objext
14245echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14246eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14247_lt_compiler_boilerplate=`cat conftest.err`
14248$RM conftest*
14249
14250ac_outfile=conftest.$ac_objext
14251echo "$lt_simple_link_test_code" >conftest.$ac_ext
14252eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14253_lt_linker_boilerplate=`cat conftest.err`
14254$RM -r conftest*
14255
14256
14257## CAVEAT EMPTOR:
14258## There is no encapsulation within the following macros, do not change
14259## the running order or otherwise move them around unless you know exactly
14260## what you are doing...
14261if test -n "$compiler"; then
14262
14263lt_prog_compiler_no_builtin_flag=
14264
14265if test "$GCC" = yes; then
14266  case $cc_basename in
14267  nvcc*)
14268    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14269  *)
14270    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14271  esac
14272
14273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14274$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14275if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14276  $as_echo_n "(cached) " >&6
14277else
14278  lt_cv_prog_compiler_rtti_exceptions=no
14279   ac_outfile=conftest.$ac_objext
14280   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14281   lt_compiler_flag="-fno-rtti -fno-exceptions"
14282   # Insert the option either (1) after the last *FLAGS variable, or
14283   # (2) before a word containing "conftest.", or (3) at the end.
14284   # Note that $ac_compile itself does not contain backslashes and begins
14285   # with a dollar sign (not a hyphen), so the echo should work correctly.
14286   # The option is referenced via a variable to avoid confusing sed.
14287   lt_compile=`echo "$ac_compile" | $SED \
14288   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14289   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14290   -e 's:$: $lt_compiler_flag:'`
14291   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14292   (eval "$lt_compile" 2>conftest.err)
14293   ac_status=$?
14294   cat conftest.err >&5
14295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296   if (exit $ac_status) && test -s "$ac_outfile"; then
14297     # The compiler can only warn and ignore the option if not recognized
14298     # So say no if there are warnings other than the usual output.
14299     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14300     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14301     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14302       lt_cv_prog_compiler_rtti_exceptions=yes
14303     fi
14304   fi
14305   $RM conftest*
14306
14307fi
14308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14309$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14310
14311if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14312    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14313else
14314    :
14315fi
14316
14317fi
14318
14319
14320
14321
14322
14323
14324  lt_prog_compiler_wl=
14325lt_prog_compiler_pic=
14326lt_prog_compiler_static=
14327
14328
14329  if test "$GCC" = yes; then
14330    lt_prog_compiler_wl='-Wl,'
14331    lt_prog_compiler_static='-static'
14332
14333    case $host_os in
14334      aix*)
14335      # All AIX code is PIC.
14336      if test "$host_cpu" = ia64; then
14337	# AIX 5 now supports IA64 processor
14338	lt_prog_compiler_static='-Bstatic'
14339      fi
14340      ;;
14341
14342    amigaos*)
14343      case $host_cpu in
14344      powerpc)
14345            # see comment about AmigaOS4 .so support
14346            lt_prog_compiler_pic='-fPIC'
14347        ;;
14348      m68k)
14349            # FIXME: we need at least 68020 code to build shared libraries, but
14350            # adding the `-m68020' flag to GCC prevents building anything better,
14351            # like `-m68040'.
14352            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14353        ;;
14354      esac
14355      ;;
14356
14357    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14358      # PIC is the default for these OSes.
14359      ;;
14360
14361    mingw* | cygwin* | pw32* | os2* | cegcc*)
14362      # This hack is so that the source file can tell whether it is being
14363      # built for inclusion in a dll (and should export symbols for example).
14364      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14365      # (--disable-auto-import) libraries
14366      lt_prog_compiler_pic='-DDLL_EXPORT'
14367      ;;
14368
14369    darwin* | rhapsody*)
14370      # PIC is the default on this platform
14371      # Common symbols not allowed in MH_DYLIB files
14372      lt_prog_compiler_pic='-fno-common'
14373      ;;
14374
14375    haiku*)
14376      # PIC is the default for Haiku.
14377      # The "-static" flag exists, but is broken.
14378      lt_prog_compiler_static=
14379      ;;
14380
14381    hpux*)
14382      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14383      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14384      # sets the default TLS model and affects inlining.
14385      case $host_cpu in
14386      hppa*64*)
14387	# +Z the default
14388	;;
14389      *)
14390	lt_prog_compiler_pic='-fPIC'
14391	;;
14392      esac
14393      ;;
14394
14395    interix[3-9]*)
14396      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14397      # Instead, we relocate shared libraries at runtime.
14398      ;;
14399
14400    msdosdjgpp*)
14401      # Just because we use GCC doesn't mean we suddenly get shared libraries
14402      # on systems that don't support them.
14403      lt_prog_compiler_can_build_shared=no
14404      enable_shared=no
14405      ;;
14406
14407    *nto* | *qnx*)
14408      # QNX uses GNU C++, but need to define -shared option too, otherwise
14409      # it will coredump.
14410      lt_prog_compiler_pic='-fPIC -shared'
14411      ;;
14412
14413    sysv4*MP*)
14414      if test -d /usr/nec; then
14415	lt_prog_compiler_pic=-Kconform_pic
14416      fi
14417      ;;
14418
14419    *)
14420      lt_prog_compiler_pic='-fPIC'
14421      ;;
14422    esac
14423
14424    case $cc_basename in
14425    nvcc*) # Cuda Compiler Driver 2.2
14426      lt_prog_compiler_wl='-Xlinker '
14427      if test -n "$lt_prog_compiler_pic"; then
14428        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14429      fi
14430      ;;
14431    esac
14432  else
14433    # PORTME Check for flag to pass linker flags through the system compiler.
14434    case $host_os in
14435    aix*)
14436      lt_prog_compiler_wl='-Wl,'
14437      if test "$host_cpu" = ia64; then
14438	# AIX 5 now supports IA64 processor
14439	lt_prog_compiler_static='-Bstatic'
14440      else
14441	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14442      fi
14443      ;;
14444
14445    mingw* | cygwin* | pw32* | os2* | cegcc*)
14446      # This hack is so that the source file can tell whether it is being
14447      # built for inclusion in a dll (and should export symbols for example).
14448      lt_prog_compiler_pic='-DDLL_EXPORT'
14449      ;;
14450
14451    hpux9* | hpux10* | hpux11*)
14452      lt_prog_compiler_wl='-Wl,'
14453      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14454      # not for PA HP-UX.
14455      case $host_cpu in
14456      hppa*64*|ia64*)
14457	# +Z the default
14458	;;
14459      *)
14460	lt_prog_compiler_pic='+Z'
14461	;;
14462      esac
14463      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14464      lt_prog_compiler_static='${wl}-a ${wl}archive'
14465      ;;
14466
14467    irix5* | irix6* | nonstopux*)
14468      lt_prog_compiler_wl='-Wl,'
14469      # PIC (with -KPIC) is the default.
14470      lt_prog_compiler_static='-non_shared'
14471      ;;
14472
14473    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14474      case $cc_basename in
14475      # old Intel for x86_64 which still supported -KPIC.
14476      ecc*)
14477	lt_prog_compiler_wl='-Wl,'
14478	lt_prog_compiler_pic='-KPIC'
14479	lt_prog_compiler_static='-static'
14480        ;;
14481      # icc used to be incompatible with GCC.
14482      # ICC 10 doesn't accept -KPIC any more.
14483      icc* | ifort*)
14484	lt_prog_compiler_wl='-Wl,'
14485	lt_prog_compiler_pic='-fPIC'
14486	lt_prog_compiler_static='-static'
14487        ;;
14488      # Lahey Fortran 8.1.
14489      lf95*)
14490	lt_prog_compiler_wl='-Wl,'
14491	lt_prog_compiler_pic='--shared'
14492	lt_prog_compiler_static='--static'
14493	;;
14494      nagfor*)
14495	# NAG Fortran compiler
14496	lt_prog_compiler_wl='-Wl,-Wl,,'
14497	lt_prog_compiler_pic='-PIC'
14498	lt_prog_compiler_static='-Bstatic'
14499	;;
14500      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14501        # Portland Group compilers (*not* the Pentium gcc compiler,
14502	# which looks to be a dead project)
14503	lt_prog_compiler_wl='-Wl,'
14504	lt_prog_compiler_pic='-fpic'
14505	lt_prog_compiler_static='-Bstatic'
14506        ;;
14507      ccc*)
14508        lt_prog_compiler_wl='-Wl,'
14509        # All Alpha code is PIC.
14510        lt_prog_compiler_static='-non_shared'
14511        ;;
14512      xl* | bgxl* | bgf* | mpixl*)
14513	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14514	lt_prog_compiler_wl='-Wl,'
14515	lt_prog_compiler_pic='-qpic'
14516	lt_prog_compiler_static='-qstaticlink'
14517	;;
14518      *)
14519	case `$CC -V 2>&1 | sed 5q` in
14520	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14521	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14522	  lt_prog_compiler_pic='-KPIC'
14523	  lt_prog_compiler_static='-Bstatic'
14524	  lt_prog_compiler_wl=''
14525	  ;;
14526	*Sun\ F* | *Sun*Fortran*)
14527	  lt_prog_compiler_pic='-KPIC'
14528	  lt_prog_compiler_static='-Bstatic'
14529	  lt_prog_compiler_wl='-Qoption ld '
14530	  ;;
14531	*Sun\ C*)
14532	  # Sun C 5.9
14533	  lt_prog_compiler_pic='-KPIC'
14534	  lt_prog_compiler_static='-Bstatic'
14535	  lt_prog_compiler_wl='-Wl,'
14536	  ;;
14537        *Intel*\ [CF]*Compiler*)
14538	  lt_prog_compiler_wl='-Wl,'
14539	  lt_prog_compiler_pic='-fPIC'
14540	  lt_prog_compiler_static='-static'
14541	  ;;
14542	*Portland\ Group*)
14543	  lt_prog_compiler_wl='-Wl,'
14544	  lt_prog_compiler_pic='-fpic'
14545	  lt_prog_compiler_static='-Bstatic'
14546	  ;;
14547	esac
14548	;;
14549      esac
14550      ;;
14551
14552    newsos6)
14553      lt_prog_compiler_pic='-KPIC'
14554      lt_prog_compiler_static='-Bstatic'
14555      ;;
14556
14557    *nto* | *qnx*)
14558      # QNX uses GNU C++, but need to define -shared option too, otherwise
14559      # it will coredump.
14560      lt_prog_compiler_pic='-fPIC -shared'
14561      ;;
14562
14563    osf3* | osf4* | osf5*)
14564      lt_prog_compiler_wl='-Wl,'
14565      # All OSF/1 code is PIC.
14566      lt_prog_compiler_static='-non_shared'
14567      ;;
14568
14569    rdos*)
14570      lt_prog_compiler_static='-non_shared'
14571      ;;
14572
14573    solaris*)
14574      lt_prog_compiler_pic='-KPIC'
14575      lt_prog_compiler_static='-Bstatic'
14576      case $cc_basename in
14577      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14578	lt_prog_compiler_wl='-Qoption ld ';;
14579      *)
14580	lt_prog_compiler_wl='-Wl,';;
14581      esac
14582      ;;
14583
14584    sunos4*)
14585      lt_prog_compiler_wl='-Qoption ld '
14586      lt_prog_compiler_pic='-PIC'
14587      lt_prog_compiler_static='-Bstatic'
14588      ;;
14589
14590    sysv4 | sysv4.2uw2* | sysv4.3*)
14591      lt_prog_compiler_wl='-Wl,'
14592      lt_prog_compiler_pic='-KPIC'
14593      lt_prog_compiler_static='-Bstatic'
14594      ;;
14595
14596    sysv4*MP*)
14597      if test -d /usr/nec ;then
14598	lt_prog_compiler_pic='-Kconform_pic'
14599	lt_prog_compiler_static='-Bstatic'
14600      fi
14601      ;;
14602
14603    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14604      lt_prog_compiler_wl='-Wl,'
14605      lt_prog_compiler_pic='-KPIC'
14606      lt_prog_compiler_static='-Bstatic'
14607      ;;
14608
14609    unicos*)
14610      lt_prog_compiler_wl='-Wl,'
14611      lt_prog_compiler_can_build_shared=no
14612      ;;
14613
14614    uts4*)
14615      lt_prog_compiler_pic='-pic'
14616      lt_prog_compiler_static='-Bstatic'
14617      ;;
14618
14619    *)
14620      lt_prog_compiler_can_build_shared=no
14621      ;;
14622    esac
14623  fi
14624
14625case $host_os in
14626  # For platforms which do not support PIC, -DPIC is meaningless:
14627  *djgpp*)
14628    lt_prog_compiler_pic=
14629    ;;
14630  *)
14631    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14632    ;;
14633esac
14634
14635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14636$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14637if ${lt_cv_prog_compiler_pic+:} false; then :
14638  $as_echo_n "(cached) " >&6
14639else
14640  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14641fi
14642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14643$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14644lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14645
14646#
14647# Check to make sure the PIC flag actually works.
14648#
14649if test -n "$lt_prog_compiler_pic"; then
14650  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14651$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14652if ${lt_cv_prog_compiler_pic_works+:} false; then :
14653  $as_echo_n "(cached) " >&6
14654else
14655  lt_cv_prog_compiler_pic_works=no
14656   ac_outfile=conftest.$ac_objext
14657   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14658   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14659   # Insert the option either (1) after the last *FLAGS variable, or
14660   # (2) before a word containing "conftest.", or (3) at the end.
14661   # Note that $ac_compile itself does not contain backslashes and begins
14662   # with a dollar sign (not a hyphen), so the echo should work correctly.
14663   # The option is referenced via a variable to avoid confusing sed.
14664   lt_compile=`echo "$ac_compile" | $SED \
14665   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14666   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14667   -e 's:$: $lt_compiler_flag:'`
14668   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14669   (eval "$lt_compile" 2>conftest.err)
14670   ac_status=$?
14671   cat conftest.err >&5
14672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673   if (exit $ac_status) && test -s "$ac_outfile"; then
14674     # The compiler can only warn and ignore the option if not recognized
14675     # So say no if there are warnings other than the usual output.
14676     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14677     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14678     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14679       lt_cv_prog_compiler_pic_works=yes
14680     fi
14681   fi
14682   $RM conftest*
14683
14684fi
14685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14686$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14687
14688if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14689    case $lt_prog_compiler_pic in
14690     "" | " "*) ;;
14691     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14692     esac
14693else
14694    lt_prog_compiler_pic=
14695     lt_prog_compiler_can_build_shared=no
14696fi
14697
14698fi
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710#
14711# Check to make sure the static flag actually works.
14712#
14713wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14715$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14716if ${lt_cv_prog_compiler_static_works+:} false; then :
14717  $as_echo_n "(cached) " >&6
14718else
14719  lt_cv_prog_compiler_static_works=no
14720   save_LDFLAGS="$LDFLAGS"
14721   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14722   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14723   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14724     # The linker can only warn and ignore the option if not recognized
14725     # So say no if there are warnings
14726     if test -s conftest.err; then
14727       # Append any errors to the config.log.
14728       cat conftest.err 1>&5
14729       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14730       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14731       if diff conftest.exp conftest.er2 >/dev/null; then
14732         lt_cv_prog_compiler_static_works=yes
14733       fi
14734     else
14735       lt_cv_prog_compiler_static_works=yes
14736     fi
14737   fi
14738   $RM -r conftest*
14739   LDFLAGS="$save_LDFLAGS"
14740
14741fi
14742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14743$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14744
14745if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14746    :
14747else
14748    lt_prog_compiler_static=
14749fi
14750
14751
14752
14753
14754
14755
14756
14757  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14758$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14759if ${lt_cv_prog_compiler_c_o+:} false; then :
14760  $as_echo_n "(cached) " >&6
14761else
14762  lt_cv_prog_compiler_c_o=no
14763   $RM -r conftest 2>/dev/null
14764   mkdir conftest
14765   cd conftest
14766   mkdir out
14767   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14768
14769   lt_compiler_flag="-o out/conftest2.$ac_objext"
14770   # Insert the option either (1) after the last *FLAGS variable, or
14771   # (2) before a word containing "conftest.", or (3) at the end.
14772   # Note that $ac_compile itself does not contain backslashes and begins
14773   # with a dollar sign (not a hyphen), so the echo should work correctly.
14774   lt_compile=`echo "$ac_compile" | $SED \
14775   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14776   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14777   -e 's:$: $lt_compiler_flag:'`
14778   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14779   (eval "$lt_compile" 2>out/conftest.err)
14780   ac_status=$?
14781   cat out/conftest.err >&5
14782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14784   then
14785     # The compiler can only warn and ignore the option if not recognized
14786     # So say no if there are warnings
14787     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14788     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14789     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14790       lt_cv_prog_compiler_c_o=yes
14791     fi
14792   fi
14793   chmod u+w . 2>&5
14794   $RM conftest*
14795   # SGI C++ compiler will create directory out/ii_files/ for
14796   # template instantiation
14797   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14798   $RM out/* && rmdir out
14799   cd ..
14800   $RM -r conftest
14801   $RM conftest*
14802
14803fi
14804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14805$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14806
14807
14808
14809
14810
14811
14812  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14813$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14814if ${lt_cv_prog_compiler_c_o+:} false; then :
14815  $as_echo_n "(cached) " >&6
14816else
14817  lt_cv_prog_compiler_c_o=no
14818   $RM -r conftest 2>/dev/null
14819   mkdir conftest
14820   cd conftest
14821   mkdir out
14822   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14823
14824   lt_compiler_flag="-o out/conftest2.$ac_objext"
14825   # Insert the option either (1) after the last *FLAGS variable, or
14826   # (2) before a word containing "conftest.", or (3) at the end.
14827   # Note that $ac_compile itself does not contain backslashes and begins
14828   # with a dollar sign (not a hyphen), so the echo should work correctly.
14829   lt_compile=`echo "$ac_compile" | $SED \
14830   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14831   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14832   -e 's:$: $lt_compiler_flag:'`
14833   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14834   (eval "$lt_compile" 2>out/conftest.err)
14835   ac_status=$?
14836   cat out/conftest.err >&5
14837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14839   then
14840     # The compiler can only warn and ignore the option if not recognized
14841     # So say no if there are warnings
14842     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14843     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14844     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14845       lt_cv_prog_compiler_c_o=yes
14846     fi
14847   fi
14848   chmod u+w . 2>&5
14849   $RM conftest*
14850   # SGI C++ compiler will create directory out/ii_files/ for
14851   # template instantiation
14852   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14853   $RM out/* && rmdir out
14854   cd ..
14855   $RM -r conftest
14856   $RM conftest*
14857
14858fi
14859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14860$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14861
14862
14863
14864
14865hard_links="nottested"
14866if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14867  # do not overwrite the value of need_locks provided by the user
14868  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14869$as_echo_n "checking if we can lock with hard links... " >&6; }
14870  hard_links=yes
14871  $RM conftest*
14872  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14873  touch conftest.a
14874  ln conftest.a conftest.b 2>&5 || hard_links=no
14875  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14877$as_echo "$hard_links" >&6; }
14878  if test "$hard_links" = no; then
14879    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14880$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14881    need_locks=warn
14882  fi
14883else
14884  need_locks=no
14885fi
14886
14887
14888
14889
14890
14891
14892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14893$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14894
14895  runpath_var=
14896  allow_undefined_flag=
14897  always_export_symbols=no
14898  archive_cmds=
14899  archive_expsym_cmds=
14900  compiler_needs_object=no
14901  enable_shared_with_static_runtimes=no
14902  export_dynamic_flag_spec=
14903  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14904  hardcode_automatic=no
14905  hardcode_direct=no
14906  hardcode_direct_absolute=no
14907  hardcode_libdir_flag_spec=
14908  hardcode_libdir_separator=
14909  hardcode_minus_L=no
14910  hardcode_shlibpath_var=unsupported
14911  inherit_rpath=no
14912  link_all_deplibs=unknown
14913  module_cmds=
14914  module_expsym_cmds=
14915  old_archive_from_new_cmds=
14916  old_archive_from_expsyms_cmds=
14917  thread_safe_flag_spec=
14918  whole_archive_flag_spec=
14919  # include_expsyms should be a list of space-separated symbols to be *always*
14920  # included in the symbol list
14921  include_expsyms=
14922  # exclude_expsyms can be an extended regexp of symbols to exclude
14923  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14924  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14925  # as well as any symbol that contains `d'.
14926  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14927  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14928  # platforms (ab)use it in PIC code, but their linkers get confused if
14929  # the symbol is explicitly referenced.  Since portable code cannot
14930  # rely on this symbol name, it's probably fine to never include it in
14931  # preloaded symbol tables.
14932  # Exclude shared library initialization/finalization symbols.
14933  extract_expsyms_cmds=
14934
14935  case $host_os in
14936  cygwin* | mingw* | pw32* | cegcc*)
14937    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14938    # When not using gcc, we currently assume that we are using
14939    # Microsoft Visual C++.
14940    if test "$GCC" != yes; then
14941      with_gnu_ld=no
14942    fi
14943    ;;
14944  interix*)
14945    # we just hope/assume this is gcc and not c89 (= MSVC++)
14946    with_gnu_ld=yes
14947    ;;
14948  openbsd*)
14949    with_gnu_ld=no
14950    ;;
14951  esac
14952
14953  ld_shlibs=yes
14954
14955  # On some targets, GNU ld is compatible enough with the native linker
14956  # that we're better off using the native interface for both.
14957  lt_use_gnu_ld_interface=no
14958  if test "$with_gnu_ld" = yes; then
14959    case $host_os in
14960      aix*)
14961	# The AIX port of GNU ld has always aspired to compatibility
14962	# with the native linker.  However, as the warning in the GNU ld
14963	# block says, versions before 2.19.5* couldn't really create working
14964	# shared libraries, regardless of the interface used.
14965	case `$LD -v 2>&1` in
14966	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14967	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14968	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14969	  *)
14970	    lt_use_gnu_ld_interface=yes
14971	    ;;
14972	esac
14973	;;
14974      *)
14975	lt_use_gnu_ld_interface=yes
14976	;;
14977    esac
14978  fi
14979
14980  if test "$lt_use_gnu_ld_interface" = yes; then
14981    # If archive_cmds runs LD, not CC, wlarc should be empty
14982    wlarc='${wl}'
14983
14984    # Set some defaults for GNU ld with shared library support. These
14985    # are reset later if shared libraries are not supported. Putting them
14986    # here allows them to be overridden if necessary.
14987    runpath_var=LD_RUN_PATH
14988    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14989    export_dynamic_flag_spec='${wl}--export-dynamic'
14990    # ancient GNU ld didn't support --whole-archive et. al.
14991    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14992      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14993    else
14994      whole_archive_flag_spec=
14995    fi
14996    supports_anon_versioning=no
14997    case `$LD -v 2>&1` in
14998      *GNU\ gold*) supports_anon_versioning=yes ;;
14999      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15000      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15001      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15002      *\ 2.11.*) ;; # other 2.11 versions
15003      *) supports_anon_versioning=yes ;;
15004    esac
15005
15006    # See if GNU ld supports shared libraries.
15007    case $host_os in
15008    aix[3-9]*)
15009      # On AIX/PPC, the GNU linker is very broken
15010      if test "$host_cpu" != ia64; then
15011	ld_shlibs=no
15012	cat <<_LT_EOF 1>&2
15013
15014*** Warning: the GNU linker, at least up to release 2.19, is reported
15015*** to be unable to reliably create shared libraries on AIX.
15016*** Therefore, libtool is disabling shared libraries support.  If you
15017*** really care for shared libraries, you may want to install binutils
15018*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15019*** You will then need to restart the configuration process.
15020
15021_LT_EOF
15022      fi
15023      ;;
15024
15025    amigaos*)
15026      case $host_cpu in
15027      powerpc)
15028            # see comment about AmigaOS4 .so support
15029            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15030            archive_expsym_cmds=''
15031        ;;
15032      m68k)
15033            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)'
15034            hardcode_libdir_flag_spec='-L$libdir'
15035            hardcode_minus_L=yes
15036        ;;
15037      esac
15038      ;;
15039
15040    beos*)
15041      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15042	allow_undefined_flag=unsupported
15043	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15044	# support --undefined.  This deserves some investigation.  FIXME
15045	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15046      else
15047	ld_shlibs=no
15048      fi
15049      ;;
15050
15051    cygwin* | mingw* | pw32* | cegcc*)
15052      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15053      # as there is no search path for DLLs.
15054      hardcode_libdir_flag_spec='-L$libdir'
15055      export_dynamic_flag_spec='${wl}--export-all-symbols'
15056      allow_undefined_flag=unsupported
15057      always_export_symbols=no
15058      enable_shared_with_static_runtimes=yes
15059      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'
15060      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15061
15062      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15063        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15064	# If the export-symbols file already is a .def file (1st line
15065	# is EXPORTS), use it as is; otherwise, prepend...
15066	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15067	  cp $export_symbols $output_objdir/$soname.def;
15068	else
15069	  echo EXPORTS > $output_objdir/$soname.def;
15070	  cat $export_symbols >> $output_objdir/$soname.def;
15071	fi~
15072	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15073      else
15074	ld_shlibs=no
15075      fi
15076      ;;
15077
15078    haiku*)
15079      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15080      link_all_deplibs=yes
15081      ;;
15082
15083    interix[3-9]*)
15084      hardcode_direct=no
15085      hardcode_shlibpath_var=no
15086      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15087      export_dynamic_flag_spec='${wl}-E'
15088      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15089      # Instead, shared libraries are loaded at an image base (0x10000000 by
15090      # default) and relocated if they conflict, which is a slow very memory
15091      # consuming and fragmenting process.  To avoid this, we pick a random,
15092      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15093      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15094      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15095      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'
15096      ;;
15097
15098    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15099      tmp_diet=no
15100      if test "$host_os" = linux-dietlibc; then
15101	case $cc_basename in
15102	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15103	esac
15104      fi
15105      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15106	 && test "$tmp_diet" = no
15107      then
15108	tmp_addflag=' $pic_flag'
15109	tmp_sharedflag='-shared'
15110	case $cc_basename,$host_cpu in
15111        pgcc*)				# Portland Group C compiler
15112	  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'
15113	  tmp_addflag=' $pic_flag'
15114	  ;;
15115	pgf77* | pgf90* | pgf95* | pgfortran*)
15116					# Portland Group f77 and f90 compilers
15117	  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'
15118	  tmp_addflag=' $pic_flag -Mnomain' ;;
15119	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15120	  tmp_addflag=' -i_dynamic' ;;
15121	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15122	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15123	ifc* | ifort*)			# Intel Fortran compiler
15124	  tmp_addflag=' -nofor_main' ;;
15125	lf95*)				# Lahey Fortran 8.1
15126	  whole_archive_flag_spec=
15127	  tmp_sharedflag='--shared' ;;
15128	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15129	  tmp_sharedflag='-qmkshrobj'
15130	  tmp_addflag= ;;
15131	nvcc*)	# Cuda Compiler Driver 2.2
15132	  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'
15133	  compiler_needs_object=yes
15134	  ;;
15135	esac
15136	case `$CC -V 2>&1 | sed 5q` in
15137	*Sun\ C*)			# Sun C 5.9
15138	  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'
15139	  compiler_needs_object=yes
15140	  tmp_sharedflag='-G' ;;
15141	*Sun\ F*)			# Sun Fortran 8.3
15142	  tmp_sharedflag='-G' ;;
15143	esac
15144	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15145
15146        if test "x$supports_anon_versioning" = xyes; then
15147          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15148	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15149	    echo "local: *; };" >> $output_objdir/$libname.ver~
15150	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15151        fi
15152
15153	case $cc_basename in
15154	xlf* | bgf* | bgxlf* | mpixlf*)
15155	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15156	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15157	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15158	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15159	  if test "x$supports_anon_versioning" = xyes; then
15160	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15161	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15162	      echo "local: *; };" >> $output_objdir/$libname.ver~
15163	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15164	  fi
15165	  ;;
15166	esac
15167      else
15168        ld_shlibs=no
15169      fi
15170      ;;
15171
15172    netbsd*)
15173      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15174	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15175	wlarc=
15176      else
15177	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15178	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15179      fi
15180      ;;
15181
15182    solaris*)
15183      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15184	ld_shlibs=no
15185	cat <<_LT_EOF 1>&2
15186
15187*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15188*** create shared libraries on Solaris systems.  Therefore, libtool
15189*** is disabling shared libraries support.  We urge you to upgrade GNU
15190*** binutils to release 2.9.1 or newer.  Another option is to modify
15191*** your PATH or compiler configuration so that the native linker is
15192*** used, and then restart.
15193
15194_LT_EOF
15195      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15196	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15197	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15198      else
15199	ld_shlibs=no
15200      fi
15201      ;;
15202
15203    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15204      case `$LD -v 2>&1` in
15205        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15206	ld_shlibs=no
15207	cat <<_LT_EOF 1>&2
15208
15209*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15210*** reliably create shared libraries on SCO systems.  Therefore, libtool
15211*** is disabling shared libraries support.  We urge you to upgrade GNU
15212*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15213*** your PATH or compiler configuration so that the native linker is
15214*** used, and then restart.
15215
15216_LT_EOF
15217	;;
15218	*)
15219	  # For security reasons, it is highly recommended that you always
15220	  # use absolute paths for naming shared libraries, and exclude the
15221	  # DT_RUNPATH tag from executables and libraries.  But doing so
15222	  # requires that you compile everything twice, which is a pain.
15223	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15224	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15225	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15226	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15227	  else
15228	    ld_shlibs=no
15229	  fi
15230	;;
15231      esac
15232      ;;
15233
15234    sunos4*)
15235      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15236      wlarc=
15237      hardcode_direct=yes
15238      hardcode_shlibpath_var=no
15239      ;;
15240
15241    *)
15242      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15243	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15244	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15245      else
15246	ld_shlibs=no
15247      fi
15248      ;;
15249    esac
15250
15251    if test "$ld_shlibs" = no; then
15252      runpath_var=
15253      hardcode_libdir_flag_spec=
15254      export_dynamic_flag_spec=
15255      whole_archive_flag_spec=
15256    fi
15257  else
15258    # PORTME fill in a description of your system's linker (not GNU ld)
15259    case $host_os in
15260    aix3*)
15261      allow_undefined_flag=unsupported
15262      always_export_symbols=yes
15263      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'
15264      # Note: this linker hardcodes the directories in LIBPATH if there
15265      # are no directories specified by -L.
15266      hardcode_minus_L=yes
15267      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15268	# Neither direct hardcoding nor static linking is supported with a
15269	# broken collect2.
15270	hardcode_direct=unsupported
15271      fi
15272      ;;
15273
15274    aix[4-9]*)
15275      if test "$host_cpu" = ia64; then
15276	# On IA64, the linker does run time linking by default, so we don't
15277	# have to do anything special.
15278	aix_use_runtimelinking=no
15279	exp_sym_flag='-Bexport'
15280	no_entry_flag=""
15281      else
15282	# If we're using GNU nm, then we don't want the "-C" option.
15283	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15284	# Also, AIX nm treats weak defined symbols like other global
15285	# defined symbols, whereas GNU nm marks them as "W".
15286	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15287	  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'
15288	else
15289	  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'
15290	fi
15291	aix_use_runtimelinking=no
15292
15293	# Test if we are trying to use run time linking or normal
15294	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15295	# need to do runtime linking.
15296	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15297	  for ld_flag in $LDFLAGS; do
15298	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15299	    aix_use_runtimelinking=yes
15300	    break
15301	  fi
15302	  done
15303	  ;;
15304	esac
15305
15306	exp_sym_flag='-bexport'
15307	no_entry_flag='-bnoentry'
15308      fi
15309
15310      # When large executables or shared objects are built, AIX ld can
15311      # have problems creating the table of contents.  If linking a library
15312      # or program results in "error TOC overflow" add -mminimal-toc to
15313      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15314      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15315
15316      archive_cmds=''
15317      hardcode_direct=yes
15318      hardcode_direct_absolute=yes
15319      hardcode_libdir_separator=':'
15320      link_all_deplibs=yes
15321      file_list_spec='${wl}-f,'
15322
15323      if test "$GCC" = yes; then
15324	case $host_os in aix4.[012]|aix4.[012].*)
15325	# We only want to do this on AIX 4.2 and lower, the check
15326	# below for broken collect2 doesn't work under 4.3+
15327	  collect2name=`${CC} -print-prog-name=collect2`
15328	  if test -f "$collect2name" &&
15329	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15330	  then
15331	  # We have reworked collect2
15332	  :
15333	  else
15334	  # We have old collect2
15335	  hardcode_direct=unsupported
15336	  # It fails to find uninstalled libraries when the uninstalled
15337	  # path is not listed in the libpath.  Setting hardcode_minus_L
15338	  # to unsupported forces relinking
15339	  hardcode_minus_L=yes
15340	  hardcode_libdir_flag_spec='-L$libdir'
15341	  hardcode_libdir_separator=
15342	  fi
15343	  ;;
15344	esac
15345	shared_flag='-shared'
15346	if test "$aix_use_runtimelinking" = yes; then
15347	  shared_flag="$shared_flag "'${wl}-G'
15348	fi
15349      else
15350	# not using gcc
15351	if test "$host_cpu" = ia64; then
15352	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15353	# chokes on -Wl,-G. The following line is correct:
15354	  shared_flag='-G'
15355	else
15356	  if test "$aix_use_runtimelinking" = yes; then
15357	    shared_flag='${wl}-G'
15358	  else
15359	    shared_flag='${wl}-bM:SRE'
15360	  fi
15361	fi
15362      fi
15363
15364      export_dynamic_flag_spec='${wl}-bexpall'
15365      # It seems that -bexpall does not export symbols beginning with
15366      # underscore (_), so it is better to generate a list of symbols to export.
15367      always_export_symbols=yes
15368      if test "$aix_use_runtimelinking" = yes; then
15369	# Warning - without using the other runtime loading flags (-brtl),
15370	# -berok will link without error, but may produce a broken library.
15371	allow_undefined_flag='-berok'
15372        # Determine the default libpath from the value encoded in an
15373        # empty executable.
15374        if test "${lt_cv_aix_libpath+set}" = set; then
15375  aix_libpath=$lt_cv_aix_libpath
15376else
15377  if ${lt_cv_aix_libpath_+:} false; then :
15378  $as_echo_n "(cached) " >&6
15379else
15380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381/* end confdefs.h.  */
15382
15383int
15384main ()
15385{
15386
15387  ;
15388  return 0;
15389}
15390_ACEOF
15391if ac_fn_c_try_link "$LINENO"; then :
15392
15393  lt_aix_libpath_sed='
15394      /Import File Strings/,/^$/ {
15395	  /^0/ {
15396	      s/^0  *\([^ ]*\) *$/\1/
15397	      p
15398	  }
15399      }'
15400  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15401  # Check for a 64-bit object if we didn't find anything.
15402  if test -z "$lt_cv_aix_libpath_"; then
15403    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15404  fi
15405fi
15406rm -f core conftest.err conftest.$ac_objext \
15407    conftest$ac_exeext conftest.$ac_ext
15408  if test -z "$lt_cv_aix_libpath_"; then
15409    lt_cv_aix_libpath_="/usr/lib:/lib"
15410  fi
15411
15412fi
15413
15414  aix_libpath=$lt_cv_aix_libpath_
15415fi
15416
15417        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15418        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"
15419      else
15420	if test "$host_cpu" = ia64; then
15421	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15422	  allow_undefined_flag="-z nodefs"
15423	  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"
15424	else
15425	 # Determine the default libpath from the value encoded in an
15426	 # empty executable.
15427	 if test "${lt_cv_aix_libpath+set}" = set; then
15428  aix_libpath=$lt_cv_aix_libpath
15429else
15430  if ${lt_cv_aix_libpath_+:} false; then :
15431  $as_echo_n "(cached) " >&6
15432else
15433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15434/* end confdefs.h.  */
15435
15436int
15437main ()
15438{
15439
15440  ;
15441  return 0;
15442}
15443_ACEOF
15444if ac_fn_c_try_link "$LINENO"; then :
15445
15446  lt_aix_libpath_sed='
15447      /Import File Strings/,/^$/ {
15448	  /^0/ {
15449	      s/^0  *\([^ ]*\) *$/\1/
15450	      p
15451	  }
15452      }'
15453  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15454  # Check for a 64-bit object if we didn't find anything.
15455  if test -z "$lt_cv_aix_libpath_"; then
15456    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15457  fi
15458fi
15459rm -f core conftest.err conftest.$ac_objext \
15460    conftest$ac_exeext conftest.$ac_ext
15461  if test -z "$lt_cv_aix_libpath_"; then
15462    lt_cv_aix_libpath_="/usr/lib:/lib"
15463  fi
15464
15465fi
15466
15467  aix_libpath=$lt_cv_aix_libpath_
15468fi
15469
15470	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15471	  # Warning - without using the other run time loading flags,
15472	  # -berok will link without error, but may produce a broken library.
15473	  no_undefined_flag=' ${wl}-bernotok'
15474	  allow_undefined_flag=' ${wl}-berok'
15475	  if test "$with_gnu_ld" = yes; then
15476	    # We only use this code for GNU lds that support --whole-archive.
15477	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15478	  else
15479	    # Exported symbols can be pulled into shared objects from archives
15480	    whole_archive_flag_spec='$convenience'
15481	  fi
15482	  archive_cmds_need_lc=yes
15483	  # This is similar to how AIX traditionally builds its shared libraries.
15484	  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'
15485	fi
15486      fi
15487      ;;
15488
15489    amigaos*)
15490      case $host_cpu in
15491      powerpc)
15492            # see comment about AmigaOS4 .so support
15493            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15494            archive_expsym_cmds=''
15495        ;;
15496      m68k)
15497            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)'
15498            hardcode_libdir_flag_spec='-L$libdir'
15499            hardcode_minus_L=yes
15500        ;;
15501      esac
15502      ;;
15503
15504    bsdi[45]*)
15505      export_dynamic_flag_spec=-rdynamic
15506      ;;
15507
15508    cygwin* | mingw* | pw32* | cegcc*)
15509      # When not using gcc, we currently assume that we are using
15510      # Microsoft Visual C++.
15511      # hardcode_libdir_flag_spec is actually meaningless, as there is
15512      # no search path for DLLs.
15513      case $cc_basename in
15514      cl*)
15515	# Native MSVC
15516	hardcode_libdir_flag_spec=' '
15517	allow_undefined_flag=unsupported
15518	always_export_symbols=yes
15519	file_list_spec='@'
15520	# Tell ltmain to make .lib files, not .a files.
15521	libext=lib
15522	# Tell ltmain to make .dll files, not .so files.
15523	shrext_cmds=".dll"
15524	# FIXME: Setting linknames here is a bad hack.
15525	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15526	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15527	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15528	  else
15529	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15530	  fi~
15531	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15532	  linknames='
15533	# The linker will not automatically build a static lib if we build a DLL.
15534	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15535	enable_shared_with_static_runtimes=yes
15536	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15537	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15538	# Don't use ranlib
15539	old_postinstall_cmds='chmod 644 $oldlib'
15540	postlink_cmds='lt_outputfile="@OUTPUT@"~
15541	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15542	  case $lt_outputfile in
15543	    *.exe|*.EXE) ;;
15544	    *)
15545	      lt_outputfile="$lt_outputfile.exe"
15546	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15547	      ;;
15548	  esac~
15549	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15550	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15551	    $RM "$lt_outputfile.manifest";
15552	  fi'
15553	;;
15554      *)
15555	# Assume MSVC wrapper
15556	hardcode_libdir_flag_spec=' '
15557	allow_undefined_flag=unsupported
15558	# Tell ltmain to make .lib files, not .a files.
15559	libext=lib
15560	# Tell ltmain to make .dll files, not .so files.
15561	shrext_cmds=".dll"
15562	# FIXME: Setting linknames here is a bad hack.
15563	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15564	# The linker will automatically build a .lib file if we build a DLL.
15565	old_archive_from_new_cmds='true'
15566	# FIXME: Should let the user specify the lib program.
15567	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15568	enable_shared_with_static_runtimes=yes
15569	;;
15570      esac
15571      ;;
15572
15573    darwin* | rhapsody*)
15574
15575
15576  archive_cmds_need_lc=no
15577  hardcode_direct=no
15578  hardcode_automatic=yes
15579  hardcode_shlibpath_var=unsupported
15580  if test "$lt_cv_ld_force_load" = "yes"; then
15581    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\"`'
15582
15583  else
15584    whole_archive_flag_spec=''
15585  fi
15586  link_all_deplibs=yes
15587  allow_undefined_flag="$_lt_dar_allow_undefined"
15588  case $cc_basename in
15589     ifort*) _lt_dar_can_shared=yes ;;
15590     *) _lt_dar_can_shared=$GCC ;;
15591  esac
15592  if test "$_lt_dar_can_shared" = "yes"; then
15593    output_verbose_link_cmd=func_echo_all
15594    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15595    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15596    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}"
15597    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}"
15598
15599  else
15600  ld_shlibs=no
15601  fi
15602
15603      ;;
15604
15605    dgux*)
15606      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15607      hardcode_libdir_flag_spec='-L$libdir'
15608      hardcode_shlibpath_var=no
15609      ;;
15610
15611    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15612    # support.  Future versions do this automatically, but an explicit c++rt0.o
15613    # does not break anything, and helps significantly (at the cost of a little
15614    # extra space).
15615    freebsd2.2*)
15616      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15617      hardcode_libdir_flag_spec='-R$libdir'
15618      hardcode_direct=yes
15619      hardcode_shlibpath_var=no
15620      ;;
15621
15622    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15623    freebsd2.*)
15624      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15625      hardcode_direct=yes
15626      hardcode_minus_L=yes
15627      hardcode_shlibpath_var=no
15628      ;;
15629
15630    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15631    freebsd* | dragonfly*)
15632      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15633      hardcode_libdir_flag_spec='-R$libdir'
15634      hardcode_direct=yes
15635      hardcode_shlibpath_var=no
15636      ;;
15637
15638    hpux9*)
15639      if test "$GCC" = yes; then
15640	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'
15641      else
15642	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'
15643      fi
15644      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15645      hardcode_libdir_separator=:
15646      hardcode_direct=yes
15647
15648      # hardcode_minus_L: Not really in the search PATH,
15649      # but as the default location of the library.
15650      hardcode_minus_L=yes
15651      export_dynamic_flag_spec='${wl}-E'
15652      ;;
15653
15654    hpux10*)
15655      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15656	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15657      else
15658	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15659      fi
15660      if test "$with_gnu_ld" = no; then
15661	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15662	hardcode_libdir_separator=:
15663	hardcode_direct=yes
15664	hardcode_direct_absolute=yes
15665	export_dynamic_flag_spec='${wl}-E'
15666	# hardcode_minus_L: Not really in the search PATH,
15667	# but as the default location of the library.
15668	hardcode_minus_L=yes
15669      fi
15670      ;;
15671
15672    hpux11*)
15673      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15674	case $host_cpu in
15675	hppa*64*)
15676	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15677	  ;;
15678	ia64*)
15679	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15680	  ;;
15681	*)
15682	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15683	  ;;
15684	esac
15685      else
15686	case $host_cpu in
15687	hppa*64*)
15688	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15689	  ;;
15690	ia64*)
15691	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15692	  ;;
15693	*)
15694
15695	  # Older versions of the 11.00 compiler do not understand -b yet
15696	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15697	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15698$as_echo_n "checking if $CC understands -b... " >&6; }
15699if ${lt_cv_prog_compiler__b+:} false; then :
15700  $as_echo_n "(cached) " >&6
15701else
15702  lt_cv_prog_compiler__b=no
15703   save_LDFLAGS="$LDFLAGS"
15704   LDFLAGS="$LDFLAGS -b"
15705   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15706   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15707     # The linker can only warn and ignore the option if not recognized
15708     # So say no if there are warnings
15709     if test -s conftest.err; then
15710       # Append any errors to the config.log.
15711       cat conftest.err 1>&5
15712       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15713       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15714       if diff conftest.exp conftest.er2 >/dev/null; then
15715         lt_cv_prog_compiler__b=yes
15716       fi
15717     else
15718       lt_cv_prog_compiler__b=yes
15719     fi
15720   fi
15721   $RM -r conftest*
15722   LDFLAGS="$save_LDFLAGS"
15723
15724fi
15725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15726$as_echo "$lt_cv_prog_compiler__b" >&6; }
15727
15728if test x"$lt_cv_prog_compiler__b" = xyes; then
15729    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15730else
15731    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15732fi
15733
15734	  ;;
15735	esac
15736      fi
15737      if test "$with_gnu_ld" = no; then
15738	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15739	hardcode_libdir_separator=:
15740
15741	case $host_cpu in
15742	hppa*64*|ia64*)
15743	  hardcode_direct=no
15744	  hardcode_shlibpath_var=no
15745	  ;;
15746	*)
15747	  hardcode_direct=yes
15748	  hardcode_direct_absolute=yes
15749	  export_dynamic_flag_spec='${wl}-E'
15750
15751	  # hardcode_minus_L: Not really in the search PATH,
15752	  # but as the default location of the library.
15753	  hardcode_minus_L=yes
15754	  ;;
15755	esac
15756      fi
15757      ;;
15758
15759    irix5* | irix6* | nonstopux*)
15760      if test "$GCC" = yes; then
15761	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'
15762	# Try to use the -exported_symbol ld option, if it does not
15763	# work, assume that -exports_file does not work either and
15764	# implicitly export all symbols.
15765	# This should be the same for all languages, so no per-tag cache variable.
15766	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15767$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15768if ${lt_cv_irix_exported_symbol+:} false; then :
15769  $as_echo_n "(cached) " >&6
15770else
15771  save_LDFLAGS="$LDFLAGS"
15772	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15773	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15774/* end confdefs.h.  */
15775int foo (void) { return 0; }
15776_ACEOF
15777if ac_fn_c_try_link "$LINENO"; then :
15778  lt_cv_irix_exported_symbol=yes
15779else
15780  lt_cv_irix_exported_symbol=no
15781fi
15782rm -f core conftest.err conftest.$ac_objext \
15783    conftest$ac_exeext conftest.$ac_ext
15784           LDFLAGS="$save_LDFLAGS"
15785fi
15786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15787$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15788	if test "$lt_cv_irix_exported_symbol" = yes; then
15789          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'
15790	fi
15791      else
15792	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'
15793	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'
15794      fi
15795      archive_cmds_need_lc='no'
15796      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15797      hardcode_libdir_separator=:
15798      inherit_rpath=yes
15799      link_all_deplibs=yes
15800      ;;
15801
15802    netbsd*)
15803      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15804	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15805      else
15806	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15807      fi
15808      hardcode_libdir_flag_spec='-R$libdir'
15809      hardcode_direct=yes
15810      hardcode_shlibpath_var=no
15811      ;;
15812
15813    newsos6)
15814      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15815      hardcode_direct=yes
15816      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15817      hardcode_libdir_separator=:
15818      hardcode_shlibpath_var=no
15819      ;;
15820
15821    *nto* | *qnx*)
15822      ;;
15823
15824    openbsd*)
15825      if test -f /usr/libexec/ld.so; then
15826	hardcode_direct=yes
15827	hardcode_shlibpath_var=no
15828	hardcode_direct_absolute=yes
15829	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15830	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15831	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15832	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15833	  export_dynamic_flag_spec='${wl}-E'
15834	else
15835	  case $host_os in
15836	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15837	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15838	     hardcode_libdir_flag_spec='-R$libdir'
15839	     ;;
15840	   *)
15841	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15842	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15843	     ;;
15844	  esac
15845	fi
15846      else
15847	ld_shlibs=no
15848      fi
15849      ;;
15850
15851    os2*)
15852      hardcode_libdir_flag_spec='-L$libdir'
15853      hardcode_minus_L=yes
15854      allow_undefined_flag=unsupported
15855      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'
15856      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15857      ;;
15858
15859    osf3*)
15860      if test "$GCC" = yes; then
15861	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15862	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'
15863      else
15864	allow_undefined_flag=' -expect_unresolved \*'
15865	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'
15866      fi
15867      archive_cmds_need_lc='no'
15868      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15869      hardcode_libdir_separator=:
15870      ;;
15871
15872    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15873      if test "$GCC" = yes; then
15874	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15875	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'
15876	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15877      else
15878	allow_undefined_flag=' -expect_unresolved \*'
15879	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'
15880	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~
15881	$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'
15882
15883	# Both c and cxx compiler support -rpath directly
15884	hardcode_libdir_flag_spec='-rpath $libdir'
15885      fi
15886      archive_cmds_need_lc='no'
15887      hardcode_libdir_separator=:
15888      ;;
15889
15890    solaris*)
15891      no_undefined_flag=' -z defs'
15892      if test "$GCC" = yes; then
15893	wlarc='${wl}'
15894	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15895	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15896	  $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'
15897      else
15898	case `$CC -V 2>&1` in
15899	*"Compilers 5.0"*)
15900	  wlarc=''
15901	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15902	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15903	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15904	  ;;
15905	*)
15906	  wlarc='${wl}'
15907	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15908	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15909	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15910	  ;;
15911	esac
15912      fi
15913      hardcode_libdir_flag_spec='-R$libdir'
15914      hardcode_shlibpath_var=no
15915      case $host_os in
15916      solaris2.[0-5] | solaris2.[0-5].*) ;;
15917      *)
15918	# The compiler driver will combine and reorder linker options,
15919	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15920	# but is careful enough not to reorder.
15921	# Supported since Solaris 2.6 (maybe 2.5.1?)
15922	if test "$GCC" = yes; then
15923	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15924	else
15925	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15926	fi
15927	;;
15928      esac
15929      link_all_deplibs=yes
15930      ;;
15931
15932    sunos4*)
15933      if test "x$host_vendor" = xsequent; then
15934	# Use $CC to link under sequent, because it throws in some extra .o
15935	# files that make .init and .fini sections work.
15936	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15937      else
15938	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15939      fi
15940      hardcode_libdir_flag_spec='-L$libdir'
15941      hardcode_direct=yes
15942      hardcode_minus_L=yes
15943      hardcode_shlibpath_var=no
15944      ;;
15945
15946    sysv4)
15947      case $host_vendor in
15948	sni)
15949	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15950	  hardcode_direct=yes # is this really true???
15951	;;
15952	siemens)
15953	  ## LD is ld it makes a PLAMLIB
15954	  ## CC just makes a GrossModule.
15955	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15956	  reload_cmds='$CC -r -o $output$reload_objs'
15957	  hardcode_direct=no
15958        ;;
15959	motorola)
15960	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15961	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15962	;;
15963      esac
15964      runpath_var='LD_RUN_PATH'
15965      hardcode_shlibpath_var=no
15966      ;;
15967
15968    sysv4.3*)
15969      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15970      hardcode_shlibpath_var=no
15971      export_dynamic_flag_spec='-Bexport'
15972      ;;
15973
15974    sysv4*MP*)
15975      if test -d /usr/nec; then
15976	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15977	hardcode_shlibpath_var=no
15978	runpath_var=LD_RUN_PATH
15979	hardcode_runpath_var=yes
15980	ld_shlibs=yes
15981      fi
15982      ;;
15983
15984    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15985      no_undefined_flag='${wl}-z,text'
15986      archive_cmds_need_lc=no
15987      hardcode_shlibpath_var=no
15988      runpath_var='LD_RUN_PATH'
15989
15990      if test "$GCC" = yes; then
15991	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15992	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15993      else
15994	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15995	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15996      fi
15997      ;;
15998
15999    sysv5* | sco3.2v5* | sco5v6*)
16000      # Note: We can NOT use -z defs as we might desire, because we do not
16001      # link with -lc, and that would cause any symbols used from libc to
16002      # always be unresolved, which means just about no library would
16003      # ever link correctly.  If we're not using GNU ld we use -z text
16004      # though, which does catch some bad symbols but isn't as heavy-handed
16005      # as -z defs.
16006      no_undefined_flag='${wl}-z,text'
16007      allow_undefined_flag='${wl}-z,nodefs'
16008      archive_cmds_need_lc=no
16009      hardcode_shlibpath_var=no
16010      hardcode_libdir_flag_spec='${wl}-R,$libdir'
16011      hardcode_libdir_separator=':'
16012      link_all_deplibs=yes
16013      export_dynamic_flag_spec='${wl}-Bexport'
16014      runpath_var='LD_RUN_PATH'
16015
16016      if test "$GCC" = yes; then
16017	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16018	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16019      else
16020	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16021	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16022      fi
16023      ;;
16024
16025    uts4*)
16026      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16027      hardcode_libdir_flag_spec='-L$libdir'
16028      hardcode_shlibpath_var=no
16029      ;;
16030
16031    *)
16032      ld_shlibs=no
16033      ;;
16034    esac
16035
16036    if test x$host_vendor = xsni; then
16037      case $host in
16038      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16039	export_dynamic_flag_spec='${wl}-Blargedynsym'
16040	;;
16041      esac
16042    fi
16043  fi
16044
16045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16046$as_echo "$ld_shlibs" >&6; }
16047test "$ld_shlibs" = no && can_build_shared=no
16048
16049with_gnu_ld=$with_gnu_ld
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065#
16066# Do we need to explicitly link libc?
16067#
16068case "x$archive_cmds_need_lc" in
16069x|xyes)
16070  # Assume -lc should be added
16071  archive_cmds_need_lc=yes
16072
16073  if test "$enable_shared" = yes && test "$GCC" = yes; then
16074    case $archive_cmds in
16075    *'~'*)
16076      # FIXME: we may have to deal with multi-command sequences.
16077      ;;
16078    '$CC '*)
16079      # Test whether the compiler implicitly links with -lc since on some
16080      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16081      # to ld, don't add -lc before -lgcc.
16082      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16083$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16084if ${lt_cv_archive_cmds_need_lc+:} false; then :
16085  $as_echo_n "(cached) " >&6
16086else
16087  $RM conftest*
16088	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16089
16090	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16091  (eval $ac_compile) 2>&5
16092  ac_status=$?
16093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16094  test $ac_status = 0; } 2>conftest.err; then
16095	  soname=conftest
16096	  lib=conftest
16097	  libobjs=conftest.$ac_objext
16098	  deplibs=
16099	  wl=$lt_prog_compiler_wl
16100	  pic_flag=$lt_prog_compiler_pic
16101	  compiler_flags=-v
16102	  linker_flags=-v
16103	  verstring=
16104	  output_objdir=.
16105	  libname=conftest
16106	  lt_save_allow_undefined_flag=$allow_undefined_flag
16107	  allow_undefined_flag=
16108	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16109  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16110  ac_status=$?
16111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16112  test $ac_status = 0; }
16113	  then
16114	    lt_cv_archive_cmds_need_lc=no
16115	  else
16116	    lt_cv_archive_cmds_need_lc=yes
16117	  fi
16118	  allow_undefined_flag=$lt_save_allow_undefined_flag
16119	else
16120	  cat conftest.err 1>&5
16121	fi
16122	$RM conftest*
16123
16124fi
16125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16126$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16127      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16128      ;;
16129    esac
16130  fi
16131  ;;
16132esac
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16286$as_echo_n "checking dynamic linker characteristics... " >&6; }
16287
16288if test "$GCC" = yes; then
16289  case $host_os in
16290    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16291    *) lt_awk_arg="/^libraries:/" ;;
16292  esac
16293  case $host_os in
16294    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16295    *) lt_sed_strip_eq="s,=/,/,g" ;;
16296  esac
16297  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16298  case $lt_search_path_spec in
16299  *\;*)
16300    # if the path contains ";" then we assume it to be the separator
16301    # otherwise default to the standard path separator (i.e. ":") - it is
16302    # assumed that no part of a normal pathname contains ";" but that should
16303    # okay in the real world where ";" in dirpaths is itself problematic.
16304    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16305    ;;
16306  *)
16307    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16308    ;;
16309  esac
16310  # Ok, now we have the path, separated by spaces, we can step through it
16311  # and add multilib dir if necessary.
16312  lt_tmp_lt_search_path_spec=
16313  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16314  for lt_sys_path in $lt_search_path_spec; do
16315    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16316      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16317    else
16318      test -d "$lt_sys_path" && \
16319	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16320    fi
16321  done
16322  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16323BEGIN {RS=" "; FS="/|\n";} {
16324  lt_foo="";
16325  lt_count=0;
16326  for (lt_i = NF; lt_i > 0; lt_i--) {
16327    if ($lt_i != "" && $lt_i != ".") {
16328      if ($lt_i == "..") {
16329        lt_count++;
16330      } else {
16331        if (lt_count == 0) {
16332          lt_foo="/" $lt_i lt_foo;
16333        } else {
16334          lt_count--;
16335        }
16336      }
16337    }
16338  }
16339  if (lt_foo != "") { lt_freq[lt_foo]++; }
16340  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16341}'`
16342  # AWK program above erroneously prepends '/' to C:/dos/paths
16343  # for these hosts.
16344  case $host_os in
16345    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16346      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16347  esac
16348  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16349else
16350  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16351fi
16352library_names_spec=
16353libname_spec='lib$name'
16354soname_spec=
16355shrext_cmds=".so"
16356postinstall_cmds=
16357postuninstall_cmds=
16358finish_cmds=
16359finish_eval=
16360shlibpath_var=
16361shlibpath_overrides_runpath=unknown
16362version_type=none
16363dynamic_linker="$host_os ld.so"
16364sys_lib_dlsearch_path_spec="/lib /usr/lib"
16365need_lib_prefix=unknown
16366hardcode_into_libs=no
16367
16368# when you set need_version to no, make sure it does not cause -set_version
16369# flags to be left without arguments
16370need_version=unknown
16371
16372case $host_os in
16373aix3*)
16374  version_type=linux # correct to gnu/linux during the next big refactor
16375  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16376  shlibpath_var=LIBPATH
16377
16378  # AIX 3 has no versioning support, so we append a major version to the name.
16379  soname_spec='${libname}${release}${shared_ext}$major'
16380  ;;
16381
16382aix[4-9]*)
16383  version_type=linux # correct to gnu/linux during the next big refactor
16384  need_lib_prefix=no
16385  need_version=no
16386  hardcode_into_libs=yes
16387  if test "$host_cpu" = ia64; then
16388    # AIX 5 supports IA64
16389    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16390    shlibpath_var=LD_LIBRARY_PATH
16391  else
16392    # With GCC up to 2.95.x, collect2 would create an import file
16393    # for dependence libraries.  The import file would start with
16394    # the line `#! .'.  This would cause the generated library to
16395    # depend on `.', always an invalid library.  This was fixed in
16396    # development snapshots of GCC prior to 3.0.
16397    case $host_os in
16398      aix4 | aix4.[01] | aix4.[01].*)
16399      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16400	   echo ' yes '
16401	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16402	:
16403      else
16404	can_build_shared=no
16405      fi
16406      ;;
16407    esac
16408    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16409    # soname into executable. Probably we can add versioning support to
16410    # collect2, so additional links can be useful in future.
16411    if test "$aix_use_runtimelinking" = yes; then
16412      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16413      # instead of lib<name>.a to let people know that these are not
16414      # typical AIX shared libraries.
16415      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16416    else
16417      # We preserve .a as extension for shared libraries through AIX4.2
16418      # and later when we are not doing run time linking.
16419      library_names_spec='${libname}${release}.a $libname.a'
16420      soname_spec='${libname}${release}${shared_ext}$major'
16421    fi
16422    shlibpath_var=LIBPATH
16423  fi
16424  ;;
16425
16426amigaos*)
16427  case $host_cpu in
16428  powerpc)
16429    # Since July 2007 AmigaOS4 officially supports .so libraries.
16430    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16431    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16432    ;;
16433  m68k)
16434    library_names_spec='$libname.ixlibrary $libname.a'
16435    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16436    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'
16437    ;;
16438  esac
16439  ;;
16440
16441beos*)
16442  library_names_spec='${libname}${shared_ext}'
16443  dynamic_linker="$host_os ld.so"
16444  shlibpath_var=LIBRARY_PATH
16445  ;;
16446
16447bsdi[45]*)
16448  version_type=linux # correct to gnu/linux during the next big refactor
16449  need_version=no
16450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16451  soname_spec='${libname}${release}${shared_ext}$major'
16452  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16453  shlibpath_var=LD_LIBRARY_PATH
16454  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16455  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16456  # the default ld.so.conf also contains /usr/contrib/lib and
16457  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16458  # libtool to hard-code these into programs
16459  ;;
16460
16461cygwin* | mingw* | pw32* | cegcc*)
16462  version_type=windows
16463  shrext_cmds=".dll"
16464  need_version=no
16465  need_lib_prefix=no
16466
16467  case $GCC,$cc_basename in
16468  yes,*)
16469    # gcc
16470    library_names_spec='$libname.dll.a'
16471    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16472    postinstall_cmds='base_file=`basename \${file}`~
16473      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16474      dldir=$destdir/`dirname \$dlpath`~
16475      test -d \$dldir || mkdir -p \$dldir~
16476      $install_prog $dir/$dlname \$dldir/$dlname~
16477      chmod a+x \$dldir/$dlname~
16478      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16479        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16480      fi'
16481    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16482      dlpath=$dir/\$dldll~
16483       $RM \$dlpath'
16484    shlibpath_overrides_runpath=yes
16485
16486    case $host_os in
16487    cygwin*)
16488      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16489      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16490
16491      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16492      ;;
16493    mingw* | cegcc*)
16494      # MinGW DLLs use traditional 'lib' prefix
16495      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16496      ;;
16497    pw32*)
16498      # pw32 DLLs use 'pw' prefix rather than 'lib'
16499      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16500      ;;
16501    esac
16502    dynamic_linker='Win32 ld.exe'
16503    ;;
16504
16505  *,cl*)
16506    # Native MSVC
16507    libname_spec='$name'
16508    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16509    library_names_spec='${libname}.dll.lib'
16510
16511    case $build_os in
16512    mingw*)
16513      sys_lib_search_path_spec=
16514      lt_save_ifs=$IFS
16515      IFS=';'
16516      for lt_path in $LIB
16517      do
16518        IFS=$lt_save_ifs
16519        # Let DOS variable expansion print the short 8.3 style file name.
16520        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16521        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16522      done
16523      IFS=$lt_save_ifs
16524      # Convert to MSYS style.
16525      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16526      ;;
16527    cygwin*)
16528      # Convert to unix form, then to dos form, then back to unix form
16529      # but this time dos style (no spaces!) so that the unix form looks
16530      # like /cygdrive/c/PROGRA~1:/cygdr...
16531      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16532      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16533      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16534      ;;
16535    *)
16536      sys_lib_search_path_spec="$LIB"
16537      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16538        # It is most probably a Windows format PATH.
16539        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16540      else
16541        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16542      fi
16543      # FIXME: find the short name or the path components, as spaces are
16544      # common. (e.g. "Program Files" -> "PROGRA~1")
16545      ;;
16546    esac
16547
16548    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16549    postinstall_cmds='base_file=`basename \${file}`~
16550      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16551      dldir=$destdir/`dirname \$dlpath`~
16552      test -d \$dldir || mkdir -p \$dldir~
16553      $install_prog $dir/$dlname \$dldir/$dlname'
16554    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16555      dlpath=$dir/\$dldll~
16556       $RM \$dlpath'
16557    shlibpath_overrides_runpath=yes
16558    dynamic_linker='Win32 link.exe'
16559    ;;
16560
16561  *)
16562    # Assume MSVC wrapper
16563    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16564    dynamic_linker='Win32 ld.exe'
16565    ;;
16566  esac
16567  # FIXME: first we should search . and the directory the executable is in
16568  shlibpath_var=PATH
16569  ;;
16570
16571darwin* | rhapsody*)
16572  dynamic_linker="$host_os dyld"
16573  version_type=darwin
16574  need_lib_prefix=no
16575  need_version=no
16576  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16577  soname_spec='${libname}${release}${major}$shared_ext'
16578  shlibpath_overrides_runpath=yes
16579  shlibpath_var=DYLD_LIBRARY_PATH
16580  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16581
16582  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16583  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16584  ;;
16585
16586dgux*)
16587  version_type=linux # correct to gnu/linux during the next big refactor
16588  need_lib_prefix=no
16589  need_version=no
16590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16591  soname_spec='${libname}${release}${shared_ext}$major'
16592  shlibpath_var=LD_LIBRARY_PATH
16593  ;;
16594
16595freebsd* | dragonfly*)
16596  # DragonFly does not have aout.  When/if they implement a new
16597  # versioning mechanism, adjust this.
16598  if test -x /usr/bin/objformat; then
16599    objformat=`/usr/bin/objformat`
16600  else
16601    case $host_os in
16602    freebsd[23].*) objformat=aout ;;
16603    *) objformat=elf ;;
16604    esac
16605  fi
16606  version_type=freebsd-$objformat
16607  case $version_type in
16608    freebsd-elf*)
16609      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16610      need_version=no
16611      need_lib_prefix=no
16612      ;;
16613    freebsd-*)
16614      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16615      need_version=yes
16616      ;;
16617  esac
16618  shlibpath_var=LD_LIBRARY_PATH
16619  case $host_os in
16620  freebsd2.*)
16621    shlibpath_overrides_runpath=yes
16622    ;;
16623  freebsd3.[01]* | freebsdelf3.[01]*)
16624    shlibpath_overrides_runpath=yes
16625    hardcode_into_libs=yes
16626    ;;
16627  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16628  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16629    shlibpath_overrides_runpath=no
16630    hardcode_into_libs=yes
16631    ;;
16632  *) # from 4.6 on, and DragonFly
16633    shlibpath_overrides_runpath=yes
16634    hardcode_into_libs=yes
16635    ;;
16636  esac
16637  ;;
16638
16639gnu*)
16640  version_type=linux # correct to gnu/linux during the next big refactor
16641  need_lib_prefix=no
16642  need_version=no
16643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16644  soname_spec='${libname}${release}${shared_ext}$major'
16645  shlibpath_var=LD_LIBRARY_PATH
16646  shlibpath_overrides_runpath=no
16647  hardcode_into_libs=yes
16648  ;;
16649
16650haiku*)
16651  version_type=linux # correct to gnu/linux during the next big refactor
16652  need_lib_prefix=no
16653  need_version=no
16654  dynamic_linker="$host_os runtime_loader"
16655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16656  soname_spec='${libname}${release}${shared_ext}$major'
16657  shlibpath_var=LIBRARY_PATH
16658  shlibpath_overrides_runpath=yes
16659  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16660  hardcode_into_libs=yes
16661  ;;
16662
16663hpux9* | hpux10* | hpux11*)
16664  # Give a soname corresponding to the major version so that dld.sl refuses to
16665  # link against other versions.
16666  version_type=sunos
16667  need_lib_prefix=no
16668  need_version=no
16669  case $host_cpu in
16670  ia64*)
16671    shrext_cmds='.so'
16672    hardcode_into_libs=yes
16673    dynamic_linker="$host_os dld.so"
16674    shlibpath_var=LD_LIBRARY_PATH
16675    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16676    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16677    soname_spec='${libname}${release}${shared_ext}$major'
16678    if test "X$HPUX_IA64_MODE" = X32; then
16679      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16680    else
16681      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16682    fi
16683    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16684    ;;
16685  hppa*64*)
16686    shrext_cmds='.sl'
16687    hardcode_into_libs=yes
16688    dynamic_linker="$host_os dld.sl"
16689    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16690    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16691    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16692    soname_spec='${libname}${release}${shared_ext}$major'
16693    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16694    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16695    ;;
16696  *)
16697    shrext_cmds='.sl'
16698    dynamic_linker="$host_os dld.sl"
16699    shlibpath_var=SHLIB_PATH
16700    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16701    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16702    soname_spec='${libname}${release}${shared_ext}$major'
16703    ;;
16704  esac
16705  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16706  postinstall_cmds='chmod 555 $lib'
16707  # or fails outright, so override atomically:
16708  install_override_mode=555
16709  ;;
16710
16711interix[3-9]*)
16712  version_type=linux # correct to gnu/linux during the next big refactor
16713  need_lib_prefix=no
16714  need_version=no
16715  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16716  soname_spec='${libname}${release}${shared_ext}$major'
16717  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16718  shlibpath_var=LD_LIBRARY_PATH
16719  shlibpath_overrides_runpath=no
16720  hardcode_into_libs=yes
16721  ;;
16722
16723irix5* | irix6* | nonstopux*)
16724  case $host_os in
16725    nonstopux*) version_type=nonstopux ;;
16726    *)
16727	if test "$lt_cv_prog_gnu_ld" = yes; then
16728		version_type=linux # correct to gnu/linux during the next big refactor
16729	else
16730		version_type=irix
16731	fi ;;
16732  esac
16733  need_lib_prefix=no
16734  need_version=no
16735  soname_spec='${libname}${release}${shared_ext}$major'
16736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16737  case $host_os in
16738  irix5* | nonstopux*)
16739    libsuff= shlibsuff=
16740    ;;
16741  *)
16742    case $LD in # libtool.m4 will add one of these switches to LD
16743    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16744      libsuff= shlibsuff= libmagic=32-bit;;
16745    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16746      libsuff=32 shlibsuff=N32 libmagic=N32;;
16747    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16748      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16749    *) libsuff= shlibsuff= libmagic=never-match;;
16750    esac
16751    ;;
16752  esac
16753  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16754  shlibpath_overrides_runpath=no
16755  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16756  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16757  hardcode_into_libs=yes
16758  ;;
16759
16760# No shared lib support for Linux oldld, aout, or coff.
16761linux*oldld* | linux*aout* | linux*coff*)
16762  dynamic_linker=no
16763  ;;
16764
16765# This must be glibc/ELF.
16766linux* | k*bsd*-gnu | kopensolaris*-gnu)
16767  version_type=linux # correct to gnu/linux during the next big refactor
16768  need_lib_prefix=no
16769  need_version=no
16770  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16771  soname_spec='${libname}${release}${shared_ext}$major'
16772  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16773  shlibpath_var=LD_LIBRARY_PATH
16774  shlibpath_overrides_runpath=no
16775
16776  # Some binutils ld are patched to set DT_RUNPATH
16777  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16778  $as_echo_n "(cached) " >&6
16779else
16780  lt_cv_shlibpath_overrides_runpath=no
16781    save_LDFLAGS=$LDFLAGS
16782    save_libdir=$libdir
16783    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16784	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16785    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16786/* end confdefs.h.  */
16787
16788int
16789main ()
16790{
16791
16792  ;
16793  return 0;
16794}
16795_ACEOF
16796if ac_fn_c_try_link "$LINENO"; then :
16797  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16798  lt_cv_shlibpath_overrides_runpath=yes
16799fi
16800fi
16801rm -f core conftest.err conftest.$ac_objext \
16802    conftest$ac_exeext conftest.$ac_ext
16803    LDFLAGS=$save_LDFLAGS
16804    libdir=$save_libdir
16805
16806fi
16807
16808  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16809
16810  # This implies no fast_install, which is unacceptable.
16811  # Some rework will be needed to allow for fast_install
16812  # before this can be enabled.
16813  hardcode_into_libs=yes
16814
16815  # Append ld.so.conf contents to the search path
16816  if test -f /etc/ld.so.conf; then
16817    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' ' '`
16818    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16819  fi
16820
16821  # We used to test for /lib/ld.so.1 and disable shared libraries on
16822  # powerpc, because MkLinux only supported shared libraries with the
16823  # GNU dynamic linker.  Since this was broken with cross compilers,
16824  # most powerpc-linux boxes support dynamic linking these days and
16825  # people can always --disable-shared, the test was removed, and we
16826  # assume the GNU/Linux dynamic linker is in use.
16827  dynamic_linker='GNU/Linux ld.so'
16828  ;;
16829
16830netbsd*)
16831  version_type=sunos
16832  need_lib_prefix=no
16833  need_version=no
16834  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16835    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16836    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16837    dynamic_linker='NetBSD (a.out) ld.so'
16838  else
16839    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16840    soname_spec='${libname}${release}${shared_ext}$major'
16841    dynamic_linker='NetBSD ld.elf_so'
16842  fi
16843  shlibpath_var=LD_LIBRARY_PATH
16844  shlibpath_overrides_runpath=yes
16845  hardcode_into_libs=yes
16846  ;;
16847
16848newsos6)
16849  version_type=linux # correct to gnu/linux during the next big refactor
16850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851  shlibpath_var=LD_LIBRARY_PATH
16852  shlibpath_overrides_runpath=yes
16853  ;;
16854
16855*nto* | *qnx*)
16856  version_type=qnx
16857  need_lib_prefix=no
16858  need_version=no
16859  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16860  soname_spec='${libname}${release}${shared_ext}$major'
16861  shlibpath_var=LD_LIBRARY_PATH
16862  shlibpath_overrides_runpath=no
16863  hardcode_into_libs=yes
16864  dynamic_linker='ldqnx.so'
16865  ;;
16866
16867openbsd*)
16868  version_type=sunos
16869  sys_lib_dlsearch_path_spec="/usr/lib"
16870  need_lib_prefix=no
16871  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16872  case $host_os in
16873    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16874    *)				need_version=no  ;;
16875  esac
16876  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16877  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16878  shlibpath_var=LD_LIBRARY_PATH
16879  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16880    case $host_os in
16881      openbsd2.[89] | openbsd2.[89].*)
16882	shlibpath_overrides_runpath=no
16883	;;
16884      *)
16885	shlibpath_overrides_runpath=yes
16886	;;
16887      esac
16888  else
16889    shlibpath_overrides_runpath=yes
16890  fi
16891  ;;
16892
16893os2*)
16894  libname_spec='$name'
16895  shrext_cmds=".dll"
16896  need_lib_prefix=no
16897  library_names_spec='$libname${shared_ext} $libname.a'
16898  dynamic_linker='OS/2 ld.exe'
16899  shlibpath_var=LIBPATH
16900  ;;
16901
16902osf3* | osf4* | osf5*)
16903  version_type=osf
16904  need_lib_prefix=no
16905  need_version=no
16906  soname_spec='${libname}${release}${shared_ext}$major'
16907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908  shlibpath_var=LD_LIBRARY_PATH
16909  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16910  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16911  ;;
16912
16913rdos*)
16914  dynamic_linker=no
16915  ;;
16916
16917solaris*)
16918  version_type=linux # correct to gnu/linux during the next big refactor
16919  need_lib_prefix=no
16920  need_version=no
16921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16922  soname_spec='${libname}${release}${shared_ext}$major'
16923  shlibpath_var=LD_LIBRARY_PATH
16924  shlibpath_overrides_runpath=yes
16925  hardcode_into_libs=yes
16926  # ldd complains unless libraries are executable
16927  postinstall_cmds='chmod +x $lib'
16928  ;;
16929
16930sunos4*)
16931  version_type=sunos
16932  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16933  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16934  shlibpath_var=LD_LIBRARY_PATH
16935  shlibpath_overrides_runpath=yes
16936  if test "$with_gnu_ld" = yes; then
16937    need_lib_prefix=no
16938  fi
16939  need_version=yes
16940  ;;
16941
16942sysv4 | sysv4.3*)
16943  version_type=linux # correct to gnu/linux during the next big refactor
16944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16945  soname_spec='${libname}${release}${shared_ext}$major'
16946  shlibpath_var=LD_LIBRARY_PATH
16947  case $host_vendor in
16948    sni)
16949      shlibpath_overrides_runpath=no
16950      need_lib_prefix=no
16951      runpath_var=LD_RUN_PATH
16952      ;;
16953    siemens)
16954      need_lib_prefix=no
16955      ;;
16956    motorola)
16957      need_lib_prefix=no
16958      need_version=no
16959      shlibpath_overrides_runpath=no
16960      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16961      ;;
16962  esac
16963  ;;
16964
16965sysv4*MP*)
16966  if test -d /usr/nec ;then
16967    version_type=linux # correct to gnu/linux during the next big refactor
16968    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16969    soname_spec='$libname${shared_ext}.$major'
16970    shlibpath_var=LD_LIBRARY_PATH
16971  fi
16972  ;;
16973
16974sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16975  version_type=freebsd-elf
16976  need_lib_prefix=no
16977  need_version=no
16978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16979  soname_spec='${libname}${release}${shared_ext}$major'
16980  shlibpath_var=LD_LIBRARY_PATH
16981  shlibpath_overrides_runpath=yes
16982  hardcode_into_libs=yes
16983  if test "$with_gnu_ld" = yes; then
16984    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16985  else
16986    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16987    case $host_os in
16988      sco3.2v5*)
16989        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16990	;;
16991    esac
16992  fi
16993  sys_lib_dlsearch_path_spec='/usr/lib'
16994  ;;
16995
16996tpf*)
16997  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16998  version_type=linux # correct to gnu/linux during the next big refactor
16999  need_lib_prefix=no
17000  need_version=no
17001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17002  shlibpath_var=LD_LIBRARY_PATH
17003  shlibpath_overrides_runpath=no
17004  hardcode_into_libs=yes
17005  ;;
17006
17007uts4*)
17008  version_type=linux # correct to gnu/linux during the next big refactor
17009  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17010  soname_spec='${libname}${release}${shared_ext}$major'
17011  shlibpath_var=LD_LIBRARY_PATH
17012  ;;
17013
17014*)
17015  dynamic_linker=no
17016  ;;
17017esac
17018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17019$as_echo "$dynamic_linker" >&6; }
17020test "$dynamic_linker" = no && can_build_shared=no
17021
17022variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17023if test "$GCC" = yes; then
17024  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17025fi
17026
17027if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17028  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17029fi
17030if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17031  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17032fi
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17126$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17127hardcode_action=
17128if test -n "$hardcode_libdir_flag_spec" ||
17129   test -n "$runpath_var" ||
17130   test "X$hardcode_automatic" = "Xyes" ; then
17131
17132  # We can hardcode non-existent directories.
17133  if test "$hardcode_direct" != no &&
17134     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17135     # have to relink, otherwise we might link with an installed library
17136     # when we should be linking with a yet-to-be-installed one
17137     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17138     test "$hardcode_minus_L" != no; then
17139    # Linking always hardcodes the temporary library directory.
17140    hardcode_action=relink
17141  else
17142    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17143    hardcode_action=immediate
17144  fi
17145else
17146  # We cannot hardcode anything, or else we can only hardcode existing
17147  # directories.
17148  hardcode_action=unsupported
17149fi
17150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17151$as_echo "$hardcode_action" >&6; }
17152
17153if test "$hardcode_action" = relink ||
17154   test "$inherit_rpath" = yes; then
17155  # Fast installation is not supported
17156  enable_fast_install=no
17157elif test "$shlibpath_overrides_runpath" = yes ||
17158     test "$enable_shared" = no; then
17159  # Fast installation is not necessary
17160  enable_fast_install=needless
17161fi
17162
17163
17164
17165
17166
17167
17168  if test "x$enable_dlopen" != xyes; then
17169  enable_dlopen=unknown
17170  enable_dlopen_self=unknown
17171  enable_dlopen_self_static=unknown
17172else
17173  lt_cv_dlopen=no
17174  lt_cv_dlopen_libs=
17175
17176  case $host_os in
17177  beos*)
17178    lt_cv_dlopen="load_add_on"
17179    lt_cv_dlopen_libs=
17180    lt_cv_dlopen_self=yes
17181    ;;
17182
17183  mingw* | pw32* | cegcc*)
17184    lt_cv_dlopen="LoadLibrary"
17185    lt_cv_dlopen_libs=
17186    ;;
17187
17188  cygwin*)
17189    lt_cv_dlopen="dlopen"
17190    lt_cv_dlopen_libs=
17191    ;;
17192
17193  darwin*)
17194  # if libdl is installed we need to link against it
17195    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17196$as_echo_n "checking for dlopen in -ldl... " >&6; }
17197if ${ac_cv_lib_dl_dlopen+:} false; then :
17198  $as_echo_n "(cached) " >&6
17199else
17200  ac_check_lib_save_LIBS=$LIBS
17201LIBS="-ldl  $LIBS"
17202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17203/* end confdefs.h.  */
17204
17205/* Override any GCC internal prototype to avoid an error.
17206   Use char because int might match the return type of a GCC
17207   builtin and then its argument prototype would still apply.  */
17208#ifdef __cplusplus
17209extern "C"
17210#endif
17211char dlopen ();
17212int
17213main ()
17214{
17215return dlopen ();
17216  ;
17217  return 0;
17218}
17219_ACEOF
17220if ac_fn_c_try_link "$LINENO"; then :
17221  ac_cv_lib_dl_dlopen=yes
17222else
17223  ac_cv_lib_dl_dlopen=no
17224fi
17225rm -f core conftest.err conftest.$ac_objext \
17226    conftest$ac_exeext conftest.$ac_ext
17227LIBS=$ac_check_lib_save_LIBS
17228fi
17229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17230$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17231if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17232  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17233else
17234
17235    lt_cv_dlopen="dyld"
17236    lt_cv_dlopen_libs=
17237    lt_cv_dlopen_self=yes
17238
17239fi
17240
17241    ;;
17242
17243  *)
17244    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17245if test "x$ac_cv_func_shl_load" = xyes; then :
17246  lt_cv_dlopen="shl_load"
17247else
17248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17249$as_echo_n "checking for shl_load in -ldld... " >&6; }
17250if ${ac_cv_lib_dld_shl_load+:} false; then :
17251  $as_echo_n "(cached) " >&6
17252else
17253  ac_check_lib_save_LIBS=$LIBS
17254LIBS="-ldld  $LIBS"
17255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256/* end confdefs.h.  */
17257
17258/* Override any GCC internal prototype to avoid an error.
17259   Use char because int might match the return type of a GCC
17260   builtin and then its argument prototype would still apply.  */
17261#ifdef __cplusplus
17262extern "C"
17263#endif
17264char shl_load ();
17265int
17266main ()
17267{
17268return shl_load ();
17269  ;
17270  return 0;
17271}
17272_ACEOF
17273if ac_fn_c_try_link "$LINENO"; then :
17274  ac_cv_lib_dld_shl_load=yes
17275else
17276  ac_cv_lib_dld_shl_load=no
17277fi
17278rm -f core conftest.err conftest.$ac_objext \
17279    conftest$ac_exeext conftest.$ac_ext
17280LIBS=$ac_check_lib_save_LIBS
17281fi
17282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17283$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17284if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17285  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17286else
17287  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17288if test "x$ac_cv_func_dlopen" = xyes; then :
17289  lt_cv_dlopen="dlopen"
17290else
17291  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17292$as_echo_n "checking for dlopen in -ldl... " >&6; }
17293if ${ac_cv_lib_dl_dlopen+:} false; then :
17294  $as_echo_n "(cached) " >&6
17295else
17296  ac_check_lib_save_LIBS=$LIBS
17297LIBS="-ldl  $LIBS"
17298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17299/* end confdefs.h.  */
17300
17301/* Override any GCC internal prototype to avoid an error.
17302   Use char because int might match the return type of a GCC
17303   builtin and then its argument prototype would still apply.  */
17304#ifdef __cplusplus
17305extern "C"
17306#endif
17307char dlopen ();
17308int
17309main ()
17310{
17311return dlopen ();
17312  ;
17313  return 0;
17314}
17315_ACEOF
17316if ac_fn_c_try_link "$LINENO"; then :
17317  ac_cv_lib_dl_dlopen=yes
17318else
17319  ac_cv_lib_dl_dlopen=no
17320fi
17321rm -f core conftest.err conftest.$ac_objext \
17322    conftest$ac_exeext conftest.$ac_ext
17323LIBS=$ac_check_lib_save_LIBS
17324fi
17325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17326$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17327if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17328  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17329else
17330  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17331$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17332if ${ac_cv_lib_svld_dlopen+:} false; then :
17333  $as_echo_n "(cached) " >&6
17334else
17335  ac_check_lib_save_LIBS=$LIBS
17336LIBS="-lsvld  $LIBS"
17337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17338/* end confdefs.h.  */
17339
17340/* Override any GCC internal prototype to avoid an error.
17341   Use char because int might match the return type of a GCC
17342   builtin and then its argument prototype would still apply.  */
17343#ifdef __cplusplus
17344extern "C"
17345#endif
17346char dlopen ();
17347int
17348main ()
17349{
17350return dlopen ();
17351  ;
17352  return 0;
17353}
17354_ACEOF
17355if ac_fn_c_try_link "$LINENO"; then :
17356  ac_cv_lib_svld_dlopen=yes
17357else
17358  ac_cv_lib_svld_dlopen=no
17359fi
17360rm -f core conftest.err conftest.$ac_objext \
17361    conftest$ac_exeext conftest.$ac_ext
17362LIBS=$ac_check_lib_save_LIBS
17363fi
17364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17365$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17366if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17367  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17368else
17369  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17370$as_echo_n "checking for dld_link in -ldld... " >&6; }
17371if ${ac_cv_lib_dld_dld_link+:} false; then :
17372  $as_echo_n "(cached) " >&6
17373else
17374  ac_check_lib_save_LIBS=$LIBS
17375LIBS="-ldld  $LIBS"
17376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17377/* end confdefs.h.  */
17378
17379/* Override any GCC internal prototype to avoid an error.
17380   Use char because int might match the return type of a GCC
17381   builtin and then its argument prototype would still apply.  */
17382#ifdef __cplusplus
17383extern "C"
17384#endif
17385char dld_link ();
17386int
17387main ()
17388{
17389return dld_link ();
17390  ;
17391  return 0;
17392}
17393_ACEOF
17394if ac_fn_c_try_link "$LINENO"; then :
17395  ac_cv_lib_dld_dld_link=yes
17396else
17397  ac_cv_lib_dld_dld_link=no
17398fi
17399rm -f core conftest.err conftest.$ac_objext \
17400    conftest$ac_exeext conftest.$ac_ext
17401LIBS=$ac_check_lib_save_LIBS
17402fi
17403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17404$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17405if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17406  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17407fi
17408
17409
17410fi
17411
17412
17413fi
17414
17415
17416fi
17417
17418
17419fi
17420
17421
17422fi
17423
17424    ;;
17425  esac
17426
17427  if test "x$lt_cv_dlopen" != xno; then
17428    enable_dlopen=yes
17429  else
17430    enable_dlopen=no
17431  fi
17432
17433  case $lt_cv_dlopen in
17434  dlopen)
17435    save_CPPFLAGS="$CPPFLAGS"
17436    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17437
17438    save_LDFLAGS="$LDFLAGS"
17439    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17440
17441    save_LIBS="$LIBS"
17442    LIBS="$lt_cv_dlopen_libs $LIBS"
17443
17444    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17445$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17446if ${lt_cv_dlopen_self+:} false; then :
17447  $as_echo_n "(cached) " >&6
17448else
17449  	  if test "$cross_compiling" = yes; then :
17450  lt_cv_dlopen_self=cross
17451else
17452  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17453  lt_status=$lt_dlunknown
17454  cat > conftest.$ac_ext <<_LT_EOF
17455#line $LINENO "configure"
17456#include "confdefs.h"
17457
17458#if HAVE_DLFCN_H
17459#include <dlfcn.h>
17460#endif
17461
17462#include <stdio.h>
17463
17464#ifdef RTLD_GLOBAL
17465#  define LT_DLGLOBAL		RTLD_GLOBAL
17466#else
17467#  ifdef DL_GLOBAL
17468#    define LT_DLGLOBAL		DL_GLOBAL
17469#  else
17470#    define LT_DLGLOBAL		0
17471#  endif
17472#endif
17473
17474/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17475   find out it does not work in some platform. */
17476#ifndef LT_DLLAZY_OR_NOW
17477#  ifdef RTLD_LAZY
17478#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17479#  else
17480#    ifdef DL_LAZY
17481#      define LT_DLLAZY_OR_NOW		DL_LAZY
17482#    else
17483#      ifdef RTLD_NOW
17484#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17485#      else
17486#        ifdef DL_NOW
17487#          define LT_DLLAZY_OR_NOW	DL_NOW
17488#        else
17489#          define LT_DLLAZY_OR_NOW	0
17490#        endif
17491#      endif
17492#    endif
17493#  endif
17494#endif
17495
17496/* When -fvisbility=hidden is used, assume the code has been annotated
17497   correspondingly for the symbols needed.  */
17498#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17499int fnord () __attribute__((visibility("default")));
17500#endif
17501
17502int fnord () { return 42; }
17503int main ()
17504{
17505  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17506  int status = $lt_dlunknown;
17507
17508  if (self)
17509    {
17510      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17511      else
17512        {
17513	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17514          else puts (dlerror ());
17515	}
17516      /* dlclose (self); */
17517    }
17518  else
17519    puts (dlerror ());
17520
17521  return status;
17522}
17523_LT_EOF
17524  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17525  (eval $ac_link) 2>&5
17526  ac_status=$?
17527  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17528  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17529    (./conftest; exit; ) >&5 2>/dev/null
17530    lt_status=$?
17531    case x$lt_status in
17532      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17533      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17534      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17535    esac
17536  else :
17537    # compilation failed
17538    lt_cv_dlopen_self=no
17539  fi
17540fi
17541rm -fr conftest*
17542
17543
17544fi
17545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17546$as_echo "$lt_cv_dlopen_self" >&6; }
17547
17548    if test "x$lt_cv_dlopen_self" = xyes; then
17549      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17550      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17551$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17552if ${lt_cv_dlopen_self_static+:} false; then :
17553  $as_echo_n "(cached) " >&6
17554else
17555  	  if test "$cross_compiling" = yes; then :
17556  lt_cv_dlopen_self_static=cross
17557else
17558  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17559  lt_status=$lt_dlunknown
17560  cat > conftest.$ac_ext <<_LT_EOF
17561#line $LINENO "configure"
17562#include "confdefs.h"
17563
17564#if HAVE_DLFCN_H
17565#include <dlfcn.h>
17566#endif
17567
17568#include <stdio.h>
17569
17570#ifdef RTLD_GLOBAL
17571#  define LT_DLGLOBAL		RTLD_GLOBAL
17572#else
17573#  ifdef DL_GLOBAL
17574#    define LT_DLGLOBAL		DL_GLOBAL
17575#  else
17576#    define LT_DLGLOBAL		0
17577#  endif
17578#endif
17579
17580/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17581   find out it does not work in some platform. */
17582#ifndef LT_DLLAZY_OR_NOW
17583#  ifdef RTLD_LAZY
17584#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17585#  else
17586#    ifdef DL_LAZY
17587#      define LT_DLLAZY_OR_NOW		DL_LAZY
17588#    else
17589#      ifdef RTLD_NOW
17590#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17591#      else
17592#        ifdef DL_NOW
17593#          define LT_DLLAZY_OR_NOW	DL_NOW
17594#        else
17595#          define LT_DLLAZY_OR_NOW	0
17596#        endif
17597#      endif
17598#    endif
17599#  endif
17600#endif
17601
17602/* When -fvisbility=hidden is used, assume the code has been annotated
17603   correspondingly for the symbols needed.  */
17604#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17605int fnord () __attribute__((visibility("default")));
17606#endif
17607
17608int fnord () { return 42; }
17609int main ()
17610{
17611  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17612  int status = $lt_dlunknown;
17613
17614  if (self)
17615    {
17616      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17617      else
17618        {
17619	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17620          else puts (dlerror ());
17621	}
17622      /* dlclose (self); */
17623    }
17624  else
17625    puts (dlerror ());
17626
17627  return status;
17628}
17629_LT_EOF
17630  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17631  (eval $ac_link) 2>&5
17632  ac_status=$?
17633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17634  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17635    (./conftest; exit; ) >&5 2>/dev/null
17636    lt_status=$?
17637    case x$lt_status in
17638      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17639      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17640      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17641    esac
17642  else :
17643    # compilation failed
17644    lt_cv_dlopen_self_static=no
17645  fi
17646fi
17647rm -fr conftest*
17648
17649
17650fi
17651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17652$as_echo "$lt_cv_dlopen_self_static" >&6; }
17653    fi
17654
17655    CPPFLAGS="$save_CPPFLAGS"
17656    LDFLAGS="$save_LDFLAGS"
17657    LIBS="$save_LIBS"
17658    ;;
17659  esac
17660
17661  case $lt_cv_dlopen_self in
17662  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17663  *) enable_dlopen_self=unknown ;;
17664  esac
17665
17666  case $lt_cv_dlopen_self_static in
17667  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17668  *) enable_dlopen_self_static=unknown ;;
17669  esac
17670fi
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688striplib=
17689old_striplib=
17690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17691$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17692if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17693  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17694  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17696$as_echo "yes" >&6; }
17697else
17698# FIXME - insert some real tests, host_os isn't really good enough
17699  case $host_os in
17700  darwin*)
17701    if test -n "$STRIP" ; then
17702      striplib="$STRIP -x"
17703      old_striplib="$STRIP -S"
17704      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17705$as_echo "yes" >&6; }
17706    else
17707      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17708$as_echo "no" >&6; }
17709    fi
17710    ;;
17711  *)
17712    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17713$as_echo "no" >&6; }
17714    ;;
17715  esac
17716fi
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729  # Report which library types will actually be built
17730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17731$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17733$as_echo "$can_build_shared" >&6; }
17734
17735  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17736$as_echo_n "checking whether to build shared libraries... " >&6; }
17737  test "$can_build_shared" = "no" && enable_shared=no
17738
17739  # On AIX, shared libraries and static libraries use the same namespace, and
17740  # are all built from PIC.
17741  case $host_os in
17742  aix3*)
17743    test "$enable_shared" = yes && enable_static=no
17744    if test -n "$RANLIB"; then
17745      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17746      postinstall_cmds='$RANLIB $lib'
17747    fi
17748    ;;
17749
17750  aix[4-9]*)
17751    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17752      test "$enable_shared" = yes && enable_static=no
17753    fi
17754    ;;
17755  esac
17756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17757$as_echo "$enable_shared" >&6; }
17758
17759  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17760$as_echo_n "checking whether to build static libraries... " >&6; }
17761  # Make sure either enable_shared or enable_static is yes.
17762  test "$enable_shared" = yes || enable_static=yes
17763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17764$as_echo "$enable_static" >&6; }
17765
17766
17767
17768
17769fi
17770ac_ext=c
17771ac_cpp='$CPP $CPPFLAGS'
17772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17774ac_compiler_gnu=$ac_cv_c_compiler_gnu
17775
17776CC="$lt_save_CC"
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792        ac_config_commands="$ac_config_commands libtool"
17793
17794
17795
17796
17797# Only expand once:
17798
17799
17800        # get libtool's setting of shlibpath_var
17801        eval `grep "^shlibpath_var=[A-Z_]*$" $apr_builddir/libtool`
17802        if test "x$shlibpath_var" = "x"; then
17803            shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
17804        fi
17805    fi
17806    ;;
17807esac
17808
17809
17810# Check whether --with-installbuilddir was given.
17811if test "${with_installbuilddir+set}" = set; then :
17812  withval=$with_installbuilddir;  installbuilddir=$withval
17813else
17814   installbuilddir="${datadir}/build-${APR_MAJOR_VERSION}"
17815fi
17816
17817
17818
17819
17820# Check whether --with-libtool was given.
17821if test "${with_libtool+set}" = set; then :
17822  withval=$with_libtool;  use_libtool=$withval
17823else
17824   use_libtool="yes"
17825fi
17826
17827
17828if test "x$use_libtool" = "xyes"; then
17829      lt_compile='$(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) -o $@ -c $< && touch $@'
17830      LT_VERSION="-version-info `$get_version libtool $version_hdr APR`"
17831      link="\$(LIBTOOL) \$(LTFLAGS) --mode=link \$(LT_LDFLAGS) \$(COMPILE) \$(LT_VERSION) \$(ALL_LDFLAGS) -o \$@"
17832      so_ext='lo'
17833      lib_target='-rpath $(libdir) $(OBJECTS)'
17834      export_lib_target='-rpath \$(libdir) \$(OBJECTS)'
17835else
17836      lt_compile='$(COMPILE) -o $@ -c $<'
17837      link='$(AR) cr $(TARGET_LIB) $(OBJECTS); $(RANLIB) $(TARGET_LIB)'
17838      so_ext='o'
17839      lib_target=''
17840      export_lib_target=''
17841fi
17842
17843case $host in
17844    *-solaris2*)
17845        apr_platform_runtime_link_flag="-R"
17846        ;;
17847    *)
17848        ;;
17849esac
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861nl='
17862'
17863echo "${nl}Check for compiler flags..."
17864
17865
17866case $host in
17867    *os390)
17868        if test "$ac_test_CFLAGS" != set; then
17869
17870  if test "x$CFLAGS" = "x-g"; then
17871    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
17872    CFLAGS=""
17873  else
17874    apr_new_bugger=""
17875    apr_removed=0
17876    for i in $CFLAGS; do
17877      if test "x$i" != "x-g"; then
17878        apr_new_bugger="$apr_new_bugger $i"
17879      else
17880        apr_removed=1
17881      fi
17882    done
17883    if test $apr_removed = "1"; then
17884      test "x$silent" != "xyes" && echo "  removed \"-g\" from CFLAGS"
17885      CFLAGS=$apr_new_bugger
17886    fi
17887  fi
17888
17889        fi
17890        ;;
17891esac
17892
17893# Check whether --enable-debug was given.
17894if test "${enable_debug+set}" = set; then :
17895  enableval=$enable_debug;
17896  if test "x$CFLAGS" = "x"; then
17897    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-g\""
17898    CFLAGS="-g"
17899  else
17900    apr_addto_bugger="-g"
17901    for i in $apr_addto_bugger; do
17902      apr_addto_duplicate="0"
17903      for j in $CFLAGS; do
17904        if test "x$i" = "x$j"; then
17905          apr_addto_duplicate="1"
17906          break
17907        fi
17908      done
17909      if test $apr_addto_duplicate = "0"; then
17910        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
17911        CFLAGS="$CFLAGS $i"
17912      fi
17913    done
17914  fi
17915
17916   if test "$GCC" = "yes"; then
17917
17918  if test "x$CFLAGS" = "x"; then
17919    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wall\""
17920    CFLAGS="-Wall"
17921  else
17922    apr_addto_bugger="-Wall"
17923    for i in $apr_addto_bugger; do
17924      apr_addto_duplicate="0"
17925      for j in $CFLAGS; do
17926        if test "x$i" = "x$j"; then
17927          apr_addto_duplicate="1"
17928          break
17929        fi
17930      done
17931      if test $apr_addto_duplicate = "0"; then
17932        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
17933        CFLAGS="$CFLAGS $i"
17934      fi
17935    done
17936  fi
17937
17938   elif test "$AIX_XLC" = "yes"; then
17939
17940  if test "x$CFLAGS" = "x"; then
17941    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-qfullpath\""
17942    CFLAGS="-qfullpath"
17943  else
17944    apr_addto_bugger="-qfullpath"
17945    for i in $apr_addto_bugger; do
17946      apr_addto_duplicate="0"
17947      for j in $CFLAGS; do
17948        if test "x$i" = "x$j"; then
17949          apr_addto_duplicate="1"
17950          break
17951        fi
17952      done
17953      if test $apr_addto_duplicate = "0"; then
17954        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
17955        CFLAGS="$CFLAGS $i"
17956      fi
17957    done
17958  fi
17959
17960   fi
17961
17962fi
17963
17964# Check whether --enable-maintainer-mode was given.
17965if test "${enable_maintainer_mode+set}" = set; then :
17966  enableval=$enable_maintainer_mode;
17967  if test "x$CFLAGS" = "x"; then
17968    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-g\""
17969    CFLAGS="-g"
17970  else
17971    apr_addto_bugger="-g"
17972    for i in $apr_addto_bugger; do
17973      apr_addto_duplicate="0"
17974      for j in $CFLAGS; do
17975        if test "x$i" = "x$j"; then
17976          apr_addto_duplicate="1"
17977          break
17978        fi
17979      done
17980      if test $apr_addto_duplicate = "0"; then
17981        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
17982        CFLAGS="$CFLAGS $i"
17983      fi
17984    done
17985  fi
17986
17987   if test "$GCC" = "yes"; then
17988
17989  if test "x$CFLAGS" = "x"; then
17990    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations\""
17991    CFLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
17992  else
17993    apr_addto_bugger="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
17994    for i in $apr_addto_bugger; do
17995      apr_addto_duplicate="0"
17996      for j in $CFLAGS; do
17997        if test "x$i" = "x$j"; then
17998          apr_addto_duplicate="1"
17999          break
18000        fi
18001      done
18002      if test $apr_addto_duplicate = "0"; then
18003        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
18004        CFLAGS="$CFLAGS $i"
18005      fi
18006    done
18007  fi
18008
18009   elif test "$AIX_XLC" = "yes"; then
18010
18011  if test "x$CFLAGS" = "x"; then
18012    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro\""
18013    CFLAGS="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
18014  else
18015    apr_addto_bugger="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
18016    for i in $apr_addto_bugger; do
18017      apr_addto_duplicate="0"
18018      for j in $CFLAGS; do
18019        if test "x$i" = "x$j"; then
18020          apr_addto_duplicate="1"
18021          break
18022        fi
18023      done
18024      if test $apr_addto_duplicate = "0"; then
18025        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
18026        CFLAGS="$CFLAGS $i"
18027      fi
18028    done
18029  fi
18030
18031   fi
18032
18033fi
18034
18035# Check whether --enable-profile was given.
18036if test "${enable_profile+set}" = set; then :
18037  enableval=$enable_profile; if test "$GCC" = "yes"; then
18038
18039  if test "x$CFLAGS" = "x"; then
18040    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-pg\""
18041    CFLAGS="-pg"
18042  else
18043    apr_addto_bugger="-pg"
18044    for i in $apr_addto_bugger; do
18045      apr_addto_duplicate="0"
18046      for j in $CFLAGS; do
18047        if test "x$i" = "x$j"; then
18048          apr_addto_duplicate="1"
18049          break
18050        fi
18051      done
18052      if test $apr_addto_duplicate = "0"; then
18053        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
18054        CFLAGS="$CFLAGS $i"
18055      fi
18056    done
18057  fi
18058
18059
18060  if test "x$CFLAGS" = "x-g"; then
18061    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
18062    CFLAGS=""
18063  else
18064    apr_new_bugger=""
18065    apr_removed=0
18066    for i in $CFLAGS; do
18067      if test "x$i" != "x-g"; then
18068        apr_new_bugger="$apr_new_bugger $i"
18069      else
18070        apr_removed=1
18071      fi
18072    done
18073    if test $apr_removed = "1"; then
18074      test "x$silent" != "xyes" && echo "  removed \"-g\" from CFLAGS"
18075      CFLAGS=$apr_new_bugger
18076    fi
18077  fi
18078
18079    if test "$host" = "i586-pc-beos"; then
18080
18081  if test "x$CFLAGS" = "x-O2"; then
18082    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
18083    CFLAGS=""
18084  else
18085    apr_new_bugger=""
18086    apr_removed=0
18087    for i in $CFLAGS; do
18088      if test "x$i" != "x-O2"; then
18089        apr_new_bugger="$apr_new_bugger $i"
18090      else
18091        apr_removed=1
18092      fi
18093    done
18094    if test $apr_removed = "1"; then
18095      test "x$silent" != "xyes" && echo "  removed \"-O2\" from CFLAGS"
18096      CFLAGS=$apr_new_bugger
18097    fi
18098  fi
18099
18100
18101  if test "x$CFLAGS" = "x"; then
18102    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O1\""
18103    CFLAGS="-O1"
18104  else
18105    apr_addto_bugger="-O1"
18106    for i in $apr_addto_bugger; do
18107      apr_addto_duplicate="0"
18108      for j in $CFLAGS; do
18109        if test "x$i" = "x$j"; then
18110          apr_addto_duplicate="1"
18111          break
18112        fi
18113      done
18114      if test $apr_addto_duplicate = "0"; then
18115        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
18116        CFLAGS="$CFLAGS $i"
18117      fi
18118    done
18119  fi
18120
18121
18122  if test "x$LDFLAGS" = "x"; then
18123    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-p\""
18124    LDFLAGS="-p"
18125  else
18126    apr_addto_bugger="-p"
18127    for i in $apr_addto_bugger; do
18128      apr_addto_duplicate="0"
18129      for j in $LDFLAGS; do
18130        if test "x$i" = "x$j"; then
18131          apr_addto_duplicate="1"
18132          break
18133        fi
18134      done
18135      if test $apr_addto_duplicate = "0"; then
18136        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
18137        LDFLAGS="$LDFLAGS $i"
18138      fi
18139    done
18140  fi
18141
18142    fi
18143  fi
18144
18145fi
18146
18147# Check whether --enable-pool-debug was given.
18148if test "${enable_pool_debug+set}" = set; then :
18149  enableval=$enable_pool_debug;  if test -z "$enableval"; then
18150
18151  if test "x$CPPFLAGS" = "x"; then
18152    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAPR_POOL_DEBUG=1\""
18153    CPPFLAGS="-DAPR_POOL_DEBUG=1"
18154  else
18155    apr_addto_bugger="-DAPR_POOL_DEBUG=1"
18156    for i in $apr_addto_bugger; do
18157      apr_addto_duplicate="0"
18158      for j in $CPPFLAGS; do
18159        if test "x$i" = "x$j"; then
18160          apr_addto_duplicate="1"
18161          break
18162        fi
18163      done
18164      if test $apr_addto_duplicate = "0"; then
18165        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18166        CPPFLAGS="$CPPFLAGS $i"
18167      fi
18168    done
18169  fi
18170
18171    elif test ! "$enableval" = "no"; then
18172        apr_pool_debug=1
18173
18174        for i in $enableval
18175        do
18176            flag=0
18177
18178            case $i in
18179            yes)
18180                flag=1
18181                ;;
18182            verbose)
18183                flag=2
18184                ;;
18185            lifetime)
18186                flag=4
18187                ;;
18188            owner)
18189                flag=8
18190                ;;
18191            verbose-alloc)
18192                flag=16
18193                ;;
18194            all)
18195                apr_pool_debug=31
18196                ;;
18197            *)
18198                ;;
18199            esac
18200
18201            if test $flag -gt 0; then
18202                apr_pool_debug=`expr '(' $apr_pool_debug - $apr_pool_debug % \
18203                    '(' $flag '*' 2 ')' ')' + $flag + $apr_pool_debug % $flag`
18204            fi
18205        done
18206
18207
18208  if test "x$CPPFLAGS" = "x"; then
18209    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAPR_POOL_DEBUG=$apr_pool_debug\""
18210    CPPFLAGS="-DAPR_POOL_DEBUG=$apr_pool_debug"
18211  else
18212    apr_addto_bugger="-DAPR_POOL_DEBUG=$apr_pool_debug"
18213    for i in $apr_addto_bugger; do
18214      apr_addto_duplicate="0"
18215      for j in $CPPFLAGS; do
18216        if test "x$i" = "x$j"; then
18217          apr_addto_duplicate="1"
18218          break
18219        fi
18220      done
18221      if test $apr_addto_duplicate = "0"; then
18222        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18223        CPPFLAGS="$CPPFLAGS $i"
18224      fi
18225    done
18226  fi
18227
18228    fi
18229
18230fi
18231
18232
18233if test "$host" = "i586-pc-beos"; then
18234  # Check whether --enable-malloc-debug was given.
18235if test "${enable_malloc_debug+set}" = set; then :
18236  enableval=$enable_malloc_debug;
18237  if test "x$CFLAGS" = "x-O2"; then
18238    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
18239    CFLAGS=""
18240  else
18241    apr_new_bugger=""
18242    apr_removed=0
18243    for i in $CFLAGS; do
18244      if test "x$i" != "x-O2"; then
18245        apr_new_bugger="$apr_new_bugger $i"
18246      else
18247        apr_removed=1
18248      fi
18249    done
18250    if test $apr_removed = "1"; then
18251      test "x$silent" != "xyes" && echo "  removed \"-O2\" from CFLAGS"
18252      CFLAGS=$apr_new_bugger
18253    fi
18254  fi
18255
18256
18257  if test "x$CPPFLAGS" = "x"; then
18258    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-fcheck-memory-usage -D_KERNEL_MODE\""
18259    CPPFLAGS="-fcheck-memory-usage -D_KERNEL_MODE"
18260  else
18261    apr_addto_bugger="-fcheck-memory-usage -D_KERNEL_MODE"
18262    for i in $apr_addto_bugger; do
18263      apr_addto_duplicate="0"
18264      for j in $CPPFLAGS; do
18265        if test "x$i" = "x$j"; then
18266          apr_addto_duplicate="1"
18267          break
18268        fi
18269      done
18270      if test $apr_addto_duplicate = "0"; then
18271        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18272        CPPFLAGS="$CPPFLAGS $i"
18273      fi
18274    done
18275  fi
18276
18277
18278fi
18279 fi
18280
18281# this is the place to put specific options for platform/compiler
18282# combinations
18283case "$host:$CC" in
18284    *-hp-hpux*:cc )
18285
18286  if test "x$CFLAGS" = "x"; then
18287    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Ae +Z\""
18288    CFLAGS="-Ae +Z"
18289  else
18290    apr_addto_bugger="-Ae +Z"
18291    for i in $apr_addto_bugger; do
18292      apr_addto_duplicate="0"
18293      for j in $CFLAGS; do
18294        if test "x$i" = "x$j"; then
18295          apr_addto_duplicate="1"
18296          break
18297        fi
18298      done
18299      if test $apr_addto_duplicate = "0"; then
18300        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
18301        CFLAGS="$CFLAGS $i"
18302      fi
18303    done
18304  fi
18305
18306	case $host in
18307	  ia64-* )
18308	    ;;
18309          * )
18310	    if echo "$CFLAGS " | grep '+DA' >/dev/null; then :
18311	    else
18312
18313  if test "x$CFLAGS" = "x"; then
18314    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"+DAportable\""
18315    CFLAGS="+DAportable"
18316  else
18317    apr_addto_bugger="+DAportable"
18318    for i in $apr_addto_bugger; do
18319      apr_addto_duplicate="0"
18320      for j in $CFLAGS; do
18321        if test "x$i" = "x$j"; then
18322          apr_addto_duplicate="1"
18323          break
18324        fi
18325      done
18326      if test $apr_addto_duplicate = "0"; then
18327        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
18328        CFLAGS="$CFLAGS $i"
18329      fi
18330    done
18331  fi
18332
18333	    fi
18334	    ;;
18335        esac
18336	;;
18337    powerpc-*-beos:mwcc* )
18338
18339  test "x$silent" != "xyes" && echo "  forcing CPP to \"mwcc -E\""
18340  CPP="mwcc -E"
18341
18342
18343  test "x$silent" != "xyes" && echo "  forcing CC to \"mwcc\""
18344  CC="mwcc"
18345
18346
18347  test "x$silent" != "xyes" && echo "  forcing AR to \"ar\""
18348  AR="ar"
18349
18350	;;
18351esac
18352
18353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
18354$as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
18355if ${ap_cv_atomic_builtins+:} false; then :
18356  $as_echo_n "(cached) " >&6
18357else
18358  if test "$cross_compiling" = yes; then :
18359  ap_cv_atomic_builtins=no
18360else
18361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18362/* end confdefs.h.  */
18363
18364int main()
18365{
18366    unsigned long val = 1010, tmp, *mem = &val;
18367
18368    if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
18369        return 1;
18370
18371    tmp = val;
18372
18373    if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
18374        return 1;
18375
18376    if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
18377        return 1;
18378
18379    tmp = 3030;
18380
18381    if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
18382        return 1;
18383
18384    if (__sync_lock_test_and_set(&val, 4040) != 3030)
18385        return 1;
18386
18387    mem = &tmp;
18388
18389    if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
18390        return 1;
18391
18392    __sync_synchronize();
18393
18394    if (mem != &val)
18395        return 1;
18396
18397    return 0;
18398}
18399_ACEOF
18400if ac_fn_c_try_run "$LINENO"; then :
18401  ap_cv_atomic_builtins=yes
18402else
18403  ap_cv_atomic_builtins=no
18404fi
18405rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18406  conftest.$ac_objext conftest.beam conftest.$ac_ext
18407fi
18408
18409fi
18410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_atomic_builtins" >&5
18411$as_echo "$ap_cv_atomic_builtins" >&6; }
18412
18413if test "$ap_cv_atomic_builtins" = "yes"; then
18414
18415$as_echo "#define HAVE_ATOMIC_BUILTINS 1" >>confdefs.h
18416
18417fi
18418
18419case $host in
18420    powerpc-405-*)
18421        # The IBM ppc405cr processor has a bugged stwcx instruction.
18422
18423$as_echo "#define PPC405_ERRATA 1" >>confdefs.h
18424
18425        ;;
18426    *)
18427        ;;
18428esac
18429
18430
18431if test "$GCC" = "yes"; then
18432  MKDEP='$(CC) -MM'
18433else
18434  rm -f conftest.c
18435  cat > conftest.c <<EOF
18436#include <sys/types.h>
18437  int main() { return 0; }
18438EOF
18439  MKDEP="true"
18440  for i in "$CC -MM" "$CC -M" "$CPP -MM" "$CPP -M" "cpp -M"; do
18441    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $i can create proper make dependencies" >&5
18442$as_echo_n "checking if $i can create proper make dependencies... " >&6; }
18443    if $i conftest.c 2>/dev/null | grep 'conftest.o: conftest.c' >/dev/null; then
18444      MKDEP=$i
18445      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18446$as_echo "yes" >&6; }
18447      break;
18448    fi
18449    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18450$as_echo "no" >&6; }
18451  done
18452  rm -f conftest.c
18453fi
18454
18455
18456
18457
18458proc_mutex_is_global=0
18459
18460config_subdirs="none"
18461INSTALL_SUBDIRS="none"
18462OBJECTS_PLATFORM='$(OBJECTS_unix)'
18463
18464case $host in
18465   i386-ibm-aix* | *-ibm-aix[1-2].* | *-ibm-aix3.* | *-ibm-aix4.1 | *-ibm-aix4.1.* | *-ibm-aix4.2 | *-ibm-aix4.2.*)
18466       OSDIR="aix"
18467
18468  if test "x$LDFLAGS" = "x"; then
18469    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-lld\""
18470    LDFLAGS="-lld"
18471  else
18472    apr_addto_bugger="-lld"
18473    for i in $apr_addto_bugger; do
18474      apr_addto_duplicate="0"
18475      for j in $LDFLAGS; do
18476        if test "x$i" = "x$j"; then
18477          apr_addto_duplicate="1"
18478          break
18479        fi
18480      done
18481      if test $apr_addto_duplicate = "0"; then
18482        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
18483        LDFLAGS="$LDFLAGS $i"
18484      fi
18485    done
18486  fi
18487
18488       eolstr="\\n"
18489       OBJECTS_PLATFORM='$(OBJECTS_aix)'
18490       ;;
18491   *-os2*)
18492
18493  if test "x$CPPFLAGS" = "x"; then
18494    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DOS2\""
18495    CPPFLAGS="-DOS2"
18496  else
18497    apr_addto_bugger="-DOS2"
18498    for i in $apr_addto_bugger; do
18499      apr_addto_duplicate="0"
18500      for j in $CPPFLAGS; do
18501        if test "x$i" = "x$j"; then
18502          apr_addto_duplicate="1"
18503          break
18504        fi
18505      done
18506      if test $apr_addto_duplicate = "0"; then
18507        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18508        CPPFLAGS="$CPPFLAGS $i"
18509      fi
18510    done
18511  fi
18512
18513
18514  if test "x$CFLAGS" = "x"; then
18515    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Zmt\""
18516    CFLAGS="-Zmt"
18517  else
18518    apr_addto_bugger="-Zmt"
18519    for i in $apr_addto_bugger; do
18520      apr_addto_duplicate="0"
18521      for j in $CFLAGS; do
18522        if test "x$i" = "x$j"; then
18523          apr_addto_duplicate="1"
18524          break
18525        fi
18526      done
18527      if test $apr_addto_duplicate = "0"; then
18528        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
18529        CFLAGS="$CFLAGS $i"
18530      fi
18531    done
18532  fi
18533
18534       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random in -lbsd" >&5
18535$as_echo_n "checking for random in -lbsd... " >&6; }
18536if ${ac_cv_lib_bsd_random+:} false; then :
18537  $as_echo_n "(cached) " >&6
18538else
18539  ac_check_lib_save_LIBS=$LIBS
18540LIBS="-lbsd  $LIBS"
18541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18542/* end confdefs.h.  */
18543
18544/* Override any GCC internal prototype to avoid an error.
18545   Use char because int might match the return type of a GCC
18546   builtin and then its argument prototype would still apply.  */
18547#ifdef __cplusplus
18548extern "C"
18549#endif
18550char random ();
18551int
18552main ()
18553{
18554return random ();
18555  ;
18556  return 0;
18557}
18558_ACEOF
18559if ac_fn_c_try_link "$LINENO"; then :
18560  ac_cv_lib_bsd_random=yes
18561else
18562  ac_cv_lib_bsd_random=no
18563fi
18564rm -f core conftest.err conftest.$ac_objext \
18565    conftest$ac_exeext conftest.$ac_ext
18566LIBS=$ac_check_lib_save_LIBS
18567fi
18568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_random" >&5
18569$as_echo "$ac_cv_lib_bsd_random" >&6; }
18570if test "x$ac_cv_lib_bsd_random" = xyes; then :
18571  cat >>confdefs.h <<_ACEOF
18572#define HAVE_LIBBSD 1
18573_ACEOF
18574
18575  LIBS="-lbsd $LIBS"
18576
18577fi
18578
18579       OSDIR="os2"
18580       enable_threads="system_threads"
18581       eolstr="\\r\\n"
18582       file_as_socket="0"
18583       proc_mutex_is_global=1
18584       OBJECTS_PLATFORM='$(OBJECTS_os2)'
18585       ;;
18586   *beos*)
18587       OSDIR="beos"
18588
18589  if test "x$CPPFLAGS" = "x"; then
18590    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DBEOS\""
18591    CPPFLAGS="-DBEOS"
18592  else
18593    apr_addto_bugger="-DBEOS"
18594    for i in $apr_addto_bugger; do
18595      apr_addto_duplicate="0"
18596      for j in $CPPFLAGS; do
18597        if test "x$i" = "x$j"; then
18598          apr_addto_duplicate="1"
18599          break
18600        fi
18601      done
18602      if test $apr_addto_duplicate = "0"; then
18603        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18604        CPPFLAGS="$CPPFLAGS $i"
18605      fi
18606    done
18607  fi
18608
18609       enable_threads="system_threads"
18610       native_mmap_emul="1"
18611
18612  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BONE_VERSION in sys/socket.h" >&5
18613$as_echo_n "checking for BONE_VERSION in sys/socket.h... " >&6; }
18614if ${ac_cv_define_BONE_VERSION+:} false; then :
18615  $as_echo_n "(cached) " >&6
18616else
18617
18618    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18619/* end confdefs.h.  */
18620
18621#include <sys/socket.h>
18622#ifdef BONE_VERSION
18623YES_IS_DEFINED
18624#endif
18625
18626_ACEOF
18627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18628  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
18629  ac_cv_define_BONE_VERSION=yes
18630else
18631  ac_cv_define_BONE_VERSION=no
18632fi
18633rm -f conftest*
18634
18635
18636fi
18637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_BONE_VERSION" >&5
18638$as_echo "$ac_cv_define_BONE_VERSION" >&6; }
18639  if test "$ac_cv_define_BONE_VERSION" = "yes"; then
18640
18641$as_echo "#define HAVE_BONE_VERSION 1" >>confdefs.h
18642
18643  fi
18644
18645       eolstr="\\n"
18646       osver=`uname -r`
18647       proc_mutex_is_global=1
18648       OBJECTS_PLATFORM='$(OBJECTS_beos)'
18649       case $osver in
18650          5.0.4)
18651             file_as_socket="1"
18652             ;;
18653          *)
18654             file_as_socket="0"
18655             ;;
18656       esac
18657       ;;
18658   *os390)
18659       OSDIR="os390"
18660       OBJECTS_PLATFORM='$(OBJECTS_os390)'
18661       eolstr="\\n"
18662       ;;
18663   *os400)
18664       OSDIR="as400"
18665       eolstr="\\n"
18666       ;;
18667   *mingw*)
18668       OSDIR="win32"
18669       enable_threads="system_threads"
18670       eolstr="\\r\\n"
18671       file_as_socket=0
18672       proc_mutex_is_global=1
18673       OBJECTS_PLATFORM='$(OBJECTS_win32)'
18674       ;;
18675   *cygwin*)
18676       OSDIR="unix"
18677       enable_threads="no"
18678       eolstr="\\n"
18679       ;;
18680   *hpux10* )
18681       enable_threads="no"
18682       OSDIR="unix"
18683       eolstr="\\n"
18684       ;;
18685   *)
18686       OSDIR="unix"
18687       eolstr="\\n"
18688       ;;
18689esac
18690
18691
18692
18693# Check whether LFS has explicitly been disabled
18694# Check whether --enable-lfs was given.
18695if test "${enable_lfs+set}" = set; then :
18696  enableval=$enable_lfs; apr_lfs_choice=$enableval
18697else
18698  apr_lfs_choice=yes
18699fi
18700
18701
18702if test "$apr_lfs_choice" = "yes"; then
18703   # Check whether the transitional LFS API is sufficient
18704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable -D_LARGEFILE64_SOURCE" >&5
18705$as_echo_n "checking whether to enable -D_LARGEFILE64_SOURCE... " >&6; }
18706if ${apr_cv_use_lfs64+:} false; then :
18707  $as_echo_n "(cached) " >&6
18708else
18709
18710   apr_save_CPPFLAGS=$CPPFLAGS
18711   CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
18712   if test "$cross_compiling" = yes; then :
18713  apr_cv_use_lfs64=no
18714else
18715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18716/* end confdefs.h.  */
18717
18718#include <sys/types.h>
18719#include <sys/stat.h>
18720#include <fcntl.h>
18721#include <stdlib.h>
18722#include <stdio.h>
18723#include <unistd.h>
18724
18725void main(void)
18726{
18727    int fd, ret = 0;
18728    struct stat64 st;
18729    off64_t off = 4242;
18730
18731    if (sizeof(off64_t) != 8 || sizeof(off_t) != 4)
18732       exit(1);
18733    if ((fd = open("conftest.lfs", O_LARGEFILE|O_CREAT|O_WRONLY, 0644)) < 0)
18734       exit(2);
18735    if (ftruncate64(fd, off) != 0)
18736       ret = 3;
18737    else if (fstat64(fd, &st) != 0 || st.st_size != off)
18738       ret = 4;
18739    else if (lseek64(fd, off, SEEK_SET) != off)
18740       ret = 5;
18741    else if (close(fd) != 0)
18742       ret = 6;
18743    else if (lstat64("conftest.lfs", &st) != 0 || st.st_size != off)
18744       ret = 7;
18745    else if (stat64("conftest.lfs", &st) != 0 || st.st_size != off)
18746       ret = 8;
18747    unlink("conftest.lfs");
18748
18749    exit(ret);
18750}
18751_ACEOF
18752if ac_fn_c_try_run "$LINENO"; then :
18753  apr_cv_use_lfs64=yes
18754else
18755  apr_cv_use_lfs64=no
18756fi
18757rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18758  conftest.$ac_objext conftest.beam conftest.$ac_ext
18759fi
18760
18761   CPPFLAGS=$apr_save_CPPFLAGS
18762fi
18763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_use_lfs64" >&5
18764$as_echo "$apr_cv_use_lfs64" >&6; }
18765   if test "$apr_cv_use_lfs64" = "yes"; then
18766
18767  if test "x$CPPFLAGS" = "x"; then
18768    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_LARGEFILE64_SOURCE\""
18769    CPPFLAGS="-D_LARGEFILE64_SOURCE"
18770  else
18771    apr_addto_bugger="-D_LARGEFILE64_SOURCE"
18772    for i in $apr_addto_bugger; do
18773      apr_addto_duplicate="0"
18774      for j in $CPPFLAGS; do
18775        if test "x$i" = "x$j"; then
18776          apr_addto_duplicate="1"
18777          break
18778        fi
18779      done
18780      if test $apr_addto_duplicate = "0"; then
18781        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
18782        CPPFLAGS="$CPPFLAGS $i"
18783      fi
18784    done
18785  fi
18786
18787   fi
18788fi
18789
18790# Check whether --enable-nonportable-atomics was given.
18791if test "${enable_nonportable_atomics+set}" = set; then :
18792  enableval=$enable_nonportable_atomics; if test $enableval = yes; then
18793   force_generic_atomics=no
18794 else
18795   force_generic_atomics=yes
18796 fi
18797
18798else
18799  case $host_cpu in
18800   i[456]86) force_generic_atomics=yes ;;
18801   *) force_generic_atomics=no ;;
18802esac
18803
18804fi
18805
18806
18807if test $force_generic_atomics = yes; then
18808
18809$as_echo "#define USE_ATOMICS_GENERIC 1" >>confdefs.h
18810
18811fi
18812
18813
18814
18815
18816
18817# For some platforms we need a version string which allows easy numeric
18818# comparisons.
18819case $host in
18820    *freebsd*)
18821        if test -x /sbin/sysctl; then
18822            os_version=`/sbin/sysctl -n kern.osreldate`
18823        else
18824            os_version=000000
18825        fi
18826        ;;
18827    *linux*)
18828        os_version=`uname -r | sed -e 's/\(.\)\.\(.\)\.\(.\).*/\1\2\3/'`
18829        ;;
18830    *os390)
18831        os_version=`uname -r | sed -e 's/\.//g'`
18832        ;;
18833    *)
18834        os_version=OS_VERSION_IS_NOT_SET
18835        ;;
18836esac
18837
18838echo "${nl}Checking for libraries..."
18839
18840case $host in
18841   *mingw*)
18842
18843  if test "x$LIBS" = "x"; then
18844    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock\""
18845    LIBS="-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock"
18846  else
18847    apr_addto_bugger="-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock"
18848    for i in $apr_addto_bugger; do
18849      apr_addto_duplicate="0"
18850      for j in $LIBS; do
18851        if test "x$i" = "x$j"; then
18852          apr_addto_duplicate="1"
18853          break
18854        fi
18855      done
18856      if test $apr_addto_duplicate = "0"; then
18857        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
18858        LIBS="$LIBS $i"
18859      fi
18860    done
18861  fi
18862
18863      ac_cv_func_CreateFileMapping=yes
18864      ;;
18865   *)
18866      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
18867$as_echo_n "checking for library containing gethostbyname... " >&6; }
18868if ${ac_cv_search_gethostbyname+:} false; then :
18869  $as_echo_n "(cached) " >&6
18870else
18871  ac_func_search_save_LIBS=$LIBS
18872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18873/* end confdefs.h.  */
18874
18875/* Override any GCC internal prototype to avoid an error.
18876   Use char because int might match the return type of a GCC
18877   builtin and then its argument prototype would still apply.  */
18878#ifdef __cplusplus
18879extern "C"
18880#endif
18881char gethostbyname ();
18882int
18883main ()
18884{
18885return gethostbyname ();
18886  ;
18887  return 0;
18888}
18889_ACEOF
18890for ac_lib in '' nsl; do
18891  if test -z "$ac_lib"; then
18892    ac_res="none required"
18893  else
18894    ac_res=-l$ac_lib
18895    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18896  fi
18897  if ac_fn_c_try_link "$LINENO"; then :
18898  ac_cv_search_gethostbyname=$ac_res
18899fi
18900rm -f core conftest.err conftest.$ac_objext \
18901    conftest$ac_exeext
18902  if ${ac_cv_search_gethostbyname+:} false; then :
18903  break
18904fi
18905done
18906if ${ac_cv_search_gethostbyname+:} false; then :
18907
18908else
18909  ac_cv_search_gethostbyname=no
18910fi
18911rm conftest.$ac_ext
18912LIBS=$ac_func_search_save_LIBS
18913fi
18914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
18915$as_echo "$ac_cv_search_gethostbyname" >&6; }
18916ac_res=$ac_cv_search_gethostbyname
18917if test "$ac_res" != no; then :
18918  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18919
18920fi
18921
18922      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
18923$as_echo_n "checking for library containing gethostname... " >&6; }
18924if ${ac_cv_search_gethostname+:} false; then :
18925  $as_echo_n "(cached) " >&6
18926else
18927  ac_func_search_save_LIBS=$LIBS
18928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18929/* end confdefs.h.  */
18930
18931/* Override any GCC internal prototype to avoid an error.
18932   Use char because int might match the return type of a GCC
18933   builtin and then its argument prototype would still apply.  */
18934#ifdef __cplusplus
18935extern "C"
18936#endif
18937char gethostname ();
18938int
18939main ()
18940{
18941return gethostname ();
18942  ;
18943  return 0;
18944}
18945_ACEOF
18946for ac_lib in '' nsl; do
18947  if test -z "$ac_lib"; then
18948    ac_res="none required"
18949  else
18950    ac_res=-l$ac_lib
18951    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18952  fi
18953  if ac_fn_c_try_link "$LINENO"; then :
18954  ac_cv_search_gethostname=$ac_res
18955fi
18956rm -f core conftest.err conftest.$ac_objext \
18957    conftest$ac_exeext
18958  if ${ac_cv_search_gethostname+:} false; then :
18959  break
18960fi
18961done
18962if ${ac_cv_search_gethostname+:} false; then :
18963
18964else
18965  ac_cv_search_gethostname=no
18966fi
18967rm conftest.$ac_ext
18968LIBS=$ac_func_search_save_LIBS
18969fi
18970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
18971$as_echo "$ac_cv_search_gethostname" >&6; }
18972ac_res=$ac_cv_search_gethostname
18973if test "$ac_res" != no; then :
18974  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18975
18976fi
18977
18978      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
18979$as_echo_n "checking for library containing socket... " >&6; }
18980if ${ac_cv_search_socket+:} false; then :
18981  $as_echo_n "(cached) " >&6
18982else
18983  ac_func_search_save_LIBS=$LIBS
18984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18985/* end confdefs.h.  */
18986
18987/* Override any GCC internal prototype to avoid an error.
18988   Use char because int might match the return type of a GCC
18989   builtin and then its argument prototype would still apply.  */
18990#ifdef __cplusplus
18991extern "C"
18992#endif
18993char socket ();
18994int
18995main ()
18996{
18997return socket ();
18998  ;
18999  return 0;
19000}
19001_ACEOF
19002for ac_lib in '' socket; do
19003  if test -z "$ac_lib"; then
19004    ac_res="none required"
19005  else
19006    ac_res=-l$ac_lib
19007    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19008  fi
19009  if ac_fn_c_try_link "$LINENO"; then :
19010  ac_cv_search_socket=$ac_res
19011fi
19012rm -f core conftest.err conftest.$ac_objext \
19013    conftest$ac_exeext
19014  if ${ac_cv_search_socket+:} false; then :
19015  break
19016fi
19017done
19018if ${ac_cv_search_socket+:} false; then :
19019
19020else
19021  ac_cv_search_socket=no
19022fi
19023rm conftest.$ac_ext
19024LIBS=$ac_func_search_save_LIBS
19025fi
19026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19027$as_echo "$ac_cv_search_socket" >&6; }
19028ac_res=$ac_cv_search_socket
19029if test "$ac_res" != no; then :
19030  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19031
19032fi
19033
19034      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19035$as_echo_n "checking for library containing crypt... " >&6; }
19036if ${ac_cv_search_crypt+:} false; then :
19037  $as_echo_n "(cached) " >&6
19038else
19039  ac_func_search_save_LIBS=$LIBS
19040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19041/* end confdefs.h.  */
19042
19043/* Override any GCC internal prototype to avoid an error.
19044   Use char because int might match the return type of a GCC
19045   builtin and then its argument prototype would still apply.  */
19046#ifdef __cplusplus
19047extern "C"
19048#endif
19049char crypt ();
19050int
19051main ()
19052{
19053return crypt ();
19054  ;
19055  return 0;
19056}
19057_ACEOF
19058for ac_lib in '' crypt ufc; do
19059  if test -z "$ac_lib"; then
19060    ac_res="none required"
19061  else
19062    ac_res=-l$ac_lib
19063    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19064  fi
19065  if ac_fn_c_try_link "$LINENO"; then :
19066  ac_cv_search_crypt=$ac_res
19067fi
19068rm -f core conftest.err conftest.$ac_objext \
19069    conftest$ac_exeext
19070  if ${ac_cv_search_crypt+:} false; then :
19071  break
19072fi
19073done
19074if ${ac_cv_search_crypt+:} false; then :
19075
19076else
19077  ac_cv_search_crypt=no
19078fi
19079rm conftest.$ac_ext
19080LIBS=$ac_func_search_save_LIBS
19081fi
19082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19083$as_echo "$ac_cv_search_crypt" >&6; }
19084ac_res=$ac_cv_search_crypt
19085if test "$ac_res" != no; then :
19086  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19087
19088fi
19089
19090      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltruerand" >&5
19091$as_echo_n "checking for main in -ltruerand... " >&6; }
19092if ${ac_cv_lib_truerand_main+:} false; then :
19093  $as_echo_n "(cached) " >&6
19094else
19095  ac_check_lib_save_LIBS=$LIBS
19096LIBS="-ltruerand  $LIBS"
19097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19098/* end confdefs.h.  */
19099
19100
19101int
19102main ()
19103{
19104return main ();
19105  ;
19106  return 0;
19107}
19108_ACEOF
19109if ac_fn_c_try_link "$LINENO"; then :
19110  ac_cv_lib_truerand_main=yes
19111else
19112  ac_cv_lib_truerand_main=no
19113fi
19114rm -f core conftest.err conftest.$ac_objext \
19115    conftest$ac_exeext conftest.$ac_ext
19116LIBS=$ac_check_lib_save_LIBS
19117fi
19118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_truerand_main" >&5
19119$as_echo "$ac_cv_lib_truerand_main" >&6; }
19120if test "x$ac_cv_lib_truerand_main" = xyes; then :
19121  cat >>confdefs.h <<_ACEOF
19122#define HAVE_LIBTRUERAND 1
19123_ACEOF
19124
19125  LIBS="-ltruerand $LIBS"
19126
19127fi
19128
19129      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing modf" >&5
19130$as_echo_n "checking for library containing modf... " >&6; }
19131if ${ac_cv_search_modf+:} false; then :
19132  $as_echo_n "(cached) " >&6
19133else
19134  ac_func_search_save_LIBS=$LIBS
19135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19136/* end confdefs.h.  */
19137
19138/* Override any GCC internal prototype to avoid an error.
19139   Use char because int might match the return type of a GCC
19140   builtin and then its argument prototype would still apply.  */
19141#ifdef __cplusplus
19142extern "C"
19143#endif
19144char modf ();
19145int
19146main ()
19147{
19148return modf ();
19149  ;
19150  return 0;
19151}
19152_ACEOF
19153for ac_lib in '' m; do
19154  if test -z "$ac_lib"; then
19155    ac_res="none required"
19156  else
19157    ac_res=-l$ac_lib
19158    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19159  fi
19160  if ac_fn_c_try_link "$LINENO"; then :
19161  ac_cv_search_modf=$ac_res
19162fi
19163rm -f core conftest.err conftest.$ac_objext \
19164    conftest$ac_exeext
19165  if ${ac_cv_search_modf+:} false; then :
19166  break
19167fi
19168done
19169if ${ac_cv_search_modf+:} false; then :
19170
19171else
19172  ac_cv_search_modf=no
19173fi
19174rm conftest.$ac_ext
19175LIBS=$ac_func_search_save_LIBS
19176fi
19177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_modf" >&5
19178$as_echo "$ac_cv_search_modf" >&6; }
19179ac_res=$ac_cv_search_modf
19180if test "$ac_res" != no; then :
19181  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19182
19183fi
19184
19185       ;;
19186esac
19187
19188echo "${nl}Checking for Threads..."
19189
19190if test -z "$enable_threads"; then
19191	# Check whether --enable-threads was given.
19192if test "${enable_threads+set}" = set; then :
19193  enableval=$enable_threads;  enable_threads=$enableval
19194else
19195
19196  if test "$GCC" = "yes"; then
19197    SAVE_FL="$CPPFLAGS"
19198    CPPFLAGS="$CPPFLAGS -w"
19199    for ac_header in pthread.h
19200do :
19201  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19202if test "x$ac_cv_header_pthread_h" = xyes; then :
19203  cat >>confdefs.h <<_ACEOF
19204#define HAVE_PTHREAD_H 1
19205_ACEOF
19206   enable_threads="pthread"
19207else
19208    enable_threads="no"
19209fi
19210
19211done
19212
19213    CPPFLAGS="$SAVE_FL"
19214  else
19215    for ac_header in pthread.h
19216do :
19217  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19218if test "x$ac_cv_header_pthread_h" = xyes; then :
19219  cat >>confdefs.h <<_ACEOF
19220#define HAVE_PTHREAD_H 1
19221_ACEOF
19222   enable_threads="pthread"
19223else
19224    enable_threads="no"
19225fi
19226
19227done
19228
19229  fi
19230
19231fi
19232
19233fi
19234
19235if test "$enable_threads" = "no"; then
19236    threads="0"
19237    pthreadh="0"
19238    pthreadser="0"
19239else
19240    if test "$enable_threads" = "pthread"; then
19241# We have specified pthreads for our threading library, just make sure
19242# that we have everything we need
19243
19244  apr_pthsv_CFLAGS="$CFLAGS"
19245  apr_pthsv_LIBS="$LIBS"
19246
19247
19248
19249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5
19250$as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
19251if ${apr_cv_pthreads_cflags+:} false; then :
19252  $as_echo_n "(cached) " >&6
19253else
19254  apr_ptc_cflags=$CFLAGS
19255 for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
19256    CFLAGS=$apr_ptc_cflags
19257    test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
19258
19259if test "$cross_compiling" = yes; then :
19260  apr_p_t_r=no
19261else
19262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19263/* end confdefs.h.  */
19264
19265#include <pthread.h>
19266#include <stddef.h>
19267
19268void *thread_routine(void *data) {
19269    return data;
19270}
19271
19272int main() {
19273    pthread_t thd;
19274    pthread_mutexattr_t mattr;
19275    pthread_once_t once_init = PTHREAD_ONCE_INIT;
19276    int data = 1;
19277    pthread_mutexattr_init(&mattr);
19278    return pthread_create(&thd, NULL, thread_routine, &data);
19279}
19280_ACEOF
19281if ac_fn_c_try_run "$LINENO"; then :
19282  apr_p_t_r=yes
19283else
19284  apr_p_t_r=no
19285fi
19286rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19287  conftest.$ac_objext conftest.beam conftest.$ac_ext
19288fi
19289
19290
19291if test $apr_p_t_r = yes; then
19292
19293      apr_cv_pthreads_cflags="$flag"
19294      break
19295
19296fi
19297
19298
19299 done
19300 CFLAGS=$apr_ptc_cflags
19301
19302fi
19303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5
19304$as_echo "$apr_cv_pthreads_cflags" >&6; }
19305
19306if test -n "$apr_cv_pthreads_cflags"; then
19307   pthreads_working=yes
19308   if test "x$apr_cv_pthreads_cflags" != "xnone"; then
19309
19310  if test "x$CFLAGS" = "x"; then
19311    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"$apr_cv_pthreads_cflags\""
19312    CFLAGS="$apr_cv_pthreads_cflags"
19313  else
19314    apr_addto_bugger="$apr_cv_pthreads_cflags"
19315    for i in $apr_addto_bugger; do
19316      apr_addto_duplicate="0"
19317      for j in $CFLAGS; do
19318        if test "x$i" = "x$j"; then
19319          apr_addto_duplicate="1"
19320          break
19321        fi
19322      done
19323      if test $apr_addto_duplicate = "0"; then
19324        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
19325        CFLAGS="$CFLAGS $i"
19326      fi
19327    done
19328  fi
19329
19330   fi
19331fi
19332
19333# The CFLAGS may or may not be sufficient to ensure that libapr
19334# depends on the pthreads library: some versions of libtool
19335# drop -pthread when passed on the link line; some versions of
19336# gcc ignore -pthread when linking a shared object.  So always
19337# try and add the relevant library to LIBS too.
19338
19339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5
19340$as_echo_n "checking for LIBS needed for pthreads... " >&6; }
19341if ${apr_cv_pthreads_lib+:} false; then :
19342  $as_echo_n "(cached) " >&6
19343else
19344
19345  apr_ptc_libs=$LIBS
19346  for lib in -lpthread -lpthreads -lc_r; do
19347    LIBS="$apr_ptc_libs $lib"
19348
19349if test "$cross_compiling" = yes; then :
19350  apr_p_t_r=no
19351else
19352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19353/* end confdefs.h.  */
19354
19355#include <pthread.h>
19356#include <stddef.h>
19357
19358void *thread_routine(void *data) {
19359    return data;
19360}
19361
19362int main() {
19363    pthread_t thd;
19364    pthread_mutexattr_t mattr;
19365    pthread_once_t once_init = PTHREAD_ONCE_INIT;
19366    int data = 1;
19367    pthread_mutexattr_init(&mattr);
19368    return pthread_create(&thd, NULL, thread_routine, &data);
19369}
19370_ACEOF
19371if ac_fn_c_try_run "$LINENO"; then :
19372  apr_p_t_r=yes
19373else
19374  apr_p_t_r=no
19375fi
19376rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19377  conftest.$ac_objext conftest.beam conftest.$ac_ext
19378fi
19379
19380
19381if test $apr_p_t_r = yes; then
19382
19383      apr_cv_pthreads_lib=$lib
19384      break
19385
19386fi
19387
19388
19389  done
19390  LIBS=$apr_ptc_libs
19391
19392fi
19393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5
19394$as_echo "$apr_cv_pthreads_lib" >&6; }
19395
19396if test -n "$apr_cv_pthreads_lib"; then
19397   pthreads_working=yes
19398
19399  if test "x$LIBS" = "x"; then
19400    test "x$silent" != "xyes" && echo "  setting LIBS to \"$apr_cv_pthreads_lib\""
19401    LIBS="$apr_cv_pthreads_lib"
19402  else
19403    apr_addto_bugger="$apr_cv_pthreads_lib"
19404    for i in $apr_addto_bugger; do
19405      apr_addto_duplicate="0"
19406      for j in $LIBS; do
19407        if test "x$i" = "x$j"; then
19408          apr_addto_duplicate="1"
19409          break
19410        fi
19411      done
19412      if test $apr_addto_duplicate = "0"; then
19413        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
19414        LIBS="$LIBS $i"
19415      fi
19416    done
19417  fi
19418
19419fi
19420
19421if test "$pthreads_working" = "yes"; then
19422  threads_result="POSIX Threads found"
19423else
19424  threads_result="POSIX Threads not found"
19425fi
19426
19427
19428  if test "$GCC" = "yes"; then
19429    SAVE_FL="$CPPFLAGS"
19430    CPPFLAGS="$CPPFLAGS -w"
19431    for ac_header in pthread.h
19432do :
19433  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19434if test "x$ac_cv_header_pthread_h" = xyes; then :
19435  cat >>confdefs.h <<_ACEOF
19436#define HAVE_PTHREAD_H 1
19437_ACEOF
19438
19439          threads="1"
19440          pthreadh="1"
19441          pthreadser="1"
19442else
19443
19444          threads="0"
19445          pthreadh="0"
19446          pthreadser="0"
19447
19448  CFLAGS="$apr_pthsv_CFLAGS"
19449  LIBS="$apr_pthsv_LIBS"
19450
19451fi
19452
19453done
19454
19455    CPPFLAGS="$SAVE_FL"
19456  else
19457    for ac_header in pthread.h
19458do :
19459  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19460if test "x$ac_cv_header_pthread_h" = xyes; then :
19461  cat >>confdefs.h <<_ACEOF
19462#define HAVE_PTHREAD_H 1
19463_ACEOF
19464
19465          threads="1"
19466          pthreadh="1"
19467          pthreadser="1"
19468else
19469
19470          threads="0"
19471          pthreadh="0"
19472          pthreadser="0"
19473
19474  CFLAGS="$apr_pthsv_CFLAGS"
19475  LIBS="$apr_pthsv_LIBS"
19476
19477fi
19478
19479done
19480
19481  fi
19482
19483    elif test "$enable_threads" = "system_threads"; then
19484        threads="1"
19485        pthreadh="0"
19486        pthreadser="0"
19487    else
19488# We basically specified that we wanted threads, but not how to implement
19489# them.  In this case, just look for pthreads.  In the future, we can check
19490# for other threading libraries as well.
19491
19492  apr_pthsv_CFLAGS="$CFLAGS"
19493  apr_pthsv_LIBS="$LIBS"
19494
19495
19496
19497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5
19498$as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
19499if ${apr_cv_pthreads_cflags+:} false; then :
19500  $as_echo_n "(cached) " >&6
19501else
19502  apr_ptc_cflags=$CFLAGS
19503 for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
19504    CFLAGS=$apr_ptc_cflags
19505    test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
19506
19507if test "$cross_compiling" = yes; then :
19508  apr_p_t_r=no
19509else
19510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19511/* end confdefs.h.  */
19512
19513#include <pthread.h>
19514#include <stddef.h>
19515
19516void *thread_routine(void *data) {
19517    return data;
19518}
19519
19520int main() {
19521    pthread_t thd;
19522    pthread_mutexattr_t mattr;
19523    pthread_once_t once_init = PTHREAD_ONCE_INIT;
19524    int data = 1;
19525    pthread_mutexattr_init(&mattr);
19526    return pthread_create(&thd, NULL, thread_routine, &data);
19527}
19528_ACEOF
19529if ac_fn_c_try_run "$LINENO"; then :
19530  apr_p_t_r=yes
19531else
19532  apr_p_t_r=no
19533fi
19534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19535  conftest.$ac_objext conftest.beam conftest.$ac_ext
19536fi
19537
19538
19539if test $apr_p_t_r = yes; then
19540
19541      apr_cv_pthreads_cflags="$flag"
19542      break
19543
19544fi
19545
19546
19547 done
19548 CFLAGS=$apr_ptc_cflags
19549
19550fi
19551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5
19552$as_echo "$apr_cv_pthreads_cflags" >&6; }
19553
19554if test -n "$apr_cv_pthreads_cflags"; then
19555   pthreads_working=yes
19556   if test "x$apr_cv_pthreads_cflags" != "xnone"; then
19557
19558  if test "x$CFLAGS" = "x"; then
19559    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"$apr_cv_pthreads_cflags\""
19560    CFLAGS="$apr_cv_pthreads_cflags"
19561  else
19562    apr_addto_bugger="$apr_cv_pthreads_cflags"
19563    for i in $apr_addto_bugger; do
19564      apr_addto_duplicate="0"
19565      for j in $CFLAGS; do
19566        if test "x$i" = "x$j"; then
19567          apr_addto_duplicate="1"
19568          break
19569        fi
19570      done
19571      if test $apr_addto_duplicate = "0"; then
19572        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
19573        CFLAGS="$CFLAGS $i"
19574      fi
19575    done
19576  fi
19577
19578   fi
19579fi
19580
19581# The CFLAGS may or may not be sufficient to ensure that libapr
19582# depends on the pthreads library: some versions of libtool
19583# drop -pthread when passed on the link line; some versions of
19584# gcc ignore -pthread when linking a shared object.  So always
19585# try and add the relevant library to LIBS too.
19586
19587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5
19588$as_echo_n "checking for LIBS needed for pthreads... " >&6; }
19589if ${apr_cv_pthreads_lib+:} false; then :
19590  $as_echo_n "(cached) " >&6
19591else
19592
19593  apr_ptc_libs=$LIBS
19594  for lib in -lpthread -lpthreads -lc_r; do
19595    LIBS="$apr_ptc_libs $lib"
19596
19597if test "$cross_compiling" = yes; then :
19598  apr_p_t_r=no
19599else
19600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19601/* end confdefs.h.  */
19602
19603#include <pthread.h>
19604#include <stddef.h>
19605
19606void *thread_routine(void *data) {
19607    return data;
19608}
19609
19610int main() {
19611    pthread_t thd;
19612    pthread_mutexattr_t mattr;
19613    pthread_once_t once_init = PTHREAD_ONCE_INIT;
19614    int data = 1;
19615    pthread_mutexattr_init(&mattr);
19616    return pthread_create(&thd, NULL, thread_routine, &data);
19617}
19618_ACEOF
19619if ac_fn_c_try_run "$LINENO"; then :
19620  apr_p_t_r=yes
19621else
19622  apr_p_t_r=no
19623fi
19624rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19625  conftest.$ac_objext conftest.beam conftest.$ac_ext
19626fi
19627
19628
19629if test $apr_p_t_r = yes; then
19630
19631      apr_cv_pthreads_lib=$lib
19632      break
19633
19634fi
19635
19636
19637  done
19638  LIBS=$apr_ptc_libs
19639
19640fi
19641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5
19642$as_echo "$apr_cv_pthreads_lib" >&6; }
19643
19644if test -n "$apr_cv_pthreads_lib"; then
19645   pthreads_working=yes
19646
19647  if test "x$LIBS" = "x"; then
19648    test "x$silent" != "xyes" && echo "  setting LIBS to \"$apr_cv_pthreads_lib\""
19649    LIBS="$apr_cv_pthreads_lib"
19650  else
19651    apr_addto_bugger="$apr_cv_pthreads_lib"
19652    for i in $apr_addto_bugger; do
19653      apr_addto_duplicate="0"
19654      for j in $LIBS; do
19655        if test "x$i" = "x$j"; then
19656          apr_addto_duplicate="1"
19657          break
19658        fi
19659      done
19660      if test $apr_addto_duplicate = "0"; then
19661        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
19662        LIBS="$LIBS $i"
19663      fi
19664    done
19665  fi
19666
19667fi
19668
19669if test "$pthreads_working" = "yes"; then
19670  threads_result="POSIX Threads found"
19671else
19672  threads_result="POSIX Threads not found"
19673fi
19674
19675
19676  if test "$GCC" = "yes"; then
19677    SAVE_FL="$CPPFLAGS"
19678    CPPFLAGS="$CPPFLAGS -w"
19679    for ac_header in pthread.h
19680do :
19681  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19682if test "x$ac_cv_header_pthread_h" = xyes; then :
19683  cat >>confdefs.h <<_ACEOF
19684#define HAVE_PTHREAD_H 1
19685_ACEOF
19686
19687          threads="1"
19688          pthreadh="1"
19689          pthreadser="1"
19690else
19691
19692          threads="0"
19693          pthreadser="0"
19694          pthreadh="0"
19695
19696  CFLAGS="$apr_pthsv_CFLAGS"
19697  LIBS="$apr_pthsv_LIBS"
19698
19699fi
19700
19701done
19702
19703    CPPFLAGS="$SAVE_FL"
19704  else
19705    for ac_header in pthread.h
19706do :
19707  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19708if test "x$ac_cv_header_pthread_h" = xyes; then :
19709  cat >>confdefs.h <<_ACEOF
19710#define HAVE_PTHREAD_H 1
19711_ACEOF
19712
19713          threads="1"
19714          pthreadh="1"
19715          pthreadser="1"
19716else
19717
19718          threads="0"
19719          pthreadser="0"
19720          pthreadh="0"
19721
19722  CFLAGS="$apr_pthsv_CFLAGS"
19723  LIBS="$apr_pthsv_LIBS"
19724
19725fi
19726
19727done
19728
19729  fi
19730
19731    fi
19732    if test "$pthreadh" = "1"; then
19733
19734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_getspecific takes two arguments" >&5
19735$as_echo_n "checking whether pthread_getspecific takes two arguments... " >&6; }
19736if ${ac_cv_pthread_getspecific_two_args+:} false; then :
19737  $as_echo_n "(cached) " >&6
19738else
19739
19740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19741/* end confdefs.h.  */
19742
19743#include <pthread.h>
19744
19745int
19746main ()
19747{
19748
19749pthread_key_t key;
19750void *tmp;
19751pthread_getspecific(key,&tmp);
19752
19753  ;
19754  return 0;
19755}
19756_ACEOF
19757if ac_fn_c_try_compile "$LINENO"; then :
19758
19759    ac_cv_pthread_getspecific_two_args=yes
19760
19761else
19762
19763    ac_cv_pthread_getspecific_two_args=no
19764
19765fi
19766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19767
19768fi
19769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_getspecific_two_args" >&5
19770$as_echo "$ac_cv_pthread_getspecific_two_args" >&6; }
19771
19772if test "$ac_cv_pthread_getspecific_two_args" = "yes"; then
19773
19774$as_echo "#define PTHREAD_GETSPECIFIC_TAKES_TWO_ARGS 1" >>confdefs.h
19775
19776fi
19777
19778
19779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_attr_getdetachstate takes one argument" >&5
19780$as_echo_n "checking whether pthread_attr_getdetachstate takes one argument... " >&6; }
19781if ${ac_cv_pthread_attr_getdetachstate_one_arg+:} false; then :
19782  $as_echo_n "(cached) " >&6
19783else
19784
19785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19786/* end confdefs.h.  */
19787
19788#include <pthread.h>
19789
19790int
19791main ()
19792{
19793
19794pthread_attr_t *attr;
19795pthread_attr_getdetachstate(attr);
19796
19797  ;
19798  return 0;
19799}
19800_ACEOF
19801if ac_fn_c_try_compile "$LINENO"; then :
19802
19803    ac_cv_pthread_attr_getdetachstate_one_arg=yes
19804
19805else
19806
19807    ac_cv_pthread_attr_getdetachstate_one_arg=no
19808
19809fi
19810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19811
19812fi
19813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_attr_getdetachstate_one_arg" >&5
19814$as_echo "$ac_cv_pthread_attr_getdetachstate_one_arg" >&6; }
19815
19816if test "$ac_cv_pthread_attr_getdetachstate_one_arg" = "yes"; then
19817
19818$as_echo "#define PTHREAD_ATTR_GETDETACHSTATE_TAKES_ONE_ARG 1" >>confdefs.h
19819
19820fi
19821
19822
19823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutex support" >&5
19824$as_echo_n "checking for recursive mutex support... " >&6; }
19825if ${apr_cv_mutex_recursive+:} false; then :
19826  $as_echo_n "(cached) " >&6
19827else
19828  if test "$cross_compiling" = yes; then :
19829  apr_cv_mutex_recursive=no
19830else
19831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19832/* end confdefs.h.  */
19833#include <sys/types.h>
19834#include <pthread.h>
19835#include <stdlib.h>
19836
19837int main() {
19838    pthread_mutexattr_t attr;
19839    pthread_mutex_t m;
19840
19841    exit (pthread_mutexattr_init(&attr)
19842          || pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
19843          || pthread_mutex_init(&m, &attr));
19844}
19845_ACEOF
19846if ac_fn_c_try_run "$LINENO"; then :
19847  apr_cv_mutex_recursive=yes
19848else
19849  apr_cv_mutex_recursive=no
19850fi
19851rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19852  conftest.$ac_objext conftest.beam conftest.$ac_ext
19853fi
19854
19855fi
19856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_recursive" >&5
19857$as_echo "$apr_cv_mutex_recursive" >&6; }
19858
19859if test "$apr_cv_mutex_recursive" = "yes"; then
19860
19861$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
19862
19863fi
19864
19865        for ac_func in pthread_key_delete pthread_rwlock_init \
19866                        pthread_attr_setguardsize pthread_yield
19867do :
19868  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19869ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19870if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19871  cat >>confdefs.h <<_ACEOF
19872#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19873_ACEOF
19874
19875fi
19876done
19877
19878
19879        if test "$ac_cv_func_pthread_rwlock_init" = "yes"; then
19880                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_t" >&5
19881$as_echo_n "checking for pthread_rwlock_t... " >&6; }
19882if ${apr_cv_type_rwlock_t+:} false; then :
19883  $as_echo_n "(cached) " >&6
19884else
19885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19886/* end confdefs.h.  */
19887#include <sys/types.h>
19888#include <pthread.h>
19889int
19890main ()
19891{
19892pthread_rwlock_t *rwlock;
19893  ;
19894  return 0;
19895}
19896_ACEOF
19897if ac_fn_c_try_compile "$LINENO"; then :
19898  apr_cv_type_rwlock_t=yes
19899else
19900  apr_cv_type_rwlock_t=no
19901fi
19902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19903fi
19904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_type_rwlock_t" >&5
19905$as_echo "$apr_cv_type_rwlock_t" >&6; }
19906            if test "$apr_cv_type_rwlock_t" = "yes"; then
19907
19908$as_echo "#define HAVE_PTHREAD_RWLOCKS 1" >>confdefs.h
19909
19910            fi
19911        fi
19912
19913        if test "$ac_cv_func_pthread_yield" = "no"; then
19914                        for ac_header in sched.h
19915do :
19916  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19917if test "x$ac_cv_header_sched_h" = xyes; then :
19918  cat >>confdefs.h <<_ACEOF
19919#define HAVE_SCHED_H 1
19920_ACEOF
19921
19922fi
19923
19924done
19925
19926            for ac_func in sched_yield
19927do :
19928  ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
19929if test "x$ac_cv_func_sched_yield" = xyes; then :
19930  cat >>confdefs.h <<_ACEOF
19931#define HAVE_SCHED_YIELD 1
19932_ACEOF
19933
19934fi
19935done
19936
19937        fi
19938    fi
19939fi
19940
19941ac_cv_define_READDIR_IS_THREAD_SAFE=no
19942ac_cv_define_GETHOSTBYNAME_IS_THREAD_SAFE=no
19943ac_cv_define_GETHOSTBYADDR_IS_THREAD_SAFE=no
19944ac_cv_define_GETSERVBYNAME_IS_THREAD_SAFE=no
19945if test "$threads" = "1"; then
19946    echo "APR will use threads"
19947    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readdir in -lc_r" >&5
19948$as_echo_n "checking for readdir in -lc_r... " >&6; }
19949if ${ac_cv_lib_c_r_readdir+:} false; then :
19950  $as_echo_n "(cached) " >&6
19951else
19952  ac_check_lib_save_LIBS=$LIBS
19953LIBS="-lc_r  $LIBS"
19954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19955/* end confdefs.h.  */
19956
19957/* Override any GCC internal prototype to avoid an error.
19958   Use char because int might match the return type of a GCC
19959   builtin and then its argument prototype would still apply.  */
19960#ifdef __cplusplus
19961extern "C"
19962#endif
19963char readdir ();
19964int
19965main ()
19966{
19967return readdir ();
19968  ;
19969  return 0;
19970}
19971_ACEOF
19972if ac_fn_c_try_link "$LINENO"; then :
19973  ac_cv_lib_c_r_readdir=yes
19974else
19975  ac_cv_lib_c_r_readdir=no
19976fi
19977rm -f core conftest.err conftest.$ac_objext \
19978    conftest$ac_exeext conftest.$ac_ext
19979LIBS=$ac_check_lib_save_LIBS
19980fi
19981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_readdir" >&5
19982$as_echo "$ac_cv_lib_c_r_readdir" >&6; }
19983if test "x$ac_cv_lib_c_r_readdir" = xyes; then :
19984
19985$as_echo "#define READDIR_IS_THREAD_SAFE 1" >>confdefs.h
19986
19987fi
19988
19989    if test "x$apr_gethostbyname_is_thread_safe" = "x"; then
19990        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lc_r" >&5
19991$as_echo_n "checking for gethostbyname in -lc_r... " >&6; }
19992if ${ac_cv_lib_c_r_gethostbyname+:} false; then :
19993  $as_echo_n "(cached) " >&6
19994else
19995  ac_check_lib_save_LIBS=$LIBS
19996LIBS="-lc_r  $LIBS"
19997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19998/* end confdefs.h.  */
19999
20000/* Override any GCC internal prototype to avoid an error.
20001   Use char because int might match the return type of a GCC
20002   builtin and then its argument prototype would still apply.  */
20003#ifdef __cplusplus
20004extern "C"
20005#endif
20006char gethostbyname ();
20007int
20008main ()
20009{
20010return gethostbyname ();
20011  ;
20012  return 0;
20013}
20014_ACEOF
20015if ac_fn_c_try_link "$LINENO"; then :
20016  ac_cv_lib_c_r_gethostbyname=yes
20017else
20018  ac_cv_lib_c_r_gethostbyname=no
20019fi
20020rm -f core conftest.err conftest.$ac_objext \
20021    conftest$ac_exeext conftest.$ac_ext
20022LIBS=$ac_check_lib_save_LIBS
20023fi
20024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyname" >&5
20025$as_echo "$ac_cv_lib_c_r_gethostbyname" >&6; }
20026if test "x$ac_cv_lib_c_r_gethostbyname" = xyes; then :
20027  apr_gethostbyname_is_thread_safe=yes
20028fi
20029
20030    fi
20031    if test "$apr_gethostbyname_is_thread_safe" = "yes"; then
20032
20033$as_echo "#define GETHOSTBYNAME_IS_THREAD_SAFE 1" >>confdefs.h
20034
20035    fi
20036    if test "x$apr_gethostbyaddr_is_thread_safe" = "x"; then
20037        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lc_r" >&5
20038$as_echo_n "checking for gethostbyaddr in -lc_r... " >&6; }
20039if ${ac_cv_lib_c_r_gethostbyaddr+:} false; then :
20040  $as_echo_n "(cached) " >&6
20041else
20042  ac_check_lib_save_LIBS=$LIBS
20043LIBS="-lc_r  $LIBS"
20044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20045/* end confdefs.h.  */
20046
20047/* Override any GCC internal prototype to avoid an error.
20048   Use char because int might match the return type of a GCC
20049   builtin and then its argument prototype would still apply.  */
20050#ifdef __cplusplus
20051extern "C"
20052#endif
20053char gethostbyaddr ();
20054int
20055main ()
20056{
20057return gethostbyaddr ();
20058  ;
20059  return 0;
20060}
20061_ACEOF
20062if ac_fn_c_try_link "$LINENO"; then :
20063  ac_cv_lib_c_r_gethostbyaddr=yes
20064else
20065  ac_cv_lib_c_r_gethostbyaddr=no
20066fi
20067rm -f core conftest.err conftest.$ac_objext \
20068    conftest$ac_exeext conftest.$ac_ext
20069LIBS=$ac_check_lib_save_LIBS
20070fi
20071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyaddr" >&5
20072$as_echo "$ac_cv_lib_c_r_gethostbyaddr" >&6; }
20073if test "x$ac_cv_lib_c_r_gethostbyaddr" = xyes; then :
20074  apr_gethostbyaddr_is_thread_safe=yes
20075fi
20076
20077    fi
20078    if test "$apr_gethostbyaddr_is_thread_safe" = "yes"; then
20079
20080$as_echo "#define GETHOSTBYADDR_IS_THREAD_SAFE 1" >>confdefs.h
20081
20082    fi
20083    if test "x$apr_getservbyname_is_thread_safe" = "x"; then
20084        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in -lc_r" >&5
20085$as_echo_n "checking for getservbyname in -lc_r... " >&6; }
20086if ${ac_cv_lib_c_r_getservbyname+:} false; then :
20087  $as_echo_n "(cached) " >&6
20088else
20089  ac_check_lib_save_LIBS=$LIBS
20090LIBS="-lc_r  $LIBS"
20091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20092/* end confdefs.h.  */
20093
20094/* Override any GCC internal prototype to avoid an error.
20095   Use char because int might match the return type of a GCC
20096   builtin and then its argument prototype would still apply.  */
20097#ifdef __cplusplus
20098extern "C"
20099#endif
20100char getservbyname ();
20101int
20102main ()
20103{
20104return getservbyname ();
20105  ;
20106  return 0;
20107}
20108_ACEOF
20109if ac_fn_c_try_link "$LINENO"; then :
20110  ac_cv_lib_c_r_getservbyname=yes
20111else
20112  ac_cv_lib_c_r_getservbyname=no
20113fi
20114rm -f core conftest.err conftest.$ac_objext \
20115    conftest$ac_exeext conftest.$ac_ext
20116LIBS=$ac_check_lib_save_LIBS
20117fi
20118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_getservbyname" >&5
20119$as_echo "$ac_cv_lib_c_r_getservbyname" >&6; }
20120if test "x$ac_cv_lib_c_r_getservbyname" = xyes; then :
20121  apr_getservbyname_is_thread_safe=yes
20122fi
20123
20124    fi
20125    if test "$apr_getservbyname_is_thread_safe" = "yes"; then
20126
20127$as_echo "#define GETSERVBYNAME_IS_THREAD_SAFE 1" >>confdefs.h
20128
20129    fi
20130    for ac_func in gethostbyname_r gethostbyaddr_r getservbyname_r
20131do :
20132  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20133ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20134if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20135  cat >>confdefs.h <<_ACEOF
20136#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20137_ACEOF
20138
20139fi
20140done
20141
20142else
20143    echo "APR will be non-threaded"
20144fi
20145
20146
20147# Check whether --with-efence was given.
20148if test "${with_efence+set}" = set; then :
20149  withval=$with_efence;  apr_efence_dir="$withval"
20150    if test "$apr_efence_dir" != "yes"; then
20151
20152  if test "x$LDFLAGS" = "x"; then
20153    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L$apr_efence_dir/lib\""
20154    LDFLAGS="-L$apr_efence_dir/lib"
20155  else
20156    apr_addto_bugger="-L$apr_efence_dir/lib"
20157    for i in $apr_addto_bugger; do
20158      apr_addto_duplicate="0"
20159      for j in $LDFLAGS; do
20160        if test "x$i" = "x$j"; then
20161          apr_addto_duplicate="1"
20162          break
20163        fi
20164      done
20165      if test $apr_addto_duplicate = "0"; then
20166        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
20167        LDFLAGS="$LDFLAGS $i"
20168      fi
20169    done
20170  fi
20171
20172      if test "x$apr_platform_runtime_link_flag" != "x"; then
20173
20174  if test "x$LDFLAGS" = "x"; then
20175    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$apr_platform_runtime_link_flag$apr_efence_dir/lib\""
20176    LDFLAGS="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
20177  else
20178    apr_addto_bugger="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
20179    for i in $apr_addto_bugger; do
20180      apr_addto_duplicate="0"
20181      for j in $LDFLAGS; do
20182        if test "x$i" = "x$j"; then
20183          apr_addto_duplicate="1"
20184          break
20185        fi
20186      done
20187      if test $apr_addto_duplicate = "0"; then
20188        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
20189        LDFLAGS="$LDFLAGS $i"
20190      fi
20191    done
20192  fi
20193
20194      fi
20195    fi
20196    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5
20197$as_echo_n "checking for malloc in -lefence... " >&6; }
20198if ${ac_cv_lib_efence_malloc+:} false; then :
20199  $as_echo_n "(cached) " >&6
20200else
20201  ac_check_lib_save_LIBS=$LIBS
20202LIBS="-lefence  $LIBS"
20203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20204/* end confdefs.h.  */
20205
20206/* Override any GCC internal prototype to avoid an error.
20207   Use char because int might match the return type of a GCC
20208   builtin and then its argument prototype would still apply.  */
20209#ifdef __cplusplus
20210extern "C"
20211#endif
20212char malloc ();
20213int
20214main ()
20215{
20216return malloc ();
20217  ;
20218  return 0;
20219}
20220_ACEOF
20221if ac_fn_c_try_link "$LINENO"; then :
20222  ac_cv_lib_efence_malloc=yes
20223else
20224  ac_cv_lib_efence_malloc=no
20225fi
20226rm -f core conftest.err conftest.$ac_objext \
20227    conftest$ac_exeext conftest.$ac_ext
20228LIBS=$ac_check_lib_save_LIBS
20229fi
20230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_malloc" >&5
20231$as_echo "$ac_cv_lib_efence_malloc" >&6; }
20232if test "x$ac_cv_lib_efence_malloc" = xyes; then :
20233
20234  if test "x$LIBS" = "x"; then
20235    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lefence\""
20236    LIBS="-lefence"
20237  else
20238    apr_addto_bugger="-lefence"
20239    for i in $apr_addto_bugger; do
20240      apr_addto_duplicate="0"
20241      for j in $LIBS; do
20242        if test "x$i" = "x$j"; then
20243          apr_addto_duplicate="1"
20244          break
20245        fi
20246      done
20247      if test $apr_addto_duplicate = "0"; then
20248        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
20249        LIBS="$LIBS $i"
20250      fi
20251    done
20252  fi
20253
20254else
20255   as_fn_error $? "Electric Fence requested but not detected" "$LINENO" 5
20256fi
20257
20258
20259fi
20260
20261
20262for ac_func in sigsuspend
20263do :
20264  ac_fn_c_check_func "$LINENO" "sigsuspend" "ac_cv_func_sigsuspend"
20265if test "x$ac_cv_func_sigsuspend" = xyes; then :
20266  cat >>confdefs.h <<_ACEOF
20267#define HAVE_SIGSUSPEND 1
20268_ACEOF
20269  have_sigsuspend="1"
20270else
20271   have_sigsuspend="0"
20272fi
20273done
20274
20275for ac_func in sigwait
20276do :
20277  ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
20278if test "x$ac_cv_func_sigwait" = xyes; then :
20279  cat >>confdefs.h <<_ACEOF
20280#define HAVE_SIGWAIT 1
20281_ACEOF
20282  have_sigwait="1"
20283else
20284   have_sigwait="0"
20285fi
20286done
20287
20288case $host in
20289    *alpha*-dec-osf* )
20290        have_sigwait="1"
20291        ;;
20292esac
20293
20294
20295
20296
20297
20298for ac_func in poll kqueue port_create
20299do :
20300  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20301ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20302if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20303  cat >>confdefs.h <<_ACEOF
20304#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20305_ACEOF
20306
20307fi
20308done
20309
20310
20311# Check for the Linux epoll interface; epoll* may be available in libc
20312# but return ENOSYS on a pre-2.6 kernel, so do a run-time check.
20313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support" >&5
20314$as_echo_n "checking for epoll support... " >&6; }
20315if ${apr_cv_epoll+:} false; then :
20316  $as_echo_n "(cached) " >&6
20317else
20318  if test "$cross_compiling" = yes; then :
20319  apr_cv_epoll=no
20320else
20321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20322/* end confdefs.h.  */
20323
20324#include <sys/epoll.h>
20325#include <unistd.h>
20326
20327int main()
20328{
20329    return epoll_create(5) == -1;
20330}
20331_ACEOF
20332if ac_fn_c_try_run "$LINENO"; then :
20333  apr_cv_epoll=yes
20334else
20335  apr_cv_epoll=no
20336fi
20337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20338  conftest.$ac_objext conftest.beam conftest.$ac_ext
20339fi
20340
20341fi
20342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll" >&5
20343$as_echo "$apr_cv_epoll" >&6; }
20344
20345if test "$apr_cv_epoll" = "yes"; then
20346
20347$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
20348
20349fi
20350
20351# test for epoll_create1
20352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5
20353$as_echo_n "checking for epoll_create1 support... " >&6; }
20354if ${apr_cv_epoll_create1+:} false; then :
20355  $as_echo_n "(cached) " >&6
20356else
20357  if test "$cross_compiling" = yes; then :
20358  apr_cv_epoll_create1=no
20359else
20360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20361/* end confdefs.h.  */
20362
20363#include <sys/epoll.h>
20364#include <unistd.h>
20365
20366int main()
20367{
20368    return epoll_create1(0) == -1;
20369}
20370_ACEOF
20371if ac_fn_c_try_run "$LINENO"; then :
20372  apr_cv_epoll_create1=yes
20373else
20374  apr_cv_epoll_create1=no
20375fi
20376rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20377  conftest.$ac_objext conftest.beam conftest.$ac_ext
20378fi
20379
20380fi
20381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5
20382$as_echo "$apr_cv_epoll_create1" >&6; }
20383
20384if test "$apr_cv_epoll_create1" = "yes"; then
20385
20386$as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
20387
20388fi
20389
20390# test for dup3
20391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5
20392$as_echo_n "checking for dup3 support... " >&6; }
20393if ${apr_cv_dup3+:} false; then :
20394  $as_echo_n "(cached) " >&6
20395else
20396  if test "$cross_compiling" = yes; then :
20397  apr_cv_dup3=no
20398else
20399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20400/* end confdefs.h.  */
20401
20402#include <unistd.h>
20403
20404int main()
20405{
20406    return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
20407}
20408_ACEOF
20409if ac_fn_c_try_run "$LINENO"; then :
20410  apr_cv_dup3=yes
20411else
20412  apr_cv_dup3=no
20413fi
20414rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20415  conftest.$ac_objext conftest.beam conftest.$ac_ext
20416fi
20417
20418fi
20419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5
20420$as_echo "$apr_cv_dup3" >&6; }
20421
20422if test "$apr_cv_dup3" = "yes"; then
20423
20424$as_echo "#define HAVE_DUP3 1" >>confdefs.h
20425
20426fi
20427
20428# test for accept4
20429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5
20430$as_echo_n "checking for accept4 support... " >&6; }
20431if ${apr_cv_accept4+:} false; then :
20432  $as_echo_n "(cached) " >&6
20433else
20434  if test "$cross_compiling" = yes; then :
20435  apr_cv_accept4=no
20436else
20437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20438/* end confdefs.h.  */
20439
20440#include <unistd.h>
20441#include <sys/types.h>
20442#include <sys/socket.h>
20443#include <sys/un.h>
20444#include <sys/wait.h>
20445#include <signal.h>
20446#include <errno.h>
20447
20448#define A4_SOCK "./apr_accept4_test_socket"
20449
20450int main()
20451{
20452    pid_t pid;
20453    int fd;
20454    struct sockaddr_un loc, rem;
20455    socklen_t rem_sz;
20456
20457    if ((pid = fork())) {
20458        int status;
20459
20460        unlink(A4_SOCK);
20461
20462        if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
20463            goto cleanup_failure2;
20464
20465        loc.sun_family = AF_UNIX;
20466        strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
20467
20468        if (bind(fd, (struct sockaddr *) &loc,
20469                 sizeof(struct sockaddr_un)) == -1)
20470            goto cleanup_failure;
20471
20472        if (listen(fd, 5) == -1)
20473            goto cleanup_failure;
20474
20475        rem_sz = sizeof(struct sockaddr_un);
20476        if (accept4(fd, (struct sockaddr *) &rem, &rem_sz, 0) == -1) {
20477            goto cleanup_failure;
20478        }
20479        else {
20480            close(fd);
20481            waitpid(pid, &status, 0);
20482            unlink(A4_SOCK);
20483            return 0;
20484        }
20485
20486cleanup_failure:
20487        close(fd);
20488cleanup_failure2:
20489        kill(pid, SIGKILL);
20490        waitpid(pid, &status, 0);
20491        unlink(A4_SOCK);
20492        return 1;
20493    }
20494    else {
20495        if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
20496            return 1; /* this will be bad: we'll hang */
20497
20498        loc.sun_family = AF_UNIX;
20499        strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
20500
20501        while(connect(fd, (struct sockaddr *) &loc,
20502                      sizeof(struct sockaddr_un)) == -1 &&
20503              (errno==ENOENT || errno==ECONNREFUSED))
20504            ;
20505
20506        close(fd);
20507        return 0;
20508    }
20509}
20510_ACEOF
20511if ac_fn_c_try_run "$LINENO"; then :
20512  apr_cv_accept4=yes
20513else
20514  apr_cv_accept4=no
20515fi
20516rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20517  conftest.$ac_objext conftest.beam conftest.$ac_ext
20518fi
20519
20520fi
20521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5
20522$as_echo "$apr_cv_accept4" >&6; }
20523
20524if test "$apr_cv_accept4" = "yes"; then
20525
20526$as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
20527
20528fi
20529
20530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5
20531$as_echo_n "checking for SOCK_CLOEXEC support... " >&6; }
20532if ${apr_cv_sock_cloexec+:} false; then :
20533  $as_echo_n "(cached) " >&6
20534else
20535  if test "$cross_compiling" = yes; then :
20536  apr_cv_sock_cloexec=no
20537else
20538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20539/* end confdefs.h.  */
20540
20541#include <sys/types.h>
20542#include <sys/socket.h>
20543
20544int main()
20545{
20546    return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
20547}
20548_ACEOF
20549if ac_fn_c_try_run "$LINENO"; then :
20550  apr_cv_sock_cloexec=yes
20551else
20552  apr_cv_sock_cloexec=no
20553fi
20554rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20555  conftest.$ac_objext conftest.beam conftest.$ac_ext
20556fi
20557
20558fi
20559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5
20560$as_echo "$apr_cv_sock_cloexec" >&6; }
20561
20562if test "$apr_cv_sock_cloexec" = "yes"; then
20563
20564$as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
20565
20566fi
20567
20568for ac_func in fdatasync
20569do :
20570  ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
20571if test "x$ac_cv_func_fdatasync" = xyes; then :
20572  cat >>confdefs.h <<_ACEOF
20573#define HAVE_FDATASYNC 1
20574_ACEOF
20575
20576fi
20577done
20578
20579
20580# test for epoll_create1
20581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5
20582$as_echo_n "checking for epoll_create1 support... " >&6; }
20583if ${apr_cv_epoll_create1+:} false; then :
20584  $as_echo_n "(cached) " >&6
20585else
20586  if test "$cross_compiling" = yes; then :
20587  apr_cv_epoll_create1=no
20588else
20589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20590/* end confdefs.h.  */
20591
20592#include <sys/epoll.h>
20593#include <unistd.h>
20594
20595int main()
20596{
20597    return epoll_create1(0) == -1;
20598}
20599_ACEOF
20600if ac_fn_c_try_run "$LINENO"; then :
20601  apr_cv_epoll_create1=yes
20602else
20603  apr_cv_epoll_create1=no
20604fi
20605rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20606  conftest.$ac_objext conftest.beam conftest.$ac_ext
20607fi
20608
20609fi
20610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5
20611$as_echo "$apr_cv_epoll_create1" >&6; }
20612
20613if test "$apr_cv_epoll_create1" = "yes"; then
20614
20615$as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
20616
20617fi
20618
20619# test for dup3
20620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5
20621$as_echo_n "checking for dup3 support... " >&6; }
20622if ${apr_cv_dup3+:} false; then :
20623  $as_echo_n "(cached) " >&6
20624else
20625  if test "$cross_compiling" = yes; then :
20626  apr_cv_dup3=no
20627else
20628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20629/* end confdefs.h.  */
20630
20631#include <unistd.h>
20632
20633int main()
20634{
20635    return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
20636}
20637_ACEOF
20638if ac_fn_c_try_run "$LINENO"; then :
20639  apr_cv_dup3=yes
20640else
20641  apr_cv_dup3=no
20642fi
20643rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20644  conftest.$ac_objext conftest.beam conftest.$ac_ext
20645fi
20646
20647fi
20648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5
20649$as_echo "$apr_cv_dup3" >&6; }
20650
20651if test "$apr_cv_dup3" = "yes"; then
20652
20653$as_echo "#define HAVE_DUP3 1" >>confdefs.h
20654
20655fi
20656
20657# test for accept4
20658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5
20659$as_echo_n "checking for accept4 support... " >&6; }
20660if ${apr_cv_accept4+:} false; then :
20661  $as_echo_n "(cached) " >&6
20662else
20663  if test "$cross_compiling" = yes; then :
20664  apr_cv_accept4=no
20665else
20666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20667/* end confdefs.h.  */
20668
20669#include <unistd.h>
20670#include <sys/types.h>
20671#include <sys/socket.h>
20672#include <sys/un.h>
20673#include <sys/wait.h>
20674#include <signal.h>
20675#include <errno.h>
20676
20677#define A4_SOCK "./apr_accept4_test_socket"
20678
20679int main()
20680{
20681    pid_t pid;
20682    int fd;
20683    struct sockaddr_un loc, rem;
20684    socklen_t rem_sz;
20685
20686    if ((pid = fork())) {
20687        int status;
20688
20689        unlink(A4_SOCK);
20690
20691        if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
20692            goto cleanup_failure2;
20693
20694        loc.sun_family = AF_UNIX;
20695        strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
20696
20697        if (bind(fd, (struct sockaddr *) &loc,
20698                 sizeof(struct sockaddr_un)) == -1)
20699            goto cleanup_failure;
20700
20701        if (listen(fd, 5) == -1)
20702            goto cleanup_failure;
20703
20704        rem_sz = sizeof(struct sockaddr_un);
20705        if (accept4(fd, (struct sockaddr *) &rem, &rem_sz, 0) == -1) {
20706            goto cleanup_failure;
20707        }
20708        else {
20709            close(fd);
20710            waitpid(pid, &status, 0);
20711            unlink(A4_SOCK);
20712            return 0;
20713        }
20714
20715cleanup_failure:
20716        close(fd);
20717cleanup_failure2:
20718        kill(pid, SIGKILL);
20719        waitpid(pid, &status, 0);
20720        unlink(A4_SOCK);
20721        return 1;
20722    }
20723    else {
20724        if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
20725            return 1; /* this will be bad: we'll hang */
20726
20727        loc.sun_family = AF_UNIX;
20728        strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
20729
20730        while(connect(fd, (struct sockaddr *) &loc,
20731                      sizeof(struct sockaddr_un)) == -1 &&
20732              (errno==ENOENT || errno==ECONNREFUSED))
20733            ;
20734
20735        close(fd);
20736        return 0;
20737    }
20738}
20739_ACEOF
20740if ac_fn_c_try_run "$LINENO"; then :
20741  apr_cv_accept4=yes
20742else
20743  apr_cv_accept4=no
20744fi
20745rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20746  conftest.$ac_objext conftest.beam conftest.$ac_ext
20747fi
20748
20749fi
20750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5
20751$as_echo "$apr_cv_accept4" >&6; }
20752
20753if test "$apr_cv_accept4" = "yes"; then
20754
20755$as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
20756
20757fi
20758
20759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5
20760$as_echo_n "checking for SOCK_CLOEXEC support... " >&6; }
20761if ${apr_cv_sock_cloexec+:} false; then :
20762  $as_echo_n "(cached) " >&6
20763else
20764  if test "$cross_compiling" = yes; then :
20765  apr_cv_sock_cloexec=no
20766else
20767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20768/* end confdefs.h.  */
20769
20770#include <sys/types.h>
20771#include <sys/socket.h>
20772
20773int main()
20774{
20775    return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
20776}
20777_ACEOF
20778if ac_fn_c_try_run "$LINENO"; then :
20779  apr_cv_sock_cloexec=yes
20780else
20781  apr_cv_sock_cloexec=no
20782fi
20783rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20784  conftest.$ac_objext conftest.beam conftest.$ac_ext
20785fi
20786
20787fi
20788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5
20789$as_echo "$apr_cv_sock_cloexec" >&6; }
20790
20791if test "$apr_cv_sock_cloexec" = "yes"; then
20792
20793$as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
20794
20795fi
20796
20797for ac_func in getpwnam_r getpwuid_r getgrnam_r getgrgid_r
20798do :
20799  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20800ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20801if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20802  cat >>confdefs.h <<_ACEOF
20803#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20804_ACEOF
20805
20806fi
20807done
20808
20809
20810echo "${nl}Checking for Shared Memory Support..."
20811
20812# The real-time POSIX extensions (e.g. shm_*, sem_*) may only
20813# be available if linking against librt.
20814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
20815$as_echo_n "checking for library containing shm_open... " >&6; }
20816if ${ac_cv_search_shm_open+:} false; then :
20817  $as_echo_n "(cached) " >&6
20818else
20819  ac_func_search_save_LIBS=$LIBS
20820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20821/* end confdefs.h.  */
20822
20823/* Override any GCC internal prototype to avoid an error.
20824   Use char because int might match the return type of a GCC
20825   builtin and then its argument prototype would still apply.  */
20826#ifdef __cplusplus
20827extern "C"
20828#endif
20829char shm_open ();
20830int
20831main ()
20832{
20833return shm_open ();
20834  ;
20835  return 0;
20836}
20837_ACEOF
20838for ac_lib in '' rt; do
20839  if test -z "$ac_lib"; then
20840    ac_res="none required"
20841  else
20842    ac_res=-l$ac_lib
20843    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20844  fi
20845  if ac_fn_c_try_link "$LINENO"; then :
20846  ac_cv_search_shm_open=$ac_res
20847fi
20848rm -f core conftest.err conftest.$ac_objext \
20849    conftest$ac_exeext
20850  if ${ac_cv_search_shm_open+:} false; then :
20851  break
20852fi
20853done
20854if ${ac_cv_search_shm_open+:} false; then :
20855
20856else
20857  ac_cv_search_shm_open=no
20858fi
20859rm conftest.$ac_ext
20860LIBS=$ac_func_search_save_LIBS
20861fi
20862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
20863$as_echo "$ac_cv_search_shm_open" >&6; }
20864ac_res=$ac_cv_search_shm_open
20865if test "$ac_res" != no; then :
20866  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20867
20868fi
20869
20870
20871case $host in
20872 *-sysv*)
20873   ac_includes_default="$ac_includes_default
20874#if HAVE_SYS_MUTEX_H /* needed to define lock_t for sys/shm.h */
20875# include <sys/mutex.h>
20876#endif";;
20877esac
20878
20879for 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
20880do :
20881  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20882ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20883if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20884  cat >>confdefs.h <<_ACEOF
20885#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20886_ACEOF
20887
20888fi
20889
20890done
20891
20892for ac_func in mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \
20893                create_area
20894do :
20895  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20896ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20897if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20898  cat >>confdefs.h <<_ACEOF
20899#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20900_ACEOF
20901
20902fi
20903done
20904
20905
20906
20907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON in sys/mman.h" >&5
20908$as_echo_n "checking for MAP_ANON in sys/mman.h... " >&6; }
20909if ${ac_cv_define_MAP_ANON+:} false; then :
20910  $as_echo_n "(cached) " >&6
20911else
20912
20913    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20914/* end confdefs.h.  */
20915
20916#include <sys/mman.h>
20917#ifdef MAP_ANON
20918YES_IS_DEFINED
20919#endif
20920
20921_ACEOF
20922if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20923  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
20924  ac_cv_define_MAP_ANON=yes
20925else
20926  ac_cv_define_MAP_ANON=no
20927fi
20928rm -f conftest*
20929
20930
20931fi
20932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_MAP_ANON" >&5
20933$as_echo "$ac_cv_define_MAP_ANON" >&6; }
20934  if test "$ac_cv_define_MAP_ANON" = "yes"; then
20935
20936$as_echo "#define HAVE_MAP_ANON 1" >>confdefs.h
20937
20938  fi
20939
20940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
20941$as_echo_n "checking for /dev/zero... " >&6; }
20942if ${ac_cv_file__dev_zero+:} false; then :
20943  $as_echo_n "(cached) " >&6
20944else
20945  test "$cross_compiling" = yes &&
20946  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20947if test -r "/dev/zero"; then
20948  ac_cv_file__dev_zero=yes
20949else
20950  ac_cv_file__dev_zero=no
20951fi
20952fi
20953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5
20954$as_echo "$ac_cv_file__dev_zero" >&6; }
20955if test "x$ac_cv_file__dev_zero" = xyes; then :
20956
20957fi
20958
20959
20960# Not all systems can mmap /dev/zero (such as HP-UX).  Check for that.
20961if test "$ac_cv_func_mmap" = "yes" &&
20962   test "$ac_cv_file__dev_zero" = "yes"; then
20963    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap that can map /dev/zero" >&5
20964$as_echo_n "checking for mmap that can map /dev/zero... " >&6; }
20965    if test "$cross_compiling" = yes; then :
20966  ac_cv_file__dev_zero=no
20967else
20968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20969/* end confdefs.h.  */
20970
20971#include <sys/types.h>
20972#include <sys/stat.h>
20973#include <fcntl.h>
20974#ifdef HAVE_SYS_MMAN_H
20975#include <sys/mman.h>
20976#endif
20977    int main()
20978    {
20979        int fd;
20980        void *m;
20981        fd = open("/dev/zero", O_RDWR);
20982        if (fd < 0) {
20983            return 1;
20984        }
20985        m = mmap(0, sizeof(void*), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
20986        if (m == (void *)-1) {  /* aka MAP_FAILED */
20987            return 2;
20988        }
20989        if (munmap(m, sizeof(void*)) < 0) {
20990            return 3;
20991        }
20992        return 0;
20993    }
20994_ACEOF
20995if ac_fn_c_try_run "$LINENO"; then :
20996
20997else
20998  ac_cv_file__dev_zero=no
20999fi
21000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21001  conftest.$ac_objext conftest.beam conftest.$ac_ext
21002fi
21003
21004
21005    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5
21006$as_echo "$ac_cv_file__dev_zero" >&6; }
21007fi
21008
21009# Now we determine which one is our anonymous shmem preference.
21010haveshmgetanon="0"
21011havemmapzero="0"
21012havemmapanon="0"
21013ac_decision_item='anonymous shared memory allocation method'
21014ac_decision_msg='FAILED'
21015ac_decision=''
21016
21017ac_rc=yes
21018for ac_spec in header:sys/ipc.h header:sys/shm.h header:sys/file.h              func:shmget func:shmat func:shmdt func:shmctl; do
21019    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21020    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21021    case $ac_type in
21022        header )
21023            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21024            ac_var="ac_cv_header_$ac_item"
21025            ;;
21026        file )
21027            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21028            ac_var="ac_cv_file_$ac_item"
21029            ;;
21030        func )   ac_var="ac_cv_func_$ac_item"   ;;
21031        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21032        define ) ac_var="ac_cv_define_$ac_item" ;;
21033        custom ) ac_var="$ac_item" ;;
21034    esac
21035    eval "ac_val=\$$ac_var"
21036    if test ".$ac_val" != .yes; then
21037        ac_rc=no
21038        break
21039    fi
21040done
21041if test ".$ac_rc" = .yes; then
21042    :
21043    haveshmgetanon="1"
21044
21045ac_decision='USE_SHMEM_SHMGET_ANON'
21046ac_decision_msg='SysV IPC shmget()'
21047ac_decision_USE_SHMEM_SHMGET_ANON=yes
21048ac_decision_USE_SHMEM_SHMGET_ANON_msg='SysV IPC shmget()'
21049
21050else
21051    :
21052
21053fi
21054
21055ac_rc=yes
21056for ac_spec in header:sys/mman.h func:mmap func:munmap file:/dev/zero; do
21057    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21058    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21059    case $ac_type in
21060        header )
21061            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21062            ac_var="ac_cv_header_$ac_item"
21063            ;;
21064        file )
21065            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21066            ac_var="ac_cv_file_$ac_item"
21067            ;;
21068        func )   ac_var="ac_cv_func_$ac_item"   ;;
21069        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21070        define ) ac_var="ac_cv_define_$ac_item" ;;
21071        custom ) ac_var="$ac_item" ;;
21072    esac
21073    eval "ac_val=\$$ac_var"
21074    if test ".$ac_val" != .yes; then
21075        ac_rc=no
21076        break
21077    fi
21078done
21079if test ".$ac_rc" = .yes; then
21080    :
21081    havemmapzero="1"
21082
21083ac_decision='USE_SHMEM_MMAP_ZERO'
21084ac_decision_msg='SVR4-style mmap() on /dev/zero'
21085ac_decision_USE_SHMEM_MMAP_ZERO=yes
21086ac_decision_USE_SHMEM_MMAP_ZERO_msg='SVR4-style mmap() on /dev/zero'
21087
21088else
21089    :
21090
21091fi
21092
21093ac_rc=yes
21094for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
21095    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21096    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21097    case $ac_type in
21098        header )
21099            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21100            ac_var="ac_cv_header_$ac_item"
21101            ;;
21102        file )
21103            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21104            ac_var="ac_cv_file_$ac_item"
21105            ;;
21106        func )   ac_var="ac_cv_func_$ac_item"   ;;
21107        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21108        define ) ac_var="ac_cv_define_$ac_item" ;;
21109        custom ) ac_var="$ac_item" ;;
21110    esac
21111    eval "ac_val=\$$ac_var"
21112    if test ".$ac_val" != .yes; then
21113        ac_rc=no
21114        break
21115    fi
21116done
21117if test ".$ac_rc" = .yes; then
21118    :
21119    havemmapanon="1"
21120
21121ac_decision='USE_SHMEM_MMAP_ANON'
21122ac_decision_msg='4.4BSD-style mmap() via MAP_ANON'
21123ac_decision_USE_SHMEM_MMAP_ANON=yes
21124ac_decision_USE_SHMEM_MMAP_ANON_msg='4.4BSD-style mmap() via MAP_ANON'
21125
21126else
21127    :
21128
21129fi
21130
21131ac_rc=yes
21132for ac_spec in header:os2.h; do
21133    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21134    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21135    case $ac_type in
21136        header )
21137            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21138            ac_var="ac_cv_header_$ac_item"
21139            ;;
21140        file )
21141            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21142            ac_var="ac_cv_file_$ac_item"
21143            ;;
21144        func )   ac_var="ac_cv_func_$ac_item"   ;;
21145        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21146        define ) ac_var="ac_cv_define_$ac_item" ;;
21147        custom ) ac_var="$ac_item" ;;
21148    esac
21149    eval "ac_val=\$$ac_var"
21150    if test ".$ac_val" != .yes; then
21151        ac_rc=no
21152        break
21153    fi
21154done
21155if test ".$ac_rc" = .yes; then
21156    :
21157    haveos2shm="1"
21158
21159ac_decision='USE_SHMEM_OS2_ANON'
21160ac_decision_msg='OS/2 DosAllocSharedMem()'
21161ac_decision_USE_SHMEM_OS2_ANON=yes
21162ac_decision_USE_SHMEM_OS2_ANON_msg='OS/2 DosAllocSharedMem()'
21163
21164else
21165    :
21166
21167fi
21168
21169ac_rc=yes
21170for ac_spec in header:kernel/OS.h func:create_area; do
21171    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21172    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21173    case $ac_type in
21174        header )
21175            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21176            ac_var="ac_cv_header_$ac_item"
21177            ;;
21178        file )
21179            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21180            ac_var="ac_cv_file_$ac_item"
21181            ;;
21182        func )   ac_var="ac_cv_func_$ac_item"   ;;
21183        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21184        define ) ac_var="ac_cv_define_$ac_item" ;;
21185        custom ) ac_var="$ac_item" ;;
21186    esac
21187    eval "ac_val=\$$ac_var"
21188    if test ".$ac_val" != .yes; then
21189        ac_rc=no
21190        break
21191    fi
21192done
21193if test ".$ac_rc" = .yes; then
21194    :
21195    havebeosshm="1"
21196
21197ac_decision='USE_SHMEM_BEOS_ANON'
21198ac_decision_msg='BeOS areas'
21199ac_decision_USE_SHMEM_BEOS_ANON=yes
21200ac_decision_USE_SHMEM_BEOS_ANON_msg='BeOS areas'
21201
21202else
21203    :
21204
21205fi
21206
21207ac_rc=yes
21208for ac_spec in header:windows.h func:CreateFileMapping; do
21209    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21210    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21211    case $ac_type in
21212        header )
21213            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21214            ac_var="ac_cv_header_$ac_item"
21215            ;;
21216        file )
21217            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21218            ac_var="ac_cv_file_$ac_item"
21219            ;;
21220        func )   ac_var="ac_cv_func_$ac_item"   ;;
21221        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21222        define ) ac_var="ac_cv_define_$ac_item" ;;
21223        custom ) ac_var="$ac_item" ;;
21224    esac
21225    eval "ac_val=\$$ac_var"
21226    if test ".$ac_val" != .yes; then
21227        ac_rc=no
21228        break
21229    fi
21230done
21231if test ".$ac_rc" = .yes; then
21232    :
21233    havewin32shm="1"
21234
21235ac_decision='USE_SHMEM_WIN32_ANON'
21236ac_decision_msg='Windows CreateFileMapping()'
21237ac_decision_USE_SHMEM_WIN32_ANON=yes
21238ac_decision_USE_SHMEM_WIN32_ANON_msg='Windows CreateFileMapping()'
21239
21240else
21241    :
21242
21243fi
21244
21245case $host in
21246    *linux* )
21247        # Linux has problems with MM_SHMT_MMANON even though it reports
21248        # that it has it.
21249        # FIXME - find exact 2.3 version that MMANON was fixed in.  It is
21250        # confirmed fixed in 2.4 series.
21251        if test $os_version -le "240"; then
21252                ac_decision=''
21253    for ac_item in USE_SHMEM_MMAP_ZERO USE_SHMEM_SHMGET_ANON; do
21254         eval "ac_decision_this=\$ac_decision_${ac_item}"
21255         if test ".$ac_decision_this" = .yes; then
21256             ac_decision=$ac_item
21257             eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21258         fi
21259    done
21260
21261        fi
21262        ;;
21263    *hpux11* )
21264            ac_decision=''
21265    for ac_item in USE_SHMEM_SHMGET_ANON; do
21266         eval "ac_decision_this=\$ac_decision_${ac_item}"
21267         if test ".$ac_decision_this" = .yes; then
21268             ac_decision=$ac_item
21269             eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21270         fi
21271    done
21272
21273        ;;
21274esac
21275if test ".$ac_decision" = .; then
21276    echo "$0:Error: decision on $ac_decision_item failed" 1>&2
21277    exit 1
21278else
21279    if test ".$ac_decision_msg" = .; then
21280        ac_decision_msg="$ac_decision"
21281    fi
21282    cat >>confdefs.h <<_ACEOF
21283#define ${ac_decision_item} 1
21284_ACEOF
21285
21286    { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
21287$as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
21288fi
21289
21290cat >>confdefs.h <<_ACEOF
21291#define $ac_decision 1
21292_ACEOF
21293
21294
21295useshmgetanon="0"
21296usemmapzero="0"
21297usemmapanon="0"
21298
21299case $ac_decision in
21300    USE_SHMEM_SHMGET_ANON )
21301        useshmgetanon="1"
21302        ;;
21303    USE_SHMEM_MMAP_ZERO )
21304        usemmapzero="1"
21305        ;;
21306    USE_SHMEM_MMAP_ANON )
21307        usemmapanon="1"
21308        ;;
21309esac
21310
21311
21312
21313
21314
21315
21316
21317
21318# Now we determine which one is our name-based shmem preference.
21319havemmaptmp="0"
21320havemmapshm="0"
21321haveshmget="0"
21322havebeosarea="0"
21323haveos2shm="0"
21324havewin32shm="0"
21325ac_decision_item='namebased memory allocation method'
21326ac_decision_msg='FAILED'
21327ac_decision=''
21328
21329ac_rc=yes
21330for ac_spec in header:sys/mman.h func:mmap func:munmap; do
21331    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21332    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21333    case $ac_type in
21334        header )
21335            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21336            ac_var="ac_cv_header_$ac_item"
21337            ;;
21338        file )
21339            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21340            ac_var="ac_cv_file_$ac_item"
21341            ;;
21342        func )   ac_var="ac_cv_func_$ac_item"   ;;
21343        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21344        define ) ac_var="ac_cv_define_$ac_item" ;;
21345        custom ) ac_var="$ac_item" ;;
21346    esac
21347    eval "ac_val=\$$ac_var"
21348    if test ".$ac_val" != .yes; then
21349        ac_rc=no
21350        break
21351    fi
21352done
21353if test ".$ac_rc" = .yes; then
21354    :
21355    havemmaptmp="1"
21356
21357ac_decision='USE_SHMEM_MMAP_TMP'
21358ac_decision_msg='Classical mmap() on temporary file'
21359ac_decision_USE_SHMEM_MMAP_TMP=yes
21360ac_decision_USE_SHMEM_MMAP_TMP_msg='Classical mmap() on temporary file'
21361
21362else
21363    :
21364
21365fi
21366
21367ac_rc=yes
21368for ac_spec in header:sys/mman.h func:mmap func:munmap func:shm_open              func:shm_unlink; do
21369    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21370    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21371    case $ac_type in
21372        header )
21373            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21374            ac_var="ac_cv_header_$ac_item"
21375            ;;
21376        file )
21377            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21378            ac_var="ac_cv_file_$ac_item"
21379            ;;
21380        func )   ac_var="ac_cv_func_$ac_item"   ;;
21381        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21382        define ) ac_var="ac_cv_define_$ac_item" ;;
21383        custom ) ac_var="$ac_item" ;;
21384    esac
21385    eval "ac_val=\$$ac_var"
21386    if test ".$ac_val" != .yes; then
21387        ac_rc=no
21388        break
21389    fi
21390done
21391if test ".$ac_rc" = .yes; then
21392    :
21393    havemmapshm="1"
21394
21395ac_decision='USE_SHMEM_MMAP_SHM'
21396ac_decision_msg='mmap() via POSIX.1 shm_open() on temporary file'
21397ac_decision_USE_SHMEM_MMAP_SHM=yes
21398ac_decision_USE_SHMEM_MMAP_SHM_msg='mmap() via POSIX.1 shm_open() on temporary file'
21399
21400else
21401    :
21402
21403fi
21404
21405ac_rc=yes
21406for ac_spec in header:sys/ipc.h header:sys/shm.h header:sys/file.h              func:shmget func:shmat func:shmdt func:shmctl; do
21407    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21408    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21409    case $ac_type in
21410        header )
21411            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21412            ac_var="ac_cv_header_$ac_item"
21413            ;;
21414        file )
21415            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21416            ac_var="ac_cv_file_$ac_item"
21417            ;;
21418        func )   ac_var="ac_cv_func_$ac_item"   ;;
21419        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21420        define ) ac_var="ac_cv_define_$ac_item" ;;
21421        custom ) ac_var="$ac_item" ;;
21422    esac
21423    eval "ac_val=\$$ac_var"
21424    if test ".$ac_val" != .yes; then
21425        ac_rc=no
21426        break
21427    fi
21428done
21429if test ".$ac_rc" = .yes; then
21430    :
21431    haveshmget="1"
21432
21433ac_decision='USE_SHMEM_SHMGET'
21434ac_decision_msg='SysV IPC shmget()'
21435ac_decision_USE_SHMEM_SHMGET=yes
21436ac_decision_USE_SHMEM_SHMGET_msg='SysV IPC shmget()'
21437
21438else
21439    :
21440
21441fi
21442
21443ac_rc=yes
21444for ac_spec in header:kernel/OS.h func:create_area; do
21445    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21446    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21447    case $ac_type in
21448        header )
21449            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21450            ac_var="ac_cv_header_$ac_item"
21451            ;;
21452        file )
21453            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21454            ac_var="ac_cv_file_$ac_item"
21455            ;;
21456        func )   ac_var="ac_cv_func_$ac_item"   ;;
21457        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21458        define ) ac_var="ac_cv_define_$ac_item" ;;
21459        custom ) ac_var="$ac_item" ;;
21460    esac
21461    eval "ac_val=\$$ac_var"
21462    if test ".$ac_val" != .yes; then
21463        ac_rc=no
21464        break
21465    fi
21466done
21467if test ".$ac_rc" = .yes; then
21468    :
21469    havebeosshm="1"
21470
21471ac_decision='USE_SHMEM_BEOS'
21472ac_decision_msg='BeOS areas'
21473ac_decision_USE_SHMEM_BEOS=yes
21474ac_decision_USE_SHMEM_BEOS_msg='BeOS areas'
21475
21476else
21477    :
21478
21479fi
21480
21481ac_rc=yes
21482for ac_spec in header:os2.h; do
21483    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21484    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21485    case $ac_type in
21486        header )
21487            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21488            ac_var="ac_cv_header_$ac_item"
21489            ;;
21490        file )
21491            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21492            ac_var="ac_cv_file_$ac_item"
21493            ;;
21494        func )   ac_var="ac_cv_func_$ac_item"   ;;
21495        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21496        define ) ac_var="ac_cv_define_$ac_item" ;;
21497        custom ) ac_var="$ac_item" ;;
21498    esac
21499    eval "ac_val=\$$ac_var"
21500    if test ".$ac_val" != .yes; then
21501        ac_rc=no
21502        break
21503    fi
21504done
21505if test ".$ac_rc" = .yes; then
21506    :
21507    haveos2shm="1"
21508
21509ac_decision='USE_SHMEM_OS2'
21510ac_decision_msg='OS/2 DosAllocSharedMem()'
21511ac_decision_USE_SHMEM_OS2=yes
21512ac_decision_USE_SHMEM_OS2_msg='OS/2 DosAllocSharedMem()'
21513
21514else
21515    :
21516
21517fi
21518
21519ac_rc=yes
21520for ac_spec in header:windows.h; do
21521    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21522    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21523    case $ac_type in
21524        header )
21525            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21526            ac_var="ac_cv_header_$ac_item"
21527            ;;
21528        file )
21529            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21530            ac_var="ac_cv_file_$ac_item"
21531            ;;
21532        func )   ac_var="ac_cv_func_$ac_item"   ;;
21533        struct ) ac_var="ac_cv_struct_$ac_item" ;;
21534        define ) ac_var="ac_cv_define_$ac_item" ;;
21535        custom ) ac_var="$ac_item" ;;
21536    esac
21537    eval "ac_val=\$$ac_var"
21538    if test ".$ac_val" != .yes; then
21539        ac_rc=no
21540        break
21541    fi
21542done
21543if test ".$ac_rc" = .yes; then
21544    :
21545    havewin32shm="1"
21546
21547ac_decision='USE_SHMEM_WIN32'
21548ac_decision_msg='Windows shared memory'
21549ac_decision_USE_SHMEM_WIN32=yes
21550ac_decision_USE_SHMEM_WIN32_msg='Windows shared memory'
21551
21552else
21553    :
21554
21555fi
21556
21557case $host in
21558    *linux* )
21559        # Linux has problems with MM_SHMT_MMANON even though it reports
21560        # that it has it.
21561        # FIXME - find exact 2.3 version that MMANON was fixed in.  It is
21562        # confirmed fixed in 2.4 series.
21563        if test $os_version -le "240"; then
21564                ac_decision=''
21565    for ac_item in USE_SHMEM_MMAP_TMP USE_SHMEM_MMAP_SHM                                   USE_SHMEM_SHMGET; do
21566         eval "ac_decision_this=\$ac_decision_${ac_item}"
21567         if test ".$ac_decision_this" = .yes; then
21568             ac_decision=$ac_item
21569             eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21570         fi
21571    done
21572
21573        fi
21574        ;;
21575esac
21576if test ".$ac_decision" = .; then
21577    echo "$0:Error: decision on $ac_decision_item failed" 1>&2
21578    exit 1
21579else
21580    if test ".$ac_decision_msg" = .; then
21581        ac_decision_msg="$ac_decision"
21582    fi
21583    cat >>confdefs.h <<_ACEOF
21584#define ${ac_decision_item} 1
21585_ACEOF
21586
21587    { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
21588$as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
21589fi
21590
21591cat >>confdefs.h <<_ACEOF
21592#define $ac_decision 1
21593_ACEOF
21594
21595
21596usemmaptmp="0"
21597usemmapshm="0"
21598useshmget="0"
21599usebeosarea="0"
21600useos2shm="0"
21601usewin32shm="0"
21602
21603case $ac_decision in
21604    USE_SHMEM_MMAP_TMP )
21605        usemmaptmp="1"
21606        ;;
21607    USE_SHMEM_MMAP_SHM )
21608        usemmapshm="1"
21609        ;;
21610    USE_SHMEM_SHMGET )
21611        useshmget="1"
21612        ;;
21613    USE_SHMEM_BEOS )
21614        usebeosarea="1"
21615        ;;
21616    USE_SHMEM_OS2 )
21617        useos2shm="1"
21618        ;;
21619    USE_SHMEM_WIN32 )
21620        usewin32shm="1"
21621        ;;
21622esac
21623
21624# Do we have any shared memory support?
21625if test "$usemmaptmp$usemmapshm$usemmapzero$useshmget$usemmapanon$usebeosarea$useos2shm$usewin32shm" = "00000000"; then
21626  sharedmem="0"
21627else
21628  sharedmem="1"
21629fi
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21647if test "x$ac_cv_type_size_t" = xyes; then :
21648
21649else
21650
21651cat >>confdefs.h <<_ACEOF
21652#define size_t unsigned int
21653_ACEOF
21654
21655fi
21656
21657# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21658# for constant arguments.  Useless!
21659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21660$as_echo_n "checking for working alloca.h... " >&6; }
21661if ${ac_cv_working_alloca_h+:} false; then :
21662  $as_echo_n "(cached) " >&6
21663else
21664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21665/* end confdefs.h.  */
21666#include <alloca.h>
21667int
21668main ()
21669{
21670char *p = (char *) alloca (2 * sizeof (int));
21671			  if (p) return 0;
21672  ;
21673  return 0;
21674}
21675_ACEOF
21676if ac_fn_c_try_link "$LINENO"; then :
21677  ac_cv_working_alloca_h=yes
21678else
21679  ac_cv_working_alloca_h=no
21680fi
21681rm -f core conftest.err conftest.$ac_objext \
21682    conftest$ac_exeext conftest.$ac_ext
21683fi
21684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21685$as_echo "$ac_cv_working_alloca_h" >&6; }
21686if test $ac_cv_working_alloca_h = yes; then
21687
21688$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21689
21690fi
21691
21692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21693$as_echo_n "checking for alloca... " >&6; }
21694if ${ac_cv_func_alloca_works+:} false; then :
21695  $as_echo_n "(cached) " >&6
21696else
21697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21698/* end confdefs.h.  */
21699#ifdef __GNUC__
21700# define alloca __builtin_alloca
21701#else
21702# ifdef _MSC_VER
21703#  include <malloc.h>
21704#  define alloca _alloca
21705# else
21706#  ifdef HAVE_ALLOCA_H
21707#   include <alloca.h>
21708#  else
21709#   ifdef _AIX
21710 #pragma alloca
21711#   else
21712#    ifndef alloca /* predefined by HP cc +Olibcalls */
21713void *alloca (size_t);
21714#    endif
21715#   endif
21716#  endif
21717# endif
21718#endif
21719
21720int
21721main ()
21722{
21723char *p = (char *) alloca (1);
21724				    if (p) return 0;
21725  ;
21726  return 0;
21727}
21728_ACEOF
21729if ac_fn_c_try_link "$LINENO"; then :
21730  ac_cv_func_alloca_works=yes
21731else
21732  ac_cv_func_alloca_works=no
21733fi
21734rm -f core conftest.err conftest.$ac_objext \
21735    conftest$ac_exeext conftest.$ac_ext
21736fi
21737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21738$as_echo "$ac_cv_func_alloca_works" >&6; }
21739
21740if test $ac_cv_func_alloca_works = yes; then
21741
21742$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21743
21744else
21745  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21746# that cause trouble.  Some versions do not even contain alloca or
21747# contain a buggy version.  If you still want to use their alloca,
21748# use ar to extract alloca.o from them instead of compiling alloca.c.
21749
21750ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21751
21752$as_echo "#define C_ALLOCA 1" >>confdefs.h
21753
21754
21755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21756$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21757if ${ac_cv_os_cray+:} false; then :
21758  $as_echo_n "(cached) " >&6
21759else
21760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21761/* end confdefs.h.  */
21762#if defined CRAY && ! defined CRAY2
21763webecray
21764#else
21765wenotbecray
21766#endif
21767
21768_ACEOF
21769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21770  $EGREP "webecray" >/dev/null 2>&1; then :
21771  ac_cv_os_cray=yes
21772else
21773  ac_cv_os_cray=no
21774fi
21775rm -f conftest*
21776
21777fi
21778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21779$as_echo "$ac_cv_os_cray" >&6; }
21780if test $ac_cv_os_cray = yes; then
21781  for ac_func in _getb67 GETB67 getb67; do
21782    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21783ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21784if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21785
21786cat >>confdefs.h <<_ACEOF
21787#define CRAY_STACKSEG_END $ac_func
21788_ACEOF
21789
21790    break
21791fi
21792
21793  done
21794fi
21795
21796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21797$as_echo_n "checking stack direction for C alloca... " >&6; }
21798if ${ac_cv_c_stack_direction+:} false; then :
21799  $as_echo_n "(cached) " >&6
21800else
21801  if test "$cross_compiling" = yes; then :
21802  ac_cv_c_stack_direction=0
21803else
21804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21805/* end confdefs.h.  */
21806$ac_includes_default
21807int
21808find_stack_direction ()
21809{
21810  static char *addr = 0;
21811  auto char dummy;
21812  if (addr == 0)
21813    {
21814      addr = &dummy;
21815      return find_stack_direction ();
21816    }
21817  else
21818    return (&dummy > addr) ? 1 : -1;
21819}
21820
21821int
21822main ()
21823{
21824  return find_stack_direction () < 0;
21825}
21826_ACEOF
21827if ac_fn_c_try_run "$LINENO"; then :
21828  ac_cv_c_stack_direction=1
21829else
21830  ac_cv_c_stack_direction=-1
21831fi
21832rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21833  conftest.$ac_objext conftest.beam conftest.$ac_ext
21834fi
21835
21836fi
21837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21838$as_echo "$ac_cv_c_stack_direction" >&6; }
21839cat >>confdefs.h <<_ACEOF
21840#define STACK_DIRECTION $ac_cv_c_stack_direction
21841_ACEOF
21842
21843
21844fi
21845
21846
21847for ac_func in calloc setsid isinf isnan \
21848                getenv putenv setenv unsetenv \
21849                writev getifaddrs utime utimes
21850do :
21851  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21852ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21853if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21854  cat >>confdefs.h <<_ACEOF
21855#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21856_ACEOF
21857
21858fi
21859done
21860
21861for ac_func in setrlimit
21862do :
21863  ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
21864if test "x$ac_cv_func_setrlimit" = xyes; then :
21865  cat >>confdefs.h <<_ACEOF
21866#define HAVE_SETRLIMIT 1
21867_ACEOF
21868  have_setrlimit="1"
21869else
21870   have_setrlimit="0"
21871fi
21872done
21873
21874for ac_func in getrlimit
21875do :
21876  ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
21877if test "x$ac_cv_func_getrlimit" = xyes; then :
21878  cat >>confdefs.h <<_ACEOF
21879#define HAVE_GETRLIMIT 1
21880_ACEOF
21881  have_getrlimit="1"
21882else
21883   have_getrlimit="0"
21884fi
21885done
21886
21887sendfile="0"
21888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfilev in -lsendfile" >&5
21889$as_echo_n "checking for sendfilev in -lsendfile... " >&6; }
21890if ${ac_cv_lib_sendfile_sendfilev+:} false; then :
21891  $as_echo_n "(cached) " >&6
21892else
21893  ac_check_lib_save_LIBS=$LIBS
21894LIBS="-lsendfile  $LIBS"
21895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21896/* end confdefs.h.  */
21897
21898/* Override any GCC internal prototype to avoid an error.
21899   Use char because int might match the return type of a GCC
21900   builtin and then its argument prototype would still apply.  */
21901#ifdef __cplusplus
21902extern "C"
21903#endif
21904char sendfilev ();
21905int
21906main ()
21907{
21908return sendfilev ();
21909  ;
21910  return 0;
21911}
21912_ACEOF
21913if ac_fn_c_try_link "$LINENO"; then :
21914  ac_cv_lib_sendfile_sendfilev=yes
21915else
21916  ac_cv_lib_sendfile_sendfilev=no
21917fi
21918rm -f core conftest.err conftest.$ac_objext \
21919    conftest$ac_exeext conftest.$ac_ext
21920LIBS=$ac_check_lib_save_LIBS
21921fi
21922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfilev" >&5
21923$as_echo "$ac_cv_lib_sendfile_sendfilev" >&6; }
21924if test "x$ac_cv_lib_sendfile_sendfilev" = xyes; then :
21925  cat >>confdefs.h <<_ACEOF
21926#define HAVE_LIBSENDFILE 1
21927_ACEOF
21928
21929  LIBS="-lsendfile $LIBS"
21930
21931fi
21932
21933for ac_func in sendfile send_file sendfilev
21934do :
21935  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21936ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21937if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21938  cat >>confdefs.h <<_ACEOF
21939#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21940_ACEOF
21941  sendfile="1"
21942fi
21943done
21944
21945
21946
21947
21948# Check whether --with-sendfile was given.
21949if test "${with_sendfile+set}" = set; then :
21950  withval=$with_sendfile;  if test "$withval" = "yes"; then
21951        sendfile="1"
21952    else
21953        sendfile="0"
21954    fi
21955else
21956
21957    orig_sendfile=$sendfile
21958    case $host in
21959        *freebsd*)
21960            # FreeBSD < 4.2 has issues with threads+sendfile
21961            if test $os_version -le "401999"; then
21962                if test "$threads" = "1"; then
21963                    sendfile="0"
21964                fi
21965            fi
21966            ;;
21967        *alpha*-dec-osf* )
21968            sendfile="0"
21969            ;;
21970        s390-*-linux-gnu)
21971            # disable sendfile support for 2.2 on S/390
21972            if test $os_version -lt 240; then
21973                sendfile="0"
21974            fi
21975            ;;
21976        *aix*)
21977            # compiler-independent check for 64-bit build
21978            # The cast to long int works around a bug in the HP C Compiler
21979# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21980# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21981# This bug is HP SR number 8606223364.
21982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
21983$as_echo_n "checking size of void*... " >&6; }
21984if ${ac_cv_sizeof_voidp+:} false; then :
21985  $as_echo_n "(cached) " >&6
21986else
21987  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
21988
21989else
21990  if test "$ac_cv_type_voidp" = yes; then
21991     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21992$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21993as_fn_error 77 "cannot compute sizeof (void*)
21994See \`config.log' for more details" "$LINENO" 5; }
21995   else
21996     ac_cv_sizeof_voidp=0
21997   fi
21998fi
21999
22000fi
22001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
22002$as_echo "$ac_cv_sizeof_voidp" >&6; }
22003
22004
22005
22006cat >>confdefs.h <<_ACEOF
22007#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
22008_ACEOF
22009
22010
22011            if test "x$ac_cv_sizeof_voidp" = "x8"; then
22012                # sendfile not working for 64-bit build
22013                sendfile="0"
22014            fi
22015            ;;
22016    esac
22017    if test "$orig_sendfile" != "$sendfile"; then
22018      echo "sendfile support disabled to avoid system problem"
22019    fi
22020fi
22021
22022
22023
22024for ac_func in sigaction
22025do :
22026  ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
22027if test "x$ac_cv_func_sigaction" = xyes; then :
22028  cat >>confdefs.h <<_ACEOF
22029#define HAVE_SIGACTION 1
22030_ACEOF
22031  have_sigaction="1"
22032else
22033   have_sigaction="0"
22034fi
22035done
22036
22037ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
22038/* NetBSD declares sys_siglist in unistd.h.  */
22039#ifdef HAVE_UNISTD_H
22040# include <unistd.h>
22041#endif
22042
22043"
22044if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
22045  ac_have_decl=1
22046else
22047  ac_have_decl=0
22048fi
22049
22050cat >>confdefs.h <<_ACEOF
22051#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
22052_ACEOF
22053
22054
22055
22056for ac_func in fork
22057do :
22058  ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
22059if test "x$ac_cv_func_fork" = xyes; then :
22060  cat >>confdefs.h <<_ACEOF
22061#define HAVE_FORK 1
22062_ACEOF
22063  fork="1"
22064else
22065   fork="0"
22066fi
22067done
22068
22069
22070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr" >&5
22071$as_echo_n "checking for inet_addr... " >&6; }
22072if ${ac_cv_func_inet_addr+:} false; then :
22073  $as_echo_n "(cached) " >&6
22074else
22075
22076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22077/* end confdefs.h.  */
22078
22079#ifdef HAVE_SYS_TYPES_H
22080#include <sys/types.h>
22081#endif
22082#ifdef HAVE_ARPA_INET_H
22083#include <arpa/inet.h>
22084#endif
22085
22086int
22087main ()
22088{
22089
22090inet_addr("127.0.0.1");
22091
22092  ;
22093  return 0;
22094}
22095_ACEOF
22096if ac_fn_c_try_compile "$LINENO"; then :
22097
22098    ac_cv_func_inet_addr=yes
22099
22100else
22101
22102    ac_cv_func_inet_addr=no
22103
22104fi
22105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22106
22107fi
22108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_addr" >&5
22109$as_echo "$ac_cv_func_inet_addr" >&6; }
22110
22111if test "$ac_cv_func_inet_addr" = "yes"; then
22112  have_inet_addr=1
22113else
22114  have_inet_addr=0
22115fi
22116
22117
22118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_network" >&5
22119$as_echo_n "checking for inet_network... " >&6; }
22120if ${ac_cv_func_inet_network+:} false; then :
22121  $as_echo_n "(cached) " >&6
22122else
22123
22124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22125/* end confdefs.h.  */
22126
22127#ifdef HAVE_SYS_TYPES_H
22128#include <sys/types.h>
22129#endif
22130#ifdef HAVE_ARPA_INET_H
22131#include <arpa/inet.h>
22132#endif
22133
22134int
22135main ()
22136{
22137
22138inet_network("127.0.0.1");
22139
22140  ;
22141  return 0;
22142}
22143_ACEOF
22144if ac_fn_c_try_compile "$LINENO"; then :
22145
22146    ac_cv_func_inet_network=yes
22147
22148else
22149
22150    ac_cv_func_inet_network=no
22151
22152fi
22153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22154
22155fi
22156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_network" >&5
22157$as_echo "$ac_cv_func_inet_network" >&6; }
22158
22159if test "$ac_cv_func_inet_network" = "yes"; then
22160  have_inet_network=1
22161else
22162  have_inet_network=0
22163fi
22164
22165
22166ac_fn_c_check_func "$LINENO" "_getch" "ac_cv_func__getch"
22167if test "x$ac_cv_func__getch" = xyes; then :
22168
22169fi
22170
22171for ac_func in strerror_r
22172do :
22173  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
22174if test "x$ac_cv_func_strerror_r" = xyes; then :
22175  cat >>confdefs.h <<_ACEOF
22176#define HAVE_STRERROR_R 1
22177_ACEOF
22178  strerror_r="1"
22179else
22180   strerror_r="0"
22181fi
22182done
22183
22184if test "$strerror_r" = "1"; then
22185
22186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of return code from strerror_r" >&5
22187$as_echo_n "checking for type of return code from strerror_r... " >&6; }
22188if test "$cross_compiling" = yes; then :
22189
22190    ac_cv_strerror_r_rc_int=no
22191else
22192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22193/* end confdefs.h.  */
22194
22195#include <errno.h>
22196#include <string.h>
22197#include <stdio.h>
22198main()
22199{
22200  char buf[1024];
22201  if (strerror_r(ERANGE, buf, sizeof buf) < 1) {
22202    exit(0);
22203  }
22204  else {
22205    exit(1);
22206  }
22207}
22208_ACEOF
22209if ac_fn_c_try_run "$LINENO"; then :
22210
22211    ac_cv_strerror_r_rc_int=yes
22212else
22213
22214    ac_cv_strerror_r_rc_int=no
22215fi
22216rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22217  conftest.$ac_objext conftest.beam conftest.$ac_ext
22218fi
22219
22220if test "x$ac_cv_strerror_r_rc_int" = xyes; then
22221
22222$as_echo "#define STRERROR_R_RC_INT 1" >>confdefs.h
22223
22224  msg="int"
22225else
22226  msg="pointer"
22227fi
22228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
22229$as_echo "$msg" >&6; }
22230
22231fi
22232for ac_func in mmap
22233do :
22234  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
22235if test "x$ac_cv_func_mmap" = xyes; then :
22236  cat >>confdefs.h <<_ACEOF
22237#define HAVE_MMAP 1
22238_ACEOF
22239  mmap="1"
22240else
22241   mmap="0"
22242fi
22243done
22244
22245if test "$native_mmap_emul" = "1"; then
22246    mmap="1"
22247fi
22248for ac_func in memmove
22249do :
22250  ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22251if test "x$ac_cv_func_memmove" = xyes; then :
22252  cat >>confdefs.h <<_ACEOF
22253#define HAVE_MEMMOVE 1
22254_ACEOF
22255  have_memmove="1"
22256else
22257  have_memmove="0"
22258fi
22259done
22260
22261for ac_func in getpass getpassphrase gmtime_r localtime_r mkstemp
22262do :
22263  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22264ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22265if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22266  cat >>confdefs.h <<_ACEOF
22267#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22268_ACEOF
22269
22270fi
22271done
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sigwait takes one argument" >&5
22287$as_echo_n "checking whether sigwait takes one argument... " >&6; }
22288if ${ac_cv_sigwait_one_arg+:} false; then :
22289  $as_echo_n "(cached) " >&6
22290else
22291
22292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22293/* end confdefs.h.  */
22294
22295#if defined(__NETBSD__) || defined(DARWIN)
22296    /* When using the unproven-pthreads package, we need to pull in this
22297     * header to get a prototype for sigwait().  Else things will fail later
22298     * on.  XXX Should probably be fixed in the unproven-pthreads package.
22299     * Darwin is declaring sigwait() in the wrong place as well.
22300     */
22301#include <pthread.h>
22302#endif
22303#include <signal.h>
22304
22305int
22306main ()
22307{
22308
22309  sigset_t set;
22310
22311  sigwait(&set);
22312
22313  ;
22314  return 0;
22315}
22316_ACEOF
22317if ac_fn_c_try_compile "$LINENO"; then :
22318
22319  ac_cv_sigwait_one_arg=yes
22320
22321else
22322
22323  ac_cv_sigwait_one_arg=no
22324
22325fi
22326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22327fi
22328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sigwait_one_arg" >&5
22329$as_echo "$ac_cv_sigwait_one_arg" >&6; }
22330  if test "$ac_cv_sigwait_one_arg" = "yes"; then
22331
22332$as_echo "#define SIGWAIT_TAKES_ONE_ARG 1" >>confdefs.h
22333
22334  fi
22335
22336
22337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
22338$as_echo_n "checking for ANSI C header files... " >&6; }
22339if ${ac_cv_header_stdc+:} false; then :
22340  $as_echo_n "(cached) " >&6
22341else
22342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22343/* end confdefs.h.  */
22344#include <stdlib.h>
22345#include <stdarg.h>
22346#include <string.h>
22347#include <float.h>
22348
22349int
22350main ()
22351{
22352
22353  ;
22354  return 0;
22355}
22356_ACEOF
22357if ac_fn_c_try_compile "$LINENO"; then :
22358  ac_cv_header_stdc=yes
22359else
22360  ac_cv_header_stdc=no
22361fi
22362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22363
22364if test $ac_cv_header_stdc = yes; then
22365  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22367/* end confdefs.h.  */
22368#include <string.h>
22369
22370_ACEOF
22371if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22372  $EGREP "memchr" >/dev/null 2>&1; then :
22373
22374else
22375  ac_cv_header_stdc=no
22376fi
22377rm -f conftest*
22378
22379fi
22380
22381if test $ac_cv_header_stdc = yes; then
22382  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22384/* end confdefs.h.  */
22385#include <stdlib.h>
22386
22387_ACEOF
22388if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22389  $EGREP "free" >/dev/null 2>&1; then :
22390
22391else
22392  ac_cv_header_stdc=no
22393fi
22394rm -f conftest*
22395
22396fi
22397
22398if test $ac_cv_header_stdc = yes; then
22399  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22400  if test "$cross_compiling" = yes; then :
22401  :
22402else
22403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22404/* end confdefs.h.  */
22405#include <ctype.h>
22406#include <stdlib.h>
22407#if ((' ' & 0x0FF) == 0x020)
22408# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22409# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22410#else
22411# define ISLOWER(c) \
22412		   (('a' <= (c) && (c) <= 'i') \
22413		     || ('j' <= (c) && (c) <= 'r') \
22414		     || ('s' <= (c) && (c) <= 'z'))
22415# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22416#endif
22417
22418#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22419int
22420main ()
22421{
22422  int i;
22423  for (i = 0; i < 256; i++)
22424    if (XOR (islower (i), ISLOWER (i))
22425	|| toupper (i) != TOUPPER (i))
22426      return 2;
22427  return 0;
22428}
22429_ACEOF
22430if ac_fn_c_try_run "$LINENO"; then :
22431
22432else
22433  ac_cv_header_stdc=no
22434fi
22435rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22436  conftest.$ac_objext conftest.beam conftest.$ac_ext
22437fi
22438
22439fi
22440fi
22441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
22442$as_echo "$ac_cv_header_stdc" >&6; }
22443if test $ac_cv_header_stdc = yes; then
22444
22445$as_echo "#define STDC_HEADERS 1" >>confdefs.h
22446
22447fi
22448
22449
22450
22451for ac_header in ByteOrder.h		\
22452    conio.h		\
22453    crypt.h		\
22454    ctype.h		\
22455    dir.h		\
22456    dirent.h		\
22457    dl.h		\
22458    dlfcn.h		\
22459    errno.h		\
22460    fcntl.h		\
22461    grp.h		\
22462    io.h		\
22463    limits.h		\
22464    mach-o/dyld.h	\
22465    malloc.h		\
22466    memory.h		\
22467    netdb.h		\
22468    osreldate.h		\
22469    poll.h		\
22470    process.h		\
22471    pwd.h		\
22472    semaphore.h		\
22473    signal.h		\
22474    stdarg.h		\
22475    stddef.h		\
22476    stdio.h		\
22477    stdlib.h		\
22478    string.h		\
22479    strings.h		\
22480    sysapi.h		\
22481    sysgtime.h		\
22482    termios.h		\
22483    time.h		\
22484    tpfeq.h		\
22485    tpfio.h		\
22486    unistd.h		\
22487    unix.h		\
22488    windows.h		\
22489    winsock2.h		\
22490    arpa/inet.h		\
22491    kernel/OS.h		\
22492    net/errno.h		\
22493    netinet/in.h	\
22494    netinet/sctp.h      \
22495    netinet/sctp_uio.h  \
22496    sys/file.h		\
22497    sys/ioctl.h         \
22498    sys/mman.h		\
22499    sys/param.h         \
22500    sys/poll.h		\
22501    sys/resource.h	\
22502    sys/select.h	\
22503    sys/sem.h		\
22504    sys/sendfile.h	\
22505    sys/signal.h	\
22506    sys/socket.h	\
22507    sys/sockio.h	\
22508    sys/stat.h          \
22509    sys/sysctl.h	\
22510    sys/syslimits.h	\
22511    sys/time.h		\
22512    sys/types.h		\
22513    sys/uio.h		\
22514    sys/un.h		\
22515    sys/wait.h
22516do :
22517  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22518ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22519if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22520  cat >>confdefs.h <<_ACEOF
22521#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22522_ACEOF
22523
22524fi
22525
22526done
22527
22528for aprt_i in ByteOrder.h		\
22529    conio.h		\
22530    crypt.h		\
22531    ctype.h		\
22532    dir.h		\
22533    dirent.h		\
22534    dl.h		\
22535    dlfcn.h		\
22536    errno.h		\
22537    fcntl.h		\
22538    grp.h		\
22539    io.h		\
22540    limits.h		\
22541    mach-o/dyld.h	\
22542    malloc.h		\
22543    memory.h		\
22544    netdb.h		\
22545    osreldate.h		\
22546    poll.h		\
22547    process.h		\
22548    pwd.h		\
22549    semaphore.h		\
22550    signal.h		\
22551    stdarg.h		\
22552    stddef.h		\
22553    stdio.h		\
22554    stdlib.h		\
22555    string.h		\
22556    strings.h		\
22557    sysapi.h		\
22558    sysgtime.h		\
22559    termios.h		\
22560    time.h		\
22561    tpfeq.h		\
22562    tpfio.h		\
22563    unistd.h		\
22564    unix.h		\
22565    windows.h		\
22566    winsock2.h		\
22567    arpa/inet.h		\
22568    kernel/OS.h		\
22569    net/errno.h		\
22570    netinet/in.h	\
22571    netinet/sctp.h      \
22572    netinet/sctp_uio.h  \
22573    sys/file.h		\
22574    sys/ioctl.h         \
22575    sys/mman.h		\
22576    sys/param.h         \
22577    sys/poll.h		\
22578    sys/resource.h	\
22579    sys/select.h	\
22580    sys/sem.h		\
22581    sys/sendfile.h	\
22582    sys/signal.h	\
22583    sys/socket.h	\
22584    sys/sockio.h	\
22585    sys/stat.h          \
22586    sys/sysctl.h	\
22587    sys/syslimits.h	\
22588    sys/time.h		\
22589    sys/types.h		\
22590    sys/uio.h		\
22591    sys/un.h		\
22592    sys/wait.h
22593do
22594    ac_safe=`echo "$aprt_i" | sed 'y%./+-%__p_%'`
22595    aprt_2=`echo "$aprt_i" | sed -e 's%/%_%g' -e 's/\.//g' -e 's/-//g'`
22596    if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22597       eval "$aprt_2=1"
22598    else
22599       eval "$aprt_2=0"
22600    fi
22601done
22602
22603
22604# IRIX 6.5 has a problem in <netinet/tcp.h> which prevents it from
22605# being included by itself.  Check for <netinet/tcp.h> manually,
22606# including another header file first.
22607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netinet/tcp.h" >&5
22608$as_echo_n "checking for netinet/tcp.h... " >&6; }
22609if ${apr_cv_hdr_netinet_tcp_h+:} false; then :
22610  $as_echo_n "(cached) " >&6
22611else
22612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22613/* end confdefs.h.  */
22614#ifdef HAVE_NETINET_IN_H
22615#include <netinet/in.h>
22616#endif
22617#include <netinet/tcp.h>
22618
22619_ACEOF
22620if ac_fn_c_try_cpp "$LINENO"; then :
22621  apr_cv_hdr_netinet_tcp_h=yes
22622else
22623  apr_cv_hdr_netinet_tcp_h=no
22624fi
22625rm -f conftest.err conftest.i conftest.$ac_ext
22626fi
22627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_hdr_netinet_tcp_h" >&5
22628$as_echo "$apr_cv_hdr_netinet_tcp_h" >&6; }
22629if test "$apr_cv_hdr_netinet_tcp_h" = "yes"; then
22630   netinet_tcph=1
22631
22632$as_echo "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
22633
22634else
22635   netinet_tcph=0
22636fi
22637
22638
22639
22640
22641
22642
22643
22644
22645
22646
22647
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665
22666
22667
22668
22669
22670
22671
22672
22673
22674
22675
22676
22677# Checking for h_errno in <netdb.h>
22678if test "$netdbh" = "1"; then
22679
22680  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5
22681$as_echo_n "checking for h_errno in netdb.h... " >&6; }
22682  if ${ac_cv_h_errno_cppflags+:} false; then :
22683  $as_echo_n "(cached) " >&6
22684else
22685
22686
22687  if test x != x; then
22688    CPPFLAGS="-D $CPPFLAGS"
22689  fi
22690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22691/* end confdefs.h.  */
22692
22693#ifdef HAVE_SYS_TYPES_H
22694#include <sys/types.h>
22695#endif
22696#ifdef HAVE_NETDB_H
22697#include <netdb.h>
22698#endif
22699
22700int
22701main ()
22702{
22703
22704int h_e = h_errno;
22705
22706  ;
22707  return 0;
22708}
22709_ACEOF
22710if ac_fn_c_try_compile "$LINENO"; then :
22711
22712  if test x != x; then
22713    ac_cv_h_errno_cppflags=""
22714  else
22715    ac_cv_h_errno_cppflags=yes
22716  fi
22717
22718else
22719
22720  ac_cv_h_errno_cppflags=no
22721
22722fi
22723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22724    if test "$ac_cv_h_errno_cppflags" = "no"; then
22725      ac_save="$CPPFLAGS"
22726      for flag in _XOPEN_SOURCE_EXTENDED; do
22727
22728  if test x$flag != x; then
22729    CPPFLAGS="-D$flag $CPPFLAGS"
22730  fi
22731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22732/* end confdefs.h.  */
22733
22734#ifdef HAVE_SYS_TYPES_H
22735#include <sys/types.h>
22736#endif
22737#ifdef HAVE_NETDB_H
22738#include <netdb.h>
22739#endif
22740
22741int
22742main ()
22743{
22744
22745int h_e = h_errno;
22746
22747  ;
22748  return 0;
22749}
22750_ACEOF
22751if ac_fn_c_try_compile "$LINENO"; then :
22752
22753  if test x$flag != x; then
22754    ac_cv_h_errno_cppflags="$flag"
22755  else
22756    ac_cv_h_errno_cppflags=yes
22757  fi
22758
22759else
22760
22761  ac_cv_h_errno_cppflags=no
22762
22763fi
22764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22765        if test "$ac_cv_h_errno_cppflags" != "no"; then
22766          break
22767        fi
22768      done
22769      CPPFLAGS="$ac_save"
22770    fi
22771
22772fi
22773
22774  if test "$ac_cv_h_errno_cppflags" != "no"; then
22775    if test "$ac_cv_h_errno_cppflags" != "yes"; then
22776      CPPFLAGS="-D$ac_cv_h_errno_cppflags $CPPFLAGS"
22777      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -D$ac_cv_h_errno_cppflags" >&5
22778$as_echo "yes, with -D$ac_cv_h_errno_cppflags" >&6; }
22779    else
22780      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5
22781$as_echo "$ac_cv_h_errno_cppflags" >&6; }
22782    fi
22783  else
22784    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5
22785$as_echo "$ac_cv_h_errno_cppflags" >&6; }
22786  fi
22787
22788  if test "$ac_cv_h_errno_cflags" = "no"; then
22789    as_fn_error $? "can not find h_errno in netdb.h" "$LINENO" 5
22790  fi
22791fi
22792
22793# Check whether --enable-allocator-uses-mmap was given.
22794if test "${enable_allocator_uses_mmap+set}" = set; then :
22795  enableval=$enable_allocator_uses_mmap;  if test "$enableval" = "yes"; then
22796        ac_rc=yes
22797for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
22798    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
22799    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
22800    case $ac_type in
22801        header )
22802            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22803            ac_var="ac_cv_header_$ac_item"
22804            ;;
22805        file )
22806            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22807            ac_var="ac_cv_file_$ac_item"
22808            ;;
22809        func )   ac_var="ac_cv_func_$ac_item"   ;;
22810        struct ) ac_var="ac_cv_struct_$ac_item" ;;
22811        define ) ac_var="ac_cv_define_$ac_item" ;;
22812        custom ) ac_var="$ac_item" ;;
22813    esac
22814    eval "ac_val=\$$ac_var"
22815    if test ".$ac_val" != .yes; then
22816        ac_rc=no
22817        break
22818    fi
22819done
22820if test ".$ac_rc" = .yes; then
22821    :
22822
22823$as_echo "#define APR_ALLOCATOR_USES_MMAP 1" >>confdefs.h
22824
22825else
22826    :
22827    as_fn_error $? "mmap()/MAP_ANON not supported" "$LINENO" 5
22828
22829fi
22830
22831    fi
22832
22833fi
22834
22835
22836ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22837if test "x$ac_cv_type_off_t" = xyes; then :
22838
22839else
22840
22841cat >>confdefs.h <<_ACEOF
22842#define off_t long int
22843_ACEOF
22844
22845fi
22846
22847ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22848if test "x$ac_cv_type_pid_t" = xyes; then :
22849
22850else
22851
22852cat >>confdefs.h <<_ACEOF
22853#define pid_t int
22854_ACEOF
22855
22856fi
22857
22858ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22859if test "x$ac_cv_type_size_t" = xyes; then :
22860
22861else
22862
22863cat >>confdefs.h <<_ACEOF
22864#define size_t unsigned int
22865_ACEOF
22866
22867fi
22868
22869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22870$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22871if ${ac_cv_type_uid_t+:} false; then :
22872  $as_echo_n "(cached) " >&6
22873else
22874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22875/* end confdefs.h.  */
22876#include <sys/types.h>
22877
22878_ACEOF
22879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22880  $EGREP "uid_t" >/dev/null 2>&1; then :
22881  ac_cv_type_uid_t=yes
22882else
22883  ac_cv_type_uid_t=no
22884fi
22885rm -f conftest*
22886
22887fi
22888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22889$as_echo "$ac_cv_type_uid_t" >&6; }
22890if test $ac_cv_type_uid_t = no; then
22891
22892$as_echo "#define uid_t int" >>confdefs.h
22893
22894
22895$as_echo "#define gid_t int" >>confdefs.h
22896
22897fi
22898
22899ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22900if test "x$ac_cv_type_ssize_t" = xyes; then :
22901
22902else
22903
22904cat >>confdefs.h <<_ACEOF
22905#define ssize_t int
22906_ACEOF
22907
22908fi
22909
22910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22911$as_echo_n "checking for inline... " >&6; }
22912if ${ac_cv_c_inline+:} false; then :
22913  $as_echo_n "(cached) " >&6
22914else
22915  ac_cv_c_inline=no
22916for ac_kw in inline __inline__ __inline; do
22917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22918/* end confdefs.h.  */
22919#ifndef __cplusplus
22920typedef int foo_t;
22921static $ac_kw foo_t static_foo () {return 0; }
22922$ac_kw foo_t foo () {return 0; }
22923#endif
22924
22925_ACEOF
22926if ac_fn_c_try_compile "$LINENO"; then :
22927  ac_cv_c_inline=$ac_kw
22928fi
22929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22930  test "$ac_cv_c_inline" != no && break
22931done
22932
22933fi
22934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22935$as_echo "$ac_cv_c_inline" >&6; }
22936
22937case $ac_cv_c_inline in
22938  inline | yes) ;;
22939  *)
22940    case $ac_cv_c_inline in
22941      no) ac_val=;;
22942      *) ac_val=$ac_cv_c_inline;;
22943    esac
22944    cat >>confdefs.h <<_ACEOF
22945#ifndef __cplusplus
22946#define inline $ac_val
22947#endif
22948_ACEOF
22949    ;;
22950esac
22951
22952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22953$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22954if ${ac_cv_c_const+:} false; then :
22955  $as_echo_n "(cached) " >&6
22956else
22957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22958/* end confdefs.h.  */
22959
22960int
22961main ()
22962{
22963/* FIXME: Include the comments suggested by Paul. */
22964#ifndef __cplusplus
22965  /* Ultrix mips cc rejects this.  */
22966  typedef int charset[2];
22967  const charset cs;
22968  /* SunOS 4.1.1 cc rejects this.  */
22969  char const *const *pcpcc;
22970  char **ppc;
22971  /* NEC SVR4.0.2 mips cc rejects this.  */
22972  struct point {int x, y;};
22973  static struct point const zero = {0,0};
22974  /* AIX XL C 1.02.0.0 rejects this.
22975     It does not let you subtract one const X* pointer from another in
22976     an arm of an if-expression whose if-part is not a constant
22977     expression */
22978  const char *g = "string";
22979  pcpcc = &g + (g ? g-g : 0);
22980  /* HPUX 7.0 cc rejects these. */
22981  ++pcpcc;
22982  ppc = (char**) pcpcc;
22983  pcpcc = (char const *const *) ppc;
22984  { /* SCO 3.2v4 cc rejects this.  */
22985    char *t;
22986    char const *s = 0 ? (char *) 0 : (char const *) 0;
22987
22988    *t++ = 0;
22989    if (s) return 0;
22990  }
22991  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22992    int x[] = {25, 17};
22993    const int *foo = &x[0];
22994    ++foo;
22995  }
22996  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22997    typedef const int *iptr;
22998    iptr p = 0;
22999    ++p;
23000  }
23001  { /* AIX XL C 1.02.0.0 rejects this saying
23002       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23003    struct s { int j; const int *ap[3]; };
23004    struct s *b; b->j = 5;
23005  }
23006  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23007    const int foo = 10;
23008    if (!foo) return 0;
23009  }
23010  return !cs[0] && !zero.x;
23011#endif
23012
23013  ;
23014  return 0;
23015}
23016_ACEOF
23017if ac_fn_c_try_compile "$LINENO"; then :
23018  ac_cv_c_const=yes
23019else
23020  ac_cv_c_const=no
23021fi
23022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23023fi
23024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23025$as_echo "$ac_cv_c_const" >&6; }
23026if test $ac_cv_c_const = no; then
23027
23028$as_echo "#define const /**/" >>confdefs.h
23029
23030fi
23031
23032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
23033$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
23034if ${ac_cv_func_setpgrp_void+:} false; then :
23035  $as_echo_n "(cached) " >&6
23036else
23037  if test "$cross_compiling" = yes; then :
23038  as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
23039else
23040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23041/* end confdefs.h.  */
23042$ac_includes_default
23043int
23044main ()
23045{
23046/* If this system has a BSD-style setpgrp which takes arguments,
23047  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
23048  exit successfully. */
23049  return setpgrp (1,1) != -1;
23050  ;
23051  return 0;
23052}
23053_ACEOF
23054if ac_fn_c_try_run "$LINENO"; then :
23055  ac_cv_func_setpgrp_void=no
23056else
23057  ac_cv_func_setpgrp_void=yes
23058fi
23059rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23060  conftest.$ac_objext conftest.beam conftest.$ac_ext
23061fi
23062
23063fi
23064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
23065$as_echo "$ac_cv_func_setpgrp_void" >&6; }
23066if test $ac_cv_func_setpgrp_void = yes; then
23067
23068$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
23069
23070fi
23071
23072
23073
23074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
23075$as_echo_n "checking for socklen_t... " >&6; }
23076if ${ac_cv_socklen_t+:} false; then :
23077  $as_echo_n "(cached) " >&6
23078else
23079
23080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23081/* end confdefs.h.  */
23082
23083#ifdef HAVE_SYS_TYPES_H
23084#include <sys/types.h>
23085#endif
23086#ifdef HAVE_SYS_SOCKET_H
23087#include <sys/socket.h>
23088#endif
23089
23090int
23091main ()
23092{
23093
23094socklen_t foo = (socklen_t) 0;
23095
23096  ;
23097  return 0;
23098}
23099_ACEOF
23100if ac_fn_c_try_compile "$LINENO"; then :
23101
23102    ac_cv_socklen_t=yes
23103
23104else
23105
23106    ac_cv_socklen_t=no
23107
23108fi
23109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23110
23111fi
23112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_socklen_t" >&5
23113$as_echo "$ac_cv_socklen_t" >&6; }
23114
23115if test "$ac_cv_socklen_t" = "yes"; then
23116
23117$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
23118
23119fi
23120
23121
23122# The cast to long int works around a bug in the HP C Compiler
23123# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23124# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23125# This bug is HP SR number 8606223364.
23126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
23127$as_echo_n "checking size of void*... " >&6; }
23128if ${ac_cv_sizeof_voidp+:} false; then :
23129  $as_echo_n "(cached) " >&6
23130else
23131  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
23132
23133else
23134  if test "$ac_cv_type_voidp" = yes; then
23135     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23137as_fn_error 77 "cannot compute sizeof (void*)
23138See \`config.log' for more details" "$LINENO" 5; }
23139   else
23140     ac_cv_sizeof_voidp=0
23141   fi
23142fi
23143
23144fi
23145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
23146$as_echo "$ac_cv_sizeof_voidp" >&6; }
23147
23148
23149
23150cat >>confdefs.h <<_ACEOF
23151#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
23152_ACEOF
23153
23154
23155
23156if test "x$ac_cv_sizeof_voidp" != "x"; then
23157    voidp_size=$ac_cv_sizeof_voidp
23158else
23159    as_fn_error $? "Cannot determine size of void*" "$LINENO" 5
23160fi
23161
23162# The cast to long int works around a bug in the HP C Compiler
23163# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23164# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23165# This bug is HP SR number 8606223364.
23166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
23167$as_echo_n "checking size of char... " >&6; }
23168if ${ac_cv_sizeof_char+:} false; then :
23169  $as_echo_n "(cached) " >&6
23170else
23171  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
23172
23173else
23174  if test "$ac_cv_type_char" = yes; then
23175     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23177as_fn_error 77 "cannot compute sizeof (char)
23178See \`config.log' for more details" "$LINENO" 5; }
23179   else
23180     ac_cv_sizeof_char=0
23181   fi
23182fi
23183
23184fi
23185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
23186$as_echo "$ac_cv_sizeof_char" >&6; }
23187
23188
23189
23190cat >>confdefs.h <<_ACEOF
23191#define SIZEOF_CHAR $ac_cv_sizeof_char
23192_ACEOF
23193
23194
23195# The cast to long int works around a bug in the HP C Compiler
23196# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23197# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23198# This bug is HP SR number 8606223364.
23199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23200$as_echo_n "checking size of int... " >&6; }
23201if ${ac_cv_sizeof_int+:} false; then :
23202  $as_echo_n "(cached) " >&6
23203else
23204  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
23205
23206else
23207  if test "$ac_cv_type_int" = yes; then
23208     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23210as_fn_error 77 "cannot compute sizeof (int)
23211See \`config.log' for more details" "$LINENO" 5; }
23212   else
23213     ac_cv_sizeof_int=0
23214   fi
23215fi
23216
23217fi
23218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23219$as_echo "$ac_cv_sizeof_int" >&6; }
23220
23221
23222
23223cat >>confdefs.h <<_ACEOF
23224#define SIZEOF_INT $ac_cv_sizeof_int
23225_ACEOF
23226
23227
23228# The cast to long int works around a bug in the HP C Compiler
23229# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23230# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23231# This bug is HP SR number 8606223364.
23232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23233$as_echo_n "checking size of long... " >&6; }
23234if ${ac_cv_sizeof_long+:} false; then :
23235  $as_echo_n "(cached) " >&6
23236else
23237  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
23238
23239else
23240  if test "$ac_cv_type_long" = yes; then
23241     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23243as_fn_error 77 "cannot compute sizeof (long)
23244See \`config.log' for more details" "$LINENO" 5; }
23245   else
23246     ac_cv_sizeof_long=0
23247   fi
23248fi
23249
23250fi
23251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23252$as_echo "$ac_cv_sizeof_long" >&6; }
23253
23254
23255
23256cat >>confdefs.h <<_ACEOF
23257#define SIZEOF_LONG $ac_cv_sizeof_long
23258_ACEOF
23259
23260
23261# The cast to long int works around a bug in the HP C Compiler
23262# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23263# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23264# This bug is HP SR number 8606223364.
23265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23266$as_echo_n "checking size of short... " >&6; }
23267if ${ac_cv_sizeof_short+:} false; then :
23268  $as_echo_n "(cached) " >&6
23269else
23270  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
23271
23272else
23273  if test "$ac_cv_type_short" = yes; then
23274     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23276as_fn_error 77 "cannot compute sizeof (short)
23277See \`config.log' for more details" "$LINENO" 5; }
23278   else
23279     ac_cv_sizeof_short=0
23280   fi
23281fi
23282
23283fi
23284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23285$as_echo "$ac_cv_sizeof_short" >&6; }
23286
23287
23288
23289cat >>confdefs.h <<_ACEOF
23290#define SIZEOF_SHORT $ac_cv_sizeof_short
23291_ACEOF
23292
23293
23294# The cast to long int works around a bug in the HP C Compiler
23295# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23296# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23297# This bug is HP SR number 8606223364.
23298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23299$as_echo_n "checking size of long long... " >&6; }
23300if ${ac_cv_sizeof_long_long+:} false; then :
23301  $as_echo_n "(cached) " >&6
23302else
23303  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
23304
23305else
23306  if test "$ac_cv_type_long_long" = yes; then
23307     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23309as_fn_error 77 "cannot compute sizeof (long long)
23310See \`config.log' for more details" "$LINENO" 5; }
23311   else
23312     ac_cv_sizeof_long_long=0
23313   fi
23314fi
23315
23316fi
23317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23318$as_echo "$ac_cv_sizeof_long_long" >&6; }
23319
23320
23321
23322cat >>confdefs.h <<_ACEOF
23323#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23324_ACEOF
23325
23326
23327
23328if test "$ac_cv_sizeof_short" = "2"; then
23329    short_value=short
23330fi
23331if test "$ac_cv_sizeof_int" = "4"; then
23332    int_value=int
23333fi
23334# Now we need to find what apr_int64_t (sizeof == 8) will be.
23335# The first match is our preference.
23336if test "$ac_cv_sizeof_int" = "8"; then
23337    int64_literal='#define APR_INT64_C(val) (val)'
23338    uint64_literal='#define APR_UINT64_C(val) (val##U)'
23339    int64_t_fmt='#define APR_INT64_T_FMT "d"'
23340    uint64_t_fmt='#define APR_UINT64_T_FMT "u"'
23341    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "x"'
23342    int64_value="int"
23343    long_value=int
23344    int64_strfn="strtoi"
23345elif test "$ac_cv_sizeof_long" = "8"; then
23346    int64_literal='#define APR_INT64_C(val) (val##L)'
23347    uint64_literal='#define APR_UINT64_C(val) (val##UL)'
23348    int64_t_fmt='#define APR_INT64_T_FMT "ld"'
23349    uint64_t_fmt='#define APR_UINT64_T_FMT "lu"'
23350    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "lx"'
23351    int64_value="long"
23352    long_value=long
23353    int64_strfn="strtol"
23354elif test "$ac_cv_sizeof_long_long" = "8"; then
23355    int64_literal='#define APR_INT64_C(val) (val##LL)'
23356    uint64_literal='#define APR_UINT64_C(val) (val##ULL)'
23357    # Linux, Solaris, FreeBSD all support ll with printf.
23358    # BSD 4.4 originated 'q'.  Solaris is more popular and
23359    # doesn't support 'q'.  Solaris wins.  Exceptions can
23360    # go to the OS-dependent section.
23361    int64_t_fmt='#define APR_INT64_T_FMT "lld"'
23362    uint64_t_fmt='#define APR_UINT64_T_FMT "llu"'
23363    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "llx"'
23364    int64_value="long long"
23365    long_value="long long"
23366    int64_strfn="strtoll"
23367elif test "$ac_cv_sizeof_longlong" = "8"; then
23368    int64_literal='#define APR_INT64_C(val) (val##LL)'
23369    uint64_literal='#define APR_UINT64_C(val) (val##ULL)'
23370    int64_t_fmt='#define APR_INT64_T_FMT "qd"'
23371    uint64_t_fmt='#define APR_UINT64_T_FMT "qu"'
23372    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "qx"'
23373    int64_value="__int64"
23374    long_value="__int64"
23375    int64_strfn="strtoll"
23376else
23377    # int64_literal may be overriden if your compiler thinks you have
23378    # a 64-bit value but APR does not agree.
23379    as_fn_error $? "could not detect a 64-bit integer type" "$LINENO" 5
23380fi
23381
23382# If present, allow the C99 macro INT64_C to override our conversion.
23383#
23384# HP-UX's ANSI C compiler provides this without any includes, so we
23385# will first look for INT64_C without adding stdint.h
23386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for INT64_C" >&5
23387$as_echo_n "checking for INT64_C... " >&6; }
23388if ${apr_cv_define_INT64_C+:} false; then :
23389  $as_echo_n "(cached) " >&6
23390else
23391
23392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23393/* end confdefs.h.  */
23394#ifdef INT64_C
23395YES_IS_DEFINED
23396#endif
23397_ACEOF
23398if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23399  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
23400  apr_cv_define_INT64_C=yes
23401else
23402
23403    # Now check for INT64_C in stdint.h
23404    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23405/* end confdefs.h.  */
23406#include <stdint.h>
23407#ifdef INT64_C
23408YES_IS_DEFINED
23409#endif
23410_ACEOF
23411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23412  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
23413  apr_cv_define_INT64_C=yes
23414else
23415  apr_cv_define_INT64_C=no
23416fi
23417rm -f conftest*
23418
23419fi
23420rm -f conftest*
23421
23422fi
23423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_INT64_C" >&5
23424$as_echo "$apr_cv_define_INT64_C" >&6; }
23425
23426if test "$apr_cv_define_INT64_C" = "yes"; then
23427    int64_literal='#define APR_INT64_C(val) INT64_C(val)'
23428    uint64_literal='#define APR_UINT64_C(val) UINT64_C(val)'
23429    stdint=1
23430else
23431    stdint=0
23432fi
23433
23434if test "$ac_cv_type_size_t" = "yes"; then
23435    size_t_value="size_t"
23436else
23437    size_t_value="apr_int32_t"
23438fi
23439if test "$ac_cv_type_ssize_t" = "yes"; then
23440    ssize_t_value="ssize_t"
23441else
23442    ssize_t_value="apr_int32_t"
23443fi
23444if test "$ac_cv_socklen_t" = "yes"; then
23445    socklen_t_value="socklen_t"
23446    case $host in
23447        *-hp-hpux*)
23448            if test "$ac_cv_sizeof_long" = "8"; then
23449                # 64-bit HP-UX requires 32-bit socklens in
23450                # kernel, but user-space declarations say
23451                # 64-bit (socklen_t == size_t == long).
23452                # This will result in many compile warnings,
23453                # but we're functionally busted otherwise.
23454                socklen_t_value="int"
23455            fi
23456            ;;
23457    esac
23458else
23459    socklen_t_value="int"
23460fi
23461
23462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
23463$as_echo_n "checking size of pid_t... " >&6; }
23464if ${ac_cv_sizeof_pid_t+:} false; then :
23465  $as_echo_n "(cached) " >&6
23466else
23467  if test "$cross_compiling" = yes; then :
23468  ac_cv_sizeof_pid_t=8
23469else
23470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23471/* end confdefs.h.  */
23472#include <stdio.h>
23473#include <sys/types.h>
23474main()
23475{
23476  FILE *f=fopen("conftestval", "w");
23477  if (!f) exit(1);
23478  fprintf(f, "%d\n", sizeof(pid_t));
23479  exit(0);
23480}
23481_ACEOF
23482if ac_fn_c_try_run "$LINENO"; then :
23483  ac_cv_sizeof_pid_t=`cat conftestval`
23484else
23485  ac_cv_sizeof_pid_t=0
23486fi
23487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23488  conftest.$ac_objext conftest.beam conftest.$ac_ext
23489fi
23490
23491fi
23492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
23493$as_echo "$ac_cv_sizeof_pid_t" >&6; }
23494
23495cat >>confdefs.h <<_ACEOF
23496#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
23497_ACEOF
23498
23499
23500
23501if test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_short"; then
23502    pid_t_fmt='#define APR_PID_T_FMT "hd"'
23503elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_int"; then
23504    pid_t_fmt='#define APR_PID_T_FMT "d"'
23505elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long"; then
23506    pid_t_fmt='#define APR_PID_T_FMT "ld"'
23507elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long_long"; then
23508    pid_t_fmt='#define APR_PID_T_FMT APR_INT64_T_FMT'
23509else
23510    pid_t_fmt='#error Can not determine the proper size for pid_t'
23511fi
23512
23513# Basically, we have tried to figure out the correct format strings
23514# for APR types which vary between platforms, but we don't always get
23515# it right.
23516case $host in
23517   s390*linux*)
23518       # uniquely, the 31-bit Linux/s390 uses "unsigned long int"
23519       # for size_t rather than "unsigned int":
23520       size_t_fmt="lu"
23521       ssize_t_fmt="ld"
23522       ;;
23523   *-os2*)
23524       size_t_fmt="lu"
23525       ;;
23526   *-solaris*)
23527       if test "$ac_cv_sizeof_long" = "8"; then
23528         pid_t_fmt='#define APR_PID_T_FMT "d"'
23529       else
23530         pid_t_fmt='#define APR_PID_T_FMT "ld"'
23531       fi
23532       ;;
23533   *aix4*|*aix5*)
23534       ssize_t_fmt="ld"
23535       size_t_fmt="lu"
23536       ;;
23537    *beos*)
23538        ssize_t_fmt="ld"
23539        size_t_fmt="ld"
23540        ;;
23541    *apple-darwin*)
23542        osver=`uname -r`
23543        case $osver in
23544           [0-7].*)
23545              ssize_t_fmt="d"
23546              ;;
23547           *)
23548              ssize_t_fmt="ld"
23549              ;;
23550        esac
23551        size_t_fmt="lu"
23552        ;;
23553    *-mingw*)
23554        int64_t_fmt='#define APR_INT64_T_FMT "I64d"'
23555        uint64_t_fmt='#define APR_UINT64_T_FMT "I64u"'
23556        uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "I64x"'
23557        int64_value="__int64"
23558        long_value="__int64"
23559        int64_strfn="_strtoi64"
23560        ;;
23561esac
23562
23563
23564
23565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and int are the same" >&5
23566$as_echo_n "checking whether ssize_t and int are the same... " >&6; }
23567if ${apr_cv_typematch_ssize_t_int+:} false; then :
23568  $as_echo_n "(cached) " >&6
23569else
23570
23571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23572/* end confdefs.h.  */
23573$ac_includes_default
23574int
23575main ()
23576{
23577
23578    int foo[0 - !__builtin_types_compatible_p(ssize_t, int)];
23579
23580  ;
23581  return 0;
23582}
23583_ACEOF
23584if ac_fn_c_try_compile "$LINENO"; then :
23585  apr_cv_typematch_ssize_t_int=yes
23586ssize_t_fmt="d"
23587else
23588  apr_cv_typematch_ssize_t_int=no
23589fi
23590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23591fi
23592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_int" >&5
23593$as_echo "$apr_cv_typematch_ssize_t_int" >&6; }
23594
23595
23596
23597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and long are the same" >&5
23598$as_echo_n "checking whether ssize_t and long are the same... " >&6; }
23599if ${apr_cv_typematch_ssize_t_long+:} false; then :
23600  $as_echo_n "(cached) " >&6
23601else
23602
23603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23604/* end confdefs.h.  */
23605$ac_includes_default
23606int
23607main ()
23608{
23609
23610    int foo[0 - !__builtin_types_compatible_p(ssize_t, long)];
23611
23612  ;
23613  return 0;
23614}
23615_ACEOF
23616if ac_fn_c_try_compile "$LINENO"; then :
23617  apr_cv_typematch_ssize_t_long=yes
23618ssize_t_fmt="ld"
23619else
23620  apr_cv_typematch_ssize_t_long=no
23621fi
23622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23623fi
23624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_long" >&5
23625$as_echo "$apr_cv_typematch_ssize_t_long" >&6; }
23626
23627
23628
23629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned int are the same" >&5
23630$as_echo_n "checking whether size_t and unsigned int are the same... " >&6; }
23631if ${apr_cv_typematch_size_t_unsigned_int+:} false; then :
23632  $as_echo_n "(cached) " >&6
23633else
23634
23635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23636/* end confdefs.h.  */
23637$ac_includes_default
23638int
23639main ()
23640{
23641
23642    int foo[0 - !__builtin_types_compatible_p(size_t, unsigned int)];
23643
23644  ;
23645  return 0;
23646}
23647_ACEOF
23648if ac_fn_c_try_compile "$LINENO"; then :
23649  apr_cv_typematch_size_t_unsigned_int=yes
23650size_t_fmt="u"
23651else
23652  apr_cv_typematch_size_t_unsigned_int=no
23653fi
23654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23655fi
23656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_int" >&5
23657$as_echo "$apr_cv_typematch_size_t_unsigned_int" >&6; }
23658
23659
23660
23661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned long are the same" >&5
23662$as_echo_n "checking whether size_t and unsigned long are the same... " >&6; }
23663if ${apr_cv_typematch_size_t_unsigned_long+:} false; then :
23664  $as_echo_n "(cached) " >&6
23665else
23666
23667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23668/* end confdefs.h.  */
23669$ac_includes_default
23670int
23671main ()
23672{
23673
23674    int foo[0 - !__builtin_types_compatible_p(size_t, unsigned long)];
23675
23676  ;
23677  return 0;
23678}
23679_ACEOF
23680if ac_fn_c_try_compile "$LINENO"; then :
23681  apr_cv_typematch_size_t_unsigned_long=yes
23682size_t_fmt="lu"
23683else
23684  apr_cv_typematch_size_t_unsigned_long=no
23685fi
23686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23687fi
23688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_long" >&5
23689$as_echo "$apr_cv_typematch_size_t_unsigned_long" >&6; }
23690
23691
23692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23693$as_echo_n "checking size of ssize_t... " >&6; }
23694if ${ac_cv_sizeof_ssize_t+:} false; then :
23695  $as_echo_n "(cached) " >&6
23696else
23697  if test "$cross_compiling" = yes; then :
23698  ac_cv_sizeof_ssize_t=8
23699else
23700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23701/* end confdefs.h.  */
23702#include <stdio.h>
23703#include <sys/types.h>
23704main()
23705{
23706  FILE *f=fopen("conftestval", "w");
23707  if (!f) exit(1);
23708  fprintf(f, "%d\n", sizeof(ssize_t));
23709  exit(0);
23710}
23711_ACEOF
23712if ac_fn_c_try_run "$LINENO"; then :
23713  ac_cv_sizeof_ssize_t=`cat conftestval`
23714else
23715  ac_cv_sizeof_ssize_t=0
23716fi
23717rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23718  conftest.$ac_objext conftest.beam conftest.$ac_ext
23719fi
23720
23721fi
23722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23723$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23724
23725cat >>confdefs.h <<_ACEOF
23726#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23727_ACEOF
23728
23729
23730
23731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_ssize_t" >&5
23732$as_echo_n "checking which format to use for apr_ssize_t... " >&6; }
23733if test -n "$ssize_t_fmt"; then
23734    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$ssize_t_fmt" >&5
23735$as_echo "%$ssize_t_fmt" >&6; }
23736elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_int"; then
23737    ssize_t_fmt="d"
23738    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5
23739$as_echo "%d" >&6; }
23740elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_long"; then
23741    ssize_t_fmt="ld"
23742    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5
23743$as_echo "%ld" >&6; }
23744else
23745    as_fn_error $? "could not determine the proper format for apr_ssize_t" "$LINENO" 5
23746fi
23747
23748ssize_t_fmt="#define APR_SSIZE_T_FMT \"$ssize_t_fmt\""
23749
23750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23751$as_echo_n "checking size of size_t... " >&6; }
23752if ${ac_cv_sizeof_size_t+:} false; then :
23753  $as_echo_n "(cached) " >&6
23754else
23755  if test "$cross_compiling" = yes; then :
23756  ac_cv_sizeof_size_t=8
23757else
23758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23759/* end confdefs.h.  */
23760#include <stdio.h>
23761#include <stddef.h>
23762main()
23763{
23764  FILE *f=fopen("conftestval", "w");
23765  if (!f) exit(1);
23766  fprintf(f, "%d\n", sizeof(size_t));
23767  exit(0);
23768}
23769_ACEOF
23770if ac_fn_c_try_run "$LINENO"; then :
23771  ac_cv_sizeof_size_t=`cat conftestval`
23772else
23773  ac_cv_sizeof_size_t=0
23774fi
23775rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23776  conftest.$ac_objext conftest.beam conftest.$ac_ext
23777fi
23778
23779fi
23780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23781$as_echo "$ac_cv_sizeof_size_t" >&6; }
23782
23783cat >>confdefs.h <<_ACEOF
23784#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23785_ACEOF
23786
23787
23788
23789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_size_t" >&5
23790$as_echo_n "checking which format to use for apr_size_t... " >&6; }
23791if test -n "$size_t_fmt"; then
23792    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$size_t_fmt" >&5
23793$as_echo "%$size_t_fmt" >&6; }
23794elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_int"; then
23795    size_t_fmt="d"
23796    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5
23797$as_echo "%d" >&6; }
23798elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_long"; then
23799    size_t_fmt="ld"
23800    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5
23801$as_echo "%ld" >&6; }
23802else
23803    as_fn_error $? "could not determine the proper format for apr_size_t" "$LINENO" 5
23804fi
23805
23806size_t_fmt="#define APR_SIZE_T_FMT \"$size_t_fmt\""
23807
23808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23809$as_echo_n "checking size of off_t... " >&6; }
23810if ${ac_cv_sizeof_off_t+:} false; then :
23811  $as_echo_n "(cached) " >&6
23812else
23813  if test "$cross_compiling" = yes; then :
23814  ac_cv_sizeof_off_t=8
23815else
23816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23817/* end confdefs.h.  */
23818#include <stdio.h>
23819#include <sys/types.h>
23820main()
23821{
23822  FILE *f=fopen("conftestval", "w");
23823  if (!f) exit(1);
23824  fprintf(f, "%d\n", sizeof(off_t));
23825  exit(0);
23826}
23827_ACEOF
23828if ac_fn_c_try_run "$LINENO"; then :
23829  ac_cv_sizeof_off_t=`cat conftestval`
23830else
23831  ac_cv_sizeof_off_t=0
23832fi
23833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23834  conftest.$ac_objext conftest.beam conftest.$ac_ext
23835fi
23836
23837fi
23838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23839$as_echo "$ac_cv_sizeof_off_t" >&6; }
23840
23841cat >>confdefs.h <<_ACEOF
23842#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23843_ACEOF
23844
23845
23846
23847if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
23848    # Enable LFS
23849    aprlfs=1
23850    for ac_func in mmap64 sendfile64 sendfilev64 mkstemp64 readdir64_r
23851do :
23852  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23853ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23854if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23855  cat >>confdefs.h <<_ACEOF
23856#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23857_ACEOF
23858
23859fi
23860done
23861
23862elif test "${ac_cv_sizeof_off_t}" != "${ac_cv_sizeof_size_t}"; then
23863    # unsure of using -gt above is as portable, can can't forsee where
23864    # off_t can legitimately be smaller than size_t
23865    aprlfs=1
23866else
23867    aprlfs=0
23868fi
23869
23870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which type to use for apr_off_t" >&5
23871$as_echo_n "checking which type to use for apr_off_t... " >&6; }
23872if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
23873    # LFS is go!
23874    off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
23875    off_t_value='off64_t'
23876    off_t_strfn='apr_strtoi64'
23877elif test "${ac_cv_sizeof_off_t}x${ac_cv_sizeof_long}" = "4x4"; then
23878    # Special case: off_t may change size with _FILE_OFFSET_BITS
23879    # on 32-bit systems with LFS support.  To avoid compatibility
23880    # issues when other packages do define _FILE_OFFSET_BITS,
23881    # hard-code apr_off_t to long.
23882    off_t_value=long
23883    off_t_fmt='#define APR_OFF_T_FMT "ld"'
23884    off_t_strfn='strtol'
23885elif test "$ac_cv_type_off_t" = "yes"; then
23886    off_t_value=off_t
23887    # off_t is more commonly a long than an int; prefer that case
23888    # where int and long are the same size.
23889    if test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_long"; then
23890        off_t_fmt='#define APR_OFF_T_FMT "ld"'
23891        off_t_strfn='strtol'
23892    elif test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_int"; then
23893        off_t_fmt='#define APR_OFF_T_FMT "d"'
23894        off_t_strfn='strtoi'
23895    elif test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_long_long"; then
23896        off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
23897        off_t_strfn='apr_strtoi64'
23898    else
23899        as_fn_error $? "could not determine the size of off_t" "$LINENO" 5
23900    fi
23901    # Per OS tuning...
23902    case $host in
23903    *-mingw*)
23904        off_t_value=apr_int64_t
23905        off_t_fmt='#define APR_OFF_T_FMT "I64d"'
23906        off_t_strfn='_strtoi64'
23907        ;;
23908    esac
23909else
23910   # Fallback on int
23911   off_t_value=apr_int32_t
23912   off_t_fmt=d
23913   off_t_strfn='strtoi'
23914fi
23915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $off_t_value" >&5
23916$as_echo "$off_t_value" >&6; }
23917
23918# Regardless of whether _LARGEFILE64_SOURCE is used, on some
23919# platforms _FILE_OFFSET_BITS will affect the size of ino_t and hence
23920# the build-time ABI may be different from the apparent ABI when using
23921# APR with another package which *does* define _FILE_OFFSET_BITS.
23922# (Exactly as per the case above with off_t where LFS is *not* used)
23923#
23924# To be safe, hard-code apr_ino_t as 'unsigned long' or 'unsigned int'
23925# iff that is exactly the size of ino_t here; otherwise use ino_t as existing
23926# releases did.  To be correct, apr_ino_t should have been made an
23927# ino64_t as apr_off_t is off64_t, but this can't be done now without
23928# breaking ABI.
23929
23930# Per OS tuning...
23931case $host in
23932*mingw*)
23933    ino_t_value=apr_int64_t
23934    ;;
23935*)
23936    ino_t_value=ino_t
23937    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
23938$as_echo_n "checking size of ino_t... " >&6; }
23939if ${ac_cv_sizeof_ino_t+:} false; then :
23940  $as_echo_n "(cached) " >&6
23941else
23942  if test "$cross_compiling" = yes; then :
23943  ac_cv_sizeof_ino_t=$ac_cv_sizeof_long
23944else
23945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23946/* end confdefs.h.  */
23947#include <stdio.h>
23948$ac_includes_default
23949main()
23950{
23951  FILE *f=fopen("conftestval", "w");
23952  if (!f) exit(1);
23953  fprintf(f, "%d\n", sizeof(ino_t));
23954  exit(0);
23955}
23956_ACEOF
23957if ac_fn_c_try_run "$LINENO"; then :
23958  ac_cv_sizeof_ino_t=`cat conftestval`
23959else
23960  ac_cv_sizeof_ino_t=0
23961fi
23962rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23963  conftest.$ac_objext conftest.beam conftest.$ac_ext
23964fi
23965
23966fi
23967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
23968$as_echo "$ac_cv_sizeof_ino_t" >&6; }
23969
23970cat >>confdefs.h <<_ACEOF
23971#define SIZEOF_INO_T $ac_cv_sizeof_ino_t
23972_ACEOF
23973
23974
23975    if test $ac_cv_sizeof_ino_t = 4; then
23976        if test $ac_cv_sizeof_long = 4; then
23977            ino_t_value="unsigned long"
23978        else
23979            ino_t_value="unsigned int"
23980        fi
23981    fi
23982    ;;
23983esac
23984{ $as_echo "$as_me:${as_lineno-$LINENO}: using $ino_t_value for ino_t" >&5
23985$as_echo "$as_me: using $ino_t_value for ino_t" >&6;}
23986
23987# Checks for endianness
23988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23989$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23990if ${ac_cv_c_bigendian+:} false; then :
23991  $as_echo_n "(cached) " >&6
23992else
23993  ac_cv_c_bigendian=unknown
23994    # See if we're dealing with a universal compiler.
23995    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23996/* end confdefs.h.  */
23997#ifndef __APPLE_CC__
23998	       not a universal capable compiler
23999	     #endif
24000	     typedef int dummy;
24001
24002_ACEOF
24003if ac_fn_c_try_compile "$LINENO"; then :
24004
24005	# Check for potential -arch flags.  It is not universal unless
24006	# there are at least two -arch flags with different values.
24007	ac_arch=
24008	ac_prev=
24009	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
24010	 if test -n "$ac_prev"; then
24011	   case $ac_word in
24012	     i?86 | x86_64 | ppc | ppc64)
24013	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
24014		 ac_arch=$ac_word
24015	       else
24016		 ac_cv_c_bigendian=universal
24017		 break
24018	       fi
24019	       ;;
24020	   esac
24021	   ac_prev=
24022	 elif test "x$ac_word" = "x-arch"; then
24023	   ac_prev=arch
24024	 fi
24025       done
24026fi
24027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24028    if test $ac_cv_c_bigendian = unknown; then
24029      # See if sys/param.h defines the BYTE_ORDER macro.
24030      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24031/* end confdefs.h.  */
24032#include <sys/types.h>
24033	     #include <sys/param.h>
24034
24035int
24036main ()
24037{
24038#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24039		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24040		     && LITTLE_ENDIAN)
24041	      bogus endian macros
24042	     #endif
24043
24044  ;
24045  return 0;
24046}
24047_ACEOF
24048if ac_fn_c_try_compile "$LINENO"; then :
24049  # It does; now see whether it defined to BIG_ENDIAN or not.
24050	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24051/* end confdefs.h.  */
24052#include <sys/types.h>
24053		#include <sys/param.h>
24054
24055int
24056main ()
24057{
24058#if BYTE_ORDER != BIG_ENDIAN
24059		 not big endian
24060		#endif
24061
24062  ;
24063  return 0;
24064}
24065_ACEOF
24066if ac_fn_c_try_compile "$LINENO"; then :
24067  ac_cv_c_bigendian=yes
24068else
24069  ac_cv_c_bigendian=no
24070fi
24071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24072fi
24073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24074    fi
24075    if test $ac_cv_c_bigendian = unknown; then
24076      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24077      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24078/* end confdefs.h.  */
24079#include <limits.h>
24080
24081int
24082main ()
24083{
24084#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24085	      bogus endian macros
24086	     #endif
24087
24088  ;
24089  return 0;
24090}
24091_ACEOF
24092if ac_fn_c_try_compile "$LINENO"; then :
24093  # It does; now see whether it defined to _BIG_ENDIAN or not.
24094	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24095/* end confdefs.h.  */
24096#include <limits.h>
24097
24098int
24099main ()
24100{
24101#ifndef _BIG_ENDIAN
24102		 not big endian
24103		#endif
24104
24105  ;
24106  return 0;
24107}
24108_ACEOF
24109if ac_fn_c_try_compile "$LINENO"; then :
24110  ac_cv_c_bigendian=yes
24111else
24112  ac_cv_c_bigendian=no
24113fi
24114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24115fi
24116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24117    fi
24118    if test $ac_cv_c_bigendian = unknown; then
24119      # Compile a test program.
24120      if test "$cross_compiling" = yes; then :
24121  # Try to guess by grepping values from an object file.
24122	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24123/* end confdefs.h.  */
24124short int ascii_mm[] =
24125		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24126		short int ascii_ii[] =
24127		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24128		int use_ascii (int i) {
24129		  return ascii_mm[i] + ascii_ii[i];
24130		}
24131		short int ebcdic_ii[] =
24132		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24133		short int ebcdic_mm[] =
24134		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24135		int use_ebcdic (int i) {
24136		  return ebcdic_mm[i] + ebcdic_ii[i];
24137		}
24138		extern int foo;
24139
24140int
24141main ()
24142{
24143return use_ascii (foo) == use_ebcdic (foo);
24144  ;
24145  return 0;
24146}
24147_ACEOF
24148if ac_fn_c_try_compile "$LINENO"; then :
24149  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24150	      ac_cv_c_bigendian=yes
24151	    fi
24152	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24153	      if test "$ac_cv_c_bigendian" = unknown; then
24154		ac_cv_c_bigendian=no
24155	      else
24156		# finding both strings is unlikely to happen, but who knows?
24157		ac_cv_c_bigendian=unknown
24158	      fi
24159	    fi
24160fi
24161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24162else
24163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24164/* end confdefs.h.  */
24165$ac_includes_default
24166int
24167main ()
24168{
24169
24170	     /* Are we little or big endian?  From Harbison&Steele.  */
24171	     union
24172	     {
24173	       long int l;
24174	       char c[sizeof (long int)];
24175	     } u;
24176	     u.l = 1;
24177	     return u.c[sizeof (long int) - 1] == 1;
24178
24179  ;
24180  return 0;
24181}
24182_ACEOF
24183if ac_fn_c_try_run "$LINENO"; then :
24184  ac_cv_c_bigendian=no
24185else
24186  ac_cv_c_bigendian=yes
24187fi
24188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24189  conftest.$ac_objext conftest.beam conftest.$ac_ext
24190fi
24191
24192    fi
24193fi
24194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
24195$as_echo "$ac_cv_c_bigendian" >&6; }
24196 case $ac_cv_c_bigendian in #(
24197   yes)
24198     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
24199;; #(
24200   no)
24201      ;; #(
24202   universal)
24203
24204$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
24205
24206     ;; #(
24207   *)
24208     as_fn_error $? "unknown endianness
24209 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
24210 esac
24211
24212if test $ac_cv_c_bigendian = yes; then
24213    bigendian=1
24214else
24215    bigendian=0
24216fi
24217
24218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iovec" >&5
24219$as_echo_n "checking size of struct iovec... " >&6; }
24220if ${ac_cv_sizeof_struct_iovec+:} false; then :
24221  $as_echo_n "(cached) " >&6
24222else
24223  if test "$cross_compiling" = yes; then :
24224  ac_cv_sizeof_struct_iovec=0
24225else
24226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24227/* end confdefs.h.  */
24228#include <stdio.h>
24229#include <sys/types.h>
24230#include <sys/uio.h>
24231main()
24232{
24233  FILE *f=fopen("conftestval", "w");
24234  if (!f) exit(1);
24235  fprintf(f, "%d\n", sizeof(struct iovec));
24236  exit(0);
24237}
24238_ACEOF
24239if ac_fn_c_try_run "$LINENO"; then :
24240  ac_cv_sizeof_struct_iovec=`cat conftestval`
24241else
24242  ac_cv_sizeof_struct_iovec=0
24243fi
24244rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24245  conftest.$ac_objext conftest.beam conftest.$ac_ext
24246fi
24247
24248fi
24249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iovec" >&5
24250$as_echo "$ac_cv_sizeof_struct_iovec" >&6; }
24251
24252cat >>confdefs.h <<_ACEOF
24253#define SIZEOF_STRUCT_IOVEC $ac_cv_sizeof_struct_iovec
24254_ACEOF
24255
24256
24257if test "$ac_cv_sizeof_struct_iovec" = "0"; then
24258    have_iovec=0
24259else
24260    have_iovec=1
24261fi
24262
24263
24264
24265
24266
24267
24268
24269
24270
24271
24272
24273
24274
24275
24276
24277
24278
24279
24280
24281
24282
24283
24284
24285
24286
24287for ac_func in strnicmp
24288do :
24289  ac_fn_c_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp"
24290if test "x$ac_cv_func_strnicmp" = xyes; then :
24291  cat >>confdefs.h <<_ACEOF
24292#define HAVE_STRNICMP 1
24293_ACEOF
24294 have_strnicmp="1"
24295else
24296  have_strnicmp="0"
24297fi
24298done
24299
24300for ac_func in strncasecmp
24301do :
24302  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
24303if test "x$ac_cv_func_strncasecmp" = xyes; then :
24304  cat >>confdefs.h <<_ACEOF
24305#define HAVE_STRNCASECMP 1
24306_ACEOF
24307 have_strncasecmp="1"
24308else
24309  have_strncasecmp="0"
24310fi
24311done
24312
24313for ac_func in stricmp
24314do :
24315  ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp"
24316if test "x$ac_cv_func_stricmp" = xyes; then :
24317  cat >>confdefs.h <<_ACEOF
24318#define HAVE_STRICMP 1
24319_ACEOF
24320 have_stricmp="1"
24321else
24322  have_stricmp="0"
24323fi
24324done
24325
24326for ac_func in strcasecmp
24327do :
24328  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
24329if test "x$ac_cv_func_strcasecmp" = xyes; then :
24330  cat >>confdefs.h <<_ACEOF
24331#define HAVE_STRCASECMP 1
24332_ACEOF
24333 have_strcasecmp="1"
24334else
24335  have_strcasecmp="0"
24336fi
24337done
24338
24339for ac_func in strdup
24340do :
24341  ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
24342if test "x$ac_cv_func_strdup" = xyes; then :
24343  cat >>confdefs.h <<_ACEOF
24344#define HAVE_STRDUP 1
24345_ACEOF
24346 have_strdup="1"
24347else
24348  have_strdup="0"
24349fi
24350done
24351
24352for ac_func in strstr
24353do :
24354  ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
24355if test "x$ac_cv_func_strstr" = xyes; then :
24356  cat >>confdefs.h <<_ACEOF
24357#define HAVE_STRSTR 1
24358_ACEOF
24359 have_strstr="1"
24360else
24361  have_strstr="0"
24362fi
24363done
24364
24365for ac_func in memchr
24366do :
24367  ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
24368if test "x$ac_cv_func_memchr" = xyes; then :
24369  cat >>confdefs.h <<_ACEOF
24370#define HAVE_MEMCHR 1
24371_ACEOF
24372 have_memchr="1"
24373else
24374  have_memchr="0"
24375fi
24376done
24377
24378as_ac_var=`$as_echo "ac_cv_func_$int64_strfn" | $as_tr_sh`
24379ac_fn_c_check_func "$LINENO" "$int64_strfn" "$as_ac_var"
24380if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24381  have_int64_strfn="1"
24382else
24383  have_int64_strfn="0"
24384fi
24385
24386
24387if test "$have_int64_strfn" = "0" && test "$int64_strfn" = "strtoll"; then
24388    int64_strfn="strtoq"
24389    ac_fn_c_check_func "$LINENO" "strtoq" "ac_cv_func_strtoq"
24390if test "x$ac_cv_func_strtoq" = xyes; then :
24391  have_int64_strfn=1
24392else
24393  have_int64_strfn=0
24394fi
24395
24396fi
24397
24398if test "$have_int64_strfn" = "1"; then
24399
24400cat >>confdefs.h <<_ACEOF
24401#define APR_INT64_STRFN $int64_strfn
24402_ACEOF
24403
24404fi
24405
24406
24407
24408
24409
24410
24411
24412
24413
24414if test "$off_t_strfn" = "apr_strtoi64" && test "$have_int64_strfn" = "1"; then
24415    off_t_strfn=$int64_strfn
24416fi
24417
24418cat >>confdefs.h <<_ACEOF
24419#define APR_OFF_T_STRFN $off_t_strfn
24420_ACEOF
24421
24422
24423echo "${nl}Checking for DSO..."
24424# Check whether --enable-dso was given.
24425if test "${enable_dso+set}" = set; then :
24426  enableval=$enable_dso; if test "x$enableval" = "xyes"; then
24427      dsotype=any
24428   else
24429      dsotype=$enableval
24430   fi
24431
24432else
24433  dsotype=any
24434fi
24435
24436
24437if test "$dsotype" = "any"; then
24438    if test "$dsotype" = "any"; then
24439      case $host in
24440        *darwin[0-8]\.*)
24441          # Original Darwin, not for 9.0!:
24442          ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule"
24443if test "x$ac_cv_func_NSLinkModule" = xyes; then :
24444  dsotype=dyld
24445fi
24446;;
24447        hppa*-hpux[1-9]\.*|hppa*-hpux1[01]*)
24448          # shl is specific to parisc hpux SOM binaries, not used for 64 bit
24449          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
24450$as_echo_n "checking for shl_load in -ldld... " >&6; }
24451if ${ac_cv_lib_dld_shl_load+:} false; then :
24452  $as_echo_n "(cached) " >&6
24453else
24454  ac_check_lib_save_LIBS=$LIBS
24455LIBS="-ldld  $LIBS"
24456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24457/* end confdefs.h.  */
24458
24459/* Override any GCC internal prototype to avoid an error.
24460   Use char because int might match the return type of a GCC
24461   builtin and then its argument prototype would still apply.  */
24462#ifdef __cplusplus
24463extern "C"
24464#endif
24465char shl_load ();
24466int
24467main ()
24468{
24469return shl_load ();
24470  ;
24471  return 0;
24472}
24473_ACEOF
24474if ac_fn_c_try_link "$LINENO"; then :
24475  ac_cv_lib_dld_shl_load=yes
24476else
24477  ac_cv_lib_dld_shl_load=no
24478fi
24479rm -f core conftest.err conftest.$ac_objext \
24480    conftest$ac_exeext conftest.$ac_ext
24481LIBS=$ac_check_lib_save_LIBS
24482fi
24483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
24484$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
24485if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
24486  have_shl=1
24487fi
24488
24489          if test "$ac_cv_sizeof_voidp$have_shl" = "41"; then
24490            dsotype=shl;
24491  if test "x$LIBS" = "x"; then
24492    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldld\""
24493    LIBS="-ldld"
24494  else
24495    apr_addto_bugger="-ldld"
24496    for i in $apr_addto_bugger; do
24497      apr_addto_duplicate="0"
24498      for j in $LIBS; do
24499        if test "x$i" = "x$j"; then
24500          apr_addto_duplicate="1"
24501          break
24502        fi
24503      done
24504      if test $apr_addto_duplicate = "0"; then
24505        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
24506        LIBS="$LIBS $i"
24507      fi
24508    done
24509  fi
24510
24511          fi;;
24512        *mingw*|*-os2*)
24513          # several 'other's below probably belong up here.  If they always
24514          # use a platform implementation and shouldn't test the dlopen/dlfcn
24515          # features, then bring them up here.
24516          # But if they -should- optionally use dlfcn, and/or need the config
24517          # detection of dlopen/dlsym, do not move them up.
24518          dsotype=other ;;
24519      esac
24520    fi
24521    # Normal POSIX:
24522    if test "$dsotype" = "any"; then
24523      ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
24524if test "x$ac_cv_func_dlopen" = xyes; then :
24525  dsotype=dlfcn
24526fi
24527
24528    fi
24529    if test "$dsotype" = "any"; then
24530      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
24531$as_echo_n "checking for dlopen in -ldl... " >&6; }
24532if ${ac_cv_lib_dl_dlopen+:} false; then :
24533  $as_echo_n "(cached) " >&6
24534else
24535  ac_check_lib_save_LIBS=$LIBS
24536LIBS="-ldl  $LIBS"
24537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24538/* end confdefs.h.  */
24539
24540/* Override any GCC internal prototype to avoid an error.
24541   Use char because int might match the return type of a GCC
24542   builtin and then its argument prototype would still apply.  */
24543#ifdef __cplusplus
24544extern "C"
24545#endif
24546char dlopen ();
24547int
24548main ()
24549{
24550return dlopen ();
24551  ;
24552  return 0;
24553}
24554_ACEOF
24555if ac_fn_c_try_link "$LINENO"; then :
24556  ac_cv_lib_dl_dlopen=yes
24557else
24558  ac_cv_lib_dl_dlopen=no
24559fi
24560rm -f core conftest.err conftest.$ac_objext \
24561    conftest$ac_exeext conftest.$ac_ext
24562LIBS=$ac_check_lib_save_LIBS
24563fi
24564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
24565$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
24566if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
24567  dsotype=dlfcn;
24568  if test "x$LIBS" = "x"; then
24569    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldl\""
24570    LIBS="-ldl"
24571  else
24572    apr_addto_bugger="-ldl"
24573    for i in $apr_addto_bugger; do
24574      apr_addto_duplicate="0"
24575      for j in $LIBS; do
24576        if test "x$i" = "x$j"; then
24577          apr_addto_duplicate="1"
24578          break
24579        fi
24580      done
24581      if test $apr_addto_duplicate = "0"; then
24582        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
24583        LIBS="$LIBS $i"
24584      fi
24585    done
24586  fi
24587
24588fi
24589
24590    fi
24591    if test "$dsotype" = "dlfcn"; then
24592        # ReliantUnix has dlopen() in libc but dlsym() in libdl :(
24593        ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
24594if test "x$ac_cv_func_dlsym" = xyes; then :
24595
24596else
24597  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
24598$as_echo_n "checking for dlsym in -ldl... " >&6; }
24599if ${ac_cv_lib_dl_dlsym+:} false; then :
24600  $as_echo_n "(cached) " >&6
24601else
24602  ac_check_lib_save_LIBS=$LIBS
24603LIBS="-ldl  $LIBS"
24604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24605/* end confdefs.h.  */
24606
24607/* Override any GCC internal prototype to avoid an error.
24608   Use char because int might match the return type of a GCC
24609   builtin and then its argument prototype would still apply.  */
24610#ifdef __cplusplus
24611extern "C"
24612#endif
24613char dlsym ();
24614int
24615main ()
24616{
24617return dlsym ();
24618  ;
24619  return 0;
24620}
24621_ACEOF
24622if ac_fn_c_try_link "$LINENO"; then :
24623  ac_cv_lib_dl_dlsym=yes
24624else
24625  ac_cv_lib_dl_dlsym=no
24626fi
24627rm -f core conftest.err conftest.$ac_objext \
24628    conftest$ac_exeext conftest.$ac_ext
24629LIBS=$ac_check_lib_save_LIBS
24630fi
24631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
24632$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
24633if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
24634
24635  if test "x$LIBS" = "x"; then
24636    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldl\""
24637    LIBS="-ldl"
24638  else
24639    apr_addto_bugger="-ldl"
24640    for i in $apr_addto_bugger; do
24641      apr_addto_duplicate="0"
24642      for j in $LIBS; do
24643        if test "x$i" = "x$j"; then
24644          apr_addto_duplicate="1"
24645          break
24646        fi
24647      done
24648      if test $apr_addto_duplicate = "0"; then
24649        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
24650        LIBS="$LIBS $i"
24651      fi
24652    done
24653  fi
24654
24655else
24656  dsotype=any
24657              echo "Weird: dlopen() was found but dlsym() was not found!"
24658fi
24659
24660fi
24661
24662    fi
24663    if test "$dsotype" = "any"; then
24664      # BeOS:
24665      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for load_image in -lroot" >&5
24666$as_echo_n "checking for load_image in -lroot... " >&6; }
24667if ${ac_cv_lib_root_load_image+:} false; then :
24668  $as_echo_n "(cached) " >&6
24669else
24670  ac_check_lib_save_LIBS=$LIBS
24671LIBS="-lroot  $LIBS"
24672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24673/* end confdefs.h.  */
24674
24675/* Override any GCC internal prototype to avoid an error.
24676   Use char because int might match the return type of a GCC
24677   builtin and then its argument prototype would still apply.  */
24678#ifdef __cplusplus
24679extern "C"
24680#endif
24681char load_image ();
24682int
24683main ()
24684{
24685return load_image ();
24686  ;
24687  return 0;
24688}
24689_ACEOF
24690if ac_fn_c_try_link "$LINENO"; then :
24691  ac_cv_lib_root_load_image=yes
24692else
24693  ac_cv_lib_root_load_image=no
24694fi
24695rm -f core conftest.err conftest.$ac_objext \
24696    conftest$ac_exeext conftest.$ac_ext
24697LIBS=$ac_check_lib_save_LIBS
24698fi
24699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_load_image" >&5
24700$as_echo "$ac_cv_lib_root_load_image" >&6; }
24701if test "x$ac_cv_lib_root_load_image" = xyes; then :
24702  dsotype=other
24703fi
24704
24705    fi
24706    # Everything else:
24707    if test "$dsotype" = "any"; then
24708        case $host in
24709        *os390|*os400|*-aix*)
24710          # Some -aix5 will use dl, no hassles.  Keep that pattern here.
24711          dsotype=other ;;
24712        *-hpux*)
24713          if test "$have_shl" = "1"; then
24714            dsotype=shl;
24715  if test "x$LIBS" = "x"; then
24716    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldld\""
24717    LIBS="-ldld"
24718  else
24719    apr_addto_bugger="-ldld"
24720    for i in $apr_addto_bugger; do
24721      apr_addto_duplicate="0"
24722      for j in $LIBS; do
24723        if test "x$i" = "x$j"; then
24724          apr_addto_duplicate="1"
24725          break
24726        fi
24727      done
24728      if test $apr_addto_duplicate = "0"; then
24729        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
24730        LIBS="$LIBS $i"
24731      fi
24732    done
24733  fi
24734
24735          fi;;
24736        esac
24737    fi
24738fi
24739
24740if test "$dsotype" = "any"; then
24741    as_fn_error $? "Could not detect suitable DSO implementation" "$LINENO" 5
24742elif test "$dsotype" = "no"; then
24743    aprdso="0"
24744else
24745    case "$dsotype" in
24746    dlfcn)
24747$as_echo "#define DSO_USE_DLFCN 1" >>confdefs.h
24748;;
24749    shl)
24750$as_echo "#define DSO_USE_SHL 1" >>confdefs.h
24751;;
24752    dyld)
24753$as_echo "#define DSO_USE_DYLD 1" >>confdefs.h
24754;;
24755    other) ;; # Use whatever is in dso/OSDIR
24756    *) as_fn_error $? "Unknown DSO implementation \"$dsotype\"" "$LINENO" 5;;
24757    esac
24758    aprdso="1"
24759    apr_modules="$apr_modules dso"
24760fi
24761
24762
24763
24764echo "${nl}Checking for Processes..."
24765
24766for ac_func in waitpid
24767do :
24768  ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
24769if test "x$ac_cv_func_waitpid" = xyes; then :
24770  cat >>confdefs.h <<_ACEOF
24771#define HAVE_WAITPID 1
24772_ACEOF
24773
24774fi
24775done
24776
24777
24778# Check whether --enable-other-child was given.
24779if test "${enable_other_child+set}" = set; then :
24780  enableval=$enable_other_child;  if test "$enableval" = "yes"; then
24781        oc="1"
24782    else
24783        oc="0"
24784    fi
24785else
24786   oc=1
24787fi
24788
24789
24790
24791
24792if test -z "$have_proc_invoked"; then
24793  have_proc_invoked="0"
24794fi
24795
24796
24797
24798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Variable Length Arrays" >&5
24799$as_echo_n "checking for Variable Length Arrays... " >&6; }
24800apr_save_CFLAGS=$CFLAGS
24801 CFLAGS="$CFLAGS $CFLAGS_WARN"
24802 if test "$ac_cv_c_compiler_gnu" = "yes"; then
24803   CFLAGS="$CFLAGS -Werror"
24804 fi
24805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24806/* end confdefs.h.  */
24807#include "confdefs.h"
24808
24809
24810   int main(int argc, const char *const *argv) {
24811
24812    int foo[argc];
24813    foo[0] = 0;
24814
24815      return 0; }
24816
24817_ACEOF
24818if ac_fn_c_try_compile "$LINENO"; then :
24819  vla_msg=yes
24820else
24821  vla_msg=no
24822fi
24823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24824 CFLAGS=$apr_save_CFLAGS
24825
24826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vla_msg" >&5
24827$as_echo "$vla_msg" >&6; }
24828if test "$vla_msg" = "yes"; then
24829
24830$as_echo "#define HAVE_VLA 1" >>confdefs.h
24831
24832fi
24833
24834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct rlimit" >&5
24835$as_echo_n "checking struct rlimit... " >&6; }
24836if ${ac_cv_struct_rlimit+:} false; then :
24837  $as_echo_n "(cached) " >&6
24838else
24839
24840if test "$cross_compiling" = yes; then :
24841
24842    ac_cv_struct_rlimit=no
24843else
24844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24845/* end confdefs.h.  */
24846
24847#include <sys/types.h>
24848#include <sys/time.h>
24849#include <sys/resource.h>
24850main()
24851{
24852    struct rlimit limit;
24853    limit.rlim_cur = 0;
24854    limit.rlim_max = 0;
24855    exit(0);
24856}
24857_ACEOF
24858if ac_fn_c_try_run "$LINENO"; then :
24859
24860    ac_cv_struct_rlimit=yes
24861else
24862
24863    ac_cv_struct_rlimit=no
24864fi
24865rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24866  conftest.$ac_objext conftest.beam conftest.$ac_ext
24867fi
24868
24869fi
24870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rlimit" >&5
24871$as_echo "$ac_cv_struct_rlimit" >&6; }
24872struct_rlimit=0
24873test "x$ac_cv_struct_rlimit" = xyes && struct_rlimit=1
24874
24875
24876echo "${nl}Checking for Locking..."
24877
24878for ac_func in semget semctl flock
24879do :
24880  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24881ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24882if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24883  cat >>confdefs.h <<_ACEOF
24884#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24885_ACEOF
24886
24887fi
24888done
24889
24890for ac_header in semaphore.h OS.h
24891do :
24892  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24893ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24894if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24895  cat >>confdefs.h <<_ACEOF
24896#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24897_ACEOF
24898
24899fi
24900
24901done
24902
24903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
24904$as_echo_n "checking for library containing sem_open... " >&6; }
24905if ${ac_cv_search_sem_open+:} false; then :
24906  $as_echo_n "(cached) " >&6
24907else
24908  ac_func_search_save_LIBS=$LIBS
24909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24910/* end confdefs.h.  */
24911
24912/* Override any GCC internal prototype to avoid an error.
24913   Use char because int might match the return type of a GCC
24914   builtin and then its argument prototype would still apply.  */
24915#ifdef __cplusplus
24916extern "C"
24917#endif
24918char sem_open ();
24919int
24920main ()
24921{
24922return sem_open ();
24923  ;
24924  return 0;
24925}
24926_ACEOF
24927for ac_lib in '' rt; do
24928  if test -z "$ac_lib"; then
24929    ac_res="none required"
24930  else
24931    ac_res=-l$ac_lib
24932    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24933  fi
24934  if ac_fn_c_try_link "$LINENO"; then :
24935  ac_cv_search_sem_open=$ac_res
24936fi
24937rm -f core conftest.err conftest.$ac_objext \
24938    conftest$ac_exeext
24939  if ${ac_cv_search_sem_open+:} false; then :
24940  break
24941fi
24942done
24943if ${ac_cv_search_sem_open+:} false; then :
24944
24945else
24946  ac_cv_search_sem_open=no
24947fi
24948rm conftest.$ac_ext
24949LIBS=$ac_func_search_save_LIBS
24950fi
24951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
24952$as_echo "$ac_cv_search_sem_open" >&6; }
24953ac_res=$ac_cv_search_sem_open
24954if test "$ac_res" != no; then :
24955  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24956
24957fi
24958
24959for ac_func in sem_close sem_unlink sem_post sem_wait create_sem
24960do :
24961  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24962ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24963if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24964  cat >>confdefs.h <<_ACEOF
24965#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24966_ACEOF
24967
24968fi
24969done
24970
24971
24972# Some systems return ENOSYS from sem_open.
24973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sem_open" >&5
24974$as_echo_n "checking for working sem_open... " >&6; }
24975if ${ac_cv_func_sem_open+:} false; then :
24976  $as_echo_n "(cached) " >&6
24977else
24978
24979if test "$cross_compiling" = yes; then :
24980  ac_cv_func_sem_open=no
24981else
24982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24983/* end confdefs.h.  */
24984
24985#include <errno.h>
24986#include <stdlib.h>
24987#include <fcntl.h>
24988#include <semaphore.h>
24989#ifndef SEM_FAILED
24990#define SEM_FAILED (-1)
24991#endif
24992main()
24993{
24994    sem_t *psem;
24995    const char *sem_name = "/apr_autoconf";
24996
24997    psem = sem_open(sem_name, O_CREAT, 0644, 1);
24998    if (psem == (sem_t *)SEM_FAILED) {
24999	exit(1);
25000    }
25001    sem_close(psem);
25002    psem = sem_open(sem_name, O_CREAT | O_EXCL, 0644, 1);
25003    if (psem != (sem_t *)SEM_FAILED) {
25004        sem_close(psem);
25005        exit(1);
25006    }
25007    sem_unlink(sem_name);
25008    exit(0);
25009}
25010_ACEOF
25011if ac_fn_c_try_run "$LINENO"; then :
25012  ac_cv_func_sem_open=yes
25013else
25014  ac_cv_func_sem_open=no
25015fi
25016rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25017  conftest.$ac_objext conftest.beam conftest.$ac_ext
25018fi
25019
25020fi
25021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sem_open" >&5
25022$as_echo "$ac_cv_func_sem_open" >&6; }
25023
25024# It's stupid, but not all platforms have union semun, even those that need it.
25025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun in sys/sem.h" >&5
25026$as_echo_n "checking for union semun in sys/sem.h... " >&6; }
25027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25028/* end confdefs.h.  */
25029
25030#include <sys/types.h>
25031#include <sys/ipc.h>
25032#include <sys/sem.h>
25033
25034int
25035main ()
25036{
25037
25038union semun arg;
25039semctl(0, 0, 0, arg);
25040
25041  ;
25042  return 0;
25043}
25044_ACEOF
25045if ac_fn_c_try_compile "$LINENO"; then :
25046  have_union_semun="1" union_semun=yes
25047msg=yes
25048else
25049
25050have_union_semun="0"
25051msg=no
25052fi
25053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
25055$as_echo "$msg" >&6; }
25056
25057
25058
25059  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOCK_EX in sys/file.h" >&5
25060$as_echo_n "checking for LOCK_EX in sys/file.h... " >&6; }
25061if ${ac_cv_define_LOCK_EX+:} false; then :
25062  $as_echo_n "(cached) " >&6
25063else
25064
25065    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25066/* end confdefs.h.  */
25067
25068#include <sys/file.h>
25069#ifdef LOCK_EX
25070YES_IS_DEFINED
25071#endif
25072
25073_ACEOF
25074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25075  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25076  ac_cv_define_LOCK_EX=yes
25077else
25078  ac_cv_define_LOCK_EX=no
25079fi
25080rm -f conftest*
25081
25082
25083fi
25084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_LOCK_EX" >&5
25085$as_echo "$ac_cv_define_LOCK_EX" >&6; }
25086  if test "$ac_cv_define_LOCK_EX" = "yes"; then
25087
25088$as_echo "#define HAVE_LOCK_EX 1" >>confdefs.h
25089
25090  fi
25091
25092
25093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLK in fcntl.h" >&5
25094$as_echo_n "checking for F_SETLK in fcntl.h... " >&6; }
25095if ${ac_cv_define_F_SETLK+:} false; then :
25096  $as_echo_n "(cached) " >&6
25097else
25098
25099    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25100/* end confdefs.h.  */
25101
25102#include <fcntl.h>
25103#ifdef F_SETLK
25104YES_IS_DEFINED
25105#endif
25106
25107_ACEOF
25108if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25109  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25110  ac_cv_define_F_SETLK=yes
25111else
25112  ac_cv_define_F_SETLK=no
25113fi
25114rm -f conftest*
25115
25116
25117fi
25118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_F_SETLK" >&5
25119$as_echo "$ac_cv_define_F_SETLK" >&6; }
25120  if test "$ac_cv_define_F_SETLK" = "yes"; then
25121
25122$as_echo "#define HAVE_F_SETLK 1" >>confdefs.h
25123
25124  fi
25125
25126
25127  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SEM_UNDO in sys/sem.h" >&5
25128$as_echo_n "checking for SEM_UNDO in sys/sem.h... " >&6; }
25129if ${ac_cv_define_SEM_UNDO+:} false; then :
25130  $as_echo_n "(cached) " >&6
25131else
25132
25133    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25134/* end confdefs.h.  */
25135
25136#include <sys/sem.h>
25137#ifdef SEM_UNDO
25138YES_IS_DEFINED
25139#endif
25140
25141_ACEOF
25142if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25143  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25144  ac_cv_define_SEM_UNDO=yes
25145else
25146  ac_cv_define_SEM_UNDO=no
25147fi
25148rm -f conftest*
25149
25150
25151fi
25152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SEM_UNDO" >&5
25153$as_echo "$ac_cv_define_SEM_UNDO" >&6; }
25154  if test "$ac_cv_define_SEM_UNDO" = "yes"; then
25155
25156$as_echo "#define HAVE_SEM_UNDO 1" >>confdefs.h
25157
25158  fi
25159
25160
25161# We are assuming that if the platform doesn't have POLLIN, it doesn't have
25162# any POLL definitions.
25163
25164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POLLIN in poll.h sys/poll.h" >&5
25165$as_echo_n "checking for POLLIN in poll.h sys/poll.h... " >&6; }
25166if ${ac_cv_define_POLLIN+:} false; then :
25167  $as_echo_n "(cached) " >&6
25168else
25169
25170    ac_cv_define_POLLIN=no
25171    for curhdr in poll.h sys/poll.h
25172    do
25173      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25174/* end confdefs.h.  */
25175
25176#include <$curhdr>
25177#ifdef POLLIN
25178YES_IS_DEFINED
25179#endif
25180
25181_ACEOF
25182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25183  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25184  ac_cv_define_POLLIN=yes
25185fi
25186rm -f conftest*
25187
25188    done
25189
25190fi
25191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_POLLIN" >&5
25192$as_echo "$ac_cv_define_POLLIN" >&6; }
25193  if test "$ac_cv_define_POLLIN" = "yes"; then
25194
25195$as_echo "#define HAVE_POLLIN 1" >>confdefs.h
25196
25197  fi
25198
25199
25200if test "$threads" = "1"; then
25201
25202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PROCESS_SHARED in pthread.h" >&5
25203$as_echo_n "checking for PTHREAD_PROCESS_SHARED in pthread.h... " >&6; }
25204if ${ac_cv_define_PTHREAD_PROCESS_SHARED+:} false; then :
25205  $as_echo_n "(cached) " >&6
25206else
25207
25208    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25209/* end confdefs.h.  */
25210
25211#include <pthread.h>
25212#ifdef PTHREAD_PROCESS_SHARED
25213YES_IS_DEFINED
25214#endif
25215
25216_ACEOF
25217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25218  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25219  ac_cv_define_PTHREAD_PROCESS_SHARED=yes
25220else
25221  ac_cv_define_PTHREAD_PROCESS_SHARED=no
25222fi
25223rm -f conftest*
25224
25225
25226fi
25227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_PTHREAD_PROCESS_SHARED" >&5
25228$as_echo "$ac_cv_define_PTHREAD_PROCESS_SHARED" >&6; }
25229  if test "$ac_cv_define_PTHREAD_PROCESS_SHARED" = "yes"; then
25230
25231$as_echo "#define HAVE_PTHREAD_PROCESS_SHARED 1" >>confdefs.h
25232
25233  fi
25234
25235    for ac_func in pthread_mutexattr_setpshared
25236do :
25237  ac_fn_c_check_func "$LINENO" "pthread_mutexattr_setpshared" "ac_cv_func_pthread_mutexattr_setpshared"
25238if test "x$ac_cv_func_pthread_mutexattr_setpshared" = xyes; then :
25239  cat >>confdefs.h <<_ACEOF
25240#define HAVE_PTHREAD_MUTEXATTR_SETPSHARED 1
25241_ACEOF
25242
25243fi
25244done
25245
25246    # Some systems have setpshared and define PROCESS_SHARED, but don't
25247    # really support PROCESS_SHARED locks.  So, we must validate that we
25248    # can go through the steps without receiving some sort of system error.
25249    # Linux and older versions of AIX have this problem.
25250    ac_rc=yes
25251for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED func:pthread_mutexattr_setpshared; do
25252    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25253    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25254    case $ac_type in
25255        header )
25256            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25257            ac_var="ac_cv_header_$ac_item"
25258            ;;
25259        file )
25260            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25261            ac_var="ac_cv_file_$ac_item"
25262            ;;
25263        func )   ac_var="ac_cv_func_$ac_item"   ;;
25264        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25265        define ) ac_var="ac_cv_define_$ac_item" ;;
25266        custom ) ac_var="$ac_item" ;;
25267    esac
25268    eval "ac_val=\$$ac_var"
25269    if test ".$ac_val" != .yes; then
25270        ac_rc=no
25271        break
25272    fi
25273done
25274if test ".$ac_rc" = .yes; then
25275    :
25276
25277      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working PROCESS_SHARED locks" >&5
25278$as_echo_n "checking for working PROCESS_SHARED locks... " >&6; }
25279if ${apr_cv_process_shared_works+:} false; then :
25280  $as_echo_n "(cached) " >&6
25281else
25282
25283      if test "$cross_compiling" = yes; then :
25284  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25286as_fn_error $? "cannot run test program while cross compiling
25287See \`config.log' for more details" "$LINENO" 5; }
25288else
25289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25290/* end confdefs.h.  */
25291
25292#include <sys/types.h>
25293#include <pthread.h>
25294        int main()
25295        {
25296            pthread_mutex_t mutex;
25297            pthread_mutexattr_t attr;
25298            if (pthread_mutexattr_init(&attr))
25299                exit(1);
25300            if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
25301                exit(2);
25302            if (pthread_mutex_init(&mutex, &attr))
25303                exit(3);
25304            if (pthread_mutexattr_destroy(&attr))
25305                exit(4);
25306            if (pthread_mutex_destroy(&mutex))
25307                exit(5);
25308            exit(0);
25309        }
25310_ACEOF
25311if ac_fn_c_try_run "$LINENO"; then :
25312  apr_cv_process_shared_works=yes
25313else
25314  apr_cv_process_shared_works=no
25315fi
25316rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25317  conftest.$ac_objext conftest.beam conftest.$ac_ext
25318fi
25319
25320fi
25321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_process_shared_works" >&5
25322$as_echo "$apr_cv_process_shared_works" >&6; }
25323      # Override detection of pthread_mutexattr_setpshared
25324      ac_cv_func_pthread_mutexattr_setpshared=$apr_cv_process_shared_works
25325else
25326    :
25327
25328fi
25329
25330
25331    if test "$ac_cv_func_pthread_mutexattr_setpshared" = "yes"; then
25332
25333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for robust cross-process mutex support" >&5
25334$as_echo_n "checking for robust cross-process mutex support... " >&6; }
25335if ${apr_cv_mutex_robust_shared+:} false; then :
25336  $as_echo_n "(cached) " >&6
25337else
25338  if test "$cross_compiling" = yes; then :
25339  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25341as_fn_error $? "cannot run test program while cross compiling
25342See \`config.log' for more details" "$LINENO" 5; }
25343else
25344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25345/* end confdefs.h.  */
25346
25347#include <sys/types.h>
25348#include <pthread.h>
25349#include <stdlib.h>
25350
25351int main(int argc, char **argv)
25352{
25353    pthread_mutex_t mutex;
25354    pthread_mutexattr_t attr;
25355
25356    if (pthread_mutexattr_init(&attr))
25357        exit(1);
25358    if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
25359        exit(2);
25360    if (pthread_mutexattr_setrobust_np(&attr, PTHREAD_MUTEX_ROBUST_NP))
25361        exit(3);
25362    if (pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT))
25363        exit(4);
25364    if (pthread_mutex_init(&mutex, &attr))
25365        exit(5);
25366    if (pthread_mutexattr_destroy(&attr))
25367        exit(6);
25368    if (pthread_mutex_destroy(&mutex))
25369        exit(7);
25370
25371    exit(0);
25372}
25373_ACEOF
25374if ac_fn_c_try_run "$LINENO"; then :
25375  apr_cv_mutex_robust_shared=yes
25376else
25377  apr_cv_mutex_robust_shared=no
25378fi
25379rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25380  conftest.$ac_objext conftest.beam conftest.$ac_ext
25381fi
25382
25383fi
25384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_robust_shared" >&5
25385$as_echo "$apr_cv_mutex_robust_shared" >&6; }
25386
25387if test "$apr_cv_mutex_robust_shared" = "yes"; then
25388
25389$as_echo "#define HAVE_PTHREAD_MUTEX_ROBUST 1" >>confdefs.h
25390
25391fi
25392
25393    fi
25394fi
25395
25396# See which lock mechanisms we can support on this system.
25397ac_rc=yes
25398for ac_spec in header:semaphore.h func:sem_open func:sem_close              func:sem_unlink func:sem_post func:sem_wait; do
25399    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25400    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25401    case $ac_type in
25402        header )
25403            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25404            ac_var="ac_cv_header_$ac_item"
25405            ;;
25406        file )
25407            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25408            ac_var="ac_cv_file_$ac_item"
25409            ;;
25410        func )   ac_var="ac_cv_func_$ac_item"   ;;
25411        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25412        define ) ac_var="ac_cv_define_$ac_item" ;;
25413        custom ) ac_var="$ac_item" ;;
25414    esac
25415    eval "ac_val=\$$ac_var"
25416    if test ".$ac_val" != .yes; then
25417        ac_rc=no
25418        break
25419    fi
25420done
25421if test ".$ac_rc" = .yes; then
25422    :
25423    hasposixser="1"
25424else
25425    :
25426    hasposixser="0"
25427fi
25428
25429ac_rc=yes
25430for ac_spec in func:semget func:semctl define:SEM_UNDO; do
25431    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25432    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25433    case $ac_type in
25434        header )
25435            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25436            ac_var="ac_cv_header_$ac_item"
25437            ;;
25438        file )
25439            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25440            ac_var="ac_cv_file_$ac_item"
25441            ;;
25442        func )   ac_var="ac_cv_func_$ac_item"   ;;
25443        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25444        define ) ac_var="ac_cv_define_$ac_item" ;;
25445        custom ) ac_var="$ac_item" ;;
25446    esac
25447    eval "ac_val=\$$ac_var"
25448    if test ".$ac_val" != .yes; then
25449        ac_rc=no
25450        break
25451    fi
25452done
25453if test ".$ac_rc" = .yes; then
25454    :
25455    hassysvser="1"
25456else
25457    :
25458    hassysvser="0"
25459fi
25460
25461ac_rc=yes
25462for ac_spec in func:flock define:LOCK_EX; do
25463    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25464    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25465    case $ac_type in
25466        header )
25467            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25468            ac_var="ac_cv_header_$ac_item"
25469            ;;
25470        file )
25471            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25472            ac_var="ac_cv_file_$ac_item"
25473            ;;
25474        func )   ac_var="ac_cv_func_$ac_item"   ;;
25475        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25476        define ) ac_var="ac_cv_define_$ac_item" ;;
25477        custom ) ac_var="$ac_item" ;;
25478    esac
25479    eval "ac_val=\$$ac_var"
25480    if test ".$ac_val" != .yes; then
25481        ac_rc=no
25482        break
25483    fi
25484done
25485if test ".$ac_rc" = .yes; then
25486    :
25487    hasflockser="1"
25488else
25489    :
25490    hasflockser="0"
25491fi
25492
25493ac_rc=yes
25494for ac_spec in header:fcntl.h define:F_SETLK; do
25495    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25496    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25497    case $ac_type in
25498        header )
25499            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25500            ac_var="ac_cv_header_$ac_item"
25501            ;;
25502        file )
25503            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25504            ac_var="ac_cv_file_$ac_item"
25505            ;;
25506        func )   ac_var="ac_cv_func_$ac_item"   ;;
25507        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25508        define ) ac_var="ac_cv_define_$ac_item" ;;
25509        custom ) ac_var="$ac_item" ;;
25510    esac
25511    eval "ac_val=\$$ac_var"
25512    if test ".$ac_val" != .yes; then
25513        ac_rc=no
25514        break
25515    fi
25516done
25517if test ".$ac_rc" = .yes; then
25518    :
25519    hasfcntlser="1"
25520else
25521    :
25522    hasfcntlser="0"
25523fi
25524
25525# note: the current APR use of shared mutex requires /dev/zero
25526ac_rc=yes
25527for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED              func:pthread_mutexattr_setpshared              file:/dev/zero; do
25528    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25529    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25530    case $ac_type in
25531        header )
25532            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25533            ac_var="ac_cv_header_$ac_item"
25534            ;;
25535        file )
25536            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25537            ac_var="ac_cv_file_$ac_item"
25538            ;;
25539        func )   ac_var="ac_cv_func_$ac_item"   ;;
25540        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25541        define ) ac_var="ac_cv_define_$ac_item" ;;
25542        custom ) ac_var="$ac_item" ;;
25543    esac
25544    eval "ac_val=\$$ac_var"
25545    if test ".$ac_val" != .yes; then
25546        ac_rc=no
25547        break
25548    fi
25549done
25550if test ".$ac_rc" = .yes; then
25551    :
25552    hasprocpthreadser="1"
25553else
25554    :
25555    hasprocpthreadser="0"
25556fi
25557
25558ac_rc=yes
25559for ac_spec in header:OS.h func:create_sem; do
25560    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25561    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25562    case $ac_type in
25563        header )
25564            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25565            ac_var="ac_cv_header_$ac_item"
25566            ;;
25567        file )
25568            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25569            ac_var="ac_cv_file_$ac_item"
25570            ;;
25571        func )   ac_var="ac_cv_func_$ac_item"   ;;
25572        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25573        define ) ac_var="ac_cv_define_$ac_item" ;;
25574        custom ) ac_var="$ac_item" ;;
25575    esac
25576    eval "ac_val=\$$ac_var"
25577    if test ".$ac_val" != .yes; then
25578        ac_rc=no
25579        break
25580    fi
25581done
25582if test ".$ac_rc" = .yes; then
25583    :
25584    hasbeossem="1"
25585else
25586    :
25587    hasbeossem="0"
25588fi
25589
25590
25591# See which lock mechanism we'll select by default on this system.
25592# The last APR_DECIDE to execute sets the default.
25593# At this stage, we match the ordering in Apache 1.3
25594# which is (highest to lowest): sysvsem -> fcntl -> flock.
25595# POSIX semaphores and cross-process pthread mutexes are not
25596# used by default since they have less desirable behaviour when
25597# e.g. a process holding the mutex segfaults.
25598# The BEOSSEM decision doesn't require any substitutions but is
25599# included here to prevent the fcntl() branch being selected
25600# from the decision making.
25601ac_decision_item='apr_lock implementation method'
25602ac_decision_msg='FAILED'
25603ac_decision=''
25604
25605ac_rc=yes
25606for ac_spec in func:flock define:LOCK_EX; do
25607    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25608    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25609    case $ac_type in
25610        header )
25611            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25612            ac_var="ac_cv_header_$ac_item"
25613            ;;
25614        file )
25615            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25616            ac_var="ac_cv_file_$ac_item"
25617            ;;
25618        func )   ac_var="ac_cv_func_$ac_item"   ;;
25619        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25620        define ) ac_var="ac_cv_define_$ac_item" ;;
25621        custom ) ac_var="$ac_item" ;;
25622    esac
25623    eval "ac_val=\$$ac_var"
25624    if test ".$ac_val" != .yes; then
25625        ac_rc=no
25626        break
25627    fi
25628done
25629if test ".$ac_rc" = .yes; then
25630    :
25631
25632ac_decision='USE_FLOCK_SERIALIZE'
25633ac_decision_msg='4.2BSD-style flock()'
25634ac_decision_USE_FLOCK_SERIALIZE=yes
25635ac_decision_USE_FLOCK_SERIALIZE_msg='4.2BSD-style flock()'
25636
25637else
25638    :
25639
25640fi
25641
25642ac_rc=yes
25643for ac_spec in header:fcntl.h define:F_SETLK; do
25644    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25645    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25646    case $ac_type in
25647        header )
25648            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25649            ac_var="ac_cv_header_$ac_item"
25650            ;;
25651        file )
25652            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25653            ac_var="ac_cv_file_$ac_item"
25654            ;;
25655        func )   ac_var="ac_cv_func_$ac_item"   ;;
25656        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25657        define ) ac_var="ac_cv_define_$ac_item" ;;
25658        custom ) ac_var="$ac_item" ;;
25659    esac
25660    eval "ac_val=\$$ac_var"
25661    if test ".$ac_val" != .yes; then
25662        ac_rc=no
25663        break
25664    fi
25665done
25666if test ".$ac_rc" = .yes; then
25667    :
25668
25669ac_decision='USE_FCNTL_SERIALIZE'
25670ac_decision_msg='SVR4-style fcntl()'
25671ac_decision_USE_FCNTL_SERIALIZE=yes
25672ac_decision_USE_FCNTL_SERIALIZE_msg='SVR4-style fcntl()'
25673
25674else
25675    :
25676
25677fi
25678
25679ac_rc=yes
25680for ac_spec in func:semget func:semctl define:SEM_UNDO; do
25681    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25682    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25683    case $ac_type in
25684        header )
25685            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25686            ac_var="ac_cv_header_$ac_item"
25687            ;;
25688        file )
25689            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25690            ac_var="ac_cv_file_$ac_item"
25691            ;;
25692        func )   ac_var="ac_cv_func_$ac_item"   ;;
25693        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25694        define ) ac_var="ac_cv_define_$ac_item" ;;
25695        custom ) ac_var="$ac_item" ;;
25696    esac
25697    eval "ac_val=\$$ac_var"
25698    if test ".$ac_val" != .yes; then
25699        ac_rc=no
25700        break
25701    fi
25702done
25703if test ".$ac_rc" = .yes; then
25704    :
25705
25706ac_decision='USE_SYSVSEM_SERIALIZE'
25707ac_decision_msg='SysV IPC semget()'
25708ac_decision_USE_SYSVSEM_SERIALIZE=yes
25709ac_decision_USE_SYSVSEM_SERIALIZE_msg='SysV IPC semget()'
25710
25711else
25712    :
25713
25714fi
25715
25716ac_rc=yes
25717for ac_spec in header:OS.h func:create_sem; do
25718    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25719    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25720    case $ac_type in
25721        header )
25722            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25723            ac_var="ac_cv_header_$ac_item"
25724            ;;
25725        file )
25726            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25727            ac_var="ac_cv_file_$ac_item"
25728            ;;
25729        func )   ac_var="ac_cv_func_$ac_item"   ;;
25730        struct ) ac_var="ac_cv_struct_$ac_item" ;;
25731        define ) ac_var="ac_cv_define_$ac_item" ;;
25732        custom ) ac_var="$ac_item" ;;
25733    esac
25734    eval "ac_val=\$$ac_var"
25735    if test ".$ac_val" != .yes; then
25736        ac_rc=no
25737        break
25738    fi
25739done
25740if test ".$ac_rc" = .yes; then
25741    :
25742
25743ac_decision='USE_BEOSSEM'
25744ac_decision_msg='BeOS Semaphores'
25745ac_decision_USE_BEOSSEM=yes
25746ac_decision_USE_BEOSSEM_msg='BeOS Semaphores'
25747
25748else
25749    :
25750
25751fi
25752
25753if test "x$apr_lock_method" != "x"; then
25754    ac_decision="$apr_lock_method"
25755eval "ac_decision_msg=\"\$ac_decision_${ac_decision}_msg\""
25756
25757fi
25758if test ".$ac_decision" = .; then
25759    echo "$0:Error: decision on $ac_decision_item failed" 1>&2
25760    exit 1
25761else
25762    if test ".$ac_decision_msg" = .; then
25763        ac_decision_msg="$ac_decision"
25764    fi
25765    cat >>confdefs.h <<_ACEOF
25766#define ${ac_decision_item} 1
25767_ACEOF
25768
25769    { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
25770$as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
25771fi
25772
25773cat >>confdefs.h <<_ACEOF
25774#define $ac_decision 1
25775_ACEOF
25776
25777
25778flockser="0"
25779sysvser="0"
25780posixser="0"
25781procpthreadser="0"
25782fcntlser="0"
25783case $ac_decision in
25784    USE_FLOCK_SERIALIZE )
25785        flockser="1"
25786        ;;
25787    USE_FCNTL_SERIALIZE )
25788        fcntlser="1"
25789        ;;
25790    USE_SYSVSEM_SERIALIZE )
25791        sysvser="1"
25792        ;;
25793    USE_POSIXSEM_SERIALIZE )
25794        posixser="1"
25795        ;;
25796    USE_PROC_PTHREAD_SERIALIZE )
25797        procpthreadser="1"
25798        ;;
25799    USE_BEOSSEM )
25800        beossem="1"
25801        ;;
25802esac
25803
25804if test $hasfcntlser = "1"; then
25805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl returns EACCES when F_SETLK is already held" >&5
25806$as_echo_n "checking if fcntl returns EACCES when F_SETLK is already held... " >&6; }
25807if test "$cross_compiling" = yes; then :
25808  apr_fcntl_tryacquire_eacces=0
25809else
25810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25811/* end confdefs.h.  */
25812
25813#ifdef HAVE_STDLIB_H
25814#include <stdlib.h>
25815#endif
25816#ifdef HAVE_SYS_TYPES_H
25817#include <sys/types.h>
25818#endif
25819#ifdef HAVE_SYS_STAT_H
25820#include <sys/stat.h>
25821#endif
25822#ifdef HAVE_SYS_WAIT_H
25823#include <sys/wait.h>
25824#endif
25825#if defined(HAVE_UNISTD_H)
25826#include <unistd.h>
25827#endif
25828#include <fcntl.h>
25829#include <errno.h>
25830
25831int fd;
25832struct flock proc_mutex_lock_it = {0};
25833const char *fname = "conftest.fcntl";
25834
25835int main()
25836{
25837    int rc, status;;
25838    proc_mutex_lock_it.l_whence = SEEK_SET;   /* from current point */
25839    proc_mutex_lock_it.l_type = F_WRLCK;      /* set exclusive/write lock */
25840
25841    fd = creat(fname, S_IRWXU);
25842    unlink(fname);
25843
25844    if (rc = lockit()) {
25845        exit(-1);
25846    }
25847
25848    if (fork()) {
25849        wait(&status);
25850    }
25851    else {
25852      return(lockit());
25853    }
25854
25855    close(fd);
25856    exit(WEXITSTATUS(status) != EACCES);
25857}
25858
25859int lockit() {
25860    int rc;
25861    do {
25862        rc = fcntl(fd, F_SETLK, &proc_mutex_lock_it);
25863    } while ( rc < 0 && errno == EINTR);
25864
25865    return (rc < 0) ? errno : 0;
25866}
25867_ACEOF
25868if ac_fn_c_try_run "$LINENO"; then :
25869  apr_fcntl_tryacquire_eacces=1
25870else
25871  apr_fcntl_tryacquire_eacces=0
25872fi
25873rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25874  conftest.$ac_objext conftest.beam conftest.$ac_ext
25875fi
25876
25877fi
25878
25879if test "$apr_fcntl_tryacquire_eacces" = "1"; then
25880
25881$as_echo "#define FCNTL_TRYACQUIRE_EACCES 1" >>confdefs.h
25882
25883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25884$as_echo "yes" >&6; }
25885else
25886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25887$as_echo "no" >&6; }
25888fi
25889
25890
25891
25892
25893
25894
25895
25896
25897
25898
25899
25900
25901
25902
25903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if all interprocess locks affect threads" >&5
25904$as_echo_n "checking if all interprocess locks affect threads... " >&6; }
25905if test "x$apr_process_lock_is_global" = "xyes"; then
25906    proclockglobal="1"
25907    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25908$as_echo "yes" >&6; }
25909else
25910    proclockglobal="0"
25911    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25912$as_echo "no" >&6; }
25913fi
25914
25915
25916
25917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if POSIX sems affect threads in the same process" >&5
25918$as_echo_n "checking if POSIX sems affect threads in the same process... " >&6; }
25919if test "x$apr_posixsem_is_global" = "xyes"; then
25920
25921$as_echo "#define POSIXSEM_IS_GLOBAL 1" >>confdefs.h
25922
25923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25924$as_echo "yes" >&6; }
25925else
25926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25927$as_echo "no" >&6; }
25928fi
25929
25930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SysV sems affect threads in the same process" >&5
25931$as_echo_n "checking if SysV sems affect threads in the same process... " >&6; }
25932if test "x$apr_sysvsem_is_global" = "xyes"; then
25933
25934$as_echo "#define SYSVSEM_IS_GLOBAL 1" >>confdefs.h
25935
25936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25937$as_echo "yes" >&6; }
25938else
25939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25940$as_echo "no" >&6; }
25941fi
25942
25943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl locks affect threads in the same process" >&5
25944$as_echo_n "checking if fcntl locks affect threads in the same process... " >&6; }
25945if test "x$apr_fcntl_is_global" = "xyes"; then
25946
25947$as_echo "#define FCNTL_IS_GLOBAL 1" >>confdefs.h
25948
25949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25950$as_echo "yes" >&6; }
25951else
25952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25953$as_echo "no" >&6; }
25954fi
25955
25956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if flock locks affect threads in the same process" >&5
25957$as_echo_n "checking if flock locks affect threads in the same process... " >&6; }
25958if test "x$apr_flock_is_global" = "xyes"; then
25959
25960$as_echo "#define FLOCK_IS_GLOBAL 1" >>confdefs.h
25961
25962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25963$as_echo "yes" >&6; }
25964else
25965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25966$as_echo "no" >&6; }
25967fi
25968
25969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for entropy source" >&5
25970$as_echo_n "checking for entropy source... " >&6; }
25971
25972why_no_rand=""
25973
25974
25975# Check whether --with-egd was given.
25976if test "${with_egd+set}" = set; then :
25977  withval=$with_egd;
25978$as_echo "#define HAVE_EGD 1" >>confdefs.h
25979
25980    if test "$withval" = "yes"; then
25981
25982cat >>confdefs.h <<_ACEOF
25983#define EGD_DEFAULT_SOCKET "/var/run/egd-pool","/dev/egd-pool","/etc/egd-pool","/etc/entropy"
25984_ACEOF
25985
25986    else
25987        cat >>confdefs.h <<_ACEOF
25988#define EGD_DEFAULT_SOCKET "$withval"
25989_ACEOF
25990
25991    fi
25992    { $as_echo "$as_me:${as_lineno-$LINENO}: result: EGD-compatible daemon" >&5
25993$as_echo "EGD-compatible daemon" >&6; }
25994    rand="1"
25995
25996fi
25997
25998
25999if test "$rand" != "1"; then
26000
26001# Check whether --with-devrandom was given.
26002if test "${with_devrandom+set}" = set; then :
26003  withval=$with_devrandom;  apr_devrandom="$withval"
26004else
26005   apr_devrandom="yes"
26006fi
26007
26008
26009  if test "$apr_devrandom" = "yes"; then
26010    # /dev/random on OpenBSD doesn't provide random data, so
26011    # prefer /dev/arandom, which does; see random(4).
26012    for f in /dev/arandom /dev/urandom /dev/random; do
26013      if test -r $f; then
26014        apr_devrandom=$f
26015        rand=1
26016        break
26017      fi
26018    done
26019  elif test "$apr_devrandom" != "no"; then
26020    if test -r "$apr_devrandom"; then
26021      rand="1"
26022    else
26023      as_fn_error $? "$apr_devrandom not found or unreadable." "$LINENO" 5
26024    fi
26025  fi
26026
26027  if test "$rand" = "1"; then
26028    case $host in
26029      *os390)
26030        if test $os_version -lt 1700; then
26031          rand="0"
26032          why_no_rand=" ($apr_devrandom unusable on z/OS before V1R7)"
26033        fi
26034        ;;
26035    esac
26036  fi
26037
26038  if test "$rand" = "1"; then
26039
26040cat >>confdefs.h <<_ACEOF
26041#define DEV_RANDOM "$apr_devrandom"
26042_ACEOF
26043
26044    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_devrandom" >&5
26045$as_echo "$apr_devrandom" >&6; }
26046  fi
26047fi
26048
26049if test "$rand" != "1"; then
26050    case $host in
26051        # we have built in support for OS/2
26052        *-os2*)
26053            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OS/2 builtin random" >&5
26054$as_echo "Using OS/2 builtin random" >&6; }
26055            rand="1"
26056            ;;
26057        *)
26058            if test "$rand" != "1"; then
26059              if test "$ac_cv_lib_truerand_main" = "yes"; then
26060
26061$as_echo "#define HAVE_TRUERAND 1" >>confdefs.h
26062
26063                { $as_echo "$as_me:${as_lineno-$LINENO}: result: truerand" >&5
26064$as_echo "truerand" >&6; }
26065                rand="1"
26066              else
26067                { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found$why_no_rand" >&5
26068$as_echo "not found$why_no_rand" >&6; }
26069                rand="0"
26070              fi
26071            fi
26072            ;;
26073    esac
26074fi
26075
26076
26077
26078echo "${nl}Checking for File Info Support..."
26079ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "
26080#ifdef HAVE_SYS_TYPES_H
26081#include <sys/types.h>
26082#endif
26083#ifdef HAVE_SYS_STAT_H
26084#include <sys/stat.h>
26085#endif
26086#ifdef HAVE_UNISTD_H
26087#include <unistd.h>
26088#endif
26089"
26090if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26091
26092cat >>confdefs.h <<_ACEOF
26093#define HAVE_STRUCT_STAT_ST_BLOCKS 1
26094_ACEOF
26095
26096
26097fi
26098ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "
26099#ifdef HAVE_SYS_TYPES_H
26100#include <sys/types.h>
26101#endif
26102#ifdef HAVE_SYS_STAT_H
26103#include <sys/stat.h>
26104#endif
26105#ifdef HAVE_UNISTD_H
26106#include <unistd.h>
26107#endif
26108"
26109if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
26110
26111cat >>confdefs.h <<_ACEOF
26112#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
26113_ACEOF
26114
26115
26116fi
26117ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "
26118#ifdef HAVE_SYS_TYPES_H
26119#include <sys/types.h>
26120#endif
26121#ifdef HAVE_SYS_STAT_H
26122#include <sys/stat.h>
26123#endif
26124#ifdef HAVE_UNISTD_H
26125#include <unistd.h>
26126#endif
26127"
26128if test "x$ac_cv_member_struct_stat_st_ctimensec" = xyes; then :
26129
26130cat >>confdefs.h <<_ACEOF
26131#define HAVE_STRUCT_STAT_ST_CTIMENSEC 1
26132_ACEOF
26133
26134
26135fi
26136ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "
26137#ifdef HAVE_SYS_TYPES_H
26138#include <sys/types.h>
26139#endif
26140#ifdef HAVE_SYS_STAT_H
26141#include <sys/stat.h>
26142#endif
26143#ifdef HAVE_UNISTD_H
26144#include <unistd.h>
26145#endif
26146"
26147if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
26148
26149cat >>confdefs.h <<_ACEOF
26150#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
26151_ACEOF
26152
26153
26154fi
26155ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "
26156#ifdef HAVE_SYS_TYPES_H
26157#include <sys/types.h>
26158#endif
26159#ifdef HAVE_SYS_STAT_H
26160#include <sys/stat.h>
26161#endif
26162#ifdef HAVE_UNISTD_H
26163#include <unistd.h>
26164#endif
26165"
26166if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
26167
26168cat >>confdefs.h <<_ACEOF
26169#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
26170_ACEOF
26171
26172
26173fi
26174ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim.tv_nsec" "ac_cv_member_struct_stat_st_ctim_tv_nsec" "
26175#ifdef HAVE_SYS_TYPES_H
26176#include <sys/types.h>
26177#endif
26178#ifdef HAVE_SYS_STAT_H
26179#include <sys/stat.h>
26180#endif
26181#ifdef HAVE_UNISTD_H
26182#include <unistd.h>
26183#endif
26184"
26185if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = xyes; then :
26186
26187cat >>confdefs.h <<_ACEOF
26188#define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1
26189_ACEOF
26190
26191
26192fi
26193ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "
26194#ifdef HAVE_SYS_TYPES_H
26195#include <sys/types.h>
26196#endif
26197#ifdef HAVE_SYS_STAT_H
26198#include <sys/stat.h>
26199#endif
26200#ifdef HAVE_UNISTD_H
26201#include <unistd.h>
26202#endif
26203"
26204if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
26205
26206cat >>confdefs.h <<_ACEOF
26207#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
26208_ACEOF
26209
26210
26211fi
26212ac_fn_c_check_member "$LINENO" "struct stat" "st_atime_n" "ac_cv_member_struct_stat_st_atime_n" "
26213#ifdef HAVE_SYS_TYPES_H
26214#include <sys/types.h>
26215#endif
26216#ifdef HAVE_SYS_STAT_H
26217#include <sys/stat.h>
26218#endif
26219#ifdef HAVE_UNISTD_H
26220#include <unistd.h>
26221#endif
26222"
26223if test "x$ac_cv_member_struct_stat_st_atime_n" = xyes; then :
26224
26225cat >>confdefs.h <<_ACEOF
26226#define HAVE_STRUCT_STAT_ST_ATIME_N 1
26227_ACEOF
26228
26229
26230fi
26231ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime_n" "ac_cv_member_struct_stat_st_ctime_n" "
26232#ifdef HAVE_SYS_TYPES_H
26233#include <sys/types.h>
26234#endif
26235#ifdef HAVE_SYS_STAT_H
26236#include <sys/stat.h>
26237#endif
26238#ifdef HAVE_UNISTD_H
26239#include <unistd.h>
26240#endif
26241"
26242if test "x$ac_cv_member_struct_stat_st_ctime_n" = xyes; then :
26243
26244cat >>confdefs.h <<_ACEOF
26245#define HAVE_STRUCT_STAT_ST_CTIME_N 1
26246_ACEOF
26247
26248
26249fi
26250ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_n" "ac_cv_member_struct_stat_st_mtime_n" "
26251#ifdef HAVE_SYS_TYPES_H
26252#include <sys/types.h>
26253#endif
26254#ifdef HAVE_SYS_STAT_H
26255#include <sys/stat.h>
26256#endif
26257#ifdef HAVE_UNISTD_H
26258#include <unistd.h>
26259#endif
26260"
26261if test "x$ac_cv_member_struct_stat_st_mtime_n" = xyes; then :
26262
26263cat >>confdefs.h <<_ACEOF
26264#define HAVE_STRUCT_STAT_ST_MTIME_N 1
26265_ACEOF
26266
26267
26268fi
26269
26270
26271
26272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inode member of struct dirent" >&5
26273$as_echo_n "checking for inode member of struct dirent... " >&6; }
26274if ${apr_cv_dirent_inode+:} false; then :
26275  $as_echo_n "(cached) " >&6
26276else
26277
26278apr_cv_dirent_inode=no
26279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26280/* end confdefs.h.  */
26281
26282#include <sys/types.h>
26283#include <dirent.h>
26284
26285int
26286main ()
26287{
26288
26289#ifdef d_ino
26290#undef d_ino
26291#endif
26292struct dirent de; de.d_fileno;
26293
26294  ;
26295  return 0;
26296}
26297_ACEOF
26298if ac_fn_c_try_compile "$LINENO"; then :
26299  apr_cv_dirent_inode=d_fileno
26300fi
26301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26302if test "$apr_cv_dirent_inode" = "no"; then
26303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26304/* end confdefs.h.  */
26305
26306#include <sys/types.h>
26307#include <dirent.h>
26308
26309int
26310main ()
26311{
26312
26313#ifdef d_fileno
26314#undef d_fileno
26315#endif
26316struct dirent de; de.d_ino;
26317
26318  ;
26319  return 0;
26320}
26321_ACEOF
26322if ac_fn_c_try_compile "$LINENO"; then :
26323  apr_cv_dirent_inode=d_ino
26324fi
26325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26326fi
26327
26328fi
26329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_inode" >&5
26330$as_echo "$apr_cv_dirent_inode" >&6; }
26331if test "$apr_cv_dirent_inode" != "no"; then
26332
26333cat >>confdefs.h <<_ACEOF
26334#define DIRENT_INODE $apr_cv_dirent_inode
26335_ACEOF
26336
26337fi
26338
26339
26340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file type member of struct dirent" >&5
26341$as_echo_n "checking for file type member of struct dirent... " >&6; }
26342if ${apr_cv_dirent_type+:} false; then :
26343  $as_echo_n "(cached) " >&6
26344else
26345
26346apr_cv_dirent_type=no
26347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26348/* end confdefs.h.  */
26349
26350#include <sys/types.h>
26351#include <dirent.h>
26352
26353int
26354main ()
26355{
26356
26357struct dirent de; de.d_type = DT_REG;
26358
26359  ;
26360  return 0;
26361}
26362_ACEOF
26363if ac_fn_c_try_compile "$LINENO"; then :
26364  apr_cv_dirent_type=d_type
26365fi
26366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26367
26368fi
26369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_type" >&5
26370$as_echo "$apr_cv_dirent_type" >&6; }
26371if test "$apr_cv_dirent_type" != "no"; then
26372
26373cat >>confdefs.h <<_ACEOF
26374#define DIRENT_TYPE $apr_cv_dirent_type
26375_ACEOF
26376
26377fi
26378
26379
26380echo "${nl}Checking for OS UUID Support..."
26381
26382for ac_header in uuid.h uuid/uuid.h sys/uuid.h
26383do :
26384  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26385ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26386if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26387  cat >>confdefs.h <<_ACEOF
26388#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26389_ACEOF
26390 break
26391fi
26392
26393done
26394
26395
26396apr_revert_save_LIBS=$LIBS
26397
26398# Prefer the flavor(s) that live in libc;
26399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
26400$as_echo_n "checking for library containing uuid_create... " >&6; }
26401if ${ac_cv_search_uuid_create+:} false; then :
26402  $as_echo_n "(cached) " >&6
26403else
26404  ac_func_search_save_LIBS=$LIBS
26405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26406/* end confdefs.h.  */
26407
26408/* Override any GCC internal prototype to avoid an error.
26409   Use char because int might match the return type of a GCC
26410   builtin and then its argument prototype would still apply.  */
26411#ifdef __cplusplus
26412extern "C"
26413#endif
26414char uuid_create ();
26415int
26416main ()
26417{
26418return uuid_create ();
26419  ;
26420  return 0;
26421}
26422_ACEOF
26423for ac_lib in '' uuid; do
26424  if test -z "$ac_lib"; then
26425    ac_res="none required"
26426  else
26427    ac_res=-l$ac_lib
26428    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26429  fi
26430  if ac_fn_c_try_link "$LINENO"; then :
26431  ac_cv_search_uuid_create=$ac_res
26432fi
26433rm -f core conftest.err conftest.$ac_objext \
26434    conftest$ac_exeext
26435  if ${ac_cv_search_uuid_create+:} false; then :
26436  break
26437fi
26438done
26439if ${ac_cv_search_uuid_create+:} false; then :
26440
26441else
26442  ac_cv_search_uuid_create=no
26443fi
26444rm conftest.$ac_ext
26445LIBS=$ac_func_search_save_LIBS
26446fi
26447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5
26448$as_echo "$ac_cv_search_uuid_create" >&6; }
26449ac_res=$ac_cv_search_uuid_create
26450if test "$ac_res" != no; then :
26451  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26452
26453fi
26454
26455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
26456$as_echo_n "checking for library containing uuid_generate... " >&6; }
26457if ${ac_cv_search_uuid_generate+:} false; then :
26458  $as_echo_n "(cached) " >&6
26459else
26460  ac_func_search_save_LIBS=$LIBS
26461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26462/* end confdefs.h.  */
26463
26464/* Override any GCC internal prototype to avoid an error.
26465   Use char because int might match the return type of a GCC
26466   builtin and then its argument prototype would still apply.  */
26467#ifdef __cplusplus
26468extern "C"
26469#endif
26470char uuid_generate ();
26471int
26472main ()
26473{
26474return uuid_generate ();
26475  ;
26476  return 0;
26477}
26478_ACEOF
26479for ac_lib in '' uuid; do
26480  if test -z "$ac_lib"; then
26481    ac_res="none required"
26482  else
26483    ac_res=-l$ac_lib
26484    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26485  fi
26486  if ac_fn_c_try_link "$LINENO"; then :
26487  ac_cv_search_uuid_generate=$ac_res
26488fi
26489rm -f core conftest.err conftest.$ac_objext \
26490    conftest$ac_exeext
26491  if ${ac_cv_search_uuid_generate+:} false; then :
26492  break
26493fi
26494done
26495if ${ac_cv_search_uuid_generate+:} false; then :
26496
26497else
26498  ac_cv_search_uuid_generate=no
26499fi
26500rm conftest.$ac_ext
26501LIBS=$ac_func_search_save_LIBS
26502fi
26503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
26504$as_echo "$ac_cv_search_uuid_generate" >&6; }
26505ac_res=$ac_cv_search_uuid_generate
26506if test "$ac_res" != no; then :
26507  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26508
26509fi
26510
26511if test "$ac_cv_search_uuid_create" = "none required" -o \
26512        "$ac_cv_search_uuid_generate" = "none required"; then
26513 LIBS=$apr_revert_save_LIBS
26514fi
26515
26516for ac_func in uuid_create uuid_generate
26517do :
26518  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26519ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26520if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26521  cat >>confdefs.h <<_ACEOF
26522#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26523_ACEOF
26524
26525fi
26526done
26527
26528
26529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for os uuid usability" >&5
26530$as_echo_n "checking for os uuid usability... " >&6; }
26531if ${apr_cv_osuuid+:} false; then :
26532  $as_echo_n "(cached) " >&6
26533else
26534
26535# Ensure this test closely mirrors misc/unix/rand.c!
26536uuid_includes="
26537#if defined(HAVE_SYS_TYPES_H)
26538#include <sys/types.h>
26539#endif
26540#if defined(HAVE_UNISTD_H)
26541#include <unistd.h>
26542#endif
26543#if defined(HAVE_UUID_H)
26544#include <uuid.h>
26545#elif defined(HAVE_UUID_UUID_H)
26546#include <uuid/uuid.h>
26547#elif defined(HAVE_SYS_UUID_H)
26548#include <sys/uuid.h>
26549#endif
26550"
26551 apr_cv_osuuid=no
26552 if test $ac_cv_func_uuid_create = yes; then
26553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26554/* end confdefs.h.  */
26555$uuid_includes
26556int
26557main ()
26558{
26559
26560    uuid_t g;
26561    uint32_t s;
26562    uuid_create(&g, &s);
26563    if (s == uuid_s_ok) s = 0;
26564
26565  ;
26566  return 0;
26567}
26568_ACEOF
26569if ac_fn_c_try_link "$LINENO"; then :
26570  apr_cv_osuuid=yes
26571else
26572  apr_cv_func_uuid_create=no
26573fi
26574rm -f core conftest.err conftest.$ac_objext \
26575    conftest$ac_exeext conftest.$ac_ext
26576 fi
26577 if test $ac_cv_func_uuid_generate = yes; then
26578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26579/* end confdefs.h.  */
26580$uuid_includes
26581int
26582main ()
26583{
26584
26585    uuid_t g;
26586    uuid_generate(g);
26587
26588  ;
26589  return 0;
26590}
26591_ACEOF
26592if ac_fn_c_try_link "$LINENO"; then :
26593  apr_cv_osuuid=yes
26594else
26595  apr_cv_func_uuid_generate=no
26596fi
26597rm -f core conftest.err conftest.$ac_objext \
26598    conftest$ac_exeext conftest.$ac_ext
26599 fi
26600
26601fi
26602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_osuuid" >&5
26603$as_echo "$apr_cv_osuuid" >&6; }
26604
26605if test $apr_cv_osuuid = yes; then
26606  osuuid="1"
26607else
26608  osuuid="0"
26609  LIBS=$apr_revert_save_LIBS
26610fi
26611
26612
26613
26614echo "${nl}Checking for Time Support..."
26615
26616ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "
26617#include <sys/types.h>
26618#include <time.h>
26619"
26620if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
26621
26622cat >>confdefs.h <<_ACEOF
26623#define HAVE_STRUCT_TM_TM_GMTOFF 1
26624_ACEOF
26625
26626
26627fi
26628ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "
26629#include <sys/types.h>
26630#include <time.h>
26631"
26632if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then :
26633
26634cat >>confdefs.h <<_ACEOF
26635#define HAVE_STRUCT_TM___TM_GMTOFF 1
26636_ACEOF
26637
26638
26639fi
26640
26641
26642echo "${nl}Checking for Networking support..."
26643
26644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type in_addr" >&5
26645$as_echo_n "checking for type in_addr... " >&6; }
26646if ${ac_cv_type_in_addr+:} false; then :
26647  $as_echo_n "(cached) " >&6
26648else
26649
26650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26651/* end confdefs.h.  */
26652
26653#ifdef HAVE_SYS_TYPES_H
26654#include <sys/types.h>
26655#endif
26656#ifdef HAVE_NETINET_IN_H
26657#include <netinet/in.h>
26658#endif
26659#ifdef HAVE_WINSOCK2_H
26660#include <winsock2.h>
26661#endif
26662
26663int
26664main ()
26665{
26666
26667 struct in_addr arg;
26668 arg.s_addr = htonl(INADDR_ANY);
26669
26670  ;
26671  return 0;
26672}
26673_ACEOF
26674if ac_fn_c_try_compile "$LINENO"; then :
26675   ac_cv_type_in_addr="yes"
26676else
26677
26678ac_cv_type_in_addr="no"
26679fi
26680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26681
26682fi
26683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_in_addr" >&5
26684$as_echo "$ac_cv_type_in_addr" >&6; }
26685
26686if test "$ac_cv_type_in_addr" = "yes"; then
26687  have_in_addr="1"
26688else
26689  have_in_addr="0"
26690fi
26691
26692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fd == socket on this platform" >&5
26693$as_echo_n "checking if fd == socket on this platform... " >&6; }
26694if test "x$file_as_socket" != "x0" ; then
26695    file_as_socket="1";
26696    echo "yes"
26697else
26698    echo "no"
26699fi
26700
26701
26702
26703
26704if test "$ac_cv_func_poll $file_as_socket" = "yes 1"; then
26705
26706$as_echo "#define WAITIO_USES_POLL 1" >>confdefs.h
26707
26708fi
26709
26710# Check the types only if we have gethostbyname_r
26711if test "$ac_cv_func_gethostbyname_r" = "yes"; then
26712
26713
26714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking style of gethostbyname_r routine" >&5
26715$as_echo_n "checking style of gethostbyname_r routine... " >&6; }
26716if ${ac_cv_gethostbyname_r_style+:} false; then :
26717  $as_echo_n "(cached) " >&6
26718else
26719  apr_save_CFLAGS=$CFLAGS
26720 CFLAGS="$CFLAGS $CFLAGS_WARN"
26721 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26722   CFLAGS="$CFLAGS -Werror"
26723 fi
26724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26725/* end confdefs.h.  */
26726#include "confdefs.h"
26727
26728
26729#ifdef HAVE_SYS_TYPES_H
26730#include <sys/types.h>
26731#endif
26732#ifdef HAVE_NETINET_IN_H
26733#include <netinet/in.h>
26734#endif
26735#ifdef HAVE_ARPA_INET_H
26736#include <arpa/inet.h>
26737#endif
26738#ifdef HAVE_NETDB_H
26739#include <netdb.h>
26740#endif
26741#ifdef HAVE_STDLIB_H
26742#include <stdlib.h>
26743#endif
26744
26745   int main(int argc, const char *const *argv) {
26746
26747int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
26748                          (char *) 0, 0, (struct hostent **) 0, &tmp);
26749/* use tmp to suppress the warning */
26750tmp=0;
26751
26752      return 0; }
26753
26754_ACEOF
26755if ac_fn_c_try_compile "$LINENO"; then :
26756  ac_cv_gethostbyname_r_style=glibc2
26757else
26758  ac_cv_gethostbyname_r_style=none
26759fi
26760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26761 CFLAGS=$apr_save_CFLAGS
26762
26763fi
26764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_style" >&5
26765$as_echo "$ac_cv_gethostbyname_r_style" >&6; }
26766
26767if test "$ac_cv_gethostbyname_r_style" = "glibc2"; then
26768
26769$as_echo "#define GETHOSTBYNAME_R_GLIBC2 1" >>confdefs.h
26770
26771fi
26772
26773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking 3rd argument to the gethostbyname_r routines" >&5
26774$as_echo_n "checking 3rd argument to the gethostbyname_r routines... " >&6; }
26775if ${ac_cv_gethostbyname_r_arg+:} false; then :
26776  $as_echo_n "(cached) " >&6
26777else
26778  apr_save_CFLAGS=$CFLAGS
26779 CFLAGS="$CFLAGS $CFLAGS_WARN"
26780 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26781   CFLAGS="$CFLAGS -Werror"
26782 fi
26783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26784/* end confdefs.h.  */
26785#include "confdefs.h"
26786
26787
26788#ifdef HAVE_SYS_TYPES_H
26789#include <sys/types.h>
26790#endif
26791#ifdef HAVE_NETINET_IN_H
26792#include <netinet/in.h>
26793#endif
26794#ifdef HAVE_ARPA_INET_H
26795#include <arpa/inet.h>
26796#endif
26797#ifdef HAVE_NETDB_H
26798#include <netdb.h>
26799#endif
26800#ifdef HAVE_STDLIB_H
26801#include <stdlib.h>
26802#endif
26803
26804   int main(int argc, const char *const *argv) {
26805
26806int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
26807                          (struct hostent_data *) 0);
26808/* use tmp to suppress the warning */
26809tmp=0;
26810
26811      return 0; }
26812
26813_ACEOF
26814if ac_fn_c_try_compile "$LINENO"; then :
26815  ac_cv_gethostbyname_r_arg=hostent_data
26816else
26817  ac_cv_gethostbyname_r_arg=char
26818fi
26819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26820 CFLAGS=$apr_save_CFLAGS
26821
26822fi
26823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_arg" >&5
26824$as_echo "$ac_cv_gethostbyname_r_arg" >&6; }
26825
26826if test "$ac_cv_gethostbyname_r_arg" = "hostent_data"; then
26827
26828$as_echo "#define GETHOSTBYNAME_R_HOSTENT_DATA 1" >>confdefs.h
26829
26830fi
26831
26832fi
26833
26834# Check the types only if we have getservbyname_r
26835if test "$ac_cv_func_getservbyname_r" = "yes"; then
26836
26837
26838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking style of getservbyname_r routine" >&5
26839$as_echo_n "checking style of getservbyname_r routine... " >&6; }
26840if ${ac_cv_getservbyname_r_style+:} false; then :
26841  $as_echo_n "(cached) " >&6
26842else
26843
26844apr_save_CFLAGS=$CFLAGS
26845 CFLAGS="$CFLAGS $CFLAGS_WARN"
26846 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26847   CFLAGS="$CFLAGS -Werror"
26848 fi
26849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26850/* end confdefs.h.  */
26851#include "confdefs.h"
26852
26853
26854#ifdef HAVE_SYS_TYPES_H
26855#include <sys/types.h>
26856#endif
26857#ifdef HAVE_NETINET_IN_H
26858#include <netinet/in.h>
26859#endif
26860#ifdef HAVE_ARPA_INET_H
26861#include <arpa/inet.h>
26862#endif
26863#ifdef HAVE_NETDB_H
26864#include <netdb.h>
26865#endif
26866#ifdef HAVE_STDLIB_H
26867#include <stdlib.h>
26868#endif
26869
26870   int main(int argc, const char *const *argv) {
26871
26872int tmp = getservbyname_r((const char *) 0, (const char *) 0,
26873                          (struct servent *) 0, (char *) 0, 0,
26874                          (struct servent **) 0);
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_getservbyname_r_style=glibc2
26883else
26884  ac_cv_getservbyname_r_style=none
26885fi
26886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26887 CFLAGS=$apr_save_CFLAGS
26888
26889
26890if test "$ac_cv_getservbyname_r_style" = "none"; then
26891            apr_save_CFLAGS=$CFLAGS
26892 CFLAGS="$CFLAGS $CFLAGS_WARN"
26893 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26894   CFLAGS="$CFLAGS -Werror"
26895 fi
26896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26897/* end confdefs.h.  */
26898#include "confdefs.h"
26899
26900
26901    #ifdef HAVE_SYS_TYPES_H
26902    #include <sys/types.h>
26903    #endif
26904    #ifdef HAVE_NETINET_IN_H
26905    #include <netinet/in.h>
26906    #endif
26907    #ifdef HAVE_ARPA_INET_H
26908    #include <arpa/inet.h>
26909    #endif
26910    #ifdef HAVE_NETDB_H
26911    #include <netdb.h>
26912    #endif
26913    #ifdef HAVE_STDLIB_H
26914    #include <stdlib.h>
26915    #endif
26916
26917   int main(int argc, const char *const *argv) {
26918
26919    struct servent *tmp = getservbyname_r((const char *) 0, (const char *) 0,
26920                                          (struct servent *) 0, (char *) 0, 0);
26921    /* use tmp to suppress the warning */
26922    tmp=NULL;
26923
26924      return 0; }
26925
26926_ACEOF
26927if ac_fn_c_try_compile "$LINENO"; then :
26928  ac_cv_getservbyname_r_style=solaris
26929else
26930  ac_cv_getservbyname_r_style=none
26931fi
26932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26933 CFLAGS=$apr_save_CFLAGS
26934
26935fi
26936
26937if test "$ac_cv_getservbyname_r_style" = "none"; then
26938            apr_save_CFLAGS=$CFLAGS
26939 CFLAGS="$CFLAGS $CFLAGS_WARN"
26940 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26941   CFLAGS="$CFLAGS -Werror"
26942 fi
26943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26944/* end confdefs.h.  */
26945#include "confdefs.h"
26946
26947
26948    #ifdef HAVE_SYS_TYPES_H
26949    #include <sys/types.h>
26950    #endif
26951    #ifdef HAVE_NETINET_IN_H
26952    #include <netinet/in.h>
26953    #endif
26954    #ifdef HAVE_ARPA_INET_H
26955    #include <arpa/inet.h>
26956    #endif
26957    #ifdef HAVE_NETDB_H
26958    #include <netdb.h>
26959    #endif
26960    #ifdef HAVE_STDLIB_H
26961    #include <stdlib.h>
26962    #endif
26963
26964   int main(int argc, const char *const *argv) {
26965
26966    int tmp = getservbyname_r((const char *) 0, (const char *) 0,
26967                              (struct servent *) 0, (struct servent_data *) 0);
26968    /* use tmp to suppress the warning */
26969    tmp=0;
26970
26971      return 0; }
26972
26973_ACEOF
26974if ac_fn_c_try_compile "$LINENO"; then :
26975  ac_cv_getservbyname_r_style=osf1
26976else
26977  ac_cv_getservbyname_r_style=none
26978fi
26979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26980 CFLAGS=$apr_save_CFLAGS
26981
26982fi
26983
26984fi
26985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_getservbyname_r_style" >&5
26986$as_echo "$ac_cv_getservbyname_r_style" >&6; }
26987
26988if test "$ac_cv_getservbyname_r_style" = "glibc2"; then
26989
26990$as_echo "#define GETSERVBYNAME_R_GLIBC2 1" >>confdefs.h
26991
26992elif test "$ac_cv_getservbyname_r_style" = "solaris"; then
26993
26994$as_echo "#define GETSERVBYNAME_R_SOLARIS 1" >>confdefs.h
26995
26996elif test "$ac_cv_getservbyname_r_style" = "osf1"; then
26997
26998$as_echo "#define GETSERVBYNAME_R_OSF1 1" >>confdefs.h
26999
27000fi
27001
27002fi
27003
27004
27005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TCP_NODELAY setting is inherited from listening sockets" >&5
27006$as_echo_n "checking if TCP_NODELAY setting is inherited from listening sockets... " >&6; }
27007if ${ac_cv_tcp_nodelay_inherited+:} false; then :
27008  $as_echo_n "(cached) " >&6
27009else
27010
27011  if test "$cross_compiling" = yes; then :
27012
27013    ac_cv_tcp_nodelay_inherited="yes"
27014
27015else
27016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27017/* end confdefs.h.  */
27018
27019#include <stdio.h>
27020#ifdef HAVE_SYS_TYPES_H
27021#include <sys/types.h>
27022#endif
27023#ifdef HAVE_SYS_SOCKET_H
27024#include <sys/socket.h>
27025#endif
27026#ifdef HAVE_NETINET_IN_H
27027#include <netinet/in.h>
27028#endif
27029#ifdef HAVE_NETINET_TCP_H
27030#include <netinet/tcp.h>
27031#endif
27032#ifndef HAVE_SOCKLEN_T
27033typedef int socklen_t;
27034#endif
27035int main(void) {
27036    int listen_s, connected_s, client_s;
27037    int listen_port, rc;
27038    struct sockaddr_in sa;
27039    socklen_t sa_len;
27040    socklen_t option_len;
27041    int option;
27042
27043    listen_s = socket(AF_INET, SOCK_STREAM, 0);
27044    if (listen_s < 0) {
27045        perror("socket");
27046        exit(1);
27047    }
27048    option = 1;
27049    rc = setsockopt(listen_s, IPPROTO_TCP, TCP_NODELAY, &option, sizeof option);
27050    if (rc < 0) {
27051        perror("setsockopt TCP_NODELAY");
27052        exit(1);
27053    }
27054    memset(&sa, 0, sizeof sa);
27055    sa.sin_family = AF_INET;
27056#ifdef BEOS
27057    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27058#endif
27059    /* leave port 0 to get ephemeral */
27060    rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
27061    if (rc < 0) {
27062        perror("bind for ephemeral port");
27063        exit(1);
27064    }
27065    /* find ephemeral port */
27066    sa_len = sizeof(sa);
27067    rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
27068    if (rc < 0) {
27069        perror("getsockname");
27070        exit(1);
27071    }
27072    listen_port = sa.sin_port;
27073    rc = listen(listen_s, 5);
27074    if (rc < 0) {
27075        perror("listen");
27076        exit(1);
27077    }
27078    client_s = socket(AF_INET, SOCK_STREAM, 0);
27079    if (client_s < 0) {
27080        perror("socket");
27081        exit(1);
27082    }
27083    memset(&sa, 0, sizeof sa);
27084    sa.sin_family = AF_INET;
27085    sa.sin_port   = listen_port;
27086#ifdef BEOS
27087    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27088#endif
27089    /* leave sin_addr all zeros to use loopback */
27090    rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
27091    if (rc < 0) {
27092        perror("connect");
27093        exit(1);
27094    }
27095    sa_len = sizeof sa;
27096    connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
27097    if (connected_s < 0) {
27098        perror("accept");
27099        exit(1);
27100    }
27101    option_len = sizeof option;
27102    rc = getsockopt(connected_s, IPPROTO_TCP, TCP_NODELAY, &option, &option_len);
27103    if (rc < 0) {
27104        perror("getsockopt");
27105        exit(1);
27106    }
27107    if (!option) {
27108        fprintf(stderr, "TCP_NODELAY is not set in the child.\n");
27109        exit(1);
27110    }
27111    return 0;
27112}
27113
27114_ACEOF
27115if ac_fn_c_try_run "$LINENO"; then :
27116
27117    ac_cv_tcp_nodelay_inherited="yes"
27118
27119else
27120
27121    ac_cv_tcp_nodelay_inherited="no"
27122
27123fi
27124rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27125  conftest.$ac_objext conftest.beam conftest.$ac_ext
27126fi
27127
27128fi
27129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tcp_nodelay_inherited" >&5
27130$as_echo "$ac_cv_tcp_nodelay_inherited" >&6; }
27131if test "$ac_cv_tcp_nodelay_inherited" = "yes"; then
27132    tcp_nodelay_inherited=1
27133else
27134    tcp_nodelay_inherited=0
27135fi
27136
27137
27138  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if O_NONBLOCK setting is inherited from listening sockets" >&5
27139$as_echo_n "checking if O_NONBLOCK setting is inherited from listening sockets... " >&6; }
27140if ${ac_cv_o_nonblock_inherited+:} false; then :
27141  $as_echo_n "(cached) " >&6
27142else
27143
27144  if test "$cross_compiling" = yes; then :
27145
27146    ac_cv_o_nonblock_inherited="yes"
27147
27148else
27149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27150/* end confdefs.h.  */
27151
27152#include <stdio.h>
27153#ifdef HAVE_SYS_TYPES_H
27154#include <sys/types.h>
27155#endif
27156#ifdef HAVE_SYS_SOCKET_H
27157#include <sys/socket.h>
27158#endif
27159#ifdef HAVE_NETINET_IN_H
27160#include <netinet/in.h>
27161#endif
27162#ifdef HAVE_NETINET_TCP_H
27163#include <netinet/tcp.h>
27164#endif
27165#ifndef HAVE_SOCKLEN_T
27166typedef int socklen_t;
27167#endif
27168#ifdef HAVE_FCNTL_H
27169#include <fcntl.h>
27170#endif
27171int main(void) {
27172    int listen_s, connected_s, client_s;
27173    int listen_port, rc;
27174    struct sockaddr_in sa;
27175    socklen_t sa_len;
27176
27177    listen_s = socket(AF_INET, SOCK_STREAM, 0);
27178    if (listen_s < 0) {
27179        perror("socket");
27180        exit(1);
27181    }
27182    memset(&sa, 0, sizeof sa);
27183    sa.sin_family = AF_INET;
27184#ifdef BEOS
27185    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27186#endif
27187    /* leave port 0 to get ephemeral */
27188    rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
27189    if (rc < 0) {
27190        perror("bind for ephemeral port");
27191        exit(1);
27192    }
27193    /* find ephemeral port */
27194    sa_len = sizeof(sa);
27195    rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
27196    if (rc < 0) {
27197        perror("getsockname");
27198        exit(1);
27199    }
27200    listen_port = sa.sin_port;
27201    rc = listen(listen_s, 5);
27202    if (rc < 0) {
27203        perror("listen");
27204        exit(1);
27205    }
27206    rc = fcntl(listen_s, F_SETFL, O_NONBLOCK);
27207    if (rc < 0) {
27208        perror("fcntl(F_SETFL)");
27209        exit(1);
27210    }
27211    client_s = socket(AF_INET, SOCK_STREAM, 0);
27212    if (client_s < 0) {
27213        perror("socket");
27214        exit(1);
27215    }
27216    memset(&sa, 0, sizeof sa);
27217    sa.sin_family = AF_INET;
27218    sa.sin_port   = listen_port;
27219#ifdef BEOS
27220    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27221#endif
27222    /* leave sin_addr all zeros to use loopback */
27223    rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
27224    if (rc < 0) {
27225        perror("connect");
27226        exit(1);
27227    }
27228    sa_len = sizeof sa;
27229    connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
27230    if (connected_s < 0) {
27231        perror("accept");
27232        exit(1);
27233    }
27234    rc = fcntl(connected_s, F_GETFL, 0);
27235    if (rc < 0) {
27236        perror("fcntl(F_GETFL)");
27237        exit(1);
27238    }
27239    if (!(rc & O_NONBLOCK)) {
27240        fprintf(stderr, "O_NONBLOCK is not set in the child.\n");
27241        exit(1);
27242    }
27243    return 0;
27244}
27245
27246_ACEOF
27247if ac_fn_c_try_run "$LINENO"; then :
27248
27249    ac_cv_o_nonblock_inherited="yes"
27250
27251else
27252
27253    ac_cv_o_nonblock_inherited="no"
27254
27255fi
27256rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27257  conftest.$ac_objext conftest.beam conftest.$ac_ext
27258fi
27259
27260fi
27261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_nonblock_inherited" >&5
27262$as_echo "$ac_cv_o_nonblock_inherited" >&6; }
27263if test "$ac_cv_o_nonblock_inherited" = "yes"; then
27264    o_nonblock_inherited=1
27265else
27266    o_nonblock_inherited=0
27267fi
27268
27269
27270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCP_NODELAY and TCP_CORK can both be enabled" >&5
27271$as_echo_n "checking whether TCP_NODELAY and TCP_CORK can both be enabled... " >&6; }
27272if ${apr_cv_tcp_nodelay_with_cork+:} false; then :
27273  $as_echo_n "(cached) " >&6
27274else
27275  if test "$cross_compiling" = yes; then :
27276  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27278as_fn_error $? "cannot run test program while cross compiling
27279See \`config.log' for more details" "$LINENO" 5; }
27280else
27281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27282/* end confdefs.h.  */
27283
27284#ifdef HAVE_SYS_TYPES_H
27285#include <sys/types.h>
27286#endif
27287#ifdef HAVE_SYS_SOCKET_H
27288#include <sys/socket.h>
27289#endif
27290#ifdef HAVE_NETINET_IN_H
27291#include <netinet/in.h>
27292#endif
27293#ifdef HAVE_NETINET_TCP_H
27294#include <netinet/tcp.h>
27295#endif
27296#include <stdio.h>
27297#include <stdlib.h>
27298
27299int
27300main ()
27301{
27302
27303    int fd, flag, rc;
27304
27305    fd = socket(AF_INET, SOCK_STREAM, 0);
27306    if (fd < 0) {
27307       exit(1);
27308    }
27309
27310    flag = 1;
27311    rc = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &flag, sizeof flag);
27312    if (rc < 0) {
27313        perror("setsockopt TCP_NODELAY");
27314        exit(2);
27315    }
27316
27317    flag = 1;
27318    rc = setsockopt(fd, IPPROTO_TCP, TCP_CORK, &flag, sizeof flag);
27319    if (rc < 0) {
27320        perror("setsockopt TCP_CORK");
27321        exit(3);
27322    }
27323
27324    exit(0);
27325
27326  ;
27327  return 0;
27328}
27329_ACEOF
27330if ac_fn_c_try_run "$LINENO"; then :
27331  apr_cv_tcp_nodelay_with_cork=yes
27332else
27333  apr_cv_tcp_nodelay_with_cork=no
27334fi
27335rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27336  conftest.$ac_objext conftest.beam conftest.$ac_ext
27337fi
27338
27339fi
27340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_tcp_nodelay_with_cork" >&5
27341$as_echo "$apr_cv_tcp_nodelay_with_cork" >&6; }
27342
27343if test "$apr_cv_tcp_nodelay_with_cork" = "yes"; then
27344
27345$as_echo "#define HAVE_TCP_NODELAY_WITH_CORK 1" >>confdefs.h
27346
27347fi
27348
27349
27350# Look for a way of corking TCP...
27351
27352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_CORK in netinet/tcp.h" >&5
27353$as_echo_n "checking for TCP_CORK in netinet/tcp.h... " >&6; }
27354if ${ac_cv_define_TCP_CORK+:} false; then :
27355  $as_echo_n "(cached) " >&6
27356else
27357
27358    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27359/* end confdefs.h.  */
27360
27361#include <netinet/tcp.h>
27362#ifdef TCP_CORK
27363YES_IS_DEFINED
27364#endif
27365
27366_ACEOF
27367if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27368  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
27369  ac_cv_define_TCP_CORK=yes
27370else
27371  ac_cv_define_TCP_CORK=no
27372fi
27373rm -f conftest*
27374
27375
27376fi
27377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_CORK" >&5
27378$as_echo "$ac_cv_define_TCP_CORK" >&6; }
27379  if test "$ac_cv_define_TCP_CORK" = "yes"; then
27380
27381$as_echo "#define HAVE_TCP_CORK 1" >>confdefs.h
27382
27383  fi
27384
27385
27386  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_NOPUSH in netinet/tcp.h" >&5
27387$as_echo_n "checking for TCP_NOPUSH in netinet/tcp.h... " >&6; }
27388if ${ac_cv_define_TCP_NOPUSH+:} false; then :
27389  $as_echo_n "(cached) " >&6
27390else
27391
27392    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27393/* end confdefs.h.  */
27394
27395#include <netinet/tcp.h>
27396#ifdef TCP_NOPUSH
27397YES_IS_DEFINED
27398#endif
27399
27400_ACEOF
27401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27402  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
27403  ac_cv_define_TCP_NOPUSH=yes
27404else
27405  ac_cv_define_TCP_NOPUSH=no
27406fi
27407rm -f conftest*
27408
27409
27410fi
27411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_NOPUSH" >&5
27412$as_echo "$ac_cv_define_TCP_NOPUSH" >&6; }
27413  if test "$ac_cv_define_TCP_NOPUSH" = "yes"; then
27414
27415$as_echo "#define HAVE_TCP_NOPUSH 1" >>confdefs.h
27416
27417  fi
27418
27419apr_tcp_nopush_flag="0"
27420have_corkable_tcp="0"
27421if test "x$ac_cv_define_TCP_CORK" = "xyes"; then
27422    apr_tcp_nopush_flag="TCP_CORK"
27423    have_corkable_tcp="1"
27424else
27425    case $host in
27426        *linux*)
27427            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27428/* end confdefs.h.  */
27429
27430#include <linux/socket.h>
27431#ifdef TCP_CORK
27432yes
27433#endif
27434
27435_ACEOF
27436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27437  $EGREP "yes" >/dev/null 2>&1; then :
27438
27439                apr_tcp_nopush_flag="3"
27440                have_corkable_tcp="1"
27441
27442fi
27443rm -f conftest*
27444
27445            ;;
27446        *)
27447            ;;
27448    esac
27449fi
27450if test "x$ac_cv_define_TCP_NOPUSH" = "xyes"; then
27451    apr_tcp_nopush_flag="TCP_NOPUSH"
27452    have_corkable_tcp="1"
27453fi
27454
27455
27456  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_ACCEPTFILTER in sys/socket.h" >&5
27457$as_echo_n "checking for SO_ACCEPTFILTER in sys/socket.h... " >&6; }
27458if ${ac_cv_define_SO_ACCEPTFILTER+:} false; then :
27459  $as_echo_n "(cached) " >&6
27460else
27461
27462    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27463/* end confdefs.h.  */
27464
27465#include <sys/socket.h>
27466#ifdef SO_ACCEPTFILTER
27467YES_IS_DEFINED
27468#endif
27469
27470_ACEOF
27471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27472  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
27473  ac_cv_define_SO_ACCEPTFILTER=yes
27474else
27475  ac_cv_define_SO_ACCEPTFILTER=no
27476fi
27477rm -f conftest*
27478
27479
27480fi
27481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SO_ACCEPTFILTER" >&5
27482$as_echo "$ac_cv_define_SO_ACCEPTFILTER" >&6; }
27483  if test "$ac_cv_define_SO_ACCEPTFILTER" = "yes"; then
27484
27485$as_echo "#define HAVE_SO_ACCEPTFILTER 1" >>confdefs.h
27486
27487  fi
27488
27489if test "x$ac_cv_define_SO_ACCEPTFILTER" = "xyes"; then
27490    acceptfilter="1"
27491else
27492    acceptfilter="0"
27493fi
27494
27495
27496  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SCTP is supported" >&5
27497$as_echo_n "checking whether SCTP is supported... " >&6; }
27498if ${apr_cv_sctp+:} false; then :
27499  $as_echo_n "(cached) " >&6
27500else
27501
27502  if test "$cross_compiling" = yes; then :
27503  apr_cv_sctp=no
27504else
27505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27506/* end confdefs.h.  */
27507
27508#ifdef HAVE_SYS_TYPES_H
27509#include <sys/types.h>
27510#endif
27511#ifdef HAVE_SYS_SOCKET_H
27512#include <sys/socket.h>
27513#endif
27514#ifdef HAVE_NETINET_IN_H
27515#include <netinet/in.h>
27516#endif
27517#ifdef HAVE_NETINET_SCTP_H
27518#include <netinet/sctp.h>
27519#endif
27520#ifdef HAVE_NETINET_SCTP_UIO_H
27521#include <netinet/sctp_uio.h>
27522#endif
27523#include <stdlib.h>
27524int main(void) {
27525    int s, opt = 1;
27526    if ((s = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP)) < 0)
27527       exit(1);
27528    if (setsockopt(s, IPPROTO_SCTP, SCTP_NODELAY, &opt, sizeof(int)) < 0)
27529       exit(2);
27530    exit(0);
27531}
27532_ACEOF
27533if ac_fn_c_try_run "$LINENO"; then :
27534  apr_cv_sctp=yes
27535else
27536  apr_cv_sctp=no
27537fi
27538rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27539  conftest.$ac_objext conftest.beam conftest.$ac_ext
27540fi
27541
27542fi
27543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sctp" >&5
27544$as_echo "$apr_cv_sctp" >&6; }
27545
27546if test "$apr_cv_sctp" = "yes"; then
27547    have_sctp=1
27548else
27549    have_sctp=0
27550fi
27551
27552
27553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip_mreq" >&5
27554$as_echo_n "checking for struct ip_mreq... " >&6; }
27555if ${apr_cv_struct_ipmreq+:} false; then :
27556  $as_echo_n "(cached) " >&6
27557else
27558
27559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27560/* end confdefs.h.  */
27561
27562#include <sys/types.h>
27563#include <netinet/in.h>
27564
27565int
27566main ()
27567{
27568
27569    struct ip_mreq mip;
27570    mip.imr_interface.s_addr = INADDR_ANY;
27571
27572  ;
27573  return 0;
27574}
27575_ACEOF
27576if ac_fn_c_try_compile "$LINENO"; then :
27577  apr_cv_struct_ipmreq=yes
27578else
27579  apr_cv_struct_ipmreq=no
27580fi
27581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27582fi
27583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_struct_ipmreq" >&5
27584$as_echo "$apr_cv_struct_ipmreq" >&6; }
27585
27586if test $apr_cv_struct_ipmreq = yes; then
27587
27588$as_echo "#define HAVE_STRUCT_IPMREQ 1" >>confdefs.h
27589
27590fi
27591
27592
27593
27594
27595
27596
27597
27598for ac_func in set_h_errno
27599do :
27600  ac_fn_c_check_func "$LINENO" "set_h_errno" "ac_cv_func_set_h_errno"
27601if test "x$ac_cv_func_set_h_errno" = xyes; then :
27602  cat >>confdefs.h <<_ACEOF
27603#define HAVE_SET_H_ERRNO 1
27604_ACEOF
27605
27606fi
27607done
27608
27609
27610echo "${nl}Checking for IPv6 Networking support..."
27611
27612# Check whether --enable-ipv6 was given.
27613if test "${enable_ipv6+set}" = set; then :
27614  enableval=$enable_ipv6;  if test "$enableval" = "no"; then
27615        user_disabled_ipv6=1
27616    fi
27617else
27618   user_disabled_ipv6=0
27619fi
27620
27621
27622case $host in
27623  *)
27624    broken_ipv6=0
27625esac
27626
27627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
27628$as_echo_n "checking for library containing getaddrinfo... " >&6; }
27629if ${ac_cv_search_getaddrinfo+:} false; then :
27630  $as_echo_n "(cached) " >&6
27631else
27632  ac_func_search_save_LIBS=$LIBS
27633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27634/* end confdefs.h.  */
27635
27636/* Override any GCC internal prototype to avoid an error.
27637   Use char because int might match the return type of a GCC
27638   builtin and then its argument prototype would still apply.  */
27639#ifdef __cplusplus
27640extern "C"
27641#endif
27642char getaddrinfo ();
27643int
27644main ()
27645{
27646return getaddrinfo ();
27647  ;
27648  return 0;
27649}
27650_ACEOF
27651for ac_lib in '' socket inet6; do
27652  if test -z "$ac_lib"; then
27653    ac_res="none required"
27654  else
27655    ac_res=-l$ac_lib
27656    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27657  fi
27658  if ac_fn_c_try_link "$LINENO"; then :
27659  ac_cv_search_getaddrinfo=$ac_res
27660fi
27661rm -f core conftest.err conftest.$ac_objext \
27662    conftest$ac_exeext
27663  if ${ac_cv_search_getaddrinfo+:} false; then :
27664  break
27665fi
27666done
27667if ${ac_cv_search_getaddrinfo+:} false; then :
27668
27669else
27670  ac_cv_search_getaddrinfo=no
27671fi
27672rm conftest.$ac_ext
27673LIBS=$ac_func_search_save_LIBS
27674fi
27675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
27676$as_echo "$ac_cv_search_getaddrinfo" >&6; }
27677ac_res=$ac_cv_search_getaddrinfo
27678if test "$ac_res" != no; then :
27679  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27680
27681fi
27682
27683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gai_strerror" >&5
27684$as_echo_n "checking for library containing gai_strerror... " >&6; }
27685if ${ac_cv_search_gai_strerror+:} false; then :
27686  $as_echo_n "(cached) " >&6
27687else
27688  ac_func_search_save_LIBS=$LIBS
27689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27690/* end confdefs.h.  */
27691
27692/* Override any GCC internal prototype to avoid an error.
27693   Use char because int might match the return type of a GCC
27694   builtin and then its argument prototype would still apply.  */
27695#ifdef __cplusplus
27696extern "C"
27697#endif
27698char gai_strerror ();
27699int
27700main ()
27701{
27702return gai_strerror ();
27703  ;
27704  return 0;
27705}
27706_ACEOF
27707for ac_lib in '' socket inet6; do
27708  if test -z "$ac_lib"; then
27709    ac_res="none required"
27710  else
27711    ac_res=-l$ac_lib
27712    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27713  fi
27714  if ac_fn_c_try_link "$LINENO"; then :
27715  ac_cv_search_gai_strerror=$ac_res
27716fi
27717rm -f core conftest.err conftest.$ac_objext \
27718    conftest$ac_exeext
27719  if ${ac_cv_search_gai_strerror+:} false; then :
27720  break
27721fi
27722done
27723if ${ac_cv_search_gai_strerror+:} false; then :
27724
27725else
27726  ac_cv_search_gai_strerror=no
27727fi
27728rm conftest.$ac_ext
27729LIBS=$ac_func_search_save_LIBS
27730fi
27731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gai_strerror" >&5
27732$as_echo "$ac_cv_search_gai_strerror" >&6; }
27733ac_res=$ac_cv_search_gai_strerror
27734if test "$ac_res" != no; then :
27735  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27736
27737fi
27738
27739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
27740$as_echo_n "checking for library containing getnameinfo... " >&6; }
27741if ${ac_cv_search_getnameinfo+:} false; then :
27742  $as_echo_n "(cached) " >&6
27743else
27744  ac_func_search_save_LIBS=$LIBS
27745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27746/* end confdefs.h.  */
27747
27748/* Override any GCC internal prototype to avoid an error.
27749   Use char because int might match the return type of a GCC
27750   builtin and then its argument prototype would still apply.  */
27751#ifdef __cplusplus
27752extern "C"
27753#endif
27754char getnameinfo ();
27755int
27756main ()
27757{
27758return getnameinfo ();
27759  ;
27760  return 0;
27761}
27762_ACEOF
27763for ac_lib in '' socket inet6; do
27764  if test -z "$ac_lib"; then
27765    ac_res="none required"
27766  else
27767    ac_res=-l$ac_lib
27768    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27769  fi
27770  if ac_fn_c_try_link "$LINENO"; then :
27771  ac_cv_search_getnameinfo=$ac_res
27772fi
27773rm -f core conftest.err conftest.$ac_objext \
27774    conftest$ac_exeext
27775  if ${ac_cv_search_getnameinfo+:} false; then :
27776  break
27777fi
27778done
27779if ${ac_cv_search_getnameinfo+:} false; then :
27780
27781else
27782  ac_cv_search_getnameinfo=no
27783fi
27784rm conftest.$ac_ext
27785LIBS=$ac_func_search_save_LIBS
27786fi
27787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
27788$as_echo "$ac_cv_search_getnameinfo" >&6; }
27789ac_res=$ac_cv_search_getnameinfo
27790if test "$ac_res" != no; then :
27791  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27792
27793fi
27794
27795for ac_func in gai_strerror
27796do :
27797  ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
27798if test "x$ac_cv_func_gai_strerror" = xyes; then :
27799  cat >>confdefs.h <<_ACEOF
27800#define HAVE_GAI_STRERROR 1
27801_ACEOF
27802
27803fi
27804done
27805
27806
27807  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
27808$as_echo_n "checking for working getaddrinfo... " >&6; }
27809if ${ac_cv_working_getaddrinfo+:} false; then :
27810  $as_echo_n "(cached) " >&6
27811else
27812
27813  if test "$cross_compiling" = yes; then :
27814
27815  ac_cv_working_getaddrinfo="yes"
27816
27817else
27818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27819/* end confdefs.h.  */
27820
27821#ifdef HAVE_NETDB_H
27822#include <netdb.h>
27823#endif
27824#ifdef HAVE_STRING_H
27825#include <string.h>
27826#endif
27827#ifdef HAVE_SYS_TYPES_H
27828#include <sys/types.h>
27829#endif
27830#ifdef HAVE_SYS_SOCKET_H
27831#include <sys/socket.h>
27832#endif
27833
27834void main(void) {
27835    struct addrinfo hints, *ai;
27836    int error;
27837
27838    memset(&hints, 0, sizeof(hints));
27839    hints.ai_family = AF_UNSPEC;
27840    hints.ai_socktype = SOCK_STREAM;
27841    error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
27842    if (error) {
27843        exit(1);
27844    }
27845    if (ai->ai_addr->sa_family != AF_INET) {
27846        exit(1);
27847    }
27848    exit(0);
27849}
27850
27851_ACEOF
27852if ac_fn_c_try_run "$LINENO"; then :
27853
27854  ac_cv_working_getaddrinfo="yes"
27855
27856else
27857
27858  ac_cv_working_getaddrinfo="no"
27859
27860fi
27861rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27862  conftest.$ac_objext conftest.beam conftest.$ac_ext
27863fi
27864
27865fi
27866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
27867$as_echo "$ac_cv_working_getaddrinfo" >&6; }
27868if test "$ac_cv_working_getaddrinfo" = "yes"; then
27869  if test "$ac_cv_func_gai_strerror" != "yes"; then
27870    ac_cv_working_getaddrinfo="no"
27871  else
27872
27873$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
27874
27875  fi
27876fi
27877
27878
27879  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for negative error codes for getaddrinfo" >&5
27880$as_echo_n "checking for negative error codes for getaddrinfo... " >&6; }
27881if ${ac_cv_negative_eai+:} false; then :
27882  $as_echo_n "(cached) " >&6
27883else
27884
27885  if test "$cross_compiling" = yes; then :
27886
27887  ac_cv_negative_eai="no"
27888
27889else
27890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27891/* end confdefs.h.  */
27892
27893#ifdef HAVE_NETDB_H
27894#include <netdb.h>
27895#endif
27896
27897void main(void) {
27898    if (EAI_ADDRFAMILY < 0) {
27899        exit(0);
27900    }
27901    exit(1);
27902}
27903
27904_ACEOF
27905if ac_fn_c_try_run "$LINENO"; then :
27906
27907  ac_cv_negative_eai="yes"
27908
27909else
27910
27911  ac_cv_negative_eai="no"
27912
27913fi
27914rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27915  conftest.$ac_objext conftest.beam conftest.$ac_ext
27916fi
27917
27918fi
27919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_negative_eai" >&5
27920$as_echo "$ac_cv_negative_eai" >&6; }
27921if test "$ac_cv_negative_eai" = "yes"; then
27922
27923$as_echo "#define NEGATIVE_EAI 1" >>confdefs.h
27924
27925fi
27926
27927
27928  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getnameinfo" >&5
27929$as_echo_n "checking for working getnameinfo... " >&6; }
27930if ${ac_cv_working_getnameinfo+:} false; then :
27931  $as_echo_n "(cached) " >&6
27932else
27933
27934  if test "$cross_compiling" = yes; then :
27935
27936  ac_cv_working_getnameinfo="yes"
27937
27938else
27939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27940/* end confdefs.h.  */
27941
27942#ifdef HAVE_NETDB_H
27943#include <netdb.h>
27944#endif
27945#ifdef HAVE_STRING_H
27946#include <string.h>
27947#endif
27948#ifdef HAVE_SYS_TYPES_H
27949#include <sys/types.h>
27950#endif
27951#ifdef HAVE_SYS_SOCKET_H
27952#include <sys/socket.h>
27953#endif
27954#ifdef HAVE_NETINET_IN_H
27955#include <netinet/in.h>
27956#endif
27957
27958void main(void) {
27959    struct sockaddr_in sa;
27960    char hbuf[256];
27961    int error;
27962
27963    sa.sin_family = AF_INET;
27964    sa.sin_port = 0;
27965    sa.sin_addr.s_addr = inet_addr("127.0.0.1");
27966#ifdef SIN6_LEN
27967    sa.sin_len = sizeof(sa);
27968#endif
27969
27970    error = getnameinfo((const struct sockaddr *)&sa, sizeof(sa),
27971                        hbuf, 256, NULL, 0,
27972                        NI_NUMERICHOST);
27973    if (error) {
27974        exit(1);
27975    } else {
27976        exit(0);
27977    }
27978}
27979
27980_ACEOF
27981if ac_fn_c_try_run "$LINENO"; then :
27982
27983  ac_cv_working_getnameinfo="yes"
27984
27985else
27986
27987  ac_cv_working_getnameinfo="no"
27988
27989fi
27990rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27991  conftest.$ac_objext conftest.beam conftest.$ac_ext
27992fi
27993
27994fi
27995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getnameinfo" >&5
27996$as_echo "$ac_cv_working_getnameinfo" >&6; }
27997if test "$ac_cv_working_getnameinfo" = "yes"; then
27998
27999$as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28000
28001fi
28002
28003
28004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6" >&5
28005$as_echo_n "checking for sockaddr_in6... " >&6; }
28006if ${ac_cv_define_sockaddr_in6+:} false; then :
28007  $as_echo_n "(cached) " >&6
28008else
28009
28010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28011/* end confdefs.h.  */
28012
28013#ifdef HAVE_SYS_TYPES_H
28014#include <sys/types.h>
28015#endif
28016#ifdef HAVE_NETINET_IN_H
28017#include <netinet/in.h>
28018#endif
28019
28020int
28021main ()
28022{
28023
28024struct sockaddr_in6 sa;
28025
28026  ;
28027  return 0;
28028}
28029_ACEOF
28030if ac_fn_c_try_compile "$LINENO"; then :
28031
28032    ac_cv_define_sockaddr_in6=yes
28033
28034else
28035
28036    ac_cv_define_sockaddr_in6=no
28037
28038fi
28039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28040
28041fi
28042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_sockaddr_in6" >&5
28043$as_echo "$ac_cv_define_sockaddr_in6" >&6; }
28044
28045if test "$ac_cv_define_sockaddr_in6" = "yes"; then
28046  have_sockaddr_in6=1
28047else
28048  have_sockaddr_in6=0
28049fi
28050
28051
28052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
28053$as_echo_n "checking for sockaddr_storage... " >&6; }
28054if ${apr_cv_define_sockaddr_storage+:} false; then :
28055  $as_echo_n "(cached) " >&6
28056else
28057
28058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28059/* end confdefs.h.  */
28060
28061#ifdef HAVE_SYS_TYPES_H
28062#include <sys/types.h>
28063#endif
28064#ifdef HAVE_NETINET_IN_H
28065#include <netinet/in.h>
28066#endif
28067
28068int
28069main ()
28070{
28071struct sockaddr_storage sa;
28072  ;
28073  return 0;
28074}
28075_ACEOF
28076if ac_fn_c_try_compile "$LINENO"; then :
28077  apr_cv_define_sockaddr_storage=yes
28078else
28079  apr_cv_define_sockaddr_storage=no
28080fi
28081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28082fi
28083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_sockaddr_storage" >&5
28084$as_echo "$apr_cv_define_sockaddr_storage" >&6; }
28085
28086if test "$apr_cv_define_sockaddr_storage" = "yes"; then
28087  have_sa_storage=1
28088else
28089  have_sa_storage=0
28090fi
28091
28092
28093
28094have_ipv6="0"
28095if test "$user_disabled_ipv6" = 1; then
28096    ipv6_result="no -- disabled by user"
28097else
28098    if test "x$broken_ipv6" = "x0"; then
28099        if test "x$have_sockaddr_in6" = "x1"; then
28100            if test "x$ac_cv_working_getaddrinfo" = "xyes"; then
28101                if test "x$ac_cv_working_getnameinfo" = "xyes"; then
28102
28103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working AI_ADDRCONFIG" >&5
28104$as_echo_n "checking for working AI_ADDRCONFIG... " >&6; }
28105if ${apr_cv_gai_addrconfig+:} false; then :
28106  $as_echo_n "(cached) " >&6
28107else
28108
28109  if test "$cross_compiling" = yes; then :
28110  apr_cv_gai_addrconfig=no
28111else
28112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28113/* end confdefs.h.  */
28114
28115#ifdef HAVE_NETDB_H
28116#include <netdb.h>
28117#endif
28118#ifdef HAVE_STRING_H
28119#include <string.h>
28120#endif
28121#ifdef HAVE_SYS_TYPES_H
28122#include <sys/types.h>
28123#endif
28124#ifdef HAVE_SYS_SOCKET_H
28125#include <sys/socket.h>
28126#endif
28127
28128int main(int argc, char **argv) {
28129    struct addrinfo hints, *ai;
28130
28131    memset(&hints, 0, sizeof(hints));
28132    hints.ai_family = AF_UNSPEC;
28133    hints.ai_socktype = SOCK_STREAM;
28134    hints.ai_flags = AI_ADDRCONFIG;
28135    return getaddrinfo("localhost", NULL, &hints, &ai) != 0;
28136}
28137_ACEOF
28138if ac_fn_c_try_run "$LINENO"; then :
28139  apr_cv_gai_addrconfig=yes
28140else
28141  apr_cv_gai_addrconfig=no
28142fi
28143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28144  conftest.$ac_objext conftest.beam conftest.$ac_ext
28145fi
28146
28147fi
28148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_gai_addrconfig" >&5
28149$as_echo "$apr_cv_gai_addrconfig" >&6; }
28150
28151if test $apr_cv_gai_addrconfig = yes; then
28152
28153$as_echo "#define HAVE_GAI_ADDRCONFIG 1" >>confdefs.h
28154
28155fi
28156
28157                    have_ipv6="1"
28158                    ipv6_result="yes"
28159                else
28160                    ipv6_result="no -- no getnameinfo"
28161                fi
28162            else
28163                ipv6_result="no -- no working getaddrinfo"
28164            fi
28165        else
28166            ipv6_result="no -- no sockaddr_in6"
28167        fi
28168    else
28169        ipv6_result="no -- the platform has known problems supporting IPv6"
28170    fi
28171fi
28172
28173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if APR supports IPv6" >&5
28174$as_echo_n "checking if APR supports IPv6... " >&6; }
28175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_result" >&5
28176$as_echo "$ipv6_result" >&6; }
28177
28178
28179
28180# hstrerror is only needed if IPv6 is not enabled,
28181# so getaddrinfo/gai_strerror are not used.
28182if test $have_ipv6 = 0; then
28183  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
28184$as_echo_n "checking for library containing hstrerror... " >&6; }
28185if ${ac_cv_search_hstrerror+:} false; then :
28186  $as_echo_n "(cached) " >&6
28187else
28188  ac_func_search_save_LIBS=$LIBS
28189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28190/* end confdefs.h.  */
28191
28192/* Override any GCC internal prototype to avoid an error.
28193   Use char because int might match the return type of a GCC
28194   builtin and then its argument prototype would still apply.  */
28195#ifdef __cplusplus
28196extern "C"
28197#endif
28198char hstrerror ();
28199int
28200main ()
28201{
28202return hstrerror ();
28203  ;
28204  return 0;
28205}
28206_ACEOF
28207for ac_lib in '' resolv; do
28208  if test -z "$ac_lib"; then
28209    ac_res="none required"
28210  else
28211    ac_res=-l$ac_lib
28212    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28213  fi
28214  if ac_fn_c_try_link "$LINENO"; then :
28215  ac_cv_search_hstrerror=$ac_res
28216fi
28217rm -f core conftest.err conftest.$ac_objext \
28218    conftest$ac_exeext
28219  if ${ac_cv_search_hstrerror+:} false; then :
28220  break
28221fi
28222done
28223if ${ac_cv_search_hstrerror+:} false; then :
28224
28225else
28226  ac_cv_search_hstrerror=no
28227fi
28228rm conftest.$ac_ext
28229LIBS=$ac_func_search_save_LIBS
28230fi
28231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
28232$as_echo "$ac_cv_search_hstrerror" >&6; }
28233ac_res=$ac_cv_search_hstrerror
28234if test "$ac_res" != no; then :
28235  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28236
28237$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
28238
28239fi
28240
28241fi
28242
28243
28244for ac_header in langinfo.h
28245do :
28246  ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
28247if test "x$ac_cv_header_langinfo_h" = xyes; then :
28248  cat >>confdefs.h <<_ACEOF
28249#define HAVE_LANGINFO_H 1
28250_ACEOF
28251
28252fi
28253
28254done
28255
28256for ac_func in nl_langinfo
28257do :
28258  ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
28259if test "x$ac_cv_func_nl_langinfo" = xyes; then :
28260  cat >>confdefs.h <<_ACEOF
28261#define HAVE_NL_LANGINFO 1
28262_ACEOF
28263
28264fi
28265done
28266
28267
28268
28269
28270  if test -z "$have_unicode_fs"; then
28271    test "x$silent" != "xyes" && echo "  setting have_unicode_fs to \"0\""
28272    have_unicode_fs="0"
28273  fi
28274
28275
28276
28277
28278  if test -z "$apr_has_xthread_files"; then
28279    test "x$silent" != "xyes" && echo "  setting apr_has_xthread_files to \"0\""
28280    apr_has_xthread_files="0"
28281  fi
28282
28283
28284
28285
28286  if test -z "$apr_procattr_user_set_requires_password"; then
28287    test "x$silent" != "xyes" && echo "  setting apr_procattr_user_set_requires_password to \"0\""
28288    apr_procattr_user_set_requires_password="0"
28289  fi
28290
28291
28292
28293
28294  if test -z "$apr_thread_func"; then
28295    test "x$silent" != "xyes" && echo "  setting apr_thread_func to \"\""
28296    apr_thread_func=""
28297  fi
28298
28299
28300
28301
28302  if test -z "$apr_has_user"; then
28303    test "x$silent" != "xyes" && echo "  setting apr_has_user to \"1\""
28304    apr_has_user="1"
28305  fi
28306
28307
28308
28309
28310echo "${nl}Restore user-defined environment settings..."
28311
28312
28313set X $apr_ste_save_CPPFLAGS
28314if test ${#} -eq 1; then
28315  EXTRA_CPPFLAGS="$CPPFLAGS"
28316  CPPFLAGS=
28317else
28318  if test "x$apr_ste_save_CPPFLAGS" = "x$CPPFLAGS"; then
28319    EXTRA_CPPFLAGS=
28320  else
28321    EXTRA_CPPFLAGS=`echo "$CPPFLAGS" | sed -e "s%${apr_ste_save_CPPFLAGS}%%"`
28322    CPPFLAGS="$apr_ste_save_CPPFLAGS"
28323  fi
28324fi
28325if test "x$silent" != "xyes"; then
28326  echo "  restoring CPPFLAGS to \"$CPPFLAGS\""
28327  echo "  setting EXTRA_CPPFLAGS to \"$EXTRA_CPPFLAGS\""
28328fi
28329
28330
28331
28332set X $apr_ste_save_CFLAGS
28333if test ${#} -eq 1; then
28334  EXTRA_CFLAGS="$CFLAGS"
28335  CFLAGS=
28336else
28337  if test "x$apr_ste_save_CFLAGS" = "x$CFLAGS"; then
28338    EXTRA_CFLAGS=
28339  else
28340    EXTRA_CFLAGS=`echo "$CFLAGS" | sed -e "s%${apr_ste_save_CFLAGS}%%"`
28341    CFLAGS="$apr_ste_save_CFLAGS"
28342  fi
28343fi
28344if test "x$silent" != "xyes"; then
28345  echo "  restoring CFLAGS to \"$CFLAGS\""
28346  echo "  setting EXTRA_CFLAGS to \"$EXTRA_CFLAGS\""
28347fi
28348
28349
28350
28351set X $apr_ste_save_LDFLAGS
28352if test ${#} -eq 1; then
28353  EXTRA_LDFLAGS="$LDFLAGS"
28354  LDFLAGS=
28355else
28356  if test "x$apr_ste_save_LDFLAGS" = "x$LDFLAGS"; then
28357    EXTRA_LDFLAGS=
28358  else
28359    EXTRA_LDFLAGS=`echo "$LDFLAGS" | sed -e "s%${apr_ste_save_LDFLAGS}%%"`
28360    LDFLAGS="$apr_ste_save_LDFLAGS"
28361  fi
28362fi
28363if test "x$silent" != "xyes"; then
28364  echo "  restoring LDFLAGS to \"$LDFLAGS\""
28365  echo "  setting EXTRA_LDFLAGS to \"$EXTRA_LDFLAGS\""
28366fi
28367
28368
28369
28370set X $apr_ste_save_LIBS
28371if test ${#} -eq 1; then
28372  EXTRA_LIBS="$LIBS"
28373  LIBS=
28374else
28375  if test "x$apr_ste_save_LIBS" = "x$LIBS"; then
28376    EXTRA_LIBS=
28377  else
28378    EXTRA_LIBS=`echo "$LIBS" | sed -e "s%${apr_ste_save_LIBS}%%"`
28379    LIBS="$apr_ste_save_LIBS"
28380  fi
28381fi
28382if test "x$silent" != "xyes"; then
28383  echo "  restoring LIBS to \"$LIBS\""
28384  echo "  setting EXTRA_LIBS to \"$EXTRA_LIBS\""
28385fi
28386
28387
28388
28389set X $apr_ste_save_INCLUDES
28390if test ${#} -eq 1; then
28391  EXTRA_INCLUDES="$INCLUDES"
28392  INCLUDES=
28393else
28394  if test "x$apr_ste_save_INCLUDES" = "x$INCLUDES"; then
28395    EXTRA_INCLUDES=
28396  else
28397    EXTRA_INCLUDES=`echo "$INCLUDES" | sed -e "s%${apr_ste_save_INCLUDES}%%"`
28398    INCLUDES="$apr_ste_save_INCLUDES"
28399  fi
28400fi
28401if test "x$silent" != "xyes"; then
28402  echo "  restoring INCLUDES to \"$INCLUDES\""
28403  echo "  setting EXTRA_INCLUDES to \"$EXTRA_INCLUDES\""
28404fi
28405
28406
28407
28408
28409
28410
28411
28412
28413
28414
28415
28416
28417
28418
28419
28420
28421
28422
28423# Use -no-install to link the test programs on all platforms
28424# but Darwin, where it would cause the programs to be linked
28425# against installed versions of libapr instead of those just
28426# built.
28427case $host in
28428*-apple-darwin*) LT_NO_INSTALL="" ;;
28429*) LT_NO_INSTALL="-no-install" ;;
28430esac
28431
28432
28433#
28434# BSD/OS (BSDi) needs to use a different include syntax in the Makefiles
28435#
28436case $host in
28437*bsdi*)
28438    # Check whether they've installed GNU make
28439    if make --version > /dev/null 2>&1; then
28440	INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
28441	INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk"
28442    else
28443	# BSDi make
28444	INCLUDE_RULES=".include \"$apr_buildout/apr_rules.mk\""
28445	INCLUDE_OUTPUTS=".include \"$apr_srcdir/build-outputs.mk\""
28446    fi
28447    ;;
28448*)
28449    INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
28450    INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk"
28451    ;;
28452esac
28453
28454
28455
28456ac_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"
28457
28458
28459if test -d $srcdir/test; then
28460   ac_config_files="$ac_config_files test/Makefile test/internal/Makefile"
28461
28462fi
28463
28464dir=include/arch/unix
28465test -d $dir || $MKDIR $dir
28466
28467ac_config_commands="$ac_config_commands default"
28468
28469
28470cat >confcache <<\_ACEOF
28471# This file is a shell script that caches the results of configure
28472# tests run on this system so they can be shared between configure
28473# scripts and configure runs, see configure's option --config-cache.
28474# It is not useful on other systems.  If it contains results you don't
28475# want to keep, you may remove or edit it.
28476#
28477# config.status only pays attention to the cache file if you give it
28478# the --recheck option to rerun configure.
28479#
28480# `ac_cv_env_foo' variables (set or unset) will be overridden when
28481# loading this file, other *unset* `ac_cv_foo' will be assigned the
28482# following values.
28483
28484_ACEOF
28485
28486# The following way of writing the cache mishandles newlines in values,
28487# but we know of no workaround that is simple, portable, and efficient.
28488# So, we kill variables containing newlines.
28489# Ultrix sh set writes to stderr and can't be redirected directly,
28490# and sets the high bit in the cache file unless we assign to the vars.
28491(
28492  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28493    eval ac_val=\$$ac_var
28494    case $ac_val in #(
28495    *${as_nl}*)
28496      case $ac_var in #(
28497      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28498$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28499      esac
28500      case $ac_var in #(
28501      _ | IFS | as_nl) ;; #(
28502      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28503      *) { eval $ac_var=; unset $ac_var;} ;;
28504      esac ;;
28505    esac
28506  done
28507
28508  (set) 2>&1 |
28509    case $as_nl`(ac_space=' '; set) 2>&1` in #(
28510    *${as_nl}ac_space=\ *)
28511      # `set' does not quote correctly, so add quotes: double-quote
28512      # substitution turns \\\\ into \\, and sed turns \\ into \.
28513      sed -n \
28514	"s/'/'\\\\''/g;
28515	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28516      ;; #(
28517    *)
28518      # `set' quotes correctly as required by POSIX, so do not add quotes.
28519      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28520      ;;
28521    esac |
28522    sort
28523) |
28524  sed '
28525     /^ac_cv_env_/b end
28526     t clear
28527     :clear
28528     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28529     t end
28530     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28531     :end' >>confcache
28532if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28533  if test -w "$cache_file"; then
28534    if test "x$cache_file" != "x/dev/null"; then
28535      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28536$as_echo "$as_me: updating cache $cache_file" >&6;}
28537      if test ! -f "$cache_file" || test -h "$cache_file"; then
28538	cat confcache >"$cache_file"
28539      else
28540        case $cache_file in #(
28541        */* | ?:*)
28542	  mv -f confcache "$cache_file"$$ &&
28543	  mv -f "$cache_file"$$ "$cache_file" ;; #(
28544        *)
28545	  mv -f confcache "$cache_file" ;;
28546	esac
28547      fi
28548    fi
28549  else
28550    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28551$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28552  fi
28553fi
28554rm -f confcache
28555
28556test "x$prefix" = xNONE && prefix=$ac_default_prefix
28557# Let make expand exec_prefix.
28558test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28559
28560DEFS=-DHAVE_CONFIG_H
28561
28562ac_libobjs=
28563ac_ltlibobjs=
28564U=
28565for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28566  # 1. Remove the extension, and $U if already installed.
28567  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28568  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28569  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28570  #    will be set to the directory where LIBOBJS objects are built.
28571  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28572  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28573done
28574LIBOBJS=$ac_libobjs
28575
28576LTLIBOBJS=$ac_ltlibobjs
28577
28578
28579
28580
28581: "${CONFIG_STATUS=./config.status}"
28582ac_write_fail=0
28583ac_clean_files_save=$ac_clean_files
28584ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28585{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28586$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28587as_write_fail=0
28588cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28589#! $SHELL
28590# Generated by $as_me.
28591# Run this file to recreate the current configuration.
28592# Compiler output produced by configure, useful for debugging
28593# configure, is in config.log if it exists.
28594
28595debug=false
28596ac_cs_recheck=false
28597ac_cs_silent=false
28598
28599SHELL=\${CONFIG_SHELL-$SHELL}
28600export SHELL
28601_ASEOF
28602cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28603## -------------------- ##
28604## M4sh Initialization. ##
28605## -------------------- ##
28606
28607# Be more Bourne compatible
28608DUALCASE=1; export DUALCASE # for MKS sh
28609if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28610  emulate sh
28611  NULLCMD=:
28612  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28613  # is contrary to our usage.  Disable this feature.
28614  alias -g '${1+"$@"}'='"$@"'
28615  setopt NO_GLOB_SUBST
28616else
28617  case `(set -o) 2>/dev/null` in #(
28618  *posix*) :
28619    set -o posix ;; #(
28620  *) :
28621     ;;
28622esac
28623fi
28624
28625
28626as_nl='
28627'
28628export as_nl
28629# Printing a long string crashes Solaris 7 /usr/bin/printf.
28630as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28631as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28632as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28633# Prefer a ksh shell builtin over an external printf program on Solaris,
28634# but without wasting forks for bash or zsh.
28635if test -z "$BASH_VERSION$ZSH_VERSION" \
28636    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28637  as_echo='print -r --'
28638  as_echo_n='print -rn --'
28639elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28640  as_echo='printf %s\n'
28641  as_echo_n='printf %s'
28642else
28643  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28644    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28645    as_echo_n='/usr/ucb/echo -n'
28646  else
28647    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28648    as_echo_n_body='eval
28649      arg=$1;
28650      case $arg in #(
28651      *"$as_nl"*)
28652	expr "X$arg" : "X\\(.*\\)$as_nl";
28653	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28654      esac;
28655      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28656    '
28657    export as_echo_n_body
28658    as_echo_n='sh -c $as_echo_n_body as_echo'
28659  fi
28660  export as_echo_body
28661  as_echo='sh -c $as_echo_body as_echo'
28662fi
28663
28664# The user is always right.
28665if test "${PATH_SEPARATOR+set}" != set; then
28666  PATH_SEPARATOR=:
28667  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28668    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28669      PATH_SEPARATOR=';'
28670  }
28671fi
28672
28673
28674# IFS
28675# We need space, tab and new line, in precisely that order.  Quoting is
28676# there to prevent editors from complaining about space-tab.
28677# (If _AS_PATH_WALK were called with IFS unset, it would disable word
28678# splitting by setting IFS to empty value.)
28679IFS=" ""	$as_nl"
28680
28681# Find who we are.  Look in the path if we contain no directory separator.
28682as_myself=
28683case $0 in #((
28684  *[\\/]* ) as_myself=$0 ;;
28685  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28686for as_dir in $PATH
28687do
28688  IFS=$as_save_IFS
28689  test -z "$as_dir" && as_dir=.
28690    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28691  done
28692IFS=$as_save_IFS
28693
28694     ;;
28695esac
28696# We did not find ourselves, most probably we were run as `sh COMMAND'
28697# in which case we are not to be found in the path.
28698if test "x$as_myself" = x; then
28699  as_myself=$0
28700fi
28701if test ! -f "$as_myself"; then
28702  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28703  exit 1
28704fi
28705
28706# Unset variables that we do not need and which cause bugs (e.g. in
28707# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
28708# suppresses any "Segmentation fault" message there.  '((' could
28709# trigger a bug in pdksh 5.2.14.
28710for as_var in BASH_ENV ENV MAIL MAILPATH
28711do eval test x\${$as_var+set} = xset \
28712  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28713done
28714PS1='$ '
28715PS2='> '
28716PS4='+ '
28717
28718# NLS nuisances.
28719LC_ALL=C
28720export LC_ALL
28721LANGUAGE=C
28722export LANGUAGE
28723
28724# CDPATH.
28725(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28726
28727
28728# as_fn_error STATUS ERROR [LINENO LOG_FD]
28729# ----------------------------------------
28730# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28731# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28732# script with STATUS, using 1 if that was 0.
28733as_fn_error ()
28734{
28735  as_status=$1; test $as_status -eq 0 && as_status=1
28736  if test "$4"; then
28737    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28738    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28739  fi
28740  $as_echo "$as_me: error: $2" >&2
28741  as_fn_exit $as_status
28742} # as_fn_error
28743
28744
28745# as_fn_set_status STATUS
28746# -----------------------
28747# Set $? to STATUS, without forking.
28748as_fn_set_status ()
28749{
28750  return $1
28751} # as_fn_set_status
28752
28753# as_fn_exit STATUS
28754# -----------------
28755# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28756as_fn_exit ()
28757{
28758  set +e
28759  as_fn_set_status $1
28760  exit $1
28761} # as_fn_exit
28762
28763# as_fn_unset VAR
28764# ---------------
28765# Portably unset VAR.
28766as_fn_unset ()
28767{
28768  { eval $1=; unset $1;}
28769}
28770as_unset=as_fn_unset
28771# as_fn_append VAR VALUE
28772# ----------------------
28773# Append the text in VALUE to the end of the definition contained in VAR. Take
28774# advantage of any shell optimizations that allow amortized linear growth over
28775# repeated appends, instead of the typical quadratic growth present in naive
28776# implementations.
28777if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28778  eval 'as_fn_append ()
28779  {
28780    eval $1+=\$2
28781  }'
28782else
28783  as_fn_append ()
28784  {
28785    eval $1=\$$1\$2
28786  }
28787fi # as_fn_append
28788
28789# as_fn_arith ARG...
28790# ------------------
28791# Perform arithmetic evaluation on the ARGs, and store the result in the
28792# global $as_val. Take advantage of shells that can avoid forks. The arguments
28793# must be portable across $(()) and expr.
28794if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28795  eval 'as_fn_arith ()
28796  {
28797    as_val=$(( $* ))
28798  }'
28799else
28800  as_fn_arith ()
28801  {
28802    as_val=`expr "$@" || test $? -eq 1`
28803  }
28804fi # as_fn_arith
28805
28806
28807if expr a : '\(a\)' >/dev/null 2>&1 &&
28808   test "X`expr 00001 : '.*\(...\)'`" = X001; then
28809  as_expr=expr
28810else
28811  as_expr=false
28812fi
28813
28814if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28815  as_basename=basename
28816else
28817  as_basename=false
28818fi
28819
28820if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28821  as_dirname=dirname
28822else
28823  as_dirname=false
28824fi
28825
28826as_me=`$as_basename -- "$0" ||
28827$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28828	 X"$0" : 'X\(//\)$' \| \
28829	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28830$as_echo X/"$0" |
28831    sed '/^.*\/\([^/][^/]*\)\/*$/{
28832	    s//\1/
28833	    q
28834	  }
28835	  /^X\/\(\/\/\)$/{
28836	    s//\1/
28837	    q
28838	  }
28839	  /^X\/\(\/\).*/{
28840	    s//\1/
28841	    q
28842	  }
28843	  s/.*/./; q'`
28844
28845# Avoid depending upon Character Ranges.
28846as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28847as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28848as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28849as_cr_digits='0123456789'
28850as_cr_alnum=$as_cr_Letters$as_cr_digits
28851
28852ECHO_C= ECHO_N= ECHO_T=
28853case `echo -n x` in #(((((
28854-n*)
28855  case `echo 'xy\c'` in
28856  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
28857  xy)  ECHO_C='\c';;
28858  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
28859       ECHO_T='	';;
28860  esac;;
28861*)
28862  ECHO_N='-n';;
28863esac
28864
28865rm -f conf$$ conf$$.exe conf$$.file
28866if test -d conf$$.dir; then
28867  rm -f conf$$.dir/conf$$.file
28868else
28869  rm -f conf$$.dir
28870  mkdir conf$$.dir 2>/dev/null
28871fi
28872if (echo >conf$$.file) 2>/dev/null; then
28873  if ln -s conf$$.file conf$$ 2>/dev/null; then
28874    as_ln_s='ln -s'
28875    # ... but there are two gotchas:
28876    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28877    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28878    # In both cases, we have to default to `cp -p'.
28879    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28880      as_ln_s='cp -p'
28881  elif ln conf$$.file conf$$ 2>/dev/null; then
28882    as_ln_s=ln
28883  else
28884    as_ln_s='cp -p'
28885  fi
28886else
28887  as_ln_s='cp -p'
28888fi
28889rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28890rmdir conf$$.dir 2>/dev/null
28891
28892
28893# as_fn_mkdir_p
28894# -------------
28895# Create "$as_dir" as a directory, including parents if necessary.
28896as_fn_mkdir_p ()
28897{
28898
28899  case $as_dir in #(
28900  -*) as_dir=./$as_dir;;
28901  esac
28902  test -d "$as_dir" || eval $as_mkdir_p || {
28903    as_dirs=
28904    while :; do
28905      case $as_dir in #(
28906      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28907      *) as_qdir=$as_dir;;
28908      esac
28909      as_dirs="'$as_qdir' $as_dirs"
28910      as_dir=`$as_dirname -- "$as_dir" ||
28911$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28912	 X"$as_dir" : 'X\(//\)[^/]' \| \
28913	 X"$as_dir" : 'X\(//\)$' \| \
28914	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28915$as_echo X"$as_dir" |
28916    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28917	    s//\1/
28918	    q
28919	  }
28920	  /^X\(\/\/\)[^/].*/{
28921	    s//\1/
28922	    q
28923	  }
28924	  /^X\(\/\/\)$/{
28925	    s//\1/
28926	    q
28927	  }
28928	  /^X\(\/\).*/{
28929	    s//\1/
28930	    q
28931	  }
28932	  s/.*/./; q'`
28933      test -d "$as_dir" && break
28934    done
28935    test -z "$as_dirs" || eval "mkdir $as_dirs"
28936  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
28937
28938
28939} # as_fn_mkdir_p
28940if mkdir -p . 2>/dev/null; then
28941  as_mkdir_p='mkdir -p "$as_dir"'
28942else
28943  test -d ./-p && rmdir ./-p
28944  as_mkdir_p=false
28945fi
28946
28947if test -x / >/dev/null 2>&1; then
28948  as_test_x='test -x'
28949else
28950  if ls -dL / >/dev/null 2>&1; then
28951    as_ls_L_option=L
28952  else
28953    as_ls_L_option=
28954  fi
28955  as_test_x='
28956    eval sh -c '\''
28957      if test -d "$1"; then
28958	test -d "$1/.";
28959      else
28960	case $1 in #(
28961	-*)set "./$1";;
28962	esac;
28963	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28964	???[sx]*):;;*)false;;esac;fi
28965    '\'' sh
28966  '
28967fi
28968as_executable_p=$as_test_x
28969
28970# Sed expression to map a string onto a valid CPP name.
28971as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28972
28973# Sed expression to map a string onto a valid variable name.
28974as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28975
28976
28977exec 6>&1
28978## ----------------------------------- ##
28979## Main body of $CONFIG_STATUS script. ##
28980## ----------------------------------- ##
28981_ASEOF
28982test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28983
28984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28985# Save the log message, to keep $0 and so on meaningful, and to
28986# report actual input values of CONFIG_FILES etc. instead of their
28987# values after options handling.
28988ac_log="
28989This file was extended by $as_me, which was
28990generated by GNU Autoconf 2.68.  Invocation command line was
28991
28992  CONFIG_FILES    = $CONFIG_FILES
28993  CONFIG_HEADERS  = $CONFIG_HEADERS
28994  CONFIG_LINKS    = $CONFIG_LINKS
28995  CONFIG_COMMANDS = $CONFIG_COMMANDS
28996  $ $0 $@
28997
28998on `(hostname || uname -n) 2>/dev/null | sed 1q`
28999"
29000
29001_ACEOF
29002
29003case $ac_config_files in *"
29004"*) set x $ac_config_files; shift; ac_config_files=$*;;
29005esac
29006
29007case $ac_config_headers in *"
29008"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29009esac
29010
29011
29012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29013# Files that config.status was made for.
29014config_files="$ac_config_files"
29015config_headers="$ac_config_headers"
29016config_commands="$ac_config_commands"
29017
29018_ACEOF
29019
29020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29021ac_cs_usage="\
29022\`$as_me' instantiates files and other configuration actions
29023from templates according to the current configuration.  Unless the files
29024and actions are specified as TAGs, all are instantiated by default.
29025
29026Usage: $0 [OPTION]... [TAG]...
29027
29028  -h, --help       print this help, then exit
29029  -V, --version    print version number and configuration settings, then exit
29030      --config     print configuration, then exit
29031  -q, --quiet, --silent
29032                   do not print progress messages
29033  -d, --debug      don't remove temporary files
29034      --recheck    update $as_me by reconfiguring in the same conditions
29035      --file=FILE[:TEMPLATE]
29036                   instantiate the configuration file FILE
29037      --header=FILE[:TEMPLATE]
29038                   instantiate the configuration header FILE
29039
29040Configuration files:
29041$config_files
29042
29043Configuration headers:
29044$config_headers
29045
29046Configuration commands:
29047$config_commands
29048
29049Report bugs to the package provider."
29050
29051_ACEOF
29052cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29053ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29054ac_cs_version="\\
29055config.status
29056configured by $0, generated by GNU Autoconf 2.68,
29057  with options \\"\$ac_cs_config\\"
29058
29059Copyright (C) 2010 Free Software Foundation, Inc.
29060This config.status script is free software; the Free Software Foundation
29061gives unlimited permission to copy, distribute and modify it."
29062
29063ac_pwd='$ac_pwd'
29064srcdir='$srcdir'
29065INSTALL='$INSTALL'
29066AWK='$AWK'
29067test -n "\$AWK" || AWK=awk
29068_ACEOF
29069
29070cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29071# The default lists apply if the user does not specify any file.
29072ac_need_defaults=:
29073while test $# != 0
29074do
29075  case $1 in
29076  --*=?*)
29077    ac_option=`expr "X$1" : 'X\([^=]*\)='`
29078    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29079    ac_shift=:
29080    ;;
29081  --*=)
29082    ac_option=`expr "X$1" : 'X\([^=]*\)='`
29083    ac_optarg=
29084    ac_shift=:
29085    ;;
29086  *)
29087    ac_option=$1
29088    ac_optarg=$2
29089    ac_shift=shift
29090    ;;
29091  esac
29092
29093  case $ac_option in
29094  # Handling of the options.
29095  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29096    ac_cs_recheck=: ;;
29097  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29098    $as_echo "$ac_cs_version"; exit ;;
29099  --config | --confi | --conf | --con | --co | --c )
29100    $as_echo "$ac_cs_config"; exit ;;
29101  --debug | --debu | --deb | --de | --d | -d )
29102    debug=: ;;
29103  --file | --fil | --fi | --f )
29104    $ac_shift
29105    case $ac_optarg in
29106    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29107    '') as_fn_error $? "missing file argument" ;;
29108    esac
29109    as_fn_append CONFIG_FILES " '$ac_optarg'"
29110    ac_need_defaults=false;;
29111  --header | --heade | --head | --hea )
29112    $ac_shift
29113    case $ac_optarg in
29114    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29115    esac
29116    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29117    ac_need_defaults=false;;
29118  --he | --h)
29119    # Conflict between --help and --header
29120    as_fn_error $? "ambiguous option: \`$1'
29121Try \`$0 --help' for more information.";;
29122  --help | --hel | -h )
29123    $as_echo "$ac_cs_usage"; exit ;;
29124  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29125  | -silent | --silent | --silen | --sile | --sil | --si | --s)
29126    ac_cs_silent=: ;;
29127
29128  # This is an error.
29129  -*) as_fn_error $? "unrecognized option: \`$1'
29130Try \`$0 --help' for more information." ;;
29131
29132  *) as_fn_append ac_config_targets " $1"
29133     ac_need_defaults=false ;;
29134
29135  esac
29136  shift
29137done
29138
29139ac_configure_extra_args=
29140
29141if $ac_cs_silent; then
29142  exec 6>/dev/null
29143  ac_configure_extra_args="$ac_configure_extra_args --silent"
29144fi
29145
29146_ACEOF
29147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29148if \$ac_cs_recheck; then
29149  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29150  shift
29151  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29152  CONFIG_SHELL='$SHELL'
29153  export CONFIG_SHELL
29154  exec "\$@"
29155fi
29156
29157_ACEOF
29158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29159exec 5>>config.log
29160{
29161  echo
29162  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29163## Running $as_me. ##
29164_ASBOX
29165  $as_echo "$ac_log"
29166} >&5
29167
29168_ACEOF
29169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29170#
29171# INIT-COMMANDS
29172#
29173
29174
29175# The HP-UX ksh and POSIX shell print the target directory to stdout
29176# if CDPATH is set.
29177(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29178
29179sed_quote_subst='$sed_quote_subst'
29180double_quote_subst='$double_quote_subst'
29181delay_variable_subst='$delay_variable_subst'
29182AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
29183DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
29184OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
29185macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
29186macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
29187enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
29188enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
29189pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
29190enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
29191SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
29192ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
29193PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
29194host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
29195host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
29196host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
29197build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
29198build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
29199build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
29200SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
29201Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
29202GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
29203EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
29204FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
29205LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
29206NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
29207LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
29208max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
29209ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
29210exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
29211lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
29212lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
29213lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
29214lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
29215lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
29216reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
29217reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
29218deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
29219file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
29220file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
29221want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
29222sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
29223AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
29224AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
29225archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
29226STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
29227RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
29228old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29229old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29230old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
29231lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
29232CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
29233CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
29234compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
29235GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
29236lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
29237lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
29238lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
29239lt_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"`'
29240nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
29241lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
29242objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
29243MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
29244lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
29245lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
29246lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
29247lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
29248lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
29249need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
29250MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
29251DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
29252NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
29253LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
29254OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
29255OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
29256libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
29257shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
29258extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29259archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
29260enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
29261export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
29262whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
29263compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
29264old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
29265old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29266archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
29267archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29268module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
29269module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29270with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
29271allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
29272no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
29273hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
29274hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
29275hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
29276hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
29277hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
29278hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
29279hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
29280inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
29281link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
29282always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
29283export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
29284exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
29285include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
29286prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
29287postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
29288file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
29289variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
29290need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
29291need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
29292version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
29293runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
29294shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
29295shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
29296libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
29297library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
29298soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
29299install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
29300postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29301postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29302finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
29303finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
29304hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
29305sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
29306sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
29307hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
29308enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
29309enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
29310enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
29311old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
29312striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
29313
29314LTCC='$LTCC'
29315LTCFLAGS='$LTCFLAGS'
29316compiler='$compiler_DEFAULT'
29317
29318# A function that is used when there is no print builtin or printf.
29319func_fallback_echo ()
29320{
29321  eval 'cat <<_LTECHO_EOF
29322\$1
29323_LTECHO_EOF'
29324}
29325
29326# Quote evaled strings.
29327for var in AS \
29328DLLTOOL \
29329OBJDUMP \
29330SHELL \
29331ECHO \
29332PATH_SEPARATOR \
29333SED \
29334GREP \
29335EGREP \
29336FGREP \
29337LD \
29338NM \
29339LN_S \
29340lt_SP2NL \
29341lt_NL2SP \
29342reload_flag \
29343deplibs_check_method \
29344file_magic_cmd \
29345file_magic_glob \
29346want_nocaseglob \
29347sharedlib_from_linklib_cmd \
29348AR \
29349AR_FLAGS \
29350archiver_list_spec \
29351STRIP \
29352RANLIB \
29353CC \
29354CFLAGS \
29355compiler \
29356lt_cv_sys_global_symbol_pipe \
29357lt_cv_sys_global_symbol_to_cdecl \
29358lt_cv_sys_global_symbol_to_c_name_address \
29359lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29360nm_file_list_spec \
29361lt_prog_compiler_no_builtin_flag \
29362lt_prog_compiler_pic \
29363lt_prog_compiler_wl \
29364lt_prog_compiler_static \
29365lt_cv_prog_compiler_c_o \
29366need_locks \
29367MANIFEST_TOOL \
29368DSYMUTIL \
29369NMEDIT \
29370LIPO \
29371OTOOL \
29372OTOOL64 \
29373shrext_cmds \
29374export_dynamic_flag_spec \
29375whole_archive_flag_spec \
29376compiler_needs_object \
29377with_gnu_ld \
29378allow_undefined_flag \
29379no_undefined_flag \
29380hardcode_libdir_flag_spec \
29381hardcode_libdir_separator \
29382exclude_expsyms \
29383include_expsyms \
29384file_list_spec \
29385variables_saved_for_relink \
29386libname_spec \
29387library_names_spec \
29388soname_spec \
29389install_override_mode \
29390finish_eval \
29391old_striplib \
29392striplib; do
29393    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29394    *[\\\\\\\`\\"\\\$]*)
29395      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29396      ;;
29397    *)
29398      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29399      ;;
29400    esac
29401done
29402
29403# Double-quote double-evaled strings.
29404for var in reload_cmds \
29405old_postinstall_cmds \
29406old_postuninstall_cmds \
29407old_archive_cmds \
29408extract_expsyms_cmds \
29409old_archive_from_new_cmds \
29410old_archive_from_expsyms_cmds \
29411archive_cmds \
29412archive_expsym_cmds \
29413module_cmds \
29414module_expsym_cmds \
29415export_symbols_cmds \
29416prelink_cmds \
29417postlink_cmds \
29418postinstall_cmds \
29419postuninstall_cmds \
29420finish_cmds \
29421sys_lib_search_path_spec \
29422sys_lib_dlsearch_path_spec; do
29423    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29424    *[\\\\\\\`\\"\\\$]*)
29425      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29426      ;;
29427    *)
29428      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29429      ;;
29430    esac
29431done
29432
29433ac_aux_dir='$ac_aux_dir'
29434xsi_shell='$xsi_shell'
29435lt_shell_append='$lt_shell_append'
29436
29437# See if we are running on zsh, and set the options which allow our
29438# commands through without removal of \ escapes INIT.
29439if test -n "\${ZSH_VERSION+set}" ; then
29440   setopt NO_GLOB_SUBST
29441fi
29442
29443
29444    PACKAGE='$PACKAGE'
29445    VERSION='$VERSION'
29446    TIMESTAMP='$TIMESTAMP'
29447    RM='$RM'
29448    ofile='$ofile'
29449
29450
29451
29452
29453
29454# Commands run at the beginning of config.status:
29455APR_SAVE_HEADERS="include/apr.h include/arch/unix/apr_private.h"
29456APR_MAJOR_VERSION=$APR_MAJOR_VERSION
29457APR_PLATFORM=$host
29458
29459for apri in \${APR_SAVE_HEADERS}; do
29460  test -r \${apri} && mv \${apri} \${apri}.save
29461done
29462
29463
29464_ACEOF
29465
29466cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29467
29468# Handling of arguments.
29469for ac_config_target in $ac_config_targets
29470do
29471  case $ac_config_target in
29472    "include/arch/unix/apr_private.h") CONFIG_HEADERS="$CONFIG_HEADERS include/arch/unix/apr_private.h" ;;
29473    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29474    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29475    "include/apr.h") CONFIG_FILES="$CONFIG_FILES include/apr.h" ;;
29476    "build/apr_rules.mk") CONFIG_FILES="$CONFIG_FILES build/apr_rules.mk" ;;
29477    "build/pkg/pkginfo") CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;;
29478    "apr-$APR_MAJOR_VERSION-config") CONFIG_FILES="$CONFIG_FILES apr-$APR_MAJOR_VERSION-config:apr-config.in" ;;
29479    "apr.pc") CONFIG_FILES="$CONFIG_FILES apr.pc" ;;
29480    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
29481    "test/internal/Makefile") CONFIG_FILES="$CONFIG_FILES test/internal/Makefile" ;;
29482    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29483
29484  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29485  esac
29486done
29487
29488
29489# If the user did not use the arguments to specify the items to instantiate,
29490# then the envvar interface is used.  Set only those that are not.
29491# We use the long form for the default assignment because of an extremely
29492# bizarre bug on SunOS 4.1.3.
29493if $ac_need_defaults; then
29494  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29495  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29496  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29497fi
29498
29499# Have a temporary directory for convenience.  Make it in the build tree
29500# simply because there is no reason against having it here, and in addition,
29501# creating and moving files from /tmp can sometimes cause problems.
29502# Hook for its removal unless debugging.
29503# Note that there is a small window in which the directory will not be cleaned:
29504# after its creation but before its name has been assigned to `$tmp'.
29505$debug ||
29506{
29507  tmp= ac_tmp=
29508  trap 'exit_status=$?
29509  : "${ac_tmp:=$tmp}"
29510  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29511' 0
29512  trap 'as_fn_exit 1' 1 2 13 15
29513}
29514# Create a (secure) tmp directory for tmp files.
29515
29516{
29517  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29518  test -d "$tmp"
29519}  ||
29520{
29521  tmp=./conf$$-$RANDOM
29522  (umask 077 && mkdir "$tmp")
29523} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29524ac_tmp=$tmp
29525
29526# Set up the scripts for CONFIG_FILES section.
29527# No need to generate them if there are no CONFIG_FILES.
29528# This happens for instance with `./config.status config.h'.
29529if test -n "$CONFIG_FILES"; then
29530
29531
29532ac_cr=`echo X | tr X '\015'`
29533# On cygwin, bash can eat \r inside `` if the user requested igncr.
29534# But we know of no other shell where ac_cr would be empty at this
29535# point, so we can use a bashism as a fallback.
29536if test "x$ac_cr" = x; then
29537  eval ac_cr=\$\'\\r\'
29538fi
29539ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29540if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29541  ac_cs_awk_cr='\\r'
29542else
29543  ac_cs_awk_cr=$ac_cr
29544fi
29545
29546echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29547_ACEOF
29548
29549
29550{
29551  echo "cat >conf$$subs.awk <<_ACEOF" &&
29552  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29553  echo "_ACEOF"
29554} >conf$$subs.sh ||
29555  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29556ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29557ac_delim='%!_!# '
29558for ac_last_try in false false false false false :; do
29559  . ./conf$$subs.sh ||
29560    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29561
29562  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29563  if test $ac_delim_n = $ac_delim_num; then
29564    break
29565  elif $ac_last_try; then
29566    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29567  else
29568    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29569  fi
29570done
29571rm -f conf$$subs.sh
29572
29573cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29574cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
29575_ACEOF
29576sed -n '
29577h
29578s/^/S["/; s/!.*/"]=/
29579p
29580g
29581s/^[^!]*!//
29582:repl
29583t repl
29584s/'"$ac_delim"'$//
29585t delim
29586:nl
29587h
29588s/\(.\{148\}\)..*/\1/
29589t more1
29590s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29591p
29592n
29593b repl
29594:more1
29595s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29596p
29597g
29598s/.\{148\}//
29599t nl
29600:delim
29601h
29602s/\(.\{148\}\)..*/\1/
29603t more2
29604s/["\\]/\\&/g; s/^/"/; s/$/"/
29605p
29606b
29607:more2
29608s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29609p
29610g
29611s/.\{148\}//
29612t delim
29613' <conf$$subs.awk | sed '
29614/^[^""]/{
29615  N
29616  s/\n//
29617}
29618' >>$CONFIG_STATUS || ac_write_fail=1
29619rm -f conf$$subs.awk
29620cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29621_ACAWK
29622cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
29623  for (key in S) S_is_set[key] = 1
29624  FS = ""
29625
29626}
29627{
29628  line = $ 0
29629  nfields = split(line, field, "@")
29630  substed = 0
29631  len = length(field[1])
29632  for (i = 2; i < nfields; i++) {
29633    key = field[i]
29634    keylen = length(key)
29635    if (S_is_set[key]) {
29636      value = S[key]
29637      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29638      len += length(value) + length(field[++i])
29639      substed = 1
29640    } else
29641      len += 1 + keylen
29642  }
29643
29644  print line
29645}
29646
29647_ACAWK
29648_ACEOF
29649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29650if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29651  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29652else
29653  cat
29654fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
29655  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
29656_ACEOF
29657
29658# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29659# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
29660# trailing colons and then remove the whole line if VPATH becomes empty
29661# (actually we leave an empty line to preserve line numbers).
29662if test "x$srcdir" = x.; then
29663  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
29664h
29665s///
29666s/^/:/
29667s/[	 ]*$/:/
29668s/:\$(srcdir):/:/g
29669s/:\${srcdir}:/:/g
29670s/:@srcdir@:/:/g
29671s/^:*//
29672s/:*$//
29673x
29674s/\(=[	 ]*\).*/\1/
29675G
29676s/\n//
29677s/^[^=]*=[	 ]*$//
29678}'
29679fi
29680
29681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29682fi # test -n "$CONFIG_FILES"
29683
29684# Set up the scripts for CONFIG_HEADERS section.
29685# No need to generate them if there are no CONFIG_HEADERS.
29686# This happens for instance with `./config.status Makefile'.
29687if test -n "$CONFIG_HEADERS"; then
29688cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29689BEGIN {
29690_ACEOF
29691
29692# Transform confdefs.h into an awk script `defines.awk', embedded as
29693# here-document in config.status, that substitutes the proper values into
29694# config.h.in to produce config.h.
29695
29696# Create a delimiter string that does not exist in confdefs.h, to ease
29697# handling of long lines.
29698ac_delim='%!_!# '
29699for ac_last_try in false false :; do
29700  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29701  if test -z "$ac_tt"; then
29702    break
29703  elif $ac_last_try; then
29704    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29705  else
29706    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29707  fi
29708done
29709
29710# For the awk script, D is an array of macro values keyed by name,
29711# likewise P contains macro parameters if any.  Preserve backslash
29712# newline sequences.
29713
29714ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29715sed -n '
29716s/.\{148\}/&'"$ac_delim"'/g
29717t rset
29718:rset
29719s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
29720t def
29721d
29722:def
29723s/\\$//
29724t bsnl
29725s/["\\]/\\&/g
29726s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
29727D["\1"]=" \3"/p
29728s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
29729d
29730:bsnl
29731s/["\\]/\\&/g
29732s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
29733D["\1"]=" \3\\\\\\n"\\/p
29734t cont
29735s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29736t cont
29737d
29738:cont
29739n
29740s/.\{148\}/&'"$ac_delim"'/g
29741t clear
29742:clear
29743s/\\$//
29744t bsnlc
29745s/["\\]/\\&/g; s/^/"/; s/$/"/p
29746d
29747:bsnlc
29748s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29749b cont
29750' <confdefs.h | sed '
29751s/'"$ac_delim"'/"\\\
29752"/g' >>$CONFIG_STATUS || ac_write_fail=1
29753
29754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29755  for (key in D) D_is_set[key] = 1
29756  FS = ""
29757}
29758/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29759  line = \$ 0
29760  split(line, arg, " ")
29761  if (arg[1] == "#") {
29762    defundef = arg[2]
29763    mac1 = arg[3]
29764  } else {
29765    defundef = substr(arg[1], 2)
29766    mac1 = arg[2]
29767  }
29768  split(mac1, mac2, "(") #)
29769  macro = mac2[1]
29770  prefix = substr(line, 1, index(line, defundef) - 1)
29771  if (D_is_set[macro]) {
29772    # Preserve the white space surrounding the "#".
29773    print prefix "define", macro P[macro] D[macro]
29774    next
29775  } else {
29776    # Replace #undef with comments.  This is necessary, for example,
29777    # in the case of _POSIX_SOURCE, which is predefined and required
29778    # on some systems where configure will not decide to define it.
29779    if (defundef == "undef") {
29780      print "/*", prefix defundef, macro, "*/"
29781      next
29782    }
29783  }
29784}
29785{ print }
29786_ACAWK
29787_ACEOF
29788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29789  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29790fi # test -n "$CONFIG_HEADERS"
29791
29792
29793eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
29794shift
29795for ac_tag
29796do
29797  case $ac_tag in
29798  :[FHLC]) ac_mode=$ac_tag; continue;;
29799  esac
29800  case $ac_mode$ac_tag in
29801  :[FHL]*:*);;
29802  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29803  :[FH]-) ac_tag=-:-;;
29804  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29805  esac
29806  ac_save_IFS=$IFS
29807  IFS=:
29808  set x $ac_tag
29809  IFS=$ac_save_IFS
29810  shift
29811  ac_file=$1
29812  shift
29813
29814  case $ac_mode in
29815  :L) ac_source=$1;;
29816  :[FH])
29817    ac_file_inputs=
29818    for ac_f
29819    do
29820      case $ac_f in
29821      -) ac_f="$ac_tmp/stdin";;
29822      *) # Look for the file first in the build tree, then in the source tree
29823	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
29824	 # because $ac_f cannot contain `:'.
29825	 test -f "$ac_f" ||
29826	   case $ac_f in
29827	   [\\/$]*) false;;
29828	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29829	   esac ||
29830	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29831      esac
29832      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29833      as_fn_append ac_file_inputs " '$ac_f'"
29834    done
29835
29836    # Let's still pretend it is `configure' which instantiates (i.e., don't
29837    # use $as_me), people would be surprised to read:
29838    #    /* config.h.  Generated by config.status.  */
29839    configure_input='Generated from '`
29840	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29841	`' by configure.'
29842    if test x"$ac_file" != x-; then
29843      configure_input="$ac_file.  $configure_input"
29844      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29845$as_echo "$as_me: creating $ac_file" >&6;}
29846    fi
29847    # Neutralize special characters interpreted by sed in replacement strings.
29848    case $configure_input in #(
29849    *\&* | *\|* | *\\* )
29850       ac_sed_conf_input=`$as_echo "$configure_input" |
29851       sed 's/[\\\\&|]/\\\\&/g'`;; #(
29852    *) ac_sed_conf_input=$configure_input;;
29853    esac
29854
29855    case $ac_tag in
29856    *:-:* | *:-) cat >"$ac_tmp/stdin" \
29857      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29858    esac
29859    ;;
29860  esac
29861
29862  ac_dir=`$as_dirname -- "$ac_file" ||
29863$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29864	 X"$ac_file" : 'X\(//\)[^/]' \| \
29865	 X"$ac_file" : 'X\(//\)$' \| \
29866	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29867$as_echo X"$ac_file" |
29868    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29869	    s//\1/
29870	    q
29871	  }
29872	  /^X\(\/\/\)[^/].*/{
29873	    s//\1/
29874	    q
29875	  }
29876	  /^X\(\/\/\)$/{
29877	    s//\1/
29878	    q
29879	  }
29880	  /^X\(\/\).*/{
29881	    s//\1/
29882	    q
29883	  }
29884	  s/.*/./; q'`
29885  as_dir="$ac_dir"; as_fn_mkdir_p
29886  ac_builddir=.
29887
29888case "$ac_dir" in
29889.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29890*)
29891  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29892  # A ".." for each directory in $ac_dir_suffix.
29893  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29894  case $ac_top_builddir_sub in
29895  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29896  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29897  esac ;;
29898esac
29899ac_abs_top_builddir=$ac_pwd
29900ac_abs_builddir=$ac_pwd$ac_dir_suffix
29901# for backward compatibility:
29902ac_top_builddir=$ac_top_build_prefix
29903
29904case $srcdir in
29905  .)  # We are building in place.
29906    ac_srcdir=.
29907    ac_top_srcdir=$ac_top_builddir_sub
29908    ac_abs_top_srcdir=$ac_pwd ;;
29909  [\\/]* | ?:[\\/]* )  # Absolute name.
29910    ac_srcdir=$srcdir$ac_dir_suffix;
29911    ac_top_srcdir=$srcdir
29912    ac_abs_top_srcdir=$srcdir ;;
29913  *) # Relative name.
29914    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29915    ac_top_srcdir=$ac_top_build_prefix$srcdir
29916    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29917esac
29918ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29919
29920
29921  case $ac_mode in
29922  :F)
29923  #
29924  # CONFIG_FILE
29925  #
29926
29927  case $INSTALL in
29928  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29929  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29930  esac
29931_ACEOF
29932
29933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29934# If the template does not know about datarootdir, expand it.
29935# FIXME: This hack should be removed a few years after 2.60.
29936ac_datarootdir_hack=; ac_datarootdir_seen=
29937ac_sed_dataroot='
29938/datarootdir/ {
29939  p
29940  q
29941}
29942/@datadir@/p
29943/@docdir@/p
29944/@infodir@/p
29945/@localedir@/p
29946/@mandir@/p'
29947case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29948*datarootdir*) ac_datarootdir_seen=yes;;
29949*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29950  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29951$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29952_ACEOF
29953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29954  ac_datarootdir_hack='
29955  s&@datadir@&$datadir&g
29956  s&@docdir@&$docdir&g
29957  s&@infodir@&$infodir&g
29958  s&@localedir@&$localedir&g
29959  s&@mandir@&$mandir&g
29960  s&\\\${datarootdir}&$datarootdir&g' ;;
29961esac
29962_ACEOF
29963
29964# Neutralize VPATH when `$srcdir' = `.'.
29965# Shell code in configure.ac might set extrasub.
29966# FIXME: do we really want to maintain this feature?
29967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29968ac_sed_extra="$ac_vpsub
29969$extrasub
29970_ACEOF
29971cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29972:t
29973/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29974s|@configure_input@|$ac_sed_conf_input|;t t
29975s&@top_builddir@&$ac_top_builddir_sub&;t t
29976s&@top_build_prefix@&$ac_top_build_prefix&;t t
29977s&@srcdir@&$ac_srcdir&;t t
29978s&@abs_srcdir@&$ac_abs_srcdir&;t t
29979s&@top_srcdir@&$ac_top_srcdir&;t t
29980s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29981s&@builddir@&$ac_builddir&;t t
29982s&@abs_builddir@&$ac_abs_builddir&;t t
29983s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29984s&@INSTALL@&$ac_INSTALL&;t t
29985$ac_datarootdir_hack
29986"
29987eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29988  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29989
29990test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29991  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29992  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
29993      "$ac_tmp/out"`; test -z "$ac_out"; } &&
29994  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29995which seems to be undefined.  Please make sure it is defined" >&5
29996$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29997which seems to be undefined.  Please make sure it is defined" >&2;}
29998
29999  rm -f "$ac_tmp/stdin"
30000  case $ac_file in
30001  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
30002  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
30003  esac \
30004  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30005 ;;
30006  :H)
30007  #
30008  # CONFIG_HEADER
30009  #
30010  if test x"$ac_file" != x-; then
30011    {
30012      $as_echo "/* $configure_input  */" \
30013      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
30014    } >"$ac_tmp/config.h" \
30015      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30016    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
30017      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30018$as_echo "$as_me: $ac_file is unchanged" >&6;}
30019    else
30020      rm -f "$ac_file"
30021      mv "$ac_tmp/config.h" "$ac_file" \
30022	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
30023    fi
30024  else
30025    $as_echo "/* $configure_input  */" \
30026      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
30027      || as_fn_error $? "could not create -" "$LINENO" 5
30028  fi
30029 ;;
30030
30031  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30032$as_echo "$as_me: executing $ac_file commands" >&6;}
30033 ;;
30034  esac
30035
30036
30037  case $ac_file$ac_mode in
30038    "libtool":C)
30039
30040    # See if we are running on zsh, and set the options which allow our
30041    # commands through without removal of \ escapes.
30042    if test -n "${ZSH_VERSION+set}" ; then
30043      setopt NO_GLOB_SUBST
30044    fi
30045
30046    cfgfile="${ofile}T"
30047    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30048    $RM "$cfgfile"
30049
30050    cat <<_LT_EOF >> "$cfgfile"
30051#! $SHELL
30052
30053# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30054# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30055# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30056# NOTE: Changes made to this file will be lost: look at ltmain.sh.
30057#
30058#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30059#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
30060#                 Foundation, Inc.
30061#   Written by Gordon Matzigkeit, 1996
30062#
30063#   This file is part of GNU Libtool.
30064#
30065# GNU Libtool is free software; you can redistribute it and/or
30066# modify it under the terms of the GNU General Public License as
30067# published by the Free Software Foundation; either version 2 of
30068# the License, or (at your option) any later version.
30069#
30070# As a special exception to the GNU General Public License,
30071# if you distribute this file as part of a program or library that
30072# is built using GNU Libtool, you may include this file under the
30073# same distribution terms that you use for the rest of that program.
30074#
30075# GNU Libtool is distributed in the hope that it will be useful,
30076# but WITHOUT ANY WARRANTY; without even the implied warranty of
30077# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30078# GNU General Public License for more details.
30079#
30080# You should have received a copy of the GNU General Public License
30081# along with GNU Libtool; see the file COPYING.  If not, a copy
30082# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30083# obtained by writing to the Free Software Foundation, Inc.,
30084# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30085
30086
30087# The names of the tagged configurations supported by this script.
30088available_tags=""
30089
30090# ### BEGIN LIBTOOL CONFIG
30091
30092# Assembler program.
30093AS=$lt_AS
30094
30095# DLL creation program.
30096DLLTOOL=$lt_DLLTOOL
30097
30098# Object dumper program.
30099OBJDUMP=$lt_OBJDUMP
30100
30101# Which release of libtool.m4 was used?
30102macro_version=$macro_version
30103macro_revision=$macro_revision
30104
30105# Whether or not to build shared libraries.
30106build_libtool_libs=$enable_shared
30107
30108# Whether or not to build static libraries.
30109build_old_libs=$enable_static
30110
30111# What type of objects to build.
30112pic_mode=$pic_mode
30113
30114# Whether or not to optimize for fast installation.
30115fast_install=$enable_fast_install
30116
30117# Shell to use when invoking shell scripts.
30118SHELL=$lt_SHELL
30119
30120# An echo program that protects backslashes.
30121ECHO=$lt_ECHO
30122
30123# The PATH separator for the build system.
30124PATH_SEPARATOR=$lt_PATH_SEPARATOR
30125
30126# The host system.
30127host_alias=$host_alias
30128host=$host
30129host_os=$host_os
30130
30131# The build system.
30132build_alias=$build_alias
30133build=$build
30134build_os=$build_os
30135
30136# A sed program that does not truncate output.
30137SED=$lt_SED
30138
30139# Sed that helps us avoid accidentally triggering echo(1) options like -n.
30140Xsed="\$SED -e 1s/^X//"
30141
30142# A grep program that handles long lines.
30143GREP=$lt_GREP
30144
30145# An ERE matcher.
30146EGREP=$lt_EGREP
30147
30148# A literal string matcher.
30149FGREP=$lt_FGREP
30150
30151# A BSD- or MS-compatible name lister.
30152NM=$lt_NM
30153
30154# Whether we need soft or hard links.
30155LN_S=$lt_LN_S
30156
30157# What is the maximum length of a command?
30158max_cmd_len=$max_cmd_len
30159
30160# Object file suffix (normally "o").
30161objext=$ac_objext
30162
30163# Executable file suffix (normally "").
30164exeext=$exeext
30165
30166# whether the shell understands "unset".
30167lt_unset=$lt_unset
30168
30169# turn spaces into newlines.
30170SP2NL=$lt_lt_SP2NL
30171
30172# turn newlines into spaces.
30173NL2SP=$lt_lt_NL2SP
30174
30175# convert \$build file names to \$host format.
30176to_host_file_cmd=$lt_cv_to_host_file_cmd
30177
30178# convert \$build files to toolchain format.
30179to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30180
30181# Method to check whether dependent libraries are shared objects.
30182deplibs_check_method=$lt_deplibs_check_method
30183
30184# Command to use when deplibs_check_method = "file_magic".
30185file_magic_cmd=$lt_file_magic_cmd
30186
30187# How to find potential files when deplibs_check_method = "file_magic".
30188file_magic_glob=$lt_file_magic_glob
30189
30190# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
30191want_nocaseglob=$lt_want_nocaseglob
30192
30193# Command to associate shared and link libraries.
30194sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
30195
30196# The archiver.
30197AR=$lt_AR
30198
30199# Flags to create an archive.
30200AR_FLAGS=$lt_AR_FLAGS
30201
30202# How to feed a file listing to the archiver.
30203archiver_list_spec=$lt_archiver_list_spec
30204
30205# A symbol stripping program.
30206STRIP=$lt_STRIP
30207
30208# Commands used to install an old-style archive.
30209RANLIB=$lt_RANLIB
30210old_postinstall_cmds=$lt_old_postinstall_cmds
30211old_postuninstall_cmds=$lt_old_postuninstall_cmds
30212
30213# Whether to use a lock for old archive extraction.
30214lock_old_archive_extraction=$lock_old_archive_extraction
30215
30216# A C compiler.
30217LTCC=$lt_CC
30218
30219# LTCC compiler flags.
30220LTCFLAGS=$lt_CFLAGS
30221
30222# Take the output of nm and produce a listing of raw symbols and C names.
30223global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30224
30225# Transform the output of nm in a proper C declaration.
30226global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30227
30228# Transform the output of nm in a C name address pair.
30229global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30230
30231# Transform the output of nm in a C name address pair when lib prefix is needed.
30232global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30233
30234# Specify filename containing input files for \$NM.
30235nm_file_list_spec=$lt_nm_file_list_spec
30236
30237# The root where to search for dependent libraries,and in which our libraries should be installed.
30238lt_sysroot=$lt_sysroot
30239
30240# The name of the directory that contains temporary libtool files.
30241objdir=$objdir
30242
30243# Used to examine libraries when file_magic_cmd begins with "file".
30244MAGIC_CMD=$MAGIC_CMD
30245
30246# Must we lock files when doing compilation?
30247need_locks=$lt_need_locks
30248
30249# Manifest tool.
30250MANIFEST_TOOL=$lt_MANIFEST_TOOL
30251
30252# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30253DSYMUTIL=$lt_DSYMUTIL
30254
30255# Tool to change global to local symbols on Mac OS X.
30256NMEDIT=$lt_NMEDIT
30257
30258# Tool to manipulate fat objects and archives on Mac OS X.
30259LIPO=$lt_LIPO
30260
30261# ldd/readelf like tool for Mach-O binaries on Mac OS X.
30262OTOOL=$lt_OTOOL
30263
30264# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30265OTOOL64=$lt_OTOOL64
30266
30267# Old archive suffix (normally "a").
30268libext=$libext
30269
30270# Shared library suffix (normally ".so").
30271shrext_cmds=$lt_shrext_cmds
30272
30273# The commands to extract the exported symbol list from a shared archive.
30274extract_expsyms_cmds=$lt_extract_expsyms_cmds
30275
30276# Variables whose values should be saved in libtool wrapper scripts and
30277# restored at link time.
30278variables_saved_for_relink=$lt_variables_saved_for_relink
30279
30280# Do we need the "lib" prefix for modules?
30281need_lib_prefix=$need_lib_prefix
30282
30283# Do we need a version for libraries?
30284need_version=$need_version
30285
30286# Library versioning type.
30287version_type=$version_type
30288
30289# Shared library runtime path variable.
30290runpath_var=$runpath_var
30291
30292# Shared library path variable.
30293shlibpath_var=$shlibpath_var
30294
30295# Is shlibpath searched before the hard-coded library search path?
30296shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30297
30298# Format of library name prefix.
30299libname_spec=$lt_libname_spec
30300
30301# List of archive names.  First name is the real one, the rest are links.
30302# The last name is the one that the linker finds with -lNAME
30303library_names_spec=$lt_library_names_spec
30304
30305# The coded name of the library, if different from the real name.
30306soname_spec=$lt_soname_spec
30307
30308# Permission mode override for installation of shared libraries.
30309install_override_mode=$lt_install_override_mode
30310
30311# Command to use after installation of a shared archive.
30312postinstall_cmds=$lt_postinstall_cmds
30313
30314# Command to use after uninstallation of a shared archive.
30315postuninstall_cmds=$lt_postuninstall_cmds
30316
30317# Commands used to finish a libtool library installation in a directory.
30318finish_cmds=$lt_finish_cmds
30319
30320# As "finish_cmds", except a single script fragment to be evaled but
30321# not shown.
30322finish_eval=$lt_finish_eval
30323
30324# Whether we should hardcode library paths into libraries.
30325hardcode_into_libs=$hardcode_into_libs
30326
30327# Compile-time system search path for libraries.
30328sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30329
30330# Run-time system search path for libraries.
30331sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30332
30333# Whether dlopen is supported.
30334dlopen_support=$enable_dlopen
30335
30336# Whether dlopen of programs is supported.
30337dlopen_self=$enable_dlopen_self
30338
30339# Whether dlopen of statically linked programs is supported.
30340dlopen_self_static=$enable_dlopen_self_static
30341
30342# Commands to strip libraries.
30343old_striplib=$lt_old_striplib
30344striplib=$lt_striplib
30345
30346
30347# The linker used to build libraries.
30348LD=$lt_LD
30349
30350# How to create reloadable object files.
30351reload_flag=$lt_reload_flag
30352reload_cmds=$lt_reload_cmds
30353
30354# Commands used to build an old-style archive.
30355old_archive_cmds=$lt_old_archive_cmds
30356
30357# A language specific compiler.
30358CC=$lt_compiler
30359
30360# Is the compiler the GNU compiler?
30361with_gcc=$GCC
30362
30363# Compiler flag to turn off builtin functions.
30364no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30365
30366# Additional compiler flags for building library objects.
30367pic_flag=$lt_lt_prog_compiler_pic
30368
30369# How to pass a linker flag through the compiler.
30370wl=$lt_lt_prog_compiler_wl
30371
30372# Compiler flag to prevent dynamic linking.
30373link_static_flag=$lt_lt_prog_compiler_static
30374
30375# Does compiler simultaneously support -c and -o options?
30376compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30377
30378# Whether or not to add -lc for building shared libraries.
30379build_libtool_need_lc=$archive_cmds_need_lc
30380
30381# Whether or not to disallow shared libs when runtime libs are static.
30382allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30383
30384# Compiler flag to allow reflexive dlopens.
30385export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30386
30387# Compiler flag to generate shared objects directly from archives.
30388whole_archive_flag_spec=$lt_whole_archive_flag_spec
30389
30390# Whether the compiler copes with passing no objects directly.
30391compiler_needs_object=$lt_compiler_needs_object
30392
30393# Create an old-style archive from a shared archive.
30394old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30395
30396# Create a temporary old-style archive to link instead of a shared archive.
30397old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30398
30399# Commands used to build a shared archive.
30400archive_cmds=$lt_archive_cmds
30401archive_expsym_cmds=$lt_archive_expsym_cmds
30402
30403# Commands used to build a loadable module if different from building
30404# a shared archive.
30405module_cmds=$lt_module_cmds
30406module_expsym_cmds=$lt_module_expsym_cmds
30407
30408# Whether we are building with GNU ld or not.
30409with_gnu_ld=$lt_with_gnu_ld
30410
30411# Flag that allows shared libraries with undefined symbols to be built.
30412allow_undefined_flag=$lt_allow_undefined_flag
30413
30414# Flag that enforces no undefined symbols.
30415no_undefined_flag=$lt_no_undefined_flag
30416
30417# Flag to hardcode \$libdir into a binary during linking.
30418# This must work even if \$libdir does not exist
30419hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30420
30421# Whether we need a single "-rpath" flag with a separated argument.
30422hardcode_libdir_separator=$lt_hardcode_libdir_separator
30423
30424# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30425# DIR into the resulting binary.
30426hardcode_direct=$hardcode_direct
30427
30428# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30429# DIR into the resulting binary and the resulting library dependency is
30430# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30431# library is relocated.
30432hardcode_direct_absolute=$hardcode_direct_absolute
30433
30434# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30435# into the resulting binary.
30436hardcode_minus_L=$hardcode_minus_L
30437
30438# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30439# into the resulting binary.
30440hardcode_shlibpath_var=$hardcode_shlibpath_var
30441
30442# Set to "yes" if building a shared library automatically hardcodes DIR
30443# into the library and all subsequent libraries and executables linked
30444# against it.
30445hardcode_automatic=$hardcode_automatic
30446
30447# Set to yes if linker adds runtime paths of dependent libraries
30448# to runtime path list.
30449inherit_rpath=$inherit_rpath
30450
30451# Whether libtool must link a program against all its dependency libraries.
30452link_all_deplibs=$link_all_deplibs
30453
30454# Set to "yes" if exported symbols are required.
30455always_export_symbols=$always_export_symbols
30456
30457# The commands to list exported symbols.
30458export_symbols_cmds=$lt_export_symbols_cmds
30459
30460# Symbols that should not be listed in the preloaded symbols.
30461exclude_expsyms=$lt_exclude_expsyms
30462
30463# Symbols that must always be exported.
30464include_expsyms=$lt_include_expsyms
30465
30466# Commands necessary for linking programs (against libraries) with templates.
30467prelink_cmds=$lt_prelink_cmds
30468
30469# Commands necessary for finishing linking programs.
30470postlink_cmds=$lt_postlink_cmds
30471
30472# Specify filename containing input files.
30473file_list_spec=$lt_file_list_spec
30474
30475# How to hardcode a shared library path into an executable.
30476hardcode_action=$hardcode_action
30477
30478# ### END LIBTOOL CONFIG
30479
30480_LT_EOF
30481
30482  case $host_os in
30483  aix3*)
30484    cat <<\_LT_EOF >> "$cfgfile"
30485# AIX sometimes has problems with the GCC collect2 program.  For some
30486# reason, if we set the COLLECT_NAMES environment variable, the problems
30487# vanish in a puff of smoke.
30488if test "X${COLLECT_NAMES+set}" != Xset; then
30489  COLLECT_NAMES=
30490  export COLLECT_NAMES
30491fi
30492_LT_EOF
30493    ;;
30494  esac
30495
30496
30497ltmain="$ac_aux_dir/ltmain.sh"
30498
30499
30500  # We use sed instead of cat because bash on DJGPP gets confused if
30501  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
30502  # text mode, it properly converts lines to CR/LF.  This bash problem
30503  # is reportedly fixed, but why not run on old versions too?
30504  sed '$q' "$ltmain" >> "$cfgfile" \
30505     || (rm -f "$cfgfile"; exit 1)
30506
30507  if test x"$xsi_shell" = xyes; then
30508  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
30509func_dirname ()\
30510{\
30511\    case ${1} in\
30512\      */*) func_dirname_result="${1%/*}${2}" ;;\
30513\      *  ) func_dirname_result="${3}" ;;\
30514\    esac\
30515} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
30516  && mv -f "$cfgfile.tmp" "$cfgfile" \
30517    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30518test 0 -eq $? || _lt_function_replace_fail=:
30519
30520
30521  sed -e '/^func_basename ()$/,/^} # func_basename /c\
30522func_basename ()\
30523{\
30524\    func_basename_result="${1##*/}"\
30525} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
30526  && mv -f "$cfgfile.tmp" "$cfgfile" \
30527    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30528test 0 -eq $? || _lt_function_replace_fail=:
30529
30530
30531  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
30532func_dirname_and_basename ()\
30533{\
30534\    case ${1} in\
30535\      */*) func_dirname_result="${1%/*}${2}" ;;\
30536\      *  ) func_dirname_result="${3}" ;;\
30537\    esac\
30538\    func_basename_result="${1##*/}"\
30539} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
30540  && mv -f "$cfgfile.tmp" "$cfgfile" \
30541    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30542test 0 -eq $? || _lt_function_replace_fail=:
30543
30544
30545  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
30546func_stripname ()\
30547{\
30548\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
30549\    # positional parameters, so assign one to ordinary parameter first.\
30550\    func_stripname_result=${3}\
30551\    func_stripname_result=${func_stripname_result#"${1}"}\
30552\    func_stripname_result=${func_stripname_result%"${2}"}\
30553} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
30554  && mv -f "$cfgfile.tmp" "$cfgfile" \
30555    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30556test 0 -eq $? || _lt_function_replace_fail=:
30557
30558
30559  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
30560func_split_long_opt ()\
30561{\
30562\    func_split_long_opt_name=${1%%=*}\
30563\    func_split_long_opt_arg=${1#*=}\
30564} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
30565  && mv -f "$cfgfile.tmp" "$cfgfile" \
30566    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30567test 0 -eq $? || _lt_function_replace_fail=:
30568
30569
30570  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
30571func_split_short_opt ()\
30572{\
30573\    func_split_short_opt_arg=${1#??}\
30574\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
30575} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
30576  && mv -f "$cfgfile.tmp" "$cfgfile" \
30577    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30578test 0 -eq $? || _lt_function_replace_fail=:
30579
30580
30581  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
30582func_lo2o ()\
30583{\
30584\    case ${1} in\
30585\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
30586\      *)    func_lo2o_result=${1} ;;\
30587\    esac\
30588} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
30589  && mv -f "$cfgfile.tmp" "$cfgfile" \
30590    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30591test 0 -eq $? || _lt_function_replace_fail=:
30592
30593
30594  sed -e '/^func_xform ()$/,/^} # func_xform /c\
30595func_xform ()\
30596{\
30597    func_xform_result=${1%.*}.lo\
30598} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
30599  && mv -f "$cfgfile.tmp" "$cfgfile" \
30600    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30601test 0 -eq $? || _lt_function_replace_fail=:
30602
30603
30604  sed -e '/^func_arith ()$/,/^} # func_arith /c\
30605func_arith ()\
30606{\
30607    func_arith_result=$(( $* ))\
30608} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
30609  && mv -f "$cfgfile.tmp" "$cfgfile" \
30610    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30611test 0 -eq $? || _lt_function_replace_fail=:
30612
30613
30614  sed -e '/^func_len ()$/,/^} # func_len /c\
30615func_len ()\
30616{\
30617    func_len_result=${#1}\
30618} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
30619  && mv -f "$cfgfile.tmp" "$cfgfile" \
30620    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30621test 0 -eq $? || _lt_function_replace_fail=:
30622
30623fi
30624
30625if test x"$lt_shell_append" = xyes; then
30626  sed -e '/^func_append ()$/,/^} # func_append /c\
30627func_append ()\
30628{\
30629    eval "${1}+=\\${2}"\
30630} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
30631  && mv -f "$cfgfile.tmp" "$cfgfile" \
30632    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30633test 0 -eq $? || _lt_function_replace_fail=:
30634
30635
30636  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
30637func_append_quoted ()\
30638{\
30639\    func_quote_for_eval "${2}"\
30640\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
30641} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
30642  && mv -f "$cfgfile.tmp" "$cfgfile" \
30643    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30644test 0 -eq $? || _lt_function_replace_fail=:
30645
30646
30647  # Save a `func_append' function call where possible by direct use of '+='
30648  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
30649    && mv -f "$cfgfile.tmp" "$cfgfile" \
30650      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30651  test 0 -eq $? || _lt_function_replace_fail=:
30652else
30653  # Save a `func_append' function call even when '+=' is not available
30654  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
30655    && mv -f "$cfgfile.tmp" "$cfgfile" \
30656      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30657  test 0 -eq $? || _lt_function_replace_fail=:
30658fi
30659
30660if test x"$_lt_function_replace_fail" = x":"; then
30661  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
30662$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
30663fi
30664
30665
30666   mv -f "$cfgfile" "$ofile" ||
30667    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30668  chmod +x "$ofile"
30669
30670 ;;
30671    "default":C)
30672# Commands run at the end of config.status:
30673for i in $APR_SAVE_HEADERS; do
30674  if cmp -s $i $i.save 2>/dev/null; then
30675    mv $i.save $i
30676    { $as_echo "$as_me:${as_lineno-$LINENO}: $i is unchanged" >&5
30677$as_echo "$as_me: $i is unchanged" >&6;}
30678  fi
30679  rm -f $i.save
30680done
30681chmod +x apr-$APR_MAJOR_VERSION-config
30682 ;;
30683
30684  esac
30685done # for ac_tag
30686
30687
30688as_fn_exit 0
30689_ACEOF
30690ac_clean_files=$ac_clean_files_save
30691
30692test $ac_write_fail = 0 ||
30693  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30694
30695
30696# configure is writing to config.log, and then calls config.status.
30697# config.status does its own redirection, appending to config.log.
30698# Unfortunately, on DOS this fails, as config.log is still kept open
30699# by configure, so config.status won't be able to write to it; its
30700# output is simply discarded.  So we exec the FD to /dev/null,
30701# effectively closing config.log, so it can be properly (re)opened and
30702# appended to by config.status.  When coming back to configure, we
30703# need to make the FD available again.
30704if test "$no_create" != yes; then
30705  ac_cs_success=:
30706  ac_config_status_args=
30707  test "$silent" = yes &&
30708    ac_config_status_args="$ac_config_status_args --quiet"
30709  exec 5>/dev/null
30710  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30711  exec 5>>config.log
30712  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30713  # would make configure fail if this is the last instruction.
30714  $ac_cs_success || as_fn_exit 1
30715fi
30716if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30717  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30718$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30719fi
30720
30721